rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL when returning call_cookie.
[official-gcc.git] / gcc / ChangeLog
blobec3b8d1ba8badb9dc8be9cd2c8749d889b9d992a
1 2011-04-22  Alan Modra  <amodra@gmail.com>
3         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4         when returning call_cookie.
5         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6         pointers, to functions with no more vector args than the current
7         function, and some non-local calls for ABI_V4.
8         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
9         sibcall_nonlocal_aix64): Combine to ..
10         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
11         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
12         (sibcall_value_nonlocal_aix<mode>): ..likewise.
13         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
14         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
15         operand.
16         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
17         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
18         sibcall_value_symbolic_64): Delete.
20 2011-04-21  Xinliang David Li  <davidxl@google.com>
22         * cgraph.h: Remove pid.
23         * cgraph.c: Remove pid.
24         * value-prof.c (init_node_map): New function.
25         (del_node_map): New function.
26         (find_func_by_funcdef_no): New function.
27         (gimple_ic_transform): Call new function.
28         * cgraphunit.c (cgraph_finalize_function): Remove pid.
29         * function.c (get_last_funcdef_no): New function.
30         * function.h (get_last_funcdef_no): New function.
31         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
32         to libgcov function.
33         (tree-profiling): Call node map init and delete function.
35 2011-04-21  Ian Lance Taylor  <iant@google.com>
37         * godump.c (go_format_type): Use exported Go name for anonymous
38         field name.
40 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
42         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
43         Call builtin_function_type_list instead of builtin_function_type.
44         (UNARY, BINARY, TRINARY, QUAD): Likewise.
46 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
48         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
49         build_function_type_list instead of build_function_type.
50         Delete variable `endlink'.
52 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
54         * config/s390/s390.c (s390_init_builtins): Call
55         build_function_type_list instead of build_function_type.
57 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
59         * config/ia64/ia64.c (ia64_init_builtins): Call
60         build_function_type_list instead of builtin_function_type.
62 2011-04-21  Easwaran Raman  <eraman@google.com>
64         * cfgexpand.c (stack_var): Remove OFFSET...
65         (add_stack_var): ...and its reference here...
66         (expand_stack_vars): ...and here.
67         (stack_var_cmp): Sort by descending order of size.
68         (partition_stack_vars): Change heuristic.
69         (union_stack_vars): Fix to reflect changes in
70         partition_stack_vars.
71         (dump_stack_var_partition): Add newline after each partition.
73 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
74             Jeff Law  <law@redhat.com>
76         * gengtype-state.c (read_a_state_token): Fix argument to
77         obstack_free.
78         * gengtype.c (matching_file_name_substitute): Likewise.
80 2011-04-21  Richard Guenther  <rguenther@suse.de>
82         PR lto/48703
83         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
84         DECL_NAME.
86 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
88         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
90 2011-04-21  Richard Guenther  <rguenther@suse.de>
92         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
93         file name.
95 2011-04-21  Richard Guenther  <rguenther@suse.de>
97         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
98         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
99         Use DECL_P, not SSA_VAR_P.
100         (ptr_derefs_may_alias_p): Likewise.
101         (ptr_deref_may_alias_ref_p_1): Likewise.
102         (decl_refs_may_alias_p): Likewise.
103         (refs_may_alias_p_1): Likewise.
104         (ref_maybe_used_by_call_p_1): Likewise.
105         (call_may_clobber_ref_p_1): Likewise.
106         (indirect_ref_may_alias_decl_p): Assume indirect refrences
107         are either MEM_REF or TARGET_MEM_REF.
108         (indirect_refs_may_alias_p): Likewise.
109         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
110         for MEM_EXPR of indirect calls.
112 2011-04-21  Tristan Gingold  <gingold@adacore.com>
114         * vmsdbgout.c (write_srccorr): Compute file length from the string.
115         (dst_file_info_struct): Remove flen field.
116         (lookup_filename): Remove code that set flen field.
118 2011-04-21  Tristan Gingold  <gingold@adacore.com>
120         * config/ia64/ia64.c (ia64_start_function): Add a guard.
122 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
124         PR target/48708
125         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
126         vec_extract and vec_concat for non-SSE4_1 targets.
128 2011-04-21  Richard Guenther  <rguenther@suse.de>
130         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
131         return statements.
133 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
135         * config/i386/cygming.h (union tree_node, TREE): Don't define or
136         undefine.
137         (FILE): Don't undefine.
139 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
141         * config/alpha/alpha.c (struct machine_function): Use rtx, not
142         struct rtx_def *.
143         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
144         struct rtx_def *.
145         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
146         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
147         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
148         rtx_def *.
149         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
150         definitions where used.
151         * config/microblaze/microblaze.h (struct microblaze_args): Use
152         rtx, not struct rtx_def *.
153         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
154         rtx_def *.
155         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
156         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
157         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
158         not struct rtx_def *.
159         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
160         struct rtx_def *.
161         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
162         rtx_def *.
163         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
165 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
167         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
168         operand_equal_p to compare DR_BASE_ADDRESSes.
169         (vect_check_interleaving): Likewise.
171 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
173         PR target/46329
174         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
175         for all Neon struct constants.
177 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
179         * target.def (legitimate_constant_p): New hook.
180         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
181         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
182         * doc/tm.texi: Regenerate.
183         * hooks.h (hook_bool_mode_rtx_true): Declare.
184         * hooks.c (hook_bool_mode_rtx_true): Define.
185         * system.h (LEGITIMATE_CONSTANT_P): Poison.
186         * calls.c (precompute_register_parameters): Replace uses of
187         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
188         (emit_library_call_value_1): Likewise.
189         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
190         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
191         * ira-costs.c (scan_one_insn): Likewise.
192         * recog.c (general_operand, immediate_operand): Likewise.
193         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
194         * reload1.c (init_eliminable_invariants): Likewise.
196         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
197         mode argument.
198         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
199         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
200         argument.
201         (TARGET_LEGITIMATE_CONSTANT_P): Define.
202         * config/alpha/predicates.md (input_operand): Update call to
203         alpha_legitimate_constant_p.
205         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
206         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
207         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
208         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
209         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
210         (arm_legitimate_constant_p): New functions.
211         (arm_cannot_force_const_mem): Make static.
213         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
215         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
216         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
217         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
218         instead of bfin_legitimate_constant_p.
219         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
220         (TARGET_LEGITIMATE_CONSTANT_P): Define.
222         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
224         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
226         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
227         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
228         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
229         (frv_legitimate_constant_p): Make static.  Add a mode argument.
231         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
232         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
233         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
235         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
236         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
237         * config/i386/i386.c (legitimate_constant_p): Rename to...
238         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
239         argument.
240         (ix86_cannot_force_const_mem): Update accordingly.
241         (ix86_legitimate_address_p): Likewise.
242         (TARGET_LEGITIMATE_CONSTANT_P): Define.
243         * config/i386/i386.md: Update commentary.
245         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
246         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
247         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
248         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
250         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
252         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
253         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
254         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
255         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
257         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
258         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
259         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
261         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
262         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
263         (m32r_legitimate_constant_p): New function.
265         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
266         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
267         LEGITIMATE_CONSTANT_P.
268         (LEGITIMATE_CONSTANT_P): Delete.
269         * config/m68k/m68k.c (m68k_expand_prologue): Call
270         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
271         (m68k_legitimate_constant_p): New function.
272         * config/m68k/m68k.md: Update comments.
274         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
275         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
276         (mcore_legitimate_constant_p): New function.
278         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
279         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
280         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
281         Add a mode argument.
282         (mep_legitimate_address): Update accordingly.
283         (TARGET_LEGITIMATE_CONSTANT_P): Define.
285         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
286         Delete.
287         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
288         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
289         static.  Check OP's mode for VOIDmode.
290         (microblaze_legitimate_constant_p): New function.
291         (TARGET_LEGITIMATE_CONSTANT_P): Define.
293         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
294         * config/mips/mips.c (mips_legitimate_constant_p): New function.
295         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
296         (TARGET_LEGITIMATE_CONSTANT_P): Define.
297         * config/mips/predicates.md: Update comments.
299         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
300         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
301         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
302         (mmix_legitimate_constant_p): Make static, return a bool, and take
303         a mode argument.
304         (mmix_print_operand_address): Update accordingly.
306         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
307         Delete.
308         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
309         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
310         static.  Add a mode argument.
311         (TARGET_LEGITIMATE_CONSTANT_P): Define.
313         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
315         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
316         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
317         (pa_legitimate_constant_p): New function.
319         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
321         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
322         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
323         (pdp11_legitimate_constant_p): New function.
325         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
326         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
327         (rs6000_legitimate_constant_p): New function.
329         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
330         (rx_legitimate_constant_p): ...this.
331         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
332         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
333         (rx_legitimate_constant_p): ...this.
334         (TARGET_LEGITIMATE_CONSTANT_P): Define.
335         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
337         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
338         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
339         * config/s390/s390.c (legitimate_constant_p): Rename to...
340         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
341         and add a mode argument.
342         (TARGET_LEGITIMATE_CONSTANT_P): Define.
344         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
346         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
347         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
348         (sh_legitimate_constant_p): New function.
350         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
351         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
352         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
353         (legitimate_constant_p): Rename to...
354         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
355         argument.
356         (constant_address_p): Update accordingly.
358         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
359         argument and return a bool.
360         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
361         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
362         (spu_legitimate_constant_p): Add a mode argument and return a bool.
363         (spu_rtx_costs): Update accordingly.
364         * config/spu/predicates.md (vec_imm_operand): Likewise.
366         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
368         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
369         * config/v850/v850.c (v850_legitimate_constant_p): New function.
370         (TARGET_LEGITIMATE_CONSTANT_P): Define.
372         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
373         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
374         * config/vax/vax.c (legitimate_constant_p): Likewise.
376         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
377         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
378         (xtensa_legitimate_constant_p): New function.
380 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
382         * target.def (cannot_force_const_mem): Add a mode argument.
383         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
384         * doc/tm.texi: Regenerate.
385         * hooks.h (hook_bool_mode_rtx_false): Declare.
386         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
387         (hook_bool_mode_const_rtx_true): Likewise.
388         (hook_bool_mode_rtx_false): New function.
389         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
390         to be non-VOID.  Update call to cannot_force_const_mem.
391         (find_reloads): Update accordingly.
392         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
393         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
394         argument.
395         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
396         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
397         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
398         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
399         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
400         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
401         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
402         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
403         (m68k_cannot_force_const_mem): ...this new function.
404         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
405         argument.
406         (mips_const_insns, mips_legitimize_const_move): Update calls.
407         (mips_secondary_reload_class): Likewise.
408         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
409         (pa_cannot_force_const_mem): ...this new function.
410         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
411         (rs6000_cannot_force_const_mem): ...this new function.
412         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
413         argument.
414         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
415         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
416         to...
417         (xtensa_cannot_force_const_mem): ...this new function.
419 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
421         * config/mips/mips.c (mips16_build_function_stub): Call
422         build_function_type_list instead of build_function_type.
423         (mips16_build_call_stub): Likewise.
425 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
427         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
428         instead of build_function_type.
430 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
432         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
433         instead of build_function_type.
435 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
437         PR target/48678
438         * config/i386/i386.md (insv): Change operand 0 constraint to
439         "register_operand".  Change operand 1 and 2 constraint to
440         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
441         * config/i386/sse.md (sse4_1_pinsrb): Export.
442         (sse2_pinsrw): Ditto.
443         (sse4_1_pinsrd): Ditto.
444         (sse4_1_pinsrq): Ditto.
445         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
446         * config/i386/i386.c (ix86_expand_pinsr): New.
448 2011-04-20  Easwaran Raman  <eraman@google.com>
450         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
451         containing union type only with -fstrict-aliasing.
453 2011-04-20  Jim Meyering  <meyering@redhat.com>
455         Remove useless if-before-free tests.
456         * calls.c (expand_call, save_area): Likewise.
457         * cfgcleanup.c (try_forward_edges): Likewise.
458         * collect2.c (collect_execute): Likewise.
459         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
460         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
461         * coverage.c (coverage_checksum_string): Likewise.
462         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
463         * cselib.c (cselib_init): Likewise.
464         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
465         (df_set_clean_cfg): Likewise.
466         * function.c (free_after_compilation): Likewise.
467         * gcc.c (do_spec_1, main): Likewise.
468         * gcov.c (create_file_names): Likewise.
469         * gensupport.c (identify_predicable_attribute): Likewise.
470         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
471         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
472         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
473         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
474         * ipa-pure-const.c (local_pure_const): Likewise.
475         * ipa-reference.c (propagate): Likewise.
476         * ira-costs.c (free_ira_costs): Likewise.
477         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
478         * matrix-reorg.c (mat_free): Likewise.
479         * prefix.c (get_key_value): Likewise.
480         * profile.c (compute_value_histograms): Likewise.
481         * reload1.c (free_reg_equiv): Likewise.
482         * sched-deps.c (free_deps): Likewise.
483         * sel-sched-ir.c (fence_clear): Likewise.
484         * sese.c (set_rename, if_region_set_false_region): Likewise.
485         * tree-data-ref.c (free_rdg): Likewise.
486         * tree-eh.c (lower_try_finally): Likewise.
487         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
488         * tree-ssa-live.c (delete_var_map): Likewise.
489         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
490         * tree-ssa-pre.c (phi_trans_add): Likewise.
492 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
494         PR tree-optimization/48611
495         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
496         beyond ERT_MUST_NOT_THROW region.
498 2011-04-20  Catherine Moore  <clm@codesourcery.com>
500         * config/mips/mips.opt (mfix-24k): New.
501         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
502         * config/mips/mips.md (length): Increase by 4 for stores if
503         fixing 24K errata.
504         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
505         all noreorder if fixing 24K errata.
506         * doc/invoke.texi: Document mfix-24k.
508 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
510         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
511         quad-word modes, reduce to 9-bit index range when above 1016 limit.
513 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
515         * config/arm/arm.c (arm_gen_constant): Move movw support ....
516         (const_ok_for_op): ... to here.
518 2011-04-20  Kai Tietz  <ktietz@redhat.com>
520         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
521         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
523 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
525         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
527 2011-04-20  Richard Guenther  <rguenther@suse.de>
529         PR tree-optimization/47892
530         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
531         are if-convertible.
533 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
535         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
537 2011-04-20  Tristan Gingold  <gingold@adacore.com>
539         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
541 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
543         PR target/18145
545         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
546         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
547         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
548         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
549         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
551         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
552         New prototype.
554         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
555         (avr_asm_named_section, avr_asm_output_aligned_common,
556         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
557         New functions to update...
558         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
559         (avr_asm_init_sections): Overwrite section callbacks for
560         data_section, bss_section.
561         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
562         from here to...
563         (avr_file_end): ...here.
565 2011-04-20  Richard Guenther  <rguenther@suse.de>
567         PR middle-end/48695
568         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
569         objects and types here.  Adjust for their offset before comparing.
571 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
573         * tree-vect-stmts.c (vectorizable_store): Only chain one related
574         statement per copy.
576 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
578         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
579         (GIMPLE_H): Include $(INTERNAL_FN_H).
580         (OBJS-common): Add internal-fn.o.
581         (internal-fn.o): New rule.
582         * internal-fn.def: New file.
583         * internal-fn.h: Likewise.
584         * internal-fn.c: Likewise.
585         * gimple.h: Include internal-fn.h.
586         (GF_CALL_INTERNAL): New gf_mask.
587         (gimple_statement_call): Put fntype into a union with a new
588         internal_fn field.
589         (gimple_build_call_internal): Declare.
590         (gimple_build_call_internal_vec): Likewise.
591         (gimple_call_same_target_p): Likewise.
592         (gimple_call_internal_p): New function.
593         (gimple_call_internal_fn): Likewise.
594         (gimple_call_fntype): Return null for internal calls.
595         (gimple_call_set_fntype): Assert that the function is not internal.
596         (gimple_call_set_fn): Likewise.
597         (gimple_call_set_fndecl): Likewise.
598         (gimple_call_set_internal_fn): New function.
599         (gimple_call_addr_fndecl): Handle null functions.
600         (gimple_call_return_type): Likewise null types.
601         * gimple.c (gimple_build_call_internal_1): New function.
602         (gimple_build_call_internal): Likewise.
603         (gimple_build_call_internal_vec): Likewise.
604         (gimple_call_same_target_p): Likewise.
605         (gimple_call_flags): Handle calls to internal functions.
606         (gimple_call_fnspec): New function.
607         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
608         (gimple_has_side_effects): Handle null functions.
609         (gimple_rhs_has_side_effects): Likewise.
610         (gimple_call_copy_skip_args): Handle calls to internal functions.
611         * cfgexpand.c (expand_call_stmt): Likewise.
612         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
613         * gimple-fold.c (gimple_fold_call): Handle null functions.
614         (gimple_fold_stmt_to_constant_1): Don't fold
615         calls to internal functions.
616         * gimple-low.c (gimple_check_call_args): Handle calls to internal
617         functions.
618         * gimple-pretty-print.c (dump_gimple_call): Likewise.
619         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
620         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
621         (do_warn_unused_result): Likewise.
622         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
623         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
624         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
625         the target of a call.
626         (initialize_hash_element): Update accordingly.
627         (hashable_expr_equal_p): Use gimple_call_same_target_p.
628         (iterative_hash_hashable_expr): Handle calls to internal functions.
629         (print_expr_hash_elt): Likewise.
630         * tree-ssa-pre.c (can_value_number_call): Likewise.
631         (eliminate): Handle null functions.
632         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
633         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
634         (find_func_aliases): Likewise.
635         * value-prof.c (gimple_ic_transform): Likewise.
636         (gimple_indirect_call_to_profile): Likewise.
637         * lto-streamer-in.c (input_gimple_stmt): Likewise.
638         * lto-streamer-out.c (output_gimple_stmt): Likewise.
640 2011-04-19  Jan Hubicka  <jh@suse.cz>
642         * ipa-inline-transform.c (save_inline_function_body): Add comments.
643         * ipa-inline.c (inline_small_functions): Compute summaries first,
644         populate heap later.
646 2011-04-19  Jan Hubicka  <jh@suse.cz>
648         * cgraph.h (save_inline_function_body): Remove.
649         * ipa-inline-transform.c: New file, broke out of...
650         * ipa-inline.c: ... this one; Update toplevel comment.
651         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
652         make global.
653         (update_noncloned_frequencies): Move to ipa-inline-transform.c
654         (cgraph_mark_inline_edge): Rename to inline_call; move to
655         ipa-inline-transform.c.
656         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
657         move to ipa-inline-transform.c
658         (recursive_inlining, inline_small_functions, flatten_function,
659         ipa_inline, inline_always_inline_functions,
660         early_inline_small_functions): Update.
661         (inline_transform): Move to ipa-inline-transform.c.
662         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
663         Declare.
664         * Makefile.in (ipa-inline-transform.o): New file.
665         * cgraphunit.c (save_inline_function_body): Move to
666         ipa-inline-transform.c
668 2011-04-19  DJ Delorie  <dj@redhat.com>
670         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
671         registers if we already know there aren't any.
672         (m32c_emit_epilogue): Don't emit a barrier here.
673         (m32c_emit_eh_epilogue): Likewise.
674         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
675         operands at expand time.
676         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
677         int" wchar type.
678         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
679         duplicates.  Provide aliases instead.
680         * config/m32c/prologue.md (eh_return): Emit a barrier here.
681         (eh_epilogue): Add a "(return)" here as a hint to other parts of
682         the compiler.
684 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
686         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
687         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
688         (general_or_i64_p, sparc_register_move_cost): New function.
690 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
692         * doc/install.texi (Configuration, --enable-threads): Remove mach.
693         Add lynx, mipssde.  Sort table.
695 2011-04-19  Xinliang David Li  <davidxl@google.com>
697         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
698         not negative.
700 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
702         PR target/48678
703         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
704         is a SUBREG with non-MODE_INT mode inside of it.
706 2011-04-19  Martin Jambor  <mjambor@suse.cz>
708         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
709         also according to actual contants.
710         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
711         (gimple_fold_call): Use it.
712         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
714 2011-04-19  Martin Jambor  <mjambor@suse.cz>
716         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
717         non-pointer assignments.
719 2011-04-19  Martin Jambor  <mjambor@suse.cz>
721         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
722         account anc_offset and otr_type from the indirect edge info.
723         * ipa-prop.c (get_ancestor_addr_info): New function.
724         (compute_complex_ancestor_jump_func): Assignment analysis moved to
725         get_ancestor_addr_info, call it.
726         (ipa_note_param_call): Do not initialize information about polymorphic
727         calls, return the indirect call graph edge.  Remove the last
728         parameter, adjust all callers.
729         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
730         parameters.  Initialize polymorphic information in the indirect edge.
732 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
734         PR lto/48148
735         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
736         the types if they have different enumeration identifiers.
738 2011-04-19  Jan Hubicka  <jh@suse.cz>
740         * cgraph.h (cgraph_optimize_for_size_p): Declare.
741         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
742         * predict.c (cgraph_optimize_for_size_p): Break out from ...
743         (optimize_function_for_size_p) ... here.
745 2011-04-19  Richard Guenther  <rguenther@suse.de>
747         PR lto/48207
748         * tree.c (free_lang_data): Do not reset the decl-assembler-name
749         langhook.
751 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
753         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
754         if DECL_NO_INLINE_WARNING_P is set on the function.
756 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
758         PR fortran/47976
759         * reload1.c (inc_for_reload): Return void. All callers changed.
760         (emit_input_reload_insns): Don't try to delete previous output
761         reloads to a register, or record spill_reg_store for autoincs.
763 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
765         * gengtype.h: Updated copyright year.
766         (struct input_file_st): Add inpisplugin field.
767         (type_fileloc): New function.
768         * gengtype.c
769         (write_typed_struct_alloc_def): Add gcc_assert.
770         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
771         (write_typed_alloc_defns): Don't output for plugin files.
772         (input_file_by_name): Clear inpisplugin field.
773         (main): Set inpisplugin field for plugin files.
775 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
777         * gengtype-state.c (string_eq): New.
778         (read_state): Use string_eq instead of strcmp when creating the
779         state_ident_tab.
781 2011-04-19  Wei Guozhi  <carrot@google.com>
783         PR target/47855
784         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
785         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
786         linkage.
787         * config/arm/constraints.md (Uu): New constraint.
788         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
790 2011-04-19  Tristan Gingold  <gingold@adacore.com>
792         * config.gcc (-*-*-*vms): Added.
793         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
794         definitions moved.
795         * config/vms/vms-ld.c: New file.
796         * config/vms/vms-ar.c: New file.
797         * config/vms/t-vmsnative: New file.
799 2011-04-18  Xinliang David Li  <davidxl@google.com>
801         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
803 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
805         PR middle-end/48661
806         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
807         if TREE_TYPE (v) is non-NULL.
809         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
810         gimple_get_virt_mehtod_for_binfo.
811         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
812         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
813         callers.
814         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
816 2011-04-18  Michael Matz  <matz@suse.de>
817             Steve Ellcey  <sje@cup.hp.com>
819         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
820         use its mode as source mode if it isn't VOIDmode.
822 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
824         * doc/passes.texi: Fill crossref nodes.
826 2011-04-18  Jim Meyering  <meyering@redhat.com>
828         Fix doubled-word typos in comments and strings
829         * config/alpha/vms-unwind.h: s/for for/for/
830         * config/arm/unwind-arm.h: Likewise.
831         * config/microblaze/microblaze.c: Likewise.
832         * config/sh/constraints.md: s/in in/in/
833         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
835 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
837         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
838         (AVX_FLOAT_MODE_P): Ditto.
839         (AVX128_VEC_FLOAT_MODE_P): Ditto.
840         (AVX256_VEC_FLOAT_MODE_P): Ditto.
841         (AVX_VEC_FLOAT_MODE_P): Ditto.
842         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
843         (UNSPEC_MASKSTORE): Ditto.
844         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
845         Merge from <sse>_movmsk<ssemodesuffix> and
846         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
847         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
848         iterator.
849         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
850         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
851         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
853 2011-04-18  Jan Hubicka  <jh@suse.cz>
855         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
857         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
858         (want_inline_function_called_once_p): Break out the logic from
859         ipa_inline.
860         (edge_badness): Ensure that profile is not misupdated.
861         (lookup_recursive_calls): Prioritize by call frequencies.
862         (inline_small_functions): Move program size estimates here;
863         actually process whole queue even when unit growth has been
864         met. (to properly compute inline_failed reasons and for the
865         case unit size decrease.) Revisit comments on recursive inlining.
866         (ipa_inline): Remove unit summary code; first inline hot calls
867         of functions called once, cold calls next.
868         (order, nnodes): Remove unused variables.
869         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
870         (GTFILES): Remove ipa-inline.c
871         * sel-sched.c (fill_insns): Silence uninitialized var warning.
873 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
875         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
877 2011-04-18  Jie Zhang  <jie@codesourcery.com>
878             Richard Earnshaw  <rearnsha@arm.com>
880         * arm.c (neon_builtin_type_bits): Remove.
881         (typedef enum neon_builtin_mode): New.
882         (T_MAX): Don't define.
883         (typedef enum neon_builtin_datum): Remove bits, codes[],
884         num_vars and base_fcode.  Add mode, code and fcode.
885         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
886         VAR10): Change accordingly.
887         (neon_builtin_data[]): Change accordingly
888         (arm_init_neon_builtins): Change accordingly.
889         (neon_builtin_compare): Remove.
890         (locate_neon_builtin_icode): Remove.
891         (arm_expand_neon_builtin): Change accordingly.
893         * arm.h (enum arm_builtins): Move to ...
894         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
896         * arm.c (arm_builtin_decl): Declare.
897         (TARGET_BUILTIN_DECL): Define.
898         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
899         (arm_builtin_decls[]): New.
900         (arm_init_neon_builtins): Store builtin declarations in
901         arm_builtin_decls[].
902         (arm_init_tls_builtins): Likewise.
903         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
904         (arm_builtin_decl): New.
906 2011-04-18  Richard Guenther  <rguenther@suse.de>
908         * tree.c (upper_bound_in_type): Build properly canonicalized
909         INTEGER_CSTs.
910         (lower_bound_in_type): Likewise.
912 2011-04-18  Richard Guenther  <rguenther@suse.de>
914         * gimple.h (gimple_call_addr_fndecl): New function.
915         (gimple_call_fndecl): Use it.
916         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
917         for direct calls.
918         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
919         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
921 2011-04-18  Richard Guenther  <rguenther@suse.de>
923         PR middle-end/48650
924         * tree.c (build_string): STRING_CST is now derived from tree_typed.
926 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
928         PR lto/48492
929         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
930         DECL_IN_CONSTANT_POOL without RTL.
932 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
933             Ira Rosen  <ira.rosen@linaro.org>
935         PR target/48252
936         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
937         to match neon_vzip/vuzp/vtrn_internal.
938         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
939         outputs explicitly dependent on both inputs.
940         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
942 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
944         PR tree-optimization/48616
945         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
946         whether the shift is by scalar or vector based on whether all SLP
947         scalar stmts have the same rhs.
949 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
951         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
952         memory operands.
954 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
956         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
957         registers.
959 2011-04-17  Jan Hubicka  <jh@suse.cz>
961         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
962         * cgrpahunit.c (cgraph_finalize_function): Do not set
963         finalized_by_frontend.
964         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
965         finalized_by_frontend.
967 2011-04-17  Jan Hubicka  <jh@suse.cz>
969         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
970         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
971         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
972         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
973         method.
974         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
975         gimple-fold.c
976         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
978 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
980         PR lto/48538
981         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
982         is non-null before accessing it.
983         (input_cgraph): Remove trailing spaces.
985 2011-04-17  Revital Eres  <revital.eres@linaro.org>
987         * params.def (sms-min-sc): New param flag.
988         * modulo-sched.c (sms_schedule): Use it.
989         * doc/invoke.texi (sms-min-sc): Document it.
991 2011-04-17  Jan Hubicka  <jh@suse.cz>
993         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
994         present, also set gimple_call_set_cannot_inline.
995         * ipa-inline.c: Update toplevel comment.
996         (MAX_TIME): Remove.
997         (cgraph_clone_inlined_nodes): Fix linebreaks.
998         (cgraph_check_inline_limits): Restructure to ...
999         (caller_growth_limits): ... this one; be more tolerant
1000         on growth in nested inline chains; add explanatory comment;
1001         fix stack accounting thinko introduced by previous patch.
1002         (cgraph_default_inline_p): Remove.
1003         (report_inline_failed_reason): New function.
1004         (can_inline_edge_p): New function.
1005         (can_early_inline_edge_p): New function.
1006         (leaf_node_p): Move upwards in file.
1007         (want_early_inline_function_p): New function.
1008         (want_inline_small_function_p): New function.
1009         (want_inline_self_recursive_call_p): New function.
1010         (cgraph_edge_badness): Rename to ...
1011         (edge_badness) ... this one; fix linebreaks.
1012         (update_edge_key): Update call of edge_baddness; add
1013         detailed dump about queue updates.
1014         (update_caller_keys): Use can_inline_edge_p and
1015         want_inline_small_function_p.
1016         (cgraph_decide_recursive_inlining): Rename to...
1017         (recursive_inlining): Use can_inline_edge_p and
1018         want_inline_self_recursive_call_p; simplify and remove no longer
1019         valid FIXME.
1020         (cgraph_set_inline_failed): Remove.
1021         (add_new_edges_to_heap): Use can_inline_edge_p and
1022         want_inline_small_function_p.
1023         (cgraph_decide_inlining_of_small_functions): Rename to ...
1024         (inline_small_functions): ... this one; cleanup; use
1025         can/want predicates; cleanup debug ouput; work edges till fibheap
1026         is exhausted and do not stop once unit growth is reached; remove
1027         later loop processing remaining edges.
1028         (cgraph_flatten): Rename to ...
1029         (flatten_function): ... this one; use can_inline_edge_p
1030         and can_early_inline_edge_p predicates.
1031         (cgraph_decide_inlining): Rename to ...
1032         (ipa_inline): ... this one; remove unreachable nodes before
1033         inlining functions called once; simplify the pass.
1034         (cgraph_perform_always_inlining): Rename to ...
1035         (inline_always_inline_functions): ... this one; use
1036         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1037         (cgraph_decide_inlining_incrementally): Rename to ...
1038         (early_inline_small_functions): ... this one; simplify
1039         using new predicates; cleanup; make dumps prettier.
1040         (cgraph_early_inlining): Rename to ...
1041         (early_inliner): newer inline regular functions into always-inlines;
1042         fix updating of call stmt summaries.
1043         (pass_early_inline): Update for new names.
1044         (inline_transform): Fix formating.
1045         (gate_cgraph_decide_inlining): Rename to ...
1046         (pass_ipa_inline): ... this one.
1047         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1048         * ipa-inline-analysis.c (dump_inline_summary): Update.
1049         (compute_inline_parameters): Do not compute disregard_inline_limits;
1050         look for mismatching arguments.
1051         (estimate_growth): Fix handlig of non-trivial self recursion.
1052         (inline_read_summary): Do not read info->disregard_inline_limits.
1053         (inline_write_summary): Do not write info->disregard_inline_limits.
1054         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1055         and move all checks into can_inline_edge_p predicate; re-enable code
1056         comparing optimization levels.
1057         (expand_call_inline): Do not test inline_forbidden_into_p.
1058         * Makefile.in (ipa-inline.o): Update arguments.
1060 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1062         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1064 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1066         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1068 2011-04-17  Michael Matz  <matz@suse.de>
1070         PR tree-optimization/48622
1071         PR lto/48645
1072         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1073         in same order as they're written.
1075 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1077         * config/pa/predicates.md: Reorganize and simplify predicates.
1078         Eliminate duplicate code checks.
1079         (arith_operand): Rename to arith14_operand
1080         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1081         * config/pa/pa.md: Use renamed operands.
1082         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1083         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1084         arith11_operand, adddi3_operand, indexed_memory_operand,
1085         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1086         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1087         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1088         move_dest_operand, move_src_operand, prefetch_cc_operand,
1089         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1090         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1091         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1092         div_operand, int5_operand, movb_comparison_operator,
1093         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1094         arith_double_operand, ireg_operand, lhs_lshift_operand,
1095         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1096         integer_store_memory_operand): Likewise.
1097         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1098         (integer_store_memory_operand, read_only_operand,
1099         function_label_operand, borx_reg_operand,
1100         non_hard_reg_operand): Likewise.
1101         (eq_neq_comparison_operator): Delete unused operator.
1102         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1103         function_label_operand.
1104         (emit_move_sequence): Likewise.
1106 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1108         * config/i386/sse.md (sseunpackmode): New mode attribute.
1109         (ssepackmode): Ditto.
1110         (vec_pack_trunc_<mode>): Macroize expander from
1111         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1112         (vec_unpacks_lo_<mode>): Macroize expander from
1113         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1114         (vec_unpacks_hi_<mode>): Macroize expander from
1115         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1116         (vec_unpacku_lo_<mode>): Macroize expander from
1117         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1118         (vec_unpacku_hi_<mode>): Macroize expander from
1119         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1120         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1121         ix86_expand_sse4_unpack.
1122         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1124 2011-04-16  Jan Hubicka  <jh@suse.cz>
1126         * cgraphbuild.c: Include ipa-inline.h.
1127         (reset_inline_failed): Use initialize_inline_failed.
1128         * cgraph.c: Include ipa-inline.h.
1129         (cgraph_create_node_1): Do not initialize estimated_growth.
1130         (initialize_inline_failed): More to ipa-inline-analysis.c
1131         (dump_cgraph_node): Do not dump inline flags.
1132         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1133         and disregard_inline_limits flags.
1134         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1135         time, size, estimated_growth.
1136         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1137         Update.
1138         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1139         DECL_DISREGARD_INLINE_LIMITS.
1140         (cgraph_analyze_function): Do not initialize
1141         node->local.disregard_inline_limits.
1142         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1143         inlinable, versionable and disregard_inline_limits.
1144         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1145         cgraph_check_inline_limits, cgraph_default_inline_p,
1146         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1147         add_new_edges_to_heap): Update.
1148         (cgraph_decide_inlining_of_small_function): Update; set
1149         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1150         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1151         cgraph_decide_inlining_incrementally): Update.
1152         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1153         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1154         time, size and estimated_growth parameters.
1155         (estimate_edge_growth): Update.
1156         (initialize_inline_failed): Declare.
1157         * ipa-split.c: Include ipa-inline.h
1158         (execute_split_functions): Update.
1159         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1160         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1161         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1162         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1163         estimated_growth to INT_MIN.
1164         (inline_node_duplication_hook): Likewise.
1165         (dump_inline_summary): Dump new fields.
1166         (compute_inline_parameters): Update.
1167         (estimate_edge_time, estimate_time_after_inlining,
1168         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1169         inline_write_summary):
1170         (initialize_inline_failed): Move here from cgraph.c.
1171         * tree-sra.c: Include ipa-inline.h.
1172         (ipa_sra_preliminary_function_checks): Update.
1173         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1174         ipa-inline.h.
1176 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1178         * config/i386/sse.md (V16): New mode iterator.
1179         (VI1, VI8): Ditto.
1180         (AVXMODEQI, AVXMODEDI): Remove.
1181         (sse2, sse3): New mode attribute.
1182         (mov<mode>): Use V16 mode iterator.
1183         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1184         (push<mode>1): Use V16 mode iterator.
1185         (movmisalign<mode>): Ditto.
1186         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1187         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1188         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1189         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1190         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1191         avx_movdqu<avxmodesuffix>.
1192         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1193         *avx_movdqu<avxmodesuffix>.
1194         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1195         avx_lddqu<avxmodesuffix>.
1196         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1197         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1198         avx_movnt<AVXMODEDI:mode>.
1199         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1200         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1202 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1204         PR target/48629
1205         * haifa-sched.c (prune_ready_list, schedule_block): Use
1206         sched_pressure_p rather than flag_sched_pressure.
1208 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1210         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1211         cgraph_get_node instead of cgraph_get_create_node.
1213 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1215         * cfgexpand.c (expand_debug_expr): Use
1216         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1218 2011-04-15  Michael Matz  <matz@suse.de>
1220         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1221         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1222         * function.c (gimplify_parameters): Ditto.
1223         * gimplify.c (gimplify_vla_decl): Ditto.
1225         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1226         (gimple_call_set_alloca_for_var): New inline function.
1227         (gimple_call_alloca_for_var_p): Ditto.
1228         * gimple.c (gimple_build_call_from_tree): Remember
1229         CALL_ALLOCA_FOR_VAR_P state.
1230         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1232         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1233         calls if they were for VLA objects.
1235 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1237         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1238         of ADR_EXPRs.
1240 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1242         PR middle-end/48601
1243         * tree-emutls.c (lower_emutls_function_body): Call
1244         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1245         result is non-NULL.
1247 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1249         * c-decl.c (detect_field_duplicates): Call
1250         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1252 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1254         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1255         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1256         * ipa-pure-const.c (check_stmt): Call it.
1257         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1259 2011-04-15  Richard Guenther  <rguenther@suse.de>
1261         PR tree-optimization/48290
1262         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1263         Properly decide inhibiting propagation based on the valueized
1264         operand.  Do loop-closed SSA form preserving here ...
1265         (init_copy_prop): ... not here.
1267 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1269         PR target/48612
1270         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1271         (*ieee_smax<mode>3): Likewise.
1273 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1275         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1276         Replace match_operand with match_dup for the third operand in
1277         these expanders.
1279 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1281         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1282         to track processing of conditionals.  Update all callers.
1283         (try_combine, simplify_if_then_else): Update.
1285 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1287         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1288         -fsched-pressure.
1290 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1292         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1293         instead of match_operand for operand 3.
1295 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1297         * recog.h (insn_operand_data): Add an "allows_mem" field.
1298         * genoutput.c (output_operand_data): Initialize it.
1299         * optabs.c (maybe_legitimize_operand_same_code): New function.
1300         (maybe_legitimize_operand): Use it when matching the original
1301         op->value.
1303 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1305         * gimplify.c: Fix issues in comments throughout.
1306         (voidify_wrapper_expr): Fix long line.
1307         (build_stack_save_restore): Likewise.
1308         (gimplify_loop_expr): Likewise.
1309         (gimplify_compound_lval): Likewise.
1310         (gimplify_init_ctor_eval): Likewise.
1311         (gimplify_modify_expr_rhs): Likewise.
1312         (omp_notice_threadprivate_variable): Likewise.
1314 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1316         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1317         original one if this is not a builtin function.
1319 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1321         PR target/48605
1322         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1323         offset it as needed based on top 2 bits in operands[3], change
1324         MEM mode to SFmode and mask those 2 bits away from operands[3].
1326 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1328         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1329         change from objc_declare_protocols() to objc_declare_protocol().
1331 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1333         * config/i386/sse.md (sse4_1): New mode attribute.
1334         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1335         avx_blend<ssemodesuffix><avxmodesuffix> and
1336         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1337         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1338         avx_blendv<ssemodesuffix><avxmodesuffix> and
1339         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1340         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1341         avx_dp<ssemodesuffix><avxmodesuffix> and
1342         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1343         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1344         (sse4_1_packusdw): Merge with *avx_packusdw.
1345         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1346         (sse4_1_pblendw): Merge with *avx_pblendw.
1347         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1348         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1349         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1350         VF mode iterator.
1351         (sse4_1_round<ssescalarmodesuffix>): Merge with
1352         *avx_round<ssescalarmodesuffix>.
1353         (aesenc): Merge with *avx_aesenc.
1354         (aesenclast): Merge with *avx_aesenclast.
1355         (aesdec): Merge with *avx_aesdec.
1356         (aesdeclast): Merge with *avx_aesdeclast.
1357         (pclmulqdq): Merge with *pclmulqdq.
1358         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1359         New predicate.
1360         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1362 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1364         PR middle-end/48608
1365         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1366         (align_local_variable): This.  Update DECL_ALIGN.
1367         (add_stack_var): Updated.
1368         (expand_one_stack_var): Likewise.
1370 2011-04-14  Richard Guenther  <rguenther@suse.de>
1372         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1373         Remove.
1374         (dse_initialize_block_local_data, dse_leave_block,
1375         record_voperand_set, get_stmt_uid): Likewise.
1376         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1377         (dse_optimize_stmt): Remove voperand set handling code.
1378         Simplify and improve to handle any kind of killing stmt.
1379         (dse_record_phi): Remove.
1380         (dse_enter_block): Simplify.
1381         (tree_ssa_dse): Likewise.
1382         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1384 2011-04-14  Jan Hubicka  <jh@suse.cz>
1386         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1387         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1388         (cgraph_local_info): Remove inline_summary.
1389         * ipa-cp.c: Include ipa-inline.h.
1390         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1391         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1392         accesor.
1393         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1394         (input_overwrite_node): Do not set inline summary.
1395         (input_node): Do not stream inline summary.
1396         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1397         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1398         growth; we do not have inline parameters computed for that anyway.
1399         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1400         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1401         (inline_summary_t): New type and VECtor.
1402         (debug_inline_summary, dump_inline_summaries): Declare.
1403         (inline_summary): Use VOCtor.
1404         (estimate_edge_growth): Kill hack computing call stmt size directly.
1405         * lto-section-in.c (lto_section_name): Add inline section.
1406         * ipa-inline-analysis.c: Include lto-streamer.h
1407         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1408         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1409         (inline_summary_vec): Define.
1410         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1411         dump_inline_summaries): New functions.
1412         (estimate_function_body_sizes): Properly compute size/time of outgoing
1413         calls.
1414         (compute_inline_parameters): Alloc inline_summary; do not compute
1415         size/time of incomming calls.
1416         (estimate_edge_time): Avoid missing time summary hack.
1417         (inline_read_summary): Read inline summary info.
1418         (inline_write_summary): Write inline summary info.
1419         (inline_free_summary): Free all hooks and inline summary vector.
1420         * lto-streamer.h: Add LTO_section_inline_summary section.
1421         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1422         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1424 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1426         * tree-vectorizer.h (vect_strided_store_supported): Add a
1427         HOST_WIDE_INT argument.
1428         (vect_strided_load_supported): Likewise.
1429         (vect_permute_store_chain): Return void.
1430         (vect_transform_strided_load): Likewise.
1431         (vect_permute_load_chain): Delete.
1432         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1433         count argument.  Check that the count is a power of two.
1434         (vect_strided_load_supported): Likewise.
1435         (vect_permute_store_chain): Return void.  Update after above changes.
1436         Assert that the access is supported.
1437         (vect_permute_load_chain): Likewise.
1438         (vect_transform_strided_load): Return void.
1439         * tree-vect-stmts.c (vectorizable_store): Update calls after
1440         above interface changes.
1441         (vectorizable_load): Likewise.
1442         (vect_analyze_stmt): Don't check for strided powers of two here.
1444 2011-04-14  Richard Guenther  <rguenther@suse.de>
1446         PR tree-optimization/48590
1447         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1448         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1449         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1450         BUILT_IN_STACK_SAVE.
1451         * tree-ssa-dce.c (propagate_necessity): Handle
1452         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1454 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1456         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1457         objc_declare_class.
1459 2011-04-14  Richard Guenther  <rguenther@suse.de>
1461         * tree.h (get_object_alignment_1): Declare.
1462         * builtins.c (get_object_alignment_1): Split out worker from ...
1463         (get_object_alignment): ... here.
1464         * fold-const.c (get_pointer_modulus_and_residue): Use
1465         get_object_alignment_1.
1467 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1469         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1470         type parameter.
1471         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1472         parameter.  Generalise code to handle arrays as well as vectors.
1473         (vect_setup_realignment): Update accordingly.
1474         * tree-vect-stmts.c (vectorizable_store): Likewise.
1475         (vectorizable_load): Likewise.
1477 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1479         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1480         within the per-copy loop.
1482 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1484         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1485         in the dump file.
1487 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1489         * doc/options.texi (Negative): Explicitly mention that the
1490         Negative chain must be circular.
1492 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1494         * function.h (block_chainon): Declare.
1495         * function.c (block_chainon): Define.
1497 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1498             Eric Weddington  <eric.weddington@atmel.com>
1499             Georg-Johann Lay <avr@gjlay.de>
1501         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1502         New Includes
1503         (avr_init_builtins, avr_expand_builtin,
1504         avr_expand_delay_cycles, avr_expand_unop_builtin,
1505         avr_expand_binop_builtin ): New functions.
1506         (avr_builtin_id): New enum
1507         (struct avr_builtin_description): New struct
1508         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1509         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1511         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1512         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1513         UNSPECV_DELAY_CYCLES): new enumeration values
1514         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1515         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1516         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1517         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1518         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1519         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1520         "fmulsu"): New insns
1522         * config/avr/avr-c.c: fix line endings
1523         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1524         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1525         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1526         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1527         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1529         * doc/extend.texi (AVR Built-in Functions): New node
1530         (Target Builtins): Add documentation of AVR
1531         built-in functions.
1533 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1535         PR target/44643
1536         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1537         alone. Error if non-const data has attribute progmem.
1539 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1541         * tree.h (struct tree_constructor): Include tree_typed instead of
1542         tree_common.
1543         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1544         TS_TYPED instead of TS_COMMON.
1546 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1548         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1549         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1550         (sse2_psadbw): Merge with *avx_psadbw.
1551         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1552         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1553         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1554         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1555         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1556         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1557         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1558         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1559         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1560         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1561         (ssse3_palignrti): Merge with *avx_palignrti.
1563 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1565         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1566         * tree-ssanames.c (fini_ssanames): VEC_free it.
1567         (make_ssa_name_fn): Update for VECness of free_ssanames.
1568         (release_ssa_name, release_dead_ssa_names): Likewise.
1569         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1570         tree_common.
1571         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1572         TS_TYPED instead of TS_COMMON.
1574 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1576         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1577         statistics_counter_event.
1578         * tree-ssa-copyrename.c (stats): Define.
1579         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1580         statistics_counter_event.
1581         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1582         (bswap_stats, widen_mul_stats): Define.
1583         (insert_reciprocals): Increment rdivs_inserted.
1584         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1585         rfuncs_inserted.  Add calls to statistics_counter_event.
1586         (execute_cse_sincos_1): Increment inserted.
1587         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1588         statistics_counter_event.
1589         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1590         of bswap_stats.  Add calls to statistics_counter_event.
1591         (convert_mult_to_widen): Increment widen_mults_inserted.
1592         (convert_plusminus_to_widen): Increment maccs_inserted.
1593         (convert_mult_to_fma): Increment fmas_inserted.
1594         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1595         calls to statistics_counter_event.
1597 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1599         PR rtl-optimization/48455
1600         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1601         `temp_costs->mem_cost'.
1603 2011-04-13  Jan Hubicka  <jh@suse.cz>
1605         * ipa-inline.h: New file.
1606         * ipa-inline-analysis.c: New file. Broken out of ...
1607         * ipa-inline.c: ... this file; update toplevel comment;
1608         include ipa-inline.h
1609         (inline_summary): Move to ipa-inline.h
1610         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1611         ipa-inline-analysis.c.
1612         (cgraph_estimate_time_after_inlining): Rename to
1613         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1614         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1615         to estimate_edge_growth.
1616         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1617         rename to estimate_size_after_inlining.
1618         (cgraph_mark_inline_edge): Update for new naming convention.
1619         (cgraph_check_inline_limits): Likewise.
1620         (cgraph_edge_badness): Likewise.
1621         (cgraph_decide_recursive_inlining): Likewise.
1622         (cgraph_decide_inlining_of_small_functions): Likewise.
1623         (cgraph_decide_inlining_incrementally): Likewise.
1624         (cgraph_estimate_growth): Rename to estimate_growth; move to
1625         ipa-inline-analysis.c.
1626         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1627         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1628         (compute_inline_parameters): Likewise.
1629         (compute_inline_parameters_for_current): Likewise.
1630         (pass_inline_parameters): Likewise.
1631         (inline_indirect_intraprocedural_analysis): Likewise.
1632         (analyze_function): Rename to inline_analyze_function; likewise.
1633         (add_new_function): Move to ipa-inline-analysis.c.
1634         (inline_generate_summary): Likewise.
1635         (inline_read_summary): Likewise.
1636         (inline_write_summary): Likewise.
1637         * Makefile.in (ipa-inline-analysis.c): New file.
1639 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1641         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1642         * configure: Regenerate.
1644 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1646         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1647         instead of tree_common.
1648         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1649         Likewise.
1650         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1651         TS_TYPED rather than TS_COMMON.
1652         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1654 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1656         PR target/45263
1657         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1658         r20 around calls of __tablejump_elpm__
1660 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1662         PR middle-end/48591
1663         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1664         NULL.
1665         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1667 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1669         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1670         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1671         (cfi_vec): New typedef.
1672         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1673         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1674         (cie_cfi_vec): New static variable.
1675         (cie_cfi_head): Delete.
1676         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1677         declaration changed. Use vector rather than list operations.
1678         (new_cfi): Don't initialize the dw_cfi_next field.
1679         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1680         rather than list operations.
1681         (lookup_cfa): Use vector rather than list operations.
1682         (output_cfis): New argument upto. Accept a cfi_vec rather than
1683         a dw_cfi_ref list head as argument. All callers changed.
1684         Iterate over the vector using upto as a maximum index.
1685         (output_all_cfis): New static function.
1686         (output_fde): Use vector rather than list operations. Use the
1687         new upto argument for output_cfis rather than manipulating a
1688         list.
1689         (dwarf2out_begin_prologue): Change initializations to match
1690         new struct members.
1691         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1692         from the vector length rather than searching for the end of a list.
1693         Use output_all_cfis.
1694         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1696 2011-04-13  Nick Clifton  <nickc@redhat.com>
1698         * config/rx/rx.md (movmemsi): Do not use this pattern when
1699         volatile pointers are involved.
1701 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1703         * config/i386/sse.md (pinsrbits): Remove.
1704         (sse2_packsswb): Merge with *avx_packsswb.
1705         (sse2_packssdw): Merge with *avx_packssdw.
1706         (sse2_packuswb): Merge with *avx_packuswb.
1707         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1708         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1709         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1710         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1711         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1712         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1713         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1714         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1715         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1716         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1717         (sse2_loadld): Merge with *avx_loadld.
1718         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1719         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1720         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1721         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1722         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1724 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1726         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1727         calling TREE_CHAIN.
1728         * print-tree.c (print_node): Likewise.
1729         * tree-inline.c (copy_tree_r): Likewise.
1730         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1731         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1732         instead of TS_COMMON.
1733         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1734         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1735         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1736         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1737         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1738         ...and these...
1739         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1740         * tree.h: ...here.
1741         (TREE_CHAIN): Check for a TS_COMMON structure.
1742         (TREE_TYPE): Check for a TS_TYPED structure.
1744 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1746         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1747         cgraph_get_create_node instead of cgraph_node.
1749 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1751         * c-parser.c (c_parser_initelt): Updated call to
1752         objc_build_message_expr.
1753         (c_parser_postfix_expression): Likewise.
1755 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1757         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1758         MASK_MS_BITFIELD_LAYOUT bit.
1760 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1762         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1763         assert it is always true.
1764         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1765         moves.
1767 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1769         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1770         compiling Objective-C to be more efficient.
1772 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1774         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1775         argv_copied.
1777 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1779         * recog.h, genoutput.c, optabs.c: Revert last patch.
1781 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1783         PR target/48090
1784         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1786 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1788         * recog.h (insn_operand_data): Add an "allows_mem" field.
1789         * genoutput.c (output_operand_data): Initialize it.
1790         * optabs.c (maybe_legitimize_operand_same_code): New function.
1791         (maybe_legitimize_operand): Use it when matching the original
1792         op->value.
1794 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1796         * genpreds.c (process_define_predicate): Move most processing
1797         to gensupport.c.  Continue to validate the expression.
1798         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1799         (process_define_predicate): Move processing to gensupport.c.
1800         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1801         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1802         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1803         argument.
1804         (valid_predicate_name_p): New function, split out from old
1805         genpreds.c:process_define_predicate.
1806         (process_define_predicate): New function, combining code from
1807         old genpreds.c and genrecog.c functions.
1808         (process_rtx): Call it for DEFINE_PREDICATE and
1809         DEFINE_SPECIAL_PREDICATE.
1811 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1813         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1814         size of a '%A' memory reference.
1815         (T_DREG, T_QREG): New neon_builtin_type_bits.
1816         (arm_init_neon_builtins): Assert that the load and store operands
1817         are neon_struct_operands.
1818         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1819         (NEON_ARG_MEMORY): New builtin_arg.
1820         (neon_dereference_pointer): New function.
1821         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1822         Handle NEON_ARG_MEMORY.
1823         (arm_expand_neon_builtin): Update after above interface changes.
1824         Use NEON_ARG_MEMORY for loads and stores.
1825         * config/arm/predicates.md (neon_struct_operand): New predicate.
1826         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1827         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1828         (V_four_elem): Tweak formatting.
1829         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1830         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1831         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1832         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1833         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1834         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1835         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1836         Use %A in the output template.
1837         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1838         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1839         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1840         the width of the memory access.  Remove post-increment.
1841         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1843 2011-04-12  Nick Clifton  <nickc@redhat.com>
1845         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1846         instruction for interrupt handlers if the target is the basic V850
1847         architecture.
1848         (expand_epilogue): Likewise.
1850 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1852         PR rtl-optimization/48549
1853         * combine.c (propagate_for_debug): Also stop after BB_END of
1854         this_basic_block.  Process LAST and just stop processing after it.
1855         (combine_instructions): If last_combined_insn has been deleted,
1856         set last_combined_insn to its PREV_INSN.
1858 2011-04-12  Richard Guenther  <rguenther@suse.de>
1860         PR tree-optimization/46076
1861         * gimple.h (struct gimple_statement_call): Add fntype field.
1862         (gimple_call_fntype): Adjust.
1863         (gimple_call_set_fntype): New function.
1864         * gimple.c (gimple_build_call_1): Set the call function type.
1865         * gimplify.c (gimplify_call_expr): Preserve the function
1866         type the frontend used for the call.
1867         (gimplify_modify_expr): Likewise.
1868         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1869         function type.
1870         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1871         function type.
1872         * tree-ssa.c (useless_type_conversion_p): Function pointer
1873         conversions are useless.
1875 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1877         * cgraph.h (cgraph_node): Remove function declaration.
1878         (cgraph_create_node): Declare.
1879         (cgraph_get_create_node): Likewise.
1880         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1881         Updated all callers.
1882         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1883         the decl does not already exist.  Call cgraph_get_create_node instead
1884         of cgraph_node.
1885         (cgraph_get_create_node): New function.
1886         (cgraph_same_body_alias): Update comment.
1887         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1888         assert it does not return NULL.
1889         (cgraph_update_edges_for_call_stmt): Likewise.
1890         (cgraph_clone_edge): Likewise.
1891         (cgraph_create_virtual_clone): Likewise.
1892         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1893         instead of cgraph_node.
1894         (cgraph_add_new_function): Call cgraph_create_node or
1895         cgraph_get_create_node instead of cgraph_node.
1896         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1897         instead of cgraph_node.
1898         (record_eh_tables): Likewise.
1899         (mark_address): Likewise.
1900         (mark_load): Likewise.
1901         (build_cgraph_edges): Call cgraph_get_create_node instead
1902         of cgraph_node.
1903         (rebuild_cgraph_edges): Likewise.
1904         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1905         instead of cgraph_node.
1906         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1907         cgraph_node.
1908         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1909         cgraph_create_node instead of cgraph_node.
1910         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1911         of cgraph_node.
1912         * lto-cgraph.c (input_node): Likewise.
1913         * lto-streamer-in.c (input_function): Likewise.
1914         * varasm.c (mark_decl_referenced): Likewise.
1915         (assemble_alias): Likewise.
1917 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1919         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1920         instead of cgraph_node and assert it does not return NULL.
1921         * lto-streamer-in.c (lto_read_body): Likewise.
1922         * omp-low.c (new_omp_context): Likewise.
1923         (create_task_copyfn): Likewise.
1924         * tree-emutls.c (lower_emutls_function_body): Likewise.
1925         * matrix-reorg.c (transform_allocation_sites): Likewise.
1927 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1929         PR c/48552
1930         * c-typeck.c (build_asm_expr): Error out on attempts to use
1931         void type outputs or inputs for constraints that allow reg or
1932         don't allow memory.
1934 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1935             Richard Earnshaw  <rearnsha@arm.com>
1937         PR target/48250
1938         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1939         to use sign-magnitude offsets. Reject unsupported unaligned
1940         cases. Add detailed description in comments.
1941         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1942         condition from TARGET_32BIT to TARGET_ARM.
1944 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1946         * tree.h (struct typed_tree): New.
1947         (struct tree_common): Include it instead of tree_base.
1948         (TREE_TYPE): Update for new location of type field.
1949         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1950         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1951         (union tree_node): Add typed field.
1952         * treestruct.def (TS_TYPED): New.
1953         * lto-streamer.c (check_handled_ts_structures): Handle it.
1954         * tree.c (MARK_TS_TYPED): New macro.
1955         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1957 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1959         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1960         (force_nonfallthru): Do not alter the loop nest if no basic block
1961         was created.
1963 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1965         * config/i386/sse.md (VI): New mode iterator.
1966         (SSEMODEI): Remove.
1967         (AVX256MODEI): Ditto.
1968         (AVXMODEF4P): Ditto.
1969         (avxvecpsmode): Ditto.
1970         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1971         (sse2_andnot<mode>3): New expander.
1972         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1973         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1974         (<any_logic:code><mode>3): Use VI mode iterator.
1975         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1976         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1977         (*andnottf3): Handle AVX three-operand constraints.
1978         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1980 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1981             Robert Millan  <rmh@gnu.org>
1983         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1984         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1985         GNU_USER_DYNAMIC_LINKER64): Define.
1986         (REG_NAME): Don't undefine.
1987         (MD_UNWIND_SUPPORT): Undefine.
1988         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1989         (REG_NAME): Don't undefine.
1990         (MD_UNWIND_SUPPORT): Undefine.
1991         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1993 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1995         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1996         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1998 2011-04-11  Xinliang David Li  <davidxl@google.com>
2000         * value-profile.c (check_ic_target): New function.
2001         (gimple_ic_transform): Sanity check indirect call target.
2002         * gimple-low.c (gimple_check_call_args): Interface change.
2003         (gimple_check_call_matching_types): New function.
2004         * tree-inline.c (tree_can_inline_p): Call new function.
2006 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2008         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2009         tree-pretty-print.h & realmpfr.h.
2011 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2013         PR middle-end/48464
2014         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2015         (setup_allocno_and_important_classes): Ditto.
2017 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2019         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2020         GNU_USER_DYNAMIC_LINKER.
2021         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2022         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2023         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2024         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2025         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2026         GNU_USER_TARGET_OS_CPP_BUILTINS.
2027         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2028         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2029         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2030         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2031         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2032         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2033         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2034         GNU_USER_TARGET_OS_CPP_BUILTINS.
2035         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2036         GNU_USER_DYNAMIC_LINKER.
2037         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2038         GNU_USER_TARGET_OS_CPP_BUILTINS.
2039         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2040         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2041         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2042         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2043         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2044         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2045         GNU_USER_DYNAMIC_LINKER64): Remove.
2046         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2047         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2048         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2049         GNU_USER_DYNAMIC_LINKER.
2050         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2051         GNU_USER_TARGET_OS_CPP_BUILTINS.
2052         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2053         GNU_USER_TARGET_OS_CPP_BUILTINS.
2054         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2055         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2056         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2057         GNU_USER_TARGET_OS_CPP_BUILTINS.
2058         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2059         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2060         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2061         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2062         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2063         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2064         GNU_USER_DYNAMIC_LINKER.
2065         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2066         GNU_USER_TARGET_OS_CPP_BUILTINS.
2067         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2068         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2069         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2070         GNU_USER_DYNAMIC_LINKER.
2071         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2072         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2073         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2074         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2075         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2076         GNU_USER_DYNAMIC_LINKER.
2077         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2078         GNU_USER_DYNAMIC_LINKERN32.
2079         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2080         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2081         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2082         GNU_USER_DYNAMIC_LINKER32.
2083         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2084         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2085         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2086         GNU_USER_DYNAMIC_LINKER.
2087         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2088         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2089         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2090         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2091         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2092         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2093         GNU_USER_DYNAMIC_LINKER32.
2094         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2095         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2096         GNU_USER_DYNAMIC_LINKER.
2097         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2098         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2099         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2100         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2101         GNU_USER_DYNAMIC_LINKER64.
2102         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2103         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2104         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2105         GNU_USER_DYNAMIC_LINKER.
2106         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2107         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2108         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2109         GNU_USER_DYNAMIC_LINKER.
2110         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2111         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2112         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2113         GNU_USER_DYNAMIC_LINKER32.
2114         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2115         GNU_USER_DYNAMIC_LINKER64.
2116         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2117         GNU_USER_DYNAMIC_LINKER64.
2118         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2119         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2120         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2121         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2122         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2124 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2126         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2127         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2128         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2129         GNU_USER_DYNAMIC_LINKER.
2130         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2131         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2132         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2133         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2134         GNU_USER_DYNAMIC_LINKER64.
2135         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2136         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2137         GNU_USER_LINK_EMULATION.
2138         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2139         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2140         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2141         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2142         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2143         CPP_SPEC, CC1_SPEC): Remove.
2144         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2145         (GNU_USER_DYNAMIC_LINKER): Define.
2146         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2147         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2148         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2149         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2150         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2151         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2152         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2153         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2154         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2155         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2156         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2157         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2158         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2159         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2160         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2161         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2162         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2163         GNU_USER_DYNAMIC_LINKER.
2164         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2165         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2166         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2167         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2168         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2169         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2170         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2171         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2172         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2173         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2175 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2177         PR target/9601
2178         PR target/11772
2179         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2180         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2181         comment.
2182         (ix86_is_msabi_thiscall): Removed.
2183         (ix86_is_type_thiscall): Likewise.
2184         (ix86_get_callcvt): New function.
2185         (ix86_comp_type_attributes): Simplify check.
2186         (ix86_function_regparm): Use ix86_get_callcvt for calling
2187         convention attribute checks.
2188         (ix86_return_pops_args): Likewise.
2189         (ix86_static_chain): Likewise.
2190         (x86_this_parameter): Likewise.
2191         (x86_output_mi_thunk): Likewise.
2192         (ix86_function_type_abi): Optimize check for types without attributes.
2193         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2194         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2195         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2196         by flag-values.
2197         (IX86_BASE_CALLCVT): Helper macro.
2198         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2199         Use ix86_get_callcvt for calling convention attribute checks and avoid
2200         symbol-decoration for stdcall in TARGET_RTD case.
2201         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2202         Likewise.
2203         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2204         for declaration.
2206 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2208         * config/i386/sse.md (VI_128): New mode iterator.
2209         (VI12_128): Rename from SSEMODE12.
2210         (VI14_128): Rename from SSEMODE14.
2211         (VI124_128): New mode iterator.
2212         (VI24_128): Rename from SSEMODE248.
2213         (VI248_128): Rename from SSEMODE248.
2214         (SSEMODE124C8): Remove.
2215         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2216         (*sse2_<plusminus_insn><mode>3): Merge with
2217         *avx_<plusminus_insn><mode>3.
2218         (*mulv8hi3): Merge with *avx_mulv8hi3.
2219         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2220         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2221         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2222         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2223         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2224         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2225         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2226         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2227         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2228         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2229         (*<smaxmin:code>v8hi3): Ditto.
2230         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2231         (*<smaxmin:code>v16qi3): Ditto.
2232         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2233         (*sse2_eq<mode>3): Ditto.
2234         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2235         (*sse2_gt<mode>3): Ditto.
2236         (vcondv2di): Split out of vcond<mode>.
2237         (vconduv2di): Split out of vcondu<mode>.
2239 2011-04-11  Richard Guenther  <rguenther@suse.de>
2241         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2242         before calling tree_low_cst.
2244 2011-04-11  Richard Guenther  <rguenther@suse.de>
2246         * stor-layout.c (layout_type): Compute all array index size operations
2247         in the original type.
2248         (initialize_sizetypes): Add comment.
2249         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2251 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2253         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2255 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2257         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2258         of cgraph_node, handle NULL return value.
2259         (cgraph_global_info): Likewise.
2260         (cgraph_rtl_info): Likewise.
2261         * tree-inline.c (estimate_num_insns): Likewise.
2262         * gimplify.c (unshare_body): Likewise.
2263         (unvisit_body): Likewise.
2264         (gimplify_body): Likewise.
2265         * predict.c (optimize_function_for_size_p): Likewise.
2266         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2267         (call_may_clobber_ref_p_1): Likewise.
2268         * varasm.c (function_section_1): Likewise.
2269         (assemble_start_function): Likewise.
2271 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2273         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2274         of cgraph_node.
2275         * final.c (rest_of_clean_state): Likewise.
2276         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2277         * passes.c (pass_init_dump_file): Likewise.
2278         (execute_all_ipa_transforms): Likewise.
2279         (function_called_by_processed_nodes_p): Likewise.
2280         * predict.c (maybe_hot_frequency_p): Likewise.
2281         (probably_never_executed_bb_p): Likewise.
2282         (compute_function_frequency): Likewise.
2283         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2284         (unnest_nesting_tree_1): Likewise.
2285         (lower_nested_functions): Likewise.
2286         * tree-optimize.c (execute_fixup_cfg): Likewise.
2287         (tree_rest_of_compilation): Likewise.
2288         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2289         * tree-sra.c (ipa_early_sra): Likewise.
2290         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2291         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2292         * ipa.c (record_cdtor_fn): Likewise.
2293         * ipa-inline.c (cgraph_early_inlining): Likewise.
2294         (compute_inline_parameters_for_current): Likewise.
2295         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2296         * ipa-pure-const.c (local_pure_const): Likewise.
2297         * ipa-split.c (split_function): Likewise.
2298         (execute_split_functions): Likewise.
2299         * cgraphbuild.c (build_cgraph_edges): Likewise.
2300         (rebuild_cgraph_edges): Likewise.
2301         (cgraph_rebuild_references): Likewise.
2302         (remove_cgraph_callee_edges): Likewise.
2303         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2304         (verify_cgraph_node): Likewise.
2305         (cgraph_analyze_functions): Likewise.
2306         (cgraph_preserve_function_body_p): Likewise.
2307         (save_inline_function_body): Likewise.
2308         (save_inline_function_body): Likewise.
2309         * tree-inline.c (copy_bb): Likewise.
2310         (optimize_inline_calls): Likewise.
2312 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2314         PR tree-optimization/48195
2315         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2316         ipa_check_create_edge_args.
2317         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2318         ipa_check_create_edge_args.
2319         * ipa-inline.c (inline_generate_summary): Do not call
2320         ipa_check_create_node_params and ipa_check_create_edge_args.
2321         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2322         ipa_check_create_edge_args.
2324 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2326         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2327         instead of loop.
2328         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2329         * function.c (record_hard_reg_sets): Likewise.
2330         * ira.c (compute_regs_asm_clobbered): Likewise.
2331         * sched-deps.c (sched_analyze_1): Likewise.
2332         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2334 2011-04-09  Xinliang David Li  <davidxl@google.com>
2336         PR tree-optimization/PR48484
2337         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2338         has_valid_pred lazily
2340 2011-04-09  Duncan Sands  <baldrick@free.fr>
2342         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2344 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2346         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2347         cost of I0 to zero at the end, if any.
2349 2011-04-08  Xinliang David Li  <davidxl@google.com>
2351         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2352         to insane profile data.
2354 2011-04-08  Xinliang David Li  <davidxl@google.com>
2356         * ipa-cp.c (ipcp_update_profiling): Correct
2357          negative scale factor due to insane profile data.
2359 2011-04-08  Xinliang David Li  <davidxl@google.com>
2361         * final.c (dump_basic_block_info): New function.
2362         (final): Dump basic block.
2363         (final_scan_insn): Remove old dump.
2365 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2367         PR target/47829
2368         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2369         crtbegin/crtend.
2371 2011-04-08  Michael Matz  <matz@suse.de>
2373         PR middle-end/48389
2374         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2375         functions.
2376         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2377         * rtl.h (rebuild_jump_labels_chain): Declare.
2378         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2379         insns inserted on edges.
2381 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2383         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2384         * config/arm/arm-arches.def: New.
2385         * config/arm/arm-opts.h: New.
2386         * config/arm/genopt.sh: New.
2387         * config/arm/arm-tables.opt: New (generated).
2388         * config/arm/arm.c (arm_handle_option, arm_target_help,
2389         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2390         (all_architectures): Get most table contents from arm-arches.def.
2391         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2392         arm_selected_tune here.
2393         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2394         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2395         (march=, mcpu=, mtune=): Use Enum and Var.
2396         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2397         (arm.o): Update dependencies.
2399 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2401         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2402         of header_file.
2403         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2404         (write_typed_alloc_defns): Likewise.
2405         (main): Calls write_typed_alloc_defns with output_header.
2407 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2409         PR inline-asm/48435
2410         * ira-color.c (setup_profitable_hard_regs): Add comments.
2411         Don't take prohibited hard regs into account.
2412         (setup_conflict_profitable_regs): Rename to
2413         get_conflict_profitable_regs.
2414         (check_hard_reg_p): Check prohibited hard regs.
2416 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2418         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2419         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2420         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2422 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2424         PR target/48366
2425         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2426         move from floating point to shift amount register.
2427         (emit_move_sequence): Remove secondary reload support for floating
2428         point to shift amount amount register copies.
2429         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2430         amount register copies.
2431         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2432         register, return false if mode isn't a scalar integer mode.
2433         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2435 2011-04-08  Richard Guenther  <rguenther@suse.de>
2437         * gimple.c (gimple_call_flags): Remove kludge.
2439 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2441         * sel-sched.c (sel_region_init): Move call to
2442         sel_setup_region_sched_flags after setup_current_loop_nest.
2444 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2446         PR rtl-optimization/48272
2447         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2448         init_insn_reg_pressure_info.  Adjust a caller.
2449         * sched-int.h (init_insn_reg_pressure_info): Declare.
2450         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2451         when sched-pressure is enabled.
2453 2011-04-08  Richard Guenther  <rguenther@suse.de>
2455         * gimple.c (gimple_set_modified): Do not queue calls to
2456         MODIFIED_NORETURN_CALLS here ...
2457         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2459 2011-04-08  Richard Guenther  <rguenther@suse.de>
2461         PR lto/48467
2462         * toplev.c (lang_dependent_init): Do not open asm_out_file
2463         in WPA mode, nor perform debug machinery initialization.
2464         (finalize): Do not unlink asm_out_file in WPA mode.
2466 2011-04-08  Richard Guenther  <rguenther@suse.de>
2468         * gimple.h (gimple_call_fntype): New function.
2469         (gimple_call_return_type): Use it.
2470         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2471         * gimple-low.c (gimple_check_call_args): Likewise.
2472         * gimple.c (gimple_call_flags): Likewise.
2473         (gimple_call_arg_flags): Likewise.
2474         (gimple_call_return_flags): Likewise.
2475         * tree-cfg.c (verify_gimple_call): Likewise.
2476         (do_warn_unused_result): Likewise.
2477         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2478         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2480 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2482         PR rtl-optimization/48235
2483         * sel-sched.c (code_motion_process_successors): Recompute the last
2484         insn in basic block if control flow changed.
2485         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2486         Update condition for ilist_remove.
2488 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2490         PR rtl-optimization/48302
2491         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2492         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2493         it to record added preheader blocks.
2494         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2495         on to sel_add_loop_preheaders.
2496         (sel_region_init): Move call to setup_current_loop_nest after
2497         sel_init_bbs.
2499 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2501         PR target/48273
2502         * cfgloop.h (loop_has_exit_edges): New helper.
2503         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2504         non-clonable.
2505         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2506         that have no exit edges.
2508 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2510         PR rtl-optimization/48442
2511         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2512         all callers.  Adjust assert.
2514 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2516         PR tree-optimization/48377
2517         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2518         is_packed to true even for types with smaller TYPE_ALIGN than
2519         TYPE_SIZE.
2521 2011-04-08  Richard Guenther  <rguenther@suse.de>
2523         PR bootstrap/48513
2524         * doc/tm.texi: Re-generate.
2526 2011-04-08  Wei Guozhi  <carrot@google.com>
2528         PR target/47855
2529         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2530         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2531         * config/arm/arm.md (*push_multi): Change the length computation to
2532         call a C function.
2534 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2536         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2537         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2538         * doc/tm.texi: Regenerate.
2539         * system.h (ASM_OUTPUT_BSS): Poison.
2540         * varasm.c (asm_output_bss): Remove function.
2541         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2543         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2544         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2545         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2546         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2547         Likewise.
2548         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2549         Likewise.
2550         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2551         Likewise.
2552         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2554 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2556         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2557         EnumValue lines.
2559 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2561         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2562         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2563         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2564         OPT_mcpu32.
2565         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2566         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2567         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2568         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2569         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2570         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2571         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2572         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2573         options.  Don't map other m68k options manually.  Don't handle
2574         old-style options as canonical.
2575         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2576         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2578 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2580         * basic-block.h (force_nonfallthru): Move to...
2581         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2582         (force_nonfallthru): ...here.
2583         * cfghooks.c (force_nonfallthru): New function.
2584         * cfgrtl.c (force_nonfallthru): Rename into...
2585         (rtl_force_nonfallthru): ...this.
2586         (commit_one_edge_insertion): Do not set AUX field.
2587         (commit_edge_insertions): Do not discover new basic blocks.
2588         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2589         (cfg_layout_rtl_cfg_hooks): Likewise.
2590         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2591         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2592         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2594 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2596         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2597         Remove macros.
2599 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2601         * config/i386/sse.md: Update copyright year.
2602         (avxcvtvecmode): Remove.
2603         (sse_movhlps): Merge with *avx_movhlps.
2604         (sse_movlhps): Merge with *avx_movlhps.
2605         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2606         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2607         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2608         (sse_loadhps): Merge with *avx_loadhps.
2609         (sse_storelps): Merge with *avx_storelps.
2610         (sse_loadlps): Merge with *avx_loadlps.
2611         (sse_movss): Merge with *avx_movss.
2612         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2613         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2614         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2615         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2616         (vec_set<mode>_0): Ditto.
2617         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2618         (sse4_1_insertps): Merge with *avx_insertps.
2619         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2620         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2621         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2622         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2623         (sse2_storehpd): Merge with *avx_storehpd.
2624         (sse2_loadhpd): Merge with *avx_loadhpd.
2625         (sse2_loadlpd): Merge with *avx_loadlpd.
2626         (sse2_movsd): Merge with *avx_movsd.
2627         (*vec_concatv2df): Merge with *vec_concatv2df.
2629 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2631         PR debug/48343
2632         * combine.c (combine_instructions): Add last_combined_insn,
2633         update it if insn is after it, pass it to all try_combine calls.
2634         (try_combine): Add last_combined_insn parameter, pass it instead of
2635         i3 to propagate_for_debug.
2637 2011-04-07  Nick Clifton  <nickc@redhat.com>
2639         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2640         to handle MDR <-> data register transfers.
2641         (movhi_internal): Likewise.
2643 2011-04-07  Alan Modra  <amodra@gmail.com>
2645         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2646         previous stack info.
2648 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2650         PR target/43920
2651         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2652         flow_find_cross_jump.  Swap variables to implement backward replacement.
2653         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2655 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2657         PR target/43920
2658         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2659         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2660         and bb2.
2661         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2662         src1 or src2.  Redirect edges to the last basic block.  Update
2663         frequency and count on multiple basic blocks in case of fallthru.
2665 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2667         PR target/43920
2668         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2669         function.
2670         (old_insns_match_p): Change return type.  Replace return false/true
2671         with return dir_none/dir_both.  Use can_replace_by.
2672         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2673         direction from dir_p.  Register replacement direction in dir, last_dir
2674         and afterlast_dir.  Handle new return type of old_insns_match_p using
2675         merge_dir.  Return replacement direction in dir_p.
2676         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2677         return type of old_insns_match_p.
2678         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2679         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2680         flow_find_cross_jump.
2681         * basic-block.h (enum replace_direction): New type.
2682         (flow_find_cross_jump): Add parameter to declaration.
2684 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2686         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2687         (AVXMODEDCVTPS2DQ): Ditto.
2688         (VEC_FLOAT_MODE): Ditto.
2689         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2690         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2691         (<any_logic:code><mode>3): Use VF mode iterator.
2692         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2693         Use VF mode iterator.
2694         (copysign<mode>3): Use VF mode iterator.
2695         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2696         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2697         (*<any_logic:code><MODEF:mode>3): Merge with
2698         *avx_<any_logic:code><MODEF:mode>3.
2699         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2700         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2701         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2702         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2703         (sse2_cvtdq2ps): Use %v modifier.
2704         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2705         (avx_cvtps2dq<avxmodesuffix>): Remove.
2706         (sse2_cvtps2dq): Use %v modifier.
2707         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2708         (avx_cvttps2dq<avxmodesuffix>): Remove.
2709         (sse2_cvttps2dq): Use %v modifier.
2710         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2711         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2712         (sse2_cvtsd2siq): Fix insn template.
2713         (sse2_cvtsd2siq_2): Ditto.
2714         (sse2_cvttsd2siq): Ditto.
2715         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2716         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2718 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2720         * gcov-io.c: Use GCC Runtime Library Exception.
2722 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2724         PR debug/48466
2725         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2726         as base_reg whatever register reg has been eliminated to, instead
2727         of hardcoding STACK_POINTER_REGNUM.
2729 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2731         * doc/tm.texi.in: Document C target hooks as separate from general
2732         target hooks.
2733         * doc/tm.texi: Regenerate.
2734         * genhooks.c (struct hook_desc): Add docname field.
2735         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2736         docname field.
2737         (hook_array): Include c-target.def.
2738         (emit_documentation): Use docname field in output.
2739         (emit_init_macros): Take docname argument.  Only emit definitions
2740         for hooks matching docname.
2741         (main): Expect additional arguments in all cases.  Pass argument
2742         to emit_init_macros.
2743         * target.def: Move initial macro definitions and comments to
2744         target-hooks-macros.h.
2745         (gcc_targetcm): Move to c-family/c-target.def.
2746         * target.h (targetcm): Move declaration to c-family/c-target.h.
2747         * targhooks.c (default_handle_c_option): Move to
2748         c-family/c-opts.c.
2749         * targhooks.h (default_handle_c_option): Move declaration to
2750         c-family/c-common.h.
2751         * target-hooks-macros.h: New file.
2752         * config.gcc (target_has_targetcm): Define and use to add to
2753         c_target_objs and cxx_target_objs.
2754         * config/default-c.c: New file.
2755         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2756         of target.h and target-def.h.
2757         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2758         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2759         darwin_check_cfstring_format_arg): Make static.
2760         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2761         TARGET_STRING_OBJECT_REF_TYPE_P,
2762         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2763         * config/darwin-protos.h (darwin_objc_construct_string,
2764         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2765         declare.
2766         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2767         TARGET_STRING_OBJECT_REF_TYPE_P,
2768         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2769         * config/t-darwin (darwin-c.o): Update dependencies.
2770         * system.h (TARGET_HAS_TARGETCM): Poison.
2771         * Makefile.in (TARGET_H): Update.
2772         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2773         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2774         (default-c.o): New target.
2775         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2776         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2777         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2778         c-target.def.
2779         (build/genhooks.o): Update dependencies.
2781 2011-04-06  Richard Guenther  <rguenther@suse.de>
2783         * ipa-inline.c (enum inlining_mode): Remove.
2784         (cgraph_flatten): Use some other token.
2785         (cgraph_edge_early_inlinable_p): New function, split out from ...
2786         (cgraph_perform_always_inlining): New function, split out from ...
2787         (cgraph_decide_inlining_incrementally): ... here.
2788         (cgraph_mark_inline_edge): Adjust.
2789         (cgraph_early_inlining): Re-structure.
2790         (pass_early_inline): Require SSA form.
2792 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2793             Julian Brown  <julian@codesourcery.com>
2794             Mark Shinwell  <shinwell@codesourcery.com>
2796         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2797         LO_REGS only for Thumb-1.
2798         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2799         be used in short instructions when optimising for size on Thumb-2.
2801 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2803         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2804         associated with user returns to be preserved.
2806 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2808         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2809         symbol_queue_size, DBXOUT_DECR_NESTING,
2810         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2811         if XCOFF_DEBUGGING_INFO.
2813 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2815         * config/i386/i386.md (attribute isa): New.
2816         (attribute enabled): New.
2817         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2818         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2819         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2820         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2821         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2822         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2823         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2824         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2826         * config/i386/sse.md (VF): New mode iterator.
2827         (VF1): Ditto.
2828         (VF2): Ditto.
2829         (VF_128): Ditto.
2830         (SSEMODEF4): Remove.
2831         (attribute sse): Handle V8SF and V4DF modes.
2832         (<absneg:code><mode>2): Use VF mode iterator.
2833         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2834         mode iterator.
2835         (<plusminus_insn><mode>3): Use VF mode iterator.
2836         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2837         Use VF mode iterator.
2838         (<sse>_vm<plusminus_insn><mode>3): Merge with
2839         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2840         (mul<mode>3): Use VF mode iterator.
2841         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2842         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2843         mode iterator.
2844         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2845         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2846         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2847         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2848         mode iterator.
2849         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2850         Use VF1 mode iterator.
2851         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2852         (sqrt<VF2:mode>2): New expander.
2853         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2854         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2855         and sqrtv2df2.  Use VF mode iterator.
2856         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2857         mode iterator.
2858         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2859         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2860         Use VF1 mode iterator.
2861         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2862         (<smaxmin:code><mode>3): Use VF mode iterator.
2863         (*<smaxmin:code><mode>3_finite): Merge with
2864         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2865         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2866         (<sse>_vm<smaxmin:code><mode>2): Merge with
2867         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2868         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2869         mode iterator.
2870         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2871         mode iterator.
2872         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2873         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2874         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2875         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2876         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2877         VF mode iterator.
2878         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2879         Use VF_128 mode iterator.
2880         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2881         mode iterator.
2882         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2883         VF_128 mode iterator.
2884         (vcond<mode>): Use VF mode iterator.
2885         * config/i386/predicates.md (sse_comparison_operator): Merge with
2886         avx_comparison_float_operator.  Do not declare as special_predicate.
2887         * config/i386/i386.c (struct builtin_description): Update for renamed
2888         compare patterns.
2889         (ix86_expand_args_builtin): Ditto.
2890         (ix86_expand_sse_compare_mask): Ditto.
2892 2011-04-06  Richard Guenther  <rguenther@suse.de>
2894         * tree-inline.c (estimate_num_insns): For calls simply account
2895         for all passed arguments and a used return value.
2897 2011-04-06  Richard Guenther  <rguenther@suse.de>
2899         PR tree-optimization/47663
2900         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2901         call_stmt_time fields.
2902         (cgraph_edge_inlinable_p): Declare.
2903         (cgraph_edge_recursive_p): New inline function.
2904         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2905         (cgraph_clone_edge): Copy it.
2906         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2907         Account for call stmt time.
2908         (cgraph_estimate_time_after_inlining): Take edge argument.
2909         (cgraph_estimate_edge_growth): Account call stmt size.
2910         (cgraph_estimate_size_after_inlining): Take edge argument.
2911         (cgraph_mark_inline_edge): Adjust.
2912         (cgraph_check_inline_limits): Likewise.
2913         (cgraph_recursive_inlining_p): Remove.
2914         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2915         (cgraph_decide_recursive_inlining): Take edge argument and
2916         adjust.
2917         (cgraph_decide_inlining_of_small_functions): Do not avoid
2918         diags for recursive inlining here.
2919         (cgraph_flatten): Adjust.
2920         (cgraph_decide_inlining_incrementally): Likewise.
2921         (estimate_function_body_sizes): Remove call cost handling.
2922         (compute_inline_parameters): Initialize caller edge call costs.
2923         (cgraph_estimate_edge_growth): New function.
2924         (cgraph_estimate_growth): Use it.
2925         (cgraph_edge_badness): Likewise.
2926         (cgraph_check_inline_limits): Take an edge argument.
2927         (cgraph_decide_inlining_of_small_functions): Adjust.
2928         (cgraph_decide_inlining): Likewise.
2929         * tree-inline.c (estimate_num_insns): Only account for call
2930         return value if it is used.
2931         (expand_call_inline): Avoid diagnostics on recursive inline
2932         functions here.
2933         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2934         (input_edge): Input edge call costs.
2936 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2938         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2940 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2942         * doc/invoke.texi (Spec Files): Fix typo.
2944 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2946         * profile.c (branch_prob): Move declaration of local variable.  Remove
2947         obsolete ??? comment.  Expand the location explicitly instead of using
2948         the LOCATION_FILE and LOCATION_LINE macros.
2950 2011-04-06  Wei Guozhi  <carrot@google.com>
2952         PR target/47855
2953         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2954         (arm_cond_branch): Likewise.
2955         (arm_cond_branch_reversed): Likewise.
2956         (arm_jump): Likewise.
2957         (push_multi): Likewise.
2958         * config/arm/constraints.md (Py): New constraint.
2960 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2962         PR bootstrap/48471
2963         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2964         Move these...
2965         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2966         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2967         #ifdef DBX_DEBUGGING_INFO.
2969 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2971         PR bootstrap/48403
2972         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2973         if old and new states differ.
2975 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2977         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2978         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2979         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2980         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2981         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2982         mcfv4e): Use Alias.
2983         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2984         ColdFire options to -mcpu= options.
2986 2011-04-05  Jeff Law  <law@redhat.com>
2988         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2989         check if BB is a successor of LOOP->header and return
2990         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2992 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2994         * cprop.c (struct reg_use): Remove.
2995         (reg_use_table): Make an array of RTX.
2996         (find_used_regs, constprop_register, local_cprop_pass,
2997         bypass_block): Simplify users of reg_use_table.
2998         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2999         on one of the uses found by find_used_regs.
3001 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3003         PR bootstrap/48469
3004         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3005         declaration.
3007 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3009         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3010         as an rtx.
3011         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3013 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3015         PR middle-end/48441
3016         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3018 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3020         * combine.c: Include obstack.h.
3021         (struct insn_link): Define.
3022         (uid_log_links): Adjust type.
3023         (FOR_EACH_LOG_LINK): New macro.
3024         (insn_link_obstack): Declare.
3025         (alloc_insn_link): Define.
3026         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3027         type of link variables.
3028         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3029         (try_combine, record_promoted_values, distribute_notes): Likewise.
3030         (distribute_links): Likewise.  Tweak prototype.
3031         (clear_log_links): Delete.
3032         (adjust_for_new_dest): Call alloc_insn_link.
3033         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3035 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3037         * gcse.c (modify_mem_list): Convert to an array of VECs.
3038         (canon_modify_mem_list, compute_transp): Tweak formatting.
3039         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3040         (load_killed_in_block_p): Likewise.
3041         (record_last_mem_set_info): Likewise.
3042         (clear_modify_mem_tables): Likewise.
3044 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3046         PR middle-end/48461
3047         * function.c (emit_use_return_register_into_block): Only define if
3048         HAVE_return.
3050 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3052         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3054 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3056         * config/rx/rx-opts.h: New.
3057         * config/rx/rx.c (rx_cpu_type): Remove.
3058         (rx_handle_option): Don't assert that global structures are in
3059         use.  Access variables via opts pointer.  Defer most handling of
3060         OPT_mint_register_.  Use error_at.
3061         (rx_option_override): Handle deferred OPT_mint_register_ here.
3062         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3063         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3064         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3065         (rx_cpu_types): New Enum and EnumValue entries.
3066         (mint-register=): Use Defer and use Var accordingly.
3068 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3070         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3071         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3072         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3073         Move these...
3074         (debug_free_queue, debug_nesting, symbol_queue_index):
3075         ...and these...
3076         * dbxout.c: ...to here.  Make static.
3078 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3080         * gcse.c (modify_pair): Define.  Define a VEC of it.
3081         (canon_modify_mem_list): Convert to an array of VECs.
3082         (free_insn_expr_list_list): Delete.
3083         (clear_modify_mem_tables): Call VEC_free instead.
3084         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3085         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3086         (canon_list_insert, compute_transp): Likewise.
3088 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3090         PR target/43920
3091         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3092         for size.
3094 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3096         PR target/43920
3097         * function.c (emit_use_return_register_into_block): New function.
3098         (thread_prologue_and_epilogue_insns): Use
3099         emit_use_return_register_into_block.
3101 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3103         PR target/43920
3104         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3105         insn.
3107 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3109         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3111 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3113         * config/arm/arm.md (define_constants for unspec): Replace with
3114         define_c_enum.
3115         (define_constants for unspecv): Replace with define_c_enum.
3116         * config/arm/neon.md (define_constants for unspec): Replace with
3117         define_c_enum.
3119 2011-04-04  Richard Henderson  <rth@redhat.com>
3121         PR bootstrap/48400
3122         * dwarf2out.c (output_line_info): Always emit line info from
3123         at least one section.
3124         (dwarf2out_init): Create text_section_line_info here ...
3125         (set_cur_line_info_table): ... not here.
3127 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3129         PR target/48380
3130         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3131         not called.
3133         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3135 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3137         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3138         (expr_equiv_p): Remove.
3139         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3140         (hash_scan_set): Update call to insert_set_in_table.
3141         (dump_hash_table): Dump <dest, src> pair.
3142         (lookup_set): Simplify.  Lookup <dest, src> pair.
3143         (compute_transp): Remove, fold heavily simplified code into...
3144         (compute_local_properties): ...here.  Expect COMP and TRANSP
3145         unconditionally.
3146         (find_avail_set): Take set directly from struct expr.
3147         (find_bypass-set): Likewise.
3148         (bypass_block): Likewise.
3149         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3151         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3152         checks on form of COND from find_implicit_sets to here.
3153         (find_implicit_sets): Cleanup control flow. Split critical edges
3154         if it exposes implicit sets.  Allocate/resize implicit_sets as
3155         necessary.
3156         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3157         changed something.  Run df_analyze after find_implicit_sets if any
3158         edges were split.  Do not allocate implicit_sets here.
3160         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3161         (gcse_obstack): Renamed to cprop_obstack.
3162         (GNEW, GNEWVEC, GNEWVAR): Remove.
3163         (gmalloc): Remove.
3164         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3165         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3166         (gcse_alloc): Likewise, and rename to cprop_alloc.
3167         (alloc_gcse_men, free_gcse_mem): Remove.
3168         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3169         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3170         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3172         * cprop.c (oprs_not_set_p): Remove.
3173         (mark_set, mark_clobber): Remove.
3174         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3175         (reg_not_set_p): New function.
3176         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3177         (cprop_insn): Likewise.
3178         (cprop_jump): Use FOR_EACH_EDGE.
3180 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3182         PR bootstrap/48403
3183         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3184         (rank_for_schedule): Use scheduled_insns vector instead of
3185         last_scheduled_insn.
3186         (ok_for_early_queue_removal): Likewise.
3187         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3188         we have a dbg_cnt.
3189         (choose_ready): Likewise.
3190         (commit_schedule): Use VEC_iterate.
3191         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3192         a dbg_cnt, use it and ensure the first insn is in the ready list.
3193         (haifa_sched_init): Allocate scheduled_insns.
3194         (sched_extend_ready_list): Don't allocate it; reserve space.
3195         (haifa_sched_finish): Free it.
3197 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3199         * optc-gen.awk: Always remove type from Variable entry before
3200         recording in var_seen.
3202 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3204         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3205         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3206         call to tidy_fallthru_edges.
3208 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3210         * doc/options.texi (ToLower): Document.
3211         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3212         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3213         * opts.h (cl_option): Add cl_tolower field.
3214         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3215         arguments with lowercase strings.
3216         * config/rx/rx.opt (mcpu=): Add ToLower.
3217         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3218         argument.
3220 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3222         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3224 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3226         * config/vax/vax.c: Include reload.h.
3228 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3230         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3231         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3232         (sparc_preferred_reload_class): New function.
3234 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3236         PR debug/48401
3237         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3238         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3240 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3242         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3243         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3245 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3247         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3248         (ASM_OUTPUT_ALIGNED_BSS): Define.
3250 2011-04-03  Michael Matz  <matz@suse.de>
3252         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3253         and next_slot members.
3254         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3255         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3256         (lto_streamer_cache_append): Declare.
3257         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3258         unsigned index, remove offset parameter, ensure that we append
3259         or update existing entries.
3260         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3261         parameter, update next_slot for append.
3262         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3263         parameter.
3264         (lto_streamer_cache_insert_at): Likewise.
3265         (lto_streamer_cache_append): New function.
3266         (lto_streamer_cache_lookup): Use unsigned index.
3267         (lto_streamer_cache_get): Likewise.
3268         (lto_record_common_node): Don't test tree_node_can_be_shared.
3269         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3270         (lto_streamer_cache_delete): Don't free offsets member.
3271         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3272         (lto_output_string_with_length): Use lto_output_data_stream.
3273         (lto_output_tree_header): Remove ix parameter, don't write it.
3274         (lto_output_builtin_tree): Likewise.
3275         (lto_write_tree): Adjust callers to above, don't track and write
3276         offset, write unsigned index.
3277         (output_unreferenced_globals): Don't emit all global vars.
3278         (write_global_references): Use unsigned indices.
3279         (lto_output_decl_state_refs): Likewise.
3280         (write_symbol): Likewise.
3281         * lto-streamer-in.c (lto_input_chain): Move earlier.
3282         (input_function): Use unsigned index.
3283         (input_alias_pairs): Don't read and then ignore all global vars.
3284         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3285         don't pass it back, use lto_streamer_cache_append.
3286         (lto_register_var_decl_in_symtab): Use unsigned index.
3287         (lto_register_function_decl_in_symtab): Likewise.
3288         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3289         index.
3290         (lto_get_builtin_tree): Don't read index, use
3291         lto_streamer_cache_append.
3292         (lto_read_tree): Adjust call to lto_materialize_tree.
3294         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3295         don't use function calls in arguments to MIN.
3297         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3298         twice.
3300         * gimple.c (gimple_type_leader_entry): Mark deletable.
3302 2011-04-03  Alan Modra  <amodra@gmail.com>
3304         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3306 2011-04-03  Michael Matz  <matz@suse.de>
3308         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3309         an integer.
3310         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3312 2011-04-03  Michael Matz  <matz@suse.de>
3314         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3315         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3316         without function context.
3317         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3318         current_function_decl and cfun.
3320 2011-04-03  Michael Matz  <matz@suse.de>
3322         * tree.c (decl_init_priority_insert): Don't create entry for
3323         default priority.
3324         (decl_fini_priority_insert): Ditto.
3325         (fields_compatible_p, find_compatible_field): Remove.
3326         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3327         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3329 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3331         * combine.c (try_combine): Remove useless local variable.
3333 2011-04-03  Richard Guenther  <rguenther@suse.de>
3334             Ira Rosen  <ira.rosen@linaro.org>
3336         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3337         non-variable offsets and compare the remaining bases of the two
3338         accesses instead of looking for exact same data-ref.
3340 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3342         PR target/48416
3343         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3345         * i386.c (ix86_is_msabi_thiscall): New helper function.
3346         (ix86_is_type_thiscall): New helper function.
3347         (ix86_comp_type_attributes): Handle thiscall for method-functions
3348         special.
3349         (init_cumulative_args): Likewise.
3350         (find_drap_reg): Likewise.
3351         (ix86_static_chain): Likewise.
3352         (x86_this_parameter): Likewise.
3353         (x86_output_mi_thunk): Likewise.
3355 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3356             Nicolas Setton  <setton@adacore.com>
3357             Eric Botcazou  <ebotcazou@adacore.com>
3359         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3360         (add_gnat_descriptive_type_attribute): New function.
3361         (gen_array_type_die): Call it.
3362         (gen_enumeration_type_die): Likewise.
3363         (gen_struct_or_union_type_die): Likewise.
3364         (modified_type_die): Likewise.
3365         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3366         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3367         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3369 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3371         PR bootstrap/48148
3372         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3373         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3375         Revert:
3376         2011-03-17  Richard Guenther  <rguenther@suse.de>
3378         PR bootstrap/48148
3379         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3380         origin for decls in other ltrans units.
3381         (input_varpool_node): Likewise.
3383 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3385         PR middle-end/48335
3386         * expr.c (expand_assignment): Handle all possibilities
3387         if TO_RTX is CONCAT.
3388         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3389         (store_split_bit_field): If SUBREG_REG (op0) or
3390         op0 itself has smaller mode than word, return it
3391         for offset 0 and const0_rtx for out-of-bounds stores.
3392         If word is const0_rtx, skip it.
3394 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3396         * config/h8300/h8300.c (print_operand_address): Rename to...
3397         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3398         Call h8300_print_operand and h8300_print_operand_address instead of
3399         print_operand and print_operand_address. Declare.
3400         (print_operand): Renake to...
3401         (h8300_print_operand): ...this. Make static. Adjust comments.
3402         Call h8300_print_operand instead of print_operand. Declare.
3403         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3404         (h8300_register_move_cost): Likewise.
3405         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3406         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3407         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3408         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3409         * config/h8300/h8300-protos.h (print_operand): Delete.
3410         (print_operand_address): Delete.
3412 2011-04-01  Richard Henderson  <rth@redhat.com>
3414         PR 48400
3415         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3416         in strict mode before dwarf4.  Re-order tests to early out
3417         before switching sections.
3419 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3421         * config/h8300/constraints.md: New file.
3422         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3423         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3424         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3425         * config/h8300/predicates.md (bit_operand): Likewise.
3426         (incdec_operand): Use satisfies_constraint_M and
3427         satisfies_constraint_O.  Don't use C code block.
3428         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3429         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3430         (compute_mov_length): Use satisfies_constraint_G.
3431         (fix_bit_operand): Use satisfies_constraint_U.
3432         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3433         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3434         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3435         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3436         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3437         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3438         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3439         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3440         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3441         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3442         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3443         (EXTRA_MEMORY_CONSTRAINT): Delete.
3445 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3446             Michael Meissner  <meissner@linux.vnet.ibm.com>
3448         PR target/48262
3449         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3450         operands, as per the specifications.
3452         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3453         (vec_extract_evenv4sf): Ditto.
3454         (vec_extract_evenv8hi): Ditto.
3455         (vec_extract_evenv16qi): Ditto.
3456         (vec_extract_oddv4si): Ditto.
3458 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3460         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3461         high_pc attribute if the CU has no associated code. Only output
3462         DW_AT_entry_pc for CU if not generating strict dwarf and
3463         dwarf_version < 4.
3465 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3467         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3468         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3469         out of ...
3470         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3471         * final.c (final_start_function): Call the new function rather
3472         than using a NULL argument for dwarf2out_frame_debug.
3474         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3475         that contains the prologue.
3477         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3478         changed.  Print it in debugging output.
3480         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3482         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3483         Split most of the code into...
3484         (begin_move_insn): ... here.  New function.
3485         (ebb_sched_info): Add a pointer to it.
3486         * haifa-sched.c (scheduled_insns): New static variable.
3487         (sched_extend_ready_list): Allocate it.
3488         (schedule_block): Use it to record the order of scheduled insns.
3489         Perform RTL changes to move insns only after all scheduling
3490         decisions have been made.
3491         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3492         begin_move_insn field.
3493         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3494         * sched-int.h (struct haifa_sched_info): Remove second argument
3495         from begin_schedule_ready hook.  Add new member begin_move_insn.
3496         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3497         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3499         * haifa-sched.c (prune_ready_list): New function, broken out of
3500         schedule_block.
3501         (schedule_block): Use it.
3503 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3505         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3507 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3509         * config.gcc (*-*-mingw*): Allow as option the
3510         posix threading model.
3511         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3512         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3513         definition.
3514         (CPP_SPEC): Add pthread/no-pthread handling.
3515         (LIB_SPEC): Likewise.
3516         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3517         (LIB_SPEC): Likewise.
3518         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3519         flag to pass -pthread option for shared libgcc build.
3520         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3521         for shared libgcc build.
3522         * config/i386/t-mingw-pthread: New file.
3523         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3524         New define to enable use of library pthread by default.
3525         * config/i386/mingw.opt (pthread): New driver option.
3526         (no-pthread): New driver option.
3527         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3528         * config/i386/mingw-w64.opt: Likewise.
3530 2011-04-01  Gary Funck <gary@intrepid.com>
3532         * c-decl.c (grokdeclarator): Fix formatting.
3534 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3536         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3537         instead of n_operands.
3538         (set_storage_via_setmem): Likewise.
3539         * optabs.c (maybe_gen_insn): Likewise.
3540         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3541         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3542         (mips_expand_builtin_direct): Likewise.
3543         * config/spu/spu.c (expand_builtin_args): Likewise.
3545 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3547         * recog.h (insn_data_d): Add n_generator_args.
3548         * genoutput.c (data): Likewise.
3549         (output_insn_data): Print it.
3550         (max_opno, num_dups): Delete.
3551         (scan_operands): Just fill in "d->operand[...]".
3552         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3554 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3556         * gensupport.h (pattern_stats): New structure.
3557         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3558         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3559         (max_operand_1, max_operand_vec): Delete.
3560         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3562 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3564         * emit-rtl.c (emit_pattern_after_setloc): New function.
3565         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3566         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3567         (emit_pattern_after): New function.
3568         (emit_insn_after, emit_jump_insn_after): Call it.
3569         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3570         (emit_pattern_before_setloc): New function.
3571         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3572         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3573         Likewise.
3574         (emit_pattern_before): New function.
3575         (emit_insn_before, emit_jump_insn_before): Call it.
3576         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3578 2011-03-31  Richard Henderson  <rth@redhat.com>
3580         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3581         (dw_separate_line_info_entry): Remove.
3582         (enum dw_line_info_opcode): New.
3583         (dw_line_info_entry): Use it.
3584         (dw_line_info_table, dw_line_info_table_p): New.
3585         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3586         (line_info_table, line_info_label_num): Remove.
3587         (line_info_table_in_use): Remove.
3588         (separate_line_info_table): Remove.
3589         (separate_line_info_table_allocated): Remove.
3590         (separate_line_info_table_in_use): Remove.
3591         (LINE_INFO_TABLE_INCREMENT): Remove.
3592         (line_info_label_num): New.
3593         (cur_line_info_table): New.
3594         (text_section_line_info, cold_text_section_line_info): New.
3595         (separate_line_info): New.
3596         (SEPARATE_LINE_CODE_LABEL): Remove.
3597         (print_dwarf_line_table): Remove.
3598         (debug_dwarf): Don't dump it.
3599         (output_one_line_info_table): New.
3600         (output_line_info): Use it.
3601         (new_line_info_table): New.
3602         (set_cur_line_info_table): New.
3603         (dwarf2out_switch_text_section): Use it.
3604         (dwarf2out_begin_function): Likewise.
3605         (push_dw_line_info_entry): New.
3606         (dwarf2out_source_line): Rewrite for new line info tables.
3607         (dwarf2out_init): Remove dead initailizations.
3609 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3611         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3612         various flags.
3613         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3614         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3615         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3616         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3617         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3618         * opt-functions.awk (flag_init, switch_bit_fields): New.
3619         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3620         generate CL_MISSING_OK or CL_SAVE.
3621         * optc-gen.awk: Update to generate bit-field output as well as
3622         flags field.
3623         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3624         bit-field instead of CL_REJECT_DRIVER flag.
3625         * opts-common.c (generate_canonical_option,
3626         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3627         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3628         instead of CL_REJECT_NEGATIVE flag.
3629         * toplev.c (print_switch_values): Use cl_report bit-field instead
3630         of CL_REPORT flag.
3632 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3634         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3635         a zero minimum index only if it is redundant.
3637 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3639         PR rtl-optimization/48381
3640         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3641         instead of ira_class_hard_reg_index for calculating conflicting
3642         hard registers.
3644 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3646         * cprop.c: Clean up hash table building.
3647         (reg_avail_info): Remove.
3648         (oprs_available_p): Remove.
3649         (record_last_reg_set_info): Remove.
3650         (record_last_set_info): Remove.
3651         (reg_available_p): New function.
3652         (gcse_constant_p): Do not treat unfolded conditions as constants.
3653         (make_set_regs_unavailable): New function.
3654         (hash_scan_set): Simplify with new reg_available_p.
3655         (compute_hash_table_work): Traverse insns stream only once.
3656         Do not compute reg_avail_info. Traverse insns in reverse order.
3657         Record implicit sets after recording explicit sets from the block.
3659 2011-03-31  Michael Matz  <matz@suse.de>
3661         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3663 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3665         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3666         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3667         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3668         (h8300_mode_dependent_address_p): New function.
3669         (h8300_get_index): Make static.
3671 2011-03-31  Jeff Law  <law@redhat.com>
3673         * reload1.c (elimination_effects): Fix typo in recent change.
3675         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3676         typo potentially leading to null pointer dereference.
3678         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3679         (setup_save_areas): Corresponding changes to avoid useless
3680         assignments.
3682         * jump.c (reversed_comparison_code_parts): Avoid successive return
3683         statements when REVERSE_CONDITION is defined.
3685         * expr.c (expand_assignment): Avoid useless assignments.
3686         (expand_expr_real_1): Likewise.
3687         (expand_expr_real_2): Avoid useless statements.
3689         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3691         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3693         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3694         statements.
3696         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3698 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3700         PR target/47109
3701         * doc/tm.texi.in (TARGET_VERSION): Remove.
3702         * doc/tm.texi: Regenerate.
3703         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3704         * collect2.c (main): Don't use TARGET_VERSION.
3705         * mips-tdump.c (main): Don't use TARGET_VERSION.
3706         * mips-tfile.c (main): Don't use TARGET_VERSION.
3707         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3708         * config/rs6000/vxworksae.h: Remove.
3709         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3710         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3711         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3712         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3713         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3714         * config/arm/arm.h (TARGET_VERSION): Remove.
3715         * config/arm/coff.h (TARGET_VERSION): Remove.
3716         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3717         * config/arm/elf.h (TARGET_VERSION): Remove.
3718         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3719         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3720         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3721         * config/arm/pe.h (TARGET_VERSION): Remove.
3722         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3723         * config/arm/semi.h (TARGET_VERSION): Remove.
3724         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3725         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3726         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3727         * config/avr/avr.h (TARGET_VERSION): Remove.
3728         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3729         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3730         * config/frv/frv.h (TARGET_VERSION): Remove.
3731         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3732         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3733         * config/i386/darwin.h (TARGET_VERSION): Remove.
3734         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3735         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3736         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3737         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3738         * config/i386/gnu.h (TARGET_VERSION): Remove.
3739         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3740         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3741         * config/i386/linux.h (TARGET_VERSION): Remove.
3742         * config/i386/linux64.h (TARGET_VERSION): Remove.
3743         * config/i386/lynx.h (TARGET_VERSION): Remove.
3744         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3745         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3746         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3747         * config/i386/netware.h (TARGET_VERSION): Remove.
3748         * config/i386/nto.h (TARGET_VERSION): Remove.
3749         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3750         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3751         * config/ia64/elf.h (TARGET_VERSION): Remove.
3752         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3753         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3754         * config/ia64/linux.h (TARGET_VERSION): Remove.
3755         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3756         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3757         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3758         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3759         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3760         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3761         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3762         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3763         * config/m68k/linux.h (TARGET_VERSION): Remove.
3764         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3765         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3766         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3767         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3768         * config/mep/mep.h (TARGET_VERSION): Remove.
3769         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3770         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3771         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3772         * config/mips/linux.h (TARGET_VERSION): Remove.
3773         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3774         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3775         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3776         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3777         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3778         * config/pa/pa.h (TARGET_VERSION): Remove.
3779         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3780         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3781         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3782         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3783         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3784         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3785         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3786         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3787         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3788         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3789         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3790         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3791         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3792         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3793         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3794         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3795         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3796         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3797         * config/s390/linux.h (TARGET_VERSION): Remove.
3798         * config/s390/s390.h (TARGET_VERSION): Remove.
3799         * config/s390/tpf.h (TARGET_VERSION): Remove.
3800         * config/score/score.h (TARGET_VERSION): Remove.
3801         * config/sh/linux.h (TARGET_VERSION): Remove.
3802         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3803         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3804         * config/sh/sh.h (TARGET_VERSION): Remove.
3805         * config/sh/sh64.h (TARGET_VERSION): Remove.
3806         * config/sh/superh.h (TARGET_VERSION): Remove.
3807         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3808         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3809         * config/sparc/linux.h (TARGET_VERSION): Remove.
3810         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3811         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3812         TARGET_NAME32, TARGET_NAME): Remove.
3813         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3814         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3815         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3816         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3817         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3818         * config/spu/spu.h (TARGET_VERSION): Remove.
3819         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3820         * config/v850/v850.h (TARGET_VERSION): Remove.
3821         * config/vax/linux.h (TARGET_VERSION): Remove.
3822         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3823         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3824         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3826 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3828         PR target/48142
3829         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3830         frame-related from frame-unrelated adjustments to the stack pointer.
3832 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3834         * common.opt (fdebug-types-section): Move earlier.
3835         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3837 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3839         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3840         var.
3842 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3844         * tree.h (CASE_CHAIN): Define.
3845         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3846         (gimple_redirect_edge_and_branch): Likewise.
3848 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3850         PR middle-end/48367
3851         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3852         calculation.
3854 2011-03-30  Jeff Law  <law@redhat.com>
3856         * PR bootstrap/48371
3857         * reload1.c (reload): Fix botch in last change.
3859         * reload.h (struct reload): Fix typo introduced in last change.
3861 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3863         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3864         Undocumented.  Remove help text.
3865         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3866         -mhard-float.
3868 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3870         * doc/options.texi (NegativeAlias): Document.
3871         (Alias): Mention NegativeAlias.
3872         * opt-functions.awk: Handle NegativeAlias.
3873         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3874         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3875         * opts.h (CL_NEGATIVE_ALIAS): Define.
3876         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3877         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3878         OPT_mspe_.
3879         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3880         Alias entries.
3881         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3882         mno-spe and mno-isel instead of mspe=no and -misel=no.
3884 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3886         * common.opt (fdebug-types-section): New flag.
3887         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3888         * dwarf2out.c (use_debug_types): New define.
3889         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3890         (print_die): Guard output of type unit signatures using
3891         use_debug_types.
3892         (build_abbrev_table): Replace assert of dwarf_version >= 4
3893         with assert on use_debug_types.
3894         (size_of_die): Likewise.
3895         (unmark_dies): Likewise.
3896         (value_format): Decide AT_ref_external form on use_debug_types.
3897         (output_die): Replace dwarf_version version check guard with
3898         use_debug_types where appropriate.
3899         (modified_type_die): Likewise.
3900         (gen_reference_type_die): Likewise.
3901         (dwarf2out_start_source_file): Likewise.
3902         (dwarf2out_end_source_file): Likewise.
3903         (prune_unused_types_walk_attribs): Likewise.
3904         (dwarf2out_finish): Likewise.
3906 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3908         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3910 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3912         PR rtl-optimization/48332
3913         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3914         mode of input operand N and modeN to its actual mode.
3916 2011-03-30  Jeff Law  <law@redhat.com>
3918         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3919         define accessor macro.
3920         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3921         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3922         (reg_equiv_init): Likewise.
3923         (reg_equivs_size): New variable.
3924         (reg_equiv_init_size): Remove.
3925         (allocate_initial_values): Move prototype to here from....
3926         * integrate.h (allocate_initial_values): Remove prototype.
3927         * integrate.c: Include reload.h.
3928         (allocate_initial_values): Corresponding changes.
3929         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3930         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3931         (update_equiv_regs): Corresponding changes.
3932         (ira): Corresponding changes.
3933         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3934         (push_secondary_reload): Corresponding changes.
3935         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3936         (make_memloc, find_reloads_address): Corresponding changes.
3937         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3938         (find_reloads_address_1): Corresponding changes.
3939         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3940         (refers_to_regno_for_reload_p): Corresponding changes.
3941         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3942         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3943         * reload1.c: Include ggc.h.
3944         (grow_reg_equivs): New function.
3945         (replace_pseudos_in, reload): Corresponding changes.
3946         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3947         (eliminate_regs_1, elimination_effects): Corresponding changes.
3948         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3949         (delete_output_reload): Likewise.
3950         * caller-save.c (mark_referenced_regs): Corresponding changes.
3951         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3952         * frv/predicates.md (frv_load_operand): Corresponding changes.
3953         * microblaze/microblaze.c (double_memory_operand): Corresponding
3954         changes.
3955         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3956         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3957         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3958         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3959         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3960         changes.
3961         * pa/pa.c (emit_move_sequence): Corresponding changes.
3962         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3964 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3966         PR target/47551
3967         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3968         structure modes.  Don't check neon_vector_mem_operand for
3969         vector or structure modes.
3971 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3972             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3974         PR target/43590
3975         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3976         operand 1 and reshuffle the operands to match.
3977         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3979 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3981         PR driver/48208
3982         * config/c.opt (F): Added 'Driver' to -F option.
3984         PR driver/48260
3985         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3986           handler function.
3987         * config/darwin.opt: Added '-arch' option.
3989 2011-03-30  Nick Clifton  <nickc@redhat.com>
3991         * config/rx/rx.md: Add peepholes and patterns to combine
3992         extending loads and simple arithmetic instructions.
3993         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3994         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3995         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3996         modes to use pre-decrement and post-increment addressing.
3997         (rx_is_restricted_memory_address): Add range checking of REG+INT
3998         addresses.
3999         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4000         (rx_memory_move_cost): Adjust cost of stores.
4001         (rx_adjust_insn_length): New function.
4003 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4005         PR c/48305
4006         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4007         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4008         matching arg00/arg01 types.
4010 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4012         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4013         last_location to UNKNOWN_LOCATION.
4015 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4017         PR target/48349
4018         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4019         FLOAT_SSE_REGS.
4021 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4022             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4024         PR bootstrap/48337
4025         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4026         Init(PROCESSOR_V7).
4027         (sparc_cpu): Likewise.
4028         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4029         PROCESSOR_V7.
4031 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4033         PR target/48336
4034         PR middle-end/48342
4035         PR rtl-optimization/48345
4036         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4037         hard regs for given mode from profitable regs when doing secondary
4038         allocation.
4040 2011-03-29  Jeff Law  <law@redhat.com>
4042         PR bootstrap/48327
4043         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4044         do_not_duplicate field.
4045         (lookup_redirection_data): Corresponding changes.
4046         (create_duplicates): Always create a template block.
4047         (redirect_edges): Remove code which reused the original block
4048         when it was going to become unreachable code.
4049         (thread_block): Don't set do_not_duplicate field.
4051 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4053         * lto-opts.c (register_user_option_p, lto_register_user_option):
4054         Make type argument unsigned.
4055         * lto-streamer.h (lto_register_user_option): Make type argument
4056         unsigned.
4057         * opth-gen.awk: Make CL_* macros unsigned.
4058         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4059         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4060         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4061         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4062         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4063         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4064         (find_opt): Make lang_mask argument unsigned.
4066 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4068         PR rtl-optimization/48331
4069         PR rtl-optimization/48334
4070         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4071         for any used algorithm.
4073 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4075         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4076         to parent_max.
4078 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4080         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4081         (alpha_option_override): Don't set alpha_sr_alias_set.
4082         (emit_frame_store_1): Use gen_frame_mem rather than calling
4083         set_mem_alias_set.
4084         (alpha_expand_epilogue): Ditto.
4086 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4088         PR tree-optimization/48290
4089         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4090         vectorization, check that relevant phis in the basic block after
4091         the inner loop are really inner loop's exit phis.
4093 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4095         PR debug/48190
4096         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4097         (cached_dw_loc_list_def): New structure.
4098         (cached_dw_loc_list): New typedef.
4099         (cached_dw_loc_list_table): New variable.
4100         (cached_dw_loc_list_table_hash): New function.
4101         (cached_dw_loc_list_table_eq): Likewise.
4102         (add_location_or_const_value_attribute): Take a bool cache_p.
4103         Cache the list when the parameter is true.
4104         (gen_formal_parameter_die): Update caller.
4105         (gen_variable_die): Likewise.
4106         (dwarf2out_finish): Likewise.
4107         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4108         while generating debug info for the decl.
4109         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4110         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4111         (resolve_addr): Cache the result of resolving a chain of
4112         location lists.
4114 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4116         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4117         conflict object hard regset nodes have intersecting hard reg sets.
4119         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4120         after regstat_init_n_sets_and_refs.
4122         * ira.c: Add more comments at the top.
4123         (setup_stack_reg_pressure_class, setup_pressure_classes):
4124         Add comments how we compute the register pressure classes.
4125         (setup_allocno_and_important_classes): Add more comments.
4126         (setup_class_translate_array, reorder_important_classes)
4127         (setup_reg_class_relations): Add comments.
4129         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4130         start of the file.
4132         * ira-color.c: Add 2011 to the Copyright line.
4133         (assign_hard_reg):  Add more comments.
4134         (improve_allocation): Ditto.
4136         * ira-costs.c: Add 2011 to the Copyright line.
4137         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4138         comments.
4139         (setup_regno_cost_classes_by_mode): Ditto.
4141         Initial patches from ira-improv branch:
4143         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4145         * ira-build.c (ira_create_object): Remove initialization of
4146         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4147         (ira_create_allocno): Remove initialization of
4148         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4149         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4150         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4151         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4152         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4153         Initialize ALLOCNO_ADD_DATA.
4154         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4155         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4156         ALLOCNO_REG.
4157         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4158         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4160         * ira.c (ira_reallocate): Remove.
4161         (setup_pressure_classes): Call
4162         ira_init_register_move_cost_if_necessary.  Use
4163         ira_register_move_cost instead of ira_get_register_move_cost.
4164         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4165         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4167         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4168         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4169         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4170         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4171         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4172         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4173         Fix formatting.
4174         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4175         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4176         (struct allocno_color_data): New.
4177         (allocno_color_data_t): New typedef.
4178         (allocno_color_data): New definition.
4179         (ALLOCNO_COLOR_DATA): New macro.
4180         (struct object_color_data): New.
4181         (object_color_data_t): New typedef.
4182         (object_color_data): New definition.
4183         (OBJECT_COLOR_DATA): New macro.
4184         (update_copy_costs, calculate_allocno_spill_cost): Call
4185         ira_init_register_move_cost_if_necessary.  Use
4186         ira_register_move_cost instead of ira_get_register_move_cost.
4187         (move_spill_restore, update_curr_costs): Ditto.
4188         (allocno_spill_priority): Make it inline.
4189         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4190         (struct coalesce_data, coalesce_data_t): New.
4191         (allocno_coalesce_data): New definition.
4192         (ALLOCNO_COALESCE_DATA): New macro.
4193         (merge_allocnos, coalesced_allocno_conflict_p): Use
4194         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4195         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4196         (coalesce_allocnos): Ditto.
4197         (setup_coalesced_allocno_costs_and_nums): Ditto.
4198         (collect_spilled_coalesced_allocnos): Ditto.
4199         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4200         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4201         (coalesce_spill_slots): Ditto.
4202         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4203         free allocno_coalesce_data.
4205         * ira-conflicts.c: Fix formatting.
4206         (process_regs_for_copy): Call
4207         ira_init_register_move_cost_if_necessary.  Use
4208         ira_register_move_cost instead of ira_get_register_move_cost.
4209         (build_object_conflicts): Optimize.
4211         * ira-costs.c (record_reg_classes): Optimize.  Call
4212         ira_init_register_move_cost_if_necessary.  Use
4213         ira_register_move_cost, ira_may_move_in_cost, and
4214         ira_may_move_out_cost instead of ira_get_register_move_cost and
4215         ira_get_may_move_cost.
4216         (record_address_regs): Ditto.
4217         (scan_one_insn): Optimize.
4218         (find_costs_and_classes): Optimize.
4219         (process_bb_node_for_hard_reg_moves): Call
4220         ira_init_register_move_cost_if_necessary.  Use
4221         ira_register_move_cost instead of ira_get_register_move_cost.
4223         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4224         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4225         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4226         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4227         definitions.
4228         (ira_initiate_emit_data, ira_finish_emit_data)
4229         (create_new_allocno): New functions.
4230         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4231         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4232         Use ira_register_move_cost instead of ira_get_register_move_cost.
4234         * ira-int.h: Fix some comments.
4235         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4236         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4237         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4238         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4239         add_data.
4240         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4241         bitfield after mode.  Make hard_regno a short int.  Make
4242         hard_regno short.  Remove first_coalesced_allocno and
4243         next_coalesced_allocno.  Move mem_optimized_dest_p,
4244         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4245         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4246         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4247         temp, colorable_p.  Add new member add_data.
4248         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4249         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4250         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4251         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4252         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4253         (ALLOCNO_ADD_DATA): New macro.
4254         (ira_emit_data_t): New typedef.
4255         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4256         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4257         from struct ira_allocno.
4258         (ALLOCNO_EMIT_DATA): New macro.
4259         (ira_allocno_emit_data, allocno_emit_reg): New.
4260         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4261         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4262         (OBJECT_ADD_DATA): New macro.
4263         (ira_reallocate): Remove.
4264         (ira_initiate_emit_data, ira_finish_emit_data): New.
4265         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4266         (ira_init_register_move_cost_if_necessary): New.
4267         (ira_object_conflict_iter_next): Merge into
4268         ira_object_conflict_iter_cond.
4269         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4271         * ira-live.c (process_single_reg_class_operands): Call
4272         ira_init_register_move_cost_if_necessary.  Use
4273         ira_register_move_cost instead of ira_get_register_move_cost.
4275         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4277         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4279         * ira-costs.c: Fix formatting.
4280         (cost_classes, cost_classes_num): Remove.
4281         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4282         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4283         (cost_classes_del, cost_classes_htab): New.
4284         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4285         (initiate_regno_cost_classes, setup_cost_classes): New.
4286         (setup_regno_cost_classes_by_aclass): New.
4287         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4288         (record_reg_classes): Use regno_cost_classes instead of
4289         cost_classes.  Move checking opposite operand up.
4290         (record_address_regs): Use regno_cost_classes
4291         instead of cost_classes.
4292         (scan_one_insn): Ditto.  Use always general register.
4293         (print_allocno_costs): Use regno_cost_classes instead of
4294         cost_classes.
4295         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4296         (find_costs_and_classes): Set up cost classes for each registers.
4297         Use also their mode for this.  Use regno_cost_classes instead of
4298         cost_classes.
4299         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4300         cost_classes.
4301         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4302         (ira_costs, ira_set_pseudo_classes): Call
4303         initiate_regno_cost_classes and finish_regno_cost_classes.
4305         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4307         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4309         * target.def (ira_cover_classes): Remove.
4311         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4313         * doc/tm.texi.in: Ditto.
4315         * ira-conflicts.c: Remove mentioning cover classes from the file.
4316         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4317         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4319         * targhooks.c (default_ira_cover_classes): Remove.
4321         * targhooks.h (default_ira_cover_classes): Ditto.
4323         * haifa-sched.c: Remove mentioning cover classes from the file.
4324         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4325         ira_pressure_classes and ira_pressure_classes_num instead of
4326         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4327         sched_regno_pressure_class instead of sched_regno_cover_class.
4328         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4329         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4331         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4332         classes from the file.
4333         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4334         (struct object_hard_regs, struct object_hard_regs_node): New.
4335         (struct ira_object): New members profitable_hard_regs,
4336         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4337         (struct ira_allocno): Rename cover_class to aclass.  Rename
4338         cover_class_cost and updated_cover_class_cost to class_cost and
4339         updated_class_cost.  Remove splay_removed_p and
4340         left_conflict_size.  Add new members colorable_p.
4341         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4342         (ALLOCNO_COLORABLE_P): New macro.
4343         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4344         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4345         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4346         (OBJECT_...): Rename parameter C to O.
4347         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4348         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4349         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4350         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4351         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4352         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4353         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4354         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4355         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4356         x_ira_reg_class_subunion.
4357         (ira_max_memory_move_cost, ira_max_register_move_cost)
4358         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4359         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4360         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4361         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4362         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4363         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4364         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4365         (ira_tune_allocno_costs_and_cover_classes): Rename to
4366         ira_tune_allocno_costs.
4367         (ira_debug_hard_regs_forest): New.
4368         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4369         (ira_object_conflict_iter_next): Fix comments.
4370         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4371         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4372         cover_class to aclass.
4373         (ira_allocate_and_accumulate_costs): Ditto.
4374         (ira_allocate_and_set_or_copy_costs): Ditto.
4376         * opts.c (decode_options): Remove ira_cover_class check.
4378         * ira-color.c: Remove mentioning cover classes from the file.  Use
4379         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4380         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4381         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4382         (splay-tree.h): Remove include.
4383         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4384         before copy_freq_compare_func.
4385         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4386         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4387         New definitions.
4388         (hard_regs_roots, hard_regs_node_vec): Ditto.
4389         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4390         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4391         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4392         (create_new_object_hard_regs_node): Ditto.
4393         (add_new_object_hard_regs_node_to_forest): Ditto.
4394         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4395         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4396         Ditto.
4397         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4398         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4399         (remove_unused_object_hard_regs_nodes): Ditto.
4400         (enumerate_object_hard_regs_nodes): Ditto.
4401         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4402         (object_hard_regs_subnode_t): Ditto.
4403         (struct object_hard_regs_subnode): Ditto.
4404         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4405         (setup_object_hard_regs_subnode_index): Ditto.
4406         (get_object_hard_regs_subnodes_num): Ditto.
4407         (form_object_hard_regs_nodes_forest): Ditto.
4408         (finish_object_hard_regs_nodes_tree): Ditto.
4409         (finish_object_hard_regs_nodes_forest): Ditto.
4410         (allocnos_have_intersected_live_ranges_p): Rename to
4411         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4412         (pseudos_have_intersected_live_ranges_p): Rename to
4413         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4414         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4415         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4416         (update_copy_costs): Remove assert.  Skip cost update if the hard
4417         reg does not belong the class.
4418         (assign_hard_reg): Process only profitable hard regs.
4419         (uncolorable_allocnos_num): Make it scalar.
4420         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4421         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4422         and ira_reg_class_max_nregs.
4423         (bucket_allocno_compare_func): Check frequency first.
4424         (sort_bucket): Add compare function as a parameter.
4425         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4426         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4427         (push_allocno_to_stack): Rewrite for checking new allocno
4428         colorability.
4429         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4430         (push_only_colorable): Pass new parameter to sort_bucket.
4431         (push_allocno_to_spill): Remove.
4432         (allocno_spill_priority_compare): Make it inline and rewrite.
4433         (splay_tree_allocate, splay_tree_free): Remove.
4434         (allocno_spill_sort_compare): New function.
4435         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4436         build and use splay tree.  Choose first allocno in uncolorable
4437         allocno bucket to spill.  Remove setting spill cost.
4438         (all_conflicting_hard_regs): Remove.
4439         (setup_allocno_available_regs_num): Check only profitable hard
4440         regs.  Print info about hard regs nodes.
4441         (setup_allocno_left_conflicts_size): Remove.
4442         (put_allocno_into_bucket): Don't call
4443         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4444         (improve_allocation): New.
4445         (color_allocnos): Call setup_profitable_hard_regs,
4446         form_object_hard_regs_nodes_forest, improve_allocation,
4447         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4448         (print_loop_title): Use pressure classes.
4449         (color_allocnso): Ditto.
4450         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4451         and allocnos_for_spilling.
4452         (ira_sort_regnos_for_alter_reg): Don't setup members
4453         {first,next}_coalesced_allocno.
4454         (color): Remove allocating and freeing removed_splay_allocno_vec.
4455         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4456         prohibited_class_mode_regs.
4458         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4459         formatting.
4460         (update_allocno_pressure_excess_length): Use pressure classes.
4461         (inc_register_pressure, dec_register_pressure): Check for pressure
4462         class.
4463         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4464         pressure class.  Use ira_reg_class_nregs instead of
4465         ira_reg_class_max_nregs.
4466         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4467         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4468         (single_reg_class): Use ira_reg_class_nregs instead of
4469         ira_reg_class_max_nregs.
4470         (process_bb_node_lives): Use pressure classes.
4472         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4473         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4474         (change_loop): Use pressure classes.
4475         (modify_move_list): Call ira_set_allocno_class instead of
4476         ira_set_allocno_cover_class.
4478         * ira-build.c: Remove mentioning cover classes from the file.  Use
4479         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4480         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4481         ALLOCNO_UPDATED_CLASS_COST instead of
4482         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4483         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4484         (ira_create_allocno): Remove initialization of
4485         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4486         ALLOCNO_COLORABLE_P.
4487         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4488         Update conflict regs for the objects.
4489         (create_cap_allocno): Remove assert.  Don't propagate
4490         ALLOCNO_AVAILABLE_REGS_NUM.
4491         (ira_free_allocno_costs): New function.
4492         (finish_allocno): Change a part of code into call of
4493         ira_free_allocno_costs.
4494         (low_pressure_loop_node_p): Use pressure classes.
4495         (object_range_compare_func): Don't compare classes.
4496         (setup_min_max_conflict_allocno_ids): Ditto.
4498         * loop-invariant.c: Remove mentioning cover classes from the file.
4499         Use ira_pressure_classes and ira_pressure_classes_num instead of
4500         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4501         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4502         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4503         Use reg_allocno_class instead of reg_cover_class.
4504         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4505         STACK_REG_COVER_CLASS.
4506         (get_regno_cover_class): Rename to get_regno_pressure_class.
4507         (move_loop_invariants): Initialize and finalize regstat.
4509         * ira.c: Remove mentioning cover classes from the file.  Add
4510         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4511         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4512         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4513         setup_class_subset_and_memory_move_costs.
4514         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4515         (setup_cover_and_important_classes): Rename to
4516         setup_allocno_and_important_classes.
4517         (setup_class_translate_array): New.
4518         (setup_class_translate): Call it for allocno and pressure classes.
4519         (cover_class_order): Rename to allocno_class_order.
4520         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4521         of ira_class_translate.
4522         (reorder_important_classes): Set up ira_important_class_nums.
4523         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4524         (print_class_cover): Rename to print_classes.  Add parameter.
4525         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4526         Print pressure classes too.
4527         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4528         setup_reg_subclasses.
4529         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4530         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4531         (setup_prohibited_class_mode_regs): Use
4532         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4533         (clarify_prohibited_class_mode_regs): New function.
4534         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4535         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4536         (ira_init_once): Initialize them.
4537         (free_register_move_costs): Process them.
4538         (ira_init): Move calls of find_reg_classes and
4539         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4540         Call clarify_prohibited_class_mode_regs.
4541         (ira_no_alloc_reg): Remove.
4542         (too_high_register_pressure_p): Use pressure classes.
4544         * sched-deps.c: Remove mentioning cover classes from the file.
4545         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4546         ira_pressure_classes and ira_pressure_classes_num instead of
4547         ira_reg_class_cover_size and ira_reg_class_cover.
4548         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4549         sched_regno_pressure_class instead of sched_regno_cover_class.
4550         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4551         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4553         * ira.h: Add 2010 to Copyright.
4554         (ira_no_alloc_reg): Remove external.
4555         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4556         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4557         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4558         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4559         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4560         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4561         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4562         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4563         x_ira_no_alloc_regs.
4564         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4565         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4566         ira_allocno_classes_num and ira_allocno_classes.
4567         (ira_class_translate): Rename to ira_allocno_class_translate.
4568         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4569         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4570         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4571         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4572         (ira_no_alloc_regs): New.
4574         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4575         classes from the file.  Use ALLOCNO_CLASS instead of
4576         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4577         ALLOCNO_COVER_CLASS_COST.
4578         (regno_cover_class): Rename to regno_aclass.
4579         (record_reg_classes): Use ira_reg_class_subunion instead of
4580         ira_reg_class_union.
4581         (record_address_regs): Check overflow.
4582         (scan_one_insn): Ditto.
4583         (print_allocno_costs): Print total mem cost fore regional allocation.
4584         (print_pseudo_costs): Use REG_N_REFS.
4585         (find_costs_and_classes): Use classes intersected with them on the
4586         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4587         ira_reg_class_union.  Use ira_allocno_class_translate and
4588         regno_aclass instead of ira_class_translate and regno_cover_class.
4589         Modify code for finding regno_aclass.  Setup preferred classes for
4590         the next pass.
4591         (setup_allocno_cover_class_and_costs): Rename to
4592         setup_allocno_class_and_costs.  Use regno_aclass instead of
4593         regno_cover_class.  Use ira_set_allocno_class instead of
4594         ira_set_allocno_cover_class.
4595         (init_costs, finish_costs): Use regno_aclass instead of
4596         regno_cover_class.
4597         (ira_costs): Use setup_allocno_class_and_costs instead of
4598         setup_allocno_cover_class_and_costs.
4599         (ira_tune_allocno_costs_and_cover_classes): Rename to
4600         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4601         by processing objects.  Use ira_reg_class_max_nregs instead of
4602         ira_reg_class_nregs.
4604         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4606         * sched-int.h: Remove mentioning cover classes from the file.
4607         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4609         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4610         classes from the file.
4611         (struct reg_pref): Rename coverclass into allocnoclass.
4612         (reg_cover_class): Rename to reg_allocno_class.
4614         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4616         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4618         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4620         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4622         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4624         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4626         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4628         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4630         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4632         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4634         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4635         (i386_ira_cover_classes): Ditto.
4637         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4639         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4641         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4643         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4645         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4647         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4649         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4650         (mips_ira_cover_classes): Ditto.
4652         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4654         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4656         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4658         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4660         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4662         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4663         (IRA_COVER_CLASSES_VSX): Ditto.
4665         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4666         (rs6000_ira_cover_classes): Ditto.
4668         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4670         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4672         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4674         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4676         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4678         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4680         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4682         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4684         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4686         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4688 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4690         PR debug/48253
4691         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4692         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4693         dw_fde_unlikely_section_end_label, cold_in_std_section,
4694         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4695         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4696         fields.
4697         (output_fde): Use dw_fde_second_{begin,end} if second is
4698         true, otherwise dw_fde_{begin,end}.
4699         (output_call_frame_info): Test dw_fde_second_begin != NULL
4700         instead of dw_fde_switched_sections.
4701         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4702         fields, initialize new fields.  Initialize in_std_section
4703         unconditionally from the first partition.
4704         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4705         dw_fde_second_begin is non-NULL.
4706         (dwarf2out_switch_text_section): Stop initializing removed
4707         dw_fde_struct fields, initialize new fields, initialize
4708         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4709         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4710         (struct var_loc_list_def): Add last_before_switch field.
4711         (arange_table, arange_table_allocated, arange_table_in_use,
4712         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4713         (size_of_aranges): Count !in_std_section and !second_in_std_section
4714         hunks in fdes, instead of looking at arange_table_in_use.
4715         (output_aranges): Add aranges_length argument, don't call
4716         size_of_aranges here.  Instead of using aranges_table*
4717         emit ranges for fdes when !in_std_section resp.
4718         !second_in_std_section.
4719         (dw_loc_list): Break ranges crossing section switch.
4720         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4721         use dw_fde_second_end instead of dw_fde_end as end of last range.
4722         (gen_subprogram_die): Don't call add_arange.  Use
4723         dw_fde_{begin,end} for first partition and if switched
4724         section dw_fde_second_{begin,end} for the second.
4725         (var_location_switch_text_section_1,
4726         var_location_switch_text_section): New functions.
4727         (dwarf2out_begin_function): Initialize cold_text_section even
4728         when function_section () isn't text_section.
4729         (prune_unused_types): Don't walk arange_table.
4730         (dwarf2out_finish): Don't needlessly test
4731         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4732         If info_section_emitted, call size_of_aranges and if it indicates
4733         non-empty .debug_aranges, call output_aranges with the computed
4734         size.  Stop using removed dw_fde_struct fields, use
4735         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4736         for second.
4738         PR debug/48203
4739         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4740         create ENTRY_VALUE if incoming or address of incoming's MEM
4741         is a hard REG.
4742         * dwarf2out.c (mem_loc_descriptor): Don't emit
4743         DW_OP_GNU_entry_value of DW_OP_fbreg.
4744         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4745         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4746         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4747         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4748         ENTRY_VALUE_EXPs.
4749         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4750         is a REG_P or MEM_P with REG_P address, compute hash directly
4751         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4752         (preserve_only_constants): Don't clear VALUES forwaring
4753         ENTRY_VALUE to some other VALUE.
4755 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4757         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4758         instead of GEN_INT.
4760 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4762         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4763         block before expanding the statement.
4764         (expand_gimple_stmt_1): Likewise.  Set them here...
4765         (expand_gimple_stmt): ...and not here.  Tidy.
4766         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4767         unknown.
4769 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4771         * Makefile.in: New rule for cprop.o.
4772         * gcse.c: Move constant/copy propagation to cprop.c.
4773         (compute_local_properties): Only handle expression tables.
4774         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4775         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4776         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4777         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4778         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4779         compute_cprop_data, find_used_regs, try_replace_reg,
4780         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4781         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4782         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4783         find_bypass_set, reg_killed_on_edge, bypass_block,
4784         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4785         execute_rtl_cprop, pass_rtl_cprop): Move to...
4786         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4787         moved from gcse.c to here with minor cleanups in duplicated code.
4789 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4791         * config/i386/i386.c (flag_opts): Fix a typo in
4792         -mavx256-split-unaligned-store.
4794 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4796         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4797         LIBCALL_VALUE): Remove macros.
4798         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4799         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4800         (h8300_function_value, h8300_libcall_value,
4801         h8300_function_value_regno_p): New functions.
4803 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4805         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4807 2011-03-28  Jeff Law  <law@redhat.com>
4809         * tree-ssa-threadupdate.c (redirect_edges): Call
4810         create_edge_and_update_destination_phis as needed.
4811         (create_edge_and_update_destination_phis): Accept new BB argument.
4812         All callers updated.
4813         (thread_block): Do not update the profile when threading around
4814         intermediate blocks.
4815         (thread_single_edge): Likewise.
4816         (determine_bb_domination_status): If BB is not a successor of the
4817         loop header, return NONDOMINATING.
4818         (register_jump_thread): Note when we register a jump thread around
4819         an intermediate block.
4820         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4821         (thread_across_edge): Use it.
4823 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4825         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4826         when for_return is 2.
4828 2011-03-28  Jeff Law  <law@redhat.com>
4830         * var-tracking.c (canonicalize_values_mark): Delete unused
4831         lhs assignment.
4832         (canonicalize_values_star, set_variable_part): Likewise.
4833         (clobber_variable_part, delete_variable_part): Likewise.
4835 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4837         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4839 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4841         * tree-inline.c (expand_call_inline): Do not check that destination
4842         node is analyzed.
4843         (optimize_inline_calls): Assert that destination node is analyzed.
4844         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4845         not call tree_lowering_passes.
4846         * cgraph.h (cgraph_analyze_function): Declare.
4847         * cgraphunit.c (cgraph_analyze_function): Make public.
4849 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4851         * config/sparc/sparc-opts.h: New.
4852         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4853         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4854         (sparc_option_override): Store processor_type enumeration rather
4855         than string in cpu_default.  Remove name and enumeration from
4856         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4857         without using sparc_select.  Use target_flags_explicit instead of
4858         fpu_option_set.
4859         * config/sparc/sparc.h (enum processor_type): Move to
4860         sparc-opts.h.
4861         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4862         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4863         HeaderInclude entry.
4864         (mcpu=, mtune=): Use Var and Enum.
4865         (sparc_processor_type): New Enum and EnumValue entries.
4867 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4868             Iain Sandoe  <iains@gcc.gnu.org>
4870         PR target/48245
4871         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4873 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4875         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4876         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4877         Insert new statements at it in lieu of STMT.
4878         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4879         * tree-vect-stmts.c (vectorizable_store): Likewise.
4880         (vectorizable_load): Likewise.
4882 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4884         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4885         (divtf3): Ditto.
4886         (multf3): Ditto.
4887         (subtf3): Ditto.
4889 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4891         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4892         unaligned 256bit load/store.
4893         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4894         (*avx_movdqu<avxmodesuffix>): Likewise.
4896 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4898         PR target/48288
4899         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4900         * config/pa/pa.md (iordi3): Use new predicate in expander.
4901         (iorsi3): Likewise.
4903 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4905         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4906         FUNCTION_VALUE_REGNO_P): Remove macros.
4907         * config/mips/mips-protos.h (mips_function_value): Remove.
4908         * config/mips/mips.c (mips_function_value): Rename to...
4909         (mips_function_value_1): ... this. Make static.  Handle receiving
4910         the function type in 'fn_decl_or_type' argument.
4911         (mips_function_value, mips_libcall_value,
4912         mips_function_value_regno_p): New function.
4913         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4914         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4916 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4918         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4919         and -mavx256-split-unaligned-store.
4920         (ix86_option_override_internal): Split 32-byte AVX unaligned
4921         load/store by default.
4922         (ix86_avx256_split_vector_move_misalign): New.
4923         (ix86_expand_vector_move_misalign): Use it.
4925         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4926         -mavx256-split-unaligned-store.
4928         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4929         256bit load/store.  Generate unaligned store on misaligned memory
4930         operand.
4931         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4932         256bit load/store.
4933         (*avx_movdqu<avxmodesuffix>): Likewise.
4935         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4936         -mavx256-split-unaligned-store.
4938 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4940         PR target/38598
4941         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4942         Update commentary.
4944 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4946         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4947         opno arguments with an expand_operand.  Use create_input_operand.
4948         (mips_prepare_builtin_target): Delete.
4949         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4950         functions.
4951         (mips_expand_builtin_direct): Use create_output_operand and
4952         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4953         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4954         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4956 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4958         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4959         function.
4960         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4962 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4964         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4965         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4966         basic blocks and call commit_edge_insertions directly.
4967         (fixup_abnormal_edges): Move from here to...
4968         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4969         on the edges and return whether some have actually been inserted.
4970         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4971         compensation code.
4973 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4975         PR rtl-optimization/48144
4976         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4977         (merge_expr_data): ... here.
4978         (av_set_intersect): Rename to av_set_code_motion_filter.
4979         Update all callers.  Call merge_history_vect when an expression
4980         is found in both sets.
4981         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4983 2011-03-26  Alan Modra  <amodra@gmail.com>
4985         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4986         cmodel medium addresses.
4987         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4988         64-bit gpr loads and stores.
4989         (rs6000_secondary_reload_ppc64): New function.
4990         * config/rs6000/rs6000-protos.h: Declare it.
4991         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4993 2011-03-26  Alan Modra  <amodra@gmail.com>
4995         PR target/47487
4996         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4997         GNU Go in traceback table.
4999 2011-03-25  Richard Henderson  <rth@redhat.com>
5001         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5002         if there are exactly 6 operands.
5003         (set_storage_via_setmem): Similarly.
5005 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5007         * collect2.c (write_c_file_stat): Handle backslash
5008         as right-hand directory separator.
5009         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5010         checking just for slash.
5011         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5012         instead of checking for trailing slash.
5013         * gcc.c (record_temp_file): Use filename_cmp instead
5014         of strcmp.
5015         (do_spec_1): Likewise.
5016         (replace_outfile_spec_function): Likewise.
5017         (is_directory): Use filename_ncmp instead of strncmp.
5018         (print_multilib_info): Likewise.
5019         * gcov.c (find_source): Use filename_cmp instead
5020         instead of strcmp.
5021         (make_gcov_file_name): Fix order of slash/backslash
5022         checks.
5023         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5024         (add_standard_paths): Likewise.
5025         * mips-tfile.c (saber_stop): Handle backslash.
5026         * prefix.c (update_path): Use filename_ncmp instead of
5027         strncmp.
5028         * profile.c (output_location): Use filename_cmp instead
5029         of strcmp.
5030         * read-md.c (handle_toplevel_file): Handle backslash.
5031         * tlink.c (frob_extension):  Likewise.
5032         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5033         strcmp.
5034         * tree-dump.c (dequeue_and_dump): Handle backslash.
5035         * tree.c (get_file_function_name): Likewise.
5036         * gengtype.c (read_input_list): Likewise.
5037         (get_file_realbasename): Likewise.
5038         (get_output_file_with_visibility): Use filename_cmp
5039         instead of strcmp.
5041 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5043         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5044         case to VFPv1.
5046 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5048         * fold-const.c (expr_location_or): New function.
5049         (fold_truth_not_expr): Call it.
5051 2011-03-25  Jeff Law  <law@redhat.com>
5053         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5054         va_end.
5055         * c-family/c-common.c (def_fn_type): Likewise.
5056         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5057         * emit-rtl.c (gen_rtvec): Likewise.
5058         * lto/lto-lang.c (def_fn_type): Likewise.
5060 2011-03-25  Richard Guenther  <rguenther@suse.de>
5062         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5063         also generate copies.
5064         (fini_copy_prop): Handle constant values properly.
5066 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5068         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5069         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5070         (hash_loc_operands, compare_loc_operands): Handle
5071         DW_OP_GNU_entry_value.
5073 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5075         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5076         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5077         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5078         comment and use macro TARGET_64BIT_MS_ABI instead.
5079         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5080         and change default behavior for 32-bit MS_ABI.
5081         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5082         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5083         32-bit, too.
5084         (ix86_cfun_abi): Likewise.
5085         (ix86_maybe_switch_abi): Adjust comment.
5086         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5087         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5088         instead of checking for SYSV_ABI.
5089         (ix86_nsaved_sseregs): Likewise.
5090         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5091         to 16 bytes.
5092         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5093         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5094         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5095         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5096         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5098 2011-03-25  Richard Guenther  <rguenther@suse.de>
5100         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5101         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5102         (verify_gimple): Remove.
5103         * tree-cfg.c (verify_gimple_call): Merge verification
5104         from verify_stmts.
5105         (verify_gimple_phi): Merge verification from verify_stmts.
5106         (verify_gimple_label): New function.
5107         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5108         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5109         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5110         (verify_stmts): Rename to verify_gimple_in_cfg.
5111         (verify_gimple_in_cfg): New function.
5112         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5113         * tree-ssa.c (verify_ssa): Likewise.
5114         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5116 2011-03-25  Richard Guenther  <rguenther@suse.de>
5118         * passes.c (init_optimization_passes): Add FRE pass after
5119         early SRA.
5121 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5122             Andrew Stubbs  <ams@codesourcery.com>
5124         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5125         for Cortex-A8.
5126         (arm_movdi_vfp_cortexa8): New pattern.
5127         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5128         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5129         instructions when tuning for Cortex-A8.  Set attribute "arch".
5130         * config/arm/arm.md: Move include arm-tune.md up a bit.
5131         (define_attr "arch"): Add "onlya8" and "nota8" values.
5132         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5134 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5136         PR bootstrap/48282
5137         Revert:
5138         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5140         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5141         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5142         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5143         * passes.c (init_optimization_passes): Move
5144         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5146 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5148         * c-typeck.c (comptypes_internal): Replace target
5149         hook call of comp_type_attributes by version in tree.c file.
5150         * gimple.c (gimple_types_compatible_p_1): Likewise.
5151         * tree-ssa.c (useless_type_conversion_p): Likewise.
5152         * tree.c (build_type_attribute_qual_variant): Likewise.
5153         (attribute_value_equal): New static helper function.
5154         (comp_type_attributes): New function.
5155         (merge_attributes): Use attribute_value_equal for comparison.
5156         (attribute_list_contained): Likewise.
5157         * tree.h (comp_type_attributes): New prototype.
5159 2011-03-25  Richard Guenther  <rguenther@suse.de>
5161         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5162         of complex types at -O0.
5163         (verify_gimple_assign_binary): Likewise.
5164         (verify_gimple_assign_ternary): Likewise.
5166 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5168         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5169         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5171 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5173         PR debug/48041
5174         * dwarf2out.c (output_abbrev_section): Only write table when
5175         abbrev_die_table_in_use > 1.
5177 2011-02-24  Richard Henderson  <rth@redhat.com>
5179         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5180         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5181         (alpha_expand_unaligned_load_words): Use extql.
5182         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5183         (emit_insxl): Handle all modes for consistency.
5185 2011-02-24  Richard Henderson  <rth@redhat.com>
5187         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5188         (alpha_expand_unaligned_load): Likewise.
5189         (alpha_expand_unaligned_store): Likewise.
5190         (alpha_expand_unaligned_load_words): Likewise.
5191         (alpha_expand_unaligned_store_words): Likewise.
5192         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5193         (alpha_split_lock_test_and_set_12): Likewise.
5194         (print_operand, alpha_fold_builtin_extxx): Likewise.
5195         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5196         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5197         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5198         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5199         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5200         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5201         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5202         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5203         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5204         (extwl, extll, extql): Similarly.
5205         (inswh, inslh, insqh): Similarly.
5206         (mskbl, mskwl, mskll, mskql): Similarly.
5207         (mskwh, msklh, mskqh): Similarly.
5209 2011-02-24  Richard Henderson  <rth@redhat.com>
5211         * config/alpha/alpha.md (attribute isa): Add er, ner.
5212         (attribute enabled): Handle them.
5213         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5215 2011-02-24  Richard Henderson  <rth@redhat.com>
5217         * config/alpha/alpha.md (attribute isa): Add vms.
5218         (attribute enabled): Handle it.
5219         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5220         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5221         (*movtf): Rename from *movtf_internal for consistency.
5222         (*movsi): Merge with *movsi_nt_vms.
5223         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5224         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5225         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5226         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5228 2011-02-24  Richard Henderson  <rth@redhat.com>
5230         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5231         (extendqisi2, extendhisi2): Likewise.
5232         (extendqidi2): Simplify BWX/non-BWX expansions.
5233         (extendhidi2): Similarly.
5235 2011-02-24  Richard Henderson  <rth@redhat.com>
5237         * config/alpha/alpha.md (attribute isa): New.
5238         (attribute enabled): New.
5239         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5240         (zero_extendqisi2, zero_extendqidi2): Similarly.
5241         (zero_extendhisi2, zero_extendhidi2): Similarly.
5242         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5244 2011-02-24  Richard Henderson  <rth@redhat.com>
5246         * config/alpha/predicates.md (input_operand): Revert last change;
5247         update comment to mention 32-bit VMS rather than Windows.
5249 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5251         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5252         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5253         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5254         * passes.c (init_optimization_passes): Move
5255         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5257 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5259         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5261 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5263         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5264         correctly.
5266 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5268         PR debug/48204
5269         * simplify-rtx.c (simplify_const_unary_operation): Call
5270         real_convert when changing mode class with FLOAT_EXTEND.
5272 2011-03-24  Nick Clifton  <nickc@redhat.com>
5274         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5275         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5276         * config/rx/rx.c (rx_option_override): Set align_jumps,
5277         align_loops and align_labels if not set by the user.
5278         (rx_align_for_label): New function.
5279         (rx_max_skip_for_label): New function.
5280         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5281         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5282         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5283         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5284         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5286 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5288         PR rtl-optimization/48263
5289         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5290         and original commutative_p handling.  Use maybe_gen_insn.
5292 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5294         * reload.c (find_reloads_subreg_address): Add address_reloaded
5295         parameter and return true there if the full address has been
5296         reloaded.
5297         (find_reloads_toplev): Pass address_reloaded flag.
5298         (find_reloads_address_1): Don't use address_reloaded parameter.
5300 2011-03-24  Jeff Law  <law@redhat.com>
5302         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5303         unused variable "ann".
5304         (remove_unused_locals): Likewise.
5306         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5307         statement.
5309         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5310         after it is freed.
5312 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5314         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5315         for invalid symbolic addresses.
5316         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5317         larl operands.
5319 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5321         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5322         the argument in calls to fold_truth_not_expr.
5324 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5326         * tree.c (record_node_allocation_statistics): New function.
5327         (make_node_stat, copy_node_stat, build_string): Call it.
5328         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5329         (build1_stat, build_omp_clause): Likewise.
5331 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5333         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5334         last commit.
5336 2011-03-24  Richard Guenther  <rguenther@suse.de>
5338         PR tree-optimization/48271
5339         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5340         blocks that still exist.
5342 2011-03-24  Richard Guenther  <rguenther@suse.de>
5344         PR tree-optimization/48270
5345         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5346         not free datarefs before ddrs.
5348 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5350         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5351         from the address built for a reference with variable offset.
5353 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5355         PR target/48237
5356         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5357         alternatives that can be handled with movq or movabsq insn.
5358         (*movdf_internal): Disable for !TARGET_64BIT.
5359         (*movdf_internal_nointeger): Ditto.
5360         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5362 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5364         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5365         (FUNCTION_ARG_ADVANCE): Likewise.
5366         * tm.texi.in: Change references to them to hook references.
5367         * tm.texi: Regenerate.
5368         * targhooks.c (default_function_arg): Eliminate check for target macro.
5369         (default_function_incoming_arg): Likewise.
5370         (default_function_arg_advance): Likewise.
5371         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5372         (function_arg_advance): Likewise.
5373         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5375 2011-03-24  Richard Guenther  <rguenther@suse.de>
5377         PR middle-end/48269
5378         * tree-object-size.c (addr_object_size): Do not double-account
5379         for MEM_REF offsets.
5381 2011-03-24  Diego Novillo  <dnovillo@google.com>
5383         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5384         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5385         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5386         Update all users.
5387         (lto_input_string): Rename from input_string.  Make extern.
5388         Update all users.
5389         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5390         output_string_with_length.
5391         Output 0 to indicate a non-NULL string.  Update all callers to
5392         not emit 0.
5393         (lto_output_string): Rename from output_string.  Make extern.
5394         Update all users.
5395         (lto_output_decl_state_streams): Make extern.
5396         (lto_output_decl_state_refs): Make extern.
5397         * lto-streamer.h (lto_input_string): Declare.
5398         (lto_input_data_block): Declare.
5399         (lto_output_string): Declare.
5400         (lto_output_string_with_length): Declare.
5401         (lto_output_decl_state_streams): Declare.
5402         (lto_output_decl_state_refs): Declare.
5404 2011-03-24  Richard Guenther  <rguenther@suse.de>
5406         PR tree-optimization/46562
5407         * tree.c (build_invariant_address): New function.
5408         * tree.h (build_invariant_address): Declare.
5409         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5410         a renamed function moved ...
5411         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5412         Take valueization callback parameter.
5413         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5414         * gimple-fold.h: New file.
5415         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5416         (ccp_fold, fold_const_aggregate_ref,
5417         fold_ctor_reference, fold_nonarray_ctor_reference,
5418         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5419         get_base_constructor): Move ...
5420         * gimple-fold.c: ... here.
5421         (gimple_fold_stmt_to_constant_1): New function
5422         split out from ccp_fold.  Take a valueization callback parameter.
5423         Valueize all operands.
5424         (gimple_fold_stmt_to_constant): New wrapper function.
5425         (fold_const_aggregate_ref_1): New function split out from
5426         fold_const_aggregate_ref.  Take a valueization callback parameter.
5427         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5428         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5429         invariant POINTER_PLUS_EXPRs to invariant form.
5430         (vn_valueize): New function.
5431         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5432         * tree-vrp.c (vrp_valueize): New function.
5433         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5434         to fold statements to constants.
5435         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5436         function declarations.
5437         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5438         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5440 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5442         * config/h8300/predicates.md (jump_address_operand): Fix register
5443         mode check.
5445 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5447         * doc/invoke.texi (max-stores-to-sink): Document.
5448         * params.h (MAX_STORES_TO_SINK): Define.
5449         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5450         if either vectorization or if-conversion is disabled.
5451         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5452         tree-vect-data-refs.c vect_equal_offsets.
5453         (dr_equal_offsets_p): New function.
5454         (find_data_references_in_bb): Remove static.
5455         * tree-data-ref.h (find_data_references_in_bb): Declare.
5456         (dr_equal_offsets_p): Likewise.
5457         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5458         (vect_drs_dependent_in_basic_block): Update calls to
5459         vect_equal_offsets.
5460         (vect_check_interleaving): Likewise.
5461         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5462         (cond_if_else_store_replacement): Rename to...
5463         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5464         documentation.
5465         (cond_if_else_store_replacement): New function.
5466         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5467         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5469 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5471         PR target/46934
5472         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5473         to subtract lower bound instead of GEN_INT().
5475 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5477         PR other/48179
5478         PR other/48221
5479         PR other/48234
5480         * doc/extend.texi (Alignment): Move section to match order in TOC.
5481         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5482         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5484 2011-03-23  Jeff Law  <law@redhat.com>
5486         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5487         before removing the edge.
5489         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5490         it may have been freed by redirect_branch_edge or
5491         redirect_edge_succ_nodup.
5493 2011-03-23  Richard Guenther  <rguenther@suse.de>
5495         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5496         (check_va_list_escapes): Likewise.
5497         (check_all_va_list_escapes): Likewise.
5499 2011-03-23  Richard Guenther  <rguenther@suse.de>
5501         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5502         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5503         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5504         (alias.o): Likewise.
5505         (ipa-type-escape.o): Remove.
5506         (ipa-struct-reorg.o): Likewise.
5507         (GTFILES): Remove ipa-struct-reorg.c.
5508         * alias.c: Do not include ipa-type-escape.h.
5509         * tree-ssa-alias.c: Likewise.
5510         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5511         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5512         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5513         and ipa-type-escape passes.
5514         * tree-pass.h (pass_ipa_type_escape): Remove.
5515         (pass_ipa_struct_reorg): Likewise.
5516         * ipa-struct-reorg.h: Remove.
5517         * ipa-struct-reorg.c: Likewise.
5518         * ipa-type-escape.h: Likewise.
5519         * ipa-type-escape.c: Likewise.
5520         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5521         (--param struct-reorg-cold-struct-ratio): Likewise.
5522         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5523         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5524         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5526 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5528         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5529         cpu attribute value.
5530         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5531         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5532         * config/s390/s390.c (processor_flags_table): New constant array.
5533         (s390_handle_arch_option): Remove.
5534         (s390_handle_option): Remove s390_handle_arch_option invocations
5535         and OPT_mwarn_framesize_ handling.
5536         (s390_option_override): Remove s390_handle_arch_option invocation.
5537         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5538         warnings.
5539         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5540         * config/s390/s390.opt (s390_tune, s390_arch)
5541         (march=): Replace s390_arch_option enum and values with
5542         processor_type.  Set variable name to s390_arch.  Set
5543         initialization value.
5544         (mtune=): Replace s390_arch_option with processor_type.  Set
5545         variable name to s390_tune.  Set initialization value.
5547 2011-03-23  Julian Brown  <julian@codesourcery.com>
5549         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5550         accesses which are not naturally aligned.
5552 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5554         PR target/47553
5555         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5557 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5559         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5560         parameter from "int" to "enum insn_code".
5561         (expand_operand_type): New enum.
5562         (expand_operand): New structure.
5563         (create_expand_operand): New function.
5564         (create_fixed_operand, create_output_operand): Likewise
5565         (create_input_operand, create_convert_operand_to): Likewise.
5566         (create_convert_operand_from, create_address_operand): Likewise.
5567         (create_integer_operand): Likewise.
5568         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5569         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5570         (expand_insn, expand_jump_insn): Likewise.
5571         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5572         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5573         (expand_movstr, expand_builtin___clear_cache): Likewise.
5574         (expand_builtin_lock_release): Likewise.
5575         * explow.c (allocate_dynamic_stack_space): Likewise.
5576         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5577         and use the default handling in that case.
5578         * expmed.c (check_predicate_volatile_ok): Delete.
5579         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5580         (emit_cstore): Likewise.
5581         * expr.c (emit_block_move_via_movmem): Likewise.
5582         (set_storage_via_setmem, expand_assignment): Likewise.
5583         (emit_storent_insn, try_casesi): Likewise.
5584         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5585         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5586         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5587         (expand_twoval_unop, expand_twoval_binop): Likewise.
5588         (expand_unop_direct, emit_indirect_jump): Likewise.
5589         (emit_conditional_move, vector_compare_rtx): Likewise.
5590         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5591         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5592         (expand_sync_lock_test_and_set): Likewise.
5593         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5594         (emit_unop_insn): Likewise.
5595         (expand_copysign_absneg): Change icode to an insn_code.
5596         (create_convert_operand_from_type): New function.
5597         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5598         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5599         (expand_insn, expand_jump_insn): Likewise.
5600         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5601         than const_int_operand for operand 2.
5603 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5605         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5606         if possible.
5608 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5610         * emit-rtl.c (emit_pattern_before_noloc): New function.
5611         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5612         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5613         (emit_pattern_after_noloc): New function.
5614         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5615         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5617 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5619         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5620         (__ffsDI2): Likewise.
5622 2011-03-22  Richard Henderson  <rth@redhat.com>
5624         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5625         of !TARGET_ABI_OPEN_VMS.
5626         (alpha_trampoline_init, alpha_start_function): Likewise.
5627         (alpha_expand_epilogue, alpha_file_start): Likewise.
5628         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5629         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5630         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5631         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5632         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5634 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5636         * config/s390/s390-opts.h: New.
5637         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5638         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5639         s390_stack_guard): Remove.
5640         (s390_handle_arch_option): Return void.  Take enum
5641         s390_arch_option value instead of string and searching array.
5642         (s390_handle_option): Don't assert that global structures are in
5643         use.  Access variables via opts pointer.  Use error_at.  Don't use
5644         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5645         s390_handle_arch_option.
5646         (s390_option_override): Update call to s390_handle_arch_option.
5647         (s390_emit_prologue): Use %d format for s390_stack_size in
5648         diagnostic.  Use %wd for HOST_WIDE_INT.
5649         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5650         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5651         * config/s390/s390.opt (config/s390/s390-opts.h): New
5652         HeaderInclude entry.
5653         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5654         s390_arch_flags, s390_warn_framesize): New Variable entries.
5655         (s390_arch_option): New Enum and EnumValue entries.
5656         (march=): Use Enum instead of Var.
5657         (mstack-guard=, mstack-size=): Use UInteger and Var.
5658         (mtune=): Use Enum.
5660 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5662         * config/score/score.c (score_handle_option): Don't assert that
5663         global structures are in use.  Access target_flags via opts
5664         pointer.  Use value of -march= option to determine target_flags
5665         settings.
5666         * config/score/score.opt (march=): Use Enum.
5667         (score_arch): New Enum and EnumValue entries.
5669 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5671         * config/mep/mep.c (option_mtiny_specified): Remove.
5672         (mep_option_override): Move register handling for -mivc2 from
5673         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5674         instead of option_mtiny_specified.
5675         (mep_handle_option): Access target_flags via opts pointer.  Don't
5676         assert that global structures are in use.  Defer part of -mivc2
5677         handling and move it to mep_option_override.
5678         * config/mep/mep.opt (IVC2): New Mask entry.
5679         (mivc2): Use Var and Defer instead of Mask.
5681 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5683         * config/v850/v850-opts.h: New.
5684         * config/v850/v850.c (small_memory): Replace with
5685         small_memory_physical_max array.  Make that array static const.
5686         (v850_handle_memory_option): Take integer value of argument.  Take
5687         gcc_options pointer, option text and location.  Return void.
5688         Update for changes to small memory structures.
5689         (v850_handle_option): Access target_flags via opts pointer.  Don't
5690         assert that global structures are in use.  Update calls to
5691         v850_handle_memory_option.
5692         (v850_encode_data_area): Update references to small memory settings.
5693         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5694         (enum small_memory_type): Move to v850-opts.h.
5695         * config/v850/v850.opt (config/v850/v850-opts.h): New
5696         HeaderInclude entry.
5697         (small_memory_max): New Variable entry.
5698         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5699         (mtda, mzda): Likewise.
5701 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5703         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5704         pointer.  Don't assert that global structures are in use.
5706 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5708         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5709         via opts pointer.  Don't assert that global structures are in use.
5711 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5713         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5714         (munix=93): Use Var.
5715         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5716         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5717         * config/pa/pa-opts.h: New.
5718         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5719         (pa_handle_option): Don't assert that global structures are in
5720         use.  Access target_flags via opts pointer.  Don't handle
5721         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5722         OPT_munix_98 here.
5723         (pa_option_override): Handle deferred OPT_mfixed_range_.
5725 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5727         * config/mn10300/mn10300-opts.h: New.
5728         * config/mn10300/mn10300.c (mn10300_processor,
5729         mn10300_tune_string): Remove.
5730         (mn10300_handle_option): Don't assert that global structures are
5731         in use.  Access mn10300_processor via opts pointer.  Don't handle
5732         OPT_mtune_ here.
5733         * config/mn10300/mn10300.h (enum processor_type): Move to
5734         mn10300-opts.h.
5735         (mn10300_processor): Remove.
5736         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5737         HeaderInclude entry.
5738         (mn10300_processor): New Variable entry.
5739         (mtune=): Use Var.
5741 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5743         * config/microblaze/microblaze.c: Don't include opts.h.
5744         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5745         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5746         (mno-clearbss): Use Var and Warn.
5748 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5750         * config/m32r/m32r-opts.h: New.
5751         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5752         (m32r_handle_option): Don't assert that global structures are in
5753         use.  Access target_flags and m32r_cache_flush_func via opts
5754         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5755         OPT_mno_flush_trap here.
5756         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5757         include of m32r-opts.h.
5758         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5759         HeaderInclude entry.
5760         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5761         (mmodel=): Use Enum and Var.
5762         (m32r_model): New Enum and EnumValue entries.
5763         (mno-flush-trap): Use Var.
5764         (msdata=): Use Enum and Var.
5765         (m32r_sdata): New Enum and EnumValue entries.
5767 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5769         * config/m32c/m32c.c: Don't include opts.h.
5770         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5771         m32c_handle_option): Remove.
5772         (m32c_option_override): Check global_options_set.x_target_memregs
5773         instead of target_memregs_set.
5774         * config/m32c/m32c.h (target_memregs): Remove.
5775         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5776         variable.
5778 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5780         * config/iq2000/iq2000-opts.h: New.
5781         * config/iq2000/iq2000.c: Don't include opts.h.
5782         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5783         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5784         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5785         HeaderInclude entry.
5786         (iq2000_tune): New Variable entry.
5787         (march=): Add comment.  Use Enum.
5788         (iq2000_arch): New Enum and EnumValue entries.
5789         (mcpu=): Use Enum and Var.
5790         (iq2000_tune): New Enum and EnumValue entries.
5792 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5794         * config/ia64/ia64-opts.h: New.
5795         * config/ia64/ia64.c (ia64_tune): Remove.
5796         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5797         here.  Use error_at.
5798         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5799         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5800         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5801         HeaderInclude entry.
5802         (ia64_tune): New Variable entry.
5803         (mfixed-range=): Use Defer and Var.
5804         (mtune=): Use Enum and Var.
5805         (ia64_tune): New Enum and EnumValue entries.
5807 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5809         * config/frv/frv-opts.h: New.
5810         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5811         frv-opts.h.
5812         (frv_cpu_type): Remove.
5813         * config/frv/frv.c: Don't include opts.h.
5814         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5815         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5816         (frv_cpu_type): New Variable entry.
5817         (frv_cpu): New Enum and EnumValue entries.
5819 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5821         * config/cris/cris.c (cris_handle_option): Access target_flags via
5822         opts pointer.  Don't assert that global structures are in use.
5823         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5824         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5826 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5828         * config/bfin/bfin-opts.h: New.
5829         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5830         bfin_si_revision, bfin_workarounds): Remove.
5831         (bfin_cpus): Make static const.
5832         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5833         not bfin_lib_id_given.
5834         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5835         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5836         pointer. Use error_at.  Don't assert that global structures are in use.
5837         * config/bfin/bfin.h: Include bfin-opts.h.
5838         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5839         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5840         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5841         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5842         entries.
5844 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5846         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5847         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5848         or -msoft-float here.
5849         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5850         -msoft-float and -mhard-float.
5851         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5852         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5853         msoft-float.
5854         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5855         -msoft-float.
5856         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5857         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5858         not mhard-float.
5859         (LIBGCC_SPEC): Don't handle -msoft-float.
5860         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5861         -mhard-float.
5862         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5863         msoft-float.
5864         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5865         -mfloat-abi=*, not -msoft-float and -mhard-float.
5866         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5867         -msoft-float.
5868         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5869         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5870         mhard-float and msoft-float.
5871         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5872         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5873         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5874         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5875         mhard-float.
5876         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5877         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5878         msoft-float.
5879         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5880         not mhard-float.
5881         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5882         not msoft-float.
5884 2011-03-22  Richard Henderson  <rth@redhat.com>
5886         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5887         TARGET_ABI_WINDOWS_NT.
5888         (alpha_output_function_end_prologue): Likewise.
5889         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5890         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5891         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5892         (trap, *movsi_nt_vms): Likewise.
5893         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5894         (*tablejump_osf_nt_internal): Remove.
5895         * config/alpha/predicates.md (input_operand): Only test Pmode.
5897 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5899         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5900         via opts pointer.  Use error_at.  Don't assert that global
5901         structures are in use.
5903 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5905         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5906         (ix86_handle_option): Access ix86_isa_flags and
5907         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5908         global structures are in use.
5909         (ix86_function_specific_save, ix86_function_specific_restore):
5910         Update ix86_isa_flags_explicit field name.
5911         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5912         (ix86_isa_flags_explicit): Rename TargetSave entry to
5913         x_ix86_isa_flags_explicit.
5915 2011-03-22  Richard Henderson  <rth@redhat.com>
5917         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5918         (alpha_option_override, direct_return): Likewise.
5919         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5920         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5921         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5922         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5923         (alpha_expand_epilogue, alpha_end_function): Likewise.
5924         (alpha_init_libfuncs): Likewise.
5925         (struct machine_function): Remove unicosmk members.
5926         (print_operand) ['t']: Remove.
5927         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5928         unicosmk_output_module_name, unicosmk_output_common,
5929         current_section_align, unicosmk_output_text_section_asm_op,
5930         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5931         unicosmk_section_type_flags, unicosmk_unique_section,
5932         unicosmk_asm_named_section, unicosmk_insert_attributes,
5933         unicosmk_output_align, unicosmk_defer_case_vector,
5934         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5935         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5936         unicosmk_output_ssib, unicosmk_add_call_info_word,
5937         unicosmk_extern_head, unicosmk_output_default_externs,
5938         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5939         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5940         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5941         * config/alpha/alpha-protos.h: Update.
5942         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5943         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5944         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5945         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5946         (*mulsi_se, mulvsi3): Likewise.
5947         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5948         (*divmodsi_internal, call, call_value, realign): Likewise.
5949         (moddi3, umoddi3): Likewise; remove duplicate expander.
5950         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5951         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5952         (*movdi_nofix): Remove r/U alternative.
5953         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5954         * config/alpha/constraints.md ("U"): Remove.
5955         * config/alpha/predicates.md (call_operand"): Don't test
5956         TARGET_ABI_UNICOSMK.
5958 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5960         * target.def (handle_option): Take gcc_options and
5961         cl_decoded_option pointers and location_t.
5962         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5963         * doc/tm.texi: Regenerate.
5964         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5965         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5966         * lto-opts.c (lto_reissue_options): Generate option structure for
5967         targetm.handle_option call.
5968         * opts.c (target_handle_option): Update call to
5969         targetm.handle_option.  Remove assertions about values now passed
5970         down to hook.
5971         * targhooks.c (default_target_handle_option): New.
5972         * targhooks.h (default_target_handle_option): Declare.
5973         * config/alpha/alpha.c: Include opts.h.
5974         (alpha_handle_option): Update to new hook interface.
5975         * config/arm/arm.c: Include opts.h.
5976         (arm_handle_option): Update to new hook interface.
5977         * config/arm/t-arm (arm.o): Update dependencies.
5978         * config/bfin/bfin.c: Include opts.h.
5979         (bfin_handle_option): Update to new hook interface.
5980         * config/cris/cris.c: Include opts.h.
5981         (cris_handle_option): Update to new hook interface.
5982         * config/frv/frv.c: Include opts.h.
5983         (frv_handle_option): Update to new hook interface.
5984         * config/i386/i386.c: Include opts.h.
5985         (ix86_handle_option): Update to new hook interface.
5986         (ix86_valid_target_attribute_inner_p): Generate option structure
5987         for call to ix86_handle_option.
5988         * config/i386/t-i386 (i386.o): Update dependencies.
5989         * config/ia64/ia64.c: Include opts.h.
5990         (ia64_handle_option): Update to new hook interface.
5991         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5992         * config/iq2000/iq2000.c: Include opts.h.
5993         (iq2000_handle_option): Update to new hook interface.
5994         * config/m32c/m32c.c: Include opts.h.
5995         (m32c_handle_option): Update to new hook interface.
5996         * config/m32r/m32r.c: Include opts.h.
5997         (m32r_handle_option): Update to new hook interface.
5998         * config/m68k/m68k.c: Include opts.h.
5999         (m68k_handle_option): Update to new hook interface.
6000         * config/mep/mep.c: Include opts.h.
6001         (mep_handle_option): Update to new hook interface.
6002         * config/microblaze/microblaze.c: Include opts.h.
6003         (microblaze_handle_option): Update to new hook interface.
6004         * config/mips/mips.c: Include opts.h.
6005         (mips_handle_option): Update to new hook interface.
6006         * config/mn10300/mn10300.c: Include opts.h.
6007         (mn10300_handle_option): Update to new hook interface.
6008         * config/pa/pa.c: Include opts.h.
6009         (pa_handle_option): Update to new hook interface.
6010         * config/pdp11/pdp11.c: Include opts.h.
6011         (pdp11_handle_option): Update to new hook interface.
6012         * config/rs6000/rs6000.c: Include opts.h.
6013         (rs6000_handle_option): Update to new hook interface.
6014         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6015         * config/rx/rx.c: Include opts.h.
6016         (rx_handle_option): Update to new hook interface.
6017         * config/s390/s390.c: Include opts.h.
6018         (s390_handle_option): Update to new hook interface.
6019         * config/score/score.c: Include opts.h.
6020         (score_handle_option): Update to new hook interface.
6021         * config/sh/sh.c: Include opts.h.
6022         (sh_handle_option): Update to new hook interface.
6023         * config/sparc/sparc.c: Include opts.h.
6024         (sparc_handle_option): Update to new hook interface.
6025         * config/v850/v850.c: Include opts.h.
6026         (v850_handle_option): Update to new hook interface.
6028 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6030         * gcc.c (driver_unknown_option_callback): Only permit and save
6031         unknown -Wno- options.
6032         (driver_wrong_lang_callback): Save options directly instead of via
6033         driver_unknown_option_callback.
6035 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6037         * combine.c (simplify_set): Try harder to find the best CC mode when
6038         simplifying a nested COMPARE on the RHS.
6040 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6042         * config/alpha/gnu.h: Remove.
6043         * config/arc: Remove directory.
6044         * config/arm/netbsd.h: Remove.
6045         * config/arm/t-pe: Remove.
6046         * config/crx: Remove directory.
6047         * config/i386/netbsd.h: Remove.
6048         * config/m68hc11: Remove directory.
6049         * config/m68k/uclinux-oldabi.h: Remove.
6050         * config/mcore/mcore-pe.h: Remove.
6051         * config/mcore/t-mcore-pe: Remove.
6052         * config/netbsd-aout.h: Remove.
6053         * config/rs6000/gnu.h: Remove.
6054         * config/sh/sh-symbian.h: Remove.
6055         * config/sh/symbian-base.c: Remove.
6056         * config/sh/symbian-c.c: Remove.
6057         * config/sh/symbian-cxx.c: Remove.
6058         * config/sh/symbian-post.h: Remove.
6059         * config/sh/symbian-pre.h: Remove.
6060         * config/sh/t-symbian: Remove.
6061         * config/svr3.h: Remove.
6062         * config/vax/netbsd.h: Remove.
6063         * config.build: Don't handle i[34567]86-*-pe.
6064         * config.gcc: Remove handling of deprecations for most deprecated
6065         targets.
6066         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6067         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6068         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6069         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6070         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6071         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6072         Remove cases.
6073         * config.host: Don't handle i[34567]86-*-pe.
6074         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6075         (ASM_SPEC32): Don't handle -mcall-gnu.
6076         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6077         -mcall-gnu.
6078         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6079         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6080         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6081         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6082         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6083         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6084         conditional on SYMBIAN.
6085         * configure.ac: Don't handle powerpc*-*-gnu*.
6086         * configure: Regenerate.
6087         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6088         * doc/install-old.texi (m6811, m6812): Don't mention.
6089         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6090         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6091         (m68k-uclinuxoldabi): Don't mention.
6092         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6093         Remove.
6094         (-mcall-gnu): Remove.
6095         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6096         families): Remove constraint documentation.
6098 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6100         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6101         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6102         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6104 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6106         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6107         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6108         * config/avr/avr.c (init_cumulative_args)
6109         (avr_function_arg_advance): Use it.
6110         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6111         sibcall epilogues.
6112         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6113         (avr_function_ok_for_sibcall): ...this new function.
6114         (avr_lookup_function_attribute1): New static Function.
6115         (avr_naked_function_p, interrupt_function_p)
6116         (signal_function_p, avr_OS_task_function_p)
6117         (avr_OS_main_function_p): Use it.
6118         * config/avr/avr.md ("sibcall", "sibcall_value")
6119         ("sibcall_epilogue"): New expander.
6120         ("*call_insn", "*call_value_insn"): New insn.
6121         ("call_insn", "call_value_insn"): Remove
6122         ("call", "call_value", "epilogue"): Change expander to handle
6123         sibling calls.
6125 2011-03-21  Nick Clifton  <nickc@redhat.com>
6127         * doc/invoke.texi (Overall Options): Move closing brace to end of
6128         options list.
6129         (Optimization Options): Add missing @gol.
6130         (Directory Options): Likewise.
6131         (i386 and x86-64 Options): Likewise.
6132         (RS6000 and PowerPC Options): Likewise.
6133         (i386 and x86-64 Windows Options): Likewise.
6134         (V850 Options): Add text missing from descriptions.
6136 2011-03-22  Richard Henderson  <rth@redhat.com>
6138         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6139         (avr_incoming_return_addr_rtx): New.
6140         (emit_push_byte): New.
6141         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6142         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6143         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6144         (emit_pop_byte): New.
6145         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6146         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6147         (INCOMING_RETURN_ADDR_RTX): New.
6148         (INCOMING_FRAME_SP_OFFSET): New.
6149         (ARG_POINTER_CFA_OFFSET): New.
6150         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6151         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6152         (pophi): Remove.
6154         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6156 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6158         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6159         (FUNCTION_ARG_ADVANCE): Likewise.
6160         * tm.texi.in: Change references to them to hook references.
6161         * tm.texi: Regenerate.
6162         * targhooks.c (default_function_arg): Eliminate check for target
6163         macro.
6164         (default_function_incoming_arg): Likewise.
6165         (default_function_arg_advance): Likewise.
6166         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6167         (function_arg_advance): Likewise.
6168         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6170 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6172         * tree.c (build_call_1): New function.
6173         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6175 2011-03-22  Richard Guenther  <rguenther@suse.de>
6177         PR tree-optimization/48228
6178         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6179         for single-arg PHIs.
6181 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6183         PR rtl-optimization/48143
6184         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6185         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6186         sse2_cvtps2pd): Likewise.
6188 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6190         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6192 2011-03-22  Richard Guenther  <rguenther@suse.de>
6194         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6195         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6196         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6197         and REALIGN_LOAD_EXPR.
6198         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6199         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6200         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6201         DOT_PROD_EXPR case ...
6202         (expand_expr_real_2): ... here.
6203         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6204         and REALIGN_LOAD_EXPR.
6205         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6206         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6207         (vect_create_epilog_for_reduction): Likewise.
6208         (vectorizable_reduction): Likewise.
6209         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6210         * tree-vect-stmts.c (vectorizable_load): Likewise.
6212 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6214         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6216 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6218         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6219         handling for PLTOFF/GOTOFF.
6221 2011-03-22  Nick Clifton  <nickc@redhat.com>
6223         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6224         trailing backslash from the end of the macro definition.
6226 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6228         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6229         and PLT unspecs.
6231 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6233         * expr.h (prepare_operand): Move to...
6234         * optabs.h (prepare_operand): ...here and change the insn code
6235         parameter from "int" to "enum insn_code".
6236         (insn_operand_matches): Declare.
6237         * expr.c (init_expr_target): Use insn_operand_matches.
6238         (compress_float_constant): Likewise.
6239         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6240         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6241         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6242         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6243         Likewise.
6244         (gen_cond_trap): Likewise.
6245         (prepare_operand): Likewise.  Change icode to an insn_code.
6246         (insn_operand_matches): New function.
6247         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6248         * reload1.c (gen_reload): Likewise.
6249         * targhooks.c (default_secondary_reload): Likewise.
6251 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6253         * config/alpha/alpha.md (unspec): New define_c_enum.
6254         (unspecv): Ditto.
6256 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6258         PR debug/48214
6259         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6260         between a call and its CALL_ARG_LOCATION note.
6262 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6264         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6266 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6268         PR c/42544
6269         PR c/48197
6270         * c-common.c (shorten_compare): If primopN is first sign-extended
6271         to opN and then zero-extended to result type, set primopN to opN.
6273 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6275         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6276         for barrier handlers.
6278 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6280         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6281         UNSPEC constants to be in the unspec enumeration, and redefine
6282         all UNSPECV constants to be in the unspecv enumeration, so that
6283         dumps print which unspec/unspec_volatile this is.
6284         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6285         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6286         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6287         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6288         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6290         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6291         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6292         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6293         * config/rs6000/sync.md (isync, lwsync): Ditto.
6295 2011-03-21  Richard Guenther  <rguenther@suse.de>
6297         * params.def (lto-min-partition): Fix typo.
6299 2011-03-21  Richard Guenther  <rguenther@suse.de>
6301         PR c/47939
6302         * c-decl.c (grokdeclarator): Drop to the main variant only
6303         for array types.  Drop flag_gen_aux_info check.
6305 2011-03-21  Richard Guenther  <rguenther@suse.de>
6307         PR translation/47911
6308         * params.def (lto-partitions): Fix typo.
6309         (lto-min-partition): Fix wording.
6311 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6313         * config/rs6000/t-freebsd: Remove duplication from file.
6315 2011-03-21  Richard Guenther  <rguenther@suse.de>
6317         PR middle-end/47661
6318         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6320 2011-03-21  Richard Guenther  <rguenther@suse.de>
6322         PR lto/48210
6323         * params.def (lto-partitions): Require at least 1 partition.
6325 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6327         * gthr-solaris.h: Remove.
6328         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6329         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6330         (LIB_SPEC): Likewise.
6331         * config/sol2.opt (threads): Remove.
6332         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6333         (sparc*-*-solaris2*): Likewise.
6334         * configure.ac (enable_threads): Enable solaris support.
6335         * configure: Regenerate.
6336         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6337         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6338         solaris.
6340 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6342         * config.gcc: Obsolete *-*-solaris2.8*.
6343         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6345 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6347         PR bootstrap/48135
6348         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6349         reference.  Solaris 8 perl works.
6351 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6353         PR bootstrap/48135
6354         * doc/install.texi (Prerequisites): Move jar etc. up.
6355         Explain support library version requirements.
6357 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6359         PR bootstrap/48135
6360         * doc/install.texi (Prerequisites): Move Perl to build
6361         requirements.  Always necessary on Solaris 2 with Sun ld.
6363 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6365         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6366         binutils 2.21.
6367         (Specific, i?86-*-solaris2.[89]): Likewise.
6368         (Specific, i?86-*-solaris2.10): Likewise.
6369         (Specific, mips-sgi-irix6): Likewise.
6370         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6371         Update for binutils 2.21.
6373 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6375         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6376         Allow -fuse-linker-plugin for non-default plugin linker.
6377         * configure: Regenerate.
6379 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6381         PR bootstrap/48167
6382         * gengtype.c (files_rules): Added rule for cp/parser.h.
6384 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6386         PR target/48213
6387         * config/s390/s390.c (s390_delegitimize_address): Don't call
6388         lowpart_subreg if orig_x has BLKmode.
6390 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6392         PR target/12171
6393         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6394         * tree.h (attribute_spec): Add new member affects_type_identity.
6395         * attribs.c (empty_attribute_table): Adjust attribute_spec
6396         initializers.
6397         * config/alpha/alpha.c: Likewise.
6398         * config/arc/arc.c: Likewise.
6399         * config/arm/arm.c: Likewise.
6400         * config/avr/avr.c: Likewise.
6401         * config/bfin/bfin.c: Likewise.
6402         * config/crx/crx.c: Likewise.
6403         * config/darwin.h: Likewise.
6404         * config/h8300/h8300.c: Likewise.
6405         * config/i386/cygming.h: Likewise.
6406         * config/i386/i386.c: Likewise.
6407         * config/ia64/ia64.c: Likewise.
6408         * config/m32c/m32c.c: Likewise.
6409         * config/m32r/m32r.c: Likewise.
6410         * config/m68hc11/m68hc11.c: Likewise.
6411         * config/m68k/m68k.c: Likewise.
6412         * config/mcore/mcore.c: Likewise.
6413         * config/mep/mep.c: Likewise.
6414         * config/microblaze/microblaze.c: Likewise.
6415         * config/mips/mips.c: Likewise.
6416         * config/rs6000/rs6000.c: Likewise.
6417         * config/rx/rx.c: Likewise.
6418         * config/sh/sh.c: Likewise.
6419         * config/sol2.h: Likewise.
6420         * config/sparc/sparc.c: Likewise.
6421         * config/spu/spu.c: Likewise.
6422         * config/stormy16/stormy16.c: Likewise.
6423         * config/v850/v850.c: Likewise.
6425 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6427         * simplify-rtx.c (simplify_binary_operation_1): Handle
6428         (xor (and A B) C) case when B and C are both constants.
6430 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6432         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6434 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6436         PR bootstrap/48168
6437         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6439 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6441         PR rtl-optimization/48156
6442         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6443         assume df and df_lr are not NULL.
6445 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6447         PR debug/48023
6448         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6449         between a call and its CALL_ARG_LOCATION note.
6451 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6453         PR debug/48178
6454         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6455         between a call and its corresponding CALL_ARG_LOCATION note.
6457 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6459         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6460         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6461         * haifa-sched.c (setup_ref_regs): Ditto.
6462         * caller-save.c (add_used_regs_1): Ditto.
6463         * dse.c (look_for_hardregs): Ditto.
6464         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6465         * sched-rgn.c (check_live_1): Ditto.
6467 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6469         * c-decl.c (diagnose_mismatched_decls): Give an error for
6470         redefining a typedef with variably modified type.
6472 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6474         * c-decl.c (grokfield): Don't allow typedefs for structures or
6475         unions with no tag by default.
6476         * doc/extend.texi (Unnamed Fields): Update.
6478 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6480         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6481         Rewrite using indirect functions.
6482         (lwp_slwpcb): Ditto.
6483         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6484         (avx_vinsertf128<mode>): Ditto.
6486 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6488         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6489         unspecs.
6491 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6493         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6494         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6496 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6498         PR rtl-optimization/48170
6499         * gcse.c (hoist_code): Remove bogus asserts.
6501 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6503         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6504         computation for prologue/epilogue.
6506 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6508         * Makefile.in (check-consistency): Remove.
6510 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6512         PR debug/48176
6513         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6514         arange_table_in_use is 0, but either text_section_used or
6515         cold_text_section_used is true.  Don't call it if
6516         !info_section_emitted.
6518 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6520         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6521         FUNCTION_VALUE_REGNO_P): Remove.
6522         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6523         Remove.
6524         * config/avr/avr.c (avr_ret_register): Make static inline.
6525         (avr_function_value_regno_p): New function.
6526         (avr_libcall_value): Make static. Add 'func' argument.
6527         (avr_function_value): Make static. Rename 'func' argument to
6528         'fn_decl_or_type', forward it to avr_libcall_value. Call
6529         avr_ret_register function instead of RET_REGISTER macro.
6530         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6532 2011-03-18  Jason Merrill  <jason@redhat.com>
6534         PR c++/23372
6535         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6537 2011-03-18  Richard Guenther  <rguenther@suse.de>
6539         * doc/install.texi (--enable-gold): Remove.
6540         (--with-plugin-ld): Document.
6541         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6543 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6545         PR middle-end/47790
6546         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6547         again after expansion changes.
6549 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6551         * combine.c (try_combine): Do simplification only call of
6552         subst() on i2 even when i1 is present. Update comments.
6554 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6556         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6557         and UNSPEC_PCREL_SYMOFF.
6559 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6561         * config/s390/s390.md: Use define_c_enum for the unspec constant
6562         definitions.
6564 2011-03-18  Richard Henderson  <rth@redhat.com>
6565             Jakub Jelinek  <jakub@redhat.com>
6567         PR bootstrap/48161
6568         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6569         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6571 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6573         PR middle-end/47725
6574         * combine.c (cant_combine_insn_p): Don't check zero/sign
6575         extended hard registers.
6577 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6579         PR middle-end/47725
6580         * combine.c (cant_combine_insn_p): Check zero/sign extended
6581         hard registers.
6583 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6585         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6586         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6587         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6588         Change return type to bool.
6589         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6591 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6593         PR debug/48163
6594         * var-tracking.c (prepare_call_arguments): If CALL target
6595         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6596         pc instead of looking it up using cselib_lookup and use
6597         Pmode for it if x has VOIDmode.
6598         * dwarf2out.c (gen_subprogram_die): If also both first and
6599         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6601         PR debug/48163
6602         * function.c (assign_parms): For data.passed_pointer parms
6603         use MEM of data.entry_parm instead of data.entry_parm itself
6604         as DECL_INCOMING_RTL.
6605         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6606         also when passed and declared mode is the same, DECL_RTL
6607         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6608         a MEM too.
6610 2011-03-16  Jeff Law  <law@redhat.com>
6612         PR rtl-optimization/37273
6613         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6614         handle them like argument loads from stack slots.  Do not double
6615         count memory for memory constants and argument loads from stack slots.
6617 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6619         PR debug/48160
6620         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6622 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6624         PR target/48171
6625         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6627 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6629         PR bootstrap/48153
6630         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6631         if dwarf_strict.
6632         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6633         Clear call_arg_locations and call_arg_loc_last always.
6635         PR middle-end/48152
6636         * var-tracking.c (prepare_call_arguments): If argument needs to be
6637         passed by reference, adjust argtype and mode.
6639 2011-03-17  Richard Guenther  <rguenther@suse.de>
6641         PR middle-end/48134
6642         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6643         a value make sure to fold the statement.
6645 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6647         PR target/43872
6648         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6649         return condition with !cfun->calls_alloca.
6651 2011-03-17  Richard Guenther  <rguenther@suse.de>
6653         PR bootstrap/48148
6654         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6655         origin for decls in other ltrans units.
6656         (input_varpool_node): Likewise.
6658 2011-03-17  Richard Guenther  <rguenther@suse.de>
6660         PR middle-end/48165
6661         * tree-object-size.c (compute_object_offset): Properly return
6662         the offset operand of MEM_REFs as sizetype.
6664 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6666         PR rtl-optimization/48141
6667         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6668         * dse.c: Include params.h.
6669         (active_local_stores_len): New variable.
6670         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6671         to NULL.
6672         (record_store, check_mem_read_rtx): Decrease it when removing
6673         from the chain.
6674         (scan_insn): Likewise.  Increase it when adding to chain, if it
6675         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6676         set active_local_stores to NULL before the addition.
6677         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6679         PR rtl-optimization/48141
6680         * dse.c (record_store): If no positions are needed in an insn
6681         that cannot be deleted, at least unchain it from active_local_stores.
6683 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6685         PR debug/47510
6686         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6687         (lookup_type_die_strip_naming_typedef): ... here.
6688         (get_context_die): Use it.
6689         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6690         the anonymous struct named by the naming typedef.
6692 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6694         PR target/48154
6695         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6696         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6698 2011-03-16  Jeff Law  <law@redhat.com>
6700         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6701         check for operands of conditional.  Allow type to be a pointer.
6703 2011-03-16  Richard Guenther  <rguenther@suse.de>
6705         PR tree-optimization/48149
6706         * fold-const.c (fold_binary_loc): Fold
6707         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6709 2011-03-16  Richard Guenther  <rguenther@suse.de>
6711         PR tree-optimization/26134
6712         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6713         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6714         (non_rewritable_mem_ref_base): Handle complex type component
6715         accesses, constrain offsets for vector and complex extracts
6716         more properly.
6718 2011-03-16  Richard Guenther  <rguenther@suse.de>
6720         PR tree-optimization/48146
6721         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6722         operands avoiding the need for renaming.
6724 2011-03-16  Richard Guenther  <rguenther@suse.de>
6726         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6727         constant folding.  Move MEM_REF canonicalization first.
6728         Rely on fold_const_aggregate_ref for initializer folding.
6729         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6731 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6733         PR middle-end/48136
6734         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6735         arg0/arg1 or their arguments are always fold converted to matching
6736         types.
6738         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6739         to nargs.
6741 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6743         PR lto/46944
6744         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6745         Handle in-tree gold.
6746         (ld_vers): Extract binutils version for gold.
6747         (gcc_cv_ld_hidden): Handle gold here.
6748         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6749         * configure: Regenerate.
6750         * config.in: Regenerate.
6751         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6752         -fuse-linker-plugin otherwise.
6753         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6754         (LINK_COMMAND_SPEC): Use it.
6755         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6757 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6759         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6760         * calls.c: Remove debug.h include.
6761         (emit_call_1): Don't call virtual_call_token debug hook.
6762         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6763         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6764         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6765         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6766         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6767         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6768         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6769         dwarf2out_virtual_call): Remove.
6770         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6771         copy_call_info and virtual_call hooks.
6772         (dwarf2out_init): Don't initialize vcall_insn_table,
6773         debug_dcall_section and debug_vcall_section.
6774         (prune_unused_types): Don't mark nodes from dcall_table.
6775         (dwarf2out_finish): Don't output dcall or vcall tables.
6776         * final.c (final_scan_insn): Don't call direct_call or
6777         virtual_call debug hooks.
6778         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6779         virtual_call_token, copy_call_info and virtual_call hooks.
6780         (debug_nothing_uid): Remove prototype.
6781         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6782         copy_call_info and virtual_call hooks.
6783         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6784         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6785         * debug.c (do_nothing_debug_hooks): Likewise.
6786         (debug_nothing_uid): Remove.
6787         * doc/invoke.texi (-fenable-icf-debug): Remove.
6788         * common.opt (-fenable-icf-debug): Likewise.
6790         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6791         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6792         call's MEM.  Handle functions returning aggregate through a hidden
6793         first pointer.  For virtual calls add clobbered pc to call arguments
6794         chain.
6795         * dwarf2out.c (gen_subprogram_die): Emit
6796         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6797         can't be emitted.
6799         PR debug/45882
6800         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6801         * rtl.h (ENTRY_VALUE_EXP): Define.
6802         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6803         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6804         * print-rtl.c (print_rtx): Likewise.
6805         * gengtype.c (adjust_field_rtx_def): Likewise.
6806         * var-tracking.c (vt_add_function_parameter): Adjust
6807         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6808         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6809         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6810         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6811         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6813         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6814         Call var_location debug hook even on CALL_INSNs.
6815         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6816         * rtl.def (ENTRY_VALUE): New.
6817         * dwarf2out.c: Include cfglayout.h.
6818         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6819         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6820         (struct call_arg_loc_node): New type.
6821         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6822         tail_call_site_count): New variables.
6823         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6824         DW_TAG_GNU_call_site_parameter.
6825         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6826         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6827         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6828         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6829         and DW_AT_GNU_all_source_call_sites.
6830         (mem_loc_descriptor): Handle ENTRY_VALUE.
6831         (add_src_coords_attributes): Don't add enything if
6832         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6833         (dwarf2out_abstract_function): Save and clear call_arg_location,
6834         call_site_count and tail_call_site_count around dwarf2out_decl call.
6835         (gen_call_site_die): New function.
6836         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6837         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6838         (dwarf2out_function_decl): Clear call_arg_locations,
6839         call_arg_loc_last, set call_site_count and tail_call_site_count
6840         to -1 and free block_map.
6841         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6842         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6843         followed by any real instructions.
6844         (dwarf2out_begin_function): Set call_site_count and
6845         tail_call_site_count to 0.
6846         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6847         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6848         attempt to force a DIE for it and worst case remove the attribute.
6849         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6850         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6851         the decl itself.
6852         * var-tracking.c: Include tm_p.h.
6853         (vt_stack_adjustments): For calls call note_register_arguments.
6854         (argument_reg_set): New variable.
6855         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6856         ensure the VALUE is resolved.
6857         (call_arguments): New variable.
6858         (prepare_call_arguments): New function.
6859         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6860         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6861         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6862         always use the best expression.
6863         (vt_expand_loc): Add ignore_cur_loc argument.
6864         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6865         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6866         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6867         note for all calls.
6868         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6869         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6870         argument.  Don't call cselib_preserve_only_values and
6871         cselib_reset_table.
6872         (note_register_arguments): New function.
6873         (vt_initialize): Compute argument_reg_set.  Call
6874         vt_add_function_parameters before processing basic blocks instead of
6875         afterwards.  For calls call prepare_call_arguments before calling
6876         cselib_process_insn.
6877         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6878         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6879         (var-tracking.o): Depend on $(TM_P_H).
6880         * cfglayout.h (insn_scope): New prototype.
6881         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6882         * cfglayout.c (insn_scope): No longer static.
6883         * insn-notes.def (CALL_ARG_LOCATION): New.
6884         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6885         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6886         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6887         nothing for DECL_EXTERNAL BLOCK_VARS.
6889 2011-03-16  Alan Modra  <amodra@gmail.com>
6891         PR target/45844
6892         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6893         create invalid offset address for vsx splat insn.
6894         * config/rs6000/predicates.md (splat_input_operand): New.
6895         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6897 2011-03-15  Xinliang David Li  <davidxl@google.com>
6899         PR c/47837
6900         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6901         (normalize_preds): New function.
6902         (is_use_properly_guarded): Normalize def predicates.
6904 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6906         PR target/46788
6907         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6908         in the output template.
6910 2011-03-15  Richard Guenther  <rguenther@suse.de>
6912         PR middle-end/47650
6913         * tree-pretty-print.c (dump_function_declaration): Properly
6914         dump unprototyped and varargs function types.
6916 2011-03-15  Richard Guenther  <rguenther@suse.de>
6918         PR tree-optimization/13954
6919         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6920         and friends.
6922 2011-03-15  Richard Guenther  <rguenther@suse.de>
6924         PR tree-optimization/48037
6925         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6926         selects into BIT_FIELD_REFs.
6927         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6928         vector select.
6930 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6932         PR tree-optimization/48129
6933         * builtins.c (fold_builtin_snprintf): Convert to type of
6934         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6935         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6937 2011-03-15  Richard Guenther  <rguenther@suse.de>
6939         PR tree-optimization/41490
6940         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6941         value but with VUSE.
6942         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6943         return statements.
6944         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6945         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6946         * tree-tailcall.c (find_tail_calls): Ignore returns.
6948 2011-03-15  Richard Guenther  <rguenther@suse.de>
6950         PR middle-end/48031
6951         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6952         or variable-indexed array accesses when in gimple form.
6954 2011-03-15  Richard Guenther  <rguenther@suse.de>
6956         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6958 2011-03-15  Alan Modra  <amodra@gmail.com>
6960         PR target/48032
6961         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6962         presume symbol_refs without a symbol_ref_decl are suitably
6963         aligned, nor other trees we may see here.  Handle anchor symbols.
6964         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6965         Check cmodel=medium addresses.  Adjust all calls.
6966         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6967         creating cmodel=medium optimized access to locals.
6968         * config/rs6000/constraints.md (R): Pass QImode to
6969         legitimate_constant_pool_address_p.
6970         * config/rs6000/predicates.md (input_operand): Pass mode to
6971         legitimate_constant_pool_address_p.
6972         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6973         Update prototype.
6975 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6977         PR target/48053
6978         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6979         64-bit constants being loaded into registers other than GPRs such
6980         as loading 0 into a VSX register.
6982 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6984         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6986 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6988         PR middle-end/47917
6989         * builtins.c (fold_builtin_snprintf): New function.
6990         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6991         (fold_builtin_4): Likewise.
6993         PR middle-end/38878
6994         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6995         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6996         and C - X == X also strip nops from +/-/p+ operand.
6997         When optimizing -X == C, fold C to arg0's type.
6999         PR debug/47946
7000         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7001         emit it as add_AT_int instead of add_AT_unsigned.
7003 2011-03-14  Tom Tromey  <tromey@redhat.com>
7005         * unwind-dw2.c: Include sys/sdt.h if it exists.
7006         (_Unwind_DebugHook): Use STAP_PROBE2.
7007         * config.in, configure: Rebuild.
7008         * configure.ac: Check for sys/sdt.h.
7010 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7012         * config/i386/i386.md (ROUND_FLOOR): New constant.
7013         (ROUND_CEIL): Ditto.
7014         (ROUND_TRUNC): Ditto.
7015         (ROUND_MXCSR): Ditto.
7016         (ROUND_NO_EXC): Ditto.
7017         (rint<mode>2): Use new defines instead of numerical constants.
7018         (floor<mode>2): Ditto.
7019         (ceil<mode>2): Ditto.
7020         (btrunc<mode>2): Ditto.
7021         * config/i386/i386-builtin-types.def: Define ROUND function type
7022         aliases.
7023         * config/i386/i386.c (enum ix86_builtins): Add
7024         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7025         (struct builtin_description): Add
7026         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7027         (ix86_expand_sse_round): New static function.
7028         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7029         function types.
7030         (ix86_builtin_vectorized_function): Handle
7031         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7033 2011-03-14  Tom Tromey  <tromey@redhat.com>
7035         * c-parser.c (c_parser_asm_string_literal): Clear
7036         warn_overlength_strings.
7038 2011-03-14  Tom Tromey  <tromey@redhat.com>
7040         * c-parser.c (disable_extension_diagnostics): Save
7041         warn_overlength_strings.
7042         (restore_extension_diagnostics): Restore warn_overlength_strings.
7044 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7046         * BASE-VER: Change to 4.7.0.
7048 2011-03-14  Richard Guenther  <rguenther@suse.de>
7050         PR middle-end/48098
7051         * tree.c (build_vector_from_val): Adjust assert to requirements
7052         and reality.
7054 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7056         PR bootstrap/48102
7057         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7059 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7061         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7062         terms of target_flags_explicit. Adjust copyright year.
7064         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7065         * config/rs6000/t-freebsd: New file. Add override for
7066         LIB2FUNCS_EXTRA.
7068 2011-03-13  Chris Demetriou  <cgd@google.com>
7070         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7071         (-fno-diagnostics-show-option): this, to reflect current default.
7072         (-Werror=): Update text about -fno-diagnostics-show-option.
7074 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7076         PR target/48053
7077         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7078         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7079         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7080         mode is not V2DImode or V2DFmode.
7081         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7082         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7083         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7084         registers to 0.
7085         (movdi_internal64): Likewise.
7087 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7089         PR tree-optimization/47127
7090         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7091         parameter.
7092         (set_cloog_options): Same.
7093         (scop_to_clast): Same.
7094         (print_clast_stmt): Do not call cloog_state_malloc and
7095         cloog_state_free.
7096         (print_generated_program): Same.
7097         (gloog): Same.
7098         * graphite-clast-to-gimple.h (cloog_state): Declared.
7099         (scop_to_clast): Adjust declaration.
7100         * graphite.c (cloog_state): Defined here.
7101         (graphite_initialize): Call cloog_state_malloc.
7102         (graphite_finalize): Call cloog_state_free.
7104 2011-03-11  Jason Merrill  <jason@redhat.com>
7106         * attribs.c (lookup_attribute_spec): Take const_tree.
7107         * tree.h: Adjust.
7109 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7111         * config/sparc/sparc.c (sparc_option_override): Use
7112         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7114 2011-03-11  Richard Guenther  <rguenther@suse.de>
7116         PR tree-optimization/48067
7117         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7118         multiplication result will be only used once on the target
7119         stmt.
7121 2011-03-11  Richard Guenther  <rguenther@suse.de>
7123         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7125 2011-03-11  Richard Guenther  <rguenther@suse.de>
7127         PR lto/48073
7128         * tree.c (find_decls_types_r): Do not walk types only reachable
7129         from IDENTIFIER_NODEs.
7131 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7133         PR middle-end/48044
7134         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7135         all vnode->force_output nodes as needed.
7137 2011-03-11  Jason Merrill  <jason@redhat.com>
7139         PR c++/48069
7140         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7141         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7143 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7145         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7146         cgraph_node.
7148 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7150         PR tree-optimization/48063
7151         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7152         inline functions called once if !tree_can_inline_p (node->callers).
7154 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7156         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7157         extra_objs.
7158         * config/score/score3.c: Delete.
7159         * config/score/score3.h: Delete.
7160         * config/score/mul-div.S: Delete.
7161         * config/score/sfp-machine.h: Add new file.
7162         * config/score/constraints.md: Add new file.
7163         * config/score/t-score-softfp: Add new file.
7164         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7165         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7166         (score7_extra_constraint): Delete.
7167         (score7_option_override): Remove unused code.
7168         * config/score/score.c: Remove score3 and score5 define and code.
7169         * config/score/score.h: Remove score3 and score5 define and code.
7170         * config/score/score.md: Remove score3 template and unusual insn.
7171         * config/score/score.opt: Remove score3 and score5 options.
7173 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7175         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7176         when _HPUX_SOURCE is defined.
7177         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7179 2011-03-10  Jason Merrill  <jason@redhat.com>
7181         PR c++/48029
7182         * stor-layout.c (layout_type): Don't set structural equality
7183         on arrays of incomplete type.
7184         * tree.c (type_hash_eq): Handle comparing them properly.
7186 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7188         PR debug/48043
7189         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7190         result mode matches original rtl mode.
7192 2011-03-10  Nick Clifton  <nickc@redhat.com>
7194         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7195         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7197 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7199         PR rtl-optimization/47866
7200         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7201         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7202         if target wasn't scalar.
7203         * function.c (assign_stack_temp_for_type): Assert that neither
7204         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7205         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7206         macro.
7207         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7209 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7211         * config/s390/s390-protos.h (s390_label_align): New prototype.
7212         * config/s390/s390.c (s390_label_align): New function.
7213         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7215 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7217         PR target/47755
7218         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7219         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7220         (output_vec_const_move): Ditto.
7222 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7224         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7225         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7226         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7227         Change 'rclass' argument and result type to reg_class_t.
7228         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7230 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7232         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7233         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7234         (TARGET_MEMORY_MOVE_COST): Define.
7235         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7237 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7239         PR debug/47881
7240         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7241         removed anything.
7243         PR tree-optimization/48022
7244         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7245         for EQ/NE_EXPR.
7247 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7249         PR debug/47991
7250         * var-tracking.c (find_use_val): Return NULL for
7251         cui->sets && cui->store_p BLKmode MEMs.
7253 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7255         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7256         Remove.
7257         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7258         xstormy16_print_operand_address): Remove.
7259         * config/stormy16/stormy16.c (xstormy16_print_operand,
7260         xstormy16_print_operand_address): Make static.
7261         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7263 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7265         PR target/47862
7266         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7267         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7268         before definition.
7270 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7272         PR bootstrap/48000
7273         * cfgloopmanip.c (fix_bb_placements): Return immediately
7274         if FROM is BASE_LOOP's header.
7276 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7278         * gimplify.c (gimplify_function_tree): Fix building calls
7279         to __builtin_return_address.
7281 2011-03-07  Alan Modra  <amodra@gmail.com>
7283         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7284         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7285         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7286         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7287         return_mode args.
7288         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7289         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7290         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7291         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7292         * config/rs6000/rs6000.c
7293         (rs6000_elf_end_indicate_exec_stack): Rename to..
7294         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7295         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7296         (rs6000_file_start): ..here.
7297         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7298         file scope variables.
7299         (call_ABI_of_interest): New function.
7300         (init_cumulative_args): Set above vars when function return value
7301         is a float, vector, or small struct.
7302         (rs6000_function_arg_advance_1): Likewise for function args.
7303         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7304         references float args.
7306 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7308         * doc/cfg.texi: Remove "See" before @ref.
7309         * doc/invoke.texi: Likewise.
7311 2011-03-05  Jason Merrill  <jason@redhat.com>
7313         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7315 2011-03-05  Anthony Green  <green@moxielogic.com>
7317         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7319 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7321         PR rtl-optimization/47899
7322         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7323         to flow_loop_nested_p when moving the loop upward.
7325 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7327         PR target/47719
7328         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7330 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7332         PR tree-optimization/47967
7333         * ipa-cp.c (build_const_val): Return NULL instead of creating
7334         VIEW_CONVERT_EXPR for mismatching sizes.
7335         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7336         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7337         give up on versioning.
7339 2011-03-05  Alan Modra  <amodra@gmail.com>
7341         PR target/47986
7342         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7343         full cmodel medium/large lo_sum + high addresses.
7345 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7347         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7348         pool references in UNSPEC_LTREL_OFFSET.
7350 2011-03-04  Jan Hubicka  <jh@suse.cz>
7352         PR lto/47497
7353         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7354         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7355         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7356         Add node pointers.
7357         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7358         cgraph_add_thunk): Add node pointers.
7359         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7360         associated to right node.
7361         (input_node): Update use of cgraph_same_body_alias
7362         and cgraph_add_thunk.
7364 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7366         * config/i386/i386.opt (mprefer-avx128): New flag.
7367         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7368         modes when the flag -mprefer-avx128 is on.
7370 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7372         * dwarf2out.c (compare_loc_operands): Fix address handling.
7374 2011-03-04  Alan Modra  <amodra@gmail.com>
7376         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7378 2011-03-04  Richard Guenther  <rguenther@suse.de>
7380         PR middle-end/47968
7381         * expmed.c (extract_bit_field_1): Prefer vector modes that
7382         vec_extract patterns can handle.
7384 2011-03-04  Richard Guenther  <rguenther@suse.de>
7386         PR middle-end/47975
7387         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7389 2011-03-04  Richard Henderson  <rth@redhat.com>
7391         * explow.c (emit_stack_save): Remove 'after' parameter.
7392         (emit_stack_restore): Likewise.
7393         * expr.h: Update to match.
7394         * builtins.c, calls.c, stmt.c: Likewise.
7395         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7396         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7397         * function.c (expand_function_end): Insert the emit_stack_save
7398         sequence before parm_birth_insn instead of after.
7400 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7402         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7403         (ssse3_pmaddubsw128): Ditto.
7404         (ssse3_pmaddubsw): Ditto.
7406 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7408         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7410 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7412         PR c/47963
7413         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7414         on TYPE_SIZE_UNIT if it is a DECL.
7416         PR debug/47283
7417         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7418         first operand is not is_gimple_mem_ref_addr, try to fold it.
7419         If the operand still isn't is_gimple_mem_ref_addr, clear
7420         MEM_EXPR on op0.
7422 2011-03-03  Richard Guenther  <rguenther@suse.de>
7424         PR middle-end/47283
7425         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7426         match comment.
7427         (refs_may_alias_p_1): For release branches return true if
7428         we are confused by our input.
7430 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7432         * config/s390/s390.c (s390_function_value): Rename to ...
7433         (s390_function_and_libcall_value): ... this.
7434         (s390_function_value): New function.
7435         (s390_libcall_value): New function.
7436         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7437         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7438         target macro definitions.
7439         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7441 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7443         * config/i386/freebsd64.h (CC1_SPEC): Define.
7444         * config/i386/linux64.h (CC1_SPEC): Define.
7445         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7447 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7449         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7450         Remove.
7451         * config/stormy16/stormy16.c: Include reload.h.
7452         (xstormy16_memory_move_cost): New function.
7453         (TARGET_MEMORY_MOVE_COST): Define.
7455 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7457         PR rtl-optimization/47925
7458         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7459         with side effects.  Remove the more-specific check for volatile asms.
7461 2011-03-02  Alan Modra  <amodra@gmail.com>
7463         PR target/47935
7464         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7465         toc relative addresses for valid offsets.
7467 2011-03-01  Richard Guenther  <rguenther@suse.de>
7469         PR tree-optimization/47890
7470         * tree-vect-loop.c (get_initial_def_for_induction): Set
7471         related stmt properly.
7473 2011-03-01  Richard Guenther  <rguenther@suse.de>
7475         PR lto/47924
7476         * lto-streamer.c (lto_record_common_node): Also register
7477         the canonical type.
7479 2011-03-01  Richard Guenther  <rguenther@suse.de>
7481         PR lto/46911
7482         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7483         Do not stream DECL_ABSTRACT_ORIGIN.
7484         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7485         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7486         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7487         Do not stream DECL_ABSTRACT_ORIGIN.
7488         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7489         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7491 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7493         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7494         FUNCTION_VALUE_REGNO_P): Remove.
7495         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7496         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7497         Add 'outgoing' argument.
7498         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7499         function.
7500         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7501         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7503 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7505         PR debug/28047
7506         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7507         (lookup_filename): Likewise.
7508         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7510 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7511             Jakub Jelinek  <jakub@redhat.com>
7513         PR middle-end/47893
7514         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7515         (assign_stack_local_1): Change last argument type to int.
7516         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7517         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7518         don't record padding space into frame_space_list nor use those areas.
7519         (assign_stack_local): Adjust caller.
7520         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7521         of assign_stack_local, pass 0 as last argument.
7522         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7523         callers.
7525 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7527         PR debug/47283
7528         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7529         Use target address_mode and pointer_mode hooks instead of hardcoded
7530         Pmode and ptr_mode.  Handle some simple cases of extending if
7531         POINTERS_EXTEND_UNSIGNED < 0.
7532         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7533         Call convert_debug_memory_address.
7534         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7535         convert_debug_memory_address.
7537         PR middle-end/46790
7538         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7539         * configure: Regenerated.
7540         * config.in: Regenerated.
7541         * varasm.c (default_function_section): Return NULL
7542         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7544 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7546         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7547         the description to match the printed values.
7549 2011-02-28  Richard Guenther  <rguenther@suse.de>
7551         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7552         of the copied scope tree.
7554 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7556         * doc/extend.texi (Function Attributes): Avoid deeply (and
7557         wrongly) nested tables.
7559 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7561         PR middle-end/47903
7562         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7563         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7564         r isn't op0 nor op1.
7566 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7568         * config/avr/avr.md: Remove magic comment for emacs.
7570 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7572         PR target/45261
7573         * config/avr/avr.c (avr_option_override): Use error on bad options.
7574         (avr_help): New function.
7575         (TARGET_HELP): Define.
7577 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7579         PR target/42240
7580         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7581         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7583 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7585         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7586         (ARM Options): Ditto.
7587         (i386 and x86-64 Options): Ditto.
7588         (RX Options): Ditto.
7589         (SPARC Options): Ditto.
7591 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7593         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7594         FreeBSD 6 and later.  Generally use cpu generic.
7596 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7598         * doc/cpp.texi: Update copyright years.
7600 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7602         PR target/46898
7603         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7605 2011-02-25  Jon Beniston  <jon@beniston.com>
7607         PR target/46898
7608         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7609         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7610         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7611         (lm32_block_move_inline): Add type cast to remove warning.
7612         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7613         (gen_int_relational): Move declarations to start of function.
7615 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7617         PR tree-optimization/45470
7618         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7619         can throw internally only.
7620         * tree-vect-stmts.c (vectorizable_call): Likewise.
7622 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7624         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7625         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7626         * config/stormy16/stormy16-protos.h
7627         (xstormy16_preferred_reload_class): Remove.
7628         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7629         static. Change 'rclass' argument and return type to reg_class_t.
7630         (TARGET_PREFERRED_RELOAD_CLASS,
7631         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7633 2011-02-24  Richard Guenther  <rguenther@suse.de>
7635         * lto-streamer-in.c (input_bb): Do not find referenced vars
7636         in debug statements.
7638 2011-02-23  Jason Merrill  <jason@redhat.com>
7640         * common.opt (fabi-version): Document v5 and v6.
7642 2011-02-23  Richard Guenther  <rguenther@suse.de>
7644         PR tree-optimization/47849
7645         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7647 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7649         * opts-common.c (decode_cmdline_option): Print empty string
7650         argument as "" in decoded->orig_option_with_args_text.
7651         * gcc.c (execute): Print empty string argument as ""
7652         in the verbose output.
7653         (do_spec_1): Keep empty string argument.
7655 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7657         * config.gcc: Declare score-* and crx-* obsolete.
7659 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7661         PR rtl-optimization/47763
7662         * web.c (web_main): Ignore naked clobber when replacing register.
7664 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7666         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7667         Remove.
7669 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7671         PR doc/47848
7672         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7674 2011-02-22  Mike Stump  <mikestump@comcast.net>
7676         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7677         assembler.
7678         * configure: Regenerate.
7680 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7682         PR rtl-optimization/46002
7683         * ira-color.c (update_copy_costs): Change class intersection
7684         test to reg_class_contents[] test of 'hard_regno'.
7686 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7688         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7689         than Driver option.
7690         * config/hpux11.opt (mt): Likewise.
7691         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7692         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7693         * config/vax/elf.opt (mno-asm-pic): Likewise.
7694         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7696 2011-02-21  Mike Stump  <mikestump@comcast.net>
7698         PR target/47822
7699         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7700         tree so we can get save the type.
7701         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7702         for CFString instead of trying to use past the end of the builtins.
7703         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7704         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7705         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7706         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7707         Rename to darwin_builtin_cfstring.
7708         (darwin_init_cfstring_builtins): Return the built type.
7710 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7712         PR target/47840
7713         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7714         (_mm256_insert_epi64): Use _mm_insert_epi64.
7716 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7718         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7719         * config/stormy16/stormy16-protos.h
7720         (xstormy16_mode_dependent_address_p): Remove.
7721         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7722         Make static. Change return type to bool. Change argument type to
7723         const_rtx. Remove dead code.
7724         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7726 2011-02-21  Richard Guenther  <rguenther@suse.de>
7728         PR lto/47820
7729         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7730         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7731         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7732         TUs context.
7733         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7734         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7736 2011-02-20  Richard Guenther  <rguenther@suse.de>
7738         PR lto/47822
7739         * tree.c (free_lang_data_in_decl): Clean builtins from
7740         the TU decl BLOCK_VARS.
7742 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7744         PR debug/47620
7745         PR debug/47630
7746         * haifa-sched.c (fix_tick_ready): Skip tick computation
7747         for debug insns.
7749 2011-02-19  Richard Guenther  <rguenther@suse.de>
7751         PR lto/47647
7752         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7753         Remove lazy BLOCK_VARS streaming.
7754         (lto_input_ts_block_tree_pointers): Likewise.
7755         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7757 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7759         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7761 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7763         * config/i386/biarch32.h, config/i386/mach.h,
7764         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7766 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7768         PR target/47800
7769         * config/i386/i386.md (peephole2 for shift and plus): Use
7770         operands[1] original mode in the first insn.
7772 2011-02-18  Mike Stump  <mikestump@comcast.net>
7774         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7776 2011-02-18  Jan Hubicka  <jh@suse.cz>
7778         PR middle-end/47788
7779         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7780         to zero when the function is not inlinable at all.
7782 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7784         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7785         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7786         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7787         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7788         * config/pa/t-pa64: Likewise.
7789         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7791 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7793         PR driver/47787
7794         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7796 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7798         PR target/47792
7799         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7801 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7803         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7804         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7805         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7806         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7807         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7808         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7809         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7810         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7811         m32r_legitimate_address_p): New functions.
7812         * config/m32r/constraints.md (constraint "S"): Don't use
7813         STORE_PREINC_PREDEC_P.
7814         (constraint "U"): Don't use LOAD_POSTINC_P.
7816 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7818         PR rtl-optimization/46178
7819         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7820         compute ira_hard_regno_cover_class[].
7822 2011-02-18  Richard Guenther  <rguenther@suse.de>
7824         PR lto/47798
7825         * lto-streamer.h (lto_global_var_decls): Declare.
7826         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7827         statics for global var processing.
7829 2011-02-18  Richard Guenther  <rguenther@suse.de>
7831         PR tree-optimization/47737
7832         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7833         edge dominance check.
7835 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7837         PR debug/47780
7838         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7839         avoid invalid rtx sharing.
7841 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7843         * doc/cpp.texi (Obsolete Features): Add background on the
7844         origin of assertions.
7846 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7848         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7849         objc_abi == 2.
7850         * config/darwin.c (output_objc_section_asm_op): Added support for
7851         ABI v1 and v2.
7852         (is_objc_metadata): New.
7853         (darwin_objc2_section): New.
7854         (darwin_objc1_section): New.
7855         (machopic_select_section): Added support for ABI v1 and v2.
7856         (darwin_emit_objc_zeroed): New.
7857         (darwin_output_aligned_bss): Detect objc metadata and treat it
7858         appropriately.
7859         (darwin_asm_output_aligned_decl_common): Same.
7860         (darwin_asm_output_aligned_decl_local): Same.
7861         * config/darwin-sections.def: Updated for ABI v1 and v2.
7862         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7863         compiling Objective-C code for the NeXT runtime, default to using
7864         ABI version 0 for 32-bit, and version 2 for 64-bit.
7866 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7868         * common.opt (optimize_fast): New Variable.
7869         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7870         instead of local variable ofast.
7872 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7874         * doc/invoke.texi (fobjc-abi-version): Documented.
7875         (fobjc-nilcheck): Documented.
7876         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7877         version.
7879 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7881         PR driver/47390
7882         * common.opt (export-dynamic): New Driver option.
7883         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7885 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7887         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7889 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7890             Jan Hubicka  <jh@suse.cz>
7892         PR debug/47106
7893         PR debug/47402
7894         * cfgexpand.c (account_used_vars_for_block): Remove.
7895         (estimated_stack_frame_size): Use referenced vars.
7896         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7897         that were referenced in the original function.  Test src_fn
7898         rather than cfun.  Drop redundant get_var_ann.
7899         (setup_one_parameter): Drop redundant get_var_ann.
7900         (declare_return_variable): Likewise.
7901         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7902         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7903         * ipa-inline.c (compute_inline_parameters): Do not compute
7904         disregard_inline_limits here.
7905         (compute_inlinable_for_current, pass_inlinable): New.
7906         (pass_inline_parameters): Require PROP_referenced_vars.
7907         * cgraphunit.c (cgraph_process_new_functions): Don't run
7908         compute_inline_parameters explicitly unless function is in SSA form.
7909         (cgraph_analyze_function): Set .disregard_inline_limits.
7910         * tree-sra.c (convert_callers): Compute inliner parameters
7911         only for functions already in SSA form.
7913 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7915         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7916         -mlittle-endian-data.
7918 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7920         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7921         -mno-fpu, not -fpu and -no-fpu.
7922         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7923         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7925 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7927         PR target/43653
7928         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7929         input reload with PLUS RTX.
7931 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7933         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7934         of InverseVar(MDMX).
7936 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7938         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7939         --m4-340.
7941 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7943         * config/mn10300/mn10300.opt (mno-crt0): New.
7945 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7947         * config/m68k/uclinux.opt (static-libc): New Driver option.
7949 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7951         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7953 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7955         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7956         %{muser-extend-enabled}.
7958 2011-02-16  Richard Guenther  <rguenther@suse.de>
7960         PR tree-optimization/47738
7961         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7962         the TODO from tree_predictive_commoning.
7964 2011-02-15  Jeff Law  <law@redhat.com>
7966         Revert
7967         2011-01-25  Jeff Law  <law@redhat.com>
7969         PR rtl-optimization/37273
7970         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7971         handle them like argument loads from stack slots.  Do not double
7972         count memory for memory constants and argument loads from stack slots.
7974 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7976         PR middle-end/47725
7977         * combine.c (cant_combine_insn_p): Revert the last change.
7979 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7981         PR target/47755
7982         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7983         mode for vector constants.  Remove code that checks for TImode.
7985 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7987         PR debug/47106
7988         PR debug/47402
7989         * cgraph.h (compute_inline_parameters): Return void.
7990         * ipa-inline.c (compute_inline_parameters): Adjust.
7992 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7994         PR debug/47106
7995         PR debug/47402
7996         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7997         rather than decl.
7998         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7999         * ipa-inline.c (compute_inline_parameters): Adjust.
8001 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8003         PR debug/47106
8004         PR debug/47402
8005         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8006         Adjust all users.  Pass FN to...
8007         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8008         fn argument.
8009         * ipa-struct-reorg.c: Adjust.
8010         * tree-dfa.c: Adjust.
8011         * tree-into-ssa.c: Adjust.
8012         * tree-sra.c: Adjust.
8013         * tree-ssa-alias.c: Adjust.
8014         * tree-ssa-live.c: Adjust.
8015         * tree-ssa.c: Adjust.
8016         * tree-ssanames.c: Adjust.
8017         * tree-tailcall.c: Adjust.
8019 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8021         PR debug/47106
8022         PR debug/47402
8023         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8024         Adjust all callers.
8025         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8026         * tree-flow-inline.h: Adjust.
8027         * gimple-pretty-print.c: Adjust.
8028         * tree-into-ssa.c: Adjust.
8029         * tree-ssa.c: Adjust.
8030         * cfgexpand.c: Adjust.
8032 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8034         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8035         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8036         (EXTRA_CONSTRAINT): Delete.
8037         * config/iq2000/constraints.md: New file.
8038         * config/iq2000/iq2000.md: Include it.
8039         (define_insn ""): Delete.
8040         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8041         unsupported constraint letters from patterns.
8042         (call_value, call_value_internal1): Likewise.
8043         (call_value_multiple_internal1): Likewise.
8045 2011-02-15  Nick Clifton  <nickc@redhat.com>
8047         * config/mn10300/mn10300.c: Include tm-constrs.h.
8048         (struct liw_data): New data structure describing an LIW candidate
8049         instruction.
8050         (extract_bundle): Use struct liw_data.  Allow small integer
8051         operands for some instructions.
8052         (check_liw_constraints): Use struct liw_data.  Remove swapped
8053         parameter.  Add comments describing the checks.  Fix bug when
8054         assigning the source of liw1 to the source of liw2.
8055         (liw_candidate): Delete.  Code moved into extract_bundle.
8056         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8057         before swapping.
8058         * config/mn10300/predicates.md (liw_operand): New predicate.
8059         Allows registers and small integer constants.
8060         * config/mn10300/constraints.md (O): New constraint.  Accetps
8061         integers in the range -8 to +7 inclusive.
8062         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8063         for moving a small integer into a register.  Give this alternative
8064         LIW attributes.
8065         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8066         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8067         using the J,K,L and M constraints,
8068         (liw): Remove SI mode on second operands to allow for HI and QI
8069         mode values.
8070         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8071         instruction.
8073 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8075         PR middle-end/47725
8076         * combine.c (cant_combine_insn_p): Check zero/sign extended
8077         hard registers.
8079 2011-02-15  Richard Guenther  <rguenther@suse.de>
8081         PR tree-optimization/47743
8082         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8083         for a non-type-compatible VN lookup bail out.
8085 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8087         * config/fr30/constraints.md: New file.
8088         * config/fr30/fr30.md: Include it.
8089         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8090         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8091         (EXTRA_CONSTRAINT): Delete.
8093 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8095         * config/frv/constraints.md: New file.
8096         * config/frv/predicates.md: Include it.
8097         * config/frv/frv.c (reg_class_from_letter): Delete.
8098         (frv_option_override): Don't initialize it.
8099         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8100         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8101         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8102         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8103         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8104         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8105         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8106         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8107         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8108         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8109         (REG_CLASS_FROM_CONSTRAINT): Delete.
8111 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8113         PR middle-end/47581
8114         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8115         if frame size is 0 in a leaf function.
8117 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8119         PR pch/14940
8120         * config/alpha/host-osf.c: New file.
8121         * config/alpha/x-osf: New file.
8122         * config.host (alpha*-dec-osf*): Use it.
8124 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8126         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8127         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8128         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8129         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8130         type to const_rtx.
8131         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8133 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8135         * config/stormy16/constraints.md: New file.
8136         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8137         Use satisfies_constraint_Q and satisfies_constraint_R.
8138         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8139         Delete.
8140         (xstormy16_legitiamte_address_p): Declare.
8141         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8142         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8143         (EXTRA_CONSTRAINT): Delete.
8144         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8145         Un-staticize.
8146         (xstormy16_extra_constraint_p): Delete.
8148 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8150         PR tree-optimization/46494
8151         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8152         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8153         (pass_rtl_loop_done): Add TODO_verify_flow.
8154         * fwprop.c (pass_rtl_fwprop): Likewise.
8155         * modulo-sched.c (pass_sms): Likewise.
8156         * tree-ssa-dom.c (pass_dominator): Likewise.
8157         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8158         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8159         (pass_tree_loop_done): Likewise.
8160         * tree-ssa-pre.c (execute_pre): Likewise.
8161         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8162         * tree-ssa-sink.c (pass_sink_code): Likewise.
8163         * tree-vrp.c (pass_vrp): Likewise.
8165 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8167         * config/v850/constraints.md: New file.
8168         * config/v850/v850.md: Include it.
8169         * config/v850/predicates.md (reg_or_0_operand): Use
8170         satisfies_constraint_G.
8171         (special_symbolref_operand): Use satisfies_constraint_K.
8172         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8173         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8174         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8175         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8176         (EXTRA_CONSTRAINT): Delete.
8177         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8178         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8179         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8181 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8183         PR target/47696
8184         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8185         description.
8187 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8189         * config/mcore/constraints.md: New file.
8190         * config/mcore/mcore.md: Include it.
8191         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8192         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8193         (REG_CLASS_FROM_LETTER): Delete.
8194         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8195         insn_const_int_ok_for_constraint.
8196         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8197         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8198         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8199         (EXTRA_CONSTRAINT): Delete.
8201 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8203         PR ada/41929
8204         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8205         (IS_SIGHANDLER): Define.
8206         (sparc64_is_sighandler): New function, split off from
8207         sparc64_fallback_frame_state.
8208         (sparc_is_sighandler): New function, split off from
8209         sparc_fallback_frame_state.
8210         (sparc64_fallback_frame_state): Merge with ...
8211         (sparc_fallback_frame_state): ... this into ...
8212         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8213         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8214         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8215         stack instead of hardcoded offsets.
8217 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8219         PR target/45808
8220         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8222 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8224         * configure: Regenerate.
8226 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8228         PR driver/45731
8229         * gcc.c (asm_options): Correct spec matching --target-help.
8231 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8233         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8234         to gimple call error.
8236 2011-02-12  Mike Stump  <mikestump@comcast.net>
8238         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8239         comments in backslash regions.
8241 2011-02-12  Mike Stump  <mikestump@comcast.net>
8242             Jakub Jelinek  <jakub@redhat.com>
8243             Iain Sandoe  <iains@gcc.gnu.org>
8245         PR target/47324
8246         * dwarf2out.c (output_cfa_loc): When required, apply the
8247         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8248         (output_loc_sequence): Likewise.
8249         (output_loc_operands_raw): Likewise.
8250         (output_loc_sequence_raw): Likewise.
8251         (output_cfa_loc): Likewise.
8252         (output_loc_list): Suppress register number adjustment when
8253         calling output_loc_sequence()
8254         (output_die): Likewise.
8256 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8258         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8259         Remove macros.
8260         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8261         xtensa_memory_move_cost): New functions.
8262         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8264 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8266         PR lto/47225
8267         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8268         in the current directory.
8269         * configure: Rebuilt.
8271 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8273         * config/darwin.c (darwin_override_options): Add a hunk missed
8274         from the commit of r168571.  Trim comment line lengths and
8275         correct indents of the preceding block.
8277 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8279         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8280         the switch.
8282 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8284         * common.opt (nostartfiles): New Driver option.
8286 2011-02-11  Xinliang David Li  <davidxl@google.com>
8288         PR tree-optimization/47707
8289         * tree-chrec.c (convert_affine_scev): Keep type precision.
8291 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8293         PR tree-optimization/47420
8294         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8296 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8298         PR rtl-optimization/47614
8299         * rtl.h (check_for_inc_dec): Declare.
8300         * dse.c (check_for_inc_dec): Externalize...
8301         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8302         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8304 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8306         PR driver/47678
8307         * gcc.c (main): Do not compile inputs if there were errors in
8308         option handling.
8309         * opts-common.c (read_cmdline_option): Check for wrong language
8310         after other error checks.
8312 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8314         * cgraph.c: Fix comment typos.
8315         * cgraph.h: Likewise.
8316         * cgraphunit.c: Likewise.
8317         * ipa-cp.c: Likewise.
8318         * ipa-inline.c: Likewise.
8319         * ipa-prop.c: Likewise.
8320         * ipa-pure-const.c: Likewise.
8321         * ipa-ref.c: Likewise.
8322         * ipa-reference.c: Likewise.
8324 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8326         PR debug/47684
8327         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8329 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8331         PR testsuite/47400
8332         * doc/sourcebuild.texi (Require Support): Document
8333         dg-require-ascii-locale.
8335 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8337         * doc/lto.texi (Write summary): Fix missing parentheses.
8339 2011-02-10  DJ Delorie  <dj@redhat.com>
8341         * config/m32c/m32c.c (m32c_option_override): Disable
8342         -fcombine-stack-adjustments until flag value tracking and compare
8343         optimization can be rewritten.
8345 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8347         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8348         PROCESSOR_POWER7.
8349         (PROCESSOR_DEFAULT64): Likewise.
8351 2011-02-10  Richard Henderson  <rth@redhat.com>
8353         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8354         change from 2011-02-03.
8355         * config/rx/rx.c (flags_from_code): Likewise.
8356         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8357         is valid, n/pz otherwise.
8358         (rx_select_cc_mode): Return CCmode if Y is not zero.
8360 2011-02-10  Richard Guenther  <rguenther@suse.de>
8362         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8364 2011-02-10  Richard Guenther  <rguenther@suse.de>
8366         PR tree-optimization/47677
8367         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8369 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8371         PR target/47665
8372         * combine.c (make_compound_operation): Only change shifts into
8373         multiplication for SCALAR_INT_MODE_P.
8375 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8377         PR testsuite/47622
8378         Revert
8379         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8380         PR debug/42631
8381         * web.c (entry_register): Don't clobber the number of the
8382         first uninitialized reference in used[].
8384 2011-02-09  Richard Guenther  <rguenther@suse.de>
8386         PR tree-optimization/47664
8387         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8388         all edges again.
8390 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8392         PR target/46481
8393         PR target/47032
8394         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8395         PROCESSOR_POWER7.
8396         (PROCESSOR_DEFAULT64): Same.
8397         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8399 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8401         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8403 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8405         PR middle-end/45505
8406         * tree-sra.c (struct access): New flags grp_scalar_read and
8407         grp_scalar_write.  Changed description of assignment read and write
8408         flags.
8409         (dump_access): Dump new flags, reorder all of them.
8410         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8411         to detect multiple scalar reads.
8412         (analyze_access_subtree): Use the new scalar read write flags instead
8413         of the old flags.  Adjusted comments.
8415 2011-02-08  DJ Delorie  <dj@redhat.com>
8417         PR target/47548
8418         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8419         patterns.
8421 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8423         * config/m68k/uclinux.opt: New.
8424         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8426 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8428         * config/cris/elf.opt (sim): New Driver option.
8430 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8432         * config/xtensa/elf.opt: New.
8433         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8435 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8437         * config/vax/elf.opt: New.
8438         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8440 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8442         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8444 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8446         * config/gnu-user.opt: New.
8447         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8448         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8449         *-*-uclinux*): Use gnu-user.opt.
8451 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8453         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8454         * config/i386/gnu.h (CPP_SPEC): Likewise.
8456 2011-02-08  Ian Lance Taylor  <iant@google.com>
8458         * common.opt (fcx-limited-range): Add SetByCombined flag.
8459         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8460         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8461         (fassociative-math, freciprocal-math): Likewise.
8462         (funsafe-math-optimizations): Likewise.
8463         * opth-gen.awk: Handle SetByCombined.
8464         * optc-gen.awk: Likewise.
8465         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8466         (set_unsafe_math_optimizations_flags): Likewise.
8467         * doc/options.texi (Option properties): Document SetByCombined.
8469 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8471         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8472         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8473         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8474         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8475         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8477 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8479         PR tree-optimization/46834
8480         PR tree-optimization/46994
8481         PR tree-optimization/46995
8482         * graphite-sese-to-poly.c (used_outside_reduction): New.
8483         (detect_commutative_reduction): Call used_outside_reduction.
8484         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8485         translate_scalar_reduction_to_array only when at least one
8486         loop-phi/close-phi tuple has been detected.
8488 2011-02-08  Richard Guenther  <rguenther@suse.de>
8490         PR middle-end/47639
8491         * tree-vect-generic.c (expand_vector_operations_1): Update
8492         stmts here ...
8493         (expand_vector_operations): ... not here.  Cleanup EH info
8494         and the CFG if required.
8496 2011-02-08  Richard Guenther  <rguenther@suse.de>
8498         PR tree-optimization/47641
8499         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8500         require type compatibility.
8502 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8504         * gimple-low.c (lower_function_body): Don't remove the location of
8505         the return statement here.
8506         (lower_gimple_return): Do it here instead but only if the return
8507         statement is actually used twice.
8509 2011-02-08  Richard Guenther  <rguenther@suse.de>
8511         PR tree-optimization/47632
8512         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8513         unused up_to_stmt parameter, return whether cfg-cleanup is
8514         necessary, remove EH info properly.
8515         (forward_propagate_into_gimple_cond): Adjust caller.
8516         (forward_propagate_into_cond): Likewise.
8517         (forward_propagate_comparison): Likewise.
8518         (tree_ssa_forward_propagate_single_use_vars): Make
8519         forward_propagate_comparison case similar to the two others.
8521 2011-02-08  Nick Clifton  <nickc@redhat.com>
8523         * config/mn10300/mn10300.opt (mliw): New command line option.
8524         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8525         (liw_bundling): New automaton.
8526         (liw): New attribute.
8527         (liw_op): New attribute.
8528         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8529         (movsi_internal): Add LIW attributes.
8530         (andsi3): Likewise.
8531         (iorsi3): Likewise.
8532         (xorsi3): Likewise.
8533         (addsi3): Separate register and immediate alternatives.
8534         Add LIW attributes.
8535         (subsi3): Likewise.
8536         (cmpsi): Likewise.
8537         (aslsi3): Likewise.
8538         (lshrsi3): Likewise.
8539         (ashrsi3): Likewise.
8540         (liw): New pattern.
8541         * config/mn10300/mn10300.c (liw_op_names): New
8542         (mn10300_print_operand): Handle 'W' operand descriptor.
8543         (extract_bundle): New function.
8544         (check_liw_constraints): New function.
8545         (liw_candidate): New function.
8546         (mn10300_bundle_liw): New function.
8547         (mn10300_reorg): New function.
8548         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8549         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8550         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8551         __LIW__ or __NO_LIW__.
8552         * doc/invoke.texi: Describe the -mliw command line option.
8554 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8556         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8557         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8558         pthread_mutex_unlock): Remove.
8559         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8560         * config/pa/t-pa64: Likewise.
8561         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8562         shared libc if not linking against libpthread.
8563         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8565 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8567         PR target/47558
8568         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8569         on 10.6 and later to ensure that we always use the unwinder from
8570         the system.  Only add -no_compact_unwind when tarteting darwin
8571         10.6 or later.
8573 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8575         PR target/46997
8576         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8577         (vec_interleave_lowv2sf): Ditto.
8578         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8579         (vec_extract_oddv2sf): Ditto.
8581 2011-02-07  Mike Stump  <mikestump@comcast.net>
8583         PR target/42333
8584         Add __ieee_divdc3 entry point.
8585         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8586         entry point.
8587         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8588         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8589         * config/darwin.c (darwin_rename_builtins): Add.
8590         * config/darwin-protos.h (darwin_rename_builtins): Add.
8592 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8594         PR target/47636
8595         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8596         for the condition.
8598 2011-02-07  Mike Stump  <mikestump@comcast.net>
8600         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8602 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8604         PR target/47534
8605         * config/avr/libgcc.S (exit): Move .endfunc
8607 2011-02-07  Richard Guenther  <rguenther@suse.de>
8609         PR tree-optimization/47615
8610         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8611         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8612         (run_scc_vn): Initialize it.
8613         (visit_reference_op_load): Use it.
8614         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8616 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8618         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8619         DImode trapping arithmetic libfuncs.
8621 2011-02-07  Richard Guenther  <rguenther@suse.de>
8623         PR tree-optimization/47621
8624         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8625         two duplicates ...
8626         (execute_update_addresses_taken): ... here.  Make it more
8627         conservative in what we accept.
8629 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8631         * config/sparc/freebsd.h (ASM_SPEC): Define.
8632         * config/sparc/vxworks.h (ASM_SPEC): Define.
8634 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8636         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8638 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8640         * doc/invoke.texi: Remove reference to compiler internals from
8641         user documentation.
8643         * reg-notes.def: Remove REG_VALUE_PROFILE.
8644         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8646 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8648         PR middle-end/47610
8649         * varasm.c (default_section_type_flags): If decl is NULL,
8650         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8652 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8654         PR debug/42631
8655         * web.c (entry_register): Don't clobber the number of the
8656         first uninitialized reference in used[].
8658 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8660         PR tree-optimization/46194
8661         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8662         (build_classic_dist_vector_1): Do not represent classic distance
8663         vectors when the access functions are variating in different loops.
8665 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8667         * config/mips/iris6.opt: New.
8668         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8670 2011-02-04  Richard Henderson  <rth@redhat.com>
8671             Steve Ellcey  <sje@cup.hp.com>
8673         PR target/46997
8674         * config/ia64/predicates.md (mux1_brcst_element): New.
8675         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8676         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8677         (ia64_unpack_sign): New.
8678         (ia64_expand_unpack): Rewrite using new routines.
8679         (ia64_expand_widen_sum): Ditto.
8680         (ia64_expand_dot_prod_v8qi): Ditto.
8681         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8682         routines, add endian check.
8683         (pmpy2_even): Rename from pmpy2_r, add endian check.
8684         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8685         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8686         (vec_widen_smult_hi_v4hi): Ditto.
8687         (vec_widen_umult_lo_v4hi): Ditto.
8688         (vec_widen_umult_hi_v4hi): Ditto.
8689         (mulv2si3): Change endian checks.
8690         (sdot_prodv4hi): Rewrite with new calls.
8691         (udot_prodv4hi): New.
8692         (vec_pack_ssat_v4hi): Add endian check.
8693         (vec_pack_usat_v4hi): Ditto.
8694         (vec_pack_ssat_v2si): Ditto.
8695         (max1_even): Rename from max1_r, add endian check.
8696         (max1_odd): Rename from max1_l, add endian check.
8697         (*mux1_rev): Format change.
8698         (*mux1_mix): Ditto.
8699         (*mux1_shuf): Ditto.
8700         (*mux1_alt): Ditto.
8701         (*mux1_brcst_v8qi): Use new predicate.
8702         (vec_extract_evenv8qi): Remove endian check.
8703         (vec_extract_oddv8qi): Ditto.
8704         (vec_interleave_lowv4hi): Format change.
8705         (vec_interleave_highv4hi): Ditto.
8706         (mix2_even): Rename from mix2_r, add endian check.
8707         (mix2_odd): Rename from mux2_l, add endian check.
8708         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8709         (vec_extract_evenodd_helper): Format change.
8710         (vec_extract_evenv4hi): Remove endian check.
8711         (vec_extract_oddv4hi): Remove endian check.
8712         (vec_interleave_lowv2si): Format change.
8713         (vec_interleave_highv2si): Format change.
8714         (vec_initv2si): Remove endian check.
8715         (vecinit_v2si): Add endian check.
8716         (reduc_splus_v2sf): Add endian check.
8717         (reduc_smax_v2sf): Ditto.
8718         (reduc_smin_v2sf): Ditto.
8719         (vec_initv2sf): Remove endian check.
8720         (fpack): Add endian check.
8721         (fswap): Add endian check.
8722         (vec_interleave_highv2sf): Add endian check.
8723         (vec_interleave_lowv2sf): Add endian check.
8724         (fmix_lr): Add endian check.
8725         (vec_setv2sf): Format change.
8726         (*vec_extractv2sf_0_be): Use shift to extract operand.
8727         (*vec_extractv2sf_1_be): New.
8728         (vec_pack_trunc_v4hi): Add endian check.
8729         (vec_pack_trunc_v2si): Format change.
8731 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8733         PR inline-asm/23200
8734         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8735         do bb, locus and block comparison and disallow loads if it is not set.
8736         (stmt_is_replaceable_p): New function.
8737         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8738         callers.
8739         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8740         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8741         SSA_NAME_DEF_STMT.
8742         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8744 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8746         * config/rs6000/xilinx.opt: New.
8747         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8749 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8751         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8753 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8755         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8756         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8757         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8758         secondary_reload_info, xtensa_secondary_reload): Remove.
8759         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8760         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8761         (xtensa_preferred_reload_class): Make static. Change return and
8762         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8763         Use CONST_DOUBLE_P predicate.
8764         (xtensa_preferred_output_reload_class): New function.
8765         (xtensa_secondary_reload): Make static.
8767 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8769         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8770         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8771         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8773 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8775         PR middle-end/31490
8776         * output.h (SECTION_RELRO): Define.
8777         (SECTION_MACH_DEP): Adjust.
8778         (get_variable_section): New prototype.
8779         * varpool.c (varpool_finalize_named_section_flags): New function.
8780         (varpool_assemble_pending_decls): Call it.
8781         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8782         * cgraphunit.c (cgraph_output_in_order): Call
8783         varpool_finalize_named_section_flags.
8784         * varasm.c (get_section): Allow section flags conflicts between
8785         relro and read-only sections if the section hasn't been declared yet.
8786         Set SECTION_OVERRIDE after diagnosing section type conflict.
8787         (get_variable_section): No longer static.
8788         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8789         readonly sections that need relocations.
8790         (decl_readonly_section_1): New function.
8791         (decl_readonly_section): Use it.
8793         Revert:
8794         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8795                     Steve Ellcey  <sje@cup.hp.com>
8797         PR middle-end/31490
8798         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8799         if section attribute used.
8801 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8803         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8804         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8805         (darwin_init_sections): Remove assertion.
8807 2011-02-03  Nick Clifton  <nickc@redhat.com>
8809         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8810         lt and ge.
8811         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8812         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8813         instead of "n" and "pz".
8814         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8815         CC_FLAG_S.
8817 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8819         PR target/47312
8820         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8821         fma, expand FMA_EXPR as fma{,f,l} call.
8823         PR lto/47274
8824         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8825         copy them into a unsigned char variable and pass address of it to
8826         lto_output_data_stream.
8828         PR target/47564
8829         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8830         around backend_init_target and lang_dependent_init_target calls.
8831         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8832         (verify_cgraph_node): Don't call set_cfun here.  Use
8833         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8834         Set error_found for incorrectly represented calls to thunks.
8836 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8838         PR debug/43092
8839         PR rtl-optimization/43494
8840         * rtl.h (for_each_inc_dec_fn): New type.
8841         (for_each_inc_dec): Declare.
8842         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8843         (for_each_inc_dec_find_inc_dec): New fn.
8844         (for_each_inc_dec_find_mem): New fn.
8845         (for_each_inc_dec): New fn.
8846         * dse.c (struct insn_size): Remove.
8847         (replace_inc_dec, replace_inc_dec_mem): Remove.
8848         (emit_inc_dec_insn_before): New fn.
8849         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8850         (canon_address): Pass mem modes to cselib_lookup.
8851         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8852         (cselib_lookup_from_insn): Likewise.
8853         (cselib_subst_to_values): Likewise.
8854         * cselib.c (find_slot_memmode): New var.
8855         (cselib_find_slot): New fn.  Use it instead of
8856         htab_find_slot_with_hash everywhere.
8857         (entry_and_rtx_equal_p): Use find_slot_memmode.
8858         (autoinc_split): New fn.
8859         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8860         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8861         Deal with autoinc.  Special-case recursion into MEMs.
8862         (cselib_hash_rtx): Likewise.
8863         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8864         address and MEM modes.
8865         (cselib_subst_to_values): Add memmode, pass it on.
8866         Deal with autoinc.
8867         (cselib_lookup): Add memmode argument, pass it on.
8868         (cselib_lookup_from_insn): Add memmode.
8869         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8870         (struct cselib_record_autoinc_data): New.
8871         (cselib_record_autoinc_cb): New fn.
8872         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8873         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8874         (cselib_process_insn): ... here.
8875         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8876         to cselib_lookup.
8877         (add_uses): Likewise, also to cselib_subst_to_values.
8878         (add_stores): Likewise.
8879         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8880         cselib_subst_to_values.
8881         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8882         * gcse.c (do_local_cprop): Adjusted.
8883         * postreload.c (reload_cse_simplify_set): Adjusted.
8884         (reload_cse_simplify_operands): Adjusted.
8885         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8887 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8889         PR tree-optimization/45122
8890         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8891         unsafe assumptions when there's more than one loop exit.
8893 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8895         PR target/47272
8896         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8897         Document using vector double with the load/store builtins, and
8898         that the load/store builtins always use Altivec instructions.
8900         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8901         to use altivec memory instructions, even on VSX.
8902         (vector_altivec_store_<mode>): Ditto.
8904         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8905         function.
8907         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8908         V2DF, V2DI support to load/store overloaded builtins.
8910         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8911         altivec load/store builtins for V2DF/V2DI types.
8913         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8914         set avoid indexed addresses on power6 if -maltivec.
8915         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8916         vector_altivec_load/vector_altivec_store builtins.
8917         (altivec_expand_st_builtin): Ditto.
8918         (altivec_expand_builtin): Add VSX memory builtins.
8919         (rs6000_init_builtins): Add V2DI types to internal types.
8920         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8921         load/store builtins.
8922         (rs6000_address_for_altivec): Insure memory address is appropriate
8923         for Altivec.
8925         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8926         vec_vsx_ld and vec_vsx_st.
8927         (vsx_store_<mode>): Ditto.
8929         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8930         variables to hold long long types for VSX vector memory builtins.
8931         (RS6000_BTI_unsigned_long_long): Ditto.
8932         (long_long_integer_type_internal_node): Ditti.
8933         (long_long_unsigned_type_internal_node): Ditti.
8935         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8936         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8937         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8939         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8940         short cuts.
8941         (vec_vsx_st): Ditto.
8943 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8945         * config/pa/pa-hpux10.opt: New.
8946         * config/hpux11.opt (pthread): New Driver option.
8947         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8948         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8950 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8952         * config/ia64/vms.opt: New.
8953         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8955 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8957         PR target/47580
8958         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8959         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8960         generator functions.
8961         (vsx_floatuns<VSi><mode>2): Ditto.
8962         (vsx_fix_trunc<mode><VSi>2): Ditto.
8963         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8965 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8967         * config/i386/djgpp.opt (posix): New Driver option.
8969 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8971         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8972         Move to the unsupported targets list.
8974 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8976         PR rtl-optimization/47525
8977         * df-scan.c: Update copyright years.
8978         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8979         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8981 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8983         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8984         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8985         (ASM_OUTPUT_ASCII): Remove.
8986         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8988 2011-02-02  Jeff Law  <law@redhat.com>
8990         PR middle-end/47543
8991         * reload.c (find_reloads_address): Handle reg+d address where both
8992         components are invalid by reloading the entire address.
8994 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8995             Richard Guenther  <rguenther@suse.de>
8997         PR tree-optimization/40979
8998         PR bootstrap/47044
8999         * passes.c (init_optimization_passes): After LIM call copy_prop
9000         and DCE to clean up.
9001         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9003 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9005         PR tree-optimization/47576
9006         PR tree-optimization/47555
9007         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9008         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9009         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9010         * tree-scalar-evolution.c (follow_ssa_edge): Use
9011         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9013 2011-02-02  Richard Guenther  <rguenther@suse.de>
9015         PR tree-optimization/47566
9016         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9018 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9020         PR debug/47106
9021         PR debug/47402
9022         * tree-inline.c (declare_return_variable): Remove unused caller
9023         variable.
9025         PR debug/47106
9026         PR debug/47402
9027         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9028         * cfgexpand.c (account_used_vars_for_block): Use them.
9029         * tree-nrv.c (tree_nrv): Likewise.
9030         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9031         (dump_scope_block): Likewise.
9032         (remove_unused_locals): Likewise.
9034         PR debug/47106
9035         PR debug/47402
9036         * tree-inline.c (declare_return_variable): Add result decl to
9037         local decls only once.
9038         * gimple-low.c (record_vars_into): Mark newly-created variables
9039         as referenced.
9041 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9043         PR debug/47498
9044         PR debug/47501
9045         PR debug/45136
9046         PR debug/45130
9047         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9048         debug insns.
9049         (no_real_insns_p, schedule_block, set_priorities): Drop special
9050         treatment of boundary debug insns.
9051         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9052         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9053         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9054         (BOUNDARY_DEBUG_INSN_P): Likewise.
9055         (SCHEDULE_DEBUG_INSN_P): Likewise.
9056         * sched-rgn.c (init_ready_list): Drop special treatment of
9057         boundary debug insns.
9058         * final.c (rest_of_clean_state): Clear notes' BB.
9060 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9062         * config/openbsd.opt (assert=): New Driver option.
9064 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9066         * config/i386/nto.opt: New.
9067         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9069 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9071         * config/i386/netware.opt: New.
9072         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9074 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9076         * config/interix.opt (posix): New Driver option.
9078 2011-02-01  DJ Delorie  <dj@redhat.com>
9080         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9082         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9083         class for A0/A1.
9085 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9087         PR tree-optimization/47561
9088         * toplev.c (process_options): Print the Graphite flags.  Add
9089         flag_loop_flatten to the list of options requiring Graphite.
9091 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9093         * config/i386/cygming.opt (posix): New Driver option.
9095 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9097         * config/arm/vxworks.opt: New.
9098         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9100 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9102         * config/alpha/elf.opt: New.
9103         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9104         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9106 2011-02-01  Richard Guenther  <rguenther@suse.de>
9108         PR tree-optimization/47559
9109         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9110         store-motion on references that can throw.
9112 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9114         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9115         * tree-pass.h (TDF_CSELIB): New macro.
9116         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9117         cselib_lookup): Check for it rather than for TDF_DETAILS.
9119 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9121         PR driver/47547
9122         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9123         is HOST_BIT_BUCKET.
9125         * opts.c (finish_options): Don't add x_aux_base_name if it is
9126         HOST_BIT_BUCKET.
9128 2011-02-01  Richard Guenther  <rguenther@suse.de>
9130         PR tree-optimization/47555
9131         Revert
9132         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9134         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9136 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9138         PR gcc/46692
9139         * config/lm32/t-lm32: Add multilib for all CPU options.
9141 2011-02-01  Richard Guenther  <rguenther@suse.de>
9143         PR tree-optimization/47541
9144         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9145         sure to have a field at offset zero.
9147 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9149         * config/arc/arc.opt (EB, EL): New Driver options.
9151 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9153         * config/alpha/osf5.opt: New.
9154         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9156 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9158         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9160 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9162         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9163         -floop-interchange.
9164         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9165         is an alias of -floop-interchange and that it requires the
9166         Graphite infrastructure.
9167         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9168         flag_loop_interchange based on the value of flag_tree_loop_linear.
9170 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9171             Richard Guenther  <rguenther@suse.de>
9173         PR tree-optimization/47538
9174         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9175         type instead of r1type, except for comparisons.  For right
9176         shifts and comparisons punt if there are mismatches in
9177         sizetype vs. non-sizetype types.
9179 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9181         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9182         avx_runtime.
9184 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9186         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9187         version number.
9188         * configure: Regenerate.
9190 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9192         * configure.ac (gcc_cv_ld_static_option): Define.
9193         (gcc_cv_ld_dynamic_option): Define.
9194         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9195         instead.
9196         (HAVE_LD_STATIC_DYNAMIC): Update message.
9197         (LD_STATIC_OPTION): Define.
9198         (LD_DYNAMIC_OPTION): Define.
9199         * configure: Regenerate.
9200         * config.in: Regenerate.
9201         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9202         HAVE_LD_STATIC_DYNAMIC]: Use them.
9204 2011-01-31  Nick Clifton  <nickc@redhat.com>
9206         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9207         registers inside interrupt handlers if the handler is not a leaf
9208         function.
9210 2011-01-31  Nick Clifton  <nickc@redhat.com>
9212         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9213         reg_renumber returning an INVALID_REGNUM.
9215 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9217         PR libgcj/44341
9218         * doc/install.texi: Document host options discarded when cross
9219         configuring target libraries.
9221 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9223         Reverted:
9224         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9225         PR debug/45136
9226         PR debug/45130
9227         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9228         debug insns.
9229         (no_real_insns_p, schedule_block, set_priorities): Drop special
9230         treatment of boundary debug insns.
9231         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9232         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9233         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9234         (BOUNDARY_DEBUG_INSN_P): Likewise.
9235         (SCHEDULE_DEBUG_INSN_P): Likewise.
9236         * sched-rgn.c (init_ready_list): Drop special treatment of
9237         boundary debug insns.
9238         * final.c (rest_of_clean-state): Clear notes' BB.
9240 2011-01-31  Alan Modra  <amodra@gmail.com>
9242         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9243         toc relative expressions as we do in print_operand_address.
9245 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9247         * doc/extend.texi: Follow spelling conventions.
9248         * doc/invoke.texi: Fix a typo.
9250 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9252         * config/hpux11.opt: New.
9253         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9254         ia64*-*-hpux*): Use hpux11.opt.
9256 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9258         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9259         to tmake_file.
9261 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9263         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9264         support sites.
9266 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9268         * doc/install.texi (Binaries): Remove outdated reference for
9269         Motorola 68HC11/68HC12 downloads.
9271 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9273         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9274         Drepper's paper.
9276 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9278         PR bootstrap/47147
9279         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9280         used by NetBSD.
9282 2011-01-28  Ahmad Sharif  <asharif@google.com>
9284         * value-prof.c (check_counter): Corrected error message.
9286 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9288         * config/arm/arm.c (arm_legitimize_reload_address): New.
9289         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9290         arm_legitimize_reload_address.
9291         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9293 2011-01-28  Ian Lance Taylor  <iant@google.com>
9295         * godump.c (go_define): Ignore macros whose definitions include
9296         two adjacent operands.
9298 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9300         PR target/42894
9301         * varasm.c (force_const_mem): Store copy of x in desc->constant
9302         instead of x itself.
9303         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9304         itself into REG_EQUAL note.
9306 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9308         * config/freebsd.opt (posix, rdynamic): New Driver options.
9310 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9312         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9313         -Bstatic/-Bdynamic.
9314         * configure: Regenerate.
9316 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9318         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9319         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9321 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9323         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9324         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9325         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9326         (s390_preferred_reload_class): Make static. Change return and
9327         'rclass' argument type to reg_class_t.
9329 2011-01-27  Jan Hubicka  <jh@suse.cz>
9331         PR middle-end/46949
9332         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9333         (process_function_and_variable_attributes): Check defined weakrefs.
9335 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9337         PR tree-optimization/47228
9338         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9339         build_ref_for_offset.
9341 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9343         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9345 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9347         PR rtl-optimization/46856
9348         * postreload.c (reload_combine_recognize_const_pattern): Do not
9349         separate cc0 setter and user on cc0 targets.
9351 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9353         PR c/43082
9354         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9355         passed a VOID_TYPE expression, immediately emit an error and
9356         return error_mark_node.
9358 2011-01-26  Jeff Law  <law@redhat.com>
9360         PR rtl-optimization/47464
9361         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9362         rather than may_trap_p as needed.
9364 2011-01-26  DJ Delorie  <dj@redhat.com>
9366         PR rtl-optimization/46878
9367         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9368         setter/user dependency as well.
9370 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9372         PR rtl-optimization/44469
9373         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9374         after removing trivially dead basic blocks.
9376 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9378         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9379         * config/frv/frv.h (LINK_SPEC): Likewise.
9380         * config/i386/netware.h (LINK_SPEC): Likewise.
9381         * config/m68k/linux.h (ASM_SPEC): Likewise.
9382         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9383         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9384         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9385         * config/sparc/linux.h (ASM_SPEC): Likewise.
9386         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9387         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9389 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9391         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9392         * config/frv/frv.h (ASM_SPEC): Likewise.
9393         * config/m68k/linux.h (ASM_SPEC): Likewise.
9394         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9395         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9396         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9397         * config/sparc/linux.h (ASM_SPEC): Likewise.
9398         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9399         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9401 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9403         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9404         * config/frv/frv.h (LINK_SPEC): Likewise.
9405         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9407 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9409         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9410         * config/frv/frv.h (ASM_SPEC): Likewise.
9411         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9412         * config/m68k/linux.h (ASM_SPEC): Likewise.
9413         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9414         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9415         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9416         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9417         * config/sparc/linux.h (ASM_SPEC): Likewise.
9418         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9419         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9420         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9422 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9424         PR target/46997
9425         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9426         (*mux2): Ditto.
9427         (vec_extract_evenodd_help): Ditto.
9428         (vec_extract_evenv4hi): Ditto.
9429         (vec_extract_oddv4hi): Ditto.
9430         (vec_interleave_lowv2si): Ditto.
9431         (vec_interleave_highv2si): Ditto.
9432         (vec_extract_evenv2si): Ditto.
9433         (vec_extract_oddv2si: Ditto.
9434         (vec_pack_trunc_v2si): Ditto.
9436 2011-01-22  Jan Hubicka  <jh@suse.cz>
9438         PR target/47237
9439         * cgraph.h (cgraph_local_info): New field can_change_signature.
9440         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9441         signature can change.
9442         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9443         can change.
9444         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9445         (cgraph_function_versioning): We can not change signature of functions
9446         that don't allow that.
9447         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9448         (lto_input_node): Likewise.
9449         * ipa-inline.c (compute_inline_parameters): Compute
9450         local.can_change_signature.
9451         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9452         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9453         functions that can not change signature.
9454         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9455         init_cumulative_args): Do not use local calling conventions
9456         for functions that can not change signature.
9458 2011-01-22  Jan Hubicka  <jh@suse.cz>
9460         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9462 2011-01-26  Richard Guenther  <rguenther@suse.de>
9464         PR tree-optimization/47190
9465         * cgraphunit.c (process_common_attributes): New function.
9466         (process_function_and_variable_attributes): Use it.
9468 2011-01-26  Richard Guenther  <rguenther@suse.de>
9470         PR lto/47423
9471         * cgraphbuild.c (record_eh_tables): Record reference to personality
9472         function.
9474 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9476         PR debug/45454
9477         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9478         non-debug insns from moving up.
9480 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9482         PR target/40125
9483         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9484         t-dlldir{,-x} fragment for build and add it to tmake_file.
9485         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9486         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9487         * config/i386/t-dlldir: New file.
9488         (SHLIB_DLLDIR): Define.
9489         * config/i386/t-dlldir-x: New file.
9490         (SHLIB_DLLDIR): Define.
9491         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9492         (SHLIB_INSTALL): Use it.
9494 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9496         PR target/47246
9497         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9498         lower bound of the allowed Thumb-2 coprocessor load/store
9499         index range to -256. Add explaining comment.
9501 2011-01-25  Ian Lance Taylor  <iant@google.com>
9503         * godump.c (go_define): Improve lexing of macro expansion to only
9504         accept expressions which match Go spec.
9506 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9508         PR c++/43601
9509         * tree.c (handle_dll_attribute): Handle it.
9510         * doc/extend.texi (@item dllexport): Mention it.
9511         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9513 2011-01-25  Ian Lance Taylor  <iant@google.com>
9515         PR tree-optimization/26854
9516         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9517         (decl_jump_unsafe): Move higher in file, with no other change.
9518         (bind): Set has_jump_unsafe_decl if appropriate.
9519         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9520         (check_earlier_gotos): Likewise.
9521         (c_check_switch_jump_warnings): Likewise.
9523 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9525         * doc/invoke.texi (Warning Options): Add missing hyphen.
9526         (-fprofile-dir): Minor grammatical fixes.
9527         (-fbranch-probabilities): Likewise.
9529 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9531         PR debug/45136
9532         PR debug/45130
9533         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9534         debug insns.
9535         (no_real_insns_p, schedule_block, set_priorities): Drop special
9536         treatment of boundary debug insns.
9537         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9538         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9539         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9540         (BOUNDARY_DEBUG_INSN_P): Likewise.
9541         (SCHEDULE_DEBUG_INSN_P): Likewise.
9542         * sched-rgn.c (init_ready_list): Drop special treatment of
9543         boundary debug insns.
9544         * final.c (rest_of_clean-state): Clear notes' BB.
9546 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9548         * Makefile.in (LAMBDA_H): Removed.
9549         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9550         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9551         lambda-trans.o, and tree-loop-linear.o.
9552         (lto-symtab.o): Remove dependence on LAMBDA_H.
9553         (tree-loop-linear.o): Remove rule.
9554         (lambda-mat.o): Same.
9555         (lambda-trans.o): Same.
9556         (lambda-code.o): Same.
9557         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9558         (tree-vect-slp.o): Same.
9559         * hwint.h (gcd): Moved here.
9560         (least_common_multiple): Same.
9561         * lambda-code.c: Removed.
9562         * lambda-mat.c: Removed.
9563         * lambda-trans.c: Removed.
9564         * lambda.h: Removed.
9565         * tree-loop-linear.c: Removed.
9566         * lto-symtab.c: Do not include lambda.h.
9567         * omega.c (gcd): Removed.
9568         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9569         * tree-data-ref.c (print_lambda_vector): Moved here.
9570         (lambda_vector_copy): Same.
9571         (lambda_matrix_copy): Same.
9572         (lambda_matrix_id): Same.
9573         (lambda_vector_first_nz): Same.
9574         (lambda_matrix_row_add): Same.
9575         (lambda_matrix_row_exchange): Same.
9576         (lambda_vector_mult_const): Same.
9577         (lambda_vector_negate): Same.
9578         (lambda_matrix_row_negate): Same.
9579         (lambda_vector_equal): Same.
9580         (lambda_matrix_right_hermite): Same.
9581         * tree-data-ref.h: Do not include lambda.h.
9582         (lambda_vector): Moved here.
9583         (lambda_matrix): Same.
9584         (dependence_level): Same.
9585         (lambda_transform_legal_p): Removed declaration.
9586         (lambda_collect_parameters): Same.
9587         (lambda_compute_access_matrices): Same.
9588         (lambda_vector_gcd): Same.
9589         (lambda_vector_new): Same.
9590         (lambda_vector_clear): Same.
9591         (lambda_vector_lexico_pos): Same.
9592         (lambda_vector_zerop): Same.
9593         (lambda_matrix_new): Same.
9594         * tree-flow.h (least_common_multiple): Removed declaration.
9595         * tree-parloops.c (lambda_trans_matrix): Moved here.
9596         (LTM_MATRIX): Same.
9597         (LTM_ROWSIZE): Same.
9598         (LTM_COLSIZE): Same.
9599         (LTM_DENOMINATOR): Same.
9600         (lambda_trans_matrix_new): Same.
9601         (lambda_matrix_vector_mult): Same.
9602         (lambda_transform_legal_p): Same.
9603         * tree-pass.h (pass_linear_transform): Removed declaration.
9604         * tree-ssa-loop.c (tree_linear_transform): Removed.
9605         (gate_tree_linear_transform): Removed.
9606         (pass_linear_transform): Removed.
9607         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9608         flag_loop_interchange.
9610 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9612         PR tree-optimization/47265
9613         PR tree-optimization/47443
9614         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9615         if name still has some uses.
9617 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9619         PR tree-optimization/47382
9620         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9621         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9623 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9625         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9626         sjlj_except_unwind_info.
9628 2011-01-25  Richard Guenther  <rguenther@suse.de>
9630         PR tree-optimization/47426
9631         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9632         visible functions results escape.
9634 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9636         PR target/45701
9637         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9638         (arm_get_frame_offsets): Use it.
9640 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9641             Jakub Jelinek  <jakub@redhat.com>
9643         PR tree-optimization/47271
9644         * tree-if-conv.c (bb_postdominates_preds): New.
9645         (if_convertible_bb_p): Call bb_postdominates_preds.
9646         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9647         (predicate_scalar_phi): Call bb_postdominates_preds.
9649 2011-01-25  Nick Clifton  <nickc@redhat.com>
9651         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9652         * config/rx/rx.c (rx_function_value): Likewise.
9653         (rx_promote_function_mode): Likewise.
9654         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9655         in order to make it legitimate.
9656         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9657         make sure that the first operand is the same as the result register.
9658         (addsi3_unspec): Delete.
9659         (subdi3): Do not accept immediate operands.
9660         (subdi3_internal): Likewise.
9662 2011-01-25  Jeff Law  <law@redhat.com>
9664         PR rtl-optimization/37273
9665         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9666         handle them like argument loads from stack slots.  Do not double
9667         count memory for memory constants and argument loads from stack slots.
9669 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9671         PR tree-optimization/47427
9672         PR tree-optimization/47428
9673         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9674         coalesce if the new root var would be TREE_READONLY.
9676 2011-01-25  Richard Guenther  <rguenther@suse.de>
9678         PR middle-end/47414
9679         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9680         correct type for TBAA.
9682 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9684         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9685         (close_phi_written_to_memory): Call for_each_index with
9686         dr_indices_valid_in_loop.
9688 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9690         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9691         when it is initialized.
9693 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9695         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9696         call to graphite_find_data_references_in_stmt.
9697         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9698         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9699         call to graphite_find_data_references_in_stmt.
9700         (analyze_drs_in_stmts): Same.
9701         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9702         in which the scalar analysis of indices is performed.
9703         (create_data_ref): Same.  Update call to dr_analyze_indices.
9704         (find_data_references_in_stmt): Update call to create_data_ref.
9705         (graphite_find_data_references_in_stmt): Same.
9706         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9707         declaration.
9708         (create_data_ref): Same.
9709         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9710         call to create_data_ref.
9712 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9714         * graphite-sese-to-poly.c (build_poly_scop): Move
9715         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9717 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9719         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9720         VAR_DECL, PARM_DECL, and RESULT_DECL.
9722 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9724         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9725         in a reduction PBB.
9726         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9727         that have already been marked as PBB_IS_REDUCTION.
9729 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9731         * graphite-scop-detection.c (same_close_phi_node): New.
9732         (remove_duplicate_close_phi): New.
9733         (make_close_phi_nodes_unique): New.
9734         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9736 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9738         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9739         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9740         of both data references to be the same.
9742 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9744         * graphite-dependences.c (build_lexicographical_constraint): Remove
9745         the gdim parameter.
9746         (build_lexicographical_constraint): Adjust call to
9747         ppl_powerset_is_empty.
9748         (dependence_polyhedron): Same.
9749         (graphite_legal_transform_dr): Same.
9750         (graphite_carried_dependence_level_k): Same.
9751         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9752         parameter.
9753         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9755 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9757         * graphite-sese-to-poly.c
9758         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9759         (close_phi_written_to_memory): New.
9760         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9761         and unshare_expr.
9763 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9765         * doc/install.texi: Update the expected version number of PPL to 0.11.
9766         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9767         #if PPL_VERSION_MINOR < 11.
9769 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9771         * graphite-dependences.c: Include graphite-cloog-util.h.
9772         (new_poly_ddr): Inlined into dependence_polyhedron.
9773         (free_poly_ddr): Moved close by new_poly_ddr.
9774         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9775         Early return NULL when ppl_powerset_is_empty returns true.
9776         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9777         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9778         (graphite_legal_transform_dr): Call new_poly_ddr.
9779         (graphite_carried_dependence_level_k): Same.
9780         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9781         (dot_transformed_deps_stmt_1): Removed.
9782         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9783         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9784         (dot_deps_1): Call dot_deps_2.
9785         * Makefile.in (graphite-dependences.o): Add missing dependence on
9786         graphite-cloog-util.h.
9788 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9790         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9791         (build_lexicographical_constraint): Same.
9792         (dependence_polyhedron_1): Same.
9793         (graphite_legal_transform_dr): Same.
9794         (graphite_carried_dependence_level_k): Same.
9795         * graphite-ppl.c (ppl_powerset_is_empty): New.
9796         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9797         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9799 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9801         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9802         the "a followed by b" relation and document it.
9804 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9806         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9807         iteration when the bag of constraints is empty.
9809 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9811         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9813 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9815         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9816         nest and two loop depths as parameters.
9817         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9818         lst_perfect_nestify.
9820 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9822         * graphite-dependences.c (print_pddr): Call
9823         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9825 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9827         * graphite-ppl.c (debug_gmp_value): New.
9828         * graphite-ppl.h (debug_gmp_value): Declared.
9830 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9832         * doc/install.texi: Document availability of cloog-0.16.
9834 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9836         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9837         invalid postdominance info.
9839 2011-01-24  Jan Hubicka  <jh@suse.cz>
9841         PR c/21659
9842         * doc/extend.texi (weak pragma): Drop claim that it must
9843         appear before definition.
9844         * varasm.c (merge_weak, declare_weak): Only sanity check
9845         that DECL is not output at a time it is declared weak.
9847 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9849         * machmode.def: Fixed comments.
9851 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9853         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9855 2011-01-24  Paul Koning  <ni1d@arrl.net>
9857         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9858         WORDS_BIG_ENDIAN.
9860 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9862         PR target/46519
9863         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9864         (block_info): Add scanned and prev.
9865         (move_or_delete_vzeroupper_2): Return if the basic block
9866         has been scanned and the upper 128bit state is unchanged
9867         from the last scan.
9868         (move_or_delete_vzeroupper_1): Return true if the exit
9869         state is changed.
9870         (move_or_delete_vzeroupper): Visit basic blocks using the
9871         work-list based algorithm based on vt_find_locations in
9872         var-tracking.c.
9874         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9876 2011-01-24  Nick Clifton  <nickc@redhat.com>
9878         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9879         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9880         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9881         then define __v850e1__.
9882         * doc/invoke.texi: Document -mv850es.
9884 2011-01-24  Richard Henderson  <rth@redhat.com>
9886         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9887         compound unordered comparisons.
9888         * config/rx/rx.c (rx_split_fp_compare): Remove.
9889         * config/rx/rx-protos.h: Update.
9890         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9891         (cbranchsf4): Don't call rx_split_fp_compare.
9892         (*cbranchsf4): Use rx_split_cbranch.
9893         (*cmpsf): Don't accept "i" constraint.
9894         (*conditional_branch): Only valid after reload.
9895         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9897 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9899         PR target/47385
9900         * config/rs6000/altivec.md (vector constant splitters): Add
9901         support for creating vector single precision constants if -mvsx is
9902         used and we would create the constant using Altivec primitives.
9904 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9905             Richard Sandiford  <rdsandiford@googlemail.com>
9907         PR rtl-optimization/47166
9908         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9909         mechanism for PRE_MODIFY and POST_MODIFY.
9910         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9911         reloadreg.
9913 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9915         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9917 2011-01-22  Jan Hubicka  <jh@suse.cz>
9919         PR lto/47333
9920         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9922 2011-01-22  Jan Hubicka  <jh@suse.cz>
9924         PR tree-optimization/43884
9925         PR lto/44334
9926         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9927         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9929 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9931         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9932         * config/s390/s390.c (s390_register_move_cost,
9933         s390_memory_move_cost): New.
9934         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9936 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9938         PR middle-end/47401
9939         * except.c (sjlj_assign_call_site_values): Move setting the
9940         crtl->uses_eh_lsda flag to ...
9941         (sjlj_mark_call_sites): ... here.
9942         (sjlj_emit_function_enter): Support NULL dispatch label.
9943         (sjlj_build_landing_pads): In a function with no landing pads
9944         that still has must-not-throw regions, generate code to register
9945         a personality function with empty LSDA.
9947 2011-01-21  Richard Henderson  <rth@redhat.com>
9949         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9951         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9953         * compare-elim.c: New file.
9954         * Makefile.in (OBJS-common): Add it.
9955         (compare-elim.o): New.
9956         * common.opt (fcompare-elim): New.
9957         * opts.c (default_options_table): Add OPT_fcompare_elim.
9958         * tree-pass.h (pass_compare_elim_after_reload): New.
9959         * passes.c (init_optimization_passes): Add it.
9960         * recog.h: Protect against re-inclusion.
9961         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9962         * doc/invoke.texi (-fcompare-elim): Document it.
9963         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9964         * doc/tm.texi: Rebuild.
9966 2011-01-22  Nick Clifton  <nickc@redhat.com>
9968         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9969         rx_split_fp_compare.
9971 2011-01-22  Nick Clifton  <nickc@redhat.com>
9973         * config/rx/rx.md (UNSPEC_CONST): New.
9974         (deallocate_and_return): Wrap the amount popped off the stack in
9975         an UNSPEC_CONST in order to stop it being rejected by
9976         -mmax-constant-size.
9977         (pop_and_return): Add a "(return)" rtx.
9978         (call): Drop the immediate operand.
9979         (call_internal): Likewise.
9980         (call_value): Likewise.
9981         (call_value_internal): Likewise.
9982         (sibcall_internal): Likewise.
9983         (sibcall_value_internal): Likewise.
9984         (sibcall): Likewise.  Generate an explicit call using
9985         sibcall_internal.
9986         (sibcall_value): Likewise.
9987         (mov<>): FAIL if a constant operand is not legitimate.
9988         (addsi3_unpsec): New pattern.
9990         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9991         (ok_for_max_constant): New function.
9992         (gen_safe_add): New function.
9993         (rx_expand_prologue): Use gen_safe_add.
9994         (rx_expand_epilogue): Likewise.
9995         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9996         UNSPEC CONSTs.
9998 2011-01-21  Jeff Law  <law@redhat.com>
10000         PR tree-optimization/47053
10001         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10002         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10003         statements are deleted.
10004         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10005         is nonempty, then purge dead edges and cleanup the CFG.
10007 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10009         PR debug/47402
10010         Temporarily revert:
10011         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10012         PR debug/47106
10013         * tree-dfa.c (create_var_ann): Mark variable as used.
10015 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10017         PR middle-end/45566
10018         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10019         notes from other section in hot/cold partitioning even if
10020         last_action is -3.  Increment call_site_base.
10022         PR rtl-optimization/47366
10023         * fwprop.c (forward_propagate_into): Return bool.  If
10024         any changes are made, -fnon-call-exceptions is used and
10025         REG_EH_REGION note is present, call purge_dead_edges
10026         and return true if it purged anything.
10027         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10028         any EH edges were purged.
10030 2011-01-21  Jeff Law  <law@redhat.com>
10032         PR rtl-optimization/41619
10033         * caller-save.c (setup_save_areas): Break out code to determine
10034         which hard regs are live across calls by examining the reload chains
10035         so that it is always used.
10036         Eliminate code which checked REG_N_CALLS_CROSSED.
10038 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10040         PR tree-optimization/47355
10041         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10042         NOP has non-debug uses beyond PHIs in new_bb.
10044 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10046         PR debug/47106
10047         * cfgexpand.c (account_used_vars_for_block): Only account vars
10048         that are annotated as used.
10049         (estimated_stack_frame_size): Don't set TREE_USED.
10050         * tree-dfa.c (create_var_ann): Mark variable as used.
10052 2011-01-21  Richard Guenther  <rguenther@suse.de>
10054         PR middle-end/47395
10055         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10057 2011-01-21  Richard Guenther  <rguenther@suse.de>
10059         PR tree-optimization/47365
10060         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10061         (vn_reference_lookup_pieces): Adjust.
10062         (vn_reference_lookup): Likewise.
10063         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10064         (vn_reference_lookup_3): Only look through kills if in
10065         VN_WALKREWRITE mode.
10066         (vn_reference_lookup_pieces): Adjust.
10067         (vn_reference_lookup): Likewise.
10068         (visit_reference_op_load): Likewise.
10069         (visit_reference_op_store): Likewise.
10070         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10071         (compute_avail): Likewise.
10072         (eliminate): Likewise.
10074 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10076         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10077         DECL_IGNORED_P non-reg vars if they are used.
10079         PR tree-optimization/47391
10080         * varpool.c (const_value_known_p): Return false if
10081         decl is volatile.
10083 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10085         PR bootstrap/47215
10086         * config/i386/i386.c (ix86_local_alignment): Handle
10087         case for va_list_type_node is nil.
10088         (ix86_canonical_va_list_type): Likewise.
10090 2011-01-21  Alan Modra  <amodra@gmail.com>
10092         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10093         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10095 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10097         * config/arm/arm.md (define_attr type): Rename f_load
10098         and f_store to f_fpa_load and f_fpa_store. Update.
10099         (write_conflict): Deal with rename fallout.
10100         (*push_fp_multi): Likewise.
10101         * config/arm/fpa.md (f_load): Use f_fpa_load.
10102         (f_store): Use f_fpa_store.
10103         (*movsf_fpa): Likewise.
10104         (*movdf_fpa): Likewise.
10105         (*movxf_fpa): Likewise.
10106         (*thumb2_movsf_fpa): Likewise.
10107         (*thumb2_movdf_fpa): Likewise.
10108         (*thumb2_movxf_fpa): Likewise.
10109         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10110         f_loadd and f_stored.
10111         (*thumb2_movdi_vfp): Likewise.
10112         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10113         (*thumb2_movsi_vfp): Likewise.
10114         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10115         Use f_loads instead of f_load.
10116         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10118 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10120         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10121         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10122         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10123         (xtensa_mode_dependent_address_p): New function.
10124         (constantpool_address_p): Make static. Change return type to bool.
10125         Change argument type to const_rtx. Use CONST_INT_P predicate.
10127 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10129         PR debug/46583
10130         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10132 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10134         PR debug/47283
10135         * cfgexpand.c (expand_debug_expr): Instead of generating
10136         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10137         etc. handling.
10139 2011-01-20  Richard Guenther  <rguenther@suse.de>
10141         PR middle-end/47370
10142         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10143         the pointer operand of MEM_REFs.
10145 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10147         PR tree-optimization/46130
10148         * ipa-split.c (consider_split): If return_bb contains non-virtual
10149         PHIs other than for retval or if split_function would not adjust it,
10150         refuse to split.
10152 2011-01-20  Richard Guenther  <rguenther@suse.de>
10154         PR tree-optimization/47167
10155         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10156         Revert previous change, only avoid enumeral type changes.
10158 2011-01-19  Mike Stump  <mikestump@comcast.net>
10160         * doc/tm.texi.in (BRANCH_COST): Englishify.
10161         * doc/tm.texi (BRANCH_COST): Likewise.
10163 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10165         PR c++/47291
10166         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10167         (gen_scheduled_generic_parms_dies): New functions.
10168         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10169         generation for the end of CU compilation.
10170         (dwarf2out_finish): Generate template parameters DIEs here.
10172 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10174         PR debug/46240
10175         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10176         debug bind stmt on merge edges.
10178 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10180         PR debug/47079
10181         PR debug/46724
10182         * function.c (instantiate_expr): Instantiate incoming rtl of
10183         implicit arguments, and recurse on VALUE_EXPRs.
10184         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10185         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10187 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10189         * c-parser.c (c_parser_for_statement): Initialize
10190         collection_expression.
10192 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10194         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10196 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10198         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10199         (LINK_SHLIB_SPEC): Don't use %(link_path).
10200         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10202 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10204         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10205         (NO_SHARED_LIB_SUPPORT): Remove.
10206         (LINK_SHLIB_SPEC): Remove one conditional definition.
10208 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10210         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10211         %{call_shared}.
10212         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10213         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10214         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10215         %{call_shared} and conditionals on these options not being passed.
10216         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10217         %{call_shared}.
10219 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10221         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10222         simplify.
10224         * ipa-split.c: Spelling fixes.
10226 2011-01-19  Richard Henderson  <rth@redhat.com>
10228         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10229         (*mulsi3): Likewise.
10231         * longlong.h [__mn10300__] (count_leading_zeros): New.
10232         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10233         [__mn10300__] (add_ssaaaa, subddmmss): New.
10234         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10235         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10237 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10239         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10241 2011-01-19  Richard Henderson  <rth@redhat.com>
10243         * config/mn10300/mn10300.md (addsi3_flags): New.
10244         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10245         (subsi3_flags, subc_internal, subdi3): New.
10246         (subdi3_internal, *subdi3_degenerate): New.
10247         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10249         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10250         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10251         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10252         * config/mn10300/mn10300-protos.h: Update.
10253         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10254         (return_ret): Likewise.  Rename from return_internal_regs.
10255         (return_internal): Remove.
10257         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10258         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10259         (mn10300_legitimate_constant_p): Likewise.
10260         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10261         (mn10300_frame_size): New.
10262         (mn10300_expand_prologue): Use it.
10263         (mn10300_expand_epilogue): Likewise.
10264         (mn10300_initial_offset): Likewise.
10265         * config/mn10300/mn10300-protos.h: Update.
10266         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10267         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10268         (prologue, epilogue, return_internal): Tidy output code.
10269         (mn10300_store_multiple_operation, return): Likewise.
10270         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10271         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10272         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10273         (load_pic, am33_load_pic): New.
10274         (mn10300_load_pic0, mn10300_load_pic1): New.
10276         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10277         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10278         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10279         (cc_flags_for_mode, cc_flags_for_code): New.
10280         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10281         overflow flag is not valid.  Validate that the flags we need
10282         for the comparison are valid.
10283         (mn10300_output_cmp): Remove.
10284         (mn10300_output_add): New.
10285         (mn10300_select_cc_mode): Use cc_flags_for_code.
10286         (mn10300_split_cbranch): New.
10287         (mn10300_match_ccmode): New.
10288         (mn10300_split_and_operand_count): New.
10289         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10290         to the function.
10291         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10292         (addsi3): ... here.  Use mn10300_output_add.
10293         (*addsi3_flags): New.
10294         (*am33_subsi3, *mn10300_subsi3): Merge...
10295         (subsi3): ... here.  Use attribute isa.
10296         (*subsi3_flags): New.
10297         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10298         when possible.
10299         (*am33_andsi3, *mn10300_andsi3): Merge...
10300         (andsi3): ... here.
10301         (*andsi3_flags): New.
10302         (andsi3 splitters): New.
10303         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10304         (iorsi3): ... here.
10305         (*iorsi3_flags): New.
10306         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10307         (xorsi3): ... here.
10308         (*xorsi3_flags): New.
10309         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10310         (one_cmplsi2): ... here.
10311         (*one_cmplsi2_flags): New.
10312         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10313         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10314         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10315         use matching constraints to eliminate a self-comparison.
10316         (*integer_conditional_branch): Rename from integer_conditional_branch.
10317         Use int_mode_flags to match CC_REG.
10318         (*cbranchsi4_btst, *btstsi): New.
10319         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10320         mn10300_split_cbranch.
10321         (*am33_cmpsf): Rename from am33_cmpsf.
10322         (*float_conditional_branch): Rename from float_conditional_branch.
10323         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10324         (zero_extendqisi2): ... here.
10325         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10326         (zero_extendhisi2): ... here.
10327         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10328         (extendqisi2): ... here.
10329         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10330         (extendhisi2): ... here.
10331         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10332         (ashlsi3): ... here.
10333         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10334         (lshrsi3): ... here.
10335         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10336         (ashrsi3): ... here.
10337         (consecutive add peephole): Remove.
10338         * config/mn10300/predicates.md (label_ref_operand): New.
10339         (int_mode_flags): New.
10340         (CCZN_comparison_operator): New.
10342         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10343         (throughput_42_latency_43): New reservation.
10344         (mulsidi3, umulsidi3): New expanders.
10345         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10346         the MDR register to allocation; separately allocate the low and
10347         high parts of the DImode result.
10348         (umulsidi3_internal): Similarly.
10349         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10350         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10351         (udivsi3, umodsi3): Remove.
10352         (udivmodsi4, divmodsi4): New expanders.
10353         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10354         (*divmodsi4): Simiarly.
10355         (ext_internal): New.
10357         * config/mn10300/constraints.md ("z"): New constraint.
10358         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10359         (FIXED_REGISTERS): Don't fix MDR.
10360         (CALL_USED_REGSITERS): Reformat nicely.
10361         (REG_ALLOC_ORDER): Add MDR.
10362         (enum regclass): Add MDR_REGS.
10363         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10364         (IRA_COVER_CLASSES): Add MDR_REGS.
10365         (REGNO_REG_CLASS): Handle MDR_REG.
10366         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10367         (mn10300_register_move_cost): Likewise.
10368         * config/mn10300/mn10300.md (MDR_REG): New.
10369         (*movsi_internal): Handle moves to/from MDR_REGS.
10371         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10372         POST_MODIFY.
10373         (mn10300_secondary_reload): Tidy combination reload classes.
10374         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10375         addresses for AM33.  Allow symbolic offsets for reg+imm.
10376         (mn10300_regno_in_class_p): New.
10377         (mn10300_legitimize_reload_address): New.
10378         * config/mn10300/mn10300.h (enum reg_class): Remove
10379         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10380         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10381         SP_OR_GENERAL_REGS.
10382         (REG_CLASS_NAMES): Update to match.
10383         (REG_CLASS_CONTENTS): Likewise.
10384         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10385         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10386         (REGNO_IN_RANGE_P): Remove.
10387         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10388         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10389         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10390         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10391         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10392         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10393         (REGNO_GENERAL_P): New.
10394         (HAVE_POST_MODIFY_DISP): New.
10395         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10396         (LEGITIMIZE_RELOAD_ADDRESS): New.
10397         * config/mn10300/mn10300-protos.h: Update.
10399         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10400         DATA_REGS for AM33 stack-pointer destination.
10401         (mn10300_preferred_output_reload_class): Likewise.
10402         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10403         into a form appropriate for ...
10404         (TARGET_SECONDARY_RELOAD): New.
10405         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10406         * config/mn10300/mn10300-protos.h: Update.
10407         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10408         reload_insi; use the "A" constraint for the scratch; handle AM33
10409         moves of sp to non-address registers.
10411         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10412         (*movqi_internal): ... here.
10413         (*am33_movhi, *mn10300_movhi): Merge into...
10414         (*movhi_internal): ... here.
10415         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10416         as the source/destination of moves from/to SP.
10417         (movsf): Only allow for AM33-2.
10418         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10419         any integer constant constraint.  Only allow for AM33-2.  Tidy
10420         all of the alternative outputs.
10421         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10422         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10423         for MN103.
10424         (udivsi3, umodsi3): New patterns for MN103 only.
10426 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10428         * doc/tm.texi.in: Spell out that a lack of register class unions
10429         can lead to ICEs.
10430         * doc/tm.texi: Regenerate.
10432 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10434         PR rtl-optimization/47337
10435         * dce.c (check_argument_store): New function.
10436         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10438         PR tree-optimization/47290
10439         * tree-eh.c (infinite_empty_loop_p): New function.
10440         (cleanup_empty_eh): Use it.
10442 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10444         PR target/46997
10445         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10446         (a64_expand_widen_sum): Ditto.
10447         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10448         (vec_extract_evenodd_help): Ditto.
10449         (vec_extract_evenv4hi): Ditto.
10450         (vec_extract_oddv4hi): Ditto.
10451         (vec_extract_evenv2si): Ditto.
10452         (vec_extract_oddv2si): Ditto.
10453         (vec_extract_evenv2sf): Ditto.
10454         (vec_extract_oddv2sf): Ditto.
10455         (vec_pack_trunc_v4hi: Ditto.
10456         (vec_pack_trunc_v2si): Ditto.
10457         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10458         (vec_interleave_highv8qi): Ditto.
10459         (mix1_r): Ditto.
10460         (vec_extract_oddv8qi): Ditto.
10461         (vec_interleave_lowv4hi): Ditto.
10462         (vec_interleave_highv4hi): Ditto.
10463         (vec_interleave_lowv2si): Ditto.
10464         (vec_interleave_highv2si): Ditto.
10466 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10468         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10469         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10470         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10471         (pa_c_mode_for_suffix): New.
10472         (TARGET_EXPAND_BUILTIN): Define.
10473         (TARGET_C_MODE_FOR_SUFFIX): Define.
10474         (pa_builtins): Define.
10475         (pa_init_builtins): Register __float128 type and init new support
10476         builtins.
10477         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10478         * config/pa/quadlib.c (_U_Qfcopysign): New.
10480 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10482         PR middle-end/46894
10483         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10484         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10485         are defined.
10487 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10489         PR tree-optimization/47179
10490         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10491         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10493 2011-01-18  Richard Guenther  <rguenther@suse.de>
10495         PR rtl-optimization/47216
10496         * emit-rtl.c: Include tree-flow.h.
10497         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10498         of replicating it with different semantics.
10499         * Makefile.in (emit-rtl.o): Adjust.
10501 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10503         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10504         (cortex_a9_dp): Handle neon types correctly.
10506 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10508         PR rtl-optimization/47299
10509         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10510         subtarget.  Use normal multiplication if both operands are constants.
10511         * expmed.c (expand_widening_mult): Don't try to optimize constant
10512         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10513         before using it.
10515 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10517         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10518         spacing after 'e.g.', typos, comma, hyphenation.
10520 2011-01-17  Richard Henderson  <rth@redhat.com>
10522         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10523         (rx_restricted_mem_operand): New.
10524         (rx_shift_operand): Use register_operand.
10525         (rx_source_operand, rx_compare_operand): Likewise.
10526         * config/rx/rx.md (addsi3_flags): New expander.
10527         (adddi3): Rewrite as expander.
10528         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10529         (subsi3_flags): New expander.
10530         (subdi3): Rewrite as expander.
10531         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10533         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10534         (rx_init_builtins): Remove sat builtin.
10535         (rx_expand_builtin): Likewise.
10536         * config/rx/rx.md (ssaddsi3): New.
10537         (*sat): Rename from sat.  Represent the CC_REG input.
10539         * config/rx/predicates.md (rshift_operator): New.
10540         * config/rx/rx.c (rx_expand_insv): Remove.
10541         * config/rx/rx-protos.h: Update.
10542         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10543         operand to the canonical position.
10544         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10545         (*bitclr, *bitclr_in_memory): Similarly.
10546         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10547         (insv): Retain the zero_extract in the expansion.
10549         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10550         (bswaphi2, bitinvert, revw): Likewise.
10552         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10553         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10554         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10555         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10556         (bitset, bitset_in_memory): Likewise.
10557         (bitinvert, bitinvert_in_memory): Likewise.
10558         (bitclr, bitclr_in_memory): Likewise.
10559         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10560         (rx_strend, rx_cmpstrn): Likewise.
10561         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10562         (bitop peep2 patterns): Remove.
10564         * config/rx/rx.c (rx_match_ccmode): New.
10565         * config/rx/rx-protos.h: Update.
10566         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10567         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10568         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10569         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10570         (fix_truncsfsi2, floatsisf2): Likewise.
10571         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10572         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10573         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10574         (*subsi3_flags, *xorsi3_flags): New.
10576         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10578         * config/rx/rx.c (rx_print_operand): Remove workaround for
10579         unsplit comparison operations.
10581         * config/rx/rx.md (movsicc): Split after reload.
10582         (*movsicc): Merge *movsieq and *movsine via match_operator.
10583         (*stcc): New pattern.
10585         * config/rx/rx.c (rx_float_compare_mode): Remove.
10586         * config/rx/rx.h (rx_float_compare_mode): Remove.
10587         * config/rx/rx.md (cstoresi4): Split after reload.
10588         (*sccc): New pattern.
10590         * config/rx/predicates.md (label_ref_operand): New.
10591         (rx_z_comparison_operator): New.
10592         (rx_zs_comparison_operator): New.
10593         (rx_fp_comparison_operator): New.
10594         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10595         Validate that the flags are set properly for the comparison.
10596         (rx_gen_cond_branch_template): Remove.
10597         (rx_cc_modes_compatible): Remove.
10598         (mode_from_flags): New.
10599         (flags_from_code): Rename from flags_needed_for_conditional.
10600         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10601         (rx_select_cc_mode): Likewise.
10602         (rx_split_fp_compare): New.
10603         (rx_split_cbranch): New.
10604         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10605         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10606         (*cbranchsf4): Similarly.
10607         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10608         match_operator and rx_split_cbranch.
10609         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10610         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10611         (*cmpsi): Rename from cmpsi.
10612         (*tstsi): Rename from tstsi.
10613         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10614         (*conditional_branch): Rename from conditional_branch.
10615         (*reveresed_conditional_branch): Remove.
10616         (b<code>): Remove expander.
10617         * config/rx/rx-protos.h: Update.
10619         * config/rx/rx.c (rx_compare_redundant): Remove.
10620         * config/rx/rx.md (cmpsi): Don't use it.
10621         * config/rx/rx-protos.h: Update.
10623         * config/rx/rx-modes.def (CC_F): New mode.
10624         * config/rx/rx.c (rx_select_cc_mode): New.
10625         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10626         * config/rx/rx-protos.h: Update.
10628 2011-01-17  Richard Henderson  <rth@redhat.com>
10630         * except.c (dump_eh_tree): Fix stray ; after for statement.
10632 2011-01-17  Richard Guenther  <rguenther@suse.de>
10634         PR tree-optimization/47313
10635         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10636         handling before copying the body.  Properly deal with
10637         by-reference result in SSA form.
10639 2011-01-17  Ian Lance Taylor  <iant@google.com>
10641         PR target/47219
10642         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10643         (struct_value_alias_set): Don't define.
10644         (sparc_option_override): Don't set sparc_sr_alias_set and
10645         struct_value_alias_set.
10646         (save_or_restore_regs): Use gen_frame_mem rather than calling
10647         set_mem_alias_set.
10648         (sparc_struct_value_rtx): Likewise.
10650 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10652         PR target/47318
10653         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10654         (_mm_maskstore_pd): Likewise.
10655         (_mm_maskload_ps): Likewise.
10656         (_mm_maskstore_ps): Likewise.
10657         (_mm256_maskload_pd): Change mask to __m256i.
10658         (_mm256_maskstore_pd): Likewise.
10659         (_mm256_maskload_ps): Likewise.
10660         (_mm256_maskstore_ps): Likewise.
10662         * config/i386/i386-builtin-types.def: Updated.
10663         (ix86_expand_special_args_builtin): Likewise.
10665         * config/i386/i386.c (bdesc_special_args): Update
10666         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10667         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10668         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10669         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10671         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10672         Use <avxpermvecmode> on mask register.
10673         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10675 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10676             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10677             Eric Botcazou  <ebotcazou@adacore.com>
10679         PR target/46655
10680         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10681         if <= USHRT_MAX in 32-bit mode.
10683 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10685         * doc/install.texi (Configuration, Specific): Wrap long
10686         lines in examples.  Allow line wrapping in long options
10687         and URLs where beneficial for PDF output.
10689 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10691         * config/mips/mips.c (mips_classify_symbol): Don't return
10692         SYMBOL_PC_RELATIVE for nonlocal labels.
10694 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10696         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10698 2011-01-15  Jan Hubicka  <jh@suse.cz>
10700         PR tree-optimization/47276
10701         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10702         declarations as needed.
10704 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10706         * common.opt (fdevirtualize): New flag.
10707         * doc/invoke.texi (Option Summary): Document it.
10708         * opts.c (default_options_table): Add devirtualize flag.
10709         * ipa-prop.c (detect_type_change): Return immediately if
10710         devirtualize flag is not set.
10711         (detect_type_change_ssa): Likewise.
10712         (compute_known_type_jump_func): Likewise.
10713         (ipa_analyze_virtual_call_uses): Likewise.
10715 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10717         PR tree-optimization/45934
10718         PR tree-optimization/46302
10719         * ipa-prop.c (type_change_info): New type.
10720         (stmt_may_be_vtbl_ptr_store): New function.
10721         (check_stmt_for_type_change): Likewise.
10722         (detect_type_change): Likewise.
10723         (detect_type_change_ssa): Likewise.
10724         (compute_complex_assign_jump_func): Check for dynamic type change.
10725         (compute_complex_ancestor_jump_func): Likewise.
10726         (compute_known_type_jump_func): Likewise.
10727         (compute_scalar_jump_functions): Likewise.
10728         (ipa_analyze_virtual_call_uses): Likewise.
10729         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10731 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10733         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10734         * config/i386/i386.opt (msse5): New Alias.
10736 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10738         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10739         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10740         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10741         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10743 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10745         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10746         -mcpu options.
10747         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10748         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10749         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10750         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10751         Likewise.
10752         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10754 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10756         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10758 2011-01-14  Mike Stump  <mikestump@comcast.net>
10760         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10761         * config/fr30/fr30.md: Likweise
10762         (movsi_push): Likewise.
10763         (movsi_pop): Likewise.
10764         (enter_func): Likewise.
10765         * config/moxie/moxie.md (movsi_push): Likewise.
10766         (movsi_pop): Likewise.
10768 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10770         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10771         %{no_archive} %{exact_version}.
10772         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10773         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10774         %{no_archive} %{exact_version}.
10775         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10776         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10777         * config/mips/vxworks.h: Likewise.
10779 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10781         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10783 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10785         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10786         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10788 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10790         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10791         -nodefaultlib.
10793 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10795         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10796         for mcpu not cpu.
10797         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10798         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10799         not cpu.
10800         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10801         Don't handle -shlib.
10803 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10805         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10806         (CC1_SPEC): Don't handle -profile.
10808 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10810         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10811         * config/mips/mips.h (CC1_SPEC): Likewise.
10813 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10815         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10816         * config/mips/mips.h (CC1_SPEC): Likewise.
10818 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10820         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10821         * config/m32r/linux.h (LINK_SPEC): Likewise.
10822         * config/mips/linux.h (LINK_SPEC): Likewise.
10823         * config/mips/linux64.h (LINK_SPEC): Likewise.
10824         * config/sparc/linux.h (LINK_SPEC): Likewise.
10825         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10826         LINK_SPEC): Likewise.
10827         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10829 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10831         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10832         %{version:-v}.
10833         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10835 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10837         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10838         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10840 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10842         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10844 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10846         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10847         supports -Bstatic/-Bdynamic.
10848         * configure: Regenerate.
10850 2011-01-14  Jan Hubicka  <jh@suse.cz>
10851             Jack Howarth  <howarth@bromo.med.uc.edu>
10853         PR target/46037
10854         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10855         when checking debug_info_level. Test write_symbols instead of
10856         debug_hooks->var_location when setting flag_var_tracking_uninit.
10858 2011-01-14  Richard Guenther  <rguenther@suse.de>
10860         PR tree-optimization/47179
10861         * target.def (ref_may_alias_errno): New target hook.
10862         * targhooks.h (default_ref_may_alias_errno): Declare.
10863         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10864         (default_ref_may_alias_errno): New function.
10865         * target.h (struct ao_ref_s): Declare.
10866         * tree-ssa-alias.c: Include target.h.
10867         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10868         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10869         (targhooks.o): Likewise.
10870         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10871         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10873 2011-01-14  Richard Guenther  <rguenther@suse.de>
10875         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10877 2011-01-14  Richard Guenther  <rguenther@suse.de>
10879         PR tree-optimization/47280
10880         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10881         return CFG changes.
10882         (tree_ssa_forward_propagate_single_use_vars): Deal with
10883         CFG changes from associate_plusminus.
10885 2011-01-14  Richard Guenther  <rguenther@suse.de>
10887         PR middle-end/47281
10888         Revert
10889         2011-01-11  Richard Guenther  <rguenther@suse.de>
10891         PR tree-optimization/46076
10892         * tree-ssa.c (useless_type_conversion_p): Conversions from
10893         unprototyped to empty argument list function types are useless.
10895 2011-01-14  Richard Guenther  <rguenther@suse.de>
10897         PR tree-optimization/47286
10898         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10900 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10902         PR middle-end/46823
10903         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10905 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10907         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10908         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10909         * config/xtensa/xtensa.c (xtensa_libcall_value,
10910         xtensa_function_value_regno_p): New functions.
10911         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10913 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10915         PR c++/47213
10916         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10917         PE specific hook.
10918         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10919         New function prototype.
10920         * config/i386/winnt.c (i386_pe_assemble_visibility):
10921         Warn only if attribute was specified by user.
10923 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10925         PR target/47251
10926         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10927         floating point.
10928         (floatunsdidf2_fcfidu): Ditto.
10930 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10932         * config/s390/s390.c (print_operand_address): Replace 'error' with
10933         'output_operand_lossage'.
10934         (print_operand): Likewise.
10936 2011-01-13  Jeff Law  <law@redhat.com>
10938         PR rtl-optimization/39077
10939         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10940         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10941         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10942         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10943         * gcse.c (prune_insertions_deletions): New function.
10944         (compute_pre_data): Use it.
10946 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10948         PR debug/PR46973
10949         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10950         static function.
10951         (prune_unused_types_mark): Use it.
10953 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10955         PR rtl-optimization/45352
10956         * sel-sched.c: Update copyright years.
10957         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10958         in the advancing loop when we have issued issue_rate insns.
10960 2011-01-12  Richard Henderson  <rth@redhat.com>
10962         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10963         (TARGET_MD_ASM_CLOBBERS): New.
10965         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10966         (TARGET_DELEGITIMIZE_ADDRESS): New.
10968         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10969         (clzsi2, *bsch): New patterns.
10971         * config/mn10300/mn10300.md (INT): New mode iterator.
10972         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10974         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10975         flag_split_wide_types.
10977         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10978         (mn10300_trampoline_init): Rewrite without a template, an immediate
10979         load and a direct branch.
10980         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10982 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10984         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10985         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10986         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10987         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10989 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10991         PR debug/47209
10992         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10993         of type.
10995 2011-01-12  Jan Hubicka  <jh@suse.cz>
10997         PR driver/47244
10998         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10999         (PLUGIN_COND_CLOSE): New macro.
11000         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11002 2011-01-12  Richard Guenther  <rguenther@suse.de>
11004         PR lto/47259
11005         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11006         register variables in a MEM_REF.
11008 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11010         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11011         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11012         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11013         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11014         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11015         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11016         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11017         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11018         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11019         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11020         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11021         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11022         * config/gnu-user.h: New.  Copied from linux.h.
11023         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11024         GNU_USER_TARGET_STARTFILE_SPEC.
11025         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11026         GNU_USER_TARGET_ENDFILE_SPEC.
11027         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11028         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11029         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11030         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11031         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11032         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11033         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11034         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11035         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11036         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11037         * config/arm/linux-eabi.h (CC1_SPEC): Use
11038         GNU_USER_TARGET_CC1_SPEC.
11039         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11040         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11041         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11042         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11043         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11044         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11045         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11046         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11048 2011-01-12  Richard Guenther  <rguenther@suse.de>
11050         PR other/46946
11051         * doc/invoke.texi (ffast-math): Document it is turned on
11052         with -Ofast.
11054 2011-01-12  Jan Hubicka  <jh@suse.cz>
11056         PR tree-optimization/47233
11057         * opts.c (common_handle_option): Disable ipa-reference with profile
11058         feedback.
11060 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11062         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11063         error message.
11065 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11067         * c-parser.c (c_lex_one_token): Updated and reindented some
11068         comments.  No changes in code.
11070 2011-01-11  Ian Lance Taylor  <iant@google.com>
11072         * godump.c (go_output_var): Don't output the variable if there is
11073         already a type with the same name.
11075 2011-01-11  Ian Lance Taylor  <iant@google.com>
11077         * godump.c (go_format_type): Don't generate float80.
11079 2011-01-11  Richard Henderson  <rth@redhat.com>
11081         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11082         declaration.  Rewrite for both speed and size.
11083         (mn10300_address_cost_1): Remove.
11084         (mn10300_register_move_cost): New.
11085         (mn10300_memory_move_cost): New.
11086         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11087         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11088         extensions, shifts, BSWAP, CLZ.
11089         (mn10300_wide_const_load_uses_clr): Remove.
11090         (TARGET_REGISTER_MOVE_COST): New.
11091         (TARGET_MEMORY_MOVE_COST): New.
11092         * config/mn10300/mn10300-protos.h: Update.
11093         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11095         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11096         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11097         * config/mn10300/mn10300-protos.h: Update.
11098         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11099         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11100         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11101         (*test_int_bitfield, *test_byte_bitfield): Remove.
11102         (*bit_test, *subreg_bit_test): Remove.
11103         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11105         * config/mn10300/constraints.md ("c"): Rename from "A".
11106         ("A", "D"): New constraint letters.
11107         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11108         (fmssf4, fnmasf4, fnmssf4): Likewise.
11110         * config/mn10300/mn10300.md (isa): New attribute.
11111         (enabled): New attribute.
11113         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11114         (abssf2, negsf2): Define only for hardware fp.
11115         (sqrtsf2): Reformat.
11116         (addsf3, subsf3, mulsf3): Merge expander and insn.
11118         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11119         (DEBUGGER_AUTO_OFFSET): Remove.
11120         (DEBUGGER_ARG_OFFSET): Remove.
11122         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11123         Emit register stores with the same offsets as the hardware.
11124         (mn10300_store_multiple_operation): Don't check that the register
11125         save offsets are monotonic.
11126         * config/mn10300/mn10300-protos.h: Update.
11128         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11130         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11131         in terms of the value on the stack, not the MDR register.
11133 2011-01-11  Jan Hubicka  <jh@suse.cz>
11135         PR lto/45721
11136         PR lto/45375
11137         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11138         (symbol_alias_set_destroy, symbol_alias_set_contains,
11139         propagate_aliases_backward): Declare.
11140         * lto-streamer-out.c (struct sets): New sturcture.
11141         (trivally_defined_alias): New function.
11142         (output_alias_pair_p): Rewrite.
11143         (output_unreferenced_globals): Fix output of alias pairs.
11144         (produce_symtab): Likewise.
11145         * ipa.c (function_and_variable_visibility): Set weak alias destination
11146         as needed in lto.
11147         * varasm.c (symbol_alias_set_t): Remove.
11148         (symbol_alias_set_destroy): Export.
11149         (propagate_aliases_forward, propagate_aliases_backward): New functions
11150         based on ...
11151         (compute_visible_aliases): ... this one; remove.
11152         (trivially_visible_alias): New
11153         (trivially_defined_alias): New.
11154         (remove_unreachable_alias_pairs): Rewrite.
11155         (finish_aliases_1): Reorganize code checking if alias is defined.
11156         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11157         in LTO mode.
11159 2011-01-11  Richard Guenther  <rguenther@suse.de>
11161         PR tree-optimization/46076
11162         * tree-ssa.c (useless_type_conversion_p): Conversions from
11163         unprototyped to empty argument list function types are useless.
11165 2011-01-11  Richard Guenther  <rguenther@suse.de>
11167         PR middle-end/45235
11168         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11169         volatile MEMs as MEM_READONLY_P.
11171 2011-01-11  Richard Guenther  <rguenther@suse.de>
11173         PR tree-optimization/47239
11174         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11176 2011-01-11  Jeff Law  <law@redhat.com>
11178         PR tree-optimization/47086
11179         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11180         IVs from statements that might throw.
11182 2011-01-10  Jan Hubicka  <jh@suse.cz>
11184         PR lto/45375
11185         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11187 2011-01-10  Jan Hubicka  <jh@suse.cz>
11189         PR lto/45375
11190         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11191         when correcting profile.
11193 2011-01-10  Jan Hubicka  <jh@suse.cz>
11195         PR lto/46083
11196         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11197         DECL_FINI_PRIORITY.
11198         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11199         Restore DECL_FINI_PRIORITY.
11201 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11203         * doc/gimple.texi: Fix quoting of multi-word return values in
11204         @deftypefn statements.  Ensure presence of return value.  Wrap
11205         overlong @deftypefn lines.
11206         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11207         descriptions of removed functions.
11208         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11209         of multi-word return value in @deftypefn statement.
11211 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11213         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11214         (Conditional Expressions, Logical Operators)
11215         (Statement and operand traversals): Do not indent smallexample
11216         code.  Fix duplicate function argument in example.
11218 2011-01-10  Jeff Law  <law@redhat.com>
11220         PR tree-optimization/47141
11221         * ipa-split.c (split_function): Handle case where we are
11222         returning a value and the return block has a virtual operand phi.
11224 2011-01-10  Jan Hubicka  <jh@suse.cz>
11226         PR tree-optimization/47234
11227         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11228         (pass_feedback_split_functions): Declare.
11229         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11230         tree-profile.
11231         * ipa-split.c (gate_split_functions): Update comments; disable
11232         split-functions for profile_arc_flag and branch_probabilities.
11233         (gate_feedback_split_functions): New function.
11234         (execute_feedback_split_functions): New function.
11235         (pass_feedback_split_functions): New global var.
11237 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11239         PR lto/46760
11240         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11241         calling gimple_call_set_cannot_inline.
11243 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11245         * config/darwin-sections.def: Remove unused section.
11247 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11249         PR c++/47218
11250         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11252 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11254         PR objc/47232
11255         * c-parser.c (c_parser_declaration_or_fndef): Improved
11256         error message.
11258 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11260         * config/i386/winnt.c (i386_pe_start_function): Make sure
11261         to switch back to function's section.
11263 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11265         PR gcc/46902
11266         PR testsuite/46912
11267         * plugin.c: Move include of dlfcn.h from here...
11268         * system.h: ... to here.
11270 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11272         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11273         file name.
11274         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11275         two extra empty pages in PDF output.
11277 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11279         PR objc/47078
11280         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11281         for error recovery purposes behave as if it was not specified so
11282         that the default type is usd.
11284 2011-01-07  Jan Hubicka  <jh@suse.cz>
11286         PR tree-optmization/46469
11287         * ipa.c (function_and_variable_visibility): Clear needed flags on
11288         nodes with external decls; handle weakrefs merging correctly.
11290 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11292         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11293         not false.
11295 2011-01-07  Jan Hubicka  <jh@suse.cz>
11297         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11298         and no longer claim that gold is required for linker plugin.
11299         * configure: Regenerate.
11300         * gcc.c (PLUGIN_COND): New macro.
11301         (LINK_COMMAND_SPEC): Use it.
11302         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11303         * config.in (HAVE_LTO_PLUGIN): New.
11304         * configure.ac (--with-lto-plugin): New parameter; autodetect
11305         HAVE_LTO_PLUGIN.
11307 2011-01-07  Jan Hubicka  <jh@suse.cz>
11309         PR tree-optimization/46367
11310         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11311         when we can update original.
11312         (cgraph_mark_inline_edge): Sanity check.
11313         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11315 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11317         * config/spu/spu.h (ASM_COMMENT_START): Define.
11319 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11321         PR driver/42445
11322         * gcc.c (%>S): New.
11323         (SWITCH_KEEP_FOR_GCC): Likewise.
11324         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11325         (do_spec_1): Handle "%>".
11327         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11329 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11331         PR target/47201
11332         * config/i386/i386.c (ix86_delegitimize_address): If
11333         simplify_gen_subreg fails, return orig_x.
11335         PR bootstrap/47187
11336         * value-prof.c (gimple_stringop_fixed_value): Handle
11337         lhs of the call properly.
11339 2011-01-07  Jan Hubicka  <jh@suse.cz>
11341         PR lto/45375
11342         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11344 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11346         * target.def (function_switched_text_sections): New hook.
11347         * doc/tm.texi: Regenerated.
11348         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11349         * final.c (default_function_switched_text_sections): New.
11350         (final_scan_insn): Call function_switched_text_sections when a
11351         mid-function section change occurs.
11352         * output.h (default_function_switched_text_sections): Declare.
11353         * config/darwin-protos.h (darwin_function_switched_text_sections):
11354         Likewise.
11355         * config/darwin.c (darwin_function_switched_text_sections): New.
11356         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11358 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11360         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11361         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11362         the secondary code fragment when outputting for DWARF == 2.
11364 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11366         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11367         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11368         Remove.
11369         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11370         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11372 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11374         PR debug/46704
11375         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11376         when it is not empty.
11378 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11380         Bobcat Enablement
11381         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11382         (case ${target}): Add btver1.
11383         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11384         -march=native recognize btver1 processors.
11385         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11386         btver1 def_and_undef
11387         * config/i386/i386.c (struct processor_costs btver1_cost): New
11388         btver1 cost table.
11389         (m_BTVER1): New definition.
11390         (m_AMD_MULTIPLE): Includes m_BTVER1.
11391         (initial_ix86_tune_features): Add btver1 tune.
11392         (processor_target_table): Add btver1 entry.
11393         (static const char *const cpu_names): Add btver1 entry.
11394         (software_prefetching_beneficial_p): Add btver1.
11395         (ix86_option_override_internal): Add btver1 instruction sets.
11396         (ix86_issue_rate): Add btver1.
11397         (ix86_adjust_cost): Add btver1.
11398         * config/i386/i386.h (TARGET_BTVER1): New definition.
11399         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11400         (enum processor_type): Add PROCESSOR_BTVER1.
11401         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11403 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11405         PR target/43309
11406         * config/i386/i386.c (legitimize_tls_address)
11407         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11408         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11409         (tls_initial_exec_64_sun): New pattern.
11411 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11413         * doc/invoke.texi (Overall Options): Improve wording and markup
11414         of the description of -wrapper.
11416 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11418         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11419         rdynamic, threads): New Driver options.
11421 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11423         PR target/38118
11424         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11425         if coming from .tdata.
11426         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11428 2011-01-06  Jan Hubicka  <jh@suse.cz>
11430         PR lto/47188
11431         * collect2.c (main): Do not enable LTOmode when plugin is active.
11433 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11435         PR other/45915
11436         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11437         --version output if supported.
11438         * configure: Regenerate.
11440 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11442         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11443         Driver options.
11445 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11447         PR c/47150
11448         * c-convert.c (convert): When converting a complex expression
11449         other than COMPLEX_EXPR to a different complex type, ensure
11450         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11451         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11452         when converting COMPLEX_TYPE.
11454 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11456         PR tree-optimization/47139
11457         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11458         only the last reduction value is used outside the loop.  Update
11459         documentation.
11461 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11463         * config/rtems.opt: New.
11464         * config.gcc (*-*-rtems*): Use rtems.opt.
11466 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11468         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11469         processors do not support 3DNow instructions.
11471 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11473         * config/spu/spu.c (spu_option_override): Set parameter
11474         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11476 2011-01-05  Jan Hubicka  <jh@suse.cz>
11478         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11479         at the command line.
11481 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11483         PR lto/47162
11484         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11485         deltas on streamed outgoing edges.
11486         (output_node_opt_summary): Output info for outgoing edges only when
11487         the node is in new parameter set.
11488         (output_cgraph_opt_summary): New parameter set, passed to the two
11489         aforementioned functions.  Update its forward declaration and its
11490         callee too.
11492 2011-01-05  Tom Tromey  <tromey@redhat.com>
11494         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11495         operator to c_finish_omp_atomic.
11496         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11497         (build_unary_op): Update.
11498         (build_modify_expr): Update.
11499         (build_asm_expr): Update.
11501 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11503         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11504         newly inserted insns.
11505         (pad_bb): Likewise.
11506         (spu_emit_branch_hint): Likewise.
11507         (insert_hbrp_for_ilb_runout): Likewise.
11508         (spu_machine_dependent_reorg): Call df_finish_pass after
11509         schedule_insns returns.
11511 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11513         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11515 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11517         PR tree-optimization/47005
11518         * tree-sra.c (struct access): Add 'non_addressable' bit.
11519         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11520         (decide_one_param_reduction): Return 0 if the parameter is passed by
11521         reference and one of the accesses in the group is non_addressable.
11523 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11525         PR tree-optimization/47056
11526         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11527         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11528         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11530 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11532         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11533         initializer.  Skip view conversions from aggregate types.
11535 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11537         PR bootstrap/47055
11538         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11540 2011-01-04  Philipp Thomas  <pth@suse.de>
11542         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11543         obvious typo.
11545 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11547         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11548         on empty epilogue sequences.
11550 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11552         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11553         non-static): New Driver options.
11555 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11557         PR driver/47137
11558         * gcc.c (default_compilers[]): Set combinable field to 0
11559         for all assembly languages.
11561 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11563         * config/mips/loongson3a.md: New file.
11564         * config/mips/mips.md: Include loongson3a.md.
11565         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11566         TUNE_LOONGSON_3A.
11568 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11570         PR middle-end/47017
11571         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11572         instead of convert_memory_address_addr_space on the base expression.
11574 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11576         * config/spu/spu.c (spu_option_override): Update error text
11577         for bad -march= / -mtune= values.
11579 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11581         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11582         if branch-hint optimization will be performed.
11584 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11586         PR tree-optimization/47148
11587         * ipa-split.c (split_function): Convert arguments to
11588         DECL_ARG_TYPE if possible.
11590         PR tree-optimization/47155
11591         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11592         when computing uns.
11594         PR rtl-optimization/47157
11595         * combine.c (try_combine): If undobuf.other_insn becomes
11596         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11597         and set *new_direct_jump_p too.
11599 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11601         PR tree-optimization/47021
11602         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11604 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11606         * gcc.c (process_command): Update copyright notice dates.
11607         * gcov.c (print_version): Likewise.
11608         * gcov-dump.c (print_version): Likewise.
11609         * mips-tfile.c (main): Likewise.
11610         * mips-tdump.c (main): Likewise.
11612 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11614         PR tree-optimization/46801
11615         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11616         aggregate fields start at byte boundary instead of the bit-field flag.
11618 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11620         PR driver/47137
11621         * gcc.c (main): Revert revision 168407.
11623 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11625         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11627 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11629         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11630         vector optab to expand vector/scalar shift, update gimple to vector.
11632 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11634         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11635         a thunk.
11637 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11639         PR tree-optimization/46984
11640         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11641         HOST_WIDE_INT.
11642         (cgraph_create_indirect_edge): Fixed line length.
11643         (cgraph_indirect_call_info): Declare.
11644         (cgraph_make_edge_direct) Update declaration.
11645         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11646         (cgraph_create_indirect_edge): Use it.
11647         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11648         callees.
11649         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11650         the new thunk_delta representation.
11651         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11652         HOST_WIDE_INT.
11653         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11654         (ipa_read_indirect_edge_info): Likewise.
11655         * lto-cgraph.c (output_edge_opt_summary): New function.
11656         (output_node_opt_summary): Call it on all outgoing edges.
11657         (input_edge_opt_summary): New function.
11658         (input_node_opt_summary): Call it on all outgoing edges.
11660 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11662         PR driver/47137
11663         * gcc.c (main): Don't check have_o when settting combine_inputs.
11665 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11667         * regrename.c: Add general comment describing the pass.
11668         (struct du_head): Remove 'length' field.
11669         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11670         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11671         Force renaming to the preferred class (if any) in the first pass and do
11672         not consider registers that belong to it in the second pass.
11673         (create_new_chain): Do not set 'length' field.
11674         (scan_rtx_reg): Likewise.
11676 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11678         PR tree-optimization/47140
11679         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11680         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11681         to bit_value_binop.
11683         PR rtl-optimization/47028
11684         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11685         parm_birth_insn instead of at the beginning of first bb.
11687 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11689         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11690         Remove the word "see" before "@pxref".
11691         * doc/rtl.texi: Remove the word "see" before "@pxref".
11693 2011-01-01  Jan Hubicka  <jh@suse.cz>
11695         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11696         memory.
11698 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11700         PR target/38662
11701         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11704 Copyright (C) 2011 Free Software Foundation, Inc.
11706 Copying and distribution of this file, with or without modification,
11707 are permitted in any medium without royalty provided the copyright
11708 notice and this notice are preserved.