Proper handling of -Werror=coverage-mismatch
[official-gcc.git] / gcc / ChangeLog
blobb334e323170380209a88aa5b8681630dd47b36e5
1 2011-04-22  Xinliang David Li  <davidxl@google.com>
3         * toplev.c (process_options): Enable -Werror=coverage-mismatch
4         by default when -Wno-error is not specified.
5         * opts-global.c (decode_options): Remove call to
6         control_warning_options.
8 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
10         PR tree-optimization/48717
11         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
12         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
14 2011-04-22  Uros Bizjak  <ubizjak@gmail.com>
16         PR target/48723
17         * config/i386/i386.c (ix86_expand_prologue): Update m->fs.sp_offset
18         after the call to ix86_adjust_stack_and_probe.
20 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
22         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
23         definition where used.
25 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
27         PR c/48716
28         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
29         TREE_STATIC variables declared inside of some OpenMP construct.
31 2011-04-22  Martin Jambor  <mjambor@suse.cz>
33         PR middle-end/48585
34         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
36 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
38         PR c/36750
39         * c-typeck.c (pop_init_level): Do not warn about initializing
40         with ` = {0}'.
42 2011-04-22  Alan Modra  <amodra@gmail.com>
44         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
45         when returning call_cookie.
46         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
47         pointers, to functions with no more vector args than the current
48         function, and some non-local calls for ABI_V4.
49         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
50         sibcall_nonlocal_aix64): Combine to ..
51         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
52         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
53         (sibcall_value_nonlocal_aix<mode>): ..likewise.
54         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
55         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
56         operand.
57         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
58         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
59         sibcall_value_symbolic_64): Delete.
61 2011-04-21  Xinliang David Li  <davidxl@google.com>
63         * cgraph.h: Remove pid.
64         * cgraph.c: Remove pid.
65         * value-prof.c (init_node_map): New function.
66         (del_node_map): New function.
67         (find_func_by_funcdef_no): New function.
68         (gimple_ic_transform): Call new function.
69         * cgraphunit.c (cgraph_finalize_function): Remove pid.
70         * function.c (get_last_funcdef_no): New function.
71         * function.h (get_last_funcdef_no): New function.
72         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
73         to libgcov function.
74         (tree-profiling): Call node map init and delete function.
76 2011-04-21  Ian Lance Taylor  <iant@google.com>
78         * godump.c (go_format_type): Use exported Go name for anonymous
79         field name.
81 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
83         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
84         Call builtin_function_type_list instead of builtin_function_type.
85         (UNARY, BINARY, TRINARY, QUAD): Likewise.
87 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
89         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
90         build_function_type_list instead of build_function_type.
91         Delete variable `endlink'.
93 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
95         * config/s390/s390.c (s390_init_builtins): Call
96         build_function_type_list instead of build_function_type.
98 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
100         * config/ia64/ia64.c (ia64_init_builtins): Call
101         build_function_type_list instead of builtin_function_type.
103 2011-04-21  Easwaran Raman  <eraman@google.com>
105         * cfgexpand.c (stack_var): Remove OFFSET...
106         (add_stack_var): ...and its reference here...
107         (expand_stack_vars): ...and here.
108         (stack_var_cmp): Sort by descending order of size.
109         (partition_stack_vars): Change heuristic.
110         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
111         (dump_stack_var_partition): Add newline after each partition.
113 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
114             Jeff Law  <law@redhat.com>
116         * gengtype-state.c (read_a_state_token): Fix argument to
117         obstack_free.
118         * gengtype.c (matching_file_name_substitute): Likewise.
120 2011-04-21  Richard Guenther  <rguenther@suse.de>
122         PR lto/48703
123         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
125 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
127         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
129 2011-04-21  Richard Guenther  <rguenther@suse.de>
131         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
132         file name.
134 2011-04-21  Richard Guenther  <rguenther@suse.de>
136         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
137         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
138         Use DECL_P, not SSA_VAR_P.
139         (ptr_derefs_may_alias_p): Likewise.
140         (ptr_deref_may_alias_ref_p_1): Likewise.
141         (decl_refs_may_alias_p): Likewise.
142         (refs_may_alias_p_1): Likewise.
143         (ref_maybe_used_by_call_p_1): Likewise.
144         (call_may_clobber_ref_p_1): Likewise.
145         (indirect_ref_may_alias_decl_p): Assume indirect refrences
146         are either MEM_REF or TARGET_MEM_REF.
147         (indirect_refs_may_alias_p): Likewise.
148         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
149         for MEM_EXPR of indirect calls.
151 2011-04-21  Tristan Gingold  <gingold@adacore.com>
153         * vmsdbgout.c (write_srccorr): Compute file length from the string.
154         (dst_file_info_struct): Remove flen field.
155         (lookup_filename): Remove code that set flen field.
157 2011-04-21  Tristan Gingold  <gingold@adacore.com>
159         * config/ia64/ia64.c (ia64_start_function): Add a guard.
161 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
163         PR target/48708
164         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
165         vec_extract and vec_concat for non-SSE4_1 targets.
167 2011-04-21  Richard Guenther  <rguenther@suse.de>
169         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
170         return statements.
172 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
174         * config/i386/cygming.h (union tree_node, TREE): Don't define or
175         undefine.
176         (FILE): Don't undefine.
178 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
180         * config/alpha/alpha.c (struct machine_function): Use rtx, not
181         struct rtx_def *.
182         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
183         struct rtx_def *.
184         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
185         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
186         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
187         rtx_def *.
188         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
189         definitions where used.
190         * config/microblaze/microblaze.h (struct microblaze_args): Use
191         rtx, not struct rtx_def *.
192         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
193         rtx_def *.
194         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
195         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
196         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
197         not struct rtx_def *.
198         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
199         struct rtx_def *.
200         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
201         rtx_def *.
202         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
204 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
206         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
207         operand_equal_p to compare DR_BASE_ADDRESSes.
208         (vect_check_interleaving): Likewise.
210 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
212         PR target/46329
213         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
214         for all Neon struct constants.
216 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
218         * target.def (legitimate_constant_p): New hook.
219         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
220         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
221         * doc/tm.texi: Regenerate.
222         * hooks.h (hook_bool_mode_rtx_true): Declare.
223         * hooks.c (hook_bool_mode_rtx_true): Define.
224         * system.h (LEGITIMATE_CONSTANT_P): Poison.
225         * calls.c (precompute_register_parameters): Replace uses of
226         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
227         (emit_library_call_value_1): Likewise.
228         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
229         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
230         * ira-costs.c (scan_one_insn): Likewise.
231         * recog.c (general_operand, immediate_operand): Likewise.
232         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
233         * reload1.c (init_eliminable_invariants): Likewise.
235         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
236         mode argument.
237         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
238         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
239         argument.
240         (TARGET_LEGITIMATE_CONSTANT_P): Define.
241         * config/alpha/predicates.md (input_operand): Update call to
242         alpha_legitimate_constant_p.
244         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
245         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
246         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
247         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
248         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
249         (arm_legitimate_constant_p): New functions.
250         (arm_cannot_force_const_mem): Make static.
252         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
254         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
255         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
256         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
257         instead of bfin_legitimate_constant_p.
258         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
259         (TARGET_LEGITIMATE_CONSTANT_P): Define.
261         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
263         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
265         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
266         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
267         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
268         (frv_legitimate_constant_p): Make static.  Add a mode argument.
270         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
271         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
272         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
274         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
275         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
276         * config/i386/i386.c (legitimate_constant_p): Rename to...
277         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
278         argument.
279         (ix86_cannot_force_const_mem): Update accordingly.
280         (ix86_legitimate_address_p): Likewise.
281         (TARGET_LEGITIMATE_CONSTANT_P): Define.
282         * config/i386/i386.md: Update commentary.
284         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
285         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
286         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
287         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
289         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
291         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
292         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
293         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
294         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
296         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
297         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
298         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
300         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
301         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
302         (m32r_legitimate_constant_p): New function.
304         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
305         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
306         LEGITIMATE_CONSTANT_P.
307         (LEGITIMATE_CONSTANT_P): Delete.
308         * config/m68k/m68k.c (m68k_expand_prologue): Call
309         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
310         (m68k_legitimate_constant_p): New function.
311         * config/m68k/m68k.md: Update comments.
313         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
314         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
315         (mcore_legitimate_constant_p): New function.
317         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
318         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
319         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
320         Add a mode argument.
321         (mep_legitimate_address): Update accordingly.
322         (TARGET_LEGITIMATE_CONSTANT_P): Define.
324         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
325         Delete.
326         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
327         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
328         static.  Check OP's mode for VOIDmode.
329         (microblaze_legitimate_constant_p): New function.
330         (TARGET_LEGITIMATE_CONSTANT_P): Define.
332         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
333         * config/mips/mips.c (mips_legitimate_constant_p): New function.
334         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
335         (TARGET_LEGITIMATE_CONSTANT_P): Define.
336         * config/mips/predicates.md: Update comments.
338         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
339         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
340         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
341         (mmix_legitimate_constant_p): Make static, return a bool, and take
342         a mode argument.
343         (mmix_print_operand_address): Update accordingly.
345         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
346         Delete.
347         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
348         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
349         static.  Add a mode argument.
350         (TARGET_LEGITIMATE_CONSTANT_P): Define.
352         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
354         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
355         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
356         (pa_legitimate_constant_p): New function.
358         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
360         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
361         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
362         (pdp11_legitimate_constant_p): New function.
364         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
365         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
366         (rs6000_legitimate_constant_p): New function.
368         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
369         (rx_legitimate_constant_p): ...this.
370         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
371         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
372         (rx_legitimate_constant_p): ...this.
373         (TARGET_LEGITIMATE_CONSTANT_P): Define.
374         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
376         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
377         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
378         * config/s390/s390.c (legitimate_constant_p): Rename to...
379         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
380         and add a mode argument.
381         (TARGET_LEGITIMATE_CONSTANT_P): Define.
383         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
385         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
386         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
387         (sh_legitimate_constant_p): New function.
389         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
390         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
391         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
392         (legitimate_constant_p): Rename to...
393         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
394         argument.
395         (constant_address_p): Update accordingly.
397         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
398         argument and return a bool.
399         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
400         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
401         (spu_legitimate_constant_p): Add a mode argument and return a bool.
402         (spu_rtx_costs): Update accordingly.
403         * config/spu/predicates.md (vec_imm_operand): Likewise.
405         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
407         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
408         * config/v850/v850.c (v850_legitimate_constant_p): New function.
409         (TARGET_LEGITIMATE_CONSTANT_P): Define.
411         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
412         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
413         * config/vax/vax.c (legitimate_constant_p): Likewise.
415         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
416         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
417         (xtensa_legitimate_constant_p): New function.
419 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
421         * target.def (cannot_force_const_mem): Add a mode argument.
422         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
423         * doc/tm.texi: Regenerate.
424         * hooks.h (hook_bool_mode_rtx_false): Declare.
425         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
426         (hook_bool_mode_const_rtx_true): Likewise.
427         (hook_bool_mode_rtx_false): New function.
428         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
429         to be non-VOID.  Update call to cannot_force_const_mem.
430         (find_reloads): Update accordingly.
431         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
432         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
433         argument.
434         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
435         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
436         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
437         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
438         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
439         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
440         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
441         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
442         (m68k_cannot_force_const_mem): ...this new function.
443         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
444         argument.
445         (mips_const_insns, mips_legitimize_const_move): Update calls.
446         (mips_secondary_reload_class): Likewise.
447         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
448         (pa_cannot_force_const_mem): ...this new function.
449         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
450         (rs6000_cannot_force_const_mem): ...this new function.
451         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
452         argument.
453         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
454         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
455         to...
456         (xtensa_cannot_force_const_mem): ...this new function.
458 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
460         * config/mips/mips.c (mips16_build_function_stub): Call
461         build_function_type_list instead of build_function_type.
462         (mips16_build_call_stub): Likewise.
464 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
466         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
467         instead of build_function_type.
469 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
471         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
472         instead of build_function_type.
474 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
476         PR target/48678
477         * config/i386/i386.md (insv): Change operand 0 constraint to
478         "register_operand".  Change operand 1 and 2 constraint to
479         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
480         * config/i386/sse.md (sse4_1_pinsrb): Export.
481         (sse2_pinsrw): Ditto.
482         (sse4_1_pinsrd): Ditto.
483         (sse4_1_pinsrq): Ditto.
484         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
485         * config/i386/i386.c (ix86_expand_pinsr): New.
487 2011-04-20  Easwaran Raman  <eraman@google.com>
489         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
490         containing union type only with -fstrict-aliasing.
492 2011-04-20  Jim Meyering  <meyering@redhat.com>
494         Remove useless if-before-free tests.
495         * calls.c (expand_call, save_area): Likewise.
496         * cfgcleanup.c (try_forward_edges): Likewise.
497         * collect2.c (collect_execute): Likewise.
498         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
499         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
500         * coverage.c (coverage_checksum_string): Likewise.
501         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
502         * cselib.c (cselib_init): Likewise.
503         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
504         (df_set_clean_cfg): Likewise.
505         * function.c (free_after_compilation): Likewise.
506         * gcc.c (do_spec_1, main): Likewise.
507         * gcov.c (create_file_names): Likewise.
508         * gensupport.c (identify_predicable_attribute): Likewise.
509         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
510         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
511         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
512         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
513         * ipa-pure-const.c (local_pure_const): Likewise.
514         * ipa-reference.c (propagate): Likewise.
515         * ira-costs.c (free_ira_costs): Likewise.
516         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
517         * matrix-reorg.c (mat_free): Likewise.
518         * prefix.c (get_key_value): Likewise.
519         * profile.c (compute_value_histograms): Likewise.
520         * reload1.c (free_reg_equiv): Likewise.
521         * sched-deps.c (free_deps): Likewise.
522         * sel-sched-ir.c (fence_clear): Likewise.
523         * sese.c (set_rename, if_region_set_false_region): Likewise.
524         * tree-data-ref.c (free_rdg): Likewise.
525         * tree-eh.c (lower_try_finally): Likewise.
526         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
527         * tree-ssa-live.c (delete_var_map): Likewise.
528         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
529         * tree-ssa-pre.c (phi_trans_add): Likewise.
531 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
533         PR tree-optimization/48611
534         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
535         beyond ERT_MUST_NOT_THROW region.
537 2011-04-20  Catherine Moore  <clm@codesourcery.com>
539         * config/mips/mips.opt (mfix-24k): New.
540         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
541         * config/mips/mips.md (length): Increase by 4 for stores if
542         fixing 24K errata.
543         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
544         all noreorder if fixing 24K errata.
545         * doc/invoke.texi: Document mfix-24k.
547 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
549         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
550         quad-word modes, reduce to 9-bit index range when above 1016 limit.
552 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
554         * config/arm/arm.c (arm_gen_constant): Move movw support ....
555         (const_ok_for_op): ... to here.
557 2011-04-20  Kai Tietz  <ktietz@redhat.com>
559         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
560         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
562 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
564         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
566 2011-04-20  Richard Guenther  <rguenther@suse.de>
568         PR tree-optimization/47892
569         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
570         are if-convertible.
572 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
574         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
576 2011-04-20  Tristan Gingold  <gingold@adacore.com>
578         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
580 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
582         PR target/18145
584         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
585         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
586         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
587         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
588         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
590         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
591         New prototype.
593         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
594         (avr_asm_named_section, avr_asm_output_aligned_common,
595         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
596         New functions to update...
597         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
598         (avr_asm_init_sections): Overwrite section callbacks for
599         data_section, bss_section.
600         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
601         from here to...
602         (avr_file_end): ...here.
604 2011-04-20  Richard Guenther  <rguenther@suse.de>
606         PR middle-end/48695
607         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
608         objects and types here.  Adjust for their offset before comparing.
610 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
612         * tree-vect-stmts.c (vectorizable_store): Only chain one related
613         statement per copy.
615 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
617         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
618         (GIMPLE_H): Include $(INTERNAL_FN_H).
619         (OBJS-common): Add internal-fn.o.
620         (internal-fn.o): New rule.
621         * internal-fn.def: New file.
622         * internal-fn.h: Likewise.
623         * internal-fn.c: Likewise.
624         * gimple.h: Include internal-fn.h.
625         (GF_CALL_INTERNAL): New gf_mask.
626         (gimple_statement_call): Put fntype into a union with a new
627         internal_fn field.
628         (gimple_build_call_internal): Declare.
629         (gimple_build_call_internal_vec): Likewise.
630         (gimple_call_same_target_p): Likewise.
631         (gimple_call_internal_p): New function.
632         (gimple_call_internal_fn): Likewise.
633         (gimple_call_fntype): Return null for internal calls.
634         (gimple_call_set_fntype): Assert that the function is not internal.
635         (gimple_call_set_fn): Likewise.
636         (gimple_call_set_fndecl): Likewise.
637         (gimple_call_set_internal_fn): New function.
638         (gimple_call_addr_fndecl): Handle null functions.
639         (gimple_call_return_type): Likewise null types.
640         * gimple.c (gimple_build_call_internal_1): New function.
641         (gimple_build_call_internal): Likewise.
642         (gimple_build_call_internal_vec): Likewise.
643         (gimple_call_same_target_p): Likewise.
644         (gimple_call_flags): Handle calls to internal functions.
645         (gimple_call_fnspec): New function.
646         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
647         (gimple_has_side_effects): Handle null functions.
648         (gimple_rhs_has_side_effects): Likewise.
649         (gimple_call_copy_skip_args): Handle calls to internal functions.
650         * cfgexpand.c (expand_call_stmt): Likewise.
651         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
652         * gimple-fold.c (gimple_fold_call): Handle null functions.
653         (gimple_fold_stmt_to_constant_1): Don't fold
654         calls to internal functions.
655         * gimple-low.c (gimple_check_call_args): Handle calls to internal
656         functions.
657         * gimple-pretty-print.c (dump_gimple_call): Likewise.
658         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
659         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
660         (do_warn_unused_result): Likewise.
661         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
662         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
663         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
664         the target of a call.
665         (initialize_hash_element): Update accordingly.
666         (hashable_expr_equal_p): Use gimple_call_same_target_p.
667         (iterative_hash_hashable_expr): Handle calls to internal functions.
668         (print_expr_hash_elt): Likewise.
669         * tree-ssa-pre.c (can_value_number_call): Likewise.
670         (eliminate): Handle null functions.
671         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
672         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
673         (find_func_aliases): Likewise.
674         * value-prof.c (gimple_ic_transform): Likewise.
675         (gimple_indirect_call_to_profile): Likewise.
676         * lto-streamer-in.c (input_gimple_stmt): Likewise.
677         * lto-streamer-out.c (output_gimple_stmt): Likewise.
679 2011-04-19  Jan Hubicka  <jh@suse.cz>
681         * ipa-inline-transform.c (save_inline_function_body): Add comments.
682         * ipa-inline.c (inline_small_functions): Compute summaries first,
683         populate heap later.
685 2011-04-19  Jan Hubicka  <jh@suse.cz>
687         * cgraph.h (save_inline_function_body): Remove.
688         * ipa-inline-transform.c: New file, broke out of...
689         * ipa-inline.c: ... this one; Update toplevel comment.
690         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
691         make global.
692         (update_noncloned_frequencies): Move to ipa-inline-transform.c
693         (cgraph_mark_inline_edge): Rename to inline_call; move to
694         ipa-inline-transform.c.
695         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
696         move to ipa-inline-transform.c
697         (recursive_inlining, inline_small_functions, flatten_function,
698         ipa_inline, inline_always_inline_functions,
699         early_inline_small_functions): Update.
700         (inline_transform): Move to ipa-inline-transform.c.
701         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
702         Declare.
703         * Makefile.in (ipa-inline-transform.o): New file.
704         * cgraphunit.c (save_inline_function_body): Move to
705         ipa-inline-transform.c
707 2011-04-19  DJ Delorie  <dj@redhat.com>
709         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
710         registers if we already know there aren't any.
711         (m32c_emit_epilogue): Don't emit a barrier here.
712         (m32c_emit_eh_epilogue): Likewise.
713         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
714         operands at expand time.
715         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
716         int" wchar type.
717         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
718         duplicates.  Provide aliases instead.
719         * config/m32c/prologue.md (eh_return): Emit a barrier here.
720         (eh_epilogue): Add a "(return)" here as a hint to other parts of
721         the compiler.
723 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
725         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
726         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
727         (general_or_i64_p, sparc_register_move_cost): New function.
729 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
731         * doc/install.texi (Configuration, --enable-threads): Remove mach.
732         Add lynx, mipssde.  Sort table.
734 2011-04-19  Xinliang David Li  <davidxl@google.com>
736         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
737         not negative.
739 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
741         PR target/48678
742         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
743         is a SUBREG with non-MODE_INT mode inside of it.
745 2011-04-19  Martin Jambor  <mjambor@suse.cz>
747         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
748         also according to actual contants.
749         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
750         (gimple_fold_call): Use it.
751         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
753 2011-04-19  Martin Jambor  <mjambor@suse.cz>
755         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
756         non-pointer assignments.
758 2011-04-19  Martin Jambor  <mjambor@suse.cz>
760         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
761         account anc_offset and otr_type from the indirect edge info.
762         * ipa-prop.c (get_ancestor_addr_info): New function.
763         (compute_complex_ancestor_jump_func): Assignment analysis moved to
764         get_ancestor_addr_info, call it.
765         (ipa_note_param_call): Do not initialize information about polymorphic
766         calls, return the indirect call graph edge.  Remove the last
767         parameter, adjust all callers.
768         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
769         parameters.  Initialize polymorphic information in the indirect edge.
771 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
773         PR lto/48148
774         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
775         the types if they have different enumeration identifiers.
777 2011-04-19  Jan Hubicka  <jh@suse.cz>
779         * cgraph.h (cgraph_optimize_for_size_p): Declare.
780         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
781         * predict.c (cgraph_optimize_for_size_p): Break out from ...
782         (optimize_function_for_size_p) ... here.
784 2011-04-19  Richard Guenther  <rguenther@suse.de>
786         PR lto/48207
787         * tree.c (free_lang_data): Do not reset the decl-assembler-name
788         langhook.
790 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
792         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
793         if DECL_NO_INLINE_WARNING_P is set on the function.
795 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
797         PR fortran/47976
798         * reload1.c (inc_for_reload): Return void. All callers changed.
799         (emit_input_reload_insns): Don't try to delete previous output
800         reloads to a register, or record spill_reg_store for autoincs.
802 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
804         * gengtype.h: Updated copyright year.
805         (struct input_file_st): Add inpisplugin field.
806         (type_fileloc): New function.
807         * gengtype.c
808         (write_typed_struct_alloc_def): Add gcc_assert.
809         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
810         (write_typed_alloc_defns): Don't output for plugin files.
811         (input_file_by_name): Clear inpisplugin field.
812         (main): Set inpisplugin field for plugin files.
814 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
816         * gengtype-state.c (string_eq): New.
817         (read_state): Use string_eq instead of strcmp when creating the
818         state_ident_tab.
820 2011-04-19  Wei Guozhi  <carrot@google.com>
822         PR target/47855
823         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
824         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
825         linkage.
826         * config/arm/constraints.md (Uu): New constraint.
827         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
829 2011-04-19  Tristan Gingold  <gingold@adacore.com>
831         * config.gcc (-*-*-*vms): Added.
832         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
833         definitions moved.
834         * config/vms/vms-ld.c: New file.
835         * config/vms/vms-ar.c: New file.
836         * config/vms/t-vmsnative: New file.
838 2011-04-18  Xinliang David Li  <davidxl@google.com>
840         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
842 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
844         PR middle-end/48661
845         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
846         if TREE_TYPE (v) is non-NULL.
848         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
849         gimple_get_virt_mehtod_for_binfo.
850         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
851         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
852         callers.
853         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
855 2011-04-18  Michael Matz  <matz@suse.de>
856             Steve Ellcey  <sje@cup.hp.com>
858         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
859         use its mode as source mode if it isn't VOIDmode.
861 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
863         * doc/passes.texi: Fill crossref nodes.
865 2011-04-18  Jim Meyering  <meyering@redhat.com>
867         Fix doubled-word typos in comments and strings
868         * config/alpha/vms-unwind.h: s/for for/for/
869         * config/arm/unwind-arm.h: Likewise.
870         * config/microblaze/microblaze.c: Likewise.
871         * config/sh/constraints.md: s/in in/in/
872         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
874 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
876         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
877         (AVX_FLOAT_MODE_P): Ditto.
878         (AVX128_VEC_FLOAT_MODE_P): Ditto.
879         (AVX256_VEC_FLOAT_MODE_P): Ditto.
880         (AVX_VEC_FLOAT_MODE_P): Ditto.
881         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
882         (UNSPEC_MASKSTORE): Ditto.
883         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
884         Merge from <sse>_movmsk<ssemodesuffix> and
885         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
886         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
887         iterator.
888         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
889         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
890         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
892 2011-04-18  Jan Hubicka  <jh@suse.cz>
894         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
896         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
897         (want_inline_function_called_once_p): Break out the logic from
898         ipa_inline.
899         (edge_badness): Ensure that profile is not misupdated.
900         (lookup_recursive_calls): Prioritize by call frequencies.
901         (inline_small_functions): Move program size estimates here;
902         actually process whole queue even when unit growth has been
903         met. (to properly compute inline_failed reasons and for the
904         case unit size decrease.) Revisit comments on recursive inlining.
905         (ipa_inline): Remove unit summary code; first inline hot calls
906         of functions called once, cold calls next.
907         (order, nnodes): Remove unused variables.
908         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
909         (GTFILES): Remove ipa-inline.c
910         * sel-sched.c (fill_insns): Silence uninitialized var warning.
912 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
914         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
916 2011-04-18  Jie Zhang  <jie@codesourcery.com>
917             Richard Earnshaw  <rearnsha@arm.com>
919         * arm.c (neon_builtin_type_bits): Remove.
920         (typedef enum neon_builtin_mode): New.
921         (T_MAX): Don't define.
922         (typedef enum neon_builtin_datum): Remove bits, codes[],
923         num_vars and base_fcode.  Add mode, code and fcode.
924         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
925         VAR10): Change accordingly.
926         (neon_builtin_data[]): Change accordingly
927         (arm_init_neon_builtins): Change accordingly.
928         (neon_builtin_compare): Remove.
929         (locate_neon_builtin_icode): Remove.
930         (arm_expand_neon_builtin): Change accordingly.
932         * arm.h (enum arm_builtins): Move to ...
933         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
935         * arm.c (arm_builtin_decl): Declare.
936         (TARGET_BUILTIN_DECL): Define.
937         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
938         (arm_builtin_decls[]): New.
939         (arm_init_neon_builtins): Store builtin declarations in
940         arm_builtin_decls[].
941         (arm_init_tls_builtins): Likewise.
942         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
943         (arm_builtin_decl): New.
945 2011-04-18  Richard Guenther  <rguenther@suse.de>
947         * tree.c (upper_bound_in_type): Build properly canonicalized
948         INTEGER_CSTs.
949         (lower_bound_in_type): Likewise.
951 2011-04-18  Richard Guenther  <rguenther@suse.de>
953         * gimple.h (gimple_call_addr_fndecl): New function.
954         (gimple_call_fndecl): Use it.
955         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
956         for direct calls.
957         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
958         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
960 2011-04-18  Richard Guenther  <rguenther@suse.de>
962         PR middle-end/48650
963         * tree.c (build_string): STRING_CST is now derived from tree_typed.
965 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
967         PR lto/48492
968         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
969         DECL_IN_CONSTANT_POOL without RTL.
971 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
972             Ira Rosen  <ira.rosen@linaro.org>
974         PR target/48252
975         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
976         to match neon_vzip/vuzp/vtrn_internal.
977         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
978         outputs explicitly dependent on both inputs.
979         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
981 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
983         PR tree-optimization/48616
984         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
985         whether the shift is by scalar or vector based on whether all SLP
986         scalar stmts have the same rhs.
988 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
990         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
991         memory operands.
993 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
995         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
996         registers.
998 2011-04-17  Jan Hubicka  <jh@suse.cz>
1000         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
1001         * cgrpahunit.c (cgraph_finalize_function): Do not set
1002         finalized_by_frontend.
1003         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1004         finalized_by_frontend.
1006 2011-04-17  Jan Hubicka  <jh@suse.cz>
1008         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
1009         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
1010         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
1011         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
1012         method.
1013         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
1014         gimple-fold.c
1015         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
1017 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
1019         PR lto/48538
1020         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
1021         is non-null before accessing it.
1022         (input_cgraph): Remove trailing spaces.
1024 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1026         * params.def (sms-min-sc): New param flag.
1027         * modulo-sched.c (sms_schedule): Use it.
1028         * doc/invoke.texi (sms-min-sc): Document it.
1030 2011-04-17  Jan Hubicka  <jh@suse.cz>
1032         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1033         present, also set gimple_call_set_cannot_inline.
1034         * ipa-inline.c: Update toplevel comment.
1035         (MAX_TIME): Remove.
1036         (cgraph_clone_inlined_nodes): Fix linebreaks.
1037         (cgraph_check_inline_limits): Restructure to ...
1038         (caller_growth_limits): ... this one; be more tolerant
1039         on growth in nested inline chains; add explanatory comment;
1040         fix stack accounting thinko introduced by previous patch.
1041         (cgraph_default_inline_p): Remove.
1042         (report_inline_failed_reason): New function.
1043         (can_inline_edge_p): New function.
1044         (can_early_inline_edge_p): New function.
1045         (leaf_node_p): Move upwards in file.
1046         (want_early_inline_function_p): New function.
1047         (want_inline_small_function_p): New function.
1048         (want_inline_self_recursive_call_p): New function.
1049         (cgraph_edge_badness): Rename to ...
1050         (edge_badness) ... this one; fix linebreaks.
1051         (update_edge_key): Update call of edge_baddness; add
1052         detailed dump about queue updates.
1053         (update_caller_keys): Use can_inline_edge_p and
1054         want_inline_small_function_p.
1055         (cgraph_decide_recursive_inlining): Rename to...
1056         (recursive_inlining): Use can_inline_edge_p and
1057         want_inline_self_recursive_call_p; simplify and remove no longer
1058         valid FIXME.
1059         (cgraph_set_inline_failed): Remove.
1060         (add_new_edges_to_heap): Use can_inline_edge_p and
1061         want_inline_small_function_p.
1062         (cgraph_decide_inlining_of_small_functions): Rename to ...
1063         (inline_small_functions): ... this one; cleanup; use
1064         can/want predicates; cleanup debug ouput; work edges till fibheap
1065         is exhausted and do not stop once unit growth is reached; remove
1066         later loop processing remaining edges.
1067         (cgraph_flatten): Rename to ...
1068         (flatten_function): ... this one; use can_inline_edge_p
1069         and can_early_inline_edge_p predicates.
1070         (cgraph_decide_inlining): Rename to ...
1071         (ipa_inline): ... this one; remove unreachable nodes before
1072         inlining functions called once; simplify the pass.
1073         (cgraph_perform_always_inlining): Rename to ...
1074         (inline_always_inline_functions): ... this one; use
1075         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1076         (cgraph_decide_inlining_incrementally): Rename to ...
1077         (early_inline_small_functions): ... this one; simplify
1078         using new predicates; cleanup; make dumps prettier.
1079         (cgraph_early_inlining): Rename to ...
1080         (early_inliner): newer inline regular functions into always-inlines;
1081         fix updating of call stmt summaries.
1082         (pass_early_inline): Update for new names.
1083         (inline_transform): Fix formating.
1084         (gate_cgraph_decide_inlining): Rename to ...
1085         (pass_ipa_inline): ... this one.
1086         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1087         * ipa-inline-analysis.c (dump_inline_summary): Update.
1088         (compute_inline_parameters): Do not compute disregard_inline_limits;
1089         look for mismatching arguments.
1090         (estimate_growth): Fix handlig of non-trivial self recursion.
1091         (inline_read_summary): Do not read info->disregard_inline_limits.
1092         (inline_write_summary): Do not write info->disregard_inline_limits.
1093         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1094         and move all checks into can_inline_edge_p predicate; re-enable code
1095         comparing optimization levels.
1096         (expand_call_inline): Do not test inline_forbidden_into_p.
1097         * Makefile.in (ipa-inline.o): Update arguments.
1099 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1101         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1103 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1105         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1107 2011-04-17  Michael Matz  <matz@suse.de>
1109         PR tree-optimization/48622
1110         PR lto/48645
1111         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1112         in same order as they're written.
1114 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1116         * config/pa/predicates.md: Reorganize and simplify predicates.
1117         Eliminate duplicate code checks.
1118         (arith_operand): Rename to arith14_operand
1119         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1120         * config/pa/pa.md: Use renamed operands.
1121         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1122         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1123         arith11_operand, adddi3_operand, indexed_memory_operand,
1124         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1125         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1126         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1127         move_dest_operand, move_src_operand, prefetch_cc_operand,
1128         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1129         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1130         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1131         div_operand, int5_operand, movb_comparison_operator,
1132         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1133         arith_double_operand, ireg_operand, lhs_lshift_operand,
1134         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1135         integer_store_memory_operand): Likewise.
1136         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1137         (integer_store_memory_operand, read_only_operand,
1138         function_label_operand, borx_reg_operand,
1139         non_hard_reg_operand): Likewise.
1140         (eq_neq_comparison_operator): Delete unused operator.
1141         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1142         function_label_operand.
1143         (emit_move_sequence): Likewise.
1145 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1147         * config/i386/sse.md (sseunpackmode): New mode attribute.
1148         (ssepackmode): Ditto.
1149         (vec_pack_trunc_<mode>): Macroize expander from
1150         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1151         (vec_unpacks_lo_<mode>): Macroize expander from
1152         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1153         (vec_unpacks_hi_<mode>): Macroize expander from
1154         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1155         (vec_unpacku_lo_<mode>): Macroize expander from
1156         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1157         (vec_unpacku_hi_<mode>): Macroize expander from
1158         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1159         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1160         ix86_expand_sse4_unpack.
1161         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1163 2011-04-16  Jan Hubicka  <jh@suse.cz>
1165         * cgraphbuild.c: Include ipa-inline.h.
1166         (reset_inline_failed): Use initialize_inline_failed.
1167         * cgraph.c: Include ipa-inline.h.
1168         (cgraph_create_node_1): Do not initialize estimated_growth.
1169         (initialize_inline_failed): More to ipa-inline-analysis.c
1170         (dump_cgraph_node): Do not dump inline flags.
1171         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1172         and disregard_inline_limits flags.
1173         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1174         time, size, estimated_growth.
1175         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1176         Update.
1177         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1178         DECL_DISREGARD_INLINE_LIMITS.
1179         (cgraph_analyze_function): Do not initialize
1180         node->local.disregard_inline_limits.
1181         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1182         inlinable, versionable and disregard_inline_limits.
1183         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1184         cgraph_check_inline_limits, cgraph_default_inline_p,
1185         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1186         add_new_edges_to_heap): Update.
1187         (cgraph_decide_inlining_of_small_function): Update; set
1188         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1189         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1190         cgraph_decide_inlining_incrementally): Update.
1191         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1192         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1193         time, size and estimated_growth parameters.
1194         (estimate_edge_growth): Update.
1195         (initialize_inline_failed): Declare.
1196         * ipa-split.c: Include ipa-inline.h
1197         (execute_split_functions): Update.
1198         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1199         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1200         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1201         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1202         estimated_growth to INT_MIN.
1203         (inline_node_duplication_hook): Likewise.
1204         (dump_inline_summary): Dump new fields.
1205         (compute_inline_parameters): Update.
1206         (estimate_edge_time, estimate_time_after_inlining,
1207         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1208         inline_write_summary):
1209         (initialize_inline_failed): Move here from cgraph.c.
1210         * tree-sra.c: Include ipa-inline.h.
1211         (ipa_sra_preliminary_function_checks): Update.
1212         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1213         ipa-inline.h.
1215 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1217         * config/i386/sse.md (V16): New mode iterator.
1218         (VI1, VI8): Ditto.
1219         (AVXMODEQI, AVXMODEDI): Remove.
1220         (sse2, sse3): New mode attribute.
1221         (mov<mode>): Use V16 mode iterator.
1222         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1223         (push<mode>1): Use V16 mode iterator.
1224         (movmisalign<mode>): Ditto.
1225         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1226         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1227         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1228         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1229         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1230         avx_movdqu<avxmodesuffix>.
1231         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1232         *avx_movdqu<avxmodesuffix>.
1233         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1234         avx_lddqu<avxmodesuffix>.
1235         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1236         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1237         avx_movnt<AVXMODEDI:mode>.
1238         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1239         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1241 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1243         PR target/48629
1244         * haifa-sched.c (prune_ready_list, schedule_block): Use
1245         sched_pressure_p rather than flag_sched_pressure.
1247 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1249         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1250         cgraph_get_node instead of cgraph_get_create_node.
1252 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1254         * cfgexpand.c (expand_debug_expr): Use
1255         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1257 2011-04-15  Michael Matz  <matz@suse.de>
1259         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1260         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1261         * function.c (gimplify_parameters): Ditto.
1262         * gimplify.c (gimplify_vla_decl): Ditto.
1264         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1265         (gimple_call_set_alloca_for_var): New inline function.
1266         (gimple_call_alloca_for_var_p): Ditto.
1267         * gimple.c (gimple_build_call_from_tree): Remember
1268         CALL_ALLOCA_FOR_VAR_P state.
1269         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1271         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1272         calls if they were for VLA objects.
1274 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1276         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1277         of ADR_EXPRs.
1279 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1281         PR middle-end/48601
1282         * tree-emutls.c (lower_emutls_function_body): Call
1283         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1284         result is non-NULL.
1286 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1288         * c-decl.c (detect_field_duplicates): Call
1289         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1291 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1293         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1294         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1295         * ipa-pure-const.c (check_stmt): Call it.
1296         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1298 2011-04-15  Richard Guenther  <rguenther@suse.de>
1300         PR tree-optimization/48290
1301         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1302         Properly decide inhibiting propagation based on the valueized
1303         operand.  Do loop-closed SSA form preserving here ...
1304         (init_copy_prop): ... not here.
1306 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1308         PR target/48612
1309         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1310         (*ieee_smax<mode>3): Likewise.
1312 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1314         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1315         Replace match_operand with match_dup for the third operand in
1316         these expanders.
1318 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1320         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1321         to track processing of conditionals.  Update all callers.
1322         (try_combine, simplify_if_then_else): Update.
1324 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1326         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1327         -fsched-pressure.
1329 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1331         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1332         instead of match_operand for operand 3.
1334 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1336         * recog.h (insn_operand_data): Add an "allows_mem" field.
1337         * genoutput.c (output_operand_data): Initialize it.
1338         * optabs.c (maybe_legitimize_operand_same_code): New function.
1339         (maybe_legitimize_operand): Use it when matching the original
1340         op->value.
1342 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1344         * gimplify.c: Fix issues in comments throughout.
1345         (voidify_wrapper_expr): Fix long line.
1346         (build_stack_save_restore): Likewise.
1347         (gimplify_loop_expr): Likewise.
1348         (gimplify_compound_lval): Likewise.
1349         (gimplify_init_ctor_eval): Likewise.
1350         (gimplify_modify_expr_rhs): Likewise.
1351         (omp_notice_threadprivate_variable): Likewise.
1353 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1355         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1356         original one if this is not a builtin function.
1358 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1360         PR target/48605
1361         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1362         offset it as needed based on top 2 bits in operands[3], change
1363         MEM mode to SFmode and mask those 2 bits away from operands[3].
1365 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1367         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1368         change from objc_declare_protocols() to objc_declare_protocol().
1370 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1372         * config/i386/sse.md (sse4_1): New mode attribute.
1373         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1374         avx_blend<ssemodesuffix><avxmodesuffix> and
1375         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1376         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1377         avx_blendv<ssemodesuffix><avxmodesuffix> and
1378         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1379         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1380         avx_dp<ssemodesuffix><avxmodesuffix> and
1381         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1382         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1383         (sse4_1_packusdw): Merge with *avx_packusdw.
1384         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1385         (sse4_1_pblendw): Merge with *avx_pblendw.
1386         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1387         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1388         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1389         VF mode iterator.
1390         (sse4_1_round<ssescalarmodesuffix>): Merge with
1391         *avx_round<ssescalarmodesuffix>.
1392         (aesenc): Merge with *avx_aesenc.
1393         (aesenclast): Merge with *avx_aesenclast.
1394         (aesdec): Merge with *avx_aesdec.
1395         (aesdeclast): Merge with *avx_aesdeclast.
1396         (pclmulqdq): Merge with *pclmulqdq.
1397         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1398         New predicate.
1399         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1401 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1403         PR middle-end/48608
1404         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1405         (align_local_variable): This.  Update DECL_ALIGN.
1406         (add_stack_var): Updated.
1407         (expand_one_stack_var): Likewise.
1409 2011-04-14  Richard Guenther  <rguenther@suse.de>
1411         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1412         Remove.
1413         (dse_initialize_block_local_data, dse_leave_block,
1414         record_voperand_set, get_stmt_uid): Likewise.
1415         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1416         (dse_optimize_stmt): Remove voperand set handling code.
1417         Simplify and improve to handle any kind of killing stmt.
1418         (dse_record_phi): Remove.
1419         (dse_enter_block): Simplify.
1420         (tree_ssa_dse): Likewise.
1421         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1423 2011-04-14  Jan Hubicka  <jh@suse.cz>
1425         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1426         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1427         (cgraph_local_info): Remove inline_summary.
1428         * ipa-cp.c: Include ipa-inline.h.
1429         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1430         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1431         accesor.
1432         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1433         (input_overwrite_node): Do not set inline summary.
1434         (input_node): Do not stream inline summary.
1435         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1436         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1437         growth; we do not have inline parameters computed for that anyway.
1438         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1439         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1440         (inline_summary_t): New type and VECtor.
1441         (debug_inline_summary, dump_inline_summaries): Declare.
1442         (inline_summary): Use VOCtor.
1443         (estimate_edge_growth): Kill hack computing call stmt size directly.
1444         * lto-section-in.c (lto_section_name): Add inline section.
1445         * ipa-inline-analysis.c: Include lto-streamer.h
1446         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1447         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1448         (inline_summary_vec): Define.
1449         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1450         dump_inline_summaries): New functions.
1451         (estimate_function_body_sizes): Properly compute size/time of outgoing
1452         calls.
1453         (compute_inline_parameters): Alloc inline_summary; do not compute
1454         size/time of incomming calls.
1455         (estimate_edge_time): Avoid missing time summary hack.
1456         (inline_read_summary): Read inline summary info.
1457         (inline_write_summary): Write inline summary info.
1458         (inline_free_summary): Free all hooks and inline summary vector.
1459         * lto-streamer.h: Add LTO_section_inline_summary section.
1460         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1461         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1463 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1465         * tree-vectorizer.h (vect_strided_store_supported): Add a
1466         HOST_WIDE_INT argument.
1467         (vect_strided_load_supported): Likewise.
1468         (vect_permute_store_chain): Return void.
1469         (vect_transform_strided_load): Likewise.
1470         (vect_permute_load_chain): Delete.
1471         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1472         count argument.  Check that the count is a power of two.
1473         (vect_strided_load_supported): Likewise.
1474         (vect_permute_store_chain): Return void.  Update after above changes.
1475         Assert that the access is supported.
1476         (vect_permute_load_chain): Likewise.
1477         (vect_transform_strided_load): Return void.
1478         * tree-vect-stmts.c (vectorizable_store): Update calls after
1479         above interface changes.
1480         (vectorizable_load): Likewise.
1481         (vect_analyze_stmt): Don't check for strided powers of two here.
1483 2011-04-14  Richard Guenther  <rguenther@suse.de>
1485         PR tree-optimization/48590
1486         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1487         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1488         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1489         BUILT_IN_STACK_SAVE.
1490         * tree-ssa-dce.c (propagate_necessity): Handle
1491         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1493 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1495         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1496         objc_declare_class.
1498 2011-04-14  Richard Guenther  <rguenther@suse.de>
1500         * tree.h (get_object_alignment_1): Declare.
1501         * builtins.c (get_object_alignment_1): Split out worker from ...
1502         (get_object_alignment): ... here.
1503         * fold-const.c (get_pointer_modulus_and_residue): Use
1504         get_object_alignment_1.
1506 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1508         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1509         type parameter.
1510         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1511         parameter.  Generalise code to handle arrays as well as vectors.
1512         (vect_setup_realignment): Update accordingly.
1513         * tree-vect-stmts.c (vectorizable_store): Likewise.
1514         (vectorizable_load): Likewise.
1516 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1518         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1519         within the per-copy loop.
1521 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1523         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1524         in the dump file.
1526 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1528         * doc/options.texi (Negative): Explicitly mention that the
1529         Negative chain must be circular.
1531 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1533         * function.h (block_chainon): Declare.
1534         * function.c (block_chainon): Define.
1536 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1537             Eric Weddington  <eric.weddington@atmel.com>
1538             Georg-Johann Lay <avr@gjlay.de>
1540         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1541         New Includes
1542         (avr_init_builtins, avr_expand_builtin,
1543         avr_expand_delay_cycles, avr_expand_unop_builtin,
1544         avr_expand_binop_builtin ): New functions.
1545         (avr_builtin_id): New enum
1546         (struct avr_builtin_description): New struct
1547         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1548         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1550         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1551         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1552         UNSPECV_DELAY_CYCLES): new enumeration values
1553         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1554         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1555         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1556         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1557         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1558         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1559         "fmulsu"): New insns
1561         * config/avr/avr-c.c: fix line endings
1562         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1563         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1564         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1565         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1566         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1568         * doc/extend.texi (AVR Built-in Functions): New node
1569         (Target Builtins): Add documentation of AVR
1570         built-in functions.
1572 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1574         PR target/44643
1575         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1576         alone. Error if non-const data has attribute progmem.
1578 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1580         * tree.h (struct tree_constructor): Include tree_typed instead of
1581         tree_common.
1582         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1583         TS_TYPED instead of TS_COMMON.
1585 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1587         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1588         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1589         (sse2_psadbw): Merge with *avx_psadbw.
1590         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1591         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1592         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1593         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1594         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1595         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1596         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1597         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1598         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1599         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1600         (ssse3_palignrti): Merge with *avx_palignrti.
1602 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1604         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1605         * tree-ssanames.c (fini_ssanames): VEC_free it.
1606         (make_ssa_name_fn): Update for VECness of free_ssanames.
1607         (release_ssa_name, release_dead_ssa_names): Likewise.
1608         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1609         tree_common.
1610         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1611         TS_TYPED instead of TS_COMMON.
1613 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1615         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1616         statistics_counter_event.
1617         * tree-ssa-copyrename.c (stats): Define.
1618         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1619         statistics_counter_event.
1620         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1621         (bswap_stats, widen_mul_stats): Define.
1622         (insert_reciprocals): Increment rdivs_inserted.
1623         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1624         rfuncs_inserted.  Add calls to statistics_counter_event.
1625         (execute_cse_sincos_1): Increment inserted.
1626         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1627         statistics_counter_event.
1628         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1629         of bswap_stats.  Add calls to statistics_counter_event.
1630         (convert_mult_to_widen): Increment widen_mults_inserted.
1631         (convert_plusminus_to_widen): Increment maccs_inserted.
1632         (convert_mult_to_fma): Increment fmas_inserted.
1633         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1634         calls to statistics_counter_event.
1636 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1638         PR rtl-optimization/48455
1639         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1640         `temp_costs->mem_cost'.
1642 2011-04-13  Jan Hubicka  <jh@suse.cz>
1644         * ipa-inline.h: New file.
1645         * ipa-inline-analysis.c: New file. Broken out of ...
1646         * ipa-inline.c: ... this file; update toplevel comment;
1647         include ipa-inline.h
1648         (inline_summary): Move to ipa-inline.h
1649         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1650         ipa-inline-analysis.c.
1651         (cgraph_estimate_time_after_inlining): Rename to
1652         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1653         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1654         to estimate_edge_growth.
1655         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1656         rename to estimate_size_after_inlining.
1657         (cgraph_mark_inline_edge): Update for new naming convention.
1658         (cgraph_check_inline_limits): Likewise.
1659         (cgraph_edge_badness): Likewise.
1660         (cgraph_decide_recursive_inlining): Likewise.
1661         (cgraph_decide_inlining_of_small_functions): Likewise.
1662         (cgraph_decide_inlining_incrementally): Likewise.
1663         (cgraph_estimate_growth): Rename to estimate_growth; move to
1664         ipa-inline-analysis.c.
1665         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1666         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1667         (compute_inline_parameters): Likewise.
1668         (compute_inline_parameters_for_current): Likewise.
1669         (pass_inline_parameters): Likewise.
1670         (inline_indirect_intraprocedural_analysis): Likewise.
1671         (analyze_function): Rename to inline_analyze_function; likewise.
1672         (add_new_function): Move to ipa-inline-analysis.c.
1673         (inline_generate_summary): Likewise.
1674         (inline_read_summary): Likewise.
1675         (inline_write_summary): Likewise.
1676         * Makefile.in (ipa-inline-analysis.c): New file.
1678 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1680         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1681         * configure: Regenerate.
1683 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1685         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1686         instead of tree_common.
1687         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1688         Likewise.
1689         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1690         TS_TYPED rather than TS_COMMON.
1691         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1693 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1695         PR target/45263
1696         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1697         r20 around calls of __tablejump_elpm__
1699 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1701         PR middle-end/48591
1702         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1703         NULL.
1704         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1706 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1708         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1709         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1710         (cfi_vec): New typedef.
1711         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1712         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1713         (cie_cfi_vec): New static variable.
1714         (cie_cfi_head): Delete.
1715         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1716         declaration changed. Use vector rather than list operations.
1717         (new_cfi): Don't initialize the dw_cfi_next field.
1718         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1719         rather than list operations.
1720         (lookup_cfa): Use vector rather than list operations.
1721         (output_cfis): New argument upto. Accept a cfi_vec rather than
1722         a dw_cfi_ref list head as argument. All callers changed.
1723         Iterate over the vector using upto as a maximum index.
1724         (output_all_cfis): New static function.
1725         (output_fde): Use vector rather than list operations. Use the
1726         new upto argument for output_cfis rather than manipulating a
1727         list.
1728         (dwarf2out_begin_prologue): Change initializations to match
1729         new struct members.
1730         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1731         from the vector length rather than searching for the end of a list.
1732         Use output_all_cfis.
1733         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1735 2011-04-13  Nick Clifton  <nickc@redhat.com>
1737         * config/rx/rx.md (movmemsi): Do not use this pattern when
1738         volatile pointers are involved.
1740 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1742         * config/i386/sse.md (pinsrbits): Remove.
1743         (sse2_packsswb): Merge with *avx_packsswb.
1744         (sse2_packssdw): Merge with *avx_packssdw.
1745         (sse2_packuswb): Merge with *avx_packuswb.
1746         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1747         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1748         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1749         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1750         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1751         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1752         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1753         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1754         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1755         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1756         (sse2_loadld): Merge with *avx_loadld.
1757         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1758         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1759         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1760         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1761         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1763 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1765         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1766         calling TREE_CHAIN.
1767         * print-tree.c (print_node): Likewise.
1768         * tree-inline.c (copy_tree_r): Likewise.
1769         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1770         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1771         instead of TS_COMMON.
1772         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1773         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1774         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1775         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1776         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1777         ...and these...
1778         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1779         * tree.h: ...here.
1780         (TREE_CHAIN): Check for a TS_COMMON structure.
1781         (TREE_TYPE): Check for a TS_TYPED structure.
1783 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1785         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1786         cgraph_get_create_node instead of cgraph_node.
1788 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1790         * c-parser.c (c_parser_initelt): Updated call to
1791         objc_build_message_expr.
1792         (c_parser_postfix_expression): Likewise.
1794 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1796         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1797         MASK_MS_BITFIELD_LAYOUT bit.
1799 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1801         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1802         assert it is always true.
1803         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1804         moves.
1806 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1808         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1809         compiling Objective-C to be more efficient.
1811 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1813         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1814         argv_copied.
1816 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1818         * recog.h, genoutput.c, optabs.c: Revert last patch.
1820 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1822         PR target/48090
1823         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1825 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1827         * recog.h (insn_operand_data): Add an "allows_mem" field.
1828         * genoutput.c (output_operand_data): Initialize it.
1829         * optabs.c (maybe_legitimize_operand_same_code): New function.
1830         (maybe_legitimize_operand): Use it when matching the original
1831         op->value.
1833 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1835         * genpreds.c (process_define_predicate): Move most processing
1836         to gensupport.c.  Continue to validate the expression.
1837         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1838         (process_define_predicate): Move processing to gensupport.c.
1839         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1840         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1841         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1842         argument.
1843         (valid_predicate_name_p): New function, split out from old
1844         genpreds.c:process_define_predicate.
1845         (process_define_predicate): New function, combining code from
1846         old genpreds.c and genrecog.c functions.
1847         (process_rtx): Call it for DEFINE_PREDICATE and
1848         DEFINE_SPECIAL_PREDICATE.
1850 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1852         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1853         size of a '%A' memory reference.
1854         (T_DREG, T_QREG): New neon_builtin_type_bits.
1855         (arm_init_neon_builtins): Assert that the load and store operands
1856         are neon_struct_operands.
1857         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1858         (NEON_ARG_MEMORY): New builtin_arg.
1859         (neon_dereference_pointer): New function.
1860         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1861         Handle NEON_ARG_MEMORY.
1862         (arm_expand_neon_builtin): Update after above interface changes.
1863         Use NEON_ARG_MEMORY for loads and stores.
1864         * config/arm/predicates.md (neon_struct_operand): New predicate.
1865         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1866         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1867         (V_four_elem): Tweak formatting.
1868         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1869         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1870         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1871         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1872         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1873         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1874         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1875         Use %A in the output template.
1876         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1877         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1878         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1879         the width of the memory access.  Remove post-increment.
1880         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1882 2011-04-12  Nick Clifton  <nickc@redhat.com>
1884         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1885         instruction for interrupt handlers if the target is the basic V850
1886         architecture.
1887         (expand_epilogue): Likewise.
1889 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1891         PR rtl-optimization/48549
1892         * combine.c (propagate_for_debug): Also stop after BB_END of
1893         this_basic_block.  Process LAST and just stop processing after it.
1894         (combine_instructions): If last_combined_insn has been deleted,
1895         set last_combined_insn to its PREV_INSN.
1897 2011-04-12  Richard Guenther  <rguenther@suse.de>
1899         PR tree-optimization/46076
1900         * gimple.h (struct gimple_statement_call): Add fntype field.
1901         (gimple_call_fntype): Adjust.
1902         (gimple_call_set_fntype): New function.
1903         * gimple.c (gimple_build_call_1): Set the call function type.
1904         * gimplify.c (gimplify_call_expr): Preserve the function
1905         type the frontend used for the call.
1906         (gimplify_modify_expr): Likewise.
1907         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1908         function type.
1909         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1910         function type.
1911         * tree-ssa.c (useless_type_conversion_p): Function pointer
1912         conversions are useless.
1914 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1916         * cgraph.h (cgraph_node): Remove function declaration.
1917         (cgraph_create_node): Declare.
1918         (cgraph_get_create_node): Likewise.
1919         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1920         Updated all callers.
1921         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1922         the decl does not already exist.  Call cgraph_get_create_node instead
1923         of cgraph_node.
1924         (cgraph_get_create_node): New function.
1925         (cgraph_same_body_alias): Update comment.
1926         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1927         assert it does not return NULL.
1928         (cgraph_update_edges_for_call_stmt): Likewise.
1929         (cgraph_clone_edge): Likewise.
1930         (cgraph_create_virtual_clone): Likewise.
1931         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1932         instead of cgraph_node.
1933         (cgraph_add_new_function): Call cgraph_create_node or
1934         cgraph_get_create_node instead of cgraph_node.
1935         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1936         instead of cgraph_node.
1937         (record_eh_tables): Likewise.
1938         (mark_address): Likewise.
1939         (mark_load): Likewise.
1940         (build_cgraph_edges): Call cgraph_get_create_node instead
1941         of cgraph_node.
1942         (rebuild_cgraph_edges): Likewise.
1943         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1944         instead of cgraph_node.
1945         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1946         cgraph_node.
1947         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1948         cgraph_create_node instead of cgraph_node.
1949         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1950         of cgraph_node.
1951         * lto-cgraph.c (input_node): Likewise.
1952         * lto-streamer-in.c (input_function): Likewise.
1953         * varasm.c (mark_decl_referenced): Likewise.
1954         (assemble_alias): Likewise.
1956 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1958         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1959         instead of cgraph_node and assert it does not return NULL.
1960         * lto-streamer-in.c (lto_read_body): Likewise.
1961         * omp-low.c (new_omp_context): Likewise.
1962         (create_task_copyfn): Likewise.
1963         * tree-emutls.c (lower_emutls_function_body): Likewise.
1964         * matrix-reorg.c (transform_allocation_sites): Likewise.
1966 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1968         PR c/48552
1969         * c-typeck.c (build_asm_expr): Error out on attempts to use
1970         void type outputs or inputs for constraints that allow reg or
1971         don't allow memory.
1973 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1974             Richard Earnshaw  <rearnsha@arm.com>
1976         PR target/48250
1977         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1978         to use sign-magnitude offsets. Reject unsupported unaligned
1979         cases. Add detailed description in comments.
1980         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1981         condition from TARGET_32BIT to TARGET_ARM.
1983 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1985         * tree.h (struct typed_tree): New.
1986         (struct tree_common): Include it instead of tree_base.
1987         (TREE_TYPE): Update for new location of type field.
1988         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1989         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1990         (union tree_node): Add typed field.
1991         * treestruct.def (TS_TYPED): New.
1992         * lto-streamer.c (check_handled_ts_structures): Handle it.
1993         * tree.c (MARK_TS_TYPED): New macro.
1994         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1996 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1998         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1999         (force_nonfallthru): Do not alter the loop nest if no basic block
2000         was created.
2002 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2004         * config/i386/sse.md (VI): New mode iterator.
2005         (SSEMODEI): Remove.
2006         (AVX256MODEI): Ditto.
2007         (AVXMODEF4P): Ditto.
2008         (avxvecpsmode): Ditto.
2009         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
2010         (sse2_andnot<mode>3): New expander.
2011         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
2012         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
2013         (<any_logic:code><mode>3): Use VI mode iterator.
2014         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
2015         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
2016         (*andnottf3): Handle AVX three-operand constraints.
2017         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
2019 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2020             Robert Millan  <rmh@gnu.org>
2022         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
2023         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
2024         GNU_USER_DYNAMIC_LINKER64): Define.
2025         (REG_NAME): Don't undefine.
2026         (MD_UNWIND_SUPPORT): Undefine.
2027         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
2028         (REG_NAME): Don't undefine.
2029         (MD_UNWIND_SUPPORT): Undefine.
2030         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
2032 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2034         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2035         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2037 2011-04-11  Xinliang David Li  <davidxl@google.com>
2039         * value-profile.c (check_ic_target): New function.
2040         (gimple_ic_transform): Sanity check indirect call target.
2041         * gimple-low.c (gimple_check_call_args): Interface change.
2042         (gimple_check_call_matching_types): New function.
2043         * tree-inline.c (tree_can_inline_p): Call new function.
2045 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2047         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2048         tree-pretty-print.h & realmpfr.h.
2050 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2052         PR middle-end/48464
2053         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2054         (setup_allocno_and_important_classes): Ditto.
2056 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2058         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2059         GNU_USER_DYNAMIC_LINKER.
2060         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2061         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2062         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2063         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2064         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2065         GNU_USER_TARGET_OS_CPP_BUILTINS.
2066         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2067         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2068         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2069         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2070         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2071         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2072         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2073         GNU_USER_TARGET_OS_CPP_BUILTINS.
2074         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2075         GNU_USER_DYNAMIC_LINKER.
2076         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2077         GNU_USER_TARGET_OS_CPP_BUILTINS.
2078         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2079         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2080         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2081         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2082         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2083         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2084         GNU_USER_DYNAMIC_LINKER64): Remove.
2085         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2086         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2087         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2088         GNU_USER_DYNAMIC_LINKER.
2089         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2090         GNU_USER_TARGET_OS_CPP_BUILTINS.
2091         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2092         GNU_USER_TARGET_OS_CPP_BUILTINS.
2093         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2094         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2095         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2096         GNU_USER_TARGET_OS_CPP_BUILTINS.
2097         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2098         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2099         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2100         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2101         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2102         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2103         GNU_USER_DYNAMIC_LINKER.
2104         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2105         GNU_USER_TARGET_OS_CPP_BUILTINS.
2106         * config/m68k/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/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2111         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2112         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2113         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2114         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2115         GNU_USER_DYNAMIC_LINKER.
2116         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2117         GNU_USER_DYNAMIC_LINKERN32.
2118         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2119         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2120         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2121         GNU_USER_DYNAMIC_LINKER32.
2122         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2123         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2124         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2125         GNU_USER_DYNAMIC_LINKER.
2126         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2127         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2128         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2129         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2130         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2131         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2132         GNU_USER_DYNAMIC_LINKER32.
2133         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2134         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2135         GNU_USER_DYNAMIC_LINKER.
2136         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2137         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2138         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2139         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2140         GNU_USER_DYNAMIC_LINKER64.
2141         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2142         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2143         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2144         GNU_USER_DYNAMIC_LINKER.
2145         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2146         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2147         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2148         GNU_USER_DYNAMIC_LINKER.
2149         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2150         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2151         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2152         GNU_USER_DYNAMIC_LINKER32.
2153         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2154         GNU_USER_DYNAMIC_LINKER64.
2155         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2156         GNU_USER_DYNAMIC_LINKER64.
2157         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2158         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2159         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2160         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2161         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2163 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2165         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2166         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2167         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2168         GNU_USER_DYNAMIC_LINKER.
2169         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2170         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2171         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2172         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2173         GNU_USER_DYNAMIC_LINKER64.
2174         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2175         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2176         GNU_USER_LINK_EMULATION.
2177         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2178         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2179         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2180         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2181         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2182         CPP_SPEC, CC1_SPEC): Remove.
2183         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2184         (GNU_USER_DYNAMIC_LINKER): Define.
2185         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2186         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2187         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2188         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2189         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2190         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2191         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2192         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2193         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2194         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2195         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2196         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2197         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2198         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2199         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2200         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2201         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2202         GNU_USER_DYNAMIC_LINKER.
2203         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2204         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2205         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2206         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2207         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2208         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2209         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2210         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2211         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2212         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2214 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2216         PR target/9601
2217         PR target/11772
2218         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2219         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2220         comment.
2221         (ix86_is_msabi_thiscall): Removed.
2222         (ix86_is_type_thiscall): Likewise.
2223         (ix86_get_callcvt): New function.
2224         (ix86_comp_type_attributes): Simplify check.
2225         (ix86_function_regparm): Use ix86_get_callcvt for calling
2226         convention attribute checks.
2227         (ix86_return_pops_args): Likewise.
2228         (ix86_static_chain): Likewise.
2229         (x86_this_parameter): Likewise.
2230         (x86_output_mi_thunk): Likewise.
2231         (ix86_function_type_abi): Optimize check for types without attributes.
2232         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2233         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2234         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2235         by flag-values.
2236         (IX86_BASE_CALLCVT): Helper macro.
2237         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2238         Use ix86_get_callcvt for calling convention attribute checks and avoid
2239         symbol-decoration for stdcall in TARGET_RTD case.
2240         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2241         Likewise.
2242         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2243         for declaration.
2245 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2247         * config/i386/sse.md (VI_128): New mode iterator.
2248         (VI12_128): Rename from SSEMODE12.
2249         (VI14_128): Rename from SSEMODE14.
2250         (VI124_128): New mode iterator.
2251         (VI24_128): Rename from SSEMODE248.
2252         (VI248_128): Rename from SSEMODE248.
2253         (SSEMODE124C8): Remove.
2254         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2255         (*sse2_<plusminus_insn><mode>3): Merge with
2256         *avx_<plusminus_insn><mode>3.
2257         (*mulv8hi3): Merge with *avx_mulv8hi3.
2258         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2259         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2260         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2261         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2262         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2263         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2264         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2265         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2266         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2267         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2268         (*<smaxmin:code>v8hi3): Ditto.
2269         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2270         (*<smaxmin:code>v16qi3): Ditto.
2271         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2272         (*sse2_eq<mode>3): Ditto.
2273         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2274         (*sse2_gt<mode>3): Ditto.
2275         (vcondv2di): Split out of vcond<mode>.
2276         (vconduv2di): Split out of vcondu<mode>.
2278 2011-04-11  Richard Guenther  <rguenther@suse.de>
2280         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2281         before calling tree_low_cst.
2283 2011-04-11  Richard Guenther  <rguenther@suse.de>
2285         * stor-layout.c (layout_type): Compute all array index size operations
2286         in the original type.
2287         (initialize_sizetypes): Add comment.
2288         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2290 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2292         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2294 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2296         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2297         of cgraph_node, handle NULL return value.
2298         (cgraph_global_info): Likewise.
2299         (cgraph_rtl_info): Likewise.
2300         * tree-inline.c (estimate_num_insns): Likewise.
2301         * gimplify.c (unshare_body): Likewise.
2302         (unvisit_body): Likewise.
2303         (gimplify_body): Likewise.
2304         * predict.c (optimize_function_for_size_p): Likewise.
2305         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2306         (call_may_clobber_ref_p_1): Likewise.
2307         * varasm.c (function_section_1): Likewise.
2308         (assemble_start_function): Likewise.
2310 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2312         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2313         of cgraph_node.
2314         * final.c (rest_of_clean_state): Likewise.
2315         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2316         * passes.c (pass_init_dump_file): Likewise.
2317         (execute_all_ipa_transforms): Likewise.
2318         (function_called_by_processed_nodes_p): Likewise.
2319         * predict.c (maybe_hot_frequency_p): Likewise.
2320         (probably_never_executed_bb_p): Likewise.
2321         (compute_function_frequency): Likewise.
2322         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2323         (unnest_nesting_tree_1): Likewise.
2324         (lower_nested_functions): Likewise.
2325         * tree-optimize.c (execute_fixup_cfg): Likewise.
2326         (tree_rest_of_compilation): Likewise.
2327         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2328         * tree-sra.c (ipa_early_sra): Likewise.
2329         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2330         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2331         * ipa.c (record_cdtor_fn): Likewise.
2332         * ipa-inline.c (cgraph_early_inlining): Likewise.
2333         (compute_inline_parameters_for_current): Likewise.
2334         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2335         * ipa-pure-const.c (local_pure_const): Likewise.
2336         * ipa-split.c (split_function): Likewise.
2337         (execute_split_functions): Likewise.
2338         * cgraphbuild.c (build_cgraph_edges): Likewise.
2339         (rebuild_cgraph_edges): Likewise.
2340         (cgraph_rebuild_references): Likewise.
2341         (remove_cgraph_callee_edges): Likewise.
2342         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2343         (verify_cgraph_node): Likewise.
2344         (cgraph_analyze_functions): Likewise.
2345         (cgraph_preserve_function_body_p): Likewise.
2346         (save_inline_function_body): Likewise.
2347         (save_inline_function_body): Likewise.
2348         * tree-inline.c (copy_bb): Likewise.
2349         (optimize_inline_calls): Likewise.
2351 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2353         PR tree-optimization/48195
2354         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2355         ipa_check_create_edge_args.
2356         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2357         ipa_check_create_edge_args.
2358         * ipa-inline.c (inline_generate_summary): Do not call
2359         ipa_check_create_node_params and ipa_check_create_edge_args.
2360         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2361         ipa_check_create_edge_args.
2363 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2365         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2366         instead of loop.
2367         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2368         * function.c (record_hard_reg_sets): Likewise.
2369         * ira.c (compute_regs_asm_clobbered): Likewise.
2370         * sched-deps.c (sched_analyze_1): Likewise.
2371         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2373 2011-04-09  Xinliang David Li  <davidxl@google.com>
2375         PR tree-optimization/PR48484
2376         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2377         has_valid_pred lazily
2379 2011-04-09  Duncan Sands  <baldrick@free.fr>
2381         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2383 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2385         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2386         cost of I0 to zero at the end, if any.
2388 2011-04-08  Xinliang David Li  <davidxl@google.com>
2390         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2391         to insane profile data.
2393 2011-04-08  Xinliang David Li  <davidxl@google.com>
2395         * ipa-cp.c (ipcp_update_profiling): Correct
2396          negative scale factor due to insane profile data.
2398 2011-04-08  Xinliang David Li  <davidxl@google.com>
2400         * final.c (dump_basic_block_info): New function.
2401         (final): Dump basic block.
2402         (final_scan_insn): Remove old dump.
2404 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2406         PR target/47829
2407         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2408         crtbegin/crtend.
2410 2011-04-08  Michael Matz  <matz@suse.de>
2412         PR middle-end/48389
2413         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2414         functions.
2415         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2416         * rtl.h (rebuild_jump_labels_chain): Declare.
2417         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2418         insns inserted on edges.
2420 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2422         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2423         * config/arm/arm-arches.def: New.
2424         * config/arm/arm-opts.h: New.
2425         * config/arm/genopt.sh: New.
2426         * config/arm/arm-tables.opt: New (generated).
2427         * config/arm/arm.c (arm_handle_option, arm_target_help,
2428         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2429         (all_architectures): Get most table contents from arm-arches.def.
2430         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2431         arm_selected_tune here.
2432         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2433         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2434         (march=, mcpu=, mtune=): Use Enum and Var.
2435         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2436         (arm.o): Update dependencies.
2438 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2440         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2441         of header_file.
2442         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2443         (write_typed_alloc_defns): Likewise.
2444         (main): Calls write_typed_alloc_defns with output_header.
2446 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2448         PR inline-asm/48435
2449         * ira-color.c (setup_profitable_hard_regs): Add comments.
2450         Don't take prohibited hard regs into account.
2451         (setup_conflict_profitable_regs): Rename to
2452         get_conflict_profitable_regs.
2453         (check_hard_reg_p): Check prohibited hard regs.
2455 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2457         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2458         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2459         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2461 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2463         PR target/48366
2464         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2465         move from floating point to shift amount register.
2466         (emit_move_sequence): Remove secondary reload support for floating
2467         point to shift amount amount register copies.
2468         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2469         amount register copies.
2470         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2471         register, return false if mode isn't a scalar integer mode.
2472         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2474 2011-04-08  Richard Guenther  <rguenther@suse.de>
2476         * gimple.c (gimple_call_flags): Remove kludge.
2478 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2480         * sel-sched.c (sel_region_init): Move call to
2481         sel_setup_region_sched_flags after setup_current_loop_nest.
2483 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2485         PR rtl-optimization/48272
2486         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2487         init_insn_reg_pressure_info.  Adjust a caller.
2488         * sched-int.h (init_insn_reg_pressure_info): Declare.
2489         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2490         when sched-pressure is enabled.
2492 2011-04-08  Richard Guenther  <rguenther@suse.de>
2494         * gimple.c (gimple_set_modified): Do not queue calls to
2495         MODIFIED_NORETURN_CALLS here ...
2496         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2498 2011-04-08  Richard Guenther  <rguenther@suse.de>
2500         PR lto/48467
2501         * toplev.c (lang_dependent_init): Do not open asm_out_file
2502         in WPA mode, nor perform debug machinery initialization.
2503         (finalize): Do not unlink asm_out_file in WPA mode.
2505 2011-04-08  Richard Guenther  <rguenther@suse.de>
2507         * gimple.h (gimple_call_fntype): New function.
2508         (gimple_call_return_type): Use it.
2509         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2510         * gimple-low.c (gimple_check_call_args): Likewise.
2511         * gimple.c (gimple_call_flags): Likewise.
2512         (gimple_call_arg_flags): Likewise.
2513         (gimple_call_return_flags): Likewise.
2514         * tree-cfg.c (verify_gimple_call): Likewise.
2515         (do_warn_unused_result): Likewise.
2516         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2517         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2519 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2521         PR rtl-optimization/48235
2522         * sel-sched.c (code_motion_process_successors): Recompute the last
2523         insn in basic block if control flow changed.
2524         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2525         Update condition for ilist_remove.
2527 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2529         PR rtl-optimization/48302
2530         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2531         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2532         it to record added preheader blocks.
2533         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2534         on to sel_add_loop_preheaders.
2535         (sel_region_init): Move call to setup_current_loop_nest after
2536         sel_init_bbs.
2538 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2540         PR target/48273
2541         * cfgloop.h (loop_has_exit_edges): New helper.
2542         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2543         non-clonable.
2544         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2545         that have no exit edges.
2547 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2549         PR rtl-optimization/48442
2550         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2551         all callers.  Adjust assert.
2553 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2555         PR tree-optimization/48377
2556         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2557         is_packed to true even for types with smaller TYPE_ALIGN than
2558         TYPE_SIZE.
2560 2011-04-08  Richard Guenther  <rguenther@suse.de>
2562         PR bootstrap/48513
2563         * doc/tm.texi: Re-generate.
2565 2011-04-08  Wei Guozhi  <carrot@google.com>
2567         PR target/47855
2568         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2569         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2570         * config/arm/arm.md (*push_multi): Change the length computation to
2571         call a C function.
2573 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2575         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2576         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2577         * doc/tm.texi: Regenerate.
2578         * system.h (ASM_OUTPUT_BSS): Poison.
2579         * varasm.c (asm_output_bss): Remove function.
2580         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2582         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2583         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2584         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2585         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2586         Likewise.
2587         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2588         Likewise.
2589         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2590         Likewise.
2591         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2593 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2595         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2596         EnumValue lines.
2598 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2600         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2601         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2602         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2603         OPT_mcpu32.
2604         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2605         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2606         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2607         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2608         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2609         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2610         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2611         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2612         options.  Don't map other m68k options manually.  Don't handle
2613         old-style options as canonical.
2614         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2615         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2617 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2619         * basic-block.h (force_nonfallthru): Move to...
2620         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2621         (force_nonfallthru): ...here.
2622         * cfghooks.c (force_nonfallthru): New function.
2623         * cfgrtl.c (force_nonfallthru): Rename into...
2624         (rtl_force_nonfallthru): ...this.
2625         (commit_one_edge_insertion): Do not set AUX field.
2626         (commit_edge_insertions): Do not discover new basic blocks.
2627         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2628         (cfg_layout_rtl_cfg_hooks): Likewise.
2629         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2630         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2631         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2633 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2635         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2636         Remove macros.
2638 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2640         * config/i386/sse.md: Update copyright year.
2641         (avxcvtvecmode): Remove.
2642         (sse_movhlps): Merge with *avx_movhlps.
2643         (sse_movlhps): Merge with *avx_movlhps.
2644         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2645         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2646         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2647         (sse_loadhps): Merge with *avx_loadhps.
2648         (sse_storelps): Merge with *avx_storelps.
2649         (sse_loadlps): Merge with *avx_loadlps.
2650         (sse_movss): Merge with *avx_movss.
2651         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2652         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2653         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2654         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2655         (vec_set<mode>_0): Ditto.
2656         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2657         (sse4_1_insertps): Merge with *avx_insertps.
2658         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2659         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2660         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2661         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2662         (sse2_storehpd): Merge with *avx_storehpd.
2663         (sse2_loadhpd): Merge with *avx_loadhpd.
2664         (sse2_loadlpd): Merge with *avx_loadlpd.
2665         (sse2_movsd): Merge with *avx_movsd.
2666         (*vec_concatv2df): Merge with *vec_concatv2df.
2668 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2670         PR debug/48343
2671         * combine.c (combine_instructions): Add last_combined_insn,
2672         update it if insn is after it, pass it to all try_combine calls.
2673         (try_combine): Add last_combined_insn parameter, pass it instead of
2674         i3 to propagate_for_debug.
2676 2011-04-07  Nick Clifton  <nickc@redhat.com>
2678         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2679         to handle MDR <-> data register transfers.
2680         (movhi_internal): Likewise.
2682 2011-04-07  Alan Modra  <amodra@gmail.com>
2684         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2685         previous stack info.
2687 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2689         PR target/43920
2690         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2691         flow_find_cross_jump.  Swap variables to implement backward replacement.
2692         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2694 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2696         PR target/43920
2697         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2698         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2699         and bb2.
2700         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2701         src1 or src2.  Redirect edges to the last basic block.  Update
2702         frequency and count on multiple basic blocks in case of fallthru.
2704 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2706         PR target/43920
2707         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2708         function.
2709         (old_insns_match_p): Change return type.  Replace return false/true
2710         with return dir_none/dir_both.  Use can_replace_by.
2711         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2712         direction from dir_p.  Register replacement direction in dir, last_dir
2713         and afterlast_dir.  Handle new return type of old_insns_match_p using
2714         merge_dir.  Return replacement direction in dir_p.
2715         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2716         return type of old_insns_match_p.
2717         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2718         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2719         flow_find_cross_jump.
2720         * basic-block.h (enum replace_direction): New type.
2721         (flow_find_cross_jump): Add parameter to declaration.
2723 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2725         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2726         (AVXMODEDCVTPS2DQ): Ditto.
2727         (VEC_FLOAT_MODE): Ditto.
2728         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2729         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2730         (<any_logic:code><mode>3): Use VF mode iterator.
2731         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2732         Use VF mode iterator.
2733         (copysign<mode>3): Use VF mode iterator.
2734         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2735         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2736         (*<any_logic:code><MODEF:mode>3): Merge with
2737         *avx_<any_logic:code><MODEF:mode>3.
2738         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2739         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2740         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2741         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2742         (sse2_cvtdq2ps): Use %v modifier.
2743         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2744         (avx_cvtps2dq<avxmodesuffix>): Remove.
2745         (sse2_cvtps2dq): Use %v modifier.
2746         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2747         (avx_cvttps2dq<avxmodesuffix>): Remove.
2748         (sse2_cvttps2dq): Use %v modifier.
2749         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2750         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2751         (sse2_cvtsd2siq): Fix insn template.
2752         (sse2_cvtsd2siq_2): Ditto.
2753         (sse2_cvttsd2siq): Ditto.
2754         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2755         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2757 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2759         * gcov-io.c: Use GCC Runtime Library Exception.
2761 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2763         PR debug/48466
2764         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2765         as base_reg whatever register reg has been eliminated to, instead
2766         of hardcoding STACK_POINTER_REGNUM.
2768 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2770         * doc/tm.texi.in: Document C target hooks as separate from general
2771         target hooks.
2772         * doc/tm.texi: Regenerate.
2773         * genhooks.c (struct hook_desc): Add docname field.
2774         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2775         docname field.
2776         (hook_array): Include c-target.def.
2777         (emit_documentation): Use docname field in output.
2778         (emit_init_macros): Take docname argument.  Only emit definitions
2779         for hooks matching docname.
2780         (main): Expect additional arguments in all cases.  Pass argument
2781         to emit_init_macros.
2782         * target.def: Move initial macro definitions and comments to
2783         target-hooks-macros.h.
2784         (gcc_targetcm): Move to c-family/c-target.def.
2785         * target.h (targetcm): Move declaration to c-family/c-target.h.
2786         * targhooks.c (default_handle_c_option): Move to
2787         c-family/c-opts.c.
2788         * targhooks.h (default_handle_c_option): Move declaration to
2789         c-family/c-common.h.
2790         * target-hooks-macros.h: New file.
2791         * config.gcc (target_has_targetcm): Define and use to add to
2792         c_target_objs and cxx_target_objs.
2793         * config/default-c.c: New file.
2794         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2795         of target.h and target-def.h.
2796         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2797         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2798         darwin_check_cfstring_format_arg): Make static.
2799         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2800         TARGET_STRING_OBJECT_REF_TYPE_P,
2801         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2802         * config/darwin-protos.h (darwin_objc_construct_string,
2803         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2804         declare.
2805         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2806         TARGET_STRING_OBJECT_REF_TYPE_P,
2807         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2808         * config/t-darwin (darwin-c.o): Update dependencies.
2809         * system.h (TARGET_HAS_TARGETCM): Poison.
2810         * Makefile.in (TARGET_H): Update.
2811         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2812         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2813         (default-c.o): New target.
2814         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2815         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2816         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2817         c-target.def.
2818         (build/genhooks.o): Update dependencies.
2820 2011-04-06  Richard Guenther  <rguenther@suse.de>
2822         * ipa-inline.c (enum inlining_mode): Remove.
2823         (cgraph_flatten): Use some other token.
2824         (cgraph_edge_early_inlinable_p): New function, split out from ...
2825         (cgraph_perform_always_inlining): New function, split out from ...
2826         (cgraph_decide_inlining_incrementally): ... here.
2827         (cgraph_mark_inline_edge): Adjust.
2828         (cgraph_early_inlining): Re-structure.
2829         (pass_early_inline): Require SSA form.
2831 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2832             Julian Brown  <julian@codesourcery.com>
2833             Mark Shinwell  <shinwell@codesourcery.com>
2835         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2836         LO_REGS only for Thumb-1.
2837         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2838         be used in short instructions when optimising for size on Thumb-2.
2840 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2842         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2843         associated with user returns to be preserved.
2845 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2847         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2848         symbol_queue_size, DBXOUT_DECR_NESTING,
2849         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2850         if XCOFF_DEBUGGING_INFO.
2852 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2854         * config/i386/i386.md (attribute isa): New.
2855         (attribute enabled): New.
2856         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2857         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2858         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2859         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2860         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2861         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2862         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2863         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2865         * config/i386/sse.md (VF): New mode iterator.
2866         (VF1): Ditto.
2867         (VF2): Ditto.
2868         (VF_128): Ditto.
2869         (SSEMODEF4): Remove.
2870         (attribute sse): Handle V8SF and V4DF modes.
2871         (<absneg:code><mode>2): Use VF mode iterator.
2872         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2873         mode iterator.
2874         (<plusminus_insn><mode>3): Use VF mode iterator.
2875         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2876         Use VF mode iterator.
2877         (<sse>_vm<plusminus_insn><mode>3): Merge with
2878         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2879         (mul<mode>3): Use VF mode iterator.
2880         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2881         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2882         mode iterator.
2883         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2884         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2885         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2886         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2887         mode iterator.
2888         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2889         Use VF1 mode iterator.
2890         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2891         (sqrt<VF2:mode>2): New expander.
2892         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2893         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2894         and sqrtv2df2.  Use VF mode iterator.
2895         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2896         mode iterator.
2897         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2898         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2899         Use VF1 mode iterator.
2900         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2901         (<smaxmin:code><mode>3): Use VF mode iterator.
2902         (*<smaxmin:code><mode>3_finite): Merge with
2903         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2904         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2905         (<sse>_vm<smaxmin:code><mode>2): Merge with
2906         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2907         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2908         mode iterator.
2909         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2910         mode iterator.
2911         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2912         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2913         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2914         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2915         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2916         VF mode iterator.
2917         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2918         Use VF_128 mode iterator.
2919         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2920         mode iterator.
2921         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2922         VF_128 mode iterator.
2923         (vcond<mode>): Use VF mode iterator.
2924         * config/i386/predicates.md (sse_comparison_operator): Merge with
2925         avx_comparison_float_operator.  Do not declare as special_predicate.
2926         * config/i386/i386.c (struct builtin_description): Update for renamed
2927         compare patterns.
2928         (ix86_expand_args_builtin): Ditto.
2929         (ix86_expand_sse_compare_mask): Ditto.
2931 2011-04-06  Richard Guenther  <rguenther@suse.de>
2933         * tree-inline.c (estimate_num_insns): For calls simply account
2934         for all passed arguments and a used return value.
2936 2011-04-06  Richard Guenther  <rguenther@suse.de>
2938         PR tree-optimization/47663
2939         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2940         call_stmt_time fields.
2941         (cgraph_edge_inlinable_p): Declare.
2942         (cgraph_edge_recursive_p): New inline function.
2943         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2944         (cgraph_clone_edge): Copy it.
2945         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2946         Account for call stmt time.
2947         (cgraph_estimate_time_after_inlining): Take edge argument.
2948         (cgraph_estimate_edge_growth): Account call stmt size.
2949         (cgraph_estimate_size_after_inlining): Take edge argument.
2950         (cgraph_mark_inline_edge): Adjust.
2951         (cgraph_check_inline_limits): Likewise.
2952         (cgraph_recursive_inlining_p): Remove.
2953         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2954         (cgraph_decide_recursive_inlining): Take edge argument and
2955         adjust.
2956         (cgraph_decide_inlining_of_small_functions): Do not avoid
2957         diags for recursive inlining here.
2958         (cgraph_flatten): Adjust.
2959         (cgraph_decide_inlining_incrementally): Likewise.
2960         (estimate_function_body_sizes): Remove call cost handling.
2961         (compute_inline_parameters): Initialize caller edge call costs.
2962         (cgraph_estimate_edge_growth): New function.
2963         (cgraph_estimate_growth): Use it.
2964         (cgraph_edge_badness): Likewise.
2965         (cgraph_check_inline_limits): Take an edge argument.
2966         (cgraph_decide_inlining_of_small_functions): Adjust.
2967         (cgraph_decide_inlining): Likewise.
2968         * tree-inline.c (estimate_num_insns): Only account for call
2969         return value if it is used.
2970         (expand_call_inline): Avoid diagnostics on recursive inline
2971         functions here.
2972         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2973         (input_edge): Input edge call costs.
2975 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2977         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2979 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2981         * doc/invoke.texi (Spec Files): Fix typo.
2983 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2985         * profile.c (branch_prob): Move declaration of local variable.  Remove
2986         obsolete ??? comment.  Expand the location explicitly instead of using
2987         the LOCATION_FILE and LOCATION_LINE macros.
2989 2011-04-06  Wei Guozhi  <carrot@google.com>
2991         PR target/47855
2992         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2993         (arm_cond_branch): Likewise.
2994         (arm_cond_branch_reversed): Likewise.
2995         (arm_jump): Likewise.
2996         (push_multi): Likewise.
2997         * config/arm/constraints.md (Py): New constraint.
2999 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3001         PR bootstrap/48471
3002         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
3003         Move these...
3004         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
3005         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
3006         #ifdef DBX_DEBUGGING_INFO.
3008 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
3010         PR bootstrap/48403
3011         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
3012         if old and new states differ.
3014 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3016         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
3017         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
3018         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
3019         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
3020         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
3021         mcfv4e): Use Alias.
3022         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
3023         ColdFire options to -mcpu= options.
3025 2011-04-05  Jeff Law  <law@redhat.com>
3027         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
3028         check if BB is a successor of LOOP->header and return
3029         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
3031 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3033         * cprop.c (struct reg_use): Remove.
3034         (reg_use_table): Make an array of RTX.
3035         (find_used_regs, constprop_register, local_cprop_pass,
3036         bypass_block): Simplify users of reg_use_table.
3037         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
3038         on one of the uses found by find_used_regs.
3040 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3042         PR bootstrap/48469
3043         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3044         declaration.
3046 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3048         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3049         as an rtx.
3050         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3052 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3054         PR middle-end/48441
3055         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3057 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3059         * combine.c: Include obstack.h.
3060         (struct insn_link): Define.
3061         (uid_log_links): Adjust type.
3062         (FOR_EACH_LOG_LINK): New macro.
3063         (insn_link_obstack): Declare.
3064         (alloc_insn_link): Define.
3065         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3066         type of link variables.
3067         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3068         (try_combine, record_promoted_values, distribute_notes): Likewise.
3069         (distribute_links): Likewise.  Tweak prototype.
3070         (clear_log_links): Delete.
3071         (adjust_for_new_dest): Call alloc_insn_link.
3072         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3074 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3076         * gcse.c (modify_mem_list): Convert to an array of VECs.
3077         (canon_modify_mem_list, compute_transp): Tweak formatting.
3078         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3079         (load_killed_in_block_p): Likewise.
3080         (record_last_mem_set_info): Likewise.
3081         (clear_modify_mem_tables): Likewise.
3083 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3085         PR middle-end/48461
3086         * function.c (emit_use_return_register_into_block): Only define if
3087         HAVE_return.
3089 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3091         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3093 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3095         * config/rx/rx-opts.h: New.
3096         * config/rx/rx.c (rx_cpu_type): Remove.
3097         (rx_handle_option): Don't assert that global structures are in
3098         use.  Access variables via opts pointer.  Defer most handling of
3099         OPT_mint_register_.  Use error_at.
3100         (rx_option_override): Handle deferred OPT_mint_register_ here.
3101         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3102         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3103         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3104         (rx_cpu_types): New Enum and EnumValue entries.
3105         (mint-register=): Use Defer and use Var accordingly.
3107 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3109         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3110         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3111         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3112         Move these...
3113         (debug_free_queue, debug_nesting, symbol_queue_index):
3114         ...and these...
3115         * dbxout.c: ...to here.  Make static.
3117 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3119         * gcse.c (modify_pair): Define.  Define a VEC of it.
3120         (canon_modify_mem_list): Convert to an array of VECs.
3121         (free_insn_expr_list_list): Delete.
3122         (clear_modify_mem_tables): Call VEC_free instead.
3123         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3124         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3125         (canon_list_insert, compute_transp): Likewise.
3127 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3129         PR target/43920
3130         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3131         for size.
3133 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3135         PR target/43920
3136         * function.c (emit_use_return_register_into_block): New function.
3137         (thread_prologue_and_epilogue_insns): Use
3138         emit_use_return_register_into_block.
3140 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3142         PR target/43920
3143         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3144         insn.
3146 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3148         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3150 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3152         * config/arm/arm.md (define_constants for unspec): Replace with
3153         define_c_enum.
3154         (define_constants for unspecv): Replace with define_c_enum.
3155         * config/arm/neon.md (define_constants for unspec): Replace with
3156         define_c_enum.
3158 2011-04-04  Richard Henderson  <rth@redhat.com>
3160         PR bootstrap/48400
3161         * dwarf2out.c (output_line_info): Always emit line info from
3162         at least one section.
3163         (dwarf2out_init): Create text_section_line_info here ...
3164         (set_cur_line_info_table): ... not here.
3166 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3168         PR target/48380
3169         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3170         not called.
3172         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3174 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3176         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3177         (expr_equiv_p): Remove.
3178         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3179         (hash_scan_set): Update call to insert_set_in_table.
3180         (dump_hash_table): Dump <dest, src> pair.
3181         (lookup_set): Simplify.  Lookup <dest, src> pair.
3182         (compute_transp): Remove, fold heavily simplified code into...
3183         (compute_local_properties): ...here.  Expect COMP and TRANSP
3184         unconditionally.
3185         (find_avail_set): Take set directly from struct expr.
3186         (find_bypass-set): Likewise.
3187         (bypass_block): Likewise.
3188         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3190         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3191         checks on form of COND from find_implicit_sets to here.
3192         (find_implicit_sets): Cleanup control flow. Split critical edges
3193         if it exposes implicit sets.  Allocate/resize implicit_sets as
3194         necessary.
3195         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3196         changed something.  Run df_analyze after find_implicit_sets if any
3197         edges were split.  Do not allocate implicit_sets here.
3199         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3200         (gcse_obstack): Renamed to cprop_obstack.
3201         (GNEW, GNEWVEC, GNEWVAR): Remove.
3202         (gmalloc): Remove.
3203         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3204         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3205         (gcse_alloc): Likewise, and rename to cprop_alloc.
3206         (alloc_gcse_men, free_gcse_mem): Remove.
3207         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3208         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3209         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3211         * cprop.c (oprs_not_set_p): Remove.
3212         (mark_set, mark_clobber): Remove.
3213         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3214         (reg_not_set_p): New function.
3215         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3216         (cprop_insn): Likewise.
3217         (cprop_jump): Use FOR_EACH_EDGE.
3219 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3221         PR bootstrap/48403
3222         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3223         (rank_for_schedule): Use scheduled_insns vector instead of
3224         last_scheduled_insn.
3225         (ok_for_early_queue_removal): Likewise.
3226         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3227         we have a dbg_cnt.
3228         (choose_ready): Likewise.
3229         (commit_schedule): Use VEC_iterate.
3230         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3231         a dbg_cnt, use it and ensure the first insn is in the ready list.
3232         (haifa_sched_init): Allocate scheduled_insns.
3233         (sched_extend_ready_list): Don't allocate it; reserve space.
3234         (haifa_sched_finish): Free it.
3236 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3238         * optc-gen.awk: Always remove type from Variable entry before
3239         recording in var_seen.
3241 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3243         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3244         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3245         call to tidy_fallthru_edges.
3247 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3249         * doc/options.texi (ToLower): Document.
3250         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3251         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3252         * opts.h (cl_option): Add cl_tolower field.
3253         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3254         arguments with lowercase strings.
3255         * config/rx/rx.opt (mcpu=): Add ToLower.
3256         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3257         argument.
3259 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3261         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3263 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3265         * config/vax/vax.c: Include reload.h.
3267 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3269         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3270         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3271         (sparc_preferred_reload_class): New function.
3273 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3275         PR debug/48401
3276         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3277         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3279 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3281         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3282         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3284 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3286         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3287         (ASM_OUTPUT_ALIGNED_BSS): Define.
3289 2011-04-03  Michael Matz  <matz@suse.de>
3291         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3292         and next_slot members.
3293         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3294         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3295         (lto_streamer_cache_append): Declare.
3296         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3297         unsigned index, remove offset parameter, ensure that we append
3298         or update existing entries.
3299         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3300         parameter, update next_slot for append.
3301         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3302         parameter.
3303         (lto_streamer_cache_insert_at): Likewise.
3304         (lto_streamer_cache_append): New function.
3305         (lto_streamer_cache_lookup): Use unsigned index.
3306         (lto_streamer_cache_get): Likewise.
3307         (lto_record_common_node): Don't test tree_node_can_be_shared.
3308         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3309         (lto_streamer_cache_delete): Don't free offsets member.
3310         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3311         (lto_output_string_with_length): Use lto_output_data_stream.
3312         (lto_output_tree_header): Remove ix parameter, don't write it.
3313         (lto_output_builtin_tree): Likewise.
3314         (lto_write_tree): Adjust callers to above, don't track and write
3315         offset, write unsigned index.
3316         (output_unreferenced_globals): Don't emit all global vars.
3317         (write_global_references): Use unsigned indices.
3318         (lto_output_decl_state_refs): Likewise.
3319         (write_symbol): Likewise.
3320         * lto-streamer-in.c (lto_input_chain): Move earlier.
3321         (input_function): Use unsigned index.
3322         (input_alias_pairs): Don't read and then ignore all global vars.
3323         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3324         don't pass it back, use lto_streamer_cache_append.
3325         (lto_register_var_decl_in_symtab): Use unsigned index.
3326         (lto_register_function_decl_in_symtab): Likewise.
3327         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3328         index.
3329         (lto_get_builtin_tree): Don't read index, use
3330         lto_streamer_cache_append.
3331         (lto_read_tree): Adjust call to lto_materialize_tree.
3333         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3334         don't use function calls in arguments to MIN.
3336         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3337         twice.
3339         * gimple.c (gimple_type_leader_entry): Mark deletable.
3341 2011-04-03  Alan Modra  <amodra@gmail.com>
3343         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3345 2011-04-03  Michael Matz  <matz@suse.de>
3347         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3348         an integer.
3349         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3351 2011-04-03  Michael Matz  <matz@suse.de>
3353         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3354         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3355         without function context.
3356         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3357         current_function_decl and cfun.
3359 2011-04-03  Michael Matz  <matz@suse.de>
3361         * tree.c (decl_init_priority_insert): Don't create entry for
3362         default priority.
3363         (decl_fini_priority_insert): Ditto.
3364         (fields_compatible_p, find_compatible_field): Remove.
3365         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3366         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3368 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3370         * combine.c (try_combine): Remove useless local variable.
3372 2011-04-03  Richard Guenther  <rguenther@suse.de>
3373             Ira Rosen  <ira.rosen@linaro.org>
3375         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3376         non-variable offsets and compare the remaining bases of the two
3377         accesses instead of looking for exact same data-ref.
3379 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3381         PR target/48416
3382         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3384         * i386.c (ix86_is_msabi_thiscall): New helper function.
3385         (ix86_is_type_thiscall): New helper function.
3386         (ix86_comp_type_attributes): Handle thiscall for method-functions
3387         special.
3388         (init_cumulative_args): Likewise.
3389         (find_drap_reg): Likewise.
3390         (ix86_static_chain): Likewise.
3391         (x86_this_parameter): Likewise.
3392         (x86_output_mi_thunk): Likewise.
3394 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3395             Nicolas Setton  <setton@adacore.com>
3396             Eric Botcazou  <ebotcazou@adacore.com>
3398         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3399         (add_gnat_descriptive_type_attribute): New function.
3400         (gen_array_type_die): Call it.
3401         (gen_enumeration_type_die): Likewise.
3402         (gen_struct_or_union_type_die): Likewise.
3403         (modified_type_die): Likewise.
3404         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3405         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3406         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3408 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3410         PR bootstrap/48148
3411         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3412         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3414         Revert:
3415         2011-03-17  Richard Guenther  <rguenther@suse.de>
3417         PR bootstrap/48148
3418         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3419         origin for decls in other ltrans units.
3420         (input_varpool_node): Likewise.
3422 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3424         PR middle-end/48335
3425         * expr.c (expand_assignment): Handle all possibilities
3426         if TO_RTX is CONCAT.
3427         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3428         (store_split_bit_field): If SUBREG_REG (op0) or
3429         op0 itself has smaller mode than word, return it
3430         for offset 0 and const0_rtx for out-of-bounds stores.
3431         If word is const0_rtx, skip it.
3433 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3435         * config/h8300/h8300.c (print_operand_address): Rename to...
3436         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3437         Call h8300_print_operand and h8300_print_operand_address instead of
3438         print_operand and print_operand_address. Declare.
3439         (print_operand): Renake to...
3440         (h8300_print_operand): ...this. Make static. Adjust comments.
3441         Call h8300_print_operand instead of print_operand. Declare.
3442         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3443         (h8300_register_move_cost): Likewise.
3444         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3445         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3446         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3447         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3448         * config/h8300/h8300-protos.h (print_operand): Delete.
3449         (print_operand_address): Delete.
3451 2011-04-01  Richard Henderson  <rth@redhat.com>
3453         PR 48400
3454         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3455         in strict mode before dwarf4.  Re-order tests to early out
3456         before switching sections.
3458 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3460         * config/h8300/constraints.md: New file.
3461         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3462         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3463         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3464         * config/h8300/predicates.md (bit_operand): Likewise.
3465         (incdec_operand): Use satisfies_constraint_M and
3466         satisfies_constraint_O.  Don't use C code block.
3467         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3468         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3469         (compute_mov_length): Use satisfies_constraint_G.
3470         (fix_bit_operand): Use satisfies_constraint_U.
3471         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3472         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3473         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3474         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3475         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3476         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3477         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3478         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3479         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3480         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3481         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3482         (EXTRA_MEMORY_CONSTRAINT): Delete.
3484 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3485             Michael Meissner  <meissner@linux.vnet.ibm.com>
3487         PR target/48262
3488         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3489         operands, as per the specifications.
3491         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3492         (vec_extract_evenv4sf): Ditto.
3493         (vec_extract_evenv8hi): Ditto.
3494         (vec_extract_evenv16qi): Ditto.
3495         (vec_extract_oddv4si): Ditto.
3497 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3499         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3500         high_pc attribute if the CU has no associated code. Only output
3501         DW_AT_entry_pc for CU if not generating strict dwarf and
3502         dwarf_version < 4.
3504 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3506         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3507         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3508         out of ...
3509         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3510         * final.c (final_start_function): Call the new function rather
3511         than using a NULL argument for dwarf2out_frame_debug.
3513         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3514         that contains the prologue.
3516         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3517         changed.  Print it in debugging output.
3519         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3521         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3522         Split most of the code into...
3523         (begin_move_insn): ... here.  New function.
3524         (ebb_sched_info): Add a pointer to it.
3525         * haifa-sched.c (scheduled_insns): New static variable.
3526         (sched_extend_ready_list): Allocate it.
3527         (schedule_block): Use it to record the order of scheduled insns.
3528         Perform RTL changes to move insns only after all scheduling
3529         decisions have been made.
3530         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3531         begin_move_insn field.
3532         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3533         * sched-int.h (struct haifa_sched_info): Remove second argument
3534         from begin_schedule_ready hook.  Add new member begin_move_insn.
3535         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3536         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3538         * haifa-sched.c (prune_ready_list): New function, broken out of
3539         schedule_block.
3540         (schedule_block): Use it.
3542 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3544         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3546 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3548         * config.gcc (*-*-mingw*): Allow as option the
3549         posix threading model.
3550         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3551         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3552         definition.
3553         (CPP_SPEC): Add pthread/no-pthread handling.
3554         (LIB_SPEC): Likewise.
3555         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3556         (LIB_SPEC): Likewise.
3557         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3558         flag to pass -pthread option for shared libgcc build.
3559         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3560         for shared libgcc build.
3561         * config/i386/t-mingw-pthread: New file.
3562         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3563         New define to enable use of library pthread by default.
3564         * config/i386/mingw.opt (pthread): New driver option.
3565         (no-pthread): New driver option.
3566         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3567         * config/i386/mingw-w64.opt: Likewise.
3569 2011-04-01  Gary Funck <gary@intrepid.com>
3571         * c-decl.c (grokdeclarator): Fix formatting.
3573 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3575         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3576         instead of n_operands.
3577         (set_storage_via_setmem): Likewise.
3578         * optabs.c (maybe_gen_insn): Likewise.
3579         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3580         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3581         (mips_expand_builtin_direct): Likewise.
3582         * config/spu/spu.c (expand_builtin_args): Likewise.
3584 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3586         * recog.h (insn_data_d): Add n_generator_args.
3587         * genoutput.c (data): Likewise.
3588         (output_insn_data): Print it.
3589         (max_opno, num_dups): Delete.
3590         (scan_operands): Just fill in "d->operand[...]".
3591         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3593 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3595         * gensupport.h (pattern_stats): New structure.
3596         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3597         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3598         (max_operand_1, max_operand_vec): Delete.
3599         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3601 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3603         * emit-rtl.c (emit_pattern_after_setloc): New function.
3604         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3605         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3606         (emit_pattern_after): New function.
3607         (emit_insn_after, emit_jump_insn_after): Call it.
3608         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3609         (emit_pattern_before_setloc): New function.
3610         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3611         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3612         Likewise.
3613         (emit_pattern_before): New function.
3614         (emit_insn_before, emit_jump_insn_before): Call it.
3615         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3617 2011-03-31  Richard Henderson  <rth@redhat.com>
3619         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3620         (dw_separate_line_info_entry): Remove.
3621         (enum dw_line_info_opcode): New.
3622         (dw_line_info_entry): Use it.
3623         (dw_line_info_table, dw_line_info_table_p): New.
3624         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3625         (line_info_table, line_info_label_num): Remove.
3626         (line_info_table_in_use): Remove.
3627         (separate_line_info_table): Remove.
3628         (separate_line_info_table_allocated): Remove.
3629         (separate_line_info_table_in_use): Remove.
3630         (LINE_INFO_TABLE_INCREMENT): Remove.
3631         (line_info_label_num): New.
3632         (cur_line_info_table): New.
3633         (text_section_line_info, cold_text_section_line_info): New.
3634         (separate_line_info): New.
3635         (SEPARATE_LINE_CODE_LABEL): Remove.
3636         (print_dwarf_line_table): Remove.
3637         (debug_dwarf): Don't dump it.
3638         (output_one_line_info_table): New.
3639         (output_line_info): Use it.
3640         (new_line_info_table): New.
3641         (set_cur_line_info_table): New.
3642         (dwarf2out_switch_text_section): Use it.
3643         (dwarf2out_begin_function): Likewise.
3644         (push_dw_line_info_entry): New.
3645         (dwarf2out_source_line): Rewrite for new line info tables.
3646         (dwarf2out_init): Remove dead initailizations.
3648 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3650         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3651         various flags.
3652         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3653         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3654         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3655         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3656         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3657         * opt-functions.awk (flag_init, switch_bit_fields): New.
3658         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3659         generate CL_MISSING_OK or CL_SAVE.
3660         * optc-gen.awk: Update to generate bit-field output as well as
3661         flags field.
3662         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3663         bit-field instead of CL_REJECT_DRIVER flag.
3664         * opts-common.c (generate_canonical_option,
3665         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3666         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3667         instead of CL_REJECT_NEGATIVE flag.
3668         * toplev.c (print_switch_values): Use cl_report bit-field instead
3669         of CL_REPORT flag.
3671 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3673         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3674         a zero minimum index only if it is redundant.
3676 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3678         PR rtl-optimization/48381
3679         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3680         instead of ira_class_hard_reg_index for calculating conflicting
3681         hard registers.
3683 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3685         * cprop.c: Clean up hash table building.
3686         (reg_avail_info): Remove.
3687         (oprs_available_p): Remove.
3688         (record_last_reg_set_info): Remove.
3689         (record_last_set_info): Remove.
3690         (reg_available_p): New function.
3691         (gcse_constant_p): Do not treat unfolded conditions as constants.
3692         (make_set_regs_unavailable): New function.
3693         (hash_scan_set): Simplify with new reg_available_p.
3694         (compute_hash_table_work): Traverse insns stream only once.
3695         Do not compute reg_avail_info. Traverse insns in reverse order.
3696         Record implicit sets after recording explicit sets from the block.
3698 2011-03-31  Michael Matz  <matz@suse.de>
3700         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3702 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3704         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3705         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3706         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3707         (h8300_mode_dependent_address_p): New function.
3708         (h8300_get_index): Make static.
3710 2011-03-31  Jeff Law  <law@redhat.com>
3712         * reload1.c (elimination_effects): Fix typo in recent change.
3714         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3715         typo potentially leading to null pointer dereference.
3717         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3718         (setup_save_areas): Corresponding changes to avoid useless
3719         assignments.
3721         * jump.c (reversed_comparison_code_parts): Avoid successive return
3722         statements when REVERSE_CONDITION is defined.
3724         * expr.c (expand_assignment): Avoid useless assignments.
3725         (expand_expr_real_1): Likewise.
3726         (expand_expr_real_2): Avoid useless statements.
3728         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3730         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3732         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3733         statements.
3735         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3737 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3739         PR target/47109
3740         * doc/tm.texi.in (TARGET_VERSION): Remove.
3741         * doc/tm.texi: Regenerate.
3742         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3743         * collect2.c (main): Don't use TARGET_VERSION.
3744         * mips-tdump.c (main): Don't use TARGET_VERSION.
3745         * mips-tfile.c (main): Don't use TARGET_VERSION.
3746         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3747         * config/rs6000/vxworksae.h: Remove.
3748         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3749         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3750         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3751         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3752         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3753         * config/arm/arm.h (TARGET_VERSION): Remove.
3754         * config/arm/coff.h (TARGET_VERSION): Remove.
3755         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3756         * config/arm/elf.h (TARGET_VERSION): Remove.
3757         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3758         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3759         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3760         * config/arm/pe.h (TARGET_VERSION): Remove.
3761         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3762         * config/arm/semi.h (TARGET_VERSION): Remove.
3763         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3764         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3765         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3766         * config/avr/avr.h (TARGET_VERSION): Remove.
3767         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3768         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3769         * config/frv/frv.h (TARGET_VERSION): Remove.
3770         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3771         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3772         * config/i386/darwin.h (TARGET_VERSION): Remove.
3773         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3774         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3775         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3776         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3777         * config/i386/gnu.h (TARGET_VERSION): Remove.
3778         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3779         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3780         * config/i386/linux.h (TARGET_VERSION): Remove.
3781         * config/i386/linux64.h (TARGET_VERSION): Remove.
3782         * config/i386/lynx.h (TARGET_VERSION): Remove.
3783         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3784         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3785         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3786         * config/i386/netware.h (TARGET_VERSION): Remove.
3787         * config/i386/nto.h (TARGET_VERSION): Remove.
3788         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3789         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3790         * config/ia64/elf.h (TARGET_VERSION): Remove.
3791         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3792         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3793         * config/ia64/linux.h (TARGET_VERSION): Remove.
3794         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3795         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3796         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3797         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3798         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3799         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3800         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3801         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3802         * config/m68k/linux.h (TARGET_VERSION): Remove.
3803         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3804         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3805         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3806         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3807         * config/mep/mep.h (TARGET_VERSION): Remove.
3808         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3809         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3810         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3811         * config/mips/linux.h (TARGET_VERSION): Remove.
3812         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3813         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3814         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3815         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3816         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3817         * config/pa/pa.h (TARGET_VERSION): Remove.
3818         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3819         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3820         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3821         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3822         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3823         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3824         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3825         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3826         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3827         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3828         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3829         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3830         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3831         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3832         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3833         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3834         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3835         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3836         * config/s390/linux.h (TARGET_VERSION): Remove.
3837         * config/s390/s390.h (TARGET_VERSION): Remove.
3838         * config/s390/tpf.h (TARGET_VERSION): Remove.
3839         * config/score/score.h (TARGET_VERSION): Remove.
3840         * config/sh/linux.h (TARGET_VERSION): Remove.
3841         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3842         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3843         * config/sh/sh.h (TARGET_VERSION): Remove.
3844         * config/sh/sh64.h (TARGET_VERSION): Remove.
3845         * config/sh/superh.h (TARGET_VERSION): Remove.
3846         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3847         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3848         * config/sparc/linux.h (TARGET_VERSION): Remove.
3849         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3850         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3851         TARGET_NAME32, TARGET_NAME): Remove.
3852         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3853         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3854         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3855         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3856         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3857         * config/spu/spu.h (TARGET_VERSION): Remove.
3858         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3859         * config/v850/v850.h (TARGET_VERSION): Remove.
3860         * config/vax/linux.h (TARGET_VERSION): Remove.
3861         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3862         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3863         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3865 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3867         PR target/48142
3868         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3869         frame-related from frame-unrelated adjustments to the stack pointer.
3871 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3873         * common.opt (fdebug-types-section): Move earlier.
3874         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3876 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3878         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3879         var.
3881 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3883         * tree.h (CASE_CHAIN): Define.
3884         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3885         (gimple_redirect_edge_and_branch): Likewise.
3887 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3889         PR middle-end/48367
3890         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3891         calculation.
3893 2011-03-30  Jeff Law  <law@redhat.com>
3895         * PR bootstrap/48371
3896         * reload1.c (reload): Fix botch in last change.
3898         * reload.h (struct reload): Fix typo introduced in last change.
3900 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3902         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3903         Undocumented.  Remove help text.
3904         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3905         -mhard-float.
3907 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3909         * doc/options.texi (NegativeAlias): Document.
3910         (Alias): Mention NegativeAlias.
3911         * opt-functions.awk: Handle NegativeAlias.
3912         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3913         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3914         * opts.h (CL_NEGATIVE_ALIAS): Define.
3915         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3916         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3917         OPT_mspe_.
3918         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3919         Alias entries.
3920         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3921         mno-spe and mno-isel instead of mspe=no and -misel=no.
3923 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3925         * common.opt (fdebug-types-section): New flag.
3926         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3927         * dwarf2out.c (use_debug_types): New define.
3928         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3929         (print_die): Guard output of type unit signatures using
3930         use_debug_types.
3931         (build_abbrev_table): Replace assert of dwarf_version >= 4
3932         with assert on use_debug_types.
3933         (size_of_die): Likewise.
3934         (unmark_dies): Likewise.
3935         (value_format): Decide AT_ref_external form on use_debug_types.
3936         (output_die): Replace dwarf_version version check guard with
3937         use_debug_types where appropriate.
3938         (modified_type_die): Likewise.
3939         (gen_reference_type_die): Likewise.
3940         (dwarf2out_start_source_file): Likewise.
3941         (dwarf2out_end_source_file): Likewise.
3942         (prune_unused_types_walk_attribs): Likewise.
3943         (dwarf2out_finish): Likewise.
3945 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3947         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3949 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3951         PR rtl-optimization/48332
3952         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3953         mode of input operand N and modeN to its actual mode.
3955 2011-03-30  Jeff Law  <law@redhat.com>
3957         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3958         define accessor macro.
3959         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3960         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3961         (reg_equiv_init): Likewise.
3962         (reg_equivs_size): New variable.
3963         (reg_equiv_init_size): Remove.
3964         (allocate_initial_values): Move prototype to here from....
3965         * integrate.h (allocate_initial_values): Remove prototype.
3966         * integrate.c: Include reload.h.
3967         (allocate_initial_values): Corresponding changes.
3968         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3969         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3970         (update_equiv_regs): Corresponding changes.
3971         (ira): Corresponding changes.
3972         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3973         (push_secondary_reload): Corresponding changes.
3974         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3975         (make_memloc, find_reloads_address): Corresponding changes.
3976         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3977         (find_reloads_address_1): Corresponding changes.
3978         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3979         (refers_to_regno_for_reload_p): Corresponding changes.
3980         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3981         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3982         * reload1.c: Include ggc.h.
3983         (grow_reg_equivs): New function.
3984         (replace_pseudos_in, reload): Corresponding changes.
3985         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3986         (eliminate_regs_1, elimination_effects): Corresponding changes.
3987         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3988         (delete_output_reload): Likewise.
3989         * caller-save.c (mark_referenced_regs): Corresponding changes.
3990         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3991         * frv/predicates.md (frv_load_operand): Corresponding changes.
3992         * microblaze/microblaze.c (double_memory_operand): Corresponding
3993         changes.
3994         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3995         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3996         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3997         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3998         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3999         changes.
4000         * pa/pa.c (emit_move_sequence): Corresponding changes.
4001         * vax/vax.c (nonindexed_address_p): Corresponding changes.
4003 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4005         PR target/47551
4006         * config/arm/arm.c (coproc_secondary_reload_class): Handle
4007         structure modes.  Don't check neon_vector_mem_operand for
4008         vector or structure modes.
4010 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
4011             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4013         PR target/43590
4014         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
4015         operand 1 and reshuffle the operands to match.
4016         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
4018 2011-03-30  Christian Schüler  <cschueler@gmx.de>
4020         PR driver/48208
4021         * config/c.opt (F): Added 'Driver' to -F option.
4023         PR driver/48260
4024         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
4025           handler function.
4026         * config/darwin.opt: Added '-arch' option.
4028 2011-03-30  Nick Clifton  <nickc@redhat.com>
4030         * config/rx/rx.md: Add peepholes and patterns to combine
4031         extending loads and simple arithmetic instructions.
4032         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4033         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4034         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4035         modes to use pre-decrement and post-increment addressing.
4036         (rx_is_restricted_memory_address): Add range checking of REG+INT
4037         addresses.
4038         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4039         (rx_memory_move_cost): Adjust cost of stores.
4040         (rx_adjust_insn_length): New function.
4042 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4044         PR c/48305
4045         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4046         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4047         matching arg00/arg01 types.
4049 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4051         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4052         last_location to UNKNOWN_LOCATION.
4054 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4056         PR target/48349
4057         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4058         FLOAT_SSE_REGS.
4060 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4061             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4063         PR bootstrap/48337
4064         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4065         Init(PROCESSOR_V7).
4066         (sparc_cpu): Likewise.
4067         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4068         PROCESSOR_V7.
4070 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4072         PR target/48336
4073         PR middle-end/48342
4074         PR rtl-optimization/48345
4075         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4076         hard regs for given mode from profitable regs when doing secondary
4077         allocation.
4079 2011-03-29  Jeff Law  <law@redhat.com>
4081         PR bootstrap/48327
4082         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4083         do_not_duplicate field.
4084         (lookup_redirection_data): Corresponding changes.
4085         (create_duplicates): Always create a template block.
4086         (redirect_edges): Remove code which reused the original block
4087         when it was going to become unreachable code.
4088         (thread_block): Don't set do_not_duplicate field.
4090 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4092         * lto-opts.c (register_user_option_p, lto_register_user_option):
4093         Make type argument unsigned.
4094         * lto-streamer.h (lto_register_user_option): Make type argument
4095         unsigned.
4096         * opth-gen.awk: Make CL_* macros unsigned.
4097         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4098         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4099         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4100         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4101         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4102         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4103         (find_opt): Make lang_mask argument unsigned.
4105 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4107         PR rtl-optimization/48331
4108         PR rtl-optimization/48334
4109         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4110         for any used algorithm.
4112 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4114         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4115         to parent_max.
4117 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4119         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4120         (alpha_option_override): Don't set alpha_sr_alias_set.
4121         (emit_frame_store_1): Use gen_frame_mem rather than calling
4122         set_mem_alias_set.
4123         (alpha_expand_epilogue): Ditto.
4125 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4127         PR tree-optimization/48290
4128         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4129         vectorization, check that relevant phis in the basic block after
4130         the inner loop are really inner loop's exit phis.
4132 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4134         PR debug/48190
4135         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4136         (cached_dw_loc_list_def): New structure.
4137         (cached_dw_loc_list): New typedef.
4138         (cached_dw_loc_list_table): New variable.
4139         (cached_dw_loc_list_table_hash): New function.
4140         (cached_dw_loc_list_table_eq): Likewise.
4141         (add_location_or_const_value_attribute): Take a bool cache_p.
4142         Cache the list when the parameter is true.
4143         (gen_formal_parameter_die): Update caller.
4144         (gen_variable_die): Likewise.
4145         (dwarf2out_finish): Likewise.
4146         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4147         while generating debug info for the decl.
4148         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4149         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4150         (resolve_addr): Cache the result of resolving a chain of
4151         location lists.
4153 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4155         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4156         conflict object hard regset nodes have intersecting hard reg sets.
4158         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4159         after regstat_init_n_sets_and_refs.
4161         * ira.c: Add more comments at the top.
4162         (setup_stack_reg_pressure_class, setup_pressure_classes):
4163         Add comments how we compute the register pressure classes.
4164         (setup_allocno_and_important_classes): Add more comments.
4165         (setup_class_translate_array, reorder_important_classes)
4166         (setup_reg_class_relations): Add comments.
4168         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4169         start of the file.
4171         * ira-color.c: Add 2011 to the Copyright line.
4172         (assign_hard_reg):  Add more comments.
4173         (improve_allocation): Ditto.
4175         * ira-costs.c: Add 2011 to the Copyright line.
4176         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4177         comments.
4178         (setup_regno_cost_classes_by_mode): Ditto.
4180         Initial patches from ira-improv branch:
4182         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4184         * ira-build.c (ira_create_object): Remove initialization of
4185         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4186         (ira_create_allocno): Remove initialization of
4187         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4188         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4189         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4190         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4191         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4192         Initialize ALLOCNO_ADD_DATA.
4193         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4194         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4195         ALLOCNO_REG.
4196         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4197         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4199         * ira.c (ira_reallocate): Remove.
4200         (setup_pressure_classes): Call
4201         ira_init_register_move_cost_if_necessary.  Use
4202         ira_register_move_cost instead of ira_get_register_move_cost.
4203         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4204         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4206         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4207         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4208         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4209         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4210         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4211         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4212         Fix formatting.
4213         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4214         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4215         (struct allocno_color_data): New.
4216         (allocno_color_data_t): New typedef.
4217         (allocno_color_data): New definition.
4218         (ALLOCNO_COLOR_DATA): New macro.
4219         (struct object_color_data): New.
4220         (object_color_data_t): New typedef.
4221         (object_color_data): New definition.
4222         (OBJECT_COLOR_DATA): New macro.
4223         (update_copy_costs, calculate_allocno_spill_cost): Call
4224         ira_init_register_move_cost_if_necessary.  Use
4225         ira_register_move_cost instead of ira_get_register_move_cost.
4226         (move_spill_restore, update_curr_costs): Ditto.
4227         (allocno_spill_priority): Make it inline.
4228         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4229         (struct coalesce_data, coalesce_data_t): New.
4230         (allocno_coalesce_data): New definition.
4231         (ALLOCNO_COALESCE_DATA): New macro.
4232         (merge_allocnos, coalesced_allocno_conflict_p): Use
4233         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4234         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4235         (coalesce_allocnos): Ditto.
4236         (setup_coalesced_allocno_costs_and_nums): Ditto.
4237         (collect_spilled_coalesced_allocnos): Ditto.
4238         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4239         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4240         (coalesce_spill_slots): Ditto.
4241         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4242         free allocno_coalesce_data.
4244         * ira-conflicts.c: Fix formatting.
4245         (process_regs_for_copy): Call
4246         ira_init_register_move_cost_if_necessary.  Use
4247         ira_register_move_cost instead of ira_get_register_move_cost.
4248         (build_object_conflicts): Optimize.
4250         * ira-costs.c (record_reg_classes): Optimize.  Call
4251         ira_init_register_move_cost_if_necessary.  Use
4252         ira_register_move_cost, ira_may_move_in_cost, and
4253         ira_may_move_out_cost instead of ira_get_register_move_cost and
4254         ira_get_may_move_cost.
4255         (record_address_regs): Ditto.
4256         (scan_one_insn): Optimize.
4257         (find_costs_and_classes): Optimize.
4258         (process_bb_node_for_hard_reg_moves): Call
4259         ira_init_register_move_cost_if_necessary.  Use
4260         ira_register_move_cost instead of ira_get_register_move_cost.
4262         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4263         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4264         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4265         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4266         definitions.
4267         (ira_initiate_emit_data, ira_finish_emit_data)
4268         (create_new_allocno): New functions.
4269         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4270         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4271         Use ira_register_move_cost instead of ira_get_register_move_cost.
4273         * ira-int.h: Fix some comments.
4274         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4275         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4276         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4277         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4278         add_data.
4279         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4280         bitfield after mode.  Make hard_regno a short int.  Make
4281         hard_regno short.  Remove first_coalesced_allocno and
4282         next_coalesced_allocno.  Move mem_optimized_dest_p,
4283         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4284         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4285         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4286         temp, colorable_p.  Add new member add_data.
4287         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4288         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4289         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4290         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4291         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4292         (ALLOCNO_ADD_DATA): New macro.
4293         (ira_emit_data_t): New typedef.
4294         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4295         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4296         from struct ira_allocno.
4297         (ALLOCNO_EMIT_DATA): New macro.
4298         (ira_allocno_emit_data, allocno_emit_reg): New.
4299         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4300         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4301         (OBJECT_ADD_DATA): New macro.
4302         (ira_reallocate): Remove.
4303         (ira_initiate_emit_data, ira_finish_emit_data): New.
4304         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4305         (ira_init_register_move_cost_if_necessary): New.
4306         (ira_object_conflict_iter_next): Merge into
4307         ira_object_conflict_iter_cond.
4308         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4310         * ira-live.c (process_single_reg_class_operands): Call
4311         ira_init_register_move_cost_if_necessary.  Use
4312         ira_register_move_cost instead of ira_get_register_move_cost.
4314         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4316         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4318         * ira-costs.c: Fix formatting.
4319         (cost_classes, cost_classes_num): Remove.
4320         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4321         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4322         (cost_classes_del, cost_classes_htab): New.
4323         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4324         (initiate_regno_cost_classes, setup_cost_classes): New.
4325         (setup_regno_cost_classes_by_aclass): New.
4326         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4327         (record_reg_classes): Use regno_cost_classes instead of
4328         cost_classes.  Move checking opposite operand up.
4329         (record_address_regs): Use regno_cost_classes
4330         instead of cost_classes.
4331         (scan_one_insn): Ditto.  Use always general register.
4332         (print_allocno_costs): Use regno_cost_classes instead of
4333         cost_classes.
4334         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4335         (find_costs_and_classes): Set up cost classes for each registers.
4336         Use also their mode for this.  Use regno_cost_classes instead of
4337         cost_classes.
4338         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4339         cost_classes.
4340         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4341         (ira_costs, ira_set_pseudo_classes): Call
4342         initiate_regno_cost_classes and finish_regno_cost_classes.
4344         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4346         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4348         * target.def (ira_cover_classes): Remove.
4350         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4352         * doc/tm.texi.in: Ditto.
4354         * ira-conflicts.c: Remove mentioning cover classes from the file.
4355         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4356         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4358         * targhooks.c (default_ira_cover_classes): Remove.
4360         * targhooks.h (default_ira_cover_classes): Ditto.
4362         * haifa-sched.c: Remove mentioning cover classes from the file.
4363         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4364         ira_pressure_classes and ira_pressure_classes_num instead of
4365         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4366         sched_regno_pressure_class instead of sched_regno_cover_class.
4367         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4368         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4370         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4371         classes from the file.
4372         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4373         (struct object_hard_regs, struct object_hard_regs_node): New.
4374         (struct ira_object): New members profitable_hard_regs,
4375         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4376         (struct ira_allocno): Rename cover_class to aclass.  Rename
4377         cover_class_cost and updated_cover_class_cost to class_cost and
4378         updated_class_cost.  Remove splay_removed_p and
4379         left_conflict_size.  Add new members colorable_p.
4380         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4381         (ALLOCNO_COLORABLE_P): New macro.
4382         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4383         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4384         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4385         (OBJECT_...): Rename parameter C to O.
4386         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4387         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4388         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4389         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4390         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4391         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4392         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4393         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4394         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4395         x_ira_reg_class_subunion.
4396         (ira_max_memory_move_cost, ira_max_register_move_cost)
4397         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4398         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4399         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4400         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4401         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4402         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4403         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4404         (ira_tune_allocno_costs_and_cover_classes): Rename to
4405         ira_tune_allocno_costs.
4406         (ira_debug_hard_regs_forest): New.
4407         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4408         (ira_object_conflict_iter_next): Fix comments.
4409         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4410         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4411         cover_class to aclass.
4412         (ira_allocate_and_accumulate_costs): Ditto.
4413         (ira_allocate_and_set_or_copy_costs): Ditto.
4415         * opts.c (decode_options): Remove ira_cover_class check.
4417         * ira-color.c: Remove mentioning cover classes from the file.  Use
4418         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4419         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4420         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4421         (splay-tree.h): Remove include.
4422         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4423         before copy_freq_compare_func.
4424         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4425         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4426         New definitions.
4427         (hard_regs_roots, hard_regs_node_vec): Ditto.
4428         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4429         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4430         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4431         (create_new_object_hard_regs_node): Ditto.
4432         (add_new_object_hard_regs_node_to_forest): Ditto.
4433         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4434         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4435         Ditto.
4436         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4437         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4438         (remove_unused_object_hard_regs_nodes): Ditto.
4439         (enumerate_object_hard_regs_nodes): Ditto.
4440         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4441         (object_hard_regs_subnode_t): Ditto.
4442         (struct object_hard_regs_subnode): Ditto.
4443         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4444         (setup_object_hard_regs_subnode_index): Ditto.
4445         (get_object_hard_regs_subnodes_num): Ditto.
4446         (form_object_hard_regs_nodes_forest): Ditto.
4447         (finish_object_hard_regs_nodes_tree): Ditto.
4448         (finish_object_hard_regs_nodes_forest): Ditto.
4449         (allocnos_have_intersected_live_ranges_p): Rename to
4450         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4451         (pseudos_have_intersected_live_ranges_p): Rename to
4452         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4453         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4454         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4455         (update_copy_costs): Remove assert.  Skip cost update if the hard
4456         reg does not belong the class.
4457         (assign_hard_reg): Process only profitable hard regs.
4458         (uncolorable_allocnos_num): Make it scalar.
4459         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4460         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4461         and ira_reg_class_max_nregs.
4462         (bucket_allocno_compare_func): Check frequency first.
4463         (sort_bucket): Add compare function as a parameter.
4464         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4465         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4466         (push_allocno_to_stack): Rewrite for checking new allocno
4467         colorability.
4468         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4469         (push_only_colorable): Pass new parameter to sort_bucket.
4470         (push_allocno_to_spill): Remove.
4471         (allocno_spill_priority_compare): Make it inline and rewrite.
4472         (splay_tree_allocate, splay_tree_free): Remove.
4473         (allocno_spill_sort_compare): New function.
4474         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4475         build and use splay tree.  Choose first allocno in uncolorable
4476         allocno bucket to spill.  Remove setting spill cost.
4477         (all_conflicting_hard_regs): Remove.
4478         (setup_allocno_available_regs_num): Check only profitable hard
4479         regs.  Print info about hard regs nodes.
4480         (setup_allocno_left_conflicts_size): Remove.
4481         (put_allocno_into_bucket): Don't call
4482         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4483         (improve_allocation): New.
4484         (color_allocnos): Call setup_profitable_hard_regs,
4485         form_object_hard_regs_nodes_forest, improve_allocation,
4486         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4487         (print_loop_title): Use pressure classes.
4488         (color_allocnso): Ditto.
4489         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4490         and allocnos_for_spilling.
4491         (ira_sort_regnos_for_alter_reg): Don't setup members
4492         {first,next}_coalesced_allocno.
4493         (color): Remove allocating and freeing removed_splay_allocno_vec.
4494         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4495         prohibited_class_mode_regs.
4497         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4498         formatting.
4499         (update_allocno_pressure_excess_length): Use pressure classes.
4500         (inc_register_pressure, dec_register_pressure): Check for pressure
4501         class.
4502         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4503         pressure class.  Use ira_reg_class_nregs instead of
4504         ira_reg_class_max_nregs.
4505         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4506         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4507         (single_reg_class): Use ira_reg_class_nregs instead of
4508         ira_reg_class_max_nregs.
4509         (process_bb_node_lives): Use pressure classes.
4511         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4512         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4513         (change_loop): Use pressure classes.
4514         (modify_move_list): Call ira_set_allocno_class instead of
4515         ira_set_allocno_cover_class.
4517         * ira-build.c: Remove mentioning cover classes from the file.  Use
4518         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4519         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4520         ALLOCNO_UPDATED_CLASS_COST instead of
4521         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4522         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4523         (ira_create_allocno): Remove initialization of
4524         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4525         ALLOCNO_COLORABLE_P.
4526         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4527         Update conflict regs for the objects.
4528         (create_cap_allocno): Remove assert.  Don't propagate
4529         ALLOCNO_AVAILABLE_REGS_NUM.
4530         (ira_free_allocno_costs): New function.
4531         (finish_allocno): Change a part of code into call of
4532         ira_free_allocno_costs.
4533         (low_pressure_loop_node_p): Use pressure classes.
4534         (object_range_compare_func): Don't compare classes.
4535         (setup_min_max_conflict_allocno_ids): Ditto.
4537         * loop-invariant.c: Remove mentioning cover classes from the file.
4538         Use ira_pressure_classes and ira_pressure_classes_num instead of
4539         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4540         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4541         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4542         Use reg_allocno_class instead of reg_cover_class.
4543         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4544         STACK_REG_COVER_CLASS.
4545         (get_regno_cover_class): Rename to get_regno_pressure_class.
4546         (move_loop_invariants): Initialize and finalize regstat.
4548         * ira.c: Remove mentioning cover classes from the file.  Add
4549         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4550         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4551         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4552         setup_class_subset_and_memory_move_costs.
4553         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4554         (setup_cover_and_important_classes): Rename to
4555         setup_allocno_and_important_classes.
4556         (setup_class_translate_array): New.
4557         (setup_class_translate): Call it for allocno and pressure classes.
4558         (cover_class_order): Rename to allocno_class_order.
4559         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4560         of ira_class_translate.
4561         (reorder_important_classes): Set up ira_important_class_nums.
4562         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4563         (print_class_cover): Rename to print_classes.  Add parameter.
4564         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4565         Print pressure classes too.
4566         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4567         setup_reg_subclasses.
4568         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4569         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4570         (setup_prohibited_class_mode_regs): Use
4571         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4572         (clarify_prohibited_class_mode_regs): New function.
4573         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4574         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4575         (ira_init_once): Initialize them.
4576         (free_register_move_costs): Process them.
4577         (ira_init): Move calls of find_reg_classes and
4578         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4579         Call clarify_prohibited_class_mode_regs.
4580         (ira_no_alloc_reg): Remove.
4581         (too_high_register_pressure_p): Use pressure classes.
4583         * sched-deps.c: Remove mentioning cover classes from the file.
4584         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4585         ira_pressure_classes and ira_pressure_classes_num instead of
4586         ira_reg_class_cover_size and ira_reg_class_cover.
4587         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4588         sched_regno_pressure_class instead of sched_regno_cover_class.
4589         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4590         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4592         * ira.h: Add 2010 to Copyright.
4593         (ira_no_alloc_reg): Remove external.
4594         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4595         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4596         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4597         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4598         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4599         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4600         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4601         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4602         x_ira_no_alloc_regs.
4603         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4604         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4605         ira_allocno_classes_num and ira_allocno_classes.
4606         (ira_class_translate): Rename to ira_allocno_class_translate.
4607         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4608         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4609         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4610         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4611         (ira_no_alloc_regs): New.
4613         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4614         classes from the file.  Use ALLOCNO_CLASS instead of
4615         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4616         ALLOCNO_COVER_CLASS_COST.
4617         (regno_cover_class): Rename to regno_aclass.
4618         (record_reg_classes): Use ira_reg_class_subunion instead of
4619         ira_reg_class_union.
4620         (record_address_regs): Check overflow.
4621         (scan_one_insn): Ditto.
4622         (print_allocno_costs): Print total mem cost fore regional allocation.
4623         (print_pseudo_costs): Use REG_N_REFS.
4624         (find_costs_and_classes): Use classes intersected with them on the
4625         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4626         ira_reg_class_union.  Use ira_allocno_class_translate and
4627         regno_aclass instead of ira_class_translate and regno_cover_class.
4628         Modify code for finding regno_aclass.  Setup preferred classes for
4629         the next pass.
4630         (setup_allocno_cover_class_and_costs): Rename to
4631         setup_allocno_class_and_costs.  Use regno_aclass instead of
4632         regno_cover_class.  Use ira_set_allocno_class instead of
4633         ira_set_allocno_cover_class.
4634         (init_costs, finish_costs): Use regno_aclass instead of
4635         regno_cover_class.
4636         (ira_costs): Use setup_allocno_class_and_costs instead of
4637         setup_allocno_cover_class_and_costs.
4638         (ira_tune_allocno_costs_and_cover_classes): Rename to
4639         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4640         by processing objects.  Use ira_reg_class_max_nregs instead of
4641         ira_reg_class_nregs.
4643         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4645         * sched-int.h: Remove mentioning cover classes from the file.
4646         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4648         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4649         classes from the file.
4650         (struct reg_pref): Rename coverclass into allocnoclass.
4651         (reg_cover_class): Rename to reg_allocno_class.
4653         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4655         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4657         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4659         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4661         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4663         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4665         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4667         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4669         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4671         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4673         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4674         (i386_ira_cover_classes): Ditto.
4676         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4678         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4680         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4682         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4684         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4686         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4688         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4689         (mips_ira_cover_classes): Ditto.
4691         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4693         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4695         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4697         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4699         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4701         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4702         (IRA_COVER_CLASSES_VSX): Ditto.
4704         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4705         (rs6000_ira_cover_classes): Ditto.
4707         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4709         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4711         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4713         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4715         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4717         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4719         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4721         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4723         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4725         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4727 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4729         PR debug/48253
4730         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4731         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4732         dw_fde_unlikely_section_end_label, cold_in_std_section,
4733         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4734         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4735         fields.
4736         (output_fde): Use dw_fde_second_{begin,end} if second is
4737         true, otherwise dw_fde_{begin,end}.
4738         (output_call_frame_info): Test dw_fde_second_begin != NULL
4739         instead of dw_fde_switched_sections.
4740         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4741         fields, initialize new fields.  Initialize in_std_section
4742         unconditionally from the first partition.
4743         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4744         dw_fde_second_begin is non-NULL.
4745         (dwarf2out_switch_text_section): Stop initializing removed
4746         dw_fde_struct fields, initialize new fields, initialize
4747         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4748         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4749         (struct var_loc_list_def): Add last_before_switch field.
4750         (arange_table, arange_table_allocated, arange_table_in_use,
4751         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4752         (size_of_aranges): Count !in_std_section and !second_in_std_section
4753         hunks in fdes, instead of looking at arange_table_in_use.
4754         (output_aranges): Add aranges_length argument, don't call
4755         size_of_aranges here.  Instead of using aranges_table*
4756         emit ranges for fdes when !in_std_section resp.
4757         !second_in_std_section.
4758         (dw_loc_list): Break ranges crossing section switch.
4759         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4760         use dw_fde_second_end instead of dw_fde_end as end of last range.
4761         (gen_subprogram_die): Don't call add_arange.  Use
4762         dw_fde_{begin,end} for first partition and if switched
4763         section dw_fde_second_{begin,end} for the second.
4764         (var_location_switch_text_section_1,
4765         var_location_switch_text_section): New functions.
4766         (dwarf2out_begin_function): Initialize cold_text_section even
4767         when function_section () isn't text_section.
4768         (prune_unused_types): Don't walk arange_table.
4769         (dwarf2out_finish): Don't needlessly test
4770         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4771         If info_section_emitted, call size_of_aranges and if it indicates
4772         non-empty .debug_aranges, call output_aranges with the computed
4773         size.  Stop using removed dw_fde_struct fields, use
4774         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4775         for second.
4777         PR debug/48203
4778         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4779         create ENTRY_VALUE if incoming or address of incoming's MEM
4780         is a hard REG.
4781         * dwarf2out.c (mem_loc_descriptor): Don't emit
4782         DW_OP_GNU_entry_value of DW_OP_fbreg.
4783         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4784         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4785         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4786         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4787         ENTRY_VALUE_EXPs.
4788         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4789         is a REG_P or MEM_P with REG_P address, compute hash directly
4790         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4791         (preserve_only_constants): Don't clear VALUES forwaring
4792         ENTRY_VALUE to some other VALUE.
4794 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4796         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4797         instead of GEN_INT.
4799 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4801         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4802         block before expanding the statement.
4803         (expand_gimple_stmt_1): Likewise.  Set them here...
4804         (expand_gimple_stmt): ...and not here.  Tidy.
4805         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4806         unknown.
4808 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4810         * Makefile.in: New rule for cprop.o.
4811         * gcse.c: Move constant/copy propagation to cprop.c.
4812         (compute_local_properties): Only handle expression tables.
4813         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4814         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4815         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4816         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4817         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4818         compute_cprop_data, find_used_regs, try_replace_reg,
4819         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4820         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4821         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4822         find_bypass_set, reg_killed_on_edge, bypass_block,
4823         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4824         execute_rtl_cprop, pass_rtl_cprop): Move to...
4825         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4826         moved from gcse.c to here with minor cleanups in duplicated code.
4828 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4830         * config/i386/i386.c (flag_opts): Fix a typo in
4831         -mavx256-split-unaligned-store.
4833 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4835         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4836         LIBCALL_VALUE): Remove macros.
4837         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4838         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4839         (h8300_function_value, h8300_libcall_value,
4840         h8300_function_value_regno_p): New functions.
4842 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4844         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4846 2011-03-28  Jeff Law  <law@redhat.com>
4848         * tree-ssa-threadupdate.c (redirect_edges): Call
4849         create_edge_and_update_destination_phis as needed.
4850         (create_edge_and_update_destination_phis): Accept new BB argument.
4851         All callers updated.
4852         (thread_block): Do not update the profile when threading around
4853         intermediate blocks.
4854         (thread_single_edge): Likewise.
4855         (determine_bb_domination_status): If BB is not a successor of the
4856         loop header, return NONDOMINATING.
4857         (register_jump_thread): Note when we register a jump thread around
4858         an intermediate block.
4859         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4860         (thread_across_edge): Use it.
4862 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4864         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4865         when for_return is 2.
4867 2011-03-28  Jeff Law  <law@redhat.com>
4869         * var-tracking.c (canonicalize_values_mark): Delete unused
4870         lhs assignment.
4871         (canonicalize_values_star, set_variable_part): Likewise.
4872         (clobber_variable_part, delete_variable_part): Likewise.
4874 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4876         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4878 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4880         * tree-inline.c (expand_call_inline): Do not check that destination
4881         node is analyzed.
4882         (optimize_inline_calls): Assert that destination node is analyzed.
4883         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4884         not call tree_lowering_passes.
4885         * cgraph.h (cgraph_analyze_function): Declare.
4886         * cgraphunit.c (cgraph_analyze_function): Make public.
4888 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4890         * config/sparc/sparc-opts.h: New.
4891         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4892         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4893         (sparc_option_override): Store processor_type enumeration rather
4894         than string in cpu_default.  Remove name and enumeration from
4895         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4896         without using sparc_select.  Use target_flags_explicit instead of
4897         fpu_option_set.
4898         * config/sparc/sparc.h (enum processor_type): Move to
4899         sparc-opts.h.
4900         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4901         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4902         HeaderInclude entry.
4903         (mcpu=, mtune=): Use Var and Enum.
4904         (sparc_processor_type): New Enum and EnumValue entries.
4906 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4907             Iain Sandoe  <iains@gcc.gnu.org>
4909         PR target/48245
4910         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4912 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4914         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4915         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4916         Insert new statements at it in lieu of STMT.
4917         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4918         * tree-vect-stmts.c (vectorizable_store): Likewise.
4919         (vectorizable_load): Likewise.
4921 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4923         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4924         (divtf3): Ditto.
4925         (multf3): Ditto.
4926         (subtf3): Ditto.
4928 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4930         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4931         unaligned 256bit load/store.
4932         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4933         (*avx_movdqu<avxmodesuffix>): Likewise.
4935 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4937         PR target/48288
4938         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4939         * config/pa/pa.md (iordi3): Use new predicate in expander.
4940         (iorsi3): Likewise.
4942 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4944         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4945         FUNCTION_VALUE_REGNO_P): Remove macros.
4946         * config/mips/mips-protos.h (mips_function_value): Remove.
4947         * config/mips/mips.c (mips_function_value): Rename to...
4948         (mips_function_value_1): ... this. Make static.  Handle receiving
4949         the function type in 'fn_decl_or_type' argument.
4950         (mips_function_value, mips_libcall_value,
4951         mips_function_value_regno_p): New function.
4952         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4953         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4955 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4957         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4958         and -mavx256-split-unaligned-store.
4959         (ix86_option_override_internal): Split 32-byte AVX unaligned
4960         load/store by default.
4961         (ix86_avx256_split_vector_move_misalign): New.
4962         (ix86_expand_vector_move_misalign): Use it.
4964         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4965         -mavx256-split-unaligned-store.
4967         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4968         256bit load/store.  Generate unaligned store on misaligned memory
4969         operand.
4970         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4971         256bit load/store.
4972         (*avx_movdqu<avxmodesuffix>): Likewise.
4974         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4975         -mavx256-split-unaligned-store.
4977 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4979         PR target/38598
4980         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4981         Update commentary.
4983 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4985         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4986         opno arguments with an expand_operand.  Use create_input_operand.
4987         (mips_prepare_builtin_target): Delete.
4988         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4989         functions.
4990         (mips_expand_builtin_direct): Use create_output_operand and
4991         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4992         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4993         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4995 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4997         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4998         function.
4999         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5001 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
5003         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
5004         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
5005         basic blocks and call commit_edge_insertions directly.
5006         (fixup_abnormal_edges): Move from here to...
5007         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
5008         on the edges and return whether some have actually been inserted.
5009         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
5010         compensation code.
5012 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
5014         PR rtl-optimization/48144
5015         * sel-sched-ir.c (merge_history_vect): Factor out from ...
5016         (merge_expr_data): ... here.
5017         (av_set_intersect): Rename to av_set_code_motion_filter.
5018         Update all callers.  Call merge_history_vect when an expression
5019         is found in both sets.
5020         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
5022 2011-03-26  Alan Modra  <amodra@gmail.com>
5024         * config/rs6000/predicates.md (word_offset_memref_op): Handle
5025         cmodel medium addresses.
5026         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
5027         64-bit gpr loads and stores.
5028         (rs6000_secondary_reload_ppc64): New function.
5029         * config/rs6000/rs6000-protos.h: Declare it.
5030         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
5032 2011-03-26  Alan Modra  <amodra@gmail.com>
5034         PR target/47487
5035         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5036         GNU Go in traceback table.
5038 2011-03-25  Richard Henderson  <rth@redhat.com>
5040         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5041         if there are exactly 6 operands.
5042         (set_storage_via_setmem): Similarly.
5044 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5046         * collect2.c (write_c_file_stat): Handle backslash
5047         as right-hand directory separator.
5048         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5049         checking just for slash.
5050         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5051         instead of checking for trailing slash.
5052         * gcc.c (record_temp_file): Use filename_cmp instead
5053         of strcmp.
5054         (do_spec_1): Likewise.
5055         (replace_outfile_spec_function): Likewise.
5056         (is_directory): Use filename_ncmp instead of strncmp.
5057         (print_multilib_info): Likewise.
5058         * gcov.c (find_source): Use filename_cmp instead
5059         instead of strcmp.
5060         (make_gcov_file_name): Fix order of slash/backslash
5061         checks.
5062         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5063         (add_standard_paths): Likewise.
5064         * mips-tfile.c (saber_stop): Handle backslash.
5065         * prefix.c (update_path): Use filename_ncmp instead of
5066         strncmp.
5067         * profile.c (output_location): Use filename_cmp instead
5068         of strcmp.
5069         * read-md.c (handle_toplevel_file): Handle backslash.
5070         * tlink.c (frob_extension):  Likewise.
5071         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5072         strcmp.
5073         * tree-dump.c (dequeue_and_dump): Handle backslash.
5074         * tree.c (get_file_function_name): Likewise.
5075         * gengtype.c (read_input_list): Likewise.
5076         (get_file_realbasename): Likewise.
5077         (get_output_file_with_visibility): Use filename_cmp
5078         instead of strcmp.
5080 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5082         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5083         case to VFPv1.
5085 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5087         * fold-const.c (expr_location_or): New function.
5088         (fold_truth_not_expr): Call it.
5090 2011-03-25  Jeff Law  <law@redhat.com>
5092         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5093         va_end.
5094         * c-family/c-common.c (def_fn_type): Likewise.
5095         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5096         * emit-rtl.c (gen_rtvec): Likewise.
5097         * lto/lto-lang.c (def_fn_type): Likewise.
5099 2011-03-25  Richard Guenther  <rguenther@suse.de>
5101         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5102         also generate copies.
5103         (fini_copy_prop): Handle constant values properly.
5105 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5107         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5108         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5109         (hash_loc_operands, compare_loc_operands): Handle
5110         DW_OP_GNU_entry_value.
5112 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5114         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5115         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5116         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5117         comment and use macro TARGET_64BIT_MS_ABI instead.
5118         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5119         and change default behavior for 32-bit MS_ABI.
5120         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5121         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5122         32-bit, too.
5123         (ix86_cfun_abi): Likewise.
5124         (ix86_maybe_switch_abi): Adjust comment.
5125         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5126         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5127         instead of checking for SYSV_ABI.
5128         (ix86_nsaved_sseregs): Likewise.
5129         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5130         to 16 bytes.
5131         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5132         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5133         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5134         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5135         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5137 2011-03-25  Richard Guenther  <rguenther@suse.de>
5139         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5140         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5141         (verify_gimple): Remove.
5142         * tree-cfg.c (verify_gimple_call): Merge verification
5143         from verify_stmts.
5144         (verify_gimple_phi): Merge verification from verify_stmts.
5145         (verify_gimple_label): New function.
5146         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5147         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5148         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5149         (verify_stmts): Rename to verify_gimple_in_cfg.
5150         (verify_gimple_in_cfg): New function.
5151         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5152         * tree-ssa.c (verify_ssa): Likewise.
5153         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5155 2011-03-25  Richard Guenther  <rguenther@suse.de>
5157         * passes.c (init_optimization_passes): Add FRE pass after
5158         early SRA.
5160 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5161             Andrew Stubbs  <ams@codesourcery.com>
5163         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5164         for Cortex-A8.
5165         (arm_movdi_vfp_cortexa8): New pattern.
5166         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5167         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5168         instructions when tuning for Cortex-A8.  Set attribute "arch".
5169         * config/arm/arm.md: Move include arm-tune.md up a bit.
5170         (define_attr "arch"): Add "onlya8" and "nota8" values.
5171         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5173 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5175         PR bootstrap/48282
5176         Revert:
5177         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5179         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5180         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5181         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5182         * passes.c (init_optimization_passes): Move
5183         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5185 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5187         * c-typeck.c (comptypes_internal): Replace target
5188         hook call of comp_type_attributes by version in tree.c file.
5189         * gimple.c (gimple_types_compatible_p_1): Likewise.
5190         * tree-ssa.c (useless_type_conversion_p): Likewise.
5191         * tree.c (build_type_attribute_qual_variant): Likewise.
5192         (attribute_value_equal): New static helper function.
5193         (comp_type_attributes): New function.
5194         (merge_attributes): Use attribute_value_equal for comparison.
5195         (attribute_list_contained): Likewise.
5196         * tree.h (comp_type_attributes): New prototype.
5198 2011-03-25  Richard Guenther  <rguenther@suse.de>
5200         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5201         of complex types at -O0.
5202         (verify_gimple_assign_binary): Likewise.
5203         (verify_gimple_assign_ternary): Likewise.
5205 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5207         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5208         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5210 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5212         PR debug/48041
5213         * dwarf2out.c (output_abbrev_section): Only write table when
5214         abbrev_die_table_in_use > 1.
5216 2011-02-24  Richard Henderson  <rth@redhat.com>
5218         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5219         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5220         (alpha_expand_unaligned_load_words): Use extql.
5221         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5222         (emit_insxl): Handle all modes for consistency.
5224 2011-02-24  Richard Henderson  <rth@redhat.com>
5226         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5227         (alpha_expand_unaligned_load): Likewise.
5228         (alpha_expand_unaligned_store): Likewise.
5229         (alpha_expand_unaligned_load_words): Likewise.
5230         (alpha_expand_unaligned_store_words): Likewise.
5231         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5232         (alpha_split_lock_test_and_set_12): Likewise.
5233         (print_operand, alpha_fold_builtin_extxx): Likewise.
5234         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5235         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5236         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5237         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5238         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5239         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5240         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5241         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5242         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5243         (extwl, extll, extql): Similarly.
5244         (inswh, inslh, insqh): Similarly.
5245         (mskbl, mskwl, mskll, mskql): Similarly.
5246         (mskwh, msklh, mskqh): Similarly.
5248 2011-02-24  Richard Henderson  <rth@redhat.com>
5250         * config/alpha/alpha.md (attribute isa): Add er, ner.
5251         (attribute enabled): Handle them.
5252         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5254 2011-02-24  Richard Henderson  <rth@redhat.com>
5256         * config/alpha/alpha.md (attribute isa): Add vms.
5257         (attribute enabled): Handle it.
5258         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5259         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5260         (*movtf): Rename from *movtf_internal for consistency.
5261         (*movsi): Merge with *movsi_nt_vms.
5262         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5263         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5264         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5265         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5267 2011-02-24  Richard Henderson  <rth@redhat.com>
5269         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5270         (extendqisi2, extendhisi2): Likewise.
5271         (extendqidi2): Simplify BWX/non-BWX expansions.
5272         (extendhidi2): Similarly.
5274 2011-02-24  Richard Henderson  <rth@redhat.com>
5276         * config/alpha/alpha.md (attribute isa): New.
5277         (attribute enabled): New.
5278         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5279         (zero_extendqisi2, zero_extendqidi2): Similarly.
5280         (zero_extendhisi2, zero_extendhidi2): Similarly.
5281         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5283 2011-02-24  Richard Henderson  <rth@redhat.com>
5285         * config/alpha/predicates.md (input_operand): Revert last change;
5286         update comment to mention 32-bit VMS rather than Windows.
5288 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5290         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5291         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5292         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5293         * passes.c (init_optimization_passes): Move
5294         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5296 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5298         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5300 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5302         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5303         correctly.
5305 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5307         PR debug/48204
5308         * simplify-rtx.c (simplify_const_unary_operation): Call
5309         real_convert when changing mode class with FLOAT_EXTEND.
5311 2011-03-24  Nick Clifton  <nickc@redhat.com>
5313         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5314         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5315         * config/rx/rx.c (rx_option_override): Set align_jumps,
5316         align_loops and align_labels if not set by the user.
5317         (rx_align_for_label): New function.
5318         (rx_max_skip_for_label): New function.
5319         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5320         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5321         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5322         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5323         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5325 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5327         PR rtl-optimization/48263
5328         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5329         and original commutative_p handling.  Use maybe_gen_insn.
5331 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5333         * reload.c (find_reloads_subreg_address): Add address_reloaded
5334         parameter and return true there if the full address has been
5335         reloaded.
5336         (find_reloads_toplev): Pass address_reloaded flag.
5337         (find_reloads_address_1): Don't use address_reloaded parameter.
5339 2011-03-24  Jeff Law  <law@redhat.com>
5341         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5342         unused variable "ann".
5343         (remove_unused_locals): Likewise.
5345         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5346         statement.
5348         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5349         after it is freed.
5351 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5353         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5354         for invalid symbolic addresses.
5355         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5356         larl operands.
5358 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5360         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5361         the argument in calls to fold_truth_not_expr.
5363 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5365         * tree.c (record_node_allocation_statistics): New function.
5366         (make_node_stat, copy_node_stat, build_string): Call it.
5367         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5368         (build1_stat, build_omp_clause): Likewise.
5370 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5372         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5373         last commit.
5375 2011-03-24  Richard Guenther  <rguenther@suse.de>
5377         PR tree-optimization/48271
5378         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5379         blocks that still exist.
5381 2011-03-24  Richard Guenther  <rguenther@suse.de>
5383         PR tree-optimization/48270
5384         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5385         not free datarefs before ddrs.
5387 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5389         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5390         from the address built for a reference with variable offset.
5392 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5394         PR target/48237
5395         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5396         alternatives that can be handled with movq or movabsq insn.
5397         (*movdf_internal): Disable for !TARGET_64BIT.
5398         (*movdf_internal_nointeger): Ditto.
5399         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5401 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5403         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5404         (FUNCTION_ARG_ADVANCE): Likewise.
5405         * tm.texi.in: Change references to them to hook references.
5406         * tm.texi: Regenerate.
5407         * targhooks.c (default_function_arg): Eliminate check for target macro.
5408         (default_function_incoming_arg): Likewise.
5409         (default_function_arg_advance): Likewise.
5410         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5411         (function_arg_advance): Likewise.
5412         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5414 2011-03-24  Richard Guenther  <rguenther@suse.de>
5416         PR middle-end/48269
5417         * tree-object-size.c (addr_object_size): Do not double-account
5418         for MEM_REF offsets.
5420 2011-03-24  Diego Novillo  <dnovillo@google.com>
5422         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5423         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5424         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5425         Update all users.
5426         (lto_input_string): Rename from input_string.  Make extern.
5427         Update all users.
5428         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5429         output_string_with_length.
5430         Output 0 to indicate a non-NULL string.  Update all callers to
5431         not emit 0.
5432         (lto_output_string): Rename from output_string.  Make extern.
5433         Update all users.
5434         (lto_output_decl_state_streams): Make extern.
5435         (lto_output_decl_state_refs): Make extern.
5436         * lto-streamer.h (lto_input_string): Declare.
5437         (lto_input_data_block): Declare.
5438         (lto_output_string): Declare.
5439         (lto_output_string_with_length): Declare.
5440         (lto_output_decl_state_streams): Declare.
5441         (lto_output_decl_state_refs): Declare.
5443 2011-03-24  Richard Guenther  <rguenther@suse.de>
5445         PR tree-optimization/46562
5446         * tree.c (build_invariant_address): New function.
5447         * tree.h (build_invariant_address): Declare.
5448         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5449         a renamed function moved ...
5450         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5451         Take valueization callback parameter.
5452         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5453         * gimple-fold.h: New file.
5454         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5455         (ccp_fold, fold_const_aggregate_ref,
5456         fold_ctor_reference, fold_nonarray_ctor_reference,
5457         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5458         get_base_constructor): Move ...
5459         * gimple-fold.c: ... here.
5460         (gimple_fold_stmt_to_constant_1): New function
5461         split out from ccp_fold.  Take a valueization callback parameter.
5462         Valueize all operands.
5463         (gimple_fold_stmt_to_constant): New wrapper function.
5464         (fold_const_aggregate_ref_1): New function split out from
5465         fold_const_aggregate_ref.  Take a valueization callback parameter.
5466         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5467         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5468         invariant POINTER_PLUS_EXPRs to invariant form.
5469         (vn_valueize): New function.
5470         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5471         * tree-vrp.c (vrp_valueize): New function.
5472         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5473         to fold statements to constants.
5474         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5475         function declarations.
5476         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5477         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5479 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5481         * config/h8300/predicates.md (jump_address_operand): Fix register
5482         mode check.
5484 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5486         * doc/invoke.texi (max-stores-to-sink): Document.
5487         * params.h (MAX_STORES_TO_SINK): Define.
5488         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5489         if either vectorization or if-conversion is disabled.
5490         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5491         tree-vect-data-refs.c vect_equal_offsets.
5492         (dr_equal_offsets_p): New function.
5493         (find_data_references_in_bb): Remove static.
5494         * tree-data-ref.h (find_data_references_in_bb): Declare.
5495         (dr_equal_offsets_p): Likewise.
5496         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5497         (vect_drs_dependent_in_basic_block): Update calls to
5498         vect_equal_offsets.
5499         (vect_check_interleaving): Likewise.
5500         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5501         (cond_if_else_store_replacement): Rename to...
5502         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5503         documentation.
5504         (cond_if_else_store_replacement): New function.
5505         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5506         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5508 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5510         PR target/46934
5511         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5512         to subtract lower bound instead of GEN_INT().
5514 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5516         PR other/48179
5517         PR other/48221
5518         PR other/48234
5519         * doc/extend.texi (Alignment): Move section to match order in TOC.
5520         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5521         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5523 2011-03-23  Jeff Law  <law@redhat.com>
5525         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5526         before removing the edge.
5528         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5529         it may have been freed by redirect_branch_edge or
5530         redirect_edge_succ_nodup.
5532 2011-03-23  Richard Guenther  <rguenther@suse.de>
5534         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5535         (check_va_list_escapes): Likewise.
5536         (check_all_va_list_escapes): Likewise.
5538 2011-03-23  Richard Guenther  <rguenther@suse.de>
5540         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5541         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5542         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5543         (alias.o): Likewise.
5544         (ipa-type-escape.o): Remove.
5545         (ipa-struct-reorg.o): Likewise.
5546         (GTFILES): Remove ipa-struct-reorg.c.
5547         * alias.c: Do not include ipa-type-escape.h.
5548         * tree-ssa-alias.c: Likewise.
5549         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5550         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5551         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5552         and ipa-type-escape passes.
5553         * tree-pass.h (pass_ipa_type_escape): Remove.
5554         (pass_ipa_struct_reorg): Likewise.
5555         * ipa-struct-reorg.h: Remove.
5556         * ipa-struct-reorg.c: Likewise.
5557         * ipa-type-escape.h: Likewise.
5558         * ipa-type-escape.c: Likewise.
5559         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5560         (--param struct-reorg-cold-struct-ratio): Likewise.
5561         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5562         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5563         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5565 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5567         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5568         cpu attribute value.
5569         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5570         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5571         * config/s390/s390.c (processor_flags_table): New constant array.
5572         (s390_handle_arch_option): Remove.
5573         (s390_handle_option): Remove s390_handle_arch_option invocations
5574         and OPT_mwarn_framesize_ handling.
5575         (s390_option_override): Remove s390_handle_arch_option invocation.
5576         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5577         warnings.
5578         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5579         * config/s390/s390.opt (s390_tune, s390_arch)
5580         (march=): Replace s390_arch_option enum and values with
5581         processor_type.  Set variable name to s390_arch.  Set
5582         initialization value.
5583         (mtune=): Replace s390_arch_option with processor_type.  Set
5584         variable name to s390_tune.  Set initialization value.
5586 2011-03-23  Julian Brown  <julian@codesourcery.com>
5588         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5589         accesses which are not naturally aligned.
5591 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5593         PR target/47553
5594         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5596 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5598         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5599         parameter from "int" to "enum insn_code".
5600         (expand_operand_type): New enum.
5601         (expand_operand): New structure.
5602         (create_expand_operand): New function.
5603         (create_fixed_operand, create_output_operand): Likewise
5604         (create_input_operand, create_convert_operand_to): Likewise.
5605         (create_convert_operand_from, create_address_operand): Likewise.
5606         (create_integer_operand): Likewise.
5607         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5608         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5609         (expand_insn, expand_jump_insn): Likewise.
5610         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5611         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5612         (expand_movstr, expand_builtin___clear_cache): Likewise.
5613         (expand_builtin_lock_release): Likewise.
5614         * explow.c (allocate_dynamic_stack_space): Likewise.
5615         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5616         and use the default handling in that case.
5617         * expmed.c (check_predicate_volatile_ok): Delete.
5618         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5619         (emit_cstore): Likewise.
5620         * expr.c (emit_block_move_via_movmem): Likewise.
5621         (set_storage_via_setmem, expand_assignment): Likewise.
5622         (emit_storent_insn, try_casesi): Likewise.
5623         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5624         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5625         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5626         (expand_twoval_unop, expand_twoval_binop): Likewise.
5627         (expand_unop_direct, emit_indirect_jump): Likewise.
5628         (emit_conditional_move, vector_compare_rtx): Likewise.
5629         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5630         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5631         (expand_sync_lock_test_and_set): Likewise.
5632         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5633         (emit_unop_insn): Likewise.
5634         (expand_copysign_absneg): Change icode to an insn_code.
5635         (create_convert_operand_from_type): New function.
5636         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5637         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5638         (expand_insn, expand_jump_insn): Likewise.
5639         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5640         than const_int_operand for operand 2.
5642 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5644         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5645         if possible.
5647 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5649         * emit-rtl.c (emit_pattern_before_noloc): New function.
5650         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5651         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5652         (emit_pattern_after_noloc): New function.
5653         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5654         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5656 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5658         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5659         (__ffsDI2): Likewise.
5661 2011-03-22  Richard Henderson  <rth@redhat.com>
5663         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5664         of !TARGET_ABI_OPEN_VMS.
5665         (alpha_trampoline_init, alpha_start_function): Likewise.
5666         (alpha_expand_epilogue, alpha_file_start): Likewise.
5667         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5668         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5669         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5670         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5671         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5673 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5675         * config/s390/s390-opts.h: New.
5676         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5677         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5678         s390_stack_guard): Remove.
5679         (s390_handle_arch_option): Return void.  Take enum
5680         s390_arch_option value instead of string and searching array.
5681         (s390_handle_option): Don't assert that global structures are in
5682         use.  Access variables via opts pointer.  Use error_at.  Don't use
5683         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5684         s390_handle_arch_option.
5685         (s390_option_override): Update call to s390_handle_arch_option.
5686         (s390_emit_prologue): Use %d format for s390_stack_size in
5687         diagnostic.  Use %wd for HOST_WIDE_INT.
5688         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5689         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5690         * config/s390/s390.opt (config/s390/s390-opts.h): New
5691         HeaderInclude entry.
5692         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5693         s390_arch_flags, s390_warn_framesize): New Variable entries.
5694         (s390_arch_option): New Enum and EnumValue entries.
5695         (march=): Use Enum instead of Var.
5696         (mstack-guard=, mstack-size=): Use UInteger and Var.
5697         (mtune=): Use Enum.
5699 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5701         * config/score/score.c (score_handle_option): Don't assert that
5702         global structures are in use.  Access target_flags via opts
5703         pointer.  Use value of -march= option to determine target_flags
5704         settings.
5705         * config/score/score.opt (march=): Use Enum.
5706         (score_arch): New Enum and EnumValue entries.
5708 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5710         * config/mep/mep.c (option_mtiny_specified): Remove.
5711         (mep_option_override): Move register handling for -mivc2 from
5712         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5713         instead of option_mtiny_specified.
5714         (mep_handle_option): Access target_flags via opts pointer.  Don't
5715         assert that global structures are in use.  Defer part of -mivc2
5716         handling and move it to mep_option_override.
5717         * config/mep/mep.opt (IVC2): New Mask entry.
5718         (mivc2): Use Var and Defer instead of Mask.
5720 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5722         * config/v850/v850-opts.h: New.
5723         * config/v850/v850.c (small_memory): Replace with
5724         small_memory_physical_max array.  Make that array static const.
5725         (v850_handle_memory_option): Take integer value of argument.  Take
5726         gcc_options pointer, option text and location.  Return void.
5727         Update for changes to small memory structures.
5728         (v850_handle_option): Access target_flags via opts pointer.  Don't
5729         assert that global structures are in use.  Update calls to
5730         v850_handle_memory_option.
5731         (v850_encode_data_area): Update references to small memory settings.
5732         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5733         (enum small_memory_type): Move to v850-opts.h.
5734         * config/v850/v850.opt (config/v850/v850-opts.h): New
5735         HeaderInclude entry.
5736         (small_memory_max): New Variable entry.
5737         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5738         (mtda, mzda): Likewise.
5740 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5742         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5743         pointer.  Don't assert that global structures are in use.
5745 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5747         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5748         via opts pointer.  Don't assert that global structures are in use.
5750 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5752         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5753         (munix=93): Use Var.
5754         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5755         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5756         * config/pa/pa-opts.h: New.
5757         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5758         (pa_handle_option): Don't assert that global structures are in
5759         use.  Access target_flags via opts pointer.  Don't handle
5760         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5761         OPT_munix_98 here.
5762         (pa_option_override): Handle deferred OPT_mfixed_range_.
5764 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5766         * config/mn10300/mn10300-opts.h: New.
5767         * config/mn10300/mn10300.c (mn10300_processor,
5768         mn10300_tune_string): Remove.
5769         (mn10300_handle_option): Don't assert that global structures are
5770         in use.  Access mn10300_processor via opts pointer.  Don't handle
5771         OPT_mtune_ here.
5772         * config/mn10300/mn10300.h (enum processor_type): Move to
5773         mn10300-opts.h.
5774         (mn10300_processor): Remove.
5775         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5776         HeaderInclude entry.
5777         (mn10300_processor): New Variable entry.
5778         (mtune=): Use Var.
5780 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5782         * config/microblaze/microblaze.c: Don't include opts.h.
5783         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5784         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5785         (mno-clearbss): Use Var and Warn.
5787 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5789         * config/m32r/m32r-opts.h: New.
5790         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5791         (m32r_handle_option): Don't assert that global structures are in
5792         use.  Access target_flags and m32r_cache_flush_func via opts
5793         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5794         OPT_mno_flush_trap here.
5795         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5796         include of m32r-opts.h.
5797         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5798         HeaderInclude entry.
5799         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5800         (mmodel=): Use Enum and Var.
5801         (m32r_model): New Enum and EnumValue entries.
5802         (mno-flush-trap): Use Var.
5803         (msdata=): Use Enum and Var.
5804         (m32r_sdata): New Enum and EnumValue entries.
5806 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5808         * config/m32c/m32c.c: Don't include opts.h.
5809         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5810         m32c_handle_option): Remove.
5811         (m32c_option_override): Check global_options_set.x_target_memregs
5812         instead of target_memregs_set.
5813         * config/m32c/m32c.h (target_memregs): Remove.
5814         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5815         variable.
5817 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5819         * config/iq2000/iq2000-opts.h: New.
5820         * config/iq2000/iq2000.c: Don't include opts.h.
5821         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5822         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5823         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5824         HeaderInclude entry.
5825         (iq2000_tune): New Variable entry.
5826         (march=): Add comment.  Use Enum.
5827         (iq2000_arch): New Enum and EnumValue entries.
5828         (mcpu=): Use Enum and Var.
5829         (iq2000_tune): New Enum and EnumValue entries.
5831 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5833         * config/ia64/ia64-opts.h: New.
5834         * config/ia64/ia64.c (ia64_tune): Remove.
5835         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5836         here.  Use error_at.
5837         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5838         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5839         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5840         HeaderInclude entry.
5841         (ia64_tune): New Variable entry.
5842         (mfixed-range=): Use Defer and Var.
5843         (mtune=): Use Enum and Var.
5844         (ia64_tune): New Enum and EnumValue entries.
5846 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5848         * config/frv/frv-opts.h: New.
5849         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5850         frv-opts.h.
5851         (frv_cpu_type): Remove.
5852         * config/frv/frv.c: Don't include opts.h.
5853         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5854         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5855         (frv_cpu_type): New Variable entry.
5856         (frv_cpu): New Enum and EnumValue entries.
5858 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5860         * config/cris/cris.c (cris_handle_option): Access target_flags via
5861         opts pointer.  Don't assert that global structures are in use.
5862         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5863         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5865 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5867         * config/bfin/bfin-opts.h: New.
5868         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5869         bfin_si_revision, bfin_workarounds): Remove.
5870         (bfin_cpus): Make static const.
5871         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5872         not bfin_lib_id_given.
5873         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5874         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5875         pointer. Use error_at.  Don't assert that global structures are in use.
5876         * config/bfin/bfin.h: Include bfin-opts.h.
5877         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5878         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5879         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5880         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5881         entries.
5883 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5885         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5886         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5887         or -msoft-float here.
5888         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5889         -msoft-float and -mhard-float.
5890         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5891         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5892         msoft-float.
5893         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5894         -msoft-float.
5895         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5896         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5897         not mhard-float.
5898         (LIBGCC_SPEC): Don't handle -msoft-float.
5899         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5900         -mhard-float.
5901         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5902         msoft-float.
5903         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5904         -mfloat-abi=*, not -msoft-float and -mhard-float.
5905         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5906         -msoft-float.
5907         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5908         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5909         mhard-float and msoft-float.
5910         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5911         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5912         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5913         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5914         mhard-float.
5915         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5916         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5917         msoft-float.
5918         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5919         not mhard-float.
5920         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5921         not msoft-float.
5923 2011-03-22  Richard Henderson  <rth@redhat.com>
5925         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5926         TARGET_ABI_WINDOWS_NT.
5927         (alpha_output_function_end_prologue): Likewise.
5928         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5929         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5930         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5931         (trap, *movsi_nt_vms): Likewise.
5932         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5933         (*tablejump_osf_nt_internal): Remove.
5934         * config/alpha/predicates.md (input_operand): Only test Pmode.
5936 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5938         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5939         via opts pointer.  Use error_at.  Don't assert that global
5940         structures are in use.
5942 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5944         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5945         (ix86_handle_option): Access ix86_isa_flags and
5946         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5947         global structures are in use.
5948         (ix86_function_specific_save, ix86_function_specific_restore):
5949         Update ix86_isa_flags_explicit field name.
5950         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5951         (ix86_isa_flags_explicit): Rename TargetSave entry to
5952         x_ix86_isa_flags_explicit.
5954 2011-03-22  Richard Henderson  <rth@redhat.com>
5956         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5957         (alpha_option_override, direct_return): Likewise.
5958         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5959         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5960         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5961         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5962         (alpha_expand_epilogue, alpha_end_function): Likewise.
5963         (alpha_init_libfuncs): Likewise.
5964         (struct machine_function): Remove unicosmk members.
5965         (print_operand) ['t']: Remove.
5966         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5967         unicosmk_output_module_name, unicosmk_output_common,
5968         current_section_align, unicosmk_output_text_section_asm_op,
5969         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5970         unicosmk_section_type_flags, unicosmk_unique_section,
5971         unicosmk_asm_named_section, unicosmk_insert_attributes,
5972         unicosmk_output_align, unicosmk_defer_case_vector,
5973         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5974         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5975         unicosmk_output_ssib, unicosmk_add_call_info_word,
5976         unicosmk_extern_head, unicosmk_output_default_externs,
5977         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5978         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5979         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5980         * config/alpha/alpha-protos.h: Update.
5981         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5982         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5983         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5984         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5985         (*mulsi_se, mulvsi3): Likewise.
5986         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5987         (*divmodsi_internal, call, call_value, realign): Likewise.
5988         (moddi3, umoddi3): Likewise; remove duplicate expander.
5989         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5990         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5991         (*movdi_nofix): Remove r/U alternative.
5992         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5993         * config/alpha/constraints.md ("U"): Remove.
5994         * config/alpha/predicates.md (call_operand"): Don't test
5995         TARGET_ABI_UNICOSMK.
5997 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5999         * target.def (handle_option): Take gcc_options and
6000         cl_decoded_option pointers and location_t.
6001         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
6002         * doc/tm.texi: Regenerate.
6003         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
6004         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
6005         * lto-opts.c (lto_reissue_options): Generate option structure for
6006         targetm.handle_option call.
6007         * opts.c (target_handle_option): Update call to
6008         targetm.handle_option.  Remove assertions about values now passed
6009         down to hook.
6010         * targhooks.c (default_target_handle_option): New.
6011         * targhooks.h (default_target_handle_option): Declare.
6012         * config/alpha/alpha.c: Include opts.h.
6013         (alpha_handle_option): Update to new hook interface.
6014         * config/arm/arm.c: Include opts.h.
6015         (arm_handle_option): Update to new hook interface.
6016         * config/arm/t-arm (arm.o): Update dependencies.
6017         * config/bfin/bfin.c: Include opts.h.
6018         (bfin_handle_option): Update to new hook interface.
6019         * config/cris/cris.c: Include opts.h.
6020         (cris_handle_option): Update to new hook interface.
6021         * config/frv/frv.c: Include opts.h.
6022         (frv_handle_option): Update to new hook interface.
6023         * config/i386/i386.c: Include opts.h.
6024         (ix86_handle_option): Update to new hook interface.
6025         (ix86_valid_target_attribute_inner_p): Generate option structure
6026         for call to ix86_handle_option.
6027         * config/i386/t-i386 (i386.o): Update dependencies.
6028         * config/ia64/ia64.c: Include opts.h.
6029         (ia64_handle_option): Update to new hook interface.
6030         * config/ia64/t-ia64 (ia64.o): Update dependencies.
6031         * config/iq2000/iq2000.c: Include opts.h.
6032         (iq2000_handle_option): Update to new hook interface.
6033         * config/m32c/m32c.c: Include opts.h.
6034         (m32c_handle_option): Update to new hook interface.
6035         * config/m32r/m32r.c: Include opts.h.
6036         (m32r_handle_option): Update to new hook interface.
6037         * config/m68k/m68k.c: Include opts.h.
6038         (m68k_handle_option): Update to new hook interface.
6039         * config/mep/mep.c: Include opts.h.
6040         (mep_handle_option): Update to new hook interface.
6041         * config/microblaze/microblaze.c: Include opts.h.
6042         (microblaze_handle_option): Update to new hook interface.
6043         * config/mips/mips.c: Include opts.h.
6044         (mips_handle_option): Update to new hook interface.
6045         * config/mn10300/mn10300.c: Include opts.h.
6046         (mn10300_handle_option): Update to new hook interface.
6047         * config/pa/pa.c: Include opts.h.
6048         (pa_handle_option): Update to new hook interface.
6049         * config/pdp11/pdp11.c: Include opts.h.
6050         (pdp11_handle_option): Update to new hook interface.
6051         * config/rs6000/rs6000.c: Include opts.h.
6052         (rs6000_handle_option): Update to new hook interface.
6053         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6054         * config/rx/rx.c: Include opts.h.
6055         (rx_handle_option): Update to new hook interface.
6056         * config/s390/s390.c: Include opts.h.
6057         (s390_handle_option): Update to new hook interface.
6058         * config/score/score.c: Include opts.h.
6059         (score_handle_option): Update to new hook interface.
6060         * config/sh/sh.c: Include opts.h.
6061         (sh_handle_option): Update to new hook interface.
6062         * config/sparc/sparc.c: Include opts.h.
6063         (sparc_handle_option): Update to new hook interface.
6064         * config/v850/v850.c: Include opts.h.
6065         (v850_handle_option): Update to new hook interface.
6067 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6069         * gcc.c (driver_unknown_option_callback): Only permit and save
6070         unknown -Wno- options.
6071         (driver_wrong_lang_callback): Save options directly instead of via
6072         driver_unknown_option_callback.
6074 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6076         * combine.c (simplify_set): Try harder to find the best CC mode when
6077         simplifying a nested COMPARE on the RHS.
6079 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6081         * config/alpha/gnu.h: Remove.
6082         * config/arc: Remove directory.
6083         * config/arm/netbsd.h: Remove.
6084         * config/arm/t-pe: Remove.
6085         * config/crx: Remove directory.
6086         * config/i386/netbsd.h: Remove.
6087         * config/m68hc11: Remove directory.
6088         * config/m68k/uclinux-oldabi.h: Remove.
6089         * config/mcore/mcore-pe.h: Remove.
6090         * config/mcore/t-mcore-pe: Remove.
6091         * config/netbsd-aout.h: Remove.
6092         * config/rs6000/gnu.h: Remove.
6093         * config/sh/sh-symbian.h: Remove.
6094         * config/sh/symbian-base.c: Remove.
6095         * config/sh/symbian-c.c: Remove.
6096         * config/sh/symbian-cxx.c: Remove.
6097         * config/sh/symbian-post.h: Remove.
6098         * config/sh/symbian-pre.h: Remove.
6099         * config/sh/t-symbian: Remove.
6100         * config/svr3.h: Remove.
6101         * config/vax/netbsd.h: Remove.
6102         * config.build: Don't handle i[34567]86-*-pe.
6103         * config.gcc: Remove handling of deprecations for most deprecated
6104         targets.
6105         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6106         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6107         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6108         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6109         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6110         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6111         Remove cases.
6112         * config.host: Don't handle i[34567]86-*-pe.
6113         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6114         (ASM_SPEC32): Don't handle -mcall-gnu.
6115         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6116         -mcall-gnu.
6117         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6118         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6119         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6120         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6121         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6122         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6123         conditional on SYMBIAN.
6124         * configure.ac: Don't handle powerpc*-*-gnu*.
6125         * configure: Regenerate.
6126         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6127         * doc/install-old.texi (m6811, m6812): Don't mention.
6128         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6129         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6130         (m68k-uclinuxoldabi): Don't mention.
6131         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6132         Remove.
6133         (-mcall-gnu): Remove.
6134         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6135         families): Remove constraint documentation.
6137 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6139         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6140         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6141         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6143 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6145         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6146         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6147         * config/avr/avr.c (init_cumulative_args)
6148         (avr_function_arg_advance): Use it.
6149         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6150         sibcall epilogues.
6151         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6152         (avr_function_ok_for_sibcall): ...this new function.
6153         (avr_lookup_function_attribute1): New static Function.
6154         (avr_naked_function_p, interrupt_function_p)
6155         (signal_function_p, avr_OS_task_function_p)
6156         (avr_OS_main_function_p): Use it.
6157         * config/avr/avr.md ("sibcall", "sibcall_value")
6158         ("sibcall_epilogue"): New expander.
6159         ("*call_insn", "*call_value_insn"): New insn.
6160         ("call_insn", "call_value_insn"): Remove
6161         ("call", "call_value", "epilogue"): Change expander to handle
6162         sibling calls.
6164 2011-03-21  Nick Clifton  <nickc@redhat.com>
6166         * doc/invoke.texi (Overall Options): Move closing brace to end of
6167         options list.
6168         (Optimization Options): Add missing @gol.
6169         (Directory Options): Likewise.
6170         (i386 and x86-64 Options): Likewise.
6171         (RS6000 and PowerPC Options): Likewise.
6172         (i386 and x86-64 Windows Options): Likewise.
6173         (V850 Options): Add text missing from descriptions.
6175 2011-03-22  Richard Henderson  <rth@redhat.com>
6177         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6178         (avr_incoming_return_addr_rtx): New.
6179         (emit_push_byte): New.
6180         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6181         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6182         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6183         (emit_pop_byte): New.
6184         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6185         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6186         (INCOMING_RETURN_ADDR_RTX): New.
6187         (INCOMING_FRAME_SP_OFFSET): New.
6188         (ARG_POINTER_CFA_OFFSET): New.
6189         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6190         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6191         (pophi): Remove.
6193         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6195 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6197         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6198         (FUNCTION_ARG_ADVANCE): Likewise.
6199         * tm.texi.in: Change references to them to hook references.
6200         * tm.texi: Regenerate.
6201         * targhooks.c (default_function_arg): Eliminate check for target
6202         macro.
6203         (default_function_incoming_arg): Likewise.
6204         (default_function_arg_advance): Likewise.
6205         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6206         (function_arg_advance): Likewise.
6207         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6209 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6211         * tree.c (build_call_1): New function.
6212         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6214 2011-03-22  Richard Guenther  <rguenther@suse.de>
6216         PR tree-optimization/48228
6217         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6218         for single-arg PHIs.
6220 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6222         PR rtl-optimization/48143
6223         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6224         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6225         sse2_cvtps2pd): Likewise.
6227 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6229         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6231 2011-03-22  Richard Guenther  <rguenther@suse.de>
6233         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6234         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6235         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6236         and REALIGN_LOAD_EXPR.
6237         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6238         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6239         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6240         DOT_PROD_EXPR case ...
6241         (expand_expr_real_2): ... here.
6242         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6243         and REALIGN_LOAD_EXPR.
6244         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6245         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6246         (vect_create_epilog_for_reduction): Likewise.
6247         (vectorizable_reduction): Likewise.
6248         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6249         * tree-vect-stmts.c (vectorizable_load): Likewise.
6251 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6253         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6255 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6257         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6258         handling for PLTOFF/GOTOFF.
6260 2011-03-22  Nick Clifton  <nickc@redhat.com>
6262         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6263         trailing backslash from the end of the macro definition.
6265 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6267         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6268         and PLT unspecs.
6270 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6272         * expr.h (prepare_operand): Move to...
6273         * optabs.h (prepare_operand): ...here and change the insn code
6274         parameter from "int" to "enum insn_code".
6275         (insn_operand_matches): Declare.
6276         * expr.c (init_expr_target): Use insn_operand_matches.
6277         (compress_float_constant): Likewise.
6278         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6279         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6280         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6281         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6282         Likewise.
6283         (gen_cond_trap): Likewise.
6284         (prepare_operand): Likewise.  Change icode to an insn_code.
6285         (insn_operand_matches): New function.
6286         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6287         * reload1.c (gen_reload): Likewise.
6288         * targhooks.c (default_secondary_reload): Likewise.
6290 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6292         * config/alpha/alpha.md (unspec): New define_c_enum.
6293         (unspecv): Ditto.
6295 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6297         PR debug/48214
6298         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6299         between a call and its CALL_ARG_LOCATION note.
6301 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6303         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6305 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6307         PR c/42544
6308         PR c/48197
6309         * c-common.c (shorten_compare): If primopN is first sign-extended
6310         to opN and then zero-extended to result type, set primopN to opN.
6312 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6314         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6315         for barrier handlers.
6317 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6319         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6320         UNSPEC constants to be in the unspec enumeration, and redefine
6321         all UNSPECV constants to be in the unspecv enumeration, so that
6322         dumps print which unspec/unspec_volatile this is.
6323         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6324         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6325         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6326         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6327         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6329         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6330         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6331         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6332         * config/rs6000/sync.md (isync, lwsync): Ditto.
6334 2011-03-21  Richard Guenther  <rguenther@suse.de>
6336         * params.def (lto-min-partition): Fix typo.
6338 2011-03-21  Richard Guenther  <rguenther@suse.de>
6340         PR c/47939
6341         * c-decl.c (grokdeclarator): Drop to the main variant only
6342         for array types.  Drop flag_gen_aux_info check.
6344 2011-03-21  Richard Guenther  <rguenther@suse.de>
6346         PR translation/47911
6347         * params.def (lto-partitions): Fix typo.
6348         (lto-min-partition): Fix wording.
6350 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6352         * config/rs6000/t-freebsd: Remove duplication from file.
6354 2011-03-21  Richard Guenther  <rguenther@suse.de>
6356         PR middle-end/47661
6357         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6359 2011-03-21  Richard Guenther  <rguenther@suse.de>
6361         PR lto/48210
6362         * params.def (lto-partitions): Require at least 1 partition.
6364 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6366         * gthr-solaris.h: Remove.
6367         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6368         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6369         (LIB_SPEC): Likewise.
6370         * config/sol2.opt (threads): Remove.
6371         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6372         (sparc*-*-solaris2*): Likewise.
6373         * configure.ac (enable_threads): Enable solaris support.
6374         * configure: Regenerate.
6375         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6376         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6377         solaris.
6379 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6381         * config.gcc: Obsolete *-*-solaris2.8*.
6382         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6384 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6386         PR bootstrap/48135
6387         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6388         reference.  Solaris 8 perl works.
6390 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6392         PR bootstrap/48135
6393         * doc/install.texi (Prerequisites): Move jar etc. up.
6394         Explain support library version requirements.
6396 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6398         PR bootstrap/48135
6399         * doc/install.texi (Prerequisites): Move Perl to build
6400         requirements.  Always necessary on Solaris 2 with Sun ld.
6402 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6404         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6405         binutils 2.21.
6406         (Specific, i?86-*-solaris2.[89]): Likewise.
6407         (Specific, i?86-*-solaris2.10): Likewise.
6408         (Specific, mips-sgi-irix6): Likewise.
6409         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6410         Update for binutils 2.21.
6412 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6414         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6415         Allow -fuse-linker-plugin for non-default plugin linker.
6416         * configure: Regenerate.
6418 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6420         PR bootstrap/48167
6421         * gengtype.c (files_rules): Added rule for cp/parser.h.
6423 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6425         PR target/48213
6426         * config/s390/s390.c (s390_delegitimize_address): Don't call
6427         lowpart_subreg if orig_x has BLKmode.
6429 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6431         PR target/12171
6432         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6433         * tree.h (attribute_spec): Add new member affects_type_identity.
6434         * attribs.c (empty_attribute_table): Adjust attribute_spec
6435         initializers.
6436         * config/alpha/alpha.c: Likewise.
6437         * config/arc/arc.c: Likewise.
6438         * config/arm/arm.c: Likewise.
6439         * config/avr/avr.c: Likewise.
6440         * config/bfin/bfin.c: Likewise.
6441         * config/crx/crx.c: Likewise.
6442         * config/darwin.h: Likewise.
6443         * config/h8300/h8300.c: Likewise.
6444         * config/i386/cygming.h: Likewise.
6445         * config/i386/i386.c: Likewise.
6446         * config/ia64/ia64.c: Likewise.
6447         * config/m32c/m32c.c: Likewise.
6448         * config/m32r/m32r.c: Likewise.
6449         * config/m68hc11/m68hc11.c: Likewise.
6450         * config/m68k/m68k.c: Likewise.
6451         * config/mcore/mcore.c: Likewise.
6452         * config/mep/mep.c: Likewise.
6453         * config/microblaze/microblaze.c: Likewise.
6454         * config/mips/mips.c: Likewise.
6455         * config/rs6000/rs6000.c: Likewise.
6456         * config/rx/rx.c: Likewise.
6457         * config/sh/sh.c: Likewise.
6458         * config/sol2.h: Likewise.
6459         * config/sparc/sparc.c: Likewise.
6460         * config/spu/spu.c: Likewise.
6461         * config/stormy16/stormy16.c: Likewise.
6462         * config/v850/v850.c: Likewise.
6464 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6466         * simplify-rtx.c (simplify_binary_operation_1): Handle
6467         (xor (and A B) C) case when B and C are both constants.
6469 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6471         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6473 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6475         PR bootstrap/48168
6476         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6478 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6480         PR rtl-optimization/48156
6481         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6482         assume df and df_lr are not NULL.
6484 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6486         PR debug/48023
6487         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6488         between a call and its CALL_ARG_LOCATION note.
6490 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6492         PR debug/48178
6493         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6494         between a call and its corresponding CALL_ARG_LOCATION note.
6496 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6498         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6499         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6500         * haifa-sched.c (setup_ref_regs): Ditto.
6501         * caller-save.c (add_used_regs_1): Ditto.
6502         * dse.c (look_for_hardregs): Ditto.
6503         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6504         * sched-rgn.c (check_live_1): Ditto.
6506 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6508         * c-decl.c (diagnose_mismatched_decls): Give an error for
6509         redefining a typedef with variably modified type.
6511 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6513         * c-decl.c (grokfield): Don't allow typedefs for structures or
6514         unions with no tag by default.
6515         * doc/extend.texi (Unnamed Fields): Update.
6517 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6519         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6520         Rewrite using indirect functions.
6521         (lwp_slwpcb): Ditto.
6522         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6523         (avx_vinsertf128<mode>): Ditto.
6525 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6527         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6528         unspecs.
6530 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6532         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6533         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6535 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6537         PR rtl-optimization/48170
6538         * gcse.c (hoist_code): Remove bogus asserts.
6540 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6542         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6543         computation for prologue/epilogue.
6545 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6547         * Makefile.in (check-consistency): Remove.
6549 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6551         PR debug/48176
6552         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6553         arange_table_in_use is 0, but either text_section_used or
6554         cold_text_section_used is true.  Don't call it if
6555         !info_section_emitted.
6557 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6559         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6560         FUNCTION_VALUE_REGNO_P): Remove.
6561         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6562         Remove.
6563         * config/avr/avr.c (avr_ret_register): Make static inline.
6564         (avr_function_value_regno_p): New function.
6565         (avr_libcall_value): Make static. Add 'func' argument.
6566         (avr_function_value): Make static. Rename 'func' argument to
6567         'fn_decl_or_type', forward it to avr_libcall_value. Call
6568         avr_ret_register function instead of RET_REGISTER macro.
6569         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6571 2011-03-18  Jason Merrill  <jason@redhat.com>
6573         PR c++/23372
6574         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6576 2011-03-18  Richard Guenther  <rguenther@suse.de>
6578         * doc/install.texi (--enable-gold): Remove.
6579         (--with-plugin-ld): Document.
6580         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6582 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6584         PR middle-end/47790
6585         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6586         again after expansion changes.
6588 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6590         * combine.c (try_combine): Do simplification only call of
6591         subst() on i2 even when i1 is present. Update comments.
6593 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6595         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6596         and UNSPEC_PCREL_SYMOFF.
6598 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6600         * config/s390/s390.md: Use define_c_enum for the unspec constant
6601         definitions.
6603 2011-03-18  Richard Henderson  <rth@redhat.com>
6604             Jakub Jelinek  <jakub@redhat.com>
6606         PR bootstrap/48161
6607         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6608         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6610 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6612         PR middle-end/47725
6613         * combine.c (cant_combine_insn_p): Don't check zero/sign
6614         extended hard registers.
6616 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6618         PR middle-end/47725
6619         * combine.c (cant_combine_insn_p): Check zero/sign extended
6620         hard registers.
6622 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6624         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6625         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6626         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6627         Change return type to bool.
6628         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6630 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6632         PR debug/48163
6633         * var-tracking.c (prepare_call_arguments): If CALL target
6634         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6635         pc instead of looking it up using cselib_lookup and use
6636         Pmode for it if x has VOIDmode.
6637         * dwarf2out.c (gen_subprogram_die): If also both first and
6638         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6640         PR debug/48163
6641         * function.c (assign_parms): For data.passed_pointer parms
6642         use MEM of data.entry_parm instead of data.entry_parm itself
6643         as DECL_INCOMING_RTL.
6644         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6645         also when passed and declared mode is the same, DECL_RTL
6646         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6647         a MEM too.
6649 2011-03-16  Jeff Law  <law@redhat.com>
6651         PR rtl-optimization/37273
6652         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6653         handle them like argument loads from stack slots.  Do not double
6654         count memory for memory constants and argument loads from stack slots.
6656 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6658         PR debug/48160
6659         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6661 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6663         PR target/48171
6664         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6666 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6668         PR bootstrap/48153
6669         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6670         if dwarf_strict.
6671         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6672         Clear call_arg_locations and call_arg_loc_last always.
6674         PR middle-end/48152
6675         * var-tracking.c (prepare_call_arguments): If argument needs to be
6676         passed by reference, adjust argtype and mode.
6678 2011-03-17  Richard Guenther  <rguenther@suse.de>
6680         PR middle-end/48134
6681         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6682         a value make sure to fold the statement.
6684 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6686         PR target/43872
6687         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6688         return condition with !cfun->calls_alloca.
6690 2011-03-17  Richard Guenther  <rguenther@suse.de>
6692         PR bootstrap/48148
6693         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6694         origin for decls in other ltrans units.
6695         (input_varpool_node): Likewise.
6697 2011-03-17  Richard Guenther  <rguenther@suse.de>
6699         PR middle-end/48165
6700         * tree-object-size.c (compute_object_offset): Properly return
6701         the offset operand of MEM_REFs as sizetype.
6703 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6705         PR rtl-optimization/48141
6706         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6707         * dse.c: Include params.h.
6708         (active_local_stores_len): New variable.
6709         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6710         to NULL.
6711         (record_store, check_mem_read_rtx): Decrease it when removing
6712         from the chain.
6713         (scan_insn): Likewise.  Increase it when adding to chain, if it
6714         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6715         set active_local_stores to NULL before the addition.
6716         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6718         PR rtl-optimization/48141
6719         * dse.c (record_store): If no positions are needed in an insn
6720         that cannot be deleted, at least unchain it from active_local_stores.
6722 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6724         PR debug/47510
6725         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6726         (lookup_type_die_strip_naming_typedef): ... here.
6727         (get_context_die): Use it.
6728         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6729         the anonymous struct named by the naming typedef.
6731 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6733         PR target/48154
6734         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6735         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6737 2011-03-16  Jeff Law  <law@redhat.com>
6739         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6740         check for operands of conditional.  Allow type to be a pointer.
6742 2011-03-16  Richard Guenther  <rguenther@suse.de>
6744         PR tree-optimization/48149
6745         * fold-const.c (fold_binary_loc): Fold
6746         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6748 2011-03-16  Richard Guenther  <rguenther@suse.de>
6750         PR tree-optimization/26134
6751         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6752         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6753         (non_rewritable_mem_ref_base): Handle complex type component
6754         accesses, constrain offsets for vector and complex extracts
6755         more properly.
6757 2011-03-16  Richard Guenther  <rguenther@suse.de>
6759         PR tree-optimization/48146
6760         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6761         operands avoiding the need for renaming.
6763 2011-03-16  Richard Guenther  <rguenther@suse.de>
6765         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6766         constant folding.  Move MEM_REF canonicalization first.
6767         Rely on fold_const_aggregate_ref for initializer folding.
6768         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6770 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6772         PR middle-end/48136
6773         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6774         arg0/arg1 or their arguments are always fold converted to matching
6775         types.
6777         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6778         to nargs.
6780 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6782         PR lto/46944
6783         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6784         Handle in-tree gold.
6785         (ld_vers): Extract binutils version for gold.
6786         (gcc_cv_ld_hidden): Handle gold here.
6787         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6788         * configure: Regenerate.
6789         * config.in: Regenerate.
6790         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6791         -fuse-linker-plugin otherwise.
6792         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6793         (LINK_COMMAND_SPEC): Use it.
6794         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6796 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6798         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6799         * calls.c: Remove debug.h include.
6800         (emit_call_1): Don't call virtual_call_token debug hook.
6801         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6802         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6803         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6804         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6805         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6806         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6807         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6808         dwarf2out_virtual_call): Remove.
6809         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6810         copy_call_info and virtual_call hooks.
6811         (dwarf2out_init): Don't initialize vcall_insn_table,
6812         debug_dcall_section and debug_vcall_section.
6813         (prune_unused_types): Don't mark nodes from dcall_table.
6814         (dwarf2out_finish): Don't output dcall or vcall tables.
6815         * final.c (final_scan_insn): Don't call direct_call or
6816         virtual_call debug hooks.
6817         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6818         virtual_call_token, copy_call_info and virtual_call hooks.
6819         (debug_nothing_uid): Remove prototype.
6820         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6821         copy_call_info and virtual_call hooks.
6822         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6823         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6824         * debug.c (do_nothing_debug_hooks): Likewise.
6825         (debug_nothing_uid): Remove.
6826         * doc/invoke.texi (-fenable-icf-debug): Remove.
6827         * common.opt (-fenable-icf-debug): Likewise.
6829         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6830         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6831         call's MEM.  Handle functions returning aggregate through a hidden
6832         first pointer.  For virtual calls add clobbered pc to call arguments
6833         chain.
6834         * dwarf2out.c (gen_subprogram_die): Emit
6835         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6836         can't be emitted.
6838         PR debug/45882
6839         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6840         * rtl.h (ENTRY_VALUE_EXP): Define.
6841         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6842         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6843         * print-rtl.c (print_rtx): Likewise.
6844         * gengtype.c (adjust_field_rtx_def): Likewise.
6845         * var-tracking.c (vt_add_function_parameter): Adjust
6846         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6847         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6848         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6849         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6850         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6852         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6853         Call var_location debug hook even on CALL_INSNs.
6854         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6855         * rtl.def (ENTRY_VALUE): New.
6856         * dwarf2out.c: Include cfglayout.h.
6857         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6858         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6859         (struct call_arg_loc_node): New type.
6860         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6861         tail_call_site_count): New variables.
6862         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6863         DW_TAG_GNU_call_site_parameter.
6864         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6865         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6866         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6867         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6868         and DW_AT_GNU_all_source_call_sites.
6869         (mem_loc_descriptor): Handle ENTRY_VALUE.
6870         (add_src_coords_attributes): Don't add enything if
6871         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6872         (dwarf2out_abstract_function): Save and clear call_arg_location,
6873         call_site_count and tail_call_site_count around dwarf2out_decl call.
6874         (gen_call_site_die): New function.
6875         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6876         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6877         (dwarf2out_function_decl): Clear call_arg_locations,
6878         call_arg_loc_last, set call_site_count and tail_call_site_count
6879         to -1 and free block_map.
6880         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6881         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6882         followed by any real instructions.
6883         (dwarf2out_begin_function): Set call_site_count and
6884         tail_call_site_count to 0.
6885         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6886         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6887         attempt to force a DIE for it and worst case remove the attribute.
6888         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6889         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6890         the decl itself.
6891         * var-tracking.c: Include tm_p.h.
6892         (vt_stack_adjustments): For calls call note_register_arguments.
6893         (argument_reg_set): New variable.
6894         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6895         ensure the VALUE is resolved.
6896         (call_arguments): New variable.
6897         (prepare_call_arguments): New function.
6898         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6899         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6900         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6901         always use the best expression.
6902         (vt_expand_loc): Add ignore_cur_loc argument.
6903         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6904         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6905         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6906         note for all calls.
6907         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6908         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6909         argument.  Don't call cselib_preserve_only_values and
6910         cselib_reset_table.
6911         (note_register_arguments): New function.
6912         (vt_initialize): Compute argument_reg_set.  Call
6913         vt_add_function_parameters before processing basic blocks instead of
6914         afterwards.  For calls call prepare_call_arguments before calling
6915         cselib_process_insn.
6916         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6917         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6918         (var-tracking.o): Depend on $(TM_P_H).
6919         * cfglayout.h (insn_scope): New prototype.
6920         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6921         * cfglayout.c (insn_scope): No longer static.
6922         * insn-notes.def (CALL_ARG_LOCATION): New.
6923         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6924         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6925         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6926         nothing for DECL_EXTERNAL BLOCK_VARS.
6928 2011-03-16  Alan Modra  <amodra@gmail.com>
6930         PR target/45844
6931         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6932         create invalid offset address for vsx splat insn.
6933         * config/rs6000/predicates.md (splat_input_operand): New.
6934         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6936 2011-03-15  Xinliang David Li  <davidxl@google.com>
6938         PR c/47837
6939         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6940         (normalize_preds): New function.
6941         (is_use_properly_guarded): Normalize def predicates.
6943 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6945         PR target/46788
6946         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6947         in the output template.
6949 2011-03-15  Richard Guenther  <rguenther@suse.de>
6951         PR middle-end/47650
6952         * tree-pretty-print.c (dump_function_declaration): Properly
6953         dump unprototyped and varargs function types.
6955 2011-03-15  Richard Guenther  <rguenther@suse.de>
6957         PR tree-optimization/13954
6958         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6959         and friends.
6961 2011-03-15  Richard Guenther  <rguenther@suse.de>
6963         PR tree-optimization/48037
6964         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6965         selects into BIT_FIELD_REFs.
6966         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6967         vector select.
6969 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6971         PR tree-optimization/48129
6972         * builtins.c (fold_builtin_snprintf): Convert to type of
6973         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6974         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6976 2011-03-15  Richard Guenther  <rguenther@suse.de>
6978         PR tree-optimization/41490
6979         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6980         value but with VUSE.
6981         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6982         return statements.
6983         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6984         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6985         * tree-tailcall.c (find_tail_calls): Ignore returns.
6987 2011-03-15  Richard Guenther  <rguenther@suse.de>
6989         PR middle-end/48031
6990         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6991         or variable-indexed array accesses when in gimple form.
6993 2011-03-15  Richard Guenther  <rguenther@suse.de>
6995         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6997 2011-03-15  Alan Modra  <amodra@gmail.com>
6999         PR target/48032
7000         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
7001         presume symbol_refs without a symbol_ref_decl are suitably
7002         aligned, nor other trees we may see here.  Handle anchor symbols.
7003         (legitimate_constant_pool_address_p): Comment.  Add mode param.
7004         Check cmodel=medium addresses.  Adjust all calls.
7005         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
7006         creating cmodel=medium optimized access to locals.
7007         * config/rs6000/constraints.md (R): Pass QImode to
7008         legitimate_constant_pool_address_p.
7009         * config/rs6000/predicates.md (input_operand): Pass mode to
7010         legitimate_constant_pool_address_p.
7011         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
7012         Update prototype.
7014 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7016         PR target/48053
7017         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
7018         64-bit constants being loaded into registers other than GPRs such
7019         as loading 0 into a VSX register.
7021 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7023         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
7025 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7027         PR middle-end/47917
7028         * builtins.c (fold_builtin_snprintf): New function.
7029         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
7030         (fold_builtin_4): Likewise.
7032         PR middle-end/38878
7033         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7034         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
7035         and C - X == X also strip nops from +/-/p+ operand.
7036         When optimizing -X == C, fold C to arg0's type.
7038         PR debug/47946
7039         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7040         emit it as add_AT_int instead of add_AT_unsigned.
7042 2011-03-14  Tom Tromey  <tromey@redhat.com>
7044         * unwind-dw2.c: Include sys/sdt.h if it exists.
7045         (_Unwind_DebugHook): Use STAP_PROBE2.
7046         * config.in, configure: Rebuild.
7047         * configure.ac: Check for sys/sdt.h.
7049 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7051         * config/i386/i386.md (ROUND_FLOOR): New constant.
7052         (ROUND_CEIL): Ditto.
7053         (ROUND_TRUNC): Ditto.
7054         (ROUND_MXCSR): Ditto.
7055         (ROUND_NO_EXC): Ditto.
7056         (rint<mode>2): Use new defines instead of numerical constants.
7057         (floor<mode>2): Ditto.
7058         (ceil<mode>2): Ditto.
7059         (btrunc<mode>2): Ditto.
7060         * config/i386/i386-builtin-types.def: Define ROUND function type
7061         aliases.
7062         * config/i386/i386.c (enum ix86_builtins): Add
7063         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7064         (struct builtin_description): Add
7065         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7066         (ix86_expand_sse_round): New static function.
7067         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7068         function types.
7069         (ix86_builtin_vectorized_function): Handle
7070         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7072 2011-03-14  Tom Tromey  <tromey@redhat.com>
7074         * c-parser.c (c_parser_asm_string_literal): Clear
7075         warn_overlength_strings.
7077 2011-03-14  Tom Tromey  <tromey@redhat.com>
7079         * c-parser.c (disable_extension_diagnostics): Save
7080         warn_overlength_strings.
7081         (restore_extension_diagnostics): Restore warn_overlength_strings.
7083 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7085         * BASE-VER: Change to 4.7.0.
7087 2011-03-14  Richard Guenther  <rguenther@suse.de>
7089         PR middle-end/48098
7090         * tree.c (build_vector_from_val): Adjust assert to requirements
7091         and reality.
7093 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7095         PR bootstrap/48102
7096         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7098 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7100         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7101         terms of target_flags_explicit. Adjust copyright year.
7103         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7104         * config/rs6000/t-freebsd: New file. Add override for
7105         LIB2FUNCS_EXTRA.
7107 2011-03-13  Chris Demetriou  <cgd@google.com>
7109         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7110         (-fno-diagnostics-show-option): this, to reflect current default.
7111         (-Werror=): Update text about -fno-diagnostics-show-option.
7113 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7115         PR target/48053
7116         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7117         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7118         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7119         mode is not V2DImode or V2DFmode.
7120         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7121         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7122         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7123         registers to 0.
7124         (movdi_internal64): Likewise.
7126 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7128         PR tree-optimization/47127
7129         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7130         parameter.
7131         (set_cloog_options): Same.
7132         (scop_to_clast): Same.
7133         (print_clast_stmt): Do not call cloog_state_malloc and
7134         cloog_state_free.
7135         (print_generated_program): Same.
7136         (gloog): Same.
7137         * graphite-clast-to-gimple.h (cloog_state): Declared.
7138         (scop_to_clast): Adjust declaration.
7139         * graphite.c (cloog_state): Defined here.
7140         (graphite_initialize): Call cloog_state_malloc.
7141         (graphite_finalize): Call cloog_state_free.
7143 2011-03-11  Jason Merrill  <jason@redhat.com>
7145         * attribs.c (lookup_attribute_spec): Take const_tree.
7146         * tree.h: Adjust.
7148 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7150         * config/sparc/sparc.c (sparc_option_override): Use
7151         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7153 2011-03-11  Richard Guenther  <rguenther@suse.de>
7155         PR tree-optimization/48067
7156         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7157         multiplication result will be only used once on the target
7158         stmt.
7160 2011-03-11  Richard Guenther  <rguenther@suse.de>
7162         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7164 2011-03-11  Richard Guenther  <rguenther@suse.de>
7166         PR lto/48073
7167         * tree.c (find_decls_types_r): Do not walk types only reachable
7168         from IDENTIFIER_NODEs.
7170 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7172         PR middle-end/48044
7173         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7174         all vnode->force_output nodes as needed.
7176 2011-03-11  Jason Merrill  <jason@redhat.com>
7178         PR c++/48069
7179         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7180         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7182 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7184         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7185         cgraph_node.
7187 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7189         PR tree-optimization/48063
7190         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7191         inline functions called once if !tree_can_inline_p (node->callers).
7193 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7195         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7196         extra_objs.
7197         * config/score/score3.c: Delete.
7198         * config/score/score3.h: Delete.
7199         * config/score/mul-div.S: Delete.
7200         * config/score/sfp-machine.h: Add new file.
7201         * config/score/constraints.md: Add new file.
7202         * config/score/t-score-softfp: Add new file.
7203         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7204         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7205         (score7_extra_constraint): Delete.
7206         (score7_option_override): Remove unused code.
7207         * config/score/score.c: Remove score3 and score5 define and code.
7208         * config/score/score.h: Remove score3 and score5 define and code.
7209         * config/score/score.md: Remove score3 template and unusual insn.
7210         * config/score/score.opt: Remove score3 and score5 options.
7212 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7214         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7215         when _HPUX_SOURCE is defined.
7216         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7218 2011-03-10  Jason Merrill  <jason@redhat.com>
7220         PR c++/48029
7221         * stor-layout.c (layout_type): Don't set structural equality
7222         on arrays of incomplete type.
7223         * tree.c (type_hash_eq): Handle comparing them properly.
7225 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7227         PR debug/48043
7228         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7229         result mode matches original rtl mode.
7231 2011-03-10  Nick Clifton  <nickc@redhat.com>
7233         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7234         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7236 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7238         PR rtl-optimization/47866
7239         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7240         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7241         if target wasn't scalar.
7242         * function.c (assign_stack_temp_for_type): Assert that neither
7243         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7244         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7245         macro.
7246         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7248 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7250         * config/s390/s390-protos.h (s390_label_align): New prototype.
7251         * config/s390/s390.c (s390_label_align): New function.
7252         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7254 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7256         PR target/47755
7257         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7258         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7259         (output_vec_const_move): Ditto.
7261 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7263         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7264         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7265         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7266         Change 'rclass' argument and result type to reg_class_t.
7267         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7269 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7271         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7272         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7273         (TARGET_MEMORY_MOVE_COST): Define.
7274         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7276 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7278         PR debug/47881
7279         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7280         removed anything.
7282         PR tree-optimization/48022
7283         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7284         for EQ/NE_EXPR.
7286 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7288         PR debug/47991
7289         * var-tracking.c (find_use_val): Return NULL for
7290         cui->sets && cui->store_p BLKmode MEMs.
7292 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7294         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7295         Remove.
7296         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7297         xstormy16_print_operand_address): Remove.
7298         * config/stormy16/stormy16.c (xstormy16_print_operand,
7299         xstormy16_print_operand_address): Make static.
7300         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7302 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7304         PR target/47862
7305         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7306         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7307         before definition.
7309 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7311         PR bootstrap/48000
7312         * cfgloopmanip.c (fix_bb_placements): Return immediately
7313         if FROM is BASE_LOOP's header.
7315 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7317         * gimplify.c (gimplify_function_tree): Fix building calls
7318         to __builtin_return_address.
7320 2011-03-07  Alan Modra  <amodra@gmail.com>
7322         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7323         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7324         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7325         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7326         return_mode args.
7327         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7328         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7329         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7330         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7331         * config/rs6000/rs6000.c
7332         (rs6000_elf_end_indicate_exec_stack): Rename to..
7333         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7334         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7335         (rs6000_file_start): ..here.
7336         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7337         file scope variables.
7338         (call_ABI_of_interest): New function.
7339         (init_cumulative_args): Set above vars when function return value
7340         is a float, vector, or small struct.
7341         (rs6000_function_arg_advance_1): Likewise for function args.
7342         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7343         references float args.
7345 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7347         * doc/cfg.texi: Remove "See" before @ref.
7348         * doc/invoke.texi: Likewise.
7350 2011-03-05  Jason Merrill  <jason@redhat.com>
7352         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7354 2011-03-05  Anthony Green  <green@moxielogic.com>
7356         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7358 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7360         PR rtl-optimization/47899
7361         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7362         to flow_loop_nested_p when moving the loop upward.
7364 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7366         PR target/47719
7367         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7369 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7371         PR tree-optimization/47967
7372         * ipa-cp.c (build_const_val): Return NULL instead of creating
7373         VIEW_CONVERT_EXPR for mismatching sizes.
7374         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7375         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7376         give up on versioning.
7378 2011-03-05  Alan Modra  <amodra@gmail.com>
7380         PR target/47986
7381         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7382         full cmodel medium/large lo_sum + high addresses.
7384 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7386         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7387         pool references in UNSPEC_LTREL_OFFSET.
7389 2011-03-04  Jan Hubicka  <jh@suse.cz>
7391         PR lto/47497
7392         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7393         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7394         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7395         Add node pointers.
7396         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7397         cgraph_add_thunk): Add node pointers.
7398         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7399         associated to right node.
7400         (input_node): Update use of cgraph_same_body_alias
7401         and cgraph_add_thunk.
7403 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7405         * config/i386/i386.opt (mprefer-avx128): New flag.
7406         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7407         modes when the flag -mprefer-avx128 is on.
7409 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7411         * dwarf2out.c (compare_loc_operands): Fix address handling.
7413 2011-03-04  Alan Modra  <amodra@gmail.com>
7415         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7417 2011-03-04  Richard Guenther  <rguenther@suse.de>
7419         PR middle-end/47968
7420         * expmed.c (extract_bit_field_1): Prefer vector modes that
7421         vec_extract patterns can handle.
7423 2011-03-04  Richard Guenther  <rguenther@suse.de>
7425         PR middle-end/47975
7426         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7428 2011-03-04  Richard Henderson  <rth@redhat.com>
7430         * explow.c (emit_stack_save): Remove 'after' parameter.
7431         (emit_stack_restore): Likewise.
7432         * expr.h: Update to match.
7433         * builtins.c, calls.c, stmt.c: Likewise.
7434         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7435         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7436         * function.c (expand_function_end): Insert the emit_stack_save
7437         sequence before parm_birth_insn instead of after.
7439 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7441         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7442         (ssse3_pmaddubsw128): Ditto.
7443         (ssse3_pmaddubsw): Ditto.
7445 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7447         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7449 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7451         PR c/47963
7452         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7453         on TYPE_SIZE_UNIT if it is a DECL.
7455         PR debug/47283
7456         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7457         first operand is not is_gimple_mem_ref_addr, try to fold it.
7458         If the operand still isn't is_gimple_mem_ref_addr, clear
7459         MEM_EXPR on op0.
7461 2011-03-03  Richard Guenther  <rguenther@suse.de>
7463         PR middle-end/47283
7464         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7465         match comment.
7466         (refs_may_alias_p_1): For release branches return true if
7467         we are confused by our input.
7469 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7471         * config/s390/s390.c (s390_function_value): Rename to ...
7472         (s390_function_and_libcall_value): ... this.
7473         (s390_function_value): New function.
7474         (s390_libcall_value): New function.
7475         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7476         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7477         target macro definitions.
7478         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7480 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7482         * config/i386/freebsd64.h (CC1_SPEC): Define.
7483         * config/i386/linux64.h (CC1_SPEC): Define.
7484         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7486 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7488         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7489         Remove.
7490         * config/stormy16/stormy16.c: Include reload.h.
7491         (xstormy16_memory_move_cost): New function.
7492         (TARGET_MEMORY_MOVE_COST): Define.
7494 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7496         PR rtl-optimization/47925
7497         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7498         with side effects.  Remove the more-specific check for volatile asms.
7500 2011-03-02  Alan Modra  <amodra@gmail.com>
7502         PR target/47935
7503         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7504         toc relative addresses for valid offsets.
7506 2011-03-01  Richard Guenther  <rguenther@suse.de>
7508         PR tree-optimization/47890
7509         * tree-vect-loop.c (get_initial_def_for_induction): Set
7510         related stmt properly.
7512 2011-03-01  Richard Guenther  <rguenther@suse.de>
7514         PR lto/47924
7515         * lto-streamer.c (lto_record_common_node): Also register
7516         the canonical type.
7518 2011-03-01  Richard Guenther  <rguenther@suse.de>
7520         PR lto/46911
7521         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7522         Do not stream DECL_ABSTRACT_ORIGIN.
7523         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7524         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7525         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7526         Do not stream DECL_ABSTRACT_ORIGIN.
7527         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7528         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7530 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7532         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7533         FUNCTION_VALUE_REGNO_P): Remove.
7534         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7535         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7536         Add 'outgoing' argument.
7537         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7538         function.
7539         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7540         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7542 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7544         PR debug/28047
7545         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7546         (lookup_filename): Likewise.
7547         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7549 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7550             Jakub Jelinek  <jakub@redhat.com>
7552         PR middle-end/47893
7553         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7554         (assign_stack_local_1): Change last argument type to int.
7555         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7556         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7557         don't record padding space into frame_space_list nor use those areas.
7558         (assign_stack_local): Adjust caller.
7559         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7560         of assign_stack_local, pass 0 as last argument.
7561         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7562         callers.
7564 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7566         PR debug/47283
7567         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7568         Use target address_mode and pointer_mode hooks instead of hardcoded
7569         Pmode and ptr_mode.  Handle some simple cases of extending if
7570         POINTERS_EXTEND_UNSIGNED < 0.
7571         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7572         Call convert_debug_memory_address.
7573         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7574         convert_debug_memory_address.
7576         PR middle-end/46790
7577         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7578         * configure: Regenerated.
7579         * config.in: Regenerated.
7580         * varasm.c (default_function_section): Return NULL
7581         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7583 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7585         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7586         the description to match the printed values.
7588 2011-02-28  Richard Guenther  <rguenther@suse.de>
7590         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7591         of the copied scope tree.
7593 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7595         * doc/extend.texi (Function Attributes): Avoid deeply (and
7596         wrongly) nested tables.
7598 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7600         PR middle-end/47903
7601         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7602         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7603         r isn't op0 nor op1.
7605 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7607         * config/avr/avr.md: Remove magic comment for emacs.
7609 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7611         PR target/45261
7612         * config/avr/avr.c (avr_option_override): Use error on bad options.
7613         (avr_help): New function.
7614         (TARGET_HELP): Define.
7616 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7618         PR target/42240
7619         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7620         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7622 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7624         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7625         (ARM Options): Ditto.
7626         (i386 and x86-64 Options): Ditto.
7627         (RX Options): Ditto.
7628         (SPARC Options): Ditto.
7630 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7632         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7633         FreeBSD 6 and later.  Generally use cpu generic.
7635 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7637         * doc/cpp.texi: Update copyright years.
7639 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7641         PR target/46898
7642         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7644 2011-02-25  Jon Beniston  <jon@beniston.com>
7646         PR target/46898
7647         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7648         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7649         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7650         (lm32_block_move_inline): Add type cast to remove warning.
7651         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7652         (gen_int_relational): Move declarations to start of function.
7654 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7656         PR tree-optimization/45470
7657         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7658         can throw internally only.
7659         * tree-vect-stmts.c (vectorizable_call): Likewise.
7661 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7663         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7664         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7665         * config/stormy16/stormy16-protos.h
7666         (xstormy16_preferred_reload_class): Remove.
7667         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7668         static. Change 'rclass' argument and return type to reg_class_t.
7669         (TARGET_PREFERRED_RELOAD_CLASS,
7670         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7672 2011-02-24  Richard Guenther  <rguenther@suse.de>
7674         * lto-streamer-in.c (input_bb): Do not find referenced vars
7675         in debug statements.
7677 2011-02-23  Jason Merrill  <jason@redhat.com>
7679         * common.opt (fabi-version): Document v5 and v6.
7681 2011-02-23  Richard Guenther  <rguenther@suse.de>
7683         PR tree-optimization/47849
7684         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7686 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7688         * opts-common.c (decode_cmdline_option): Print empty string
7689         argument as "" in decoded->orig_option_with_args_text.
7690         * gcc.c (execute): Print empty string argument as ""
7691         in the verbose output.
7692         (do_spec_1): Keep empty string argument.
7694 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7696         * config.gcc: Declare score-* and crx-* obsolete.
7698 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7700         PR rtl-optimization/47763
7701         * web.c (web_main): Ignore naked clobber when replacing register.
7703 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7705         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7706         Remove.
7708 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7710         PR doc/47848
7711         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7713 2011-02-22  Mike Stump  <mikestump@comcast.net>
7715         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7716         assembler.
7717         * configure: Regenerate.
7719 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7721         PR rtl-optimization/46002
7722         * ira-color.c (update_copy_costs): Change class intersection
7723         test to reg_class_contents[] test of 'hard_regno'.
7725 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7727         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7728         than Driver option.
7729         * config/hpux11.opt (mt): Likewise.
7730         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7731         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7732         * config/vax/elf.opt (mno-asm-pic): Likewise.
7733         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7735 2011-02-21  Mike Stump  <mikestump@comcast.net>
7737         PR target/47822
7738         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7739         tree so we can get save the type.
7740         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7741         for CFString instead of trying to use past the end of the builtins.
7742         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7743         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7744         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7745         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7746         Rename to darwin_builtin_cfstring.
7747         (darwin_init_cfstring_builtins): Return the built type.
7749 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7751         PR target/47840
7752         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7753         (_mm256_insert_epi64): Use _mm_insert_epi64.
7755 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7757         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7758         * config/stormy16/stormy16-protos.h
7759         (xstormy16_mode_dependent_address_p): Remove.
7760         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7761         Make static. Change return type to bool. Change argument type to
7762         const_rtx. Remove dead code.
7763         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7765 2011-02-21  Richard Guenther  <rguenther@suse.de>
7767         PR lto/47820
7768         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7769         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7770         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7771         TUs context.
7772         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7773         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7775 2011-02-20  Richard Guenther  <rguenther@suse.de>
7777         PR lto/47822
7778         * tree.c (free_lang_data_in_decl): Clean builtins from
7779         the TU decl BLOCK_VARS.
7781 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7783         PR debug/47620
7784         PR debug/47630
7785         * haifa-sched.c (fix_tick_ready): Skip tick computation
7786         for debug insns.
7788 2011-02-19  Richard Guenther  <rguenther@suse.de>
7790         PR lto/47647
7791         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7792         Remove lazy BLOCK_VARS streaming.
7793         (lto_input_ts_block_tree_pointers): Likewise.
7794         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7796 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7798         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7800 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7802         * config/i386/biarch32.h, config/i386/mach.h,
7803         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7805 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7807         PR target/47800
7808         * config/i386/i386.md (peephole2 for shift and plus): Use
7809         operands[1] original mode in the first insn.
7811 2011-02-18  Mike Stump  <mikestump@comcast.net>
7813         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7815 2011-02-18  Jan Hubicka  <jh@suse.cz>
7817         PR middle-end/47788
7818         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7819         to zero when the function is not inlinable at all.
7821 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7823         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7824         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7825         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7826         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7827         * config/pa/t-pa64: Likewise.
7828         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7830 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7832         PR driver/47787
7833         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7835 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7837         PR target/47792
7838         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7840 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7842         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7843         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7844         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7845         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7846         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7847         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7848         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7849         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7850         m32r_legitimate_address_p): New functions.
7851         * config/m32r/constraints.md (constraint "S"): Don't use
7852         STORE_PREINC_PREDEC_P.
7853         (constraint "U"): Don't use LOAD_POSTINC_P.
7855 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7857         PR rtl-optimization/46178
7858         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7859         compute ira_hard_regno_cover_class[].
7861 2011-02-18  Richard Guenther  <rguenther@suse.de>
7863         PR lto/47798
7864         * lto-streamer.h (lto_global_var_decls): Declare.
7865         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7866         statics for global var processing.
7868 2011-02-18  Richard Guenther  <rguenther@suse.de>
7870         PR tree-optimization/47737
7871         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7872         edge dominance check.
7874 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7876         PR debug/47780
7877         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7878         avoid invalid rtx sharing.
7880 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7882         * doc/cpp.texi (Obsolete Features): Add background on the
7883         origin of assertions.
7885 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7887         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7888         objc_abi == 2.
7889         * config/darwin.c (output_objc_section_asm_op): Added support for
7890         ABI v1 and v2.
7891         (is_objc_metadata): New.
7892         (darwin_objc2_section): New.
7893         (darwin_objc1_section): New.
7894         (machopic_select_section): Added support for ABI v1 and v2.
7895         (darwin_emit_objc_zeroed): New.
7896         (darwin_output_aligned_bss): Detect objc metadata and treat it
7897         appropriately.
7898         (darwin_asm_output_aligned_decl_common): Same.
7899         (darwin_asm_output_aligned_decl_local): Same.
7900         * config/darwin-sections.def: Updated for ABI v1 and v2.
7901         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7902         compiling Objective-C code for the NeXT runtime, default to using
7903         ABI version 0 for 32-bit, and version 2 for 64-bit.
7905 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7907         * common.opt (optimize_fast): New Variable.
7908         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7909         instead of local variable ofast.
7911 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7913         * doc/invoke.texi (fobjc-abi-version): Documented.
7914         (fobjc-nilcheck): Documented.
7915         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7916         version.
7918 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7920         PR driver/47390
7921         * common.opt (export-dynamic): New Driver option.
7922         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7924 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7926         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7928 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7929             Jan Hubicka  <jh@suse.cz>
7931         PR debug/47106
7932         PR debug/47402
7933         * cfgexpand.c (account_used_vars_for_block): Remove.
7934         (estimated_stack_frame_size): Use referenced vars.
7935         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7936         that were referenced in the original function.  Test src_fn
7937         rather than cfun.  Drop redundant get_var_ann.
7938         (setup_one_parameter): Drop redundant get_var_ann.
7939         (declare_return_variable): Likewise.
7940         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7941         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7942         * ipa-inline.c (compute_inline_parameters): Do not compute
7943         disregard_inline_limits here.
7944         (compute_inlinable_for_current, pass_inlinable): New.
7945         (pass_inline_parameters): Require PROP_referenced_vars.
7946         * cgraphunit.c (cgraph_process_new_functions): Don't run
7947         compute_inline_parameters explicitly unless function is in SSA form.
7948         (cgraph_analyze_function): Set .disregard_inline_limits.
7949         * tree-sra.c (convert_callers): Compute inliner parameters
7950         only for functions already in SSA form.
7952 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7954         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7955         -mlittle-endian-data.
7957 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7959         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7960         -mno-fpu, not -fpu and -no-fpu.
7961         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7962         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7964 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7966         PR target/43653
7967         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7968         input reload with PLUS RTX.
7970 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7972         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7973         of InverseVar(MDMX).
7975 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7977         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7978         --m4-340.
7980 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7982         * config/mn10300/mn10300.opt (mno-crt0): New.
7984 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7986         * config/m68k/uclinux.opt (static-libc): New Driver option.
7988 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7990         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7992 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7994         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7995         %{muser-extend-enabled}.
7997 2011-02-16  Richard Guenther  <rguenther@suse.de>
7999         PR tree-optimization/47738
8000         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
8001         the TODO from tree_predictive_commoning.
8003 2011-02-15  Jeff Law  <law@redhat.com>
8005         Revert
8006         2011-01-25  Jeff Law  <law@redhat.com>
8008         PR rtl-optimization/37273
8009         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8010         handle them like argument loads from stack slots.  Do not double
8011         count memory for memory constants and argument loads from stack slots.
8013 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8015         PR middle-end/47725
8016         * combine.c (cant_combine_insn_p): Revert the last change.
8018 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
8020         PR target/47755
8021         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
8022         mode for vector constants.  Remove code that checks for TImode.
8024 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8026         PR debug/47106
8027         PR debug/47402
8028         * cgraph.h (compute_inline_parameters): Return void.
8029         * ipa-inline.c (compute_inline_parameters): Adjust.
8031 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8033         PR debug/47106
8034         PR debug/47402
8035         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8036         rather than decl.
8037         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8038         * ipa-inline.c (compute_inline_parameters): Adjust.
8040 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8042         PR debug/47106
8043         PR debug/47402
8044         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8045         Adjust all users.  Pass FN to...
8046         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8047         fn argument.
8048         * ipa-struct-reorg.c: Adjust.
8049         * tree-dfa.c: Adjust.
8050         * tree-into-ssa.c: Adjust.
8051         * tree-sra.c: Adjust.
8052         * tree-ssa-alias.c: Adjust.
8053         * tree-ssa-live.c: Adjust.
8054         * tree-ssa.c: Adjust.
8055         * tree-ssanames.c: Adjust.
8056         * tree-tailcall.c: Adjust.
8058 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8060         PR debug/47106
8061         PR debug/47402
8062         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8063         Adjust all callers.
8064         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8065         * tree-flow-inline.h: Adjust.
8066         * gimple-pretty-print.c: Adjust.
8067         * tree-into-ssa.c: Adjust.
8068         * tree-ssa.c: Adjust.
8069         * cfgexpand.c: Adjust.
8071 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8073         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8074         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8075         (EXTRA_CONSTRAINT): Delete.
8076         * config/iq2000/constraints.md: New file.
8077         * config/iq2000/iq2000.md: Include it.
8078         (define_insn ""): Delete.
8079         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8080         unsupported constraint letters from patterns.
8081         (call_value, call_value_internal1): Likewise.
8082         (call_value_multiple_internal1): Likewise.
8084 2011-02-15  Nick Clifton  <nickc@redhat.com>
8086         * config/mn10300/mn10300.c: Include tm-constrs.h.
8087         (struct liw_data): New data structure describing an LIW candidate
8088         instruction.
8089         (extract_bundle): Use struct liw_data.  Allow small integer
8090         operands for some instructions.
8091         (check_liw_constraints): Use struct liw_data.  Remove swapped
8092         parameter.  Add comments describing the checks.  Fix bug when
8093         assigning the source of liw1 to the source of liw2.
8094         (liw_candidate): Delete.  Code moved into extract_bundle.
8095         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8096         before swapping.
8097         * config/mn10300/predicates.md (liw_operand): New predicate.
8098         Allows registers and small integer constants.
8099         * config/mn10300/constraints.md (O): New constraint.  Accetps
8100         integers in the range -8 to +7 inclusive.
8101         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8102         for moving a small integer into a register.  Give this alternative
8103         LIW attributes.
8104         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8105         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8106         using the J,K,L and M constraints,
8107         (liw): Remove SI mode on second operands to allow for HI and QI
8108         mode values.
8109         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8110         instruction.
8112 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8114         PR middle-end/47725
8115         * combine.c (cant_combine_insn_p): Check zero/sign extended
8116         hard registers.
8118 2011-02-15  Richard Guenther  <rguenther@suse.de>
8120         PR tree-optimization/47743
8121         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8122         for a non-type-compatible VN lookup bail out.
8124 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8126         * config/fr30/constraints.md: New file.
8127         * config/fr30/fr30.md: Include it.
8128         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8129         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8130         (EXTRA_CONSTRAINT): Delete.
8132 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8134         * config/frv/constraints.md: New file.
8135         * config/frv/predicates.md: Include it.
8136         * config/frv/frv.c (reg_class_from_letter): Delete.
8137         (frv_option_override): Don't initialize it.
8138         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8139         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8140         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8141         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8142         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8143         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8144         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8145         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8146         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8147         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8148         (REG_CLASS_FROM_CONSTRAINT): Delete.
8150 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8152         PR middle-end/47581
8153         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8154         if frame size is 0 in a leaf function.
8156 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8158         PR pch/14940
8159         * config/alpha/host-osf.c: New file.
8160         * config/alpha/x-osf: New file.
8161         * config.host (alpha*-dec-osf*): Use it.
8163 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8165         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8166         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8167         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8168         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8169         type to const_rtx.
8170         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8172 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8174         * config/stormy16/constraints.md: New file.
8175         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8176         Use satisfies_constraint_Q and satisfies_constraint_R.
8177         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8178         Delete.
8179         (xstormy16_legitiamte_address_p): Declare.
8180         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8181         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8182         (EXTRA_CONSTRAINT): Delete.
8183         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8184         Un-staticize.
8185         (xstormy16_extra_constraint_p): Delete.
8187 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8189         PR tree-optimization/46494
8190         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8191         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8192         (pass_rtl_loop_done): Add TODO_verify_flow.
8193         * fwprop.c (pass_rtl_fwprop): Likewise.
8194         * modulo-sched.c (pass_sms): Likewise.
8195         * tree-ssa-dom.c (pass_dominator): Likewise.
8196         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8197         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8198         (pass_tree_loop_done): Likewise.
8199         * tree-ssa-pre.c (execute_pre): Likewise.
8200         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8201         * tree-ssa-sink.c (pass_sink_code): Likewise.
8202         * tree-vrp.c (pass_vrp): Likewise.
8204 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8206         * config/v850/constraints.md: New file.
8207         * config/v850/v850.md: Include it.
8208         * config/v850/predicates.md (reg_or_0_operand): Use
8209         satisfies_constraint_G.
8210         (special_symbolref_operand): Use satisfies_constraint_K.
8211         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8212         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8213         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8214         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8215         (EXTRA_CONSTRAINT): Delete.
8216         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8217         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8218         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8220 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8222         PR target/47696
8223         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8224         description.
8226 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8228         * config/mcore/constraints.md: New file.
8229         * config/mcore/mcore.md: Include it.
8230         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8231         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8232         (REG_CLASS_FROM_LETTER): Delete.
8233         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8234         insn_const_int_ok_for_constraint.
8235         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8236         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8237         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8238         (EXTRA_CONSTRAINT): Delete.
8240 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8242         PR ada/41929
8243         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8244         (IS_SIGHANDLER): Define.
8245         (sparc64_is_sighandler): New function, split off from
8246         sparc64_fallback_frame_state.
8247         (sparc_is_sighandler): New function, split off from
8248         sparc_fallback_frame_state.
8249         (sparc64_fallback_frame_state): Merge with ...
8250         (sparc_fallback_frame_state): ... this into ...
8251         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8252         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8253         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8254         stack instead of hardcoded offsets.
8256 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8258         PR target/45808
8259         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8261 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8263         * configure: Regenerate.
8265 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8267         PR driver/45731
8268         * gcc.c (asm_options): Correct spec matching --target-help.
8270 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8272         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8273         to gimple call error.
8275 2011-02-12  Mike Stump  <mikestump@comcast.net>
8277         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8278         comments in backslash regions.
8280 2011-02-12  Mike Stump  <mikestump@comcast.net>
8281             Jakub Jelinek  <jakub@redhat.com>
8282             Iain Sandoe  <iains@gcc.gnu.org>
8284         PR target/47324
8285         * dwarf2out.c (output_cfa_loc): When required, apply the
8286         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8287         (output_loc_sequence): Likewise.
8288         (output_loc_operands_raw): Likewise.
8289         (output_loc_sequence_raw): Likewise.
8290         (output_cfa_loc): Likewise.
8291         (output_loc_list): Suppress register number adjustment when
8292         calling output_loc_sequence()
8293         (output_die): Likewise.
8295 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8297         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8298         Remove macros.
8299         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8300         xtensa_memory_move_cost): New functions.
8301         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8303 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8305         PR lto/47225
8306         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8307         in the current directory.
8308         * configure: Rebuilt.
8310 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8312         * config/darwin.c (darwin_override_options): Add a hunk missed
8313         from the commit of r168571.  Trim comment line lengths and
8314         correct indents of the preceding block.
8316 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8318         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8319         the switch.
8321 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8323         * common.opt (nostartfiles): New Driver option.
8325 2011-02-11  Xinliang David Li  <davidxl@google.com>
8327         PR tree-optimization/47707
8328         * tree-chrec.c (convert_affine_scev): Keep type precision.
8330 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8332         PR tree-optimization/47420
8333         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8335 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8337         PR rtl-optimization/47614
8338         * rtl.h (check_for_inc_dec): Declare.
8339         * dse.c (check_for_inc_dec): Externalize...
8340         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8341         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8343 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8345         PR driver/47678
8346         * gcc.c (main): Do not compile inputs if there were errors in
8347         option handling.
8348         * opts-common.c (read_cmdline_option): Check for wrong language
8349         after other error checks.
8351 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8353         * cgraph.c: Fix comment typos.
8354         * cgraph.h: Likewise.
8355         * cgraphunit.c: Likewise.
8356         * ipa-cp.c: Likewise.
8357         * ipa-inline.c: Likewise.
8358         * ipa-prop.c: Likewise.
8359         * ipa-pure-const.c: Likewise.
8360         * ipa-ref.c: Likewise.
8361         * ipa-reference.c: Likewise.
8363 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8365         PR debug/47684
8366         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8368 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8370         PR testsuite/47400
8371         * doc/sourcebuild.texi (Require Support): Document
8372         dg-require-ascii-locale.
8374 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8376         * doc/lto.texi (Write summary): Fix missing parentheses.
8378 2011-02-10  DJ Delorie  <dj@redhat.com>
8380         * config/m32c/m32c.c (m32c_option_override): Disable
8381         -fcombine-stack-adjustments until flag value tracking and compare
8382         optimization can be rewritten.
8384 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8386         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8387         PROCESSOR_POWER7.
8388         (PROCESSOR_DEFAULT64): Likewise.
8390 2011-02-10  Richard Henderson  <rth@redhat.com>
8392         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8393         change from 2011-02-03.
8394         * config/rx/rx.c (flags_from_code): Likewise.
8395         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8396         is valid, n/pz otherwise.
8397         (rx_select_cc_mode): Return CCmode if Y is not zero.
8399 2011-02-10  Richard Guenther  <rguenther@suse.de>
8401         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8403 2011-02-10  Richard Guenther  <rguenther@suse.de>
8405         PR tree-optimization/47677
8406         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8408 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8410         PR target/47665
8411         * combine.c (make_compound_operation): Only change shifts into
8412         multiplication for SCALAR_INT_MODE_P.
8414 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8416         PR testsuite/47622
8417         Revert
8418         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8419         PR debug/42631
8420         * web.c (entry_register): Don't clobber the number of the
8421         first uninitialized reference in used[].
8423 2011-02-09  Richard Guenther  <rguenther@suse.de>
8425         PR tree-optimization/47664
8426         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8427         all edges again.
8429 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8431         PR target/46481
8432         PR target/47032
8433         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8434         PROCESSOR_POWER7.
8435         (PROCESSOR_DEFAULT64): Same.
8436         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8438 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8440         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8442 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8444         PR middle-end/45505
8445         * tree-sra.c (struct access): New flags grp_scalar_read and
8446         grp_scalar_write.  Changed description of assignment read and write
8447         flags.
8448         (dump_access): Dump new flags, reorder all of them.
8449         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8450         to detect multiple scalar reads.
8451         (analyze_access_subtree): Use the new scalar read write flags instead
8452         of the old flags.  Adjusted comments.
8454 2011-02-08  DJ Delorie  <dj@redhat.com>
8456         PR target/47548
8457         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8458         patterns.
8460 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8462         * config/m68k/uclinux.opt: New.
8463         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8465 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8467         * config/cris/elf.opt (sim): New Driver option.
8469 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8471         * config/xtensa/elf.opt: New.
8472         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8474 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8476         * config/vax/elf.opt: New.
8477         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8479 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8481         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8483 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8485         * config/gnu-user.opt: New.
8486         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8487         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8488         *-*-uclinux*): Use gnu-user.opt.
8490 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8492         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8493         * config/i386/gnu.h (CPP_SPEC): Likewise.
8495 2011-02-08  Ian Lance Taylor  <iant@google.com>
8497         * common.opt (fcx-limited-range): Add SetByCombined flag.
8498         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8499         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8500         (fassociative-math, freciprocal-math): Likewise.
8501         (funsafe-math-optimizations): Likewise.
8502         * opth-gen.awk: Handle SetByCombined.
8503         * optc-gen.awk: Likewise.
8504         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8505         (set_unsafe_math_optimizations_flags): Likewise.
8506         * doc/options.texi (Option properties): Document SetByCombined.
8508 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8510         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8511         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8512         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8513         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8514         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8516 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8518         PR tree-optimization/46834
8519         PR tree-optimization/46994
8520         PR tree-optimization/46995
8521         * graphite-sese-to-poly.c (used_outside_reduction): New.
8522         (detect_commutative_reduction): Call used_outside_reduction.
8523         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8524         translate_scalar_reduction_to_array only when at least one
8525         loop-phi/close-phi tuple has been detected.
8527 2011-02-08  Richard Guenther  <rguenther@suse.de>
8529         PR middle-end/47639
8530         * tree-vect-generic.c (expand_vector_operations_1): Update
8531         stmts here ...
8532         (expand_vector_operations): ... not here.  Cleanup EH info
8533         and the CFG if required.
8535 2011-02-08  Richard Guenther  <rguenther@suse.de>
8537         PR tree-optimization/47641
8538         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8539         require type compatibility.
8541 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8543         * gimple-low.c (lower_function_body): Don't remove the location of
8544         the return statement here.
8545         (lower_gimple_return): Do it here instead but only if the return
8546         statement is actually used twice.
8548 2011-02-08  Richard Guenther  <rguenther@suse.de>
8550         PR tree-optimization/47632
8551         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8552         unused up_to_stmt parameter, return whether cfg-cleanup is
8553         necessary, remove EH info properly.
8554         (forward_propagate_into_gimple_cond): Adjust caller.
8555         (forward_propagate_into_cond): Likewise.
8556         (forward_propagate_comparison): Likewise.
8557         (tree_ssa_forward_propagate_single_use_vars): Make
8558         forward_propagate_comparison case similar to the two others.
8560 2011-02-08  Nick Clifton  <nickc@redhat.com>
8562         * config/mn10300/mn10300.opt (mliw): New command line option.
8563         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8564         (liw_bundling): New automaton.
8565         (liw): New attribute.
8566         (liw_op): New attribute.
8567         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8568         (movsi_internal): Add LIW attributes.
8569         (andsi3): Likewise.
8570         (iorsi3): Likewise.
8571         (xorsi3): Likewise.
8572         (addsi3): Separate register and immediate alternatives.
8573         Add LIW attributes.
8574         (subsi3): Likewise.
8575         (cmpsi): Likewise.
8576         (aslsi3): Likewise.
8577         (lshrsi3): Likewise.
8578         (ashrsi3): Likewise.
8579         (liw): New pattern.
8580         * config/mn10300/mn10300.c (liw_op_names): New
8581         (mn10300_print_operand): Handle 'W' operand descriptor.
8582         (extract_bundle): New function.
8583         (check_liw_constraints): New function.
8584         (liw_candidate): New function.
8585         (mn10300_bundle_liw): New function.
8586         (mn10300_reorg): New function.
8587         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8588         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8589         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8590         __LIW__ or __NO_LIW__.
8591         * doc/invoke.texi: Describe the -mliw command line option.
8593 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8595         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8596         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8597         pthread_mutex_unlock): Remove.
8598         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8599         * config/pa/t-pa64: Likewise.
8600         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8601         shared libc if not linking against libpthread.
8602         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8604 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8606         PR target/47558
8607         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8608         on 10.6 and later to ensure that we always use the unwinder from
8609         the system.  Only add -no_compact_unwind when tarteting darwin
8610         10.6 or later.
8612 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8614         PR target/46997
8615         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8616         (vec_interleave_lowv2sf): Ditto.
8617         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8618         (vec_extract_oddv2sf): Ditto.
8620 2011-02-07  Mike Stump  <mikestump@comcast.net>
8622         PR target/42333
8623         Add __ieee_divdc3 entry point.
8624         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8625         entry point.
8626         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8627         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8628         * config/darwin.c (darwin_rename_builtins): Add.
8629         * config/darwin-protos.h (darwin_rename_builtins): Add.
8631 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8633         PR target/47636
8634         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8635         for the condition.
8637 2011-02-07  Mike Stump  <mikestump@comcast.net>
8639         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8641 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8643         PR target/47534
8644         * config/avr/libgcc.S (exit): Move .endfunc
8646 2011-02-07  Richard Guenther  <rguenther@suse.de>
8648         PR tree-optimization/47615
8649         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8650         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8651         (run_scc_vn): Initialize it.
8652         (visit_reference_op_load): Use it.
8653         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8655 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8657         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8658         DImode trapping arithmetic libfuncs.
8660 2011-02-07  Richard Guenther  <rguenther@suse.de>
8662         PR tree-optimization/47621
8663         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8664         two duplicates ...
8665         (execute_update_addresses_taken): ... here.  Make it more
8666         conservative in what we accept.
8668 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8670         * config/sparc/freebsd.h (ASM_SPEC): Define.
8671         * config/sparc/vxworks.h (ASM_SPEC): Define.
8673 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8675         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8677 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8679         * doc/invoke.texi: Remove reference to compiler internals from
8680         user documentation.
8682         * reg-notes.def: Remove REG_VALUE_PROFILE.
8683         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8685 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8687         PR middle-end/47610
8688         * varasm.c (default_section_type_flags): If decl is NULL,
8689         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8691 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8693         PR debug/42631
8694         * web.c (entry_register): Don't clobber the number of the
8695         first uninitialized reference in used[].
8697 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8699         PR tree-optimization/46194
8700         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8701         (build_classic_dist_vector_1): Do not represent classic distance
8702         vectors when the access functions are variating in different loops.
8704 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8706         * config/mips/iris6.opt: New.
8707         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8709 2011-02-04  Richard Henderson  <rth@redhat.com>
8710             Steve Ellcey  <sje@cup.hp.com>
8712         PR target/46997
8713         * config/ia64/predicates.md (mux1_brcst_element): New.
8714         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8715         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8716         (ia64_unpack_sign): New.
8717         (ia64_expand_unpack): Rewrite using new routines.
8718         (ia64_expand_widen_sum): Ditto.
8719         (ia64_expand_dot_prod_v8qi): Ditto.
8720         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8721         routines, add endian check.
8722         (pmpy2_even): Rename from pmpy2_r, add endian check.
8723         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8724         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8725         (vec_widen_smult_hi_v4hi): Ditto.
8726         (vec_widen_umult_lo_v4hi): Ditto.
8727         (vec_widen_umult_hi_v4hi): Ditto.
8728         (mulv2si3): Change endian checks.
8729         (sdot_prodv4hi): Rewrite with new calls.
8730         (udot_prodv4hi): New.
8731         (vec_pack_ssat_v4hi): Add endian check.
8732         (vec_pack_usat_v4hi): Ditto.
8733         (vec_pack_ssat_v2si): Ditto.
8734         (max1_even): Rename from max1_r, add endian check.
8735         (max1_odd): Rename from max1_l, add endian check.
8736         (*mux1_rev): Format change.
8737         (*mux1_mix): Ditto.
8738         (*mux1_shuf): Ditto.
8739         (*mux1_alt): Ditto.
8740         (*mux1_brcst_v8qi): Use new predicate.
8741         (vec_extract_evenv8qi): Remove endian check.
8742         (vec_extract_oddv8qi): Ditto.
8743         (vec_interleave_lowv4hi): Format change.
8744         (vec_interleave_highv4hi): Ditto.
8745         (mix2_even): Rename from mix2_r, add endian check.
8746         (mix2_odd): Rename from mux2_l, add endian check.
8747         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8748         (vec_extract_evenodd_helper): Format change.
8749         (vec_extract_evenv4hi): Remove endian check.
8750         (vec_extract_oddv4hi): Remove endian check.
8751         (vec_interleave_lowv2si): Format change.
8752         (vec_interleave_highv2si): Format change.
8753         (vec_initv2si): Remove endian check.
8754         (vecinit_v2si): Add endian check.
8755         (reduc_splus_v2sf): Add endian check.
8756         (reduc_smax_v2sf): Ditto.
8757         (reduc_smin_v2sf): Ditto.
8758         (vec_initv2sf): Remove endian check.
8759         (fpack): Add endian check.
8760         (fswap): Add endian check.
8761         (vec_interleave_highv2sf): Add endian check.
8762         (vec_interleave_lowv2sf): Add endian check.
8763         (fmix_lr): Add endian check.
8764         (vec_setv2sf): Format change.
8765         (*vec_extractv2sf_0_be): Use shift to extract operand.
8766         (*vec_extractv2sf_1_be): New.
8767         (vec_pack_trunc_v4hi): Add endian check.
8768         (vec_pack_trunc_v2si): Format change.
8770 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8772         PR inline-asm/23200
8773         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8774         do bb, locus and block comparison and disallow loads if it is not set.
8775         (stmt_is_replaceable_p): New function.
8776         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8777         callers.
8778         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8779         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8780         SSA_NAME_DEF_STMT.
8781         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8783 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8785         * config/rs6000/xilinx.opt: New.
8786         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8788 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8790         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8792 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8794         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8795         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8796         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8797         secondary_reload_info, xtensa_secondary_reload): Remove.
8798         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8799         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8800         (xtensa_preferred_reload_class): Make static. Change return and
8801         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8802         Use CONST_DOUBLE_P predicate.
8803         (xtensa_preferred_output_reload_class): New function.
8804         (xtensa_secondary_reload): Make static.
8806 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8808         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8809         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8810         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8812 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8814         PR middle-end/31490
8815         * output.h (SECTION_RELRO): Define.
8816         (SECTION_MACH_DEP): Adjust.
8817         (get_variable_section): New prototype.
8818         * varpool.c (varpool_finalize_named_section_flags): New function.
8819         (varpool_assemble_pending_decls): Call it.
8820         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8821         * cgraphunit.c (cgraph_output_in_order): Call
8822         varpool_finalize_named_section_flags.
8823         * varasm.c (get_section): Allow section flags conflicts between
8824         relro and read-only sections if the section hasn't been declared yet.
8825         Set SECTION_OVERRIDE after diagnosing section type conflict.
8826         (get_variable_section): No longer static.
8827         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8828         readonly sections that need relocations.
8829         (decl_readonly_section_1): New function.
8830         (decl_readonly_section): Use it.
8832         Revert:
8833         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8834                     Steve Ellcey  <sje@cup.hp.com>
8836         PR middle-end/31490
8837         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8838         if section attribute used.
8840 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8842         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8843         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8844         (darwin_init_sections): Remove assertion.
8846 2011-02-03  Nick Clifton  <nickc@redhat.com>
8848         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8849         lt and ge.
8850         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8851         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8852         instead of "n" and "pz".
8853         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8854         CC_FLAG_S.
8856 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8858         PR target/47312
8859         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8860         fma, expand FMA_EXPR as fma{,f,l} call.
8862         PR lto/47274
8863         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8864         copy them into a unsigned char variable and pass address of it to
8865         lto_output_data_stream.
8867         PR target/47564
8868         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8869         around backend_init_target and lang_dependent_init_target calls.
8870         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8871         (verify_cgraph_node): Don't call set_cfun here.  Use
8872         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8873         Set error_found for incorrectly represented calls to thunks.
8875 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8877         PR debug/43092
8878         PR rtl-optimization/43494
8879         * rtl.h (for_each_inc_dec_fn): New type.
8880         (for_each_inc_dec): Declare.
8881         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8882         (for_each_inc_dec_find_inc_dec): New fn.
8883         (for_each_inc_dec_find_mem): New fn.
8884         (for_each_inc_dec): New fn.
8885         * dse.c (struct insn_size): Remove.
8886         (replace_inc_dec, replace_inc_dec_mem): Remove.
8887         (emit_inc_dec_insn_before): New fn.
8888         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8889         (canon_address): Pass mem modes to cselib_lookup.
8890         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8891         (cselib_lookup_from_insn): Likewise.
8892         (cselib_subst_to_values): Likewise.
8893         * cselib.c (find_slot_memmode): New var.
8894         (cselib_find_slot): New fn.  Use it instead of
8895         htab_find_slot_with_hash everywhere.
8896         (entry_and_rtx_equal_p): Use find_slot_memmode.
8897         (autoinc_split): New fn.
8898         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8899         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8900         Deal with autoinc.  Special-case recursion into MEMs.
8901         (cselib_hash_rtx): Likewise.
8902         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8903         address and MEM modes.
8904         (cselib_subst_to_values): Add memmode, pass it on.
8905         Deal with autoinc.
8906         (cselib_lookup): Add memmode argument, pass it on.
8907         (cselib_lookup_from_insn): Add memmode.
8908         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8909         (struct cselib_record_autoinc_data): New.
8910         (cselib_record_autoinc_cb): New fn.
8911         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8912         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8913         (cselib_process_insn): ... here.
8914         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8915         to cselib_lookup.
8916         (add_uses): Likewise, also to cselib_subst_to_values.
8917         (add_stores): Likewise.
8918         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8919         cselib_subst_to_values.
8920         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8921         * gcse.c (do_local_cprop): Adjusted.
8922         * postreload.c (reload_cse_simplify_set): Adjusted.
8923         (reload_cse_simplify_operands): Adjusted.
8924         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8926 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8928         PR tree-optimization/45122
8929         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8930         unsafe assumptions when there's more than one loop exit.
8932 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8934         PR target/47272
8935         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8936         Document using vector double with the load/store builtins, and
8937         that the load/store builtins always use Altivec instructions.
8939         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8940         to use altivec memory instructions, even on VSX.
8941         (vector_altivec_store_<mode>): Ditto.
8943         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8944         function.
8946         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8947         V2DF, V2DI support to load/store overloaded builtins.
8949         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8950         altivec load/store builtins for V2DF/V2DI types.
8952         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8953         set avoid indexed addresses on power6 if -maltivec.
8954         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8955         vector_altivec_load/vector_altivec_store builtins.
8956         (altivec_expand_st_builtin): Ditto.
8957         (altivec_expand_builtin): Add VSX memory builtins.
8958         (rs6000_init_builtins): Add V2DI types to internal types.
8959         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8960         load/store builtins.
8961         (rs6000_address_for_altivec): Insure memory address is appropriate
8962         for Altivec.
8964         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8965         vec_vsx_ld and vec_vsx_st.
8966         (vsx_store_<mode>): Ditto.
8968         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8969         variables to hold long long types for VSX vector memory builtins.
8970         (RS6000_BTI_unsigned_long_long): Ditto.
8971         (long_long_integer_type_internal_node): Ditti.
8972         (long_long_unsigned_type_internal_node): Ditti.
8974         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8975         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8976         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8978         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8979         short cuts.
8980         (vec_vsx_st): Ditto.
8982 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8984         * config/pa/pa-hpux10.opt: New.
8985         * config/hpux11.opt (pthread): New Driver option.
8986         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8987         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8989 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8991         * config/ia64/vms.opt: New.
8992         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8994 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8996         PR target/47580
8997         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8998         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8999         generator functions.
9000         (vsx_floatuns<VSi><mode>2): Ditto.
9001         (vsx_fix_trunc<mode><VSi>2): Ditto.
9002         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
9004 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
9006         * config/i386/djgpp.opt (posix): New Driver option.
9008 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9010         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
9011         Move to the unsupported targets list.
9013 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
9015         PR rtl-optimization/47525
9016         * df-scan.c: Update copyright years.
9017         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
9018         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
9020 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9022         * config/i386/sysv4.h (TARGET_VERSION): Remove.
9023         (SUBTARGET_RETURN_IN_MEMORY): Remove.
9024         (ASM_OUTPUT_ASCII): Remove.
9025         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
9027 2011-02-02  Jeff Law  <law@redhat.com>
9029         PR middle-end/47543
9030         * reload.c (find_reloads_address): Handle reg+d address where both
9031         components are invalid by reloading the entire address.
9033 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9034             Richard Guenther  <rguenther@suse.de>
9036         PR tree-optimization/40979
9037         PR bootstrap/47044
9038         * passes.c (init_optimization_passes): After LIM call copy_prop
9039         and DCE to clean up.
9040         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9042 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9044         PR tree-optimization/47576
9045         PR tree-optimization/47555
9046         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9047         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9048         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9049         * tree-scalar-evolution.c (follow_ssa_edge): Use
9050         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9052 2011-02-02  Richard Guenther  <rguenther@suse.de>
9054         PR tree-optimization/47566
9055         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9057 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9059         PR debug/47106
9060         PR debug/47402
9061         * tree-inline.c (declare_return_variable): Remove unused caller
9062         variable.
9064         PR debug/47106
9065         PR debug/47402
9066         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9067         * cfgexpand.c (account_used_vars_for_block): Use them.
9068         * tree-nrv.c (tree_nrv): Likewise.
9069         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9070         (dump_scope_block): Likewise.
9071         (remove_unused_locals): Likewise.
9073         PR debug/47106
9074         PR debug/47402
9075         * tree-inline.c (declare_return_variable): Add result decl to
9076         local decls only once.
9077         * gimple-low.c (record_vars_into): Mark newly-created variables
9078         as referenced.
9080 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9082         PR debug/47498
9083         PR debug/47501
9084         PR debug/45136
9085         PR debug/45130
9086         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9087         debug insns.
9088         (no_real_insns_p, schedule_block, set_priorities): Drop special
9089         treatment of boundary debug insns.
9090         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9091         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9092         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9093         (BOUNDARY_DEBUG_INSN_P): Likewise.
9094         (SCHEDULE_DEBUG_INSN_P): Likewise.
9095         * sched-rgn.c (init_ready_list): Drop special treatment of
9096         boundary debug insns.
9097         * final.c (rest_of_clean_state): Clear notes' BB.
9099 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9101         * config/openbsd.opt (assert=): New Driver option.
9103 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9105         * config/i386/nto.opt: New.
9106         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9108 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9110         * config/i386/netware.opt: New.
9111         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9113 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9115         * config/interix.opt (posix): New Driver option.
9117 2011-02-01  DJ Delorie  <dj@redhat.com>
9119         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9121         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9122         class for A0/A1.
9124 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9126         PR tree-optimization/47561
9127         * toplev.c (process_options): Print the Graphite flags.  Add
9128         flag_loop_flatten to the list of options requiring Graphite.
9130 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9132         * config/i386/cygming.opt (posix): New Driver option.
9134 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9136         * config/arm/vxworks.opt: New.
9137         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9139 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9141         * config/alpha/elf.opt: New.
9142         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9143         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9145 2011-02-01  Richard Guenther  <rguenther@suse.de>
9147         PR tree-optimization/47559
9148         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9149         store-motion on references that can throw.
9151 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9153         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9154         * tree-pass.h (TDF_CSELIB): New macro.
9155         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9156         cselib_lookup): Check for it rather than for TDF_DETAILS.
9158 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9160         PR driver/47547
9161         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9162         is HOST_BIT_BUCKET.
9164         * opts.c (finish_options): Don't add x_aux_base_name if it is
9165         HOST_BIT_BUCKET.
9167 2011-02-01  Richard Guenther  <rguenther@suse.de>
9169         PR tree-optimization/47555
9170         Revert
9171         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9173         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9175 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9177         PR gcc/46692
9178         * config/lm32/t-lm32: Add multilib for all CPU options.
9180 2011-02-01  Richard Guenther  <rguenther@suse.de>
9182         PR tree-optimization/47541
9183         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9184         sure to have a field at offset zero.
9186 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9188         * config/arc/arc.opt (EB, EL): New Driver options.
9190 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9192         * config/alpha/osf5.opt: New.
9193         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9195 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9197         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9199 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9201         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9202         -floop-interchange.
9203         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9204         is an alias of -floop-interchange and that it requires the
9205         Graphite infrastructure.
9206         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9207         flag_loop_interchange based on the value of flag_tree_loop_linear.
9209 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9210             Richard Guenther  <rguenther@suse.de>
9212         PR tree-optimization/47538
9213         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9214         type instead of r1type, except for comparisons.  For right
9215         shifts and comparisons punt if there are mismatches in
9216         sizetype vs. non-sizetype types.
9218 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9220         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9221         avx_runtime.
9223 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9225         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9226         version number.
9227         * configure: Regenerate.
9229 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9231         * configure.ac (gcc_cv_ld_static_option): Define.
9232         (gcc_cv_ld_dynamic_option): Define.
9233         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9234         instead.
9235         (HAVE_LD_STATIC_DYNAMIC): Update message.
9236         (LD_STATIC_OPTION): Define.
9237         (LD_DYNAMIC_OPTION): Define.
9238         * configure: Regenerate.
9239         * config.in: Regenerate.
9240         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9241         HAVE_LD_STATIC_DYNAMIC]: Use them.
9243 2011-01-31  Nick Clifton  <nickc@redhat.com>
9245         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9246         registers inside interrupt handlers if the handler is not a leaf
9247         function.
9249 2011-01-31  Nick Clifton  <nickc@redhat.com>
9251         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9252         reg_renumber returning an INVALID_REGNUM.
9254 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9256         PR libgcj/44341
9257         * doc/install.texi: Document host options discarded when cross
9258         configuring target libraries.
9260 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9262         Reverted:
9263         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9264         PR debug/45136
9265         PR debug/45130
9266         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9267         debug insns.
9268         (no_real_insns_p, schedule_block, set_priorities): Drop special
9269         treatment of boundary debug insns.
9270         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9271         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9272         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9273         (BOUNDARY_DEBUG_INSN_P): Likewise.
9274         (SCHEDULE_DEBUG_INSN_P): Likewise.
9275         * sched-rgn.c (init_ready_list): Drop special treatment of
9276         boundary debug insns.
9277         * final.c (rest_of_clean-state): Clear notes' BB.
9279 2011-01-31  Alan Modra  <amodra@gmail.com>
9281         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9282         toc relative expressions as we do in print_operand_address.
9284 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9286         * doc/extend.texi: Follow spelling conventions.
9287         * doc/invoke.texi: Fix a typo.
9289 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9291         * config/hpux11.opt: New.
9292         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9293         ia64*-*-hpux*): Use hpux11.opt.
9295 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9297         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9298         to tmake_file.
9300 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9302         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9303         support sites.
9305 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9307         * doc/install.texi (Binaries): Remove outdated reference for
9308         Motorola 68HC11/68HC12 downloads.
9310 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9312         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9313         Drepper's paper.
9315 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9317         PR bootstrap/47147
9318         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9319         used by NetBSD.
9321 2011-01-28  Ahmad Sharif  <asharif@google.com>
9323         * value-prof.c (check_counter): Corrected error message.
9325 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9327         * config/arm/arm.c (arm_legitimize_reload_address): New.
9328         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9329         arm_legitimize_reload_address.
9330         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9332 2011-01-28  Ian Lance Taylor  <iant@google.com>
9334         * godump.c (go_define): Ignore macros whose definitions include
9335         two adjacent operands.
9337 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9339         PR target/42894
9340         * varasm.c (force_const_mem): Store copy of x in desc->constant
9341         instead of x itself.
9342         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9343         itself into REG_EQUAL note.
9345 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9347         * config/freebsd.opt (posix, rdynamic): New Driver options.
9349 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9351         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9352         -Bstatic/-Bdynamic.
9353         * configure: Regenerate.
9355 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9357         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9358         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9360 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9362         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9363         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9364         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9365         (s390_preferred_reload_class): Make static. Change return and
9366         'rclass' argument type to reg_class_t.
9368 2011-01-27  Jan Hubicka  <jh@suse.cz>
9370         PR middle-end/46949
9371         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9372         (process_function_and_variable_attributes): Check defined weakrefs.
9374 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9376         PR tree-optimization/47228
9377         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9378         build_ref_for_offset.
9380 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9382         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9384 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9386         PR rtl-optimization/46856
9387         * postreload.c (reload_combine_recognize_const_pattern): Do not
9388         separate cc0 setter and user on cc0 targets.
9390 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9392         PR c/43082
9393         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9394         passed a VOID_TYPE expression, immediately emit an error and
9395         return error_mark_node.
9397 2011-01-26  Jeff Law  <law@redhat.com>
9399         PR rtl-optimization/47464
9400         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9401         rather than may_trap_p as needed.
9403 2011-01-26  DJ Delorie  <dj@redhat.com>
9405         PR rtl-optimization/46878
9406         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9407         setter/user dependency as well.
9409 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9411         PR rtl-optimization/44469
9412         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9413         after removing trivially dead basic blocks.
9415 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9417         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9418         * config/frv/frv.h (LINK_SPEC): Likewise.
9419         * config/i386/netware.h (LINK_SPEC): Likewise.
9420         * config/m68k/linux.h (ASM_SPEC): Likewise.
9421         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9422         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9423         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9424         * config/sparc/linux.h (ASM_SPEC): Likewise.
9425         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9426         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9428 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9430         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9431         * config/frv/frv.h (ASM_SPEC): Likewise.
9432         * config/m68k/linux.h (ASM_SPEC): Likewise.
9433         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9434         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9435         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9436         * config/sparc/linux.h (ASM_SPEC): Likewise.
9437         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9438         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9440 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9442         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9443         * config/frv/frv.h (LINK_SPEC): Likewise.
9444         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9446 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9448         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9449         * config/frv/frv.h (ASM_SPEC): Likewise.
9450         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9451         * config/m68k/linux.h (ASM_SPEC): Likewise.
9452         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9453         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9454         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9455         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9456         * config/sparc/linux.h (ASM_SPEC): Likewise.
9457         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9458         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9459         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9461 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9463         PR target/46997
9464         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9465         (*mux2): Ditto.
9466         (vec_extract_evenodd_help): Ditto.
9467         (vec_extract_evenv4hi): Ditto.
9468         (vec_extract_oddv4hi): Ditto.
9469         (vec_interleave_lowv2si): Ditto.
9470         (vec_interleave_highv2si): Ditto.
9471         (vec_extract_evenv2si): Ditto.
9472         (vec_extract_oddv2si: Ditto.
9473         (vec_pack_trunc_v2si): Ditto.
9475 2011-01-22  Jan Hubicka  <jh@suse.cz>
9477         PR target/47237
9478         * cgraph.h (cgraph_local_info): New field can_change_signature.
9479         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9480         signature can change.
9481         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9482         can change.
9483         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9484         (cgraph_function_versioning): We can not change signature of functions
9485         that don't allow that.
9486         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9487         (lto_input_node): Likewise.
9488         * ipa-inline.c (compute_inline_parameters): Compute
9489         local.can_change_signature.
9490         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9491         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9492         functions that can not change signature.
9493         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9494         init_cumulative_args): Do not use local calling conventions
9495         for functions that can not change signature.
9497 2011-01-22  Jan Hubicka  <jh@suse.cz>
9499         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9501 2011-01-26  Richard Guenther  <rguenther@suse.de>
9503         PR tree-optimization/47190
9504         * cgraphunit.c (process_common_attributes): New function.
9505         (process_function_and_variable_attributes): Use it.
9507 2011-01-26  Richard Guenther  <rguenther@suse.de>
9509         PR lto/47423
9510         * cgraphbuild.c (record_eh_tables): Record reference to personality
9511         function.
9513 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9515         PR debug/45454
9516         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9517         non-debug insns from moving up.
9519 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9521         PR target/40125
9522         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9523         t-dlldir{,-x} fragment for build and add it to tmake_file.
9524         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9525         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9526         * config/i386/t-dlldir: New file.
9527         (SHLIB_DLLDIR): Define.
9528         * config/i386/t-dlldir-x: New file.
9529         (SHLIB_DLLDIR): Define.
9530         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9531         (SHLIB_INSTALL): Use it.
9533 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9535         PR target/47246
9536         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9537         lower bound of the allowed Thumb-2 coprocessor load/store
9538         index range to -256. Add explaining comment.
9540 2011-01-25  Ian Lance Taylor  <iant@google.com>
9542         * godump.c (go_define): Improve lexing of macro expansion to only
9543         accept expressions which match Go spec.
9545 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9547         PR c++/43601
9548         * tree.c (handle_dll_attribute): Handle it.
9549         * doc/extend.texi (@item dllexport): Mention it.
9550         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9552 2011-01-25  Ian Lance Taylor  <iant@google.com>
9554         PR tree-optimization/26854
9555         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9556         (decl_jump_unsafe): Move higher in file, with no other change.
9557         (bind): Set has_jump_unsafe_decl if appropriate.
9558         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9559         (check_earlier_gotos): Likewise.
9560         (c_check_switch_jump_warnings): Likewise.
9562 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9564         * doc/invoke.texi (Warning Options): Add missing hyphen.
9565         (-fprofile-dir): Minor grammatical fixes.
9566         (-fbranch-probabilities): Likewise.
9568 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9570         PR debug/45136
9571         PR debug/45130
9572         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9573         debug insns.
9574         (no_real_insns_p, schedule_block, set_priorities): Drop special
9575         treatment of boundary debug insns.
9576         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9577         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9578         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9579         (BOUNDARY_DEBUG_INSN_P): Likewise.
9580         (SCHEDULE_DEBUG_INSN_P): Likewise.
9581         * sched-rgn.c (init_ready_list): Drop special treatment of
9582         boundary debug insns.
9583         * final.c (rest_of_clean-state): Clear notes' BB.
9585 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9587         * Makefile.in (LAMBDA_H): Removed.
9588         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9589         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9590         lambda-trans.o, and tree-loop-linear.o.
9591         (lto-symtab.o): Remove dependence on LAMBDA_H.
9592         (tree-loop-linear.o): Remove rule.
9593         (lambda-mat.o): Same.
9594         (lambda-trans.o): Same.
9595         (lambda-code.o): Same.
9596         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9597         (tree-vect-slp.o): Same.
9598         * hwint.h (gcd): Moved here.
9599         (least_common_multiple): Same.
9600         * lambda-code.c: Removed.
9601         * lambda-mat.c: Removed.
9602         * lambda-trans.c: Removed.
9603         * lambda.h: Removed.
9604         * tree-loop-linear.c: Removed.
9605         * lto-symtab.c: Do not include lambda.h.
9606         * omega.c (gcd): Removed.
9607         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9608         * tree-data-ref.c (print_lambda_vector): Moved here.
9609         (lambda_vector_copy): Same.
9610         (lambda_matrix_copy): Same.
9611         (lambda_matrix_id): Same.
9612         (lambda_vector_first_nz): Same.
9613         (lambda_matrix_row_add): Same.
9614         (lambda_matrix_row_exchange): Same.
9615         (lambda_vector_mult_const): Same.
9616         (lambda_vector_negate): Same.
9617         (lambda_matrix_row_negate): Same.
9618         (lambda_vector_equal): Same.
9619         (lambda_matrix_right_hermite): Same.
9620         * tree-data-ref.h: Do not include lambda.h.
9621         (lambda_vector): Moved here.
9622         (lambda_matrix): Same.
9623         (dependence_level): Same.
9624         (lambda_transform_legal_p): Removed declaration.
9625         (lambda_collect_parameters): Same.
9626         (lambda_compute_access_matrices): Same.
9627         (lambda_vector_gcd): Same.
9628         (lambda_vector_new): Same.
9629         (lambda_vector_clear): Same.
9630         (lambda_vector_lexico_pos): Same.
9631         (lambda_vector_zerop): Same.
9632         (lambda_matrix_new): Same.
9633         * tree-flow.h (least_common_multiple): Removed declaration.
9634         * tree-parloops.c (lambda_trans_matrix): Moved here.
9635         (LTM_MATRIX): Same.
9636         (LTM_ROWSIZE): Same.
9637         (LTM_COLSIZE): Same.
9638         (LTM_DENOMINATOR): Same.
9639         (lambda_trans_matrix_new): Same.
9640         (lambda_matrix_vector_mult): Same.
9641         (lambda_transform_legal_p): Same.
9642         * tree-pass.h (pass_linear_transform): Removed declaration.
9643         * tree-ssa-loop.c (tree_linear_transform): Removed.
9644         (gate_tree_linear_transform): Removed.
9645         (pass_linear_transform): Removed.
9646         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9647         flag_loop_interchange.
9649 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9651         PR tree-optimization/47265
9652         PR tree-optimization/47443
9653         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9654         if name still has some uses.
9656 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9658         PR tree-optimization/47382
9659         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9660         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9662 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9664         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9665         sjlj_except_unwind_info.
9667 2011-01-25  Richard Guenther  <rguenther@suse.de>
9669         PR tree-optimization/47426
9670         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9671         visible functions results escape.
9673 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9675         PR target/45701
9676         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9677         (arm_get_frame_offsets): Use it.
9679 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9680             Jakub Jelinek  <jakub@redhat.com>
9682         PR tree-optimization/47271
9683         * tree-if-conv.c (bb_postdominates_preds): New.
9684         (if_convertible_bb_p): Call bb_postdominates_preds.
9685         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9686         (predicate_scalar_phi): Call bb_postdominates_preds.
9688 2011-01-25  Nick Clifton  <nickc@redhat.com>
9690         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9691         * config/rx/rx.c (rx_function_value): Likewise.
9692         (rx_promote_function_mode): Likewise.
9693         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9694         in order to make it legitimate.
9695         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9696         make sure that the first operand is the same as the result register.
9697         (addsi3_unspec): Delete.
9698         (subdi3): Do not accept immediate operands.
9699         (subdi3_internal): Likewise.
9701 2011-01-25  Jeff Law  <law@redhat.com>
9703         PR rtl-optimization/37273
9704         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9705         handle them like argument loads from stack slots.  Do not double
9706         count memory for memory constants and argument loads from stack slots.
9708 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9710         PR tree-optimization/47427
9711         PR tree-optimization/47428
9712         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9713         coalesce if the new root var would be TREE_READONLY.
9715 2011-01-25  Richard Guenther  <rguenther@suse.de>
9717         PR middle-end/47414
9718         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9719         correct type for TBAA.
9721 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9723         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9724         (close_phi_written_to_memory): Call for_each_index with
9725         dr_indices_valid_in_loop.
9727 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9729         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9730         when it is initialized.
9732 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9734         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9735         call to graphite_find_data_references_in_stmt.
9736         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9737         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9738         call to graphite_find_data_references_in_stmt.
9739         (analyze_drs_in_stmts): Same.
9740         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9741         in which the scalar analysis of indices is performed.
9742         (create_data_ref): Same.  Update call to dr_analyze_indices.
9743         (find_data_references_in_stmt): Update call to create_data_ref.
9744         (graphite_find_data_references_in_stmt): Same.
9745         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9746         declaration.
9747         (create_data_ref): Same.
9748         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9749         call to create_data_ref.
9751 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9753         * graphite-sese-to-poly.c (build_poly_scop): Move
9754         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9756 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9758         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9759         VAR_DECL, PARM_DECL, and RESULT_DECL.
9761 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9763         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9764         in a reduction PBB.
9765         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9766         that have already been marked as PBB_IS_REDUCTION.
9768 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9770         * graphite-scop-detection.c (same_close_phi_node): New.
9771         (remove_duplicate_close_phi): New.
9772         (make_close_phi_nodes_unique): New.
9773         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9775 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9777         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9778         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9779         of both data references to be the same.
9781 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9783         * graphite-dependences.c (build_lexicographical_constraint): Remove
9784         the gdim parameter.
9785         (build_lexicographical_constraint): Adjust call to
9786         ppl_powerset_is_empty.
9787         (dependence_polyhedron): Same.
9788         (graphite_legal_transform_dr): Same.
9789         (graphite_carried_dependence_level_k): Same.
9790         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9791         parameter.
9792         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9794 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9796         * graphite-sese-to-poly.c
9797         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9798         (close_phi_written_to_memory): New.
9799         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9800         and unshare_expr.
9802 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9804         * doc/install.texi: Update the expected version number of PPL to 0.11.
9805         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9806         #if PPL_VERSION_MINOR < 11.
9808 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9810         * graphite-dependences.c: Include graphite-cloog-util.h.
9811         (new_poly_ddr): Inlined into dependence_polyhedron.
9812         (free_poly_ddr): Moved close by new_poly_ddr.
9813         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9814         Early return NULL when ppl_powerset_is_empty returns true.
9815         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9816         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9817         (graphite_legal_transform_dr): Call new_poly_ddr.
9818         (graphite_carried_dependence_level_k): Same.
9819         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9820         (dot_transformed_deps_stmt_1): Removed.
9821         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9822         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9823         (dot_deps_1): Call dot_deps_2.
9824         * Makefile.in (graphite-dependences.o): Add missing dependence on
9825         graphite-cloog-util.h.
9827 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9829         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9830         (build_lexicographical_constraint): Same.
9831         (dependence_polyhedron_1): Same.
9832         (graphite_legal_transform_dr): Same.
9833         (graphite_carried_dependence_level_k): Same.
9834         * graphite-ppl.c (ppl_powerset_is_empty): New.
9835         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9836         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9838 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9840         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9841         the "a followed by b" relation and document it.
9843 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9845         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9846         iteration when the bag of constraints is empty.
9848 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9850         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9852 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9854         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9855         nest and two loop depths as parameters.
9856         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9857         lst_perfect_nestify.
9859 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9861         * graphite-dependences.c (print_pddr): Call
9862         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9864 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9866         * graphite-ppl.c (debug_gmp_value): New.
9867         * graphite-ppl.h (debug_gmp_value): Declared.
9869 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9871         * doc/install.texi: Document availability of cloog-0.16.
9873 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9875         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9876         invalid postdominance info.
9878 2011-01-24  Jan Hubicka  <jh@suse.cz>
9880         PR c/21659
9881         * doc/extend.texi (weak pragma): Drop claim that it must
9882         appear before definition.
9883         * varasm.c (merge_weak, declare_weak): Only sanity check
9884         that DECL is not output at a time it is declared weak.
9886 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9888         * machmode.def: Fixed comments.
9890 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9892         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9894 2011-01-24  Paul Koning  <ni1d@arrl.net>
9896         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9897         WORDS_BIG_ENDIAN.
9899 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9901         PR target/46519
9902         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9903         (block_info): Add scanned and prev.
9904         (move_or_delete_vzeroupper_2): Return if the basic block
9905         has been scanned and the upper 128bit state is unchanged
9906         from the last scan.
9907         (move_or_delete_vzeroupper_1): Return true if the exit
9908         state is changed.
9909         (move_or_delete_vzeroupper): Visit basic blocks using the
9910         work-list based algorithm based on vt_find_locations in
9911         var-tracking.c.
9913         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9915 2011-01-24  Nick Clifton  <nickc@redhat.com>
9917         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9918         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9919         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9920         then define __v850e1__.
9921         * doc/invoke.texi: Document -mv850es.
9923 2011-01-24  Richard Henderson  <rth@redhat.com>
9925         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9926         compound unordered comparisons.
9927         * config/rx/rx.c (rx_split_fp_compare): Remove.
9928         * config/rx/rx-protos.h: Update.
9929         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9930         (cbranchsf4): Don't call rx_split_fp_compare.
9931         (*cbranchsf4): Use rx_split_cbranch.
9932         (*cmpsf): Don't accept "i" constraint.
9933         (*conditional_branch): Only valid after reload.
9934         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9936 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9938         PR target/47385
9939         * config/rs6000/altivec.md (vector constant splitters): Add
9940         support for creating vector single precision constants if -mvsx is
9941         used and we would create the constant using Altivec primitives.
9943 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9944             Richard Sandiford  <rdsandiford@googlemail.com>
9946         PR rtl-optimization/47166
9947         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9948         mechanism for PRE_MODIFY and POST_MODIFY.
9949         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9950         reloadreg.
9952 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9954         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9956 2011-01-22  Jan Hubicka  <jh@suse.cz>
9958         PR lto/47333
9959         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9961 2011-01-22  Jan Hubicka  <jh@suse.cz>
9963         PR tree-optimization/43884
9964         PR lto/44334
9965         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9966         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9968 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9970         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9971         * config/s390/s390.c (s390_register_move_cost,
9972         s390_memory_move_cost): New.
9973         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9975 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9977         PR middle-end/47401
9978         * except.c (sjlj_assign_call_site_values): Move setting the
9979         crtl->uses_eh_lsda flag to ...
9980         (sjlj_mark_call_sites): ... here.
9981         (sjlj_emit_function_enter): Support NULL dispatch label.
9982         (sjlj_build_landing_pads): In a function with no landing pads
9983         that still has must-not-throw regions, generate code to register
9984         a personality function with empty LSDA.
9986 2011-01-21  Richard Henderson  <rth@redhat.com>
9988         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9990         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9992         * compare-elim.c: New file.
9993         * Makefile.in (OBJS-common): Add it.
9994         (compare-elim.o): New.
9995         * common.opt (fcompare-elim): New.
9996         * opts.c (default_options_table): Add OPT_fcompare_elim.
9997         * tree-pass.h (pass_compare_elim_after_reload): New.
9998         * passes.c (init_optimization_passes): Add it.
9999         * recog.h: Protect against re-inclusion.
10000         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
10001         * doc/invoke.texi (-fcompare-elim): Document it.
10002         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
10003         * doc/tm.texi: Rebuild.
10005 2011-01-22  Nick Clifton  <nickc@redhat.com>
10007         * config/rx/rx.md (cstoresf4): Pass comparison operator to
10008         rx_split_fp_compare.
10010 2011-01-22  Nick Clifton  <nickc@redhat.com>
10012         * config/rx/rx.md (UNSPEC_CONST): New.
10013         (deallocate_and_return): Wrap the amount popped off the stack in
10014         an UNSPEC_CONST in order to stop it being rejected by
10015         -mmax-constant-size.
10016         (pop_and_return): Add a "(return)" rtx.
10017         (call): Drop the immediate operand.
10018         (call_internal): Likewise.
10019         (call_value): Likewise.
10020         (call_value_internal): Likewise.
10021         (sibcall_internal): Likewise.
10022         (sibcall_value_internal): Likewise.
10023         (sibcall): Likewise.  Generate an explicit call using
10024         sibcall_internal.
10025         (sibcall_value): Likewise.
10026         (mov<>): FAIL if a constant operand is not legitimate.
10027         (addsi3_unpsec): New pattern.
10029         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
10030         (ok_for_max_constant): New function.
10031         (gen_safe_add): New function.
10032         (rx_expand_prologue): Use gen_safe_add.
10033         (rx_expand_epilogue): Likewise.
10034         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
10035         UNSPEC CONSTs.
10037 2011-01-21  Jeff Law  <law@redhat.com>
10039         PR tree-optimization/47053
10040         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10041         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10042         statements are deleted.
10043         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10044         is nonempty, then purge dead edges and cleanup the CFG.
10046 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10048         PR debug/47402
10049         Temporarily revert:
10050         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10051         PR debug/47106
10052         * tree-dfa.c (create_var_ann): Mark variable as used.
10054 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10056         PR middle-end/45566
10057         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10058         notes from other section in hot/cold partitioning even if
10059         last_action is -3.  Increment call_site_base.
10061         PR rtl-optimization/47366
10062         * fwprop.c (forward_propagate_into): Return bool.  If
10063         any changes are made, -fnon-call-exceptions is used and
10064         REG_EH_REGION note is present, call purge_dead_edges
10065         and return true if it purged anything.
10066         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10067         any EH edges were purged.
10069 2011-01-21  Jeff Law  <law@redhat.com>
10071         PR rtl-optimization/41619
10072         * caller-save.c (setup_save_areas): Break out code to determine
10073         which hard regs are live across calls by examining the reload chains
10074         so that it is always used.
10075         Eliminate code which checked REG_N_CALLS_CROSSED.
10077 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10079         PR tree-optimization/47355
10080         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10081         NOP has non-debug uses beyond PHIs in new_bb.
10083 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10085         PR debug/47106
10086         * cfgexpand.c (account_used_vars_for_block): Only account vars
10087         that are annotated as used.
10088         (estimated_stack_frame_size): Don't set TREE_USED.
10089         * tree-dfa.c (create_var_ann): Mark variable as used.
10091 2011-01-21  Richard Guenther  <rguenther@suse.de>
10093         PR middle-end/47395
10094         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10096 2011-01-21  Richard Guenther  <rguenther@suse.de>
10098         PR tree-optimization/47365
10099         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10100         (vn_reference_lookup_pieces): Adjust.
10101         (vn_reference_lookup): Likewise.
10102         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10103         (vn_reference_lookup_3): Only look through kills if in
10104         VN_WALKREWRITE mode.
10105         (vn_reference_lookup_pieces): Adjust.
10106         (vn_reference_lookup): Likewise.
10107         (visit_reference_op_load): Likewise.
10108         (visit_reference_op_store): Likewise.
10109         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10110         (compute_avail): Likewise.
10111         (eliminate): Likewise.
10113 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10115         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10116         DECL_IGNORED_P non-reg vars if they are used.
10118         PR tree-optimization/47391
10119         * varpool.c (const_value_known_p): Return false if
10120         decl is volatile.
10122 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10124         PR bootstrap/47215
10125         * config/i386/i386.c (ix86_local_alignment): Handle
10126         case for va_list_type_node is nil.
10127         (ix86_canonical_va_list_type): Likewise.
10129 2011-01-21  Alan Modra  <amodra@gmail.com>
10131         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10132         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10134 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10136         * config/arm/arm.md (define_attr type): Rename f_load
10137         and f_store to f_fpa_load and f_fpa_store. Update.
10138         (write_conflict): Deal with rename fallout.
10139         (*push_fp_multi): Likewise.
10140         * config/arm/fpa.md (f_load): Use f_fpa_load.
10141         (f_store): Use f_fpa_store.
10142         (*movsf_fpa): Likewise.
10143         (*movdf_fpa): Likewise.
10144         (*movxf_fpa): Likewise.
10145         (*thumb2_movsf_fpa): Likewise.
10146         (*thumb2_movdf_fpa): Likewise.
10147         (*thumb2_movxf_fpa): Likewise.
10148         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10149         f_loadd and f_stored.
10150         (*thumb2_movdi_vfp): Likewise.
10151         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10152         (*thumb2_movsi_vfp): Likewise.
10153         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10154         Use f_loads instead of f_load.
10155         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10157 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10159         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10160         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10161         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10162         (xtensa_mode_dependent_address_p): New function.
10163         (constantpool_address_p): Make static. Change return type to bool.
10164         Change argument type to const_rtx. Use CONST_INT_P predicate.
10166 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10168         PR debug/46583
10169         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10171 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10173         PR debug/47283
10174         * cfgexpand.c (expand_debug_expr): Instead of generating
10175         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10176         etc. handling.
10178 2011-01-20  Richard Guenther  <rguenther@suse.de>
10180         PR middle-end/47370
10181         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10182         the pointer operand of MEM_REFs.
10184 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10186         PR tree-optimization/46130
10187         * ipa-split.c (consider_split): If return_bb contains non-virtual
10188         PHIs other than for retval or if split_function would not adjust it,
10189         refuse to split.
10191 2011-01-20  Richard Guenther  <rguenther@suse.de>
10193         PR tree-optimization/47167
10194         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10195         Revert previous change, only avoid enumeral type changes.
10197 2011-01-19  Mike Stump  <mikestump@comcast.net>
10199         * doc/tm.texi.in (BRANCH_COST): Englishify.
10200         * doc/tm.texi (BRANCH_COST): Likewise.
10202 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10204         PR c++/47291
10205         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10206         (gen_scheduled_generic_parms_dies): New functions.
10207         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10208         generation for the end of CU compilation.
10209         (dwarf2out_finish): Generate template parameters DIEs here.
10211 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10213         PR debug/46240
10214         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10215         debug bind stmt on merge edges.
10217 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10219         PR debug/47079
10220         PR debug/46724
10221         * function.c (instantiate_expr): Instantiate incoming rtl of
10222         implicit arguments, and recurse on VALUE_EXPRs.
10223         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10224         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10226 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10228         * c-parser.c (c_parser_for_statement): Initialize
10229         collection_expression.
10231 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10233         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10235 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10237         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10238         (LINK_SHLIB_SPEC): Don't use %(link_path).
10239         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10241 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10243         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10244         (NO_SHARED_LIB_SUPPORT): Remove.
10245         (LINK_SHLIB_SPEC): Remove one conditional definition.
10247 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10249         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10250         %{call_shared}.
10251         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10252         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10253         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10254         %{call_shared} and conditionals on these options not being passed.
10255         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10256         %{call_shared}.
10258 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10260         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10261         simplify.
10263         * ipa-split.c: Spelling fixes.
10265 2011-01-19  Richard Henderson  <rth@redhat.com>
10267         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10268         (*mulsi3): Likewise.
10270         * longlong.h [__mn10300__] (count_leading_zeros): New.
10271         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10272         [__mn10300__] (add_ssaaaa, subddmmss): New.
10273         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10274         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10276 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10278         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10280 2011-01-19  Richard Henderson  <rth@redhat.com>
10282         * config/mn10300/mn10300.md (addsi3_flags): New.
10283         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10284         (subsi3_flags, subc_internal, subdi3): New.
10285         (subdi3_internal, *subdi3_degenerate): New.
10286         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10288         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10289         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10290         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10291         * config/mn10300/mn10300-protos.h: Update.
10292         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10293         (return_ret): Likewise.  Rename from return_internal_regs.
10294         (return_internal): Remove.
10296         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10297         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10298         (mn10300_legitimate_constant_p): Likewise.
10299         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10300         (mn10300_frame_size): New.
10301         (mn10300_expand_prologue): Use it.
10302         (mn10300_expand_epilogue): Likewise.
10303         (mn10300_initial_offset): Likewise.
10304         * config/mn10300/mn10300-protos.h: Update.
10305         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10306         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10307         (prologue, epilogue, return_internal): Tidy output code.
10308         (mn10300_store_multiple_operation, return): Likewise.
10309         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10310         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10311         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10312         (load_pic, am33_load_pic): New.
10313         (mn10300_load_pic0, mn10300_load_pic1): New.
10315         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10316         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10317         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10318         (cc_flags_for_mode, cc_flags_for_code): New.
10319         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10320         overflow flag is not valid.  Validate that the flags we need
10321         for the comparison are valid.
10322         (mn10300_output_cmp): Remove.
10323         (mn10300_output_add): New.
10324         (mn10300_select_cc_mode): Use cc_flags_for_code.
10325         (mn10300_split_cbranch): New.
10326         (mn10300_match_ccmode): New.
10327         (mn10300_split_and_operand_count): New.
10328         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10329         to the function.
10330         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10331         (addsi3): ... here.  Use mn10300_output_add.
10332         (*addsi3_flags): New.
10333         (*am33_subsi3, *mn10300_subsi3): Merge...
10334         (subsi3): ... here.  Use attribute isa.
10335         (*subsi3_flags): New.
10336         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10337         when possible.
10338         (*am33_andsi3, *mn10300_andsi3): Merge...
10339         (andsi3): ... here.
10340         (*andsi3_flags): New.
10341         (andsi3 splitters): New.
10342         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10343         (iorsi3): ... here.
10344         (*iorsi3_flags): New.
10345         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10346         (xorsi3): ... here.
10347         (*xorsi3_flags): New.
10348         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10349         (one_cmplsi2): ... here.
10350         (*one_cmplsi2_flags): New.
10351         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10352         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10353         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10354         use matching constraints to eliminate a self-comparison.
10355         (*integer_conditional_branch): Rename from integer_conditional_branch.
10356         Use int_mode_flags to match CC_REG.
10357         (*cbranchsi4_btst, *btstsi): New.
10358         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10359         mn10300_split_cbranch.
10360         (*am33_cmpsf): Rename from am33_cmpsf.
10361         (*float_conditional_branch): Rename from float_conditional_branch.
10362         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10363         (zero_extendqisi2): ... here.
10364         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10365         (zero_extendhisi2): ... here.
10366         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10367         (extendqisi2): ... here.
10368         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10369         (extendhisi2): ... here.
10370         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10371         (ashlsi3): ... here.
10372         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10373         (lshrsi3): ... here.
10374         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10375         (ashrsi3): ... here.
10376         (consecutive add peephole): Remove.
10377         * config/mn10300/predicates.md (label_ref_operand): New.
10378         (int_mode_flags): New.
10379         (CCZN_comparison_operator): New.
10381         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10382         (throughput_42_latency_43): New reservation.
10383         (mulsidi3, umulsidi3): New expanders.
10384         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10385         the MDR register to allocation; separately allocate the low and
10386         high parts of the DImode result.
10387         (umulsidi3_internal): Similarly.
10388         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10389         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10390         (udivsi3, umodsi3): Remove.
10391         (udivmodsi4, divmodsi4): New expanders.
10392         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10393         (*divmodsi4): Simiarly.
10394         (ext_internal): New.
10396         * config/mn10300/constraints.md ("z"): New constraint.
10397         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10398         (FIXED_REGISTERS): Don't fix MDR.
10399         (CALL_USED_REGSITERS): Reformat nicely.
10400         (REG_ALLOC_ORDER): Add MDR.
10401         (enum regclass): Add MDR_REGS.
10402         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10403         (IRA_COVER_CLASSES): Add MDR_REGS.
10404         (REGNO_REG_CLASS): Handle MDR_REG.
10405         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10406         (mn10300_register_move_cost): Likewise.
10407         * config/mn10300/mn10300.md (MDR_REG): New.
10408         (*movsi_internal): Handle moves to/from MDR_REGS.
10410         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10411         POST_MODIFY.
10412         (mn10300_secondary_reload): Tidy combination reload classes.
10413         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10414         addresses for AM33.  Allow symbolic offsets for reg+imm.
10415         (mn10300_regno_in_class_p): New.
10416         (mn10300_legitimize_reload_address): New.
10417         * config/mn10300/mn10300.h (enum reg_class): Remove
10418         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10419         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10420         SP_OR_GENERAL_REGS.
10421         (REG_CLASS_NAMES): Update to match.
10422         (REG_CLASS_CONTENTS): Likewise.
10423         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10424         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10425         (REGNO_IN_RANGE_P): Remove.
10426         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10427         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10428         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10429         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10430         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10431         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10432         (REGNO_GENERAL_P): New.
10433         (HAVE_POST_MODIFY_DISP): New.
10434         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10435         (LEGITIMIZE_RELOAD_ADDRESS): New.
10436         * config/mn10300/mn10300-protos.h: Update.
10438         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10439         DATA_REGS for AM33 stack-pointer destination.
10440         (mn10300_preferred_output_reload_class): Likewise.
10441         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10442         into a form appropriate for ...
10443         (TARGET_SECONDARY_RELOAD): New.
10444         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10445         * config/mn10300/mn10300-protos.h: Update.
10446         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10447         reload_insi; use the "A" constraint for the scratch; handle AM33
10448         moves of sp to non-address registers.
10450         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10451         (*movqi_internal): ... here.
10452         (*am33_movhi, *mn10300_movhi): Merge into...
10453         (*movhi_internal): ... here.
10454         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10455         as the source/destination of moves from/to SP.
10456         (movsf): Only allow for AM33-2.
10457         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10458         any integer constant constraint.  Only allow for AM33-2.  Tidy
10459         all of the alternative outputs.
10460         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10461         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10462         for MN103.
10463         (udivsi3, umodsi3): New patterns for MN103 only.
10465 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10467         * doc/tm.texi.in: Spell out that a lack of register class unions
10468         can lead to ICEs.
10469         * doc/tm.texi: Regenerate.
10471 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10473         PR rtl-optimization/47337
10474         * dce.c (check_argument_store): New function.
10475         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10477         PR tree-optimization/47290
10478         * tree-eh.c (infinite_empty_loop_p): New function.
10479         (cleanup_empty_eh): Use it.
10481 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10483         PR target/46997
10484         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10485         (a64_expand_widen_sum): Ditto.
10486         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10487         (vec_extract_evenodd_help): Ditto.
10488         (vec_extract_evenv4hi): Ditto.
10489         (vec_extract_oddv4hi): Ditto.
10490         (vec_extract_evenv2si): Ditto.
10491         (vec_extract_oddv2si): Ditto.
10492         (vec_extract_evenv2sf): Ditto.
10493         (vec_extract_oddv2sf): Ditto.
10494         (vec_pack_trunc_v4hi: Ditto.
10495         (vec_pack_trunc_v2si): Ditto.
10496         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10497         (vec_interleave_highv8qi): Ditto.
10498         (mix1_r): Ditto.
10499         (vec_extract_oddv8qi): Ditto.
10500         (vec_interleave_lowv4hi): Ditto.
10501         (vec_interleave_highv4hi): Ditto.
10502         (vec_interleave_lowv2si): Ditto.
10503         (vec_interleave_highv2si): Ditto.
10505 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10507         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10508         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10509         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10510         (pa_c_mode_for_suffix): New.
10511         (TARGET_EXPAND_BUILTIN): Define.
10512         (TARGET_C_MODE_FOR_SUFFIX): Define.
10513         (pa_builtins): Define.
10514         (pa_init_builtins): Register __float128 type and init new support
10515         builtins.
10516         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10517         * config/pa/quadlib.c (_U_Qfcopysign): New.
10519 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10521         PR middle-end/46894
10522         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10523         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10524         are defined.
10526 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10528         PR tree-optimization/47179
10529         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10530         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10532 2011-01-18  Richard Guenther  <rguenther@suse.de>
10534         PR rtl-optimization/47216
10535         * emit-rtl.c: Include tree-flow.h.
10536         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10537         of replicating it with different semantics.
10538         * Makefile.in (emit-rtl.o): Adjust.
10540 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10542         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10543         (cortex_a9_dp): Handle neon types correctly.
10545 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10547         PR rtl-optimization/47299
10548         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10549         subtarget.  Use normal multiplication if both operands are constants.
10550         * expmed.c (expand_widening_mult): Don't try to optimize constant
10551         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10552         before using it.
10554 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10556         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10557         spacing after 'e.g.', typos, comma, hyphenation.
10559 2011-01-17  Richard Henderson  <rth@redhat.com>
10561         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10562         (rx_restricted_mem_operand): New.
10563         (rx_shift_operand): Use register_operand.
10564         (rx_source_operand, rx_compare_operand): Likewise.
10565         * config/rx/rx.md (addsi3_flags): New expander.
10566         (adddi3): Rewrite as expander.
10567         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10568         (subsi3_flags): New expander.
10569         (subdi3): Rewrite as expander.
10570         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10572         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10573         (rx_init_builtins): Remove sat builtin.
10574         (rx_expand_builtin): Likewise.
10575         * config/rx/rx.md (ssaddsi3): New.
10576         (*sat): Rename from sat.  Represent the CC_REG input.
10578         * config/rx/predicates.md (rshift_operator): New.
10579         * config/rx/rx.c (rx_expand_insv): Remove.
10580         * config/rx/rx-protos.h: Update.
10581         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10582         operand to the canonical position.
10583         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10584         (*bitclr, *bitclr_in_memory): Similarly.
10585         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10586         (insv): Retain the zero_extract in the expansion.
10588         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10589         (bswaphi2, bitinvert, revw): Likewise.
10591         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10592         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10593         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10594         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10595         (bitset, bitset_in_memory): Likewise.
10596         (bitinvert, bitinvert_in_memory): Likewise.
10597         (bitclr, bitclr_in_memory): Likewise.
10598         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10599         (rx_strend, rx_cmpstrn): Likewise.
10600         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10601         (bitop peep2 patterns): Remove.
10603         * config/rx/rx.c (rx_match_ccmode): New.
10604         * config/rx/rx-protos.h: Update.
10605         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10606         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10607         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10608         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10609         (fix_truncsfsi2, floatsisf2): Likewise.
10610         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10611         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10612         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10613         (*subsi3_flags, *xorsi3_flags): New.
10615         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10617         * config/rx/rx.c (rx_print_operand): Remove workaround for
10618         unsplit comparison operations.
10620         * config/rx/rx.md (movsicc): Split after reload.
10621         (*movsicc): Merge *movsieq and *movsine via match_operator.
10622         (*stcc): New pattern.
10624         * config/rx/rx.c (rx_float_compare_mode): Remove.
10625         * config/rx/rx.h (rx_float_compare_mode): Remove.
10626         * config/rx/rx.md (cstoresi4): Split after reload.
10627         (*sccc): New pattern.
10629         * config/rx/predicates.md (label_ref_operand): New.
10630         (rx_z_comparison_operator): New.
10631         (rx_zs_comparison_operator): New.
10632         (rx_fp_comparison_operator): New.
10633         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10634         Validate that the flags are set properly for the comparison.
10635         (rx_gen_cond_branch_template): Remove.
10636         (rx_cc_modes_compatible): Remove.
10637         (mode_from_flags): New.
10638         (flags_from_code): Rename from flags_needed_for_conditional.
10639         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10640         (rx_select_cc_mode): Likewise.
10641         (rx_split_fp_compare): New.
10642         (rx_split_cbranch): New.
10643         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10644         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10645         (*cbranchsf4): Similarly.
10646         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10647         match_operator and rx_split_cbranch.
10648         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10649         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10650         (*cmpsi): Rename from cmpsi.
10651         (*tstsi): Rename from tstsi.
10652         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10653         (*conditional_branch): Rename from conditional_branch.
10654         (*reveresed_conditional_branch): Remove.
10655         (b<code>): Remove expander.
10656         * config/rx/rx-protos.h: Update.
10658         * config/rx/rx.c (rx_compare_redundant): Remove.
10659         * config/rx/rx.md (cmpsi): Don't use it.
10660         * config/rx/rx-protos.h: Update.
10662         * config/rx/rx-modes.def (CC_F): New mode.
10663         * config/rx/rx.c (rx_select_cc_mode): New.
10664         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10665         * config/rx/rx-protos.h: Update.
10667 2011-01-17  Richard Henderson  <rth@redhat.com>
10669         * except.c (dump_eh_tree): Fix stray ; after for statement.
10671 2011-01-17  Richard Guenther  <rguenther@suse.de>
10673         PR tree-optimization/47313
10674         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10675         handling before copying the body.  Properly deal with
10676         by-reference result in SSA form.
10678 2011-01-17  Ian Lance Taylor  <iant@google.com>
10680         PR target/47219
10681         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10682         (struct_value_alias_set): Don't define.
10683         (sparc_option_override): Don't set sparc_sr_alias_set and
10684         struct_value_alias_set.
10685         (save_or_restore_regs): Use gen_frame_mem rather than calling
10686         set_mem_alias_set.
10687         (sparc_struct_value_rtx): Likewise.
10689 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10691         PR target/47318
10692         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10693         (_mm_maskstore_pd): Likewise.
10694         (_mm_maskload_ps): Likewise.
10695         (_mm_maskstore_ps): Likewise.
10696         (_mm256_maskload_pd): Change mask to __m256i.
10697         (_mm256_maskstore_pd): Likewise.
10698         (_mm256_maskload_ps): Likewise.
10699         (_mm256_maskstore_ps): Likewise.
10701         * config/i386/i386-builtin-types.def: Updated.
10702         (ix86_expand_special_args_builtin): Likewise.
10704         * config/i386/i386.c (bdesc_special_args): Update
10705         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10706         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10707         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10708         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10710         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10711         Use <avxpermvecmode> on mask register.
10712         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10714 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10715             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10716             Eric Botcazou  <ebotcazou@adacore.com>
10718         PR target/46655
10719         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10720         if <= USHRT_MAX in 32-bit mode.
10722 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10724         * doc/install.texi (Configuration, Specific): Wrap long
10725         lines in examples.  Allow line wrapping in long options
10726         and URLs where beneficial for PDF output.
10728 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10730         * config/mips/mips.c (mips_classify_symbol): Don't return
10731         SYMBOL_PC_RELATIVE for nonlocal labels.
10733 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10735         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10737 2011-01-15  Jan Hubicka  <jh@suse.cz>
10739         PR tree-optimization/47276
10740         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10741         declarations as needed.
10743 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10745         * common.opt (fdevirtualize): New flag.
10746         * doc/invoke.texi (Option Summary): Document it.
10747         * opts.c (default_options_table): Add devirtualize flag.
10748         * ipa-prop.c (detect_type_change): Return immediately if
10749         devirtualize flag is not set.
10750         (detect_type_change_ssa): Likewise.
10751         (compute_known_type_jump_func): Likewise.
10752         (ipa_analyze_virtual_call_uses): Likewise.
10754 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10756         PR tree-optimization/45934
10757         PR tree-optimization/46302
10758         * ipa-prop.c (type_change_info): New type.
10759         (stmt_may_be_vtbl_ptr_store): New function.
10760         (check_stmt_for_type_change): Likewise.
10761         (detect_type_change): Likewise.
10762         (detect_type_change_ssa): Likewise.
10763         (compute_complex_assign_jump_func): Check for dynamic type change.
10764         (compute_complex_ancestor_jump_func): Likewise.
10765         (compute_known_type_jump_func): Likewise.
10766         (compute_scalar_jump_functions): Likewise.
10767         (ipa_analyze_virtual_call_uses): Likewise.
10768         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10770 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10772         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10773         * config/i386/i386.opt (msse5): New Alias.
10775 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10777         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10778         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10779         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10780         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10782 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10784         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10785         -mcpu options.
10786         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10787         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10788         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10789         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10790         Likewise.
10791         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10793 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10795         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10797 2011-01-14  Mike Stump  <mikestump@comcast.net>
10799         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10800         * config/fr30/fr30.md: Likweise
10801         (movsi_push): Likewise.
10802         (movsi_pop): Likewise.
10803         (enter_func): Likewise.
10804         * config/moxie/moxie.md (movsi_push): Likewise.
10805         (movsi_pop): Likewise.
10807 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10809         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10810         %{no_archive} %{exact_version}.
10811         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10812         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10813         %{no_archive} %{exact_version}.
10814         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10815         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10816         * config/mips/vxworks.h: Likewise.
10818 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10820         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10822 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10824         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10825         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10827 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10829         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10830         -nodefaultlib.
10832 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10834         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10835         for mcpu not cpu.
10836         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10837         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10838         not cpu.
10839         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10840         Don't handle -shlib.
10842 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10844         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10845         (CC1_SPEC): Don't handle -profile.
10847 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10849         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10850         * config/mips/mips.h (CC1_SPEC): Likewise.
10852 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10854         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10855         * config/mips/mips.h (CC1_SPEC): Likewise.
10857 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10859         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10860         * config/m32r/linux.h (LINK_SPEC): Likewise.
10861         * config/mips/linux.h (LINK_SPEC): Likewise.
10862         * config/mips/linux64.h (LINK_SPEC): Likewise.
10863         * config/sparc/linux.h (LINK_SPEC): Likewise.
10864         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10865         LINK_SPEC): Likewise.
10866         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10868 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10870         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10871         %{version:-v}.
10872         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10874 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10876         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10877         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10879 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10881         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10883 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10885         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10886         supports -Bstatic/-Bdynamic.
10887         * configure: Regenerate.
10889 2011-01-14  Jan Hubicka  <jh@suse.cz>
10890             Jack Howarth  <howarth@bromo.med.uc.edu>
10892         PR target/46037
10893         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10894         when checking debug_info_level. Test write_symbols instead of
10895         debug_hooks->var_location when setting flag_var_tracking_uninit.
10897 2011-01-14  Richard Guenther  <rguenther@suse.de>
10899         PR tree-optimization/47179
10900         * target.def (ref_may_alias_errno): New target hook.
10901         * targhooks.h (default_ref_may_alias_errno): Declare.
10902         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10903         (default_ref_may_alias_errno): New function.
10904         * target.h (struct ao_ref_s): Declare.
10905         * tree-ssa-alias.c: Include target.h.
10906         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10907         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10908         (targhooks.o): Likewise.
10909         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10910         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10912 2011-01-14  Richard Guenther  <rguenther@suse.de>
10914         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10916 2011-01-14  Richard Guenther  <rguenther@suse.de>
10918         PR tree-optimization/47280
10919         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10920         return CFG changes.
10921         (tree_ssa_forward_propagate_single_use_vars): Deal with
10922         CFG changes from associate_plusminus.
10924 2011-01-14  Richard Guenther  <rguenther@suse.de>
10926         PR middle-end/47281
10927         Revert
10928         2011-01-11  Richard Guenther  <rguenther@suse.de>
10930         PR tree-optimization/46076
10931         * tree-ssa.c (useless_type_conversion_p): Conversions from
10932         unprototyped to empty argument list function types are useless.
10934 2011-01-14  Richard Guenther  <rguenther@suse.de>
10936         PR tree-optimization/47286
10937         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10939 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10941         PR middle-end/46823
10942         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10944 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10946         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10947         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10948         * config/xtensa/xtensa.c (xtensa_libcall_value,
10949         xtensa_function_value_regno_p): New functions.
10950         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10952 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10954         PR c++/47213
10955         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10956         PE specific hook.
10957         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10958         New function prototype.
10959         * config/i386/winnt.c (i386_pe_assemble_visibility):
10960         Warn only if attribute was specified by user.
10962 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10964         PR target/47251
10965         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10966         floating point.
10967         (floatunsdidf2_fcfidu): Ditto.
10969 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10971         * config/s390/s390.c (print_operand_address): Replace 'error' with
10972         'output_operand_lossage'.
10973         (print_operand): Likewise.
10975 2011-01-13  Jeff Law  <law@redhat.com>
10977         PR rtl-optimization/39077
10978         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10979         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10980         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10981         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10982         * gcse.c (prune_insertions_deletions): New function.
10983         (compute_pre_data): Use it.
10985 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10987         PR debug/PR46973
10988         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10989         static function.
10990         (prune_unused_types_mark): Use it.
10992 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10994         PR rtl-optimization/45352
10995         * sel-sched.c: Update copyright years.
10996         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10997         in the advancing loop when we have issued issue_rate insns.
10999 2011-01-12  Richard Henderson  <rth@redhat.com>
11001         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
11002         (TARGET_MD_ASM_CLOBBERS): New.
11004         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
11005         (TARGET_DELEGITIMIZE_ADDRESS): New.
11007         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
11008         (clzsi2, *bsch): New patterns.
11010         * config/mn10300/mn10300.md (INT): New mode iterator.
11011         (*mov<INT>_clr): New pattern, and peep2 to generate it.
11013         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
11014         flag_split_wide_types.
11016         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
11017         (mn10300_trampoline_init): Rewrite without a template, an immediate
11018         load and a direct branch.
11019         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
11021 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
11023         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11024         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
11025         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
11026         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11028 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
11030         PR debug/47209
11031         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
11032         of type.
11034 2011-01-12  Jan Hubicka  <jh@suse.cz>
11036         PR driver/47244
11037         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11038         (PLUGIN_COND_CLOSE): New macro.
11039         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11041 2011-01-12  Richard Guenther  <rguenther@suse.de>
11043         PR lto/47259
11044         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11045         register variables in a MEM_REF.
11047 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11049         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11050         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11051         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11052         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11053         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11054         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11055         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11056         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11057         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11058         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11059         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11060         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11061         * config/gnu-user.h: New.  Copied from linux.h.
11062         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11063         GNU_USER_TARGET_STARTFILE_SPEC.
11064         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11065         GNU_USER_TARGET_ENDFILE_SPEC.
11066         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11067         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11068         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11069         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11070         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11071         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11072         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11073         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11074         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11075         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11076         * config/arm/linux-eabi.h (CC1_SPEC): Use
11077         GNU_USER_TARGET_CC1_SPEC.
11078         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11079         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11080         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11081         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11082         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11083         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11084         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11085         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11087 2011-01-12  Richard Guenther  <rguenther@suse.de>
11089         PR other/46946
11090         * doc/invoke.texi (ffast-math): Document it is turned on
11091         with -Ofast.
11093 2011-01-12  Jan Hubicka  <jh@suse.cz>
11095         PR tree-optimization/47233
11096         * opts.c (common_handle_option): Disable ipa-reference with profile
11097         feedback.
11099 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11101         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11102         error message.
11104 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11106         * c-parser.c (c_lex_one_token): Updated and reindented some
11107         comments.  No changes in code.
11109 2011-01-11  Ian Lance Taylor  <iant@google.com>
11111         * godump.c (go_output_var): Don't output the variable if there is
11112         already a type with the same name.
11114 2011-01-11  Ian Lance Taylor  <iant@google.com>
11116         * godump.c (go_format_type): Don't generate float80.
11118 2011-01-11  Richard Henderson  <rth@redhat.com>
11120         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11121         declaration.  Rewrite for both speed and size.
11122         (mn10300_address_cost_1): Remove.
11123         (mn10300_register_move_cost): New.
11124         (mn10300_memory_move_cost): New.
11125         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11126         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11127         extensions, shifts, BSWAP, CLZ.
11128         (mn10300_wide_const_load_uses_clr): Remove.
11129         (TARGET_REGISTER_MOVE_COST): New.
11130         (TARGET_MEMORY_MOVE_COST): New.
11131         * config/mn10300/mn10300-protos.h: Update.
11132         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11134         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11135         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11136         * config/mn10300/mn10300-protos.h: Update.
11137         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11138         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11139         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11140         (*test_int_bitfield, *test_byte_bitfield): Remove.
11141         (*bit_test, *subreg_bit_test): Remove.
11142         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11144         * config/mn10300/constraints.md ("c"): Rename from "A".
11145         ("A", "D"): New constraint letters.
11146         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11147         (fmssf4, fnmasf4, fnmssf4): Likewise.
11149         * config/mn10300/mn10300.md (isa): New attribute.
11150         (enabled): New attribute.
11152         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11153         (abssf2, negsf2): Define only for hardware fp.
11154         (sqrtsf2): Reformat.
11155         (addsf3, subsf3, mulsf3): Merge expander and insn.
11157         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11158         (DEBUGGER_AUTO_OFFSET): Remove.
11159         (DEBUGGER_ARG_OFFSET): Remove.
11161         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11162         Emit register stores with the same offsets as the hardware.
11163         (mn10300_store_multiple_operation): Don't check that the register
11164         save offsets are monotonic.
11165         * config/mn10300/mn10300-protos.h: Update.
11167         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11169         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11170         in terms of the value on the stack, not the MDR register.
11172 2011-01-11  Jan Hubicka  <jh@suse.cz>
11174         PR lto/45721
11175         PR lto/45375
11176         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11177         (symbol_alias_set_destroy, symbol_alias_set_contains,
11178         propagate_aliases_backward): Declare.
11179         * lto-streamer-out.c (struct sets): New sturcture.
11180         (trivally_defined_alias): New function.
11181         (output_alias_pair_p): Rewrite.
11182         (output_unreferenced_globals): Fix output of alias pairs.
11183         (produce_symtab): Likewise.
11184         * ipa.c (function_and_variable_visibility): Set weak alias destination
11185         as needed in lto.
11186         * varasm.c (symbol_alias_set_t): Remove.
11187         (symbol_alias_set_destroy): Export.
11188         (propagate_aliases_forward, propagate_aliases_backward): New functions
11189         based on ...
11190         (compute_visible_aliases): ... this one; remove.
11191         (trivially_visible_alias): New
11192         (trivially_defined_alias): New.
11193         (remove_unreachable_alias_pairs): Rewrite.
11194         (finish_aliases_1): Reorganize code checking if alias is defined.
11195         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11196         in LTO mode.
11198 2011-01-11  Richard Guenther  <rguenther@suse.de>
11200         PR tree-optimization/46076
11201         * tree-ssa.c (useless_type_conversion_p): Conversions from
11202         unprototyped to empty argument list function types are useless.
11204 2011-01-11  Richard Guenther  <rguenther@suse.de>
11206         PR middle-end/45235
11207         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11208         volatile MEMs as MEM_READONLY_P.
11210 2011-01-11  Richard Guenther  <rguenther@suse.de>
11212         PR tree-optimization/47239
11213         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11215 2011-01-11  Jeff Law  <law@redhat.com>
11217         PR tree-optimization/47086
11218         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11219         IVs from statements that might throw.
11221 2011-01-10  Jan Hubicka  <jh@suse.cz>
11223         PR lto/45375
11224         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11226 2011-01-10  Jan Hubicka  <jh@suse.cz>
11228         PR lto/45375
11229         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11230         when correcting profile.
11232 2011-01-10  Jan Hubicka  <jh@suse.cz>
11234         PR lto/46083
11235         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11236         DECL_FINI_PRIORITY.
11237         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11238         Restore DECL_FINI_PRIORITY.
11240 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11242         * doc/gimple.texi: Fix quoting of multi-word return values in
11243         @deftypefn statements.  Ensure presence of return value.  Wrap
11244         overlong @deftypefn lines.
11245         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11246         descriptions of removed functions.
11247         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11248         of multi-word return value in @deftypefn statement.
11250 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11252         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11253         (Conditional Expressions, Logical Operators)
11254         (Statement and operand traversals): Do not indent smallexample
11255         code.  Fix duplicate function argument in example.
11257 2011-01-10  Jeff Law  <law@redhat.com>
11259         PR tree-optimization/47141
11260         * ipa-split.c (split_function): Handle case where we are
11261         returning a value and the return block has a virtual operand phi.
11263 2011-01-10  Jan Hubicka  <jh@suse.cz>
11265         PR tree-optimization/47234
11266         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11267         (pass_feedback_split_functions): Declare.
11268         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11269         tree-profile.
11270         * ipa-split.c (gate_split_functions): Update comments; disable
11271         split-functions for profile_arc_flag and branch_probabilities.
11272         (gate_feedback_split_functions): New function.
11273         (execute_feedback_split_functions): New function.
11274         (pass_feedback_split_functions): New global var.
11276 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11278         PR lto/46760
11279         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11280         calling gimple_call_set_cannot_inline.
11282 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11284         * config/darwin-sections.def: Remove unused section.
11286 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11288         PR c++/47218
11289         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11291 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11293         PR objc/47232
11294         * c-parser.c (c_parser_declaration_or_fndef): Improved
11295         error message.
11297 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11299         * config/i386/winnt.c (i386_pe_start_function): Make sure
11300         to switch back to function's section.
11302 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11304         PR gcc/46902
11305         PR testsuite/46912
11306         * plugin.c: Move include of dlfcn.h from here...
11307         * system.h: ... to here.
11309 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11311         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11312         file name.
11313         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11314         two extra empty pages in PDF output.
11316 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11318         PR objc/47078
11319         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11320         for error recovery purposes behave as if it was not specified so
11321         that the default type is usd.
11323 2011-01-07  Jan Hubicka  <jh@suse.cz>
11325         PR tree-optmization/46469
11326         * ipa.c (function_and_variable_visibility): Clear needed flags on
11327         nodes with external decls; handle weakrefs merging correctly.
11329 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11331         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11332         not false.
11334 2011-01-07  Jan Hubicka  <jh@suse.cz>
11336         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11337         and no longer claim that gold is required for linker plugin.
11338         * configure: Regenerate.
11339         * gcc.c (PLUGIN_COND): New macro.
11340         (LINK_COMMAND_SPEC): Use it.
11341         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11342         * config.in (HAVE_LTO_PLUGIN): New.
11343         * configure.ac (--with-lto-plugin): New parameter; autodetect
11344         HAVE_LTO_PLUGIN.
11346 2011-01-07  Jan Hubicka  <jh@suse.cz>
11348         PR tree-optimization/46367
11349         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11350         when we can update original.
11351         (cgraph_mark_inline_edge): Sanity check.
11352         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11354 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11356         * config/spu/spu.h (ASM_COMMENT_START): Define.
11358 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11360         PR driver/42445
11361         * gcc.c (%>S): New.
11362         (SWITCH_KEEP_FOR_GCC): Likewise.
11363         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11364         (do_spec_1): Handle "%>".
11366         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11368 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11370         PR target/47201
11371         * config/i386/i386.c (ix86_delegitimize_address): If
11372         simplify_gen_subreg fails, return orig_x.
11374         PR bootstrap/47187
11375         * value-prof.c (gimple_stringop_fixed_value): Handle
11376         lhs of the call properly.
11378 2011-01-07  Jan Hubicka  <jh@suse.cz>
11380         PR lto/45375
11381         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11383 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11385         * target.def (function_switched_text_sections): New hook.
11386         * doc/tm.texi: Regenerated.
11387         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11388         * final.c (default_function_switched_text_sections): New.
11389         (final_scan_insn): Call function_switched_text_sections when a
11390         mid-function section change occurs.
11391         * output.h (default_function_switched_text_sections): Declare.
11392         * config/darwin-protos.h (darwin_function_switched_text_sections):
11393         Likewise.
11394         * config/darwin.c (darwin_function_switched_text_sections): New.
11395         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11397 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11399         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11400         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11401         the secondary code fragment when outputting for DWARF == 2.
11403 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11405         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11406         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11407         Remove.
11408         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11409         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11411 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11413         PR debug/46704
11414         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11415         when it is not empty.
11417 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11419         Bobcat Enablement
11420         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11421         (case ${target}): Add btver1.
11422         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11423         -march=native recognize btver1 processors.
11424         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11425         btver1 def_and_undef
11426         * config/i386/i386.c (struct processor_costs btver1_cost): New
11427         btver1 cost table.
11428         (m_BTVER1): New definition.
11429         (m_AMD_MULTIPLE): Includes m_BTVER1.
11430         (initial_ix86_tune_features): Add btver1 tune.
11431         (processor_target_table): Add btver1 entry.
11432         (static const char *const cpu_names): Add btver1 entry.
11433         (software_prefetching_beneficial_p): Add btver1.
11434         (ix86_option_override_internal): Add btver1 instruction sets.
11435         (ix86_issue_rate): Add btver1.
11436         (ix86_adjust_cost): Add btver1.
11437         * config/i386/i386.h (TARGET_BTVER1): New definition.
11438         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11439         (enum processor_type): Add PROCESSOR_BTVER1.
11440         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11442 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11444         PR target/43309
11445         * config/i386/i386.c (legitimize_tls_address)
11446         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11447         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11448         (tls_initial_exec_64_sun): New pattern.
11450 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11452         * doc/invoke.texi (Overall Options): Improve wording and markup
11453         of the description of -wrapper.
11455 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11457         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11458         rdynamic, threads): New Driver options.
11460 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11462         PR target/38118
11463         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11464         if coming from .tdata.
11465         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11467 2011-01-06  Jan Hubicka  <jh@suse.cz>
11469         PR lto/47188
11470         * collect2.c (main): Do not enable LTOmode when plugin is active.
11472 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11474         PR other/45915
11475         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11476         --version output if supported.
11477         * configure: Regenerate.
11479 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11481         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11482         Driver options.
11484 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11486         PR c/47150
11487         * c-convert.c (convert): When converting a complex expression
11488         other than COMPLEX_EXPR to a different complex type, ensure
11489         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11490         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11491         when converting COMPLEX_TYPE.
11493 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11495         PR tree-optimization/47139
11496         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11497         only the last reduction value is used outside the loop.  Update
11498         documentation.
11500 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11502         * config/rtems.opt: New.
11503         * config.gcc (*-*-rtems*): Use rtems.opt.
11505 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11507         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11508         processors do not support 3DNow instructions.
11510 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11512         * config/spu/spu.c (spu_option_override): Set parameter
11513         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11515 2011-01-05  Jan Hubicka  <jh@suse.cz>
11517         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11518         at the command line.
11520 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11522         PR lto/47162
11523         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11524         deltas on streamed outgoing edges.
11525         (output_node_opt_summary): Output info for outgoing edges only when
11526         the node is in new parameter set.
11527         (output_cgraph_opt_summary): New parameter set, passed to the two
11528         aforementioned functions.  Update its forward declaration and its
11529         callee too.
11531 2011-01-05  Tom Tromey  <tromey@redhat.com>
11533         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11534         operator to c_finish_omp_atomic.
11535         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11536         (build_unary_op): Update.
11537         (build_modify_expr): Update.
11538         (build_asm_expr): Update.
11540 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11542         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11543         newly inserted insns.
11544         (pad_bb): Likewise.
11545         (spu_emit_branch_hint): Likewise.
11546         (insert_hbrp_for_ilb_runout): Likewise.
11547         (spu_machine_dependent_reorg): Call df_finish_pass after
11548         schedule_insns returns.
11550 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11552         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11554 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11556         PR tree-optimization/47005
11557         * tree-sra.c (struct access): Add 'non_addressable' bit.
11558         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11559         (decide_one_param_reduction): Return 0 if the parameter is passed by
11560         reference and one of the accesses in the group is non_addressable.
11562 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11564         PR tree-optimization/47056
11565         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11566         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11567         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11569 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11571         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11572         initializer.  Skip view conversions from aggregate types.
11574 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11576         PR bootstrap/47055
11577         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11579 2011-01-04  Philipp Thomas  <pth@suse.de>
11581         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11582         obvious typo.
11584 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11586         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11587         on empty epilogue sequences.
11589 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11591         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11592         non-static): New Driver options.
11594 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11596         PR driver/47137
11597         * gcc.c (default_compilers[]): Set combinable field to 0
11598         for all assembly languages.
11600 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11602         * config/mips/loongson3a.md: New file.
11603         * config/mips/mips.md: Include loongson3a.md.
11604         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11605         TUNE_LOONGSON_3A.
11607 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11609         PR middle-end/47017
11610         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11611         instead of convert_memory_address_addr_space on the base expression.
11613 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11615         * config/spu/spu.c (spu_option_override): Update error text
11616         for bad -march= / -mtune= values.
11618 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11620         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11621         if branch-hint optimization will be performed.
11623 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11625         PR tree-optimization/47148
11626         * ipa-split.c (split_function): Convert arguments to
11627         DECL_ARG_TYPE if possible.
11629         PR tree-optimization/47155
11630         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11631         when computing uns.
11633         PR rtl-optimization/47157
11634         * combine.c (try_combine): If undobuf.other_insn becomes
11635         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11636         and set *new_direct_jump_p too.
11638 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11640         PR tree-optimization/47021
11641         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11643 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11645         * gcc.c (process_command): Update copyright notice dates.
11646         * gcov.c (print_version): Likewise.
11647         * gcov-dump.c (print_version): Likewise.
11648         * mips-tfile.c (main): Likewise.
11649         * mips-tdump.c (main): Likewise.
11651 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11653         PR tree-optimization/46801
11654         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11655         aggregate fields start at byte boundary instead of the bit-field flag.
11657 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11659         PR driver/47137
11660         * gcc.c (main): Revert revision 168407.
11662 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11664         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11666 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11668         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11669         vector optab to expand vector/scalar shift, update gimple to vector.
11671 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11673         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11674         a thunk.
11676 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11678         PR tree-optimization/46984
11679         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11680         HOST_WIDE_INT.
11681         (cgraph_create_indirect_edge): Fixed line length.
11682         (cgraph_indirect_call_info): Declare.
11683         (cgraph_make_edge_direct) Update declaration.
11684         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11685         (cgraph_create_indirect_edge): Use it.
11686         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11687         callees.
11688         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11689         the new thunk_delta representation.
11690         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11691         HOST_WIDE_INT.
11692         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11693         (ipa_read_indirect_edge_info): Likewise.
11694         * lto-cgraph.c (output_edge_opt_summary): New function.
11695         (output_node_opt_summary): Call it on all outgoing edges.
11696         (input_edge_opt_summary): New function.
11697         (input_node_opt_summary): Call it on all outgoing edges.
11699 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11701         PR driver/47137
11702         * gcc.c (main): Don't check have_o when settting combine_inputs.
11704 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11706         * regrename.c: Add general comment describing the pass.
11707         (struct du_head): Remove 'length' field.
11708         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11709         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11710         Force renaming to the preferred class (if any) in the first pass and do
11711         not consider registers that belong to it in the second pass.
11712         (create_new_chain): Do not set 'length' field.
11713         (scan_rtx_reg): Likewise.
11715 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11717         PR tree-optimization/47140
11718         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11719         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11720         to bit_value_binop.
11722         PR rtl-optimization/47028
11723         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11724         parm_birth_insn instead of at the beginning of first bb.
11726 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11728         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11729         Remove the word "see" before "@pxref".
11730         * doc/rtl.texi: Remove the word "see" before "@pxref".
11732 2011-01-01  Jan Hubicka  <jh@suse.cz>
11734         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11735         memory.
11737 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11739         PR target/38662
11740         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11743 Copyright (C) 2011 Free Software Foundation, Inc.
11745 Copying and distribution of this file, with or without modification,
11746 are permitted in any medium without royalty provided the copyright
11747 notice and this notice are preserved.