OSDN Git Service

2011-04-21 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-21  Richard Guenther  <rguenther@suse.de>
2
3         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4         file name.
5
6 2011-04-21  Richard Guenther  <rguenther@suse.de>
7
8         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
10         Use DECL_P, not SSA_VAR_P.
11         (ptr_derefs_may_alias_p): Likewise.
12         (ptr_deref_may_alias_ref_p_1): Likewise.
13         (decl_refs_may_alias_p): Likewise.
14         (refs_may_alias_p_1): Likewise.
15         (ref_maybe_used_by_call_p_1): Likewise.
16         (call_may_clobber_ref_p_1): Likewise.
17         (indirect_ref_may_alias_decl_p): Assume indirect refrences
18         are either MEM_REF or TARGET_MEM_REF.
19         (indirect_refs_may_alias_p): Likewise.
20         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
21         for MEM_EXPR of indirect calls.
22
23 2011-04-21  Tristan Gingold  <gingold@adacore.com>
24
25         * vmsdbgout.c (write_srccorr): Compute file length from the string.
26         (dst_file_info_struct): Remove flen field.
27         (lookup_filename): Remove code that set flen field.
28
29 2011-04-21  Tristan Gingold  <gingold@adacore.com>
30
31         * config/ia64/ia64.c (ia64_start_function): Add a guard.
32
33 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
34
35         PR target/48708
36         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
37         vec_extract and vec_concat for non-SSE4_1 targets.
38
39 2011-04-21  Richard Guenther  <rguenther@suse.de>
40
41         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
42         return statements.
43
44 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
45
46         * config/i386/cygming.h (union tree_node, TREE): Don't define or
47         undefine.
48         (FILE): Don't undefine.
49
50 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
51
52         * config/alpha/alpha.c (struct machine_function): Use rtx, not
53         struct rtx_def *.
54         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
55         struct rtx_def *.
56         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
57         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
58         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
59         rtx_def *.
60         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
61         definitions where used.
62         * config/microblaze/microblaze.h (struct microblaze_args): Use
63         rtx, not struct rtx_def *.
64         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
65         rtx_def *.
66         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
67         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
68         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
69         not struct rtx_def *.
70         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
71         struct rtx_def *.
72         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
73         rtx_def *.
74         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
75
76 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
77
78         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
79         operand_equal_p to compare DR_BASE_ADDRESSes.
80         (vect_check_interleaving): Likewise.
81
82 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
83
84         PR target/46329
85         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
86         for all Neon struct constants.
87
88 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
89
90         * target.def (legitimate_constant_p): New hook.
91         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
92         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
93         * doc/tm.texi: Regenerate.
94         * hooks.h (hook_bool_mode_rtx_true): Declare.
95         * hooks.c (hook_bool_mode_rtx_true): Define.
96         * system.h (LEGITIMATE_CONSTANT_P): Poison.
97         * calls.c (precompute_register_parameters): Replace uses of
98         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
99         (emit_library_call_value_1): Likewise.
100         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
101         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
102         * ira-costs.c (scan_one_insn): Likewise.
103         * recog.c (general_operand, immediate_operand): Likewise.
104         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
105         * reload1.c (init_eliminable_invariants): Likewise.
106
107         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
108         mode argument.
109         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
110         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
111         argument.
112         (TARGET_LEGITIMATE_CONSTANT_P): Define.
113         * config/alpha/predicates.md (input_operand): Update call to
114         alpha_legitimate_constant_p.
115
116         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
117         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
118         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
119         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
120         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
121         (arm_legitimate_constant_p): New functions.
122         (arm_cannot_force_const_mem): Make static.
123
124         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
125
126         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
127         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
128         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
129         instead of bfin_legitimate_constant_p.
130         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
131         (TARGET_LEGITIMATE_CONSTANT_P): Define.
132
133         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
134
135         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
136
137         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
138         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
139         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
140         (frv_legitimate_constant_p): Make static.  Add a mode argument.
141
142         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
143         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
144         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
145
146         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
147         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
148         * config/i386/i386.c (legitimate_constant_p): Rename to...
149         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
150         argument.
151         (ix86_cannot_force_const_mem): Update accordingly.
152         (ix86_legitimate_address_p): Likewise.
153         (TARGET_LEGITIMATE_CONSTANT_P): Define.
154         * config/i386/i386.md: Update commentary.
155
156         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
157         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
158         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
159         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
160
161         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
162
163         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
164         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
165         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
166         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
167
168         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
169         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
170         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
171
172         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
173         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
174         (m32r_legitimate_constant_p): New function.
175
176         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
177         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
178         LEGITIMATE_CONSTANT_P.
179         (LEGITIMATE_CONSTANT_P): Delete.
180         * config/m68k/m68k.c (m68k_expand_prologue): Call
181         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
182         (m68k_legitimate_constant_p): New function.
183         * config/m68k/m68k.md: Update comments.
184
185         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
186         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
187         (mcore_legitimate_constant_p): New function.
188
189         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
190         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
191         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
192         Add a mode argument.
193         (mep_legitimate_address): Update accordingly.
194         (TARGET_LEGITIMATE_CONSTANT_P): Define.
195
196         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
197         Delete.
198         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
199         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
200         static.  Check OP's mode for VOIDmode.
201         (microblaze_legitimate_constant_p): New function.
202         (TARGET_LEGITIMATE_CONSTANT_P): Define.
203
204         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
205         * config/mips/mips.c (mips_legitimate_constant_p): New function.
206         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
207         (TARGET_LEGITIMATE_CONSTANT_P): Define.
208         * config/mips/predicates.md: Update comments.
209
210         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
211         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
212         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
213         (mmix_legitimate_constant_p): Make static, return a bool, and take
214         a mode argument.
215         (mmix_print_operand_address): Update accordingly.
216
217         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
218         Delete.
219         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
220         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
221         static.  Add a mode argument.
222         (TARGET_LEGITIMATE_CONSTANT_P): Define.
223
224         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
225
226         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
227         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
228         (pa_legitimate_constant_p): New function.
229
230         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
231
232         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
233         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
234         (pdp11_legitimate_constant_p): New function.
235
236         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
237         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
238         (rs6000_legitimate_constant_p): New function.
239
240         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
241         (rx_legitimate_constant_p): ...this.
242         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
243         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
244         (rx_legitimate_constant_p): ...this.
245         (TARGET_LEGITIMATE_CONSTANT_P): Define.
246         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
247
248         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
249         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
250         * config/s390/s390.c (legitimate_constant_p): Rename to...
251         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
252         and add a mode argument.
253         (TARGET_LEGITIMATE_CONSTANT_P): Define.
254
255         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
256
257         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
258         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
259         (sh_legitimate_constant_p): New function.
260
261         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
262         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
263         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
264         (legitimate_constant_p): Rename to...
265         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
266         argument.
267         (constant_address_p): Update accordingly.
268
269         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
270         argument and return a bool.
271         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
272         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
273         (spu_legitimate_constant_p): Add a mode argument and return a bool.
274         (spu_rtx_costs): Update accordingly.
275         * config/spu/predicates.md (vec_imm_operand): Likewise.
276
277         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
278
279         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
280         * config/v850/v850.c (v850_legitimate_constant_p): New function.
281         (TARGET_LEGITIMATE_CONSTANT_P): Define.
282
283         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
284         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
285         * config/vax/vax.c (legitimate_constant_p): Likewise.
286
287         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
288         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
289         (xtensa_legitimate_constant_p): New function.
290
291 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
292
293         * target.def (cannot_force_const_mem): Add a mode argument.
294         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
295         * doc/tm.texi: Regenerate.
296         * hooks.h (hook_bool_mode_rtx_false): Declare.
297         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
298         (hook_bool_mode_const_rtx_true): Likewise.
299         (hook_bool_mode_rtx_false): New function.
300         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
301         to be non-VOID.  Update call to cannot_force_const_mem.
302         (find_reloads): Update accordingly.
303         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
304         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
305         argument.
306         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
307         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
308         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
309         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
310         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
311         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
312         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
313         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
314         (m68k_cannot_force_const_mem): ...this new function.
315         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
316         argument.
317         (mips_const_insns, mips_legitimize_const_move): Update calls.
318         (mips_secondary_reload_class): Likewise.
319         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
320         (pa_cannot_force_const_mem): ...this new function.
321         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
322         (rs6000_cannot_force_const_mem): ...this new function.
323         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
324         argument.
325         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
326         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
327         to...
328         (xtensa_cannot_force_const_mem): ...this new function.
329
330 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
331
332         * config/mips/mips.c (mips16_build_function_stub): Call
333         build_function_type_list instead of build_function_type.
334         (mips16_build_call_stub): Likewise.
335
336 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
337
338         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
339         instead of build_function_type.
340
341 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
342
343         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
344         instead of build_function_type.
345
346 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
347
348         PR target/48678
349         * config/i386/i386.md (insv): Change operand 0 constraint to
350         "register_operand".  Change operand 1 and 2 constraint to
351         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
352         * config/i386/sse.md (sse4_1_pinsrb): Export.
353         (sse2_pinsrw): Ditto.
354         (sse4_1_pinsrd): Ditto.
355         (sse4_1_pinsrq): Ditto.
356         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
357         * config/i386/i386.c (ix86_expand_pinsr): New.
358
359 2011-04-20  Easwaran Raman  <eraman@google.com>
360
361         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
362         containing union type only with -fstrict-aliasing.
363
364 2011-04-20  Jim Meyering  <meyering@redhat.com>
365
366         Remove useless if-before-free tests.
367         * calls.c (expand_call, save_area): Likewise.
368         * cfgcleanup.c (try_forward_edges): Likewise.
369         * collect2.c (collect_execute): Likewise.
370         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
371         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
372         * coverage.c (coverage_checksum_string): Likewise.
373         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
374         * cselib.c (cselib_init): Likewise.
375         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
376         (df_set_clean_cfg): Likewise.
377         * function.c (free_after_compilation): Likewise.
378         * gcc.c (do_spec_1, main): Likewise.
379         * gcov.c (create_file_names): Likewise.
380         * gensupport.c (identify_predicable_attribute): Likewise.
381         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
382         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
383         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
384         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
385         * ipa-pure-const.c (local_pure_const): Likewise.
386         * ipa-reference.c (propagate): Likewise.
387         * ira-costs.c (free_ira_costs): Likewise.
388         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
389         * matrix-reorg.c (mat_free): Likewise.
390         * prefix.c (get_key_value): Likewise.
391         * profile.c (compute_value_histograms): Likewise.
392         * reload1.c (free_reg_equiv): Likewise.
393         * sched-deps.c (free_deps): Likewise.
394         * sel-sched-ir.c (fence_clear): Likewise.
395         * sese.c (set_rename, if_region_set_false_region): Likewise.
396         * tree-data-ref.c (free_rdg): Likewise.
397         * tree-eh.c (lower_try_finally): Likewise.
398         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
399         * tree-ssa-live.c (delete_var_map): Likewise.
400         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
401         * tree-ssa-pre.c (phi_trans_add): Likewise.
402
403 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
404
405         PR tree-optimization/48611
406         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
407         beyond ERT_MUST_NOT_THROW region.
408
409 2011-04-20  Catherine Moore  <clm@codesourcery.com>
410
411         * config/mips/mips.opt (mfix-24k): New.
412         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
413         * config/mips/mips.md (length): Increase by 4 for stores if
414         fixing 24K errata.
415         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
416         all noreorder if fixing 24K errata.
417         * doc/invoke.texi: Document mfix-24k.
418
419 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
420
421         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
422         quad-word modes, reduce to 9-bit index range when above 1016 limit.
423
424 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
425
426         * config/arm/arm.c (arm_gen_constant): Move movw support ....
427         (const_ok_for_op): ... to here.
428
429 2011-04-20  Kai Tietz  <ktietz@redhat.com>
430
431         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
432         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
433
434 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
435
436         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
437
438 2011-04-20  Richard Guenther  <rguenther@suse.de>
439
440         PR tree-optimization/47892
441         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
442         are if-convertible.
443
444 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
445
446         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
447
448 2011-04-20  Tristan Gingold  <gingold@adacore.com>
449
450         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
451
452 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
453
454         PR target/18145
455
456         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
457         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
458         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
459         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
460         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
461
462         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
463         New prototype.
464
465         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
466         (avr_asm_named_section, avr_asm_output_aligned_common,
467         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
468         New functions to update...
469         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
470         (avr_asm_init_sections): Overwrite section callbacks for
471         data_section, bss_section.
472         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
473         from here to...
474         (avr_file_end): ...here.
475
476 2011-04-20  Richard Guenther  <rguenther@suse.de>
477
478         PR middle-end/48695
479         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
480         objects and types here.  Adjust for their offset before comparing.
481
482 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
483
484         * tree-vect-stmts.c (vectorizable_store): Only chain one related
485         statement per copy.
486
487 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
488
489         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
490         (GIMPLE_H): Include $(INTERNAL_FN_H).
491         (OBJS-common): Add internal-fn.o.
492         (internal-fn.o): New rule.
493         * internal-fn.def: New file.
494         * internal-fn.h: Likewise.
495         * internal-fn.c: Likewise.
496         * gimple.h: Include internal-fn.h.
497         (GF_CALL_INTERNAL): New gf_mask.
498         (gimple_statement_call): Put fntype into a union with a new
499         internal_fn field.
500         (gimple_build_call_internal): Declare.
501         (gimple_build_call_internal_vec): Likewise.
502         (gimple_call_same_target_p): Likewise.
503         (gimple_call_internal_p): New function.
504         (gimple_call_internal_fn): Likewise.
505         (gimple_call_fntype): Return null for internal calls.
506         (gimple_call_set_fntype): Assert that the function is not internal.
507         (gimple_call_set_fn): Likewise.
508         (gimple_call_set_fndecl): Likewise.
509         (gimple_call_set_internal_fn): New function.
510         (gimple_call_addr_fndecl): Handle null functions.
511         (gimple_call_return_type): Likewise null types.
512         * gimple.c (gimple_build_call_internal_1): New function.
513         (gimple_build_call_internal): Likewise.
514         (gimple_build_call_internal_vec): Likewise.
515         (gimple_call_same_target_p): Likewise.
516         (gimple_call_flags): Handle calls to internal functions.
517         (gimple_call_fnspec): New function.
518         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
519         (gimple_has_side_effects): Handle null functions.
520         (gimple_rhs_has_side_effects): Likewise.
521         (gimple_call_copy_skip_args): Handle calls to internal functions.
522         * cfgexpand.c (expand_call_stmt): Likewise.
523         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
524         * gimple-fold.c (gimple_fold_call): Handle null functions.
525         (gimple_fold_stmt_to_constant_1): Don't fold
526         calls to internal functions.
527         * gimple-low.c (gimple_check_call_args): Handle calls to internal
528         functions.
529         * gimple-pretty-print.c (dump_gimple_call): Likewise.
530         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
531         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
532         (do_warn_unused_result): Likewise.
533         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
534         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
535         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
536         the target of a call.
537         (initialize_hash_element): Update accordingly.
538         (hashable_expr_equal_p): Use gimple_call_same_target_p.
539         (iterative_hash_hashable_expr): Handle calls to internal functions.
540         (print_expr_hash_elt): Likewise.
541         * tree-ssa-pre.c (can_value_number_call): Likewise.
542         (eliminate): Handle null functions.
543         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
544         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
545         (find_func_aliases): Likewise.
546         * value-prof.c (gimple_ic_transform): Likewise.
547         (gimple_indirect_call_to_profile): Likewise.
548         * lto-streamer-in.c (input_gimple_stmt): Likewise.
549         * lto-streamer-out.c (output_gimple_stmt): Likewise.
550
551 2011-04-19  Jan Hubicka  <jh@suse.cz>
552
553         * ipa-inline-transform.c (save_inline_function_body): Add comments.
554         * ipa-inline.c (inline_small_functions): Compute summaries first,
555         populate heap later.
556
557 2011-04-19  Jan Hubicka  <jh@suse.cz>
558
559         * cgraph.h (save_inline_function_body): Remove.
560         * ipa-inline-transform.c: New file, broke out of...
561         * ipa-inline.c: ... this one; Update toplevel comment.
562         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
563         make global.
564         (update_noncloned_frequencies): Move to ipa-inline-transform.c
565         (cgraph_mark_inline_edge): Rename to inline_call; move to
566         ipa-inline-transform.c.
567         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
568         move to ipa-inline-transform.c
569         (recursive_inlining, inline_small_functions, flatten_function,
570         ipa_inline, inline_always_inline_functions,
571         early_inline_small_functions): Update.
572         (inline_transform): Move to ipa-inline-transform.c.
573         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
574         Declare.
575         * Makefile.in (ipa-inline-transform.o): New file.
576         * cgraphunit.c (save_inline_function_body): Move to
577         ipa-inline-transform.c
578
579 2011-04-19  DJ Delorie  <dj@redhat.com>
580
581         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
582         registers if we already know there aren't any.
583         (m32c_emit_epilogue): Don't emit a barrier here.
584         (m32c_emit_eh_epilogue): Likewise.
585         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
586         operands at expand time.
587         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
588         int" wchar type.
589         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
590         duplicates.  Provide aliases instead.
591         * config/m32c/prologue.md (eh_return): Emit a barrier here.
592         (eh_epilogue): Add a "(return)" here as a hint to other parts of
593         the compiler.
594
595 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
596
597         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
598         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
599         (general_or_i64_p, sparc_register_move_cost): New function.
600
601 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
602
603         * doc/install.texi (Configuration, --enable-threads): Remove mach.
604         Add lynx, mipssde.  Sort table.
605
606 2011-04-19  Xinliang David Li  <davidxl@google.com>
607
608         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
609         not negative.
610
611 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
612
613         PR target/48678
614         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
615         is a SUBREG with non-MODE_INT mode inside of it.
616
617 2011-04-19  Martin Jambor  <mjambor@suse.cz>
618
619         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
620         also according to actual contants.
621         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
622         (gimple_fold_call): Use it.
623         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
624
625 2011-04-19  Martin Jambor  <mjambor@suse.cz>
626
627         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
628         non-pointer assignments.
629
630 2011-04-19  Martin Jambor  <mjambor@suse.cz>
631
632         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
633         account anc_offset and otr_type from the indirect edge info.
634         * ipa-prop.c (get_ancestor_addr_info): New function.
635         (compute_complex_ancestor_jump_func): Assignment analysis moved to
636         get_ancestor_addr_info, call it.
637         (ipa_note_param_call): Do not initialize information about polymorphic
638         calls, return the indirect call graph edge.  Remove the last
639         parameter, adjust all callers.
640         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
641         parameters.  Initialize polymorphic information in the indirect edge.
642
643 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
644
645         PR lto/48148
646         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
647         the types if they have different enumeration identifiers.
648
649 2011-04-19  Jan Hubicka  <jh@suse.cz>
650
651         * cgraph.h (cgraph_optimize_for_size_p): Declare.
652         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
653         * predict.c (cgraph_optimize_for_size_p): Break out from ...
654         (optimize_function_for_size_p) ... here.
655
656 2011-04-19  Richard Guenther  <rguenther@suse.de>
657
658         PR lto/48207
659         * tree.c (free_lang_data): Do not reset the decl-assembler-name
660         langhook.
661
662 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
663
664         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
665         if DECL_NO_INLINE_WARNING_P is set on the function.
666
667 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
668
669         PR fortran/47976
670         * reload1.c (inc_for_reload): Return void. All callers changed.
671         (emit_input_reload_insns): Don't try to delete previous output
672         reloads to a register, or record spill_reg_store for autoincs.
673
674 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
675
676         * gengtype.h: Updated copyright year.
677         (struct input_file_st): Add inpisplugin field.
678         (type_fileloc): New function.
679         * gengtype.c
680         (write_typed_struct_alloc_def): Add gcc_assert.
681         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
682         (write_typed_alloc_defns): Don't output for plugin files.
683         (input_file_by_name): Clear inpisplugin field.
684         (main): Set inpisplugin field for plugin files.
685
686 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
687
688         * gengtype-state.c (string_eq): New.
689         (read_state): Use string_eq instead of strcmp when creating the
690         state_ident_tab.
691
692 2011-04-19  Wei Guozhi  <carrot@google.com>
693
694         PR target/47855
695         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
696         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
697         linkage.
698         * config/arm/constraints.md (Uu): New constraint.
699         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
700
701 2011-04-19  Tristan Gingold  <gingold@adacore.com>
702
703         * config.gcc (-*-*-*vms): Added.
704         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
705         definitions moved.
706         * config/vms/vms-ld.c: New file.
707         * config/vms/vms-ar.c: New file.
708         * config/vms/t-vmsnative: New file.
709
710 2011-04-18  Xinliang David Li  <davidxl@google.com>
711
712         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
713
714 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
715
716         PR middle-end/48661
717         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
718         if TREE_TYPE (v) is non-NULL.
719
720         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
721         gimple_get_virt_mehtod_for_binfo.
722         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
723         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
724         callers.
725         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
726
727 2011-04-18  Michael Matz  <matz@suse.de>
728             Steve Ellcey  <sje@cup.hp.com>
729
730         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
731         use its mode as source mode if it isn't VOIDmode.
732
733 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
734
735         * doc/passes.texi: Fill crossref nodes.
736
737 2011-04-18  Jim Meyering  <meyering@redhat.com>
738
739         Fix doubled-word typos in comments and strings
740         * config/alpha/vms-unwind.h: s/for for/for/
741         * config/arm/unwind-arm.h: Likewise.
742         * config/microblaze/microblaze.c: Likewise.
743         * config/sh/constraints.md: s/in in/in/
744         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
745
746 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
747
748         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
749         (AVX_FLOAT_MODE_P): Ditto.
750         (AVX128_VEC_FLOAT_MODE_P): Ditto.
751         (AVX256_VEC_FLOAT_MODE_P): Ditto.
752         (AVX_VEC_FLOAT_MODE_P): Ditto.
753         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
754         (UNSPEC_MASKSTORE): Ditto.
755         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
756         Merge from <sse>_movmsk<ssemodesuffix> and
757         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
758         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
759         iterator.
760         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
761         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
762         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
763
764 2011-04-18  Jan Hubicka  <jh@suse.cz>
765
766         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
767
768         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
769         (want_inline_function_called_once_p): Break out the logic from
770         ipa_inline.
771         (edge_badness): Ensure that profile is not misupdated.
772         (lookup_recursive_calls): Prioritize by call frequencies.
773         (inline_small_functions): Move program size estimates here;
774         actually process whole queue even when unit growth has been
775         met. (to properly compute inline_failed reasons and for the
776         case unit size decrease.) Revisit comments on recursive inlining.
777         (ipa_inline): Remove unit summary code; first inline hot calls
778         of functions called once, cold calls next.
779         (order, nnodes): Remove unused variables.
780         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
781         (GTFILES): Remove ipa-inline.c
782         * sel-sched.c (fill_insns): Silence uninitialized var warning.
783
784 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
785
786         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
787
788 2011-04-18  Jie Zhang  <jie@codesourcery.com>
789             Richard Earnshaw  <rearnsha@arm.com>
790
791         * arm.c (neon_builtin_type_bits): Remove.
792         (typedef enum neon_builtin_mode): New.
793         (T_MAX): Don't define.
794         (typedef enum neon_builtin_datum): Remove bits, codes[],
795         num_vars and base_fcode.  Add mode, code and fcode.
796         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
797         VAR10): Change accordingly.
798         (neon_builtin_data[]): Change accordingly
799         (arm_init_neon_builtins): Change accordingly.
800         (neon_builtin_compare): Remove.
801         (locate_neon_builtin_icode): Remove.
802         (arm_expand_neon_builtin): Change accordingly.
803
804         * arm.h (enum arm_builtins): Move to ...
805         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
806
807         * arm.c (arm_builtin_decl): Declare.
808         (TARGET_BUILTIN_DECL): Define.
809         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
810         (arm_builtin_decls[]): New.
811         (arm_init_neon_builtins): Store builtin declarations in
812         arm_builtin_decls[].
813         (arm_init_tls_builtins): Likewise.
814         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
815         (arm_builtin_decl): New.
816
817 2011-04-18  Richard Guenther  <rguenther@suse.de>
818
819         * tree.c (upper_bound_in_type): Build properly canonicalized
820         INTEGER_CSTs.
821         (lower_bound_in_type): Likewise.
822
823 2011-04-18  Richard Guenther  <rguenther@suse.de>
824
825         * gimple.h (gimple_call_addr_fndecl): New function.
826         (gimple_call_fndecl): Use it.
827         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
828         for direct calls.
829         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
830         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
831
832 2011-04-18  Richard Guenther  <rguenther@suse.de>
833
834         PR middle-end/48650
835         * tree.c (build_string): STRING_CST is now derived from tree_typed.
836
837 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
838
839         PR lto/48492
840         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
841         DECL_IN_CONSTANT_POOL without RTL.
842
843 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
844             Ira Rosen  <ira.rosen@linaro.org>
845
846         PR target/48252
847         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
848         to match neon_vzip/vuzp/vtrn_internal.
849         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
850         outputs explicitly dependent on both inputs.
851         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
852
853 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
854
855         PR tree-optimization/48616
856         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
857         whether the shift is by scalar or vector based on whether all SLP
858         scalar stmts have the same rhs.
859
860 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
861
862         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
863         memory operands.
864
865 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
866
867         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
868         registers.
869
870 2011-04-17  Jan Hubicka  <jh@suse.cz>
871
872         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
873         * cgrpahunit.c (cgraph_finalize_function): Do not set
874         finalized_by_frontend.
875         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
876         finalized_by_frontend.
877
878 2011-04-17  Jan Hubicka  <jh@suse.cz>
879
880         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
881         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
882         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
883         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
884         method.
885         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
886         gimple-fold.c
887         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
888
889 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
890
891         PR lto/48538
892         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
893         is non-null before accessing it.
894         (input_cgraph): Remove trailing spaces.
895
896 2011-04-17  Revital Eres  <revital.eres@linaro.org>
897
898         * params.def (sms-min-sc): New param flag.
899         * modulo-sched.c (sms_schedule): Use it.
900         * doc/invoke.texi (sms-min-sc): Document it.
901
902 2011-04-17  Jan Hubicka  <jh@suse.cz>
903
904         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
905         present, also set gimple_call_set_cannot_inline.
906         * ipa-inline.c: Update toplevel comment.
907         (MAX_TIME): Remove.
908         (cgraph_clone_inlined_nodes): Fix linebreaks.
909         (cgraph_check_inline_limits): Restructure to ...
910         (caller_growth_limits): ... this one; be more tolerant
911         on growth in nested inline chains; add explanatory comment;
912         fix stack accounting thinko introduced by previous patch.
913         (cgraph_default_inline_p): Remove.
914         (report_inline_failed_reason): New function.
915         (can_inline_edge_p): New function.
916         (can_early_inline_edge_p): New function.
917         (leaf_node_p): Move upwards in file.
918         (want_early_inline_function_p): New function.
919         (want_inline_small_function_p): New function.
920         (want_inline_self_recursive_call_p): New function.
921         (cgraph_edge_badness): Rename to ...
922         (edge_badness) ... this one; fix linebreaks.
923         (update_edge_key): Update call of edge_baddness; add
924         detailed dump about queue updates.
925         (update_caller_keys): Use can_inline_edge_p and
926         want_inline_small_function_p.
927         (cgraph_decide_recursive_inlining): Rename to...
928         (recursive_inlining): Use can_inline_edge_p and
929         want_inline_self_recursive_call_p; simplify and remove no longer
930         valid FIXME.
931         (cgraph_set_inline_failed): Remove.
932         (add_new_edges_to_heap): Use can_inline_edge_p and
933         want_inline_small_function_p.
934         (cgraph_decide_inlining_of_small_functions): Rename to ...
935         (inline_small_functions): ... this one; cleanup; use
936         can/want predicates; cleanup debug ouput; work edges till fibheap
937         is exhausted and do not stop once unit growth is reached; remove
938         later loop processing remaining edges.
939         (cgraph_flatten): Rename to ...
940         (flatten_function): ... this one; use can_inline_edge_p
941         and can_early_inline_edge_p predicates.
942         (cgraph_decide_inlining): Rename to ...
943         (ipa_inline): ... this one; remove unreachable nodes before
944         inlining functions called once; simplify the pass.
945         (cgraph_perform_always_inlining): Rename to ...
946         (inline_always_inline_functions): ... this one; use
947         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
948         (cgraph_decide_inlining_incrementally): Rename to ...
949         (early_inline_small_functions): ... this one; simplify
950         using new predicates; cleanup; make dumps prettier.
951         (cgraph_early_inlining): Rename to ...
952         (early_inliner): newer inline regular functions into always-inlines;
953         fix updating of call stmt summaries.
954         (pass_early_inline): Update for new names.
955         (inline_transform): Fix formating.
956         (gate_cgraph_decide_inlining): Rename to ...
957         (pass_ipa_inline): ... this one.
958         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
959         * ipa-inline-analysis.c (dump_inline_summary): Update.
960         (compute_inline_parameters): Do not compute disregard_inline_limits;
961         look for mismatching arguments.
962         (estimate_growth): Fix handlig of non-trivial self recursion.
963         (inline_read_summary): Do not read info->disregard_inline_limits.
964         (inline_write_summary): Do not write info->disregard_inline_limits.
965         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
966         and move all checks into can_inline_edge_p predicate; re-enable code
967         comparing optimization levels.
968         (expand_call_inline): Do not test inline_forbidden_into_p.
969         * Makefile.in (ipa-inline.o): Update arguments.
970
971 2011-04-17  Revital Eres  <revital.eres@linaro.org>
972
973         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
974
975 2011-04-17  Revital Eres  <revital.eres@linaro.org>
976
977         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
978
979 2011-04-17  Michael Matz  <matz@suse.de>
980
981         PR tree-optimization/48622
982         PR lto/48645
983         * ipa-inline-analysis.c (inline_read_summary): Read size/time
984         in same order as they're written.
985
986 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
987
988         * config/pa/predicates.md: Reorganize and simplify predicates.
989         Eliminate duplicate code checks.
990         (arith_operand): Rename to arith14_operand
991         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
992         * config/pa/pa.md: Use renamed operands.
993         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
994         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
995         arith11_operand, adddi3_operand, indexed_memory_operand,
996         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
997         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
998         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
999         move_dest_operand, move_src_operand, prefetch_cc_operand,
1000         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1001         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1002         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1003         div_operand, int5_operand, movb_comparison_operator,
1004         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1005         arith_double_operand, ireg_operand, lhs_lshift_operand,
1006         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1007         integer_store_memory_operand): Likewise.
1008         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1009         (integer_store_memory_operand, read_only_operand,
1010         function_label_operand, borx_reg_operand,
1011         non_hard_reg_operand): Likewise.
1012         (eq_neq_comparison_operator): Delete unused operator.
1013         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1014         function_label_operand.
1015         (emit_move_sequence): Likewise.
1016
1017 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1018
1019         * config/i386/sse.md (sseunpackmode): New mode attribute.
1020         (ssepackmode): Ditto.
1021         (vec_pack_trunc_<mode>): Macroize expander from
1022         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1023         (vec_unpacks_lo_<mode>): Macroize expander from
1024         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1025         (vec_unpacks_hi_<mode>): Macroize expander from
1026         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1027         (vec_unpacku_lo_<mode>): Macroize expander from
1028         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1029         (vec_unpacku_hi_<mode>): Macroize expander from
1030         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1031         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1032         ix86_expand_sse4_unpack.
1033         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1034
1035 2011-04-16  Jan Hubicka  <jh@suse.cz>
1036
1037         * cgraphbuild.c: Include ipa-inline.h.
1038         (reset_inline_failed): Use initialize_inline_failed.
1039         * cgraph.c: Include ipa-inline.h.
1040         (cgraph_create_node_1): Do not initialize estimated_growth.
1041         (initialize_inline_failed): More to ipa-inline-analysis.c
1042         (dump_cgraph_node): Do not dump inline flags.
1043         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1044         and disregard_inline_limits flags.
1045         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1046         time, size, estimated_growth.
1047         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1048         Update.
1049         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1050         DECL_DISREGARD_INLINE_LIMITS.
1051         (cgraph_analyze_function): Do not initialize
1052         node->local.disregard_inline_limits.
1053         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1054         inlinable, versionable and disregard_inline_limits.
1055         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1056         cgraph_check_inline_limits, cgraph_default_inline_p,
1057         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1058         add_new_edges_to_heap): Update.
1059         (cgraph_decide_inlining_of_small_function): Update; set
1060         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1061         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1062         cgraph_decide_inlining_incrementally): Update.
1063         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1064         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1065         time, size and estimated_growth parameters.
1066         (estimate_edge_growth): Update.
1067         (initialize_inline_failed): Declare.
1068         * ipa-split.c: Include ipa-inline.h
1069         (execute_split_functions): Update.
1070         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1071         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1072         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1073         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1074         estimated_growth to INT_MIN.
1075         (inline_node_duplication_hook): Likewise.
1076         (dump_inline_summary): Dump new fields.
1077         (compute_inline_parameters): Update.
1078         (estimate_edge_time, estimate_time_after_inlining,
1079         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1080         inline_write_summary):
1081         (initialize_inline_failed): Move here from cgraph.c.
1082         * tree-sra.c: Include ipa-inline.h.
1083         (ipa_sra_preliminary_function_checks): Update.
1084         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1085         ipa-inline.h.
1086
1087 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1088
1089         * config/i386/sse.md (V16): New mode iterator.
1090         (VI1, VI8): Ditto.
1091         (AVXMODEQI, AVXMODEDI): Remove.
1092         (sse2, sse3): New mode attribute.
1093         (mov<mode>): Use V16 mode iterator.
1094         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1095         (push<mode>1): Use V16 mode iterator.
1096         (movmisalign<mode>): Ditto.
1097         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1098         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1099         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1100         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1101         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1102         avx_movdqu<avxmodesuffix>.
1103         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1104         *avx_movdqu<avxmodesuffix>.
1105         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1106         avx_lddqu<avxmodesuffix>.
1107         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1108         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1109         avx_movnt<AVXMODEDI:mode>.
1110         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1111         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1112
1113 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1114
1115         PR target/48629
1116         * haifa-sched.c (prune_ready_list, schedule_block): Use
1117         sched_pressure_p rather than flag_sched_pressure.
1118
1119 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1120
1121         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1122         cgraph_get_node instead of cgraph_get_create_node.
1123
1124 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1125
1126         * cfgexpand.c (expand_debug_expr): Use
1127         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1128
1129 2011-04-15  Michael Matz  <matz@suse.de>
1130
1131         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1132         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1133         * function.c (gimplify_parameters): Ditto.
1134         * gimplify.c (gimplify_vla_decl): Ditto.
1135
1136         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1137         (gimple_call_set_alloca_for_var): New inline function.
1138         (gimple_call_alloca_for_var_p): Ditto.
1139         * gimple.c (gimple_build_call_from_tree): Remember
1140         CALL_ALLOCA_FOR_VAR_P state.
1141         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1142
1143         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1144         calls if they were for VLA objects.
1145
1146 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1147
1148         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1149         of ADR_EXPRs.
1150
1151 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1152
1153         PR middle-end/48601
1154         * tree-emutls.c (lower_emutls_function_body): Call
1155         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1156         result is non-NULL.
1157
1158 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1159
1160         * c-decl.c (detect_field_duplicates): Call
1161         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1162
1163 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1164
1165         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1166         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1167         * ipa-pure-const.c (check_stmt): Call it.
1168         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1169
1170 2011-04-15  Richard Guenther  <rguenther@suse.de>
1171
1172         PR tree-optimization/48290
1173         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1174         Properly decide inhibiting propagation based on the valueized
1175         operand.  Do loop-closed SSA form preserving here ...
1176         (init_copy_prop): ... not here.
1177
1178 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1179
1180         PR target/48612
1181         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1182         (*ieee_smax<mode>3): Likewise.
1183
1184 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1185
1186         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1187         Replace match_operand with match_dup for the third operand in
1188         these expanders.
1189
1190 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1191
1192         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1193         to track processing of conditionals.  Update all callers.
1194         (try_combine, simplify_if_then_else): Update.
1195
1196 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1197
1198         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1199         -fsched-pressure.
1200
1201 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1202
1203         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1204         instead of match_operand for operand 3.
1205
1206 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1207
1208         * recog.h (insn_operand_data): Add an "allows_mem" field.
1209         * genoutput.c (output_operand_data): Initialize it.
1210         * optabs.c (maybe_legitimize_operand_same_code): New function.
1211         (maybe_legitimize_operand): Use it when matching the original
1212         op->value.
1213
1214 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1215
1216         * gimplify.c: Fix issues in comments throughout.
1217         (voidify_wrapper_expr): Fix long line.
1218         (build_stack_save_restore): Likewise.
1219         (gimplify_loop_expr): Likewise.
1220         (gimplify_compound_lval): Likewise.
1221         (gimplify_init_ctor_eval): Likewise.
1222         (gimplify_modify_expr_rhs): Likewise.
1223         (omp_notice_threadprivate_variable): Likewise.
1224
1225 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1226
1227         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1228         original one if this is not a builtin function.
1229
1230 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1231
1232         PR target/48605
1233         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1234         offset it as needed based on top 2 bits in operands[3], change
1235         MEM mode to SFmode and mask those 2 bits away from operands[3].
1236
1237 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1238
1239         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1240         change from objc_declare_protocols() to objc_declare_protocol().
1241
1242 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1243
1244         * config/i386/sse.md (sse4_1): New mode attribute.
1245         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1246         avx_blend<ssemodesuffix><avxmodesuffix> and
1247         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1248         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1249         avx_blendv<ssemodesuffix><avxmodesuffix> and
1250         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1251         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1252         avx_dp<ssemodesuffix><avxmodesuffix> and
1253         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1254         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1255         (sse4_1_packusdw): Merge with *avx_packusdw.
1256         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1257         (sse4_1_pblendw): Merge with *avx_pblendw.
1258         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1259         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1260         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1261         VF mode iterator.
1262         (sse4_1_round<ssescalarmodesuffix>): Merge with
1263         *avx_round<ssescalarmodesuffix>.
1264         (aesenc): Merge with *avx_aesenc.
1265         (aesenclast): Merge with *avx_aesenclast.
1266         (aesdec): Merge with *avx_aesdec.
1267         (aesdeclast): Merge with *avx_aesdeclast.
1268         (pclmulqdq): Merge with *pclmulqdq.
1269         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1270         New predicate.
1271         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1272
1273 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1274
1275         PR middle-end/48608
1276         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1277         (align_local_variable): This.  Update DECL_ALIGN.
1278         (add_stack_var): Updated.
1279         (expand_one_stack_var): Likewise.
1280
1281 2011-04-14  Richard Guenther  <rguenther@suse.de>
1282
1283         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1284         Remove.
1285         (dse_initialize_block_local_data, dse_leave_block,
1286         record_voperand_set, get_stmt_uid): Likewise.
1287         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1288         (dse_optimize_stmt): Remove voperand set handling code.
1289         Simplify and improve to handle any kind of killing stmt.
1290         (dse_record_phi): Remove.
1291         (dse_enter_block): Simplify.
1292         (tree_ssa_dse): Likewise.
1293         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1294
1295 2011-04-14  Jan Hubicka  <jh@suse.cz>
1296
1297         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1298         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1299         (cgraph_local_info): Remove inline_summary.
1300         * ipa-cp.c: Include ipa-inline.h.
1301         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1302         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1303         accesor.
1304         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1305         (input_overwrite_node): Do not set inline summary.
1306         (input_node): Do not stream inline summary.
1307         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1308         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1309         growth; we do not have inline parameters computed for that anyway.
1310         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1311         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1312         (inline_summary_t): New type and VECtor.
1313         (debug_inline_summary, dump_inline_summaries): Declare.
1314         (inline_summary): Use VOCtor.
1315         (estimate_edge_growth): Kill hack computing call stmt size directly.
1316         * lto-section-in.c (lto_section_name): Add inline section.
1317         * ipa-inline-analysis.c: Include lto-streamer.h
1318         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1319         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1320         (inline_summary_vec): Define.
1321         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1322         dump_inline_summaries): New functions.
1323         (estimate_function_body_sizes): Properly compute size/time of outgoing
1324         calls.
1325         (compute_inline_parameters): Alloc inline_summary; do not compute
1326         size/time of incomming calls.
1327         (estimate_edge_time): Avoid missing time summary hack.
1328         (inline_read_summary): Read inline summary info.
1329         (inline_write_summary): Write inline summary info.
1330         (inline_free_summary): Free all hooks and inline summary vector.
1331         * lto-streamer.h: Add LTO_section_inline_summary section.
1332         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1333         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1334
1335 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1336
1337         * tree-vectorizer.h (vect_strided_store_supported): Add a
1338         HOST_WIDE_INT argument.
1339         (vect_strided_load_supported): Likewise.
1340         (vect_permute_store_chain): Return void.
1341         (vect_transform_strided_load): Likewise.
1342         (vect_permute_load_chain): Delete.
1343         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1344         count argument.  Check that the count is a power of two.
1345         (vect_strided_load_supported): Likewise.
1346         (vect_permute_store_chain): Return void.  Update after above changes.
1347         Assert that the access is supported.
1348         (vect_permute_load_chain): Likewise.
1349         (vect_transform_strided_load): Return void.
1350         * tree-vect-stmts.c (vectorizable_store): Update calls after
1351         above interface changes.
1352         (vectorizable_load): Likewise.
1353         (vect_analyze_stmt): Don't check for strided powers of two here.
1354
1355 2011-04-14  Richard Guenther  <rguenther@suse.de>
1356
1357         PR tree-optimization/48590
1358         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1359         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1360         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1361         BUILT_IN_STACK_SAVE.
1362         * tree-ssa-dce.c (propagate_necessity): Handle
1363         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1364
1365 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1366
1367         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1368         objc_declare_class.
1369
1370 2011-04-14  Richard Guenther  <rguenther@suse.de>
1371
1372         * tree.h (get_object_alignment_1): Declare.
1373         * builtins.c (get_object_alignment_1): Split out worker from ...
1374         (get_object_alignment): ... here.
1375         * fold-const.c (get_pointer_modulus_and_residue): Use
1376         get_object_alignment_1.
1377
1378 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1379
1380         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1381         type parameter.
1382         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1383         parameter.  Generalise code to handle arrays as well as vectors.
1384         (vect_setup_realignment): Update accordingly.
1385         * tree-vect-stmts.c (vectorizable_store): Likewise.
1386         (vectorizable_load): Likewise.
1387
1388 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1389
1390         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1391         within the per-copy loop.
1392
1393 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1394
1395         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1396         in the dump file.
1397
1398 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1399
1400         * doc/options.texi (Negative): Explicitly mention that the
1401         Negative chain must be circular.
1402
1403 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1404
1405         * function.h (block_chainon): Declare.
1406         * function.c (block_chainon): Define.
1407
1408 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1409             Eric Weddington  <eric.weddington@atmel.com>
1410             Georg-Johann Lay <avr@gjlay.de>
1411
1412         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1413         New Includes
1414         (avr_init_builtins, avr_expand_builtin,
1415         avr_expand_delay_cycles, avr_expand_unop_builtin,
1416         avr_expand_binop_builtin ): New functions.
1417         (avr_builtin_id): New enum
1418         (struct avr_builtin_description): New struct
1419         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1420         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1421
1422         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1423         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1424         UNSPECV_DELAY_CYCLES): new enumeration values
1425         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1426         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1427         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1428         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1429         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1430         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1431         "fmulsu"): New insns
1432
1433         * config/avr/avr-c.c: fix line endings
1434         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1435         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1436         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1437         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1438         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1439
1440         * doc/extend.texi (AVR Built-in Functions): New node
1441         (Target Builtins): Add documentation of AVR
1442         built-in functions.
1443
1444 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1445
1446         PR target/44643
1447         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1448         alone. Error if non-const data has attribute progmem.
1449
1450 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1451
1452         * tree.h (struct tree_constructor): Include tree_typed instead of
1453         tree_common.
1454         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1455         TS_TYPED instead of TS_COMMON.
1456
1457 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1458
1459         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1460         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1461         (sse2_psadbw): Merge with *avx_psadbw.
1462         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1463         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1464         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1465         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1466         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1467         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1468         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1469         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1470         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1471         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1472         (ssse3_palignrti): Merge with *avx_palignrti.
1473
1474 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1475
1476         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1477         * tree-ssanames.c (fini_ssanames): VEC_free it.
1478         (make_ssa_name_fn): Update for VECness of free_ssanames.
1479         (release_ssa_name, release_dead_ssa_names): Likewise.
1480         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1481         tree_common.
1482         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1483         TS_TYPED instead of TS_COMMON.
1484
1485 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1486
1487         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1488         statistics_counter_event.
1489         * tree-ssa-copyrename.c (stats): Define.
1490         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1491         statistics_counter_event.
1492         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1493         (bswap_stats, widen_mul_stats): Define.
1494         (insert_reciprocals): Increment rdivs_inserted.
1495         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1496         rfuncs_inserted.  Add calls to statistics_counter_event.
1497         (execute_cse_sincos_1): Increment inserted.
1498         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1499         statistics_counter_event.
1500         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1501         of bswap_stats.  Add calls to statistics_counter_event.
1502         (convert_mult_to_widen): Increment widen_mults_inserted.
1503         (convert_plusminus_to_widen): Increment maccs_inserted.
1504         (convert_mult_to_fma): Increment fmas_inserted.
1505         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1506         calls to statistics_counter_event.
1507
1508 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1509
1510         PR rtl-optimization/48455
1511         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1512         `temp_costs->mem_cost'.
1513
1514 2011-04-13  Jan Hubicka  <jh@suse.cz>
1515
1516         * ipa-inline.h: New file.
1517         * ipa-inline-analysis.c: New file. Broken out of ...
1518         * ipa-inline.c: ... this file; update toplevel comment;
1519         include ipa-inline.h
1520         (inline_summary): Move to ipa-inline.h
1521         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1522         ipa-inline-analysis.c.
1523         (cgraph_estimate_time_after_inlining): Rename to
1524         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1525         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1526         to estimate_edge_growth.
1527         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1528         rename to estimate_size_after_inlining.
1529         (cgraph_mark_inline_edge): Update for new naming convention.
1530         (cgraph_check_inline_limits): Likewise.
1531         (cgraph_edge_badness): Likewise.
1532         (cgraph_decide_recursive_inlining): Likewise.
1533         (cgraph_decide_inlining_of_small_functions): Likewise.
1534         (cgraph_decide_inlining_incrementally): Likewise.
1535         (cgraph_estimate_growth): Rename to estimate_growth; move to
1536         ipa-inline-analysis.c.
1537         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1538         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1539         (compute_inline_parameters): Likewise.
1540         (compute_inline_parameters_for_current): Likewise.
1541         (pass_inline_parameters): Likewise.
1542         (inline_indirect_intraprocedural_analysis): Likewise.
1543         (analyze_function): Rename to inline_analyze_function; likewise.
1544         (add_new_function): Move to ipa-inline-analysis.c.
1545         (inline_generate_summary): Likewise.
1546         (inline_read_summary): Likewise.
1547         (inline_write_summary): Likewise.
1548         * Makefile.in (ipa-inline-analysis.c): New file.
1549
1550 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1551
1552         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1553         * configure: Regenerate.
1554
1555 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1556
1557         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1558         instead of tree_common.
1559         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1560         Likewise.
1561         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1562         TS_TYPED rather than TS_COMMON.
1563         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1564
1565 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1566
1567         PR target/45263
1568         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1569         r20 around calls of __tablejump_elpm__
1570
1571 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1572
1573         PR middle-end/48591
1574         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1575         NULL.
1576         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1577
1578 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1579
1580         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1581         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1582         (cfi_vec): New typedef.
1583         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1584         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1585         (cie_cfi_vec): New static variable.
1586         (cie_cfi_head): Delete.
1587         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1588         declaration changed. Use vector rather than list operations.
1589         (new_cfi): Don't initialize the dw_cfi_next field.
1590         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1591         rather than list operations.
1592         (lookup_cfa): Use vector rather than list operations.
1593         (output_cfis): New argument upto. Accept a cfi_vec rather than
1594         a dw_cfi_ref list head as argument. All callers changed.
1595         Iterate over the vector using upto as a maximum index.
1596         (output_all_cfis): New static function.
1597         (output_fde): Use vector rather than list operations. Use the
1598         new upto argument for output_cfis rather than manipulating a
1599         list.
1600         (dwarf2out_begin_prologue): Change initializations to match
1601         new struct members.
1602         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1603         from the vector length rather than searching for the end of a list.
1604         Use output_all_cfis.
1605         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1606
1607 2011-04-13  Nick Clifton  <nickc@redhat.com>
1608
1609         * config/rx/rx.md (movmemsi): Do not use this pattern when
1610         volatile pointers are involved.
1611
1612 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1613
1614         * config/i386/sse.md (pinsrbits): Remove.
1615         (sse2_packsswb): Merge with *avx_packsswb.
1616         (sse2_packssdw): Merge with *avx_packssdw.
1617         (sse2_packuswb): Merge with *avx_packuswb.
1618         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1619         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1620         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1621         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1622         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1623         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1624         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1625         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1626         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1627         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1628         (sse2_loadld): Merge with *avx_loadld.
1629         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1630         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1631         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1632         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1633         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1634
1635 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1636
1637         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1638         calling TREE_CHAIN.
1639         * print-tree.c (print_node): Likewise.
1640         * tree-inline.c (copy_tree_r): Likewise.
1641         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1642         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1643         instead of TS_COMMON.
1644         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1645         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1646         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1647         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1648         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1649         ...and these...
1650         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1651         * tree.h: ...here.
1652         (TREE_CHAIN): Check for a TS_COMMON structure.
1653         (TREE_TYPE): Check for a TS_TYPED structure.
1654
1655 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1656
1657         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1658         cgraph_get_create_node instead of cgraph_node.
1659
1660 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1661
1662         * c-parser.c (c_parser_initelt): Updated call to
1663         objc_build_message_expr.
1664         (c_parser_postfix_expression): Likewise.
1665
1666 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1667
1668         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1669         MASK_MS_BITFIELD_LAYOUT bit.
1670
1671 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1672
1673         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1674         assert it is always true.
1675         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1676         moves.
1677
1678 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1679
1680         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1681         compiling Objective-C to be more efficient.
1682
1683 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1684
1685         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1686         argv_copied.
1687
1688 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1689
1690         * recog.h, genoutput.c, optabs.c: Revert last patch.
1691
1692 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1693
1694         PR target/48090
1695         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1696
1697 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1698
1699         * recog.h (insn_operand_data): Add an "allows_mem" field.
1700         * genoutput.c (output_operand_data): Initialize it.
1701         * optabs.c (maybe_legitimize_operand_same_code): New function.
1702         (maybe_legitimize_operand): Use it when matching the original
1703         op->value.
1704
1705 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1706
1707         * genpreds.c (process_define_predicate): Move most processing
1708         to gensupport.c.  Continue to validate the expression.
1709         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1710         (process_define_predicate): Move processing to gensupport.c.
1711         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1712         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1713         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1714         argument.
1715         (valid_predicate_name_p): New function, split out from old
1716         genpreds.c:process_define_predicate.
1717         (process_define_predicate): New function, combining code from
1718         old genpreds.c and genrecog.c functions.
1719         (process_rtx): Call it for DEFINE_PREDICATE and
1720         DEFINE_SPECIAL_PREDICATE.
1721
1722 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1723
1724         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1725         size of a '%A' memory reference.
1726         (T_DREG, T_QREG): New neon_builtin_type_bits.
1727         (arm_init_neon_builtins): Assert that the load and store operands
1728         are neon_struct_operands.
1729         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1730         (NEON_ARG_MEMORY): New builtin_arg.
1731         (neon_dereference_pointer): New function.
1732         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1733         Handle NEON_ARG_MEMORY.
1734         (arm_expand_neon_builtin): Update after above interface changes.
1735         Use NEON_ARG_MEMORY for loads and stores.
1736         * config/arm/predicates.md (neon_struct_operand): New predicate.
1737         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1738         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1739         (V_four_elem): Tweak formatting.
1740         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1741         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1742         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1743         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1744         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1745         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1746         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1747         Use %A in the output template.
1748         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1749         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1750         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1751         the width of the memory access.  Remove post-increment.
1752         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1753
1754 2011-04-12  Nick Clifton  <nickc@redhat.com>
1755
1756         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1757         instruction for interrupt handlers if the target is the basic V850
1758         architecture.
1759         (expand_epilogue): Likewise.
1760
1761 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1762
1763         PR rtl-optimization/48549
1764         * combine.c (propagate_for_debug): Also stop after BB_END of
1765         this_basic_block.  Process LAST and just stop processing after it.
1766         (combine_instructions): If last_combined_insn has been deleted,
1767         set last_combined_insn to its PREV_INSN.
1768
1769 2011-04-12  Richard Guenther  <rguenther@suse.de>
1770
1771         PR tree-optimization/46076
1772         * gimple.h (struct gimple_statement_call): Add fntype field.
1773         (gimple_call_fntype): Adjust.
1774         (gimple_call_set_fntype): New function.
1775         * gimple.c (gimple_build_call_1): Set the call function type.
1776         * gimplify.c (gimplify_call_expr): Preserve the function
1777         type the frontend used for the call.
1778         (gimplify_modify_expr): Likewise.
1779         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1780         function type.
1781         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1782         function type.
1783         * tree-ssa.c (useless_type_conversion_p): Function pointer
1784         conversions are useless.
1785
1786 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1787
1788         * cgraph.h (cgraph_node): Remove function declaration.
1789         (cgraph_create_node): Declare.
1790         (cgraph_get_create_node): Likewise.
1791         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1792         Updated all callers.
1793         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1794         the decl does not already exist.  Call cgraph_get_create_node instead
1795         of cgraph_node.
1796         (cgraph_get_create_node): New function.
1797         (cgraph_same_body_alias): Update comment.
1798         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1799         assert it does not return NULL.
1800         (cgraph_update_edges_for_call_stmt): Likewise.
1801         (cgraph_clone_edge): Likewise.
1802         (cgraph_create_virtual_clone): Likewise.
1803         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1804         instead of cgraph_node.
1805         (cgraph_add_new_function): Call cgraph_create_node or
1806         cgraph_get_create_node instead of cgraph_node.
1807         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1808         instead of cgraph_node.
1809         (record_eh_tables): Likewise.
1810         (mark_address): Likewise.
1811         (mark_load): Likewise.
1812         (build_cgraph_edges): Call cgraph_get_create_node instead
1813         of cgraph_node.
1814         (rebuild_cgraph_edges): Likewise.
1815         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1816         instead of cgraph_node.
1817         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1818         cgraph_node.
1819         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1820         cgraph_create_node instead of cgraph_node.
1821         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1822         of cgraph_node.
1823         * lto-cgraph.c (input_node): Likewise.
1824         * lto-streamer-in.c (input_function): Likewise.
1825         * varasm.c (mark_decl_referenced): Likewise.
1826         (assemble_alias): Likewise.
1827
1828 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1829
1830         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1831         instead of cgraph_node and assert it does not return NULL.
1832         * lto-streamer-in.c (lto_read_body): Likewise.
1833         * omp-low.c (new_omp_context): Likewise.
1834         (create_task_copyfn): Likewise.
1835         * tree-emutls.c (lower_emutls_function_body): Likewise.
1836         * matrix-reorg.c (transform_allocation_sites): Likewise.
1837
1838 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1839
1840         PR c/48552
1841         * c-typeck.c (build_asm_expr): Error out on attempts to use
1842         void type outputs or inputs for constraints that allow reg or
1843         don't allow memory.
1844
1845 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1846             Richard Earnshaw  <rearnsha@arm.com>
1847
1848         PR target/48250
1849         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1850         to use sign-magnitude offsets. Reject unsupported unaligned
1851         cases. Add detailed description in comments.
1852         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1853         condition from TARGET_32BIT to TARGET_ARM.
1854
1855 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1856
1857         * tree.h (struct typed_tree): New.
1858         (struct tree_common): Include it instead of tree_base.
1859         (TREE_TYPE): Update for new location of type field.
1860         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1861         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1862         (union tree_node): Add typed field.
1863         * treestruct.def (TS_TYPED): New.
1864         * lto-streamer.c (check_handled_ts_structures): Handle it.
1865         * tree.c (MARK_TS_TYPED): New macro.
1866         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1867
1868 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1869
1870         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1871         (force_nonfallthru): Do not alter the loop nest if no basic block
1872         was created.
1873
1874 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1875
1876         * config/i386/sse.md (VI): New mode iterator.
1877         (SSEMODEI): Remove.
1878         (AVX256MODEI): Ditto.
1879         (AVXMODEF4P): Ditto.
1880         (avxvecpsmode): Ditto.
1881         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1882         (sse2_andnot<mode>3): New expander.
1883         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1884         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1885         (<any_logic:code><mode>3): Use VI mode iterator.
1886         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1887         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1888         (*andnottf3): Handle AVX three-operand constraints.
1889         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1890
1891 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1892             Robert Millan  <rmh@gnu.org>
1893
1894         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1895         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1896         GNU_USER_DYNAMIC_LINKER64): Define.
1897         (REG_NAME): Don't undefine.
1898         (MD_UNWIND_SUPPORT): Undefine.
1899         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1900         (REG_NAME): Don't undefine.
1901         (MD_UNWIND_SUPPORT): Undefine.
1902         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1903
1904 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1905
1906         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1907         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1908
1909 2011-04-11  Xinliang David Li  <davidxl@google.com>
1910
1911         * value-profile.c (check_ic_target): New function.
1912         (gimple_ic_transform): Sanity check indirect call target.
1913         * gimple-low.c (gimple_check_call_args): Interface change.
1914         (gimple_check_call_matching_types): New function.
1915         * tree-inline.c (tree_can_inline_p): Call new function.
1916
1917 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1918
1919         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1920         tree-pretty-print.h & realmpfr.h.
1921
1922 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1923
1924         PR middle-end/48464
1925         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1926         (setup_allocno_and_important_classes): Ditto.
1927
1928 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1929
1930         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1931         GNU_USER_DYNAMIC_LINKER.
1932         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1933         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1934         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1935         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1936         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1937         GNU_USER_TARGET_OS_CPP_BUILTINS.
1938         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1939         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1940         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1941         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1942         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1943         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1944         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1945         GNU_USER_TARGET_OS_CPP_BUILTINS.
1946         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1947         GNU_USER_DYNAMIC_LINKER.
1948         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1949         GNU_USER_TARGET_OS_CPP_BUILTINS.
1950         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1951         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1952         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1953         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1954         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1955         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1956         GNU_USER_DYNAMIC_LINKER64): Remove.
1957         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1958         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1959         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1960         GNU_USER_DYNAMIC_LINKER.
1961         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1962         GNU_USER_TARGET_OS_CPP_BUILTINS.
1963         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1964         GNU_USER_TARGET_OS_CPP_BUILTINS.
1965         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1966         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1967         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1968         GNU_USER_TARGET_OS_CPP_BUILTINS.
1969         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1970         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1971         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1972         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1973         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1974         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1975         GNU_USER_DYNAMIC_LINKER.
1976         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1977         GNU_USER_TARGET_OS_CPP_BUILTINS.
1978         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1979         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1980         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1981         GNU_USER_DYNAMIC_LINKER.
1982         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1983         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1984         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
1985         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1986         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1987         GNU_USER_DYNAMIC_LINKER.
1988         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
1989         GNU_USER_DYNAMIC_LINKERN32.
1990         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
1991         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
1992         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
1993         GNU_USER_DYNAMIC_LINKER32.
1994         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
1995         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1996         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1997         GNU_USER_DYNAMIC_LINKER.
1998         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1999         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2000         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2001         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2002         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2003         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2004         GNU_USER_DYNAMIC_LINKER32.
2005         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2006         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2007         GNU_USER_DYNAMIC_LINKER.
2008         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2009         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2010         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2011         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2012         GNU_USER_DYNAMIC_LINKER64.
2013         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2014         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2015         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2016         GNU_USER_DYNAMIC_LINKER.
2017         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2018         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2019         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2020         GNU_USER_DYNAMIC_LINKER.
2021         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2022         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2023         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2024         GNU_USER_DYNAMIC_LINKER32.
2025         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2026         GNU_USER_DYNAMIC_LINKER64.
2027         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2028         GNU_USER_DYNAMIC_LINKER64.
2029         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2030         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2031         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2032         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2033         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2034
2035 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2036
2037         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2038         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2039         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2040         GNU_USER_DYNAMIC_LINKER.
2041         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2042         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2043         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2044         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2045         GNU_USER_DYNAMIC_LINKER64.
2046         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2047         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2048         GNU_USER_LINK_EMULATION.
2049         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2050         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2051         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2052         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2053         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2054         CPP_SPEC, CC1_SPEC): Remove.
2055         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2056         (GNU_USER_DYNAMIC_LINKER): Define.
2057         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2058         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2059         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2060         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2061         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2062         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2063         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2064         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2065         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2066         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2067         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2068         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2069         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2070         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2071         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2072         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2073         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2074         GNU_USER_DYNAMIC_LINKER.
2075         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2076         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2077         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2078         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2079         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2080         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2081         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2082         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2083         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2084         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2085
2086 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2087
2088         PR target/9601
2089         PR target/11772
2090         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2091         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2092         comment.
2093         (ix86_is_msabi_thiscall): Removed.
2094         (ix86_is_type_thiscall): Likewise.
2095         (ix86_get_callcvt): New function.
2096         (ix86_comp_type_attributes): Simplify check.
2097         (ix86_function_regparm): Use ix86_get_callcvt for calling
2098         convention attribute checks.
2099         (ix86_return_pops_args): Likewise.
2100         (ix86_static_chain): Likewise.
2101         (x86_this_parameter): Likewise.
2102         (x86_output_mi_thunk): Likewise.
2103         (ix86_function_type_abi): Optimize check for types without attributes.
2104         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2105         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2106         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2107         by flag-values.
2108         (IX86_BASE_CALLCVT): Helper macro.
2109         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2110         Use ix86_get_callcvt for calling convention attribute checks and avoid
2111         symbol-decoration for stdcall in TARGET_RTD case.
2112         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2113         Likewise.
2114         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2115         for declaration.
2116
2117 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2118
2119         * config/i386/sse.md (VI_128): New mode iterator.
2120         (VI12_128): Rename from SSEMODE12.
2121         (VI14_128): Rename from SSEMODE14.
2122         (VI124_128): New mode iterator.
2123         (VI24_128): Rename from SSEMODE248.
2124         (VI248_128): Rename from SSEMODE248.
2125         (SSEMODE124C8): Remove.
2126         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2127         (*sse2_<plusminus_insn><mode>3): Merge with
2128         *avx_<plusminus_insn><mode>3.
2129         (*mulv8hi3): Merge with *avx_mulv8hi3.
2130         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2131         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2132         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2133         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2134         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2135         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2136         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2137         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2138         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2139         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2140         (*<smaxmin:code>v8hi3): Ditto.
2141         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2142         (*<smaxmin:code>v16qi3): Ditto.
2143         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2144         (*sse2_eq<mode>3): Ditto.
2145         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2146         (*sse2_gt<mode>3): Ditto.
2147         (vcondv2di): Split out of vcond<mode>.
2148         (vconduv2di): Split out of vcondu<mode>.
2149
2150 2011-04-11  Richard Guenther  <rguenther@suse.de>
2151
2152         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2153         before calling tree_low_cst.
2154
2155 2011-04-11  Richard Guenther  <rguenther@suse.de>
2156
2157         * stor-layout.c (layout_type): Compute all array index size operations
2158         in the original type.
2159         (initialize_sizetypes): Add comment.
2160         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2161
2162 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2163
2164         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2165
2166 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2167
2168         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2169         of cgraph_node, handle NULL return value.
2170         (cgraph_global_info): Likewise.
2171         (cgraph_rtl_info): Likewise.
2172         * tree-inline.c (estimate_num_insns): Likewise.
2173         * gimplify.c (unshare_body): Likewise.
2174         (unvisit_body): Likewise.
2175         (gimplify_body): Likewise.
2176         * predict.c (optimize_function_for_size_p): Likewise.
2177         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2178         (call_may_clobber_ref_p_1): Likewise.
2179         * varasm.c (function_section_1): Likewise.
2180         (assemble_start_function): Likewise.
2181
2182 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2183
2184         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2185         of cgraph_node.
2186         * final.c (rest_of_clean_state): Likewise.
2187         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2188         * passes.c (pass_init_dump_file): Likewise.
2189         (execute_all_ipa_transforms): Likewise.
2190         (function_called_by_processed_nodes_p): Likewise.
2191         * predict.c (maybe_hot_frequency_p): Likewise.
2192         (probably_never_executed_bb_p): Likewise.
2193         (compute_function_frequency): Likewise.
2194         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2195         (unnest_nesting_tree_1): Likewise.
2196         (lower_nested_functions): Likewise.
2197         * tree-optimize.c (execute_fixup_cfg): Likewise.
2198         (tree_rest_of_compilation): Likewise.
2199         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2200         * tree-sra.c (ipa_early_sra): Likewise.
2201         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2202         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2203         * ipa.c (record_cdtor_fn): Likewise.
2204         * ipa-inline.c (cgraph_early_inlining): Likewise.
2205         (compute_inline_parameters_for_current): Likewise.
2206         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2207         * ipa-pure-const.c (local_pure_const): Likewise.
2208         * ipa-split.c (split_function): Likewise.
2209         (execute_split_functions): Likewise.
2210         * cgraphbuild.c (build_cgraph_edges): Likewise.
2211         (rebuild_cgraph_edges): Likewise.
2212         (cgraph_rebuild_references): Likewise.
2213         (remove_cgraph_callee_edges): Likewise.
2214         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2215         (verify_cgraph_node): Likewise.
2216         (cgraph_analyze_functions): Likewise.
2217         (cgraph_preserve_function_body_p): Likewise.
2218         (save_inline_function_body): Likewise.
2219         (save_inline_function_body): Likewise.
2220         * tree-inline.c (copy_bb): Likewise.
2221         (optimize_inline_calls): Likewise.
2222
2223 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2224
2225         PR tree-optimization/48195
2226         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2227         ipa_check_create_edge_args.
2228         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2229         ipa_check_create_edge_args.
2230         * ipa-inline.c (inline_generate_summary): Do not call
2231         ipa_check_create_node_params and ipa_check_create_edge_args.
2232         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2233         ipa_check_create_edge_args.
2234
2235 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2236
2237         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2238         instead of loop.
2239         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2240         * function.c (record_hard_reg_sets): Likewise.
2241         * ira.c (compute_regs_asm_clobbered): Likewise.
2242         * sched-deps.c (sched_analyze_1): Likewise.
2243         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2244
2245 2011-04-09  Xinliang David Li  <davidxl@google.com>
2246
2247         PR tree-optimization/PR48484
2248         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2249         has_valid_pred lazily
2250
2251 2011-04-09  Duncan Sands  <baldrick@free.fr>
2252
2253         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2254
2255 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2256
2257         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2258         cost of I0 to zero at the end, if any.
2259
2260 2011-04-08  Xinliang David Li  <davidxl@google.com>
2261
2262         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2263         to insane profile data.
2264
2265 2011-04-08  Xinliang David Li  <davidxl@google.com>
2266
2267         * ipa-cp.c (ipcp_update_profiling): Correct
2268          negative scale factor due to insane profile data.
2269
2270 2011-04-08  Xinliang David Li  <davidxl@google.com>
2271
2272         * final.c (dump_basic_block_info): New function.
2273         (final): Dump basic block.
2274         (final_scan_insn): Remove old dump.
2275
2276 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2277
2278         PR target/47829
2279         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2280         crtbegin/crtend.
2281
2282 2011-04-08  Michael Matz  <matz@suse.de>
2283
2284         PR middle-end/48389
2285         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2286         functions.
2287         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2288         * rtl.h (rebuild_jump_labels_chain): Declare.
2289         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2290         insns inserted on edges.
2291
2292 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2293
2294         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2295         * config/arm/arm-arches.def: New.
2296         * config/arm/arm-opts.h: New.
2297         * config/arm/genopt.sh: New.
2298         * config/arm/arm-tables.opt: New (generated).
2299         * config/arm/arm.c (arm_handle_option, arm_target_help,
2300         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2301         (all_architectures): Get most table contents from arm-arches.def.
2302         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2303         arm_selected_tune here.
2304         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2305         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2306         (march=, mcpu=, mtune=): Use Enum and Var.
2307         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2308         (arm.o): Update dependencies.
2309
2310 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2311
2312         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2313         of header_file.
2314         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2315         (write_typed_alloc_defns): Likewise.
2316         (main): Calls write_typed_alloc_defns with output_header.
2317
2318 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2319
2320         PR inline-asm/48435
2321         * ira-color.c (setup_profitable_hard_regs): Add comments.
2322         Don't take prohibited hard regs into account.
2323         (setup_conflict_profitable_regs): Rename to
2324         get_conflict_profitable_regs.
2325         (check_hard_reg_p): Check prohibited hard regs.
2326
2327 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2328
2329         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2330         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2331         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2332
2333 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2334
2335         PR target/48366
2336         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2337         move from floating point to shift amount register.
2338         (emit_move_sequence): Remove secondary reload support for floating
2339         point to shift amount amount register copies.
2340         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2341         amount register copies.
2342         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2343         register, return false if mode isn't a scalar integer mode.
2344         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2345
2346 2011-04-08  Richard Guenther  <rguenther@suse.de>
2347
2348         * gimple.c (gimple_call_flags): Remove kludge.
2349
2350 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2351
2352         * sel-sched.c (sel_region_init): Move call to
2353         sel_setup_region_sched_flags after setup_current_loop_nest.
2354
2355 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2356
2357         PR rtl-optimization/48272
2358         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2359         init_insn_reg_pressure_info.  Adjust a caller.
2360         * sched-int.h (init_insn_reg_pressure_info): Declare.
2361         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2362         when sched-pressure is enabled.
2363
2364 2011-04-08  Richard Guenther  <rguenther@suse.de>
2365
2366         * gimple.c (gimple_set_modified): Do not queue calls to
2367         MODIFIED_NORETURN_CALLS here ...
2368         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2369
2370 2011-04-08  Richard Guenther  <rguenther@suse.de>
2371
2372         PR lto/48467
2373         * toplev.c (lang_dependent_init): Do not open asm_out_file
2374         in WPA mode, nor perform debug machinery initialization.
2375         (finalize): Do not unlink asm_out_file in WPA mode.
2376
2377 2011-04-08  Richard Guenther  <rguenther@suse.de>
2378
2379         * gimple.h (gimple_call_fntype): New function.
2380         (gimple_call_return_type): Use it.
2381         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2382         * gimple-low.c (gimple_check_call_args): Likewise.
2383         * gimple.c (gimple_call_flags): Likewise.
2384         (gimple_call_arg_flags): Likewise.
2385         (gimple_call_return_flags): Likewise.
2386         * tree-cfg.c (verify_gimple_call): Likewise.
2387         (do_warn_unused_result): Likewise.
2388         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2389         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2390
2391 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2392
2393         PR rtl-optimization/48235
2394         * sel-sched.c (code_motion_process_successors): Recompute the last
2395         insn in basic block if control flow changed.
2396         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2397         Update condition for ilist_remove.
2398
2399 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2400
2401         PR rtl-optimization/48302
2402         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2403         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2404         it to record added preheader blocks.
2405         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2406         on to sel_add_loop_preheaders.
2407         (sel_region_init): Move call to setup_current_loop_nest after
2408         sel_init_bbs.
2409
2410 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2411
2412         PR target/48273
2413         * cfgloop.h (loop_has_exit_edges): New helper.
2414         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2415         non-clonable.
2416         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2417         that have no exit edges.
2418
2419 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2420
2421         PR rtl-optimization/48442
2422         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2423         all callers.  Adjust assert.
2424
2425 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2426
2427         PR tree-optimization/48377
2428         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2429         is_packed to true even for types with smaller TYPE_ALIGN than
2430         TYPE_SIZE.
2431
2432 2011-04-08  Richard Guenther  <rguenther@suse.de>
2433
2434         PR bootstrap/48513
2435         * doc/tm.texi: Re-generate.
2436
2437 2011-04-08  Wei Guozhi  <carrot@google.com>
2438
2439         PR target/47855
2440         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2441         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2442         * config/arm/arm.md (*push_multi): Change the length computation to
2443         call a C function.
2444
2445 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2446
2447         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2448         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2449         * doc/tm.texi: Regenerate.
2450         * system.h (ASM_OUTPUT_BSS): Poison.
2451         * varasm.c (asm_output_bss): Remove function.
2452         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2453
2454         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2455         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2456         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2457         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2458         Likewise.
2459         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2460         Likewise.
2461         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2462         Likewise.
2463         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2464
2465 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2466
2467         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2468         EnumValue lines.
2469
2470 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2471
2472         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2473         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2474         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2475         OPT_mcpu32.
2476         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2477         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2478         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2479         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2480         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2481         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2482         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2483         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2484         options.  Don't map other m68k options manually.  Don't handle
2485         old-style options as canonical.
2486         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2487         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2488
2489 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2490
2491         * basic-block.h (force_nonfallthru): Move to...
2492         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2493         (force_nonfallthru): ...here.
2494         * cfghooks.c (force_nonfallthru): New function.
2495         * cfgrtl.c (force_nonfallthru): Rename into...
2496         (rtl_force_nonfallthru): ...this.
2497         (commit_one_edge_insertion): Do not set AUX field.
2498         (commit_edge_insertions): Do not discover new basic blocks.
2499         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2500         (cfg_layout_rtl_cfg_hooks): Likewise.
2501         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2502         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2503         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2504
2505 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2506
2507         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2508         Remove macros.
2509
2510 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2511
2512         * config/i386/sse.md: Update copyright year.
2513         (avxcvtvecmode): Remove.
2514         (sse_movhlps): Merge with *avx_movhlps.
2515         (sse_movlhps): Merge with *avx_movlhps.
2516         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2517         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2518         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2519         (sse_loadhps): Merge with *avx_loadhps.
2520         (sse_storelps): Merge with *avx_storelps.
2521         (sse_loadlps): Merge with *avx_loadlps.
2522         (sse_movss): Merge with *avx_movss.
2523         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2524         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2525         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2526         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2527         (vec_set<mode>_0): Ditto.
2528         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2529         (sse4_1_insertps): Merge with *avx_insertps.
2530         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2531         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2532         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2533         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2534         (sse2_storehpd): Merge with *avx_storehpd.
2535         (sse2_loadhpd): Merge with *avx_loadhpd.
2536         (sse2_loadlpd): Merge with *avx_loadlpd.
2537         (sse2_movsd): Merge with *avx_movsd.
2538         (*vec_concatv2df): Merge with *vec_concatv2df.
2539
2540 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2541
2542         PR debug/48343
2543         * combine.c (combine_instructions): Add last_combined_insn,
2544         update it if insn is after it, pass it to all try_combine calls.
2545         (try_combine): Add last_combined_insn parameter, pass it instead of
2546         i3 to propagate_for_debug.
2547
2548 2011-04-07  Nick Clifton  <nickc@redhat.com>
2549
2550         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2551         to handle MDR <-> data register transfers.
2552         (movhi_internal): Likewise.
2553
2554 2011-04-07  Alan Modra  <amodra@gmail.com>
2555
2556         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2557         previous stack info.
2558
2559 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2560
2561         PR target/43920
2562         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2563         flow_find_cross_jump.  Swap variables to implement backward replacement.
2564         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2565
2566 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2567
2568         PR target/43920
2569         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2570         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2571         and bb2.
2572         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2573         src1 or src2.  Redirect edges to the last basic block.  Update
2574         frequency and count on multiple basic blocks in case of fallthru.
2575
2576 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2577
2578         PR target/43920
2579         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2580         function.
2581         (old_insns_match_p): Change return type.  Replace return false/true
2582         with return dir_none/dir_both.  Use can_replace_by.
2583         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2584         direction from dir_p.  Register replacement direction in dir, last_dir
2585         and afterlast_dir.  Handle new return type of old_insns_match_p using
2586         merge_dir.  Return replacement direction in dir_p.
2587         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2588         return type of old_insns_match_p.
2589         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2590         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2591         flow_find_cross_jump.
2592         * basic-block.h (enum replace_direction): New type.
2593         (flow_find_cross_jump): Add parameter to declaration.
2594
2595 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2596
2597         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2598         (AVXMODEDCVTPS2DQ): Ditto.
2599         (VEC_FLOAT_MODE): Ditto.
2600         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2601         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2602         (<any_logic:code><mode>3): Use VF mode iterator.
2603         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2604         Use VF mode iterator.
2605         (copysign<mode>3): Use VF mode iterator.
2606         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2607         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2608         (*<any_logic:code><MODEF:mode>3): Merge with
2609         *avx_<any_logic:code><MODEF:mode>3.
2610         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2611         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2612         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2613         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2614         (sse2_cvtdq2ps): Use %v modifier.
2615         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2616         (avx_cvtps2dq<avxmodesuffix>): Remove.
2617         (sse2_cvtps2dq): Use %v modifier.
2618         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2619         (avx_cvttps2dq<avxmodesuffix>): Remove.
2620         (sse2_cvttps2dq): Use %v modifier.
2621         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2622         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2623         (sse2_cvtsd2siq): Fix insn template.
2624         (sse2_cvtsd2siq_2): Ditto.
2625         (sse2_cvttsd2siq): Ditto.
2626         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2627         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2628
2629 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2630
2631         * gcov-io.c: Use GCC Runtime Library Exception.
2632
2633 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2634
2635         PR debug/48466
2636         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2637         as base_reg whatever register reg has been eliminated to, instead
2638         of hardcoding STACK_POINTER_REGNUM.
2639
2640 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2641
2642         * doc/tm.texi.in: Document C target hooks as separate from general
2643         target hooks.
2644         * doc/tm.texi: Regenerate.
2645         * genhooks.c (struct hook_desc): Add docname field.
2646         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2647         docname field.
2648         (hook_array): Include c-target.def.
2649         (emit_documentation): Use docname field in output.
2650         (emit_init_macros): Take docname argument.  Only emit definitions
2651         for hooks matching docname.
2652         (main): Expect additional arguments in all cases.  Pass argument
2653         to emit_init_macros.
2654         * target.def: Move initial macro definitions and comments to
2655         target-hooks-macros.h.
2656         (gcc_targetcm): Move to c-family/c-target.def.
2657         * target.h (targetcm): Move declaration to c-family/c-target.h.
2658         * targhooks.c (default_handle_c_option): Move to
2659         c-family/c-opts.c.
2660         * targhooks.h (default_handle_c_option): Move declaration to
2661         c-family/c-common.h.
2662         * target-hooks-macros.h: New file.
2663         * config.gcc (target_has_targetcm): Define and use to add to
2664         c_target_objs and cxx_target_objs.
2665         * config/default-c.c: New file.
2666         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2667         of target.h and target-def.h.
2668         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2669         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2670         darwin_check_cfstring_format_arg): Make static.
2671         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2672         TARGET_STRING_OBJECT_REF_TYPE_P,
2673         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2674         * config/darwin-protos.h (darwin_objc_construct_string,
2675         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2676         declare.
2677         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2678         TARGET_STRING_OBJECT_REF_TYPE_P,
2679         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2680         * config/t-darwin (darwin-c.o): Update dependencies.
2681         * system.h (TARGET_HAS_TARGETCM): Poison.
2682         * Makefile.in (TARGET_H): Update.
2683         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2684         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2685         (default-c.o): New target.
2686         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2687         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2688         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2689         c-target.def.
2690         (build/genhooks.o): Update dependencies.
2691
2692 2011-04-06  Richard Guenther  <rguenther@suse.de>
2693
2694         * ipa-inline.c (enum inlining_mode): Remove.
2695         (cgraph_flatten): Use some other token.
2696         (cgraph_edge_early_inlinable_p): New function, split out from ...
2697         (cgraph_perform_always_inlining): New function, split out from ...
2698         (cgraph_decide_inlining_incrementally): ... here.
2699         (cgraph_mark_inline_edge): Adjust.
2700         (cgraph_early_inlining): Re-structure.
2701         (pass_early_inline): Require SSA form.
2702
2703 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2704             Julian Brown  <julian@codesourcery.com>
2705             Mark Shinwell  <shinwell@codesourcery.com>
2706
2707         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2708         LO_REGS only for Thumb-1.
2709         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2710         be used in short instructions when optimising for size on Thumb-2.
2711
2712 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2713
2714         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2715         associated with user returns to be preserved.
2716
2717 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2718
2719         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2720         symbol_queue_size, DBXOUT_DECR_NESTING,
2721         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2722         if XCOFF_DEBUGGING_INFO.
2723
2724 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2725
2726         * config/i386/i386.md (attribute isa): New.
2727         (attribute enabled): New.
2728         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2729         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2730         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2731         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2732         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2733         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2734         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2735         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2736
2737         * config/i386/sse.md (VF): New mode iterator.
2738         (VF1): Ditto.
2739         (VF2): Ditto.
2740         (VF_128): Ditto.
2741         (SSEMODEF4): Remove.
2742         (attribute sse): Handle V8SF and V4DF modes.
2743         (<absneg:code><mode>2): Use VF mode iterator.
2744         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2745         mode iterator.
2746         (<plusminus_insn><mode>3): Use VF mode iterator.
2747         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2748         Use VF mode iterator.
2749         (<sse>_vm<plusminus_insn><mode>3): Merge with
2750         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2751         (mul<mode>3): Use VF mode iterator.
2752         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2753         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2754         mode iterator.
2755         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2756         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2757         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2758         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2759         mode iterator.
2760         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2761         Use VF1 mode iterator.
2762         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2763         (sqrt<VF2:mode>2): New expander.
2764         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2765         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2766         and sqrtv2df2.  Use VF mode iterator.
2767         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2768         mode iterator.
2769         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2770         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2771         Use VF1 mode iterator.
2772         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2773         (<smaxmin:code><mode>3): Use VF mode iterator.
2774         (*<smaxmin:code><mode>3_finite): Merge with
2775         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2776         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2777         (<sse>_vm<smaxmin:code><mode>2): Merge with
2778         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2779         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2780         mode iterator.
2781         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2782         mode iterator.
2783         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2784         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2785         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2786         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2787         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2788         VF mode iterator.
2789         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2790         Use VF_128 mode iterator.
2791         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2792         mode iterator.
2793         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2794         VF_128 mode iterator.
2795         (vcond<mode>): Use VF mode iterator.
2796         * config/i386/predicates.md (sse_comparison_operator): Merge with
2797         avx_comparison_float_operator.  Do not declare as special_predicate.
2798         * config/i386/i386.c (struct builtin_description): Update for renamed
2799         compare patterns.
2800         (ix86_expand_args_builtin): Ditto.
2801         (ix86_expand_sse_compare_mask): Ditto.
2802
2803 2011-04-06  Richard Guenther  <rguenther@suse.de>
2804
2805         * tree-inline.c (estimate_num_insns): For calls simply account
2806         for all passed arguments and a used return value.
2807
2808 2011-04-06  Richard Guenther  <rguenther@suse.de>
2809
2810         PR tree-optimization/47663
2811         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2812         call_stmt_time fields.
2813         (cgraph_edge_inlinable_p): Declare.
2814         (cgraph_edge_recursive_p): New inline function.
2815         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2816         (cgraph_clone_edge): Copy it.
2817         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2818         Account for call stmt time.
2819         (cgraph_estimate_time_after_inlining): Take edge argument.
2820         (cgraph_estimate_edge_growth): Account call stmt size.
2821         (cgraph_estimate_size_after_inlining): Take edge argument.
2822         (cgraph_mark_inline_edge): Adjust.
2823         (cgraph_check_inline_limits): Likewise.
2824         (cgraph_recursive_inlining_p): Remove.
2825         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2826         (cgraph_decide_recursive_inlining): Take edge argument and
2827         adjust.
2828         (cgraph_decide_inlining_of_small_functions): Do not avoid
2829         diags for recursive inlining here.
2830         (cgraph_flatten): Adjust.
2831         (cgraph_decide_inlining_incrementally): Likewise.
2832         (estimate_function_body_sizes): Remove call cost handling.
2833         (compute_inline_parameters): Initialize caller edge call costs.
2834         (cgraph_estimate_edge_growth): New function.
2835         (cgraph_estimate_growth): Use it.
2836         (cgraph_edge_badness): Likewise.
2837         (cgraph_check_inline_limits): Take an edge argument.
2838         (cgraph_decide_inlining_of_small_functions): Adjust.
2839         (cgraph_decide_inlining): Likewise.
2840         * tree-inline.c (estimate_num_insns): Only account for call
2841         return value if it is used.
2842         (expand_call_inline): Avoid diagnostics on recursive inline
2843         functions here.
2844         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2845         (input_edge): Input edge call costs.
2846
2847 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2848
2849         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2850
2851 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2852
2853         * doc/invoke.texi (Spec Files): Fix typo.
2854
2855 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2856
2857         * profile.c (branch_prob): Move declaration of local variable.  Remove
2858         obsolete ??? comment.  Expand the location explicitly instead of using
2859         the LOCATION_FILE and LOCATION_LINE macros.
2860
2861 2011-04-06  Wei Guozhi  <carrot@google.com>
2862
2863         PR target/47855
2864         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2865         (arm_cond_branch): Likewise.
2866         (arm_cond_branch_reversed): Likewise.
2867         (arm_jump): Likewise.
2868         (push_multi): Likewise.
2869         * config/arm/constraints.md (Py): New constraint.
2870
2871 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2872
2873         PR bootstrap/48471
2874         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2875         Move these...
2876         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2877         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2878         #ifdef DBX_DEBUGGING_INFO.
2879
2880 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2881
2882         PR bootstrap/48403
2883         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2884         if old and new states differ.
2885
2886 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2887
2888         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2889         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2890         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2891         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2892         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2893         mcfv4e): Use Alias.
2894         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2895         ColdFire options to -mcpu= options.
2896
2897 2011-04-05  Jeff Law  <law@redhat.com>
2898
2899         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2900         check if BB is a successor of LOOP->header and return
2901         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2902
2903 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2904
2905         * cprop.c (struct reg_use): Remove.
2906         (reg_use_table): Make an array of RTX.
2907         (find_used_regs, constprop_register, local_cprop_pass,
2908         bypass_block): Simplify users of reg_use_table.
2909         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2910         on one of the uses found by find_used_regs.
2911
2912 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2913
2914         PR bootstrap/48469
2915         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2916         declaration.
2917
2918 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2919
2920         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2921         as an rtx.
2922         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2923
2924 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2925
2926         PR middle-end/48441
2927         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2928
2929 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2930
2931         * combine.c: Include obstack.h.
2932         (struct insn_link): Define.
2933         (uid_log_links): Adjust type.
2934         (FOR_EACH_LOG_LINK): New macro.
2935         (insn_link_obstack): Declare.
2936         (alloc_insn_link): Define.
2937         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2938         type of link variables.
2939         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2940         (try_combine, record_promoted_values, distribute_notes): Likewise.
2941         (distribute_links): Likewise.  Tweak prototype.
2942         (clear_log_links): Delete.
2943         (adjust_for_new_dest): Call alloc_insn_link.
2944         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2945
2946 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2947
2948         * gcse.c (modify_mem_list): Convert to an array of VECs.
2949         (canon_modify_mem_list, compute_transp): Tweak formatting.
2950         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2951         (load_killed_in_block_p): Likewise.
2952         (record_last_mem_set_info): Likewise.
2953         (clear_modify_mem_tables): Likewise.
2954
2955 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2956
2957         PR middle-end/48461
2958         * function.c (emit_use_return_register_into_block): Only define if
2959         HAVE_return.
2960
2961 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2962
2963         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2964
2965 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2966
2967         * config/rx/rx-opts.h: New.
2968         * config/rx/rx.c (rx_cpu_type): Remove.
2969         (rx_handle_option): Don't assert that global structures are in
2970         use.  Access variables via opts pointer.  Defer most handling of
2971         OPT_mint_register_.  Use error_at.
2972         (rx_option_override): Handle deferred OPT_mint_register_ here.
2973         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2974         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2975         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2976         (rx_cpu_types): New Enum and EnumValue entries.
2977         (mint-register=): Use Defer and use Var accordingly.
2978
2979 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2980
2981         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2982         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
2983         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
2984         Move these...
2985         (debug_free_queue, debug_nesting, symbol_queue_index):
2986         ...and these...
2987         * dbxout.c: ...to here.  Make static.
2988
2989 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2990
2991         * gcse.c (modify_pair): Define.  Define a VEC of it.
2992         (canon_modify_mem_list): Convert to an array of VECs.
2993         (free_insn_expr_list_list): Delete.
2994         (clear_modify_mem_tables): Call VEC_free instead.
2995         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
2996         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
2997         (canon_list_insert, compute_transp): Likewise.
2998
2999 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3000
3001         PR target/43920
3002         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3003         for size.
3004
3005 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3006
3007         PR target/43920
3008         * function.c (emit_use_return_register_into_block): New function.
3009         (thread_prologue_and_epilogue_insns): Use
3010         emit_use_return_register_into_block.
3011
3012 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3013
3014         PR target/43920
3015         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3016         insn.
3017
3018 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3019
3020         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3021
3022 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3023
3024         * config/arm/arm.md (define_constants for unspec): Replace with
3025         define_c_enum.
3026         (define_constants for unspecv): Replace with define_c_enum.
3027         * config/arm/neon.md (define_constants for unspec): Replace with
3028         define_c_enum.
3029
3030 2011-04-04  Richard Henderson  <rth@redhat.com>
3031
3032         PR bootstrap/48400
3033         * dwarf2out.c (output_line_info): Always emit line info from
3034         at least one section.
3035         (dwarf2out_init): Create text_section_line_info here ...
3036         (set_cur_line_info_table): ... not here.
3037
3038 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3039
3040         PR target/48380
3041         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3042         not called.
3043
3044         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3045
3046 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3047
3048         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3049         (expr_equiv_p): Remove.
3050         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3051         (hash_scan_set): Update call to insert_set_in_table.
3052         (dump_hash_table): Dump <dest, src> pair.
3053         (lookup_set): Simplify.  Lookup <dest, src> pair.
3054         (compute_transp): Remove, fold heavily simplified code into...
3055         (compute_local_properties): ...here.  Expect COMP and TRANSP
3056         unconditionally.
3057         (find_avail_set): Take set directly from struct expr.
3058         (find_bypass-set): Likewise.
3059         (bypass_block): Likewise.
3060         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3061
3062         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3063         checks on form of COND from find_implicit_sets to here.
3064         (find_implicit_sets): Cleanup control flow. Split critical edges
3065         if it exposes implicit sets.  Allocate/resize implicit_sets as
3066         necessary.
3067         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3068         changed something.  Run df_analyze after find_implicit_sets if any
3069         edges were split.  Do not allocate implicit_sets here.
3070
3071         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3072         (gcse_obstack): Renamed to cprop_obstack.
3073         (GNEW, GNEWVEC, GNEWVAR): Remove.
3074         (gmalloc): Remove.
3075         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3076         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3077         (gcse_alloc): Likewise, and rename to cprop_alloc.
3078         (alloc_gcse_men, free_gcse_mem): Remove.
3079         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3080         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3081         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3082
3083         * cprop.c (oprs_not_set_p): Remove.
3084         (mark_set, mark_clobber): Remove.
3085         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3086         (reg_not_set_p): New function.
3087         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3088         (cprop_insn): Likewise.
3089         (cprop_jump): Use FOR_EACH_EDGE.
3090
3091 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3092
3093         PR bootstrap/48403
3094         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3095         (rank_for_schedule): Use scheduled_insns vector instead of
3096         last_scheduled_insn.
3097         (ok_for_early_queue_removal): Likewise.
3098         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3099         we have a dbg_cnt.
3100         (choose_ready): Likewise.
3101         (commit_schedule): Use VEC_iterate.
3102         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3103         a dbg_cnt, use it and ensure the first insn is in the ready list.
3104         (haifa_sched_init): Allocate scheduled_insns.
3105         (sched_extend_ready_list): Don't allocate it; reserve space.
3106         (haifa_sched_finish): Free it.
3107
3108 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3109
3110         * optc-gen.awk: Always remove type from Variable entry before
3111         recording in var_seen.
3112
3113 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3114
3115         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3116         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3117         call to tidy_fallthru_edges.
3118
3119 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3120
3121         * doc/options.texi (ToLower): Document.
3122         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3123         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3124         * opts.h (cl_option): Add cl_tolower field.
3125         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3126         arguments with lowercase strings.
3127         * config/rx/rx.opt (mcpu=): Add ToLower.
3128         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3129         argument.
3130
3131 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3132
3133         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3134
3135 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3136
3137         * config/vax/vax.c: Include reload.h.
3138
3139 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3140
3141         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3142         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3143         (sparc_preferred_reload_class): New function.
3144
3145 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3146
3147         PR debug/48401
3148         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3149         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3150
3151 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3152
3153         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3154         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3155
3156 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3157
3158         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3159         (ASM_OUTPUT_ALIGNED_BSS): Define.
3160
3161 2011-04-03  Michael Matz  <matz@suse.de>
3162
3163         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3164         and next_slot members.
3165         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3166         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3167         (lto_streamer_cache_append): Declare.
3168         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3169         unsigned index, remove offset parameter, ensure that we append
3170         or update existing entries.
3171         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3172         parameter, update next_slot for append.
3173         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3174         parameter.
3175         (lto_streamer_cache_insert_at): Likewise.
3176         (lto_streamer_cache_append): New function.
3177         (lto_streamer_cache_lookup): Use unsigned index.
3178         (lto_streamer_cache_get): Likewise.
3179         (lto_record_common_node): Don't test tree_node_can_be_shared.
3180         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3181         (lto_streamer_cache_delete): Don't free offsets member.
3182         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3183         (lto_output_string_with_length): Use lto_output_data_stream.
3184         (lto_output_tree_header): Remove ix parameter, don't write it.
3185         (lto_output_builtin_tree): Likewise.
3186         (lto_write_tree): Adjust callers to above, don't track and write
3187         offset, write unsigned index.
3188         (output_unreferenced_globals): Don't emit all global vars.
3189         (write_global_references): Use unsigned indices.
3190         (lto_output_decl_state_refs): Likewise.
3191         (write_symbol): Likewise.
3192         * lto-streamer-in.c (lto_input_chain): Move earlier.
3193         (input_function): Use unsigned index.
3194         (input_alias_pairs): Don't read and then ignore all global vars.
3195         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3196         don't pass it back, use lto_streamer_cache_append.
3197         (lto_register_var_decl_in_symtab): Use unsigned index.
3198         (lto_register_function_decl_in_symtab): Likewise.
3199         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3200         index.
3201         (lto_get_builtin_tree): Don't read index, use
3202         lto_streamer_cache_append.
3203         (lto_read_tree): Adjust call to lto_materialize_tree.
3204
3205         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3206         don't use function calls in arguments to MIN.
3207
3208         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3209         twice.
3210
3211         * gimple.c (gimple_type_leader_entry): Mark deletable.
3212
3213 2011-04-03  Alan Modra  <amodra@gmail.com>
3214
3215         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3216
3217 2011-04-03  Michael Matz  <matz@suse.de>
3218
3219         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3220         an integer.
3221         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3222
3223 2011-04-03  Michael Matz  <matz@suse.de>
3224
3225         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3226         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3227         without function context.
3228         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3229         current_function_decl and cfun.
3230
3231 2011-04-03  Michael Matz  <matz@suse.de>
3232
3233         * tree.c (decl_init_priority_insert): Don't create entry for
3234         default priority.
3235         (decl_fini_priority_insert): Ditto.
3236         (fields_compatible_p, find_compatible_field): Remove.
3237         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3238         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3239
3240 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3241
3242         * combine.c (try_combine): Remove useless local variable.
3243
3244 2011-04-03  Richard Guenther  <rguenther@suse.de>
3245             Ira Rosen  <ira.rosen@linaro.org>
3246
3247         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3248         non-variable offsets and compare the remaining bases of the two
3249         accesses instead of looking for exact same data-ref.
3250
3251 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3252
3253         PR target/48416
3254         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3255
3256         * i386.c (ix86_is_msabi_thiscall): New helper function.
3257         (ix86_is_type_thiscall): New helper function.
3258         (ix86_comp_type_attributes): Handle thiscall for method-functions
3259         special.
3260         (init_cumulative_args): Likewise.
3261         (find_drap_reg): Likewise.
3262         (ix86_static_chain): Likewise.
3263         (x86_this_parameter): Likewise.
3264         (x86_output_mi_thunk): Likewise.
3265
3266 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3267             Nicolas Setton  <setton@adacore.com>
3268             Eric Botcazou  <ebotcazou@adacore.com>
3269
3270         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3271         (add_gnat_descriptive_type_attribute): New function.
3272         (gen_array_type_die): Call it.
3273         (gen_enumeration_type_die): Likewise.
3274         (gen_struct_or_union_type_die): Likewise.
3275         (modified_type_die): Likewise.
3276         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3277         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3278         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3279
3280 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3281
3282         PR bootstrap/48148
3283         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3284         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3285
3286         Revert:
3287         2011-03-17  Richard Guenther  <rguenther@suse.de>
3288
3289         PR bootstrap/48148
3290         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3291         origin for decls in other ltrans units.
3292         (input_varpool_node): Likewise.
3293
3294 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3295
3296         PR middle-end/48335
3297         * expr.c (expand_assignment): Handle all possibilities
3298         if TO_RTX is CONCAT.
3299         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3300         (store_split_bit_field): If SUBREG_REG (op0) or
3301         op0 itself has smaller mode than word, return it
3302         for offset 0 and const0_rtx for out-of-bounds stores.
3303         If word is const0_rtx, skip it.
3304
3305 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3306
3307         * config/h8300/h8300.c (print_operand_address): Rename to...
3308         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3309         Call h8300_print_operand and h8300_print_operand_address instead of
3310         print_operand and print_operand_address. Declare.
3311         (print_operand): Renake to...
3312         (h8300_print_operand): ...this. Make static. Adjust comments.
3313         Call h8300_print_operand instead of print_operand. Declare.
3314         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3315         (h8300_register_move_cost): Likewise.
3316         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3317         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3318         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3319         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3320         * config/h8300/h8300-protos.h (print_operand): Delete.
3321         (print_operand_address): Delete.
3322
3323 2011-04-01  Richard Henderson  <rth@redhat.com>
3324
3325         PR 48400
3326         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3327         in strict mode before dwarf4.  Re-order tests to early out
3328         before switching sections.
3329
3330 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3331
3332         * config/h8300/constraints.md: New file.
3333         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3334         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3335         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3336         * config/h8300/predicates.md (bit_operand): Likewise.
3337         (incdec_operand): Use satisfies_constraint_M and
3338         satisfies_constraint_O.  Don't use C code block.
3339         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3340         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3341         (compute_mov_length): Use satisfies_constraint_G.
3342         (fix_bit_operand): Use satisfies_constraint_U.
3343         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3344         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3345         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3346         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3347         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3348         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3349         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3350         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3351         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3352         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3353         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3354         (EXTRA_MEMORY_CONSTRAINT): Delete.
3355
3356 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3357             Michael Meissner  <meissner@linux.vnet.ibm.com>
3358
3359         PR target/48262
3360         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3361         operands, as per the specifications.
3362
3363         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3364         (vec_extract_evenv4sf): Ditto.
3365         (vec_extract_evenv8hi): Ditto.
3366         (vec_extract_evenv16qi): Ditto.
3367         (vec_extract_oddv4si): Ditto.
3368
3369 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3370
3371         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3372         high_pc attribute if the CU has no associated code. Only output
3373         DW_AT_entry_pc for CU if not generating strict dwarf and
3374         dwarf_version < 4.
3375
3376 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3377
3378         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3379         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3380         out of ...
3381         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3382         * final.c (final_start_function): Call the new function rather
3383         than using a NULL argument for dwarf2out_frame_debug.
3384
3385         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3386         that contains the prologue.
3387
3388         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3389         changed.  Print it in debugging output.
3390
3391         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3392
3393         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3394         Split most of the code into...
3395         (begin_move_insn): ... here.  New function.
3396         (ebb_sched_info): Add a pointer to it.
3397         * haifa-sched.c (scheduled_insns): New static variable.
3398         (sched_extend_ready_list): Allocate it.
3399         (schedule_block): Use it to record the order of scheduled insns.
3400         Perform RTL changes to move insns only after all scheduling
3401         decisions have been made.
3402         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3403         begin_move_insn field.
3404         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3405         * sched-int.h (struct haifa_sched_info): Remove second argument
3406         from begin_schedule_ready hook.  Add new member begin_move_insn.
3407         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3408         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3409
3410         * haifa-sched.c (prune_ready_list): New function, broken out of
3411         schedule_block.
3412         (schedule_block): Use it.
3413
3414 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3415
3416         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3417
3418 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3419
3420         * config.gcc (*-*-mingw*): Allow as option the
3421         posix threading model.
3422         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3423         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3424         definition.
3425         (CPP_SPEC): Add pthread/no-pthread handling.
3426         (LIB_SPEC): Likewise.
3427         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3428         (LIB_SPEC): Likewise.
3429         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3430         flag to pass -pthread option for shared libgcc build.
3431         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3432         for shared libgcc build.
3433         * config/i386/t-mingw-pthread: New file.
3434         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3435         New define to enable use of library pthread by default.
3436         * config/i386/mingw.opt (pthread): New driver option.
3437         (no-pthread): New driver option.
3438         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3439         * config/i386/mingw-w64.opt: Likewise.
3440
3441 2011-04-01  Gary Funck <gary@intrepid.com>
3442
3443         * c-decl.c (grokdeclarator): Fix formatting.
3444
3445 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3446
3447         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3448         instead of n_operands.
3449         (set_storage_via_setmem): Likewise.
3450         * optabs.c (maybe_gen_insn): Likewise.
3451         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3452         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3453         (mips_expand_builtin_direct): Likewise.
3454         * config/spu/spu.c (expand_builtin_args): Likewise.
3455
3456 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3457
3458         * recog.h (insn_data_d): Add n_generator_args.
3459         * genoutput.c (data): Likewise.
3460         (output_insn_data): Print it.
3461         (max_opno, num_dups): Delete.
3462         (scan_operands): Just fill in "d->operand[...]".
3463         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3464
3465 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3466
3467         * gensupport.h (pattern_stats): New structure.
3468         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3469         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3470         (max_operand_1, max_operand_vec): Delete.
3471         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3472
3473 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3474
3475         * emit-rtl.c (emit_pattern_after_setloc): New function.
3476         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3477         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3478         (emit_pattern_after): New function.
3479         (emit_insn_after, emit_jump_insn_after): Call it.
3480         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3481         (emit_pattern_before_setloc): New function.
3482         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3483         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3484         Likewise.
3485         (emit_pattern_before): New function.
3486         (emit_insn_before, emit_jump_insn_before): Call it.
3487         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3488
3489 2011-03-31  Richard Henderson  <rth@redhat.com>
3490
3491         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3492         (dw_separate_line_info_entry): Remove.
3493         (enum dw_line_info_opcode): New.
3494         (dw_line_info_entry): Use it.
3495         (dw_line_info_table, dw_line_info_table_p): New.
3496         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3497         (line_info_table, line_info_label_num): Remove.
3498         (line_info_table_in_use): Remove.
3499         (separate_line_info_table): Remove.
3500         (separate_line_info_table_allocated): Remove.
3501         (separate_line_info_table_in_use): Remove.
3502         (LINE_INFO_TABLE_INCREMENT): Remove.
3503         (line_info_label_num): New.
3504         (cur_line_info_table): New.
3505         (text_section_line_info, cold_text_section_line_info): New.
3506         (separate_line_info): New.
3507         (SEPARATE_LINE_CODE_LABEL): Remove.
3508         (print_dwarf_line_table): Remove.
3509         (debug_dwarf): Don't dump it.
3510         (output_one_line_info_table): New.
3511         (output_line_info): Use it.
3512         (new_line_info_table): New.
3513         (set_cur_line_info_table): New.
3514         (dwarf2out_switch_text_section): Use it.
3515         (dwarf2out_begin_function): Likewise.
3516         (push_dw_line_info_entry): New.
3517         (dwarf2out_source_line): Rewrite for new line info tables.
3518         (dwarf2out_init): Remove dead initailizations.
3519
3520 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3521
3522         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3523         various flags.
3524         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3525         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3526         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3527         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3528         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3529         * opt-functions.awk (flag_init, switch_bit_fields): New.
3530         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3531         generate CL_MISSING_OK or CL_SAVE.
3532         * optc-gen.awk: Update to generate bit-field output as well as
3533         flags field.
3534         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3535         bit-field instead of CL_REJECT_DRIVER flag.
3536         * opts-common.c (generate_canonical_option,
3537         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3538         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3539         instead of CL_REJECT_NEGATIVE flag.
3540         * toplev.c (print_switch_values): Use cl_report bit-field instead
3541         of CL_REPORT flag.
3542
3543 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3544
3545         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3546         a zero minimum index only if it is redundant.
3547
3548 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3549
3550         PR rtl-optimization/48381
3551         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3552         instead of ira_class_hard_reg_index for calculating conflicting
3553         hard registers.
3554
3555 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3556
3557         * cprop.c: Clean up hash table building.
3558         (reg_avail_info): Remove.
3559         (oprs_available_p): Remove.
3560         (record_last_reg_set_info): Remove.
3561         (record_last_set_info): Remove.
3562         (reg_available_p): New function.
3563         (gcse_constant_p): Do not treat unfolded conditions as constants.
3564         (make_set_regs_unavailable): New function.
3565         (hash_scan_set): Simplify with new reg_available_p.
3566         (compute_hash_table_work): Traverse insns stream only once.
3567         Do not compute reg_avail_info. Traverse insns in reverse order.
3568         Record implicit sets after recording explicit sets from the block.
3569
3570 2011-03-31  Michael Matz  <matz@suse.de>
3571
3572         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3573
3574 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3575
3576         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3577         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3578         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3579         (h8300_mode_dependent_address_p): New function.
3580         (h8300_get_index): Make static.
3581
3582 2011-03-31  Jeff Law  <law@redhat.com>
3583
3584         * reload1.c (elimination_effects): Fix typo in recent change.
3585
3586         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3587         typo potentially leading to null pointer dereference.
3588
3589         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3590         (setup_save_areas): Corresponding changes to avoid useless
3591         assignments.
3592
3593         * jump.c (reversed_comparison_code_parts): Avoid successive return
3594         statements when REVERSE_CONDITION is defined.
3595
3596         * expr.c (expand_assignment): Avoid useless assignments.
3597         (expand_expr_real_1): Likewise.
3598         (expand_expr_real_2): Avoid useless statements.
3599
3600         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3601
3602         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3603
3604         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3605         statements.
3606
3607         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3608
3609 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3610
3611         PR target/47109
3612         * doc/tm.texi.in (TARGET_VERSION): Remove.
3613         * doc/tm.texi: Regenerate.
3614         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3615         * collect2.c (main): Don't use TARGET_VERSION.
3616         * mips-tdump.c (main): Don't use TARGET_VERSION.
3617         * mips-tfile.c (main): Don't use TARGET_VERSION.
3618         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3619         * config/rs6000/vxworksae.h: Remove.
3620         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3621         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3622         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3623         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3624         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3625         * config/arm/arm.h (TARGET_VERSION): Remove.
3626         * config/arm/coff.h (TARGET_VERSION): Remove.
3627         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3628         * config/arm/elf.h (TARGET_VERSION): Remove.
3629         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3630         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3631         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3632         * config/arm/pe.h (TARGET_VERSION): Remove.
3633         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3634         * config/arm/semi.h (TARGET_VERSION): Remove.
3635         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3636         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3637         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3638         * config/avr/avr.h (TARGET_VERSION): Remove.
3639         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3640         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3641         * config/frv/frv.h (TARGET_VERSION): Remove.
3642         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3643         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3644         * config/i386/darwin.h (TARGET_VERSION): Remove.
3645         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3646         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3647         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3648         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3649         * config/i386/gnu.h (TARGET_VERSION): Remove.
3650         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3651         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3652         * config/i386/linux.h (TARGET_VERSION): Remove.
3653         * config/i386/linux64.h (TARGET_VERSION): Remove.
3654         * config/i386/lynx.h (TARGET_VERSION): Remove.
3655         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3656         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3657         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3658         * config/i386/netware.h (TARGET_VERSION): Remove.
3659         * config/i386/nto.h (TARGET_VERSION): Remove.
3660         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3661         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3662         * config/ia64/elf.h (TARGET_VERSION): Remove.
3663         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3664         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3665         * config/ia64/linux.h (TARGET_VERSION): Remove.
3666         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3667         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3668         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3669         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3670         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3671         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3672         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3673         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3674         * config/m68k/linux.h (TARGET_VERSION): Remove.
3675         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3676         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3677         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3678         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3679         * config/mep/mep.h (TARGET_VERSION): Remove.
3680         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3681         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3682         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3683         * config/mips/linux.h (TARGET_VERSION): Remove.
3684         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3685         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3686         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3687         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3688         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3689         * config/pa/pa.h (TARGET_VERSION): Remove.
3690         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3691         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3692         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3693         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3694         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3695         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3696         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3697         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3698         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3699         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3700         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3701         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3702         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3703         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3704         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3705         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3706         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3707         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3708         * config/s390/linux.h (TARGET_VERSION): Remove.
3709         * config/s390/s390.h (TARGET_VERSION): Remove.
3710         * config/s390/tpf.h (TARGET_VERSION): Remove.
3711         * config/score/score.h (TARGET_VERSION): Remove.
3712         * config/sh/linux.h (TARGET_VERSION): Remove.
3713         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3714         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3715         * config/sh/sh.h (TARGET_VERSION): Remove.
3716         * config/sh/sh64.h (TARGET_VERSION): Remove.
3717         * config/sh/superh.h (TARGET_VERSION): Remove.
3718         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3719         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3720         * config/sparc/linux.h (TARGET_VERSION): Remove.
3721         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3722         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3723         TARGET_NAME32, TARGET_NAME): Remove.
3724         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3725         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3726         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3727         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3728         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3729         * config/spu/spu.h (TARGET_VERSION): Remove.
3730         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3731         * config/v850/v850.h (TARGET_VERSION): Remove.
3732         * config/vax/linux.h (TARGET_VERSION): Remove.
3733         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3734         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3735         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3736
3737 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3738
3739         PR target/48142
3740         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3741         frame-related from frame-unrelated adjustments to the stack pointer.
3742
3743 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3744
3745         * common.opt (fdebug-types-section): Move earlier.
3746         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3747
3748 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3749
3750         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3751         var.
3752
3753 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3754
3755         * tree.h (CASE_CHAIN): Define.
3756         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3757         (gimple_redirect_edge_and_branch): Likewise.
3758
3759 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3760
3761         PR middle-end/48367
3762         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3763         calculation.
3764
3765 2011-03-30  Jeff Law  <law@redhat.com>
3766
3767         * PR bootstrap/48371
3768         * reload1.c (reload): Fix botch in last change.
3769
3770         * reload.h (struct reload): Fix typo introduced in last change.
3771
3772 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3773
3774         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3775         Undocumented.  Remove help text.
3776         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3777         -mhard-float.
3778
3779 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3780
3781         * doc/options.texi (NegativeAlias): Document.
3782         (Alias): Mention NegativeAlias.
3783         * opt-functions.awk: Handle NegativeAlias.
3784         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3785         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3786         * opts.h (CL_NEGATIVE_ALIAS): Define.
3787         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3788         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3789         OPT_mspe_.
3790         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3791         Alias entries.
3792         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3793         mno-spe and mno-isel instead of mspe=no and -misel=no.
3794
3795 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3796
3797         * common.opt (fdebug-types-section): New flag.
3798         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3799         * dwarf2out.c (use_debug_types): New define.
3800         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3801         (print_die): Guard output of type unit signatures using
3802         use_debug_types.
3803         (build_abbrev_table): Replace assert of dwarf_version >= 4
3804         with assert on use_debug_types.
3805         (size_of_die): Likewise.
3806         (unmark_dies): Likewise.
3807         (value_format): Decide AT_ref_external form on use_debug_types.
3808         (output_die): Replace dwarf_version version check guard with
3809         use_debug_types where appropriate.
3810         (modified_type_die): Likewise.
3811         (gen_reference_type_die): Likewise.
3812         (dwarf2out_start_source_file): Likewise.
3813         (dwarf2out_end_source_file): Likewise.
3814         (prune_unused_types_walk_attribs): Likewise.
3815         (dwarf2out_finish): Likewise.
3816
3817 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3818
3819         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3820
3821 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3822
3823         PR rtl-optimization/48332
3824         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3825         mode of input operand N and modeN to its actual mode.
3826
3827 2011-03-30  Jeff Law  <law@redhat.com>
3828
3829         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3830         define accessor macro.
3831         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3832         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3833         (reg_equiv_init): Likewise.
3834         (reg_equivs_size): New variable.
3835         (reg_equiv_init_size): Remove.
3836         (allocate_initial_values): Move prototype to here from....
3837         * integrate.h (allocate_initial_values): Remove prototype.
3838         * integrate.c: Include reload.h.
3839         (allocate_initial_values): Corresponding changes.
3840         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3841         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3842         (update_equiv_regs): Corresponding changes.
3843         (ira): Corresponding changes.
3844         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3845         (push_secondary_reload): Corresponding changes.
3846         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3847         (make_memloc, find_reloads_address): Corresponding changes.
3848         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3849         (find_reloads_address_1): Corresponding changes.
3850         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3851         (refers_to_regno_for_reload_p): Corresponding changes.
3852         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3853         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3854         * reload1.c: Include ggc.h.
3855         (grow_reg_equivs): New function.
3856         (replace_pseudos_in, reload): Corresponding changes.
3857         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3858         (eliminate_regs_1, elimination_effects): Corresponding changes.
3859         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3860         (delete_output_reload): Likewise.
3861         * caller-save.c (mark_referenced_regs): Corresponding changes.
3862         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3863         * frv/predicates.md (frv_load_operand): Corresponding changes.
3864         * microblaze/microblaze.c (double_memory_operand): Corresponding
3865         changes.
3866         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3867         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3868         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3869         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3870         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3871         changes.
3872         * pa/pa.c (emit_move_sequence): Corresponding changes.
3873         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3874
3875 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3876
3877         PR target/47551
3878         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3879         structure modes.  Don't check neon_vector_mem_operand for
3880         vector or structure modes.
3881
3882 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3883             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3884
3885         PR target/43590
3886         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3887         operand 1 and reshuffle the operands to match.
3888         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3889
3890 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3891
3892         PR driver/48208
3893         * config/c.opt (F): Added 'Driver' to -F option.
3894
3895         PR driver/48260
3896         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3897           handler function.
3898         * config/darwin.opt: Added '-arch' option.
3899
3900 2011-03-30  Nick Clifton  <nickc@redhat.com>
3901
3902         * config/rx/rx.md: Add peepholes and patterns to combine
3903         extending loads and simple arithmetic instructions.
3904         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3905         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3906         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3907         modes to use pre-decrement and post-increment addressing.
3908         (rx_is_restricted_memory_address): Add range checking of REG+INT
3909         addresses.
3910         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
3911         (rx_memory_move_cost): Adjust cost of stores.
3912         (rx_adjust_insn_length): New function.
3913
3914 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
3915
3916         PR c/48305
3917         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3918         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3919         matching arg00/arg01 types.
3920
3921 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3922
3923         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3924         last_location to UNKNOWN_LOCATION.
3925
3926 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3927
3928         PR target/48349
3929         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3930         FLOAT_SSE_REGS.
3931
3932 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3933             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3934
3935         PR bootstrap/48337
3936         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3937         Init(PROCESSOR_V7).
3938         (sparc_cpu): Likewise.
3939         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3940         PROCESSOR_V7.
3941
3942 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3943
3944         PR target/48336
3945         PR middle-end/48342
3946         PR rtl-optimization/48345
3947         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3948         hard regs for given mode from profitable regs when doing secondary
3949         allocation.
3950
3951 2011-03-29  Jeff Law  <law@redhat.com>
3952
3953         PR bootstrap/48327
3954         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3955         do_not_duplicate field.
3956         (lookup_redirection_data): Corresponding changes.
3957         (create_duplicates): Always create a template block.
3958         (redirect_edges): Remove code which reused the original block
3959         when it was going to become unreachable code.
3960         (thread_block): Don't set do_not_duplicate field.
3961
3962 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3963
3964         * lto-opts.c (register_user_option_p, lto_register_user_option):
3965         Make type argument unsigned.
3966         * lto-streamer.h (lto_register_user_option): Make type argument
3967         unsigned.
3968         * opth-gen.awk: Make CL_* macros unsigned.
3969         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3970         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3971         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3972         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3973         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3974         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3975         (find_opt): Make lang_mask argument unsigned.
3976
3977 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3978
3979         PR rtl-optimization/48331
3980         PR rtl-optimization/48334
3981         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3982         for any used algorithm.
3983
3984 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3985
3986         * ira-conflicts.c (build_object_conflicts): Add unused attribute
3987         to parent_max.
3988
3989 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
3990
3991         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
3992         (alpha_option_override): Don't set alpha_sr_alias_set.
3993         (emit_frame_store_1): Use gen_frame_mem rather than calling
3994         set_mem_alias_set.
3995         (alpha_expand_epilogue): Ditto.
3996
3997 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
3998
3999         PR tree-optimization/48290
4000         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4001         vectorization, check that relevant phis in the basic block after
4002         the inner loop are really inner loop's exit phis.
4003
4004 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4005
4006         PR debug/48190
4007         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4008         (cached_dw_loc_list_def): New structure.
4009         (cached_dw_loc_list): New typedef.
4010         (cached_dw_loc_list_table): New variable.
4011         (cached_dw_loc_list_table_hash): New function.
4012         (cached_dw_loc_list_table_eq): Likewise.
4013         (add_location_or_const_value_attribute): Take a bool cache_p.
4014         Cache the list when the parameter is true.
4015         (gen_formal_parameter_die): Update caller.
4016         (gen_variable_die): Likewise.
4017         (dwarf2out_finish): Likewise.
4018         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4019         while generating debug info for the decl.
4020         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4021         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4022         (resolve_addr): Cache the result of resolving a chain of
4023         location lists.
4024
4025 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4026
4027         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4028         conflict object hard regset nodes have intersecting hard reg sets.
4029
4030         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4031         after regstat_init_n_sets_and_refs.
4032
4033         * ira.c: Add more comments at the top.
4034         (setup_stack_reg_pressure_class, setup_pressure_classes):
4035         Add comments how we compute the register pressure classes.
4036         (setup_allocno_and_important_classes): Add more comments.
4037         (setup_class_translate_array, reorder_important_classes)
4038         (setup_reg_class_relations): Add comments.
4039
4040         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4041         start of the file.
4042
4043         * ira-color.c: Add 2011 to the Copyright line.
4044         (assign_hard_reg):  Add more comments.
4045         (improve_allocation): Ditto.
4046
4047         * ira-costs.c: Add 2011 to the Copyright line.
4048         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4049         comments.
4050         (setup_regno_cost_classes_by_mode): Ditto.
4051
4052         Initial patches from ira-improv branch:
4053
4054         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4055
4056         * ira-build.c (ira_create_object): Remove initialization of
4057         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4058         (ira_create_allocno): Remove initialization of
4059         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4060         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4061         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4062         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4063         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4064         Initialize ALLOCNO_ADD_DATA.
4065         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4066         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4067         ALLOCNO_REG.
4068         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4069         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4070
4071         * ira.c (ira_reallocate): Remove.
4072         (setup_pressure_classes): Call
4073         ira_init_register_move_cost_if_necessary.  Use
4074         ira_register_move_cost instead of ira_get_register_move_cost.
4075         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4076         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4077
4078         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4079         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4080         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4081         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4082         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4083         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4084         Fix formatting.
4085         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4086         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4087         (struct allocno_color_data): New.
4088         (allocno_color_data_t): New typedef.
4089         (allocno_color_data): New definition.
4090         (ALLOCNO_COLOR_DATA): New macro.
4091         (struct object_color_data): New.
4092         (object_color_data_t): New typedef.
4093         (object_color_data): New definition.
4094         (OBJECT_COLOR_DATA): New macro.
4095         (update_copy_costs, calculate_allocno_spill_cost): Call
4096         ira_init_register_move_cost_if_necessary.  Use
4097         ira_register_move_cost instead of ira_get_register_move_cost.
4098         (move_spill_restore, update_curr_costs): Ditto.
4099         (allocno_spill_priority): Make it inline.
4100         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4101         (struct coalesce_data, coalesce_data_t): New.
4102         (allocno_coalesce_data): New definition.
4103         (ALLOCNO_COALESCE_DATA): New macro.
4104         (merge_allocnos, coalesced_allocno_conflict_p): Use
4105         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4106         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4107         (coalesce_allocnos): Ditto.
4108         (setup_coalesced_allocno_costs_and_nums): Ditto.
4109         (collect_spilled_coalesced_allocnos): Ditto.
4110         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4111         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4112         (coalesce_spill_slots): Ditto.
4113         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4114         free allocno_coalesce_data.
4115
4116         * ira-conflicts.c: Fix formatting.
4117         (process_regs_for_copy): Call
4118         ira_init_register_move_cost_if_necessary.  Use
4119         ira_register_move_cost instead of ira_get_register_move_cost.
4120         (build_object_conflicts): Optimize.
4121
4122         * ira-costs.c (record_reg_classes): Optimize.  Call
4123         ira_init_register_move_cost_if_necessary.  Use
4124         ira_register_move_cost, ira_may_move_in_cost, and
4125         ira_may_move_out_cost instead of ira_get_register_move_cost and
4126         ira_get_may_move_cost.
4127         (record_address_regs): Ditto.
4128         (scan_one_insn): Optimize.
4129         (find_costs_and_classes): Optimize.
4130         (process_bb_node_for_hard_reg_moves): Call
4131         ira_init_register_move_cost_if_necessary.  Use
4132         ira_register_move_cost instead of ira_get_register_move_cost.
4133
4134         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4135         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4136         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4137         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4138         definitions.
4139         (ira_initiate_emit_data, ira_finish_emit_data)
4140         (create_new_allocno): New functions.
4141         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4142         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4143         Use ira_register_move_cost instead of ira_get_register_move_cost.
4144
4145         * ira-int.h: Fix some comments.
4146         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4147         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4148         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4149         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4150         add_data.
4151         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4152         bitfield after mode.  Make hard_regno a short int.  Make
4153         hard_regno short.  Remove first_coalesced_allocno and
4154         next_coalesced_allocno.  Move mem_optimized_dest_p,
4155         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4156         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4157         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4158         temp, colorable_p.  Add new member add_data.
4159         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4160         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4161         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4162         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4163         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4164         (ALLOCNO_ADD_DATA): New macro.
4165         (ira_emit_data_t): New typedef.
4166         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4167         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4168         from struct ira_allocno.
4169         (ALLOCNO_EMIT_DATA): New macro.
4170         (ira_allocno_emit_data, allocno_emit_reg): New.
4171         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4172         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4173         (OBJECT_ADD_DATA): New macro.
4174         (ira_reallocate): Remove.
4175         (ira_initiate_emit_data, ira_finish_emit_data): New.
4176         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4177         (ira_init_register_move_cost_if_necessary): New.
4178         (ira_object_conflict_iter_next): Merge into
4179         ira_object_conflict_iter_cond.
4180         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4181
4182         * ira-live.c (process_single_reg_class_operands): Call
4183         ira_init_register_move_cost_if_necessary.  Use
4184         ira_register_move_cost instead of ira_get_register_move_cost.
4185
4186         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4187
4188         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4189
4190         * ira-costs.c: Fix formatting.
4191         (cost_classes, cost_classes_num): Remove.
4192         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4193         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4194         (cost_classes_del, cost_classes_htab): New.
4195         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4196         (initiate_regno_cost_classes, setup_cost_classes): New.
4197         (setup_regno_cost_classes_by_aclass): New.
4198         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4199         (record_reg_classes): Use regno_cost_classes instead of
4200         cost_classes.  Move checking opposite operand up.
4201         (record_address_regs): Use regno_cost_classes
4202         instead of cost_classes.
4203         (scan_one_insn): Ditto.  Use always general register.
4204         (print_allocno_costs): Use regno_cost_classes instead of
4205         cost_classes.
4206         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4207         (find_costs_and_classes): Set up cost classes for each registers.
4208         Use also their mode for this.  Use regno_cost_classes instead of
4209         cost_classes.
4210         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4211         cost_classes.
4212         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4213         (ira_costs, ira_set_pseudo_classes): Call
4214         initiate_regno_cost_classes and finish_regno_cost_classes.
4215
4216         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4217
4218         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4219
4220         * target.def (ira_cover_classes): Remove.
4221
4222         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4223
4224         * doc/tm.texi.in: Ditto.
4225
4226         * ira-conflicts.c: Remove mentioning cover classes from the file.
4227         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4228         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4229
4230         * targhooks.c (default_ira_cover_classes): Remove.
4231
4232         * targhooks.h (default_ira_cover_classes): Ditto.
4233
4234         * haifa-sched.c: Remove mentioning cover classes from the file.
4235         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4236         ira_pressure_classes and ira_pressure_classes_num instead of
4237         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4238         sched_regno_pressure_class instead of sched_regno_cover_class.
4239         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4240         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4241
4242         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4243         classes from the file.
4244         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4245         (struct object_hard_regs, struct object_hard_regs_node): New.
4246         (struct ira_object): New members profitable_hard_regs,
4247         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4248         (struct ira_allocno): Rename cover_class to aclass.  Rename
4249         cover_class_cost and updated_cover_class_cost to class_cost and
4250         updated_class_cost.  Remove splay_removed_p and
4251         left_conflict_size.  Add new members colorable_p.
4252         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4253         (ALLOCNO_COLORABLE_P): New macro.
4254         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4255         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4256         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4257         (OBJECT_...): Rename parameter C to O.
4258         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4259         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4260         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4261         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4262         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4263         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4264         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4265         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4266         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4267         x_ira_reg_class_subunion.
4268         (ira_max_memory_move_cost, ira_max_register_move_cost)
4269         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4270         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4271         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4272         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4273         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4274         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4275         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4276         (ira_tune_allocno_costs_and_cover_classes): Rename to
4277         ira_tune_allocno_costs.
4278         (ira_debug_hard_regs_forest): New.
4279         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4280         (ira_object_conflict_iter_next): Fix comments.
4281         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4282         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4283         cover_class to aclass.
4284         (ira_allocate_and_accumulate_costs): Ditto.
4285         (ira_allocate_and_set_or_copy_costs): Ditto.
4286
4287         * opts.c (decode_options): Remove ira_cover_class check.
4288
4289         * ira-color.c: Remove mentioning cover classes from the file.  Use
4290         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4291         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4292         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4293         (splay-tree.h): Remove include.
4294         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4295         before copy_freq_compare_func.
4296         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4297         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4298         New definitions.
4299         (hard_regs_roots, hard_regs_node_vec): Ditto.
4300         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4301         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4302         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4303         (create_new_object_hard_regs_node): Ditto.
4304         (add_new_object_hard_regs_node_to_forest): Ditto.
4305         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4306         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4307         Ditto.
4308         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4309         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4310         (remove_unused_object_hard_regs_nodes): Ditto.
4311         (enumerate_object_hard_regs_nodes): Ditto.
4312         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4313         (object_hard_regs_subnode_t): Ditto.
4314         (struct object_hard_regs_subnode): Ditto.
4315         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4316         (setup_object_hard_regs_subnode_index): Ditto.
4317         (get_object_hard_regs_subnodes_num): Ditto.
4318         (form_object_hard_regs_nodes_forest): Ditto.
4319         (finish_object_hard_regs_nodes_tree): Ditto.
4320         (finish_object_hard_regs_nodes_forest): Ditto.
4321         (allocnos_have_intersected_live_ranges_p): Rename to
4322         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4323         (pseudos_have_intersected_live_ranges_p): Rename to
4324         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4325         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4326         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4327         (update_copy_costs): Remove assert.  Skip cost update if the hard
4328         reg does not belong the class.
4329         (assign_hard_reg): Process only profitable hard regs.
4330         (uncolorable_allocnos_num): Make it scalar.
4331         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4332         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4333         and ira_reg_class_max_nregs.
4334         (bucket_allocno_compare_func): Check frequency first.
4335         (sort_bucket): Add compare function as a parameter.
4336         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4337         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4338         (push_allocno_to_stack): Rewrite for checking new allocno
4339         colorability.
4340         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4341         (push_only_colorable): Pass new parameter to sort_bucket.
4342         (push_allocno_to_spill): Remove.
4343         (allocno_spill_priority_compare): Make it inline and rewrite.
4344         (splay_tree_allocate, splay_tree_free): Remove.
4345         (allocno_spill_sort_compare): New function.
4346         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4347         build and use splay tree.  Choose first allocno in uncolorable
4348         allocno bucket to spill.  Remove setting spill cost.
4349         (all_conflicting_hard_regs): Remove.
4350         (setup_allocno_available_regs_num): Check only profitable hard
4351         regs.  Print info about hard regs nodes.
4352         (setup_allocno_left_conflicts_size): Remove.
4353         (put_allocno_into_bucket): Don't call
4354         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4355         (improve_allocation): New.
4356         (color_allocnos): Call setup_profitable_hard_regs,
4357         form_object_hard_regs_nodes_forest, improve_allocation,
4358         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4359         (print_loop_title): Use pressure classes.
4360         (color_allocnso): Ditto.
4361         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4362         and allocnos_for_spilling.
4363         (ira_sort_regnos_for_alter_reg): Don't setup members
4364         {first,next}_coalesced_allocno.
4365         (color): Remove allocating and freeing removed_splay_allocno_vec.
4366         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4367         prohibited_class_mode_regs.
4368
4369         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4370         formatting.
4371         (update_allocno_pressure_excess_length): Use pressure classes.
4372         (inc_register_pressure, dec_register_pressure): Check for pressure
4373         class.
4374         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4375         pressure class.  Use ira_reg_class_nregs instead of
4376         ira_reg_class_max_nregs.
4377         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4378         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4379         (single_reg_class): Use ira_reg_class_nregs instead of
4380         ira_reg_class_max_nregs.
4381         (process_bb_node_lives): Use pressure classes.
4382
4383         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4384         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4385         (change_loop): Use pressure classes.
4386         (modify_move_list): Call ira_set_allocno_class instead of
4387         ira_set_allocno_cover_class.
4388
4389         * ira-build.c: Remove mentioning cover classes from the file.  Use
4390         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4391         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4392         ALLOCNO_UPDATED_CLASS_COST instead of
4393         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4394         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4395         (ira_create_allocno): Remove initialization of
4396         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4397         ALLOCNO_COLORABLE_P.
4398         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4399         Update conflict regs for the objects.
4400         (create_cap_allocno): Remove assert.  Don't propagate
4401         ALLOCNO_AVAILABLE_REGS_NUM.
4402         (ira_free_allocno_costs): New function.
4403         (finish_allocno): Change a part of code into call of
4404         ira_free_allocno_costs.
4405         (low_pressure_loop_node_p): Use pressure classes.
4406         (object_range_compare_func): Don't compare classes.
4407         (setup_min_max_conflict_allocno_ids): Ditto.
4408
4409         * loop-invariant.c: Remove mentioning cover classes from the file.
4410         Use ira_pressure_classes and ira_pressure_classes_num instead of
4411         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4412         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4413         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4414         Use reg_allocno_class instead of reg_cover_class.
4415         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4416         STACK_REG_COVER_CLASS.
4417         (get_regno_cover_class): Rename to get_regno_pressure_class.
4418         (move_loop_invariants): Initialize and finalize regstat.
4419
4420         * ira.c: Remove mentioning cover classes from the file.  Add
4421         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4422         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4423         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4424         setup_class_subset_and_memory_move_costs.
4425         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4426         (setup_cover_and_important_classes): Rename to
4427         setup_allocno_and_important_classes.
4428         (setup_class_translate_array): New.
4429         (setup_class_translate): Call it for allocno and pressure classes.
4430         (cover_class_order): Rename to allocno_class_order.
4431         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4432         of ira_class_translate.
4433         (reorder_important_classes): Set up ira_important_class_nums.
4434         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4435         (print_class_cover): Rename to print_classes.  Add parameter.
4436         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4437         Print pressure classes too.
4438         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4439         setup_reg_subclasses.
4440         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4441         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4442         (setup_prohibited_class_mode_regs): Use
4443         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4444         (clarify_prohibited_class_mode_regs): New function.
4445         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4446         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4447         (ira_init_once): Initialize them.
4448         (free_register_move_costs): Process them.
4449         (ira_init): Move calls of find_reg_classes and
4450         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4451         Call clarify_prohibited_class_mode_regs.
4452         (ira_no_alloc_reg): Remove.
4453         (too_high_register_pressure_p): Use pressure classes.
4454
4455         * sched-deps.c: Remove mentioning cover classes from the file.
4456         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4457         ira_pressure_classes and ira_pressure_classes_num instead of
4458         ira_reg_class_cover_size and ira_reg_class_cover.
4459         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4460         sched_regno_pressure_class instead of sched_regno_cover_class.
4461         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4462         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4463
4464         * ira.h: Add 2010 to Copyright.
4465         (ira_no_alloc_reg): Remove external.
4466         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4467         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4468         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4469         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4470         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4471         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4472         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4473         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4474         x_ira_no_alloc_regs.
4475         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4476         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4477         ira_allocno_classes_num and ira_allocno_classes.
4478         (ira_class_translate): Rename to ira_allocno_class_translate.
4479         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4480         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4481         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4482         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4483         (ira_no_alloc_regs): New.
4484
4485         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4486         classes from the file.  Use ALLOCNO_CLASS instead of
4487         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4488         ALLOCNO_COVER_CLASS_COST.
4489         (regno_cover_class): Rename to regno_aclass.
4490         (record_reg_classes): Use ira_reg_class_subunion instead of
4491         ira_reg_class_union.
4492         (record_address_regs): Check overflow.
4493         (scan_one_insn): Ditto.
4494         (print_allocno_costs): Print total mem cost fore regional allocation.
4495         (print_pseudo_costs): Use REG_N_REFS.
4496         (find_costs_and_classes): Use classes intersected with them on the
4497         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4498         ira_reg_class_union.  Use ira_allocno_class_translate and
4499         regno_aclass instead of ira_class_translate and regno_cover_class.
4500         Modify code for finding regno_aclass.  Setup preferred classes for
4501         the next pass.
4502         (setup_allocno_cover_class_and_costs): Rename to
4503         setup_allocno_class_and_costs.  Use regno_aclass instead of
4504         regno_cover_class.  Use ira_set_allocno_class instead of
4505         ira_set_allocno_cover_class.
4506         (init_costs, finish_costs): Use regno_aclass instead of
4507         regno_cover_class.
4508         (ira_costs): Use setup_allocno_class_and_costs instead of
4509         setup_allocno_cover_class_and_costs.
4510         (ira_tune_allocno_costs_and_cover_classes): Rename to
4511         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4512         by processing objects.  Use ira_reg_class_max_nregs instead of
4513         ira_reg_class_nregs.
4514
4515         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4516
4517         * sched-int.h: Remove mentioning cover classes from the file.
4518         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4519
4520         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4521         classes from the file.
4522         (struct reg_pref): Rename coverclass into allocnoclass.
4523         (reg_cover_class): Rename to reg_allocno_class.
4524
4525         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4526
4527         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4528
4529         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4530
4531         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4532
4533         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4534
4535         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4536
4537         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4538
4539         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4540
4541         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4542
4543         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4544
4545         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4546         (i386_ira_cover_classes): Ditto.
4547
4548         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4549
4550         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4551
4552         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4553
4554         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4555
4556         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4557
4558         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4559
4560         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4561         (mips_ira_cover_classes): Ditto.
4562
4563         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4564
4565         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4566
4567         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4568
4569         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4570
4571         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4572
4573         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4574         (IRA_COVER_CLASSES_VSX): Ditto.
4575
4576         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4577         (rs6000_ira_cover_classes): Ditto.
4578
4579         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4580
4581         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4582
4583         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4584
4585         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4586
4587         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4588
4589         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4590
4591         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4592
4593         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4594
4595         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4596
4597         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4598
4599 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4600
4601         PR debug/48253
4602         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4603         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4604         dw_fde_unlikely_section_end_label, cold_in_std_section,
4605         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4606         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4607         fields.
4608         (output_fde): Use dw_fde_second_{begin,end} if second is
4609         true, otherwise dw_fde_{begin,end}.
4610         (output_call_frame_info): Test dw_fde_second_begin != NULL
4611         instead of dw_fde_switched_sections.
4612         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4613         fields, initialize new fields.  Initialize in_std_section
4614         unconditionally from the first partition.
4615         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4616         dw_fde_second_begin is non-NULL.
4617         (dwarf2out_switch_text_section): Stop initializing removed
4618         dw_fde_struct fields, initialize new fields, initialize
4619         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4620         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4621         (struct var_loc_list_def): Add last_before_switch field.
4622         (arange_table, arange_table_allocated, arange_table_in_use,
4623         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4624         (size_of_aranges): Count !in_std_section and !second_in_std_section
4625         hunks in fdes, instead of looking at arange_table_in_use.
4626         (output_aranges): Add aranges_length argument, don't call
4627         size_of_aranges here.  Instead of using aranges_table*
4628         emit ranges for fdes when !in_std_section resp.
4629         !second_in_std_section.
4630         (dw_loc_list): Break ranges crossing section switch.
4631         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4632         use dw_fde_second_end instead of dw_fde_end as end of last range.
4633         (gen_subprogram_die): Don't call add_arange.  Use
4634         dw_fde_{begin,end} for first partition and if switched
4635         section dw_fde_second_{begin,end} for the second.
4636         (var_location_switch_text_section_1,
4637         var_location_switch_text_section): New functions.
4638         (dwarf2out_begin_function): Initialize cold_text_section even
4639         when function_section () isn't text_section.
4640         (prune_unused_types): Don't walk arange_table.
4641         (dwarf2out_finish): Don't needlessly test
4642         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4643         If info_section_emitted, call size_of_aranges and if it indicates
4644         non-empty .debug_aranges, call output_aranges with the computed
4645         size.  Stop using removed dw_fde_struct fields, use
4646         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4647         for second.
4648
4649         PR debug/48203
4650         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4651         create ENTRY_VALUE if incoming or address of incoming's MEM
4652         is a hard REG.
4653         * dwarf2out.c (mem_loc_descriptor): Don't emit
4654         DW_OP_GNU_entry_value of DW_OP_fbreg.
4655         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4656         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4657         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4658         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4659         ENTRY_VALUE_EXPs.
4660         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4661         is a REG_P or MEM_P with REG_P address, compute hash directly
4662         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4663         (preserve_only_constants): Don't clear VALUES forwaring
4664         ENTRY_VALUE to some other VALUE.
4665
4666 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4667
4668         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4669         instead of GEN_INT.
4670
4671 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4672
4673         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4674         block before expanding the statement.
4675         (expand_gimple_stmt_1): Likewise.  Set them here...
4676         (expand_gimple_stmt): ...and not here.  Tidy.
4677         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4678         unknown.
4679
4680 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4681
4682         * Makefile.in: New rule for cprop.o.
4683         * gcse.c: Move constant/copy propagation to cprop.c.
4684         (compute_local_properties): Only handle expression tables.
4685         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4686         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4687         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4688         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4689         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4690         compute_cprop_data, find_used_regs, try_replace_reg,
4691         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4692         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4693         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4694         find_bypass_set, reg_killed_on_edge, bypass_block,
4695         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4696         execute_rtl_cprop, pass_rtl_cprop): Move to...
4697         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4698         moved from gcse.c to here with minor cleanups in duplicated code.
4699
4700 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4701
4702         * config/i386/i386.c (flag_opts): Fix a typo in
4703         -mavx256-split-unaligned-store.
4704
4705 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4706
4707         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4708         LIBCALL_VALUE): Remove macros.
4709         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4710         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4711         (h8300_function_value, h8300_libcall_value,
4712         h8300_function_value_regno_p): New functions.
4713
4714 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4715
4716         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4717
4718 2011-03-28  Jeff Law  <law@redhat.com>
4719
4720         * tree-ssa-threadupdate.c (redirect_edges): Call
4721         create_edge_and_update_destination_phis as needed.
4722         (create_edge_and_update_destination_phis): Accept new BB argument.
4723         All callers updated.
4724         (thread_block): Do not update the profile when threading around
4725         intermediate blocks.
4726         (thread_single_edge): Likewise.
4727         (determine_bb_domination_status): If BB is not a successor of the
4728         loop header, return NONDOMINATING.
4729         (register_jump_thread): Note when we register a jump thread around
4730         an intermediate block.
4731         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4732         (thread_across_edge): Use it.
4733
4734 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4735
4736         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4737         when for_return is 2.
4738
4739 2011-03-28  Jeff Law  <law@redhat.com>
4740
4741         * var-tracking.c (canonicalize_values_mark): Delete unused
4742         lhs assignment.
4743         (canonicalize_values_star, set_variable_part): Likewise.
4744         (clobber_variable_part, delete_variable_part): Likewise.
4745
4746 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4747
4748         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4749
4750 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4751
4752         * tree-inline.c (expand_call_inline): Do not check that destination
4753         node is analyzed.
4754         (optimize_inline_calls): Assert that destination node is analyzed.
4755         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4756         not call tree_lowering_passes.
4757         * cgraph.h (cgraph_analyze_function): Declare.
4758         * cgraphunit.c (cgraph_analyze_function): Make public.
4759
4760 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4761
4762         * config/sparc/sparc-opts.h: New.
4763         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4764         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4765         (sparc_option_override): Store processor_type enumeration rather
4766         than string in cpu_default.  Remove name and enumeration from
4767         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4768         without using sparc_select.  Use target_flags_explicit instead of
4769         fpu_option_set.
4770         * config/sparc/sparc.h (enum processor_type): Move to
4771         sparc-opts.h.
4772         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4773         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4774         HeaderInclude entry.
4775         (mcpu=, mtune=): Use Var and Enum.
4776         (sparc_processor_type): New Enum and EnumValue entries.
4777
4778 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4779             Iain Sandoe  <iains@gcc.gnu.org>
4780
4781         PR target/48245
4782         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4783
4784 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4785
4786         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4787         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4788         Insert new statements at it in lieu of STMT.
4789         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4790         * tree-vect-stmts.c (vectorizable_store): Likewise.
4791         (vectorizable_load): Likewise.
4792
4793 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4794
4795         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4796         (divtf3): Ditto.
4797         (multf3): Ditto.
4798         (subtf3): Ditto.
4799
4800 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4801
4802         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4803         unaligned 256bit load/store.
4804         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4805         (*avx_movdqu<avxmodesuffix>): Likewise.
4806
4807 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4808
4809         PR target/48288
4810         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4811         * config/pa/pa.md (iordi3): Use new predicate in expander.
4812         (iorsi3): Likewise.
4813
4814 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4815
4816         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4817         FUNCTION_VALUE_REGNO_P): Remove macros.
4818         * config/mips/mips-protos.h (mips_function_value): Remove.
4819         * config/mips/mips.c (mips_function_value): Rename to...
4820         (mips_function_value_1): ... this. Make static.  Handle receiving
4821         the function type in 'fn_decl_or_type' argument.
4822         (mips_function_value, mips_libcall_value,
4823         mips_function_value_regno_p): New function.
4824         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4825         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4826
4827 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4828
4829         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4830         and -mavx256-split-unaligned-store.
4831         (ix86_option_override_internal): Split 32-byte AVX unaligned
4832         load/store by default.
4833         (ix86_avx256_split_vector_move_misalign): New.
4834         (ix86_expand_vector_move_misalign): Use it.
4835
4836         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4837         -mavx256-split-unaligned-store.
4838
4839         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4840         256bit load/store.  Generate unaligned store on misaligned memory
4841         operand.
4842         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4843         256bit load/store.
4844         (*avx_movdqu<avxmodesuffix>): Likewise.
4845
4846         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4847         -mavx256-split-unaligned-store.
4848
4849 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4850
4851         PR target/38598
4852         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4853         Update commentary.
4854
4855 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4856
4857         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4858         opno arguments with an expand_operand.  Use create_input_operand.
4859         (mips_prepare_builtin_target): Delete.
4860         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4861         functions.
4862         (mips_expand_builtin_direct): Use create_output_operand and
4863         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4864         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4865         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4866
4867 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4868
4869         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4870         function.
4871         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4872
4873 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4874
4875         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4876         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4877         basic blocks and call commit_edge_insertions directly.
4878         (fixup_abnormal_edges): Move from here to...
4879         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4880         on the edges and return whether some have actually been inserted.
4881         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4882         compensation code.
4883
4884 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4885
4886         PR rtl-optimization/48144
4887         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4888         (merge_expr_data): ... here.
4889         (av_set_intersect): Rename to av_set_code_motion_filter.
4890         Update all callers.  Call merge_history_vect when an expression
4891         is found in both sets.
4892         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4893
4894 2011-03-26  Alan Modra  <amodra@gmail.com>
4895
4896         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4897         cmodel medium addresses.
4898         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4899         64-bit gpr loads and stores.
4900         (rs6000_secondary_reload_ppc64): New function.
4901         * config/rs6000/rs6000-protos.h: Declare it.
4902         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4903
4904 2011-03-26  Alan Modra  <amodra@gmail.com>
4905
4906         PR target/47487
4907         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4908         GNU Go in traceback table.
4909
4910 2011-03-25  Richard Henderson  <rth@redhat.com>
4911
4912         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4913         if there are exactly 6 operands.
4914         (set_storage_via_setmem): Similarly.
4915
4916 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4917
4918         * collect2.c (write_c_file_stat): Handle backslash
4919         as right-hand directory separator.
4920         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4921         checking just for slash.
4922         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4923         instead of checking for trailing slash.
4924         * gcc.c (record_temp_file): Use filename_cmp instead
4925         of strcmp.
4926         (do_spec_1): Likewise.
4927         (replace_outfile_spec_function): Likewise.
4928         (is_directory): Use filename_ncmp instead of strncmp.
4929         (print_multilib_info): Likewise.
4930         * gcov.c (find_source): Use filename_cmp instead
4931         instead of strcmp.
4932         (make_gcov_file_name): Fix order of slash/backslash
4933         checks.
4934         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4935         (add_standard_paths): Likewise.
4936         * mips-tfile.c (saber_stop): Handle backslash.
4937         * prefix.c (update_path): Use filename_ncmp instead of
4938         strncmp.
4939         * profile.c (output_location): Use filename_cmp instead
4940         of strcmp.
4941         * read-md.c (handle_toplevel_file): Handle backslash.
4942         * tlink.c (frob_extension):  Likewise.
4943         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4944         strcmp.
4945         * tree-dump.c (dequeue_and_dump): Handle backslash.
4946         * tree.c (get_file_function_name): Likewise.
4947         * gengtype.c (read_input_list): Likewise.
4948         (get_file_realbasename): Likewise.
4949         (get_output_file_with_visibility): Use filename_cmp
4950         instead of strcmp.
4951
4952 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4953
4954         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4955         case to VFPv1.
4956
4957 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4958
4959         * fold-const.c (expr_location_or): New function.
4960         (fold_truth_not_expr): Call it.
4961
4962 2011-03-25  Jeff Law  <law@redhat.com>
4963
4964         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4965         va_end.
4966         * c-family/c-common.c (def_fn_type): Likewise.
4967         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4968         * emit-rtl.c (gen_rtvec): Likewise.
4969         * lto/lto-lang.c (def_fn_type): Likewise.
4970
4971 2011-03-25  Richard Guenther  <rguenther@suse.de>
4972
4973         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4974         also generate copies.
4975         (fini_copy_prop): Handle constant values properly.
4976
4977 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4978
4979         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4980         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4981         (hash_loc_operands, compare_loc_operands): Handle
4982         DW_OP_GNU_entry_value.
4983
4984 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4985
4986         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
4987         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
4988         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
4989         comment and use macro TARGET_64BIT_MS_ABI instead.
4990         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
4991         and change default behavior for 32-bit MS_ABI.
4992         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
4993         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
4994         32-bit, too.
4995         (ix86_cfun_abi): Likewise.
4996         (ix86_maybe_switch_abi): Adjust comment.
4997         (init_cumulative_args): Check for bit-ness in MS_ABI case.
4998         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
4999         instead of checking for SYSV_ABI.
5000         (ix86_nsaved_sseregs): Likewise.
5001         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5002         to 16 bytes.
5003         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5004         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5005         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5006         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5007         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5008
5009 2011-03-25  Richard Guenther  <rguenther@suse.de>
5010
5011         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5012         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5013         (verify_gimple): Remove.
5014         * tree-cfg.c (verify_gimple_call): Merge verification
5015         from verify_stmts.
5016         (verify_gimple_phi): Merge verification from verify_stmts.
5017         (verify_gimple_label): New function.
5018         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5019         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5020         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5021         (verify_stmts): Rename to verify_gimple_in_cfg.
5022         (verify_gimple_in_cfg): New function.
5023         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5024         * tree-ssa.c (verify_ssa): Likewise.
5025         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5026
5027 2011-03-25  Richard Guenther  <rguenther@suse.de>
5028
5029         * passes.c (init_optimization_passes): Add FRE pass after
5030         early SRA.
5031
5032 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5033             Andrew Stubbs  <ams@codesourcery.com>
5034
5035         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5036         for Cortex-A8.
5037         (arm_movdi_vfp_cortexa8): New pattern.
5038         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5039         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5040         instructions when tuning for Cortex-A8.  Set attribute "arch".
5041         * config/arm/arm.md: Move include arm-tune.md up a bit.
5042         (define_attr "arch"): Add "onlya8" and "nota8" values.
5043         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5044
5045 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5046
5047         PR bootstrap/48282
5048         Revert:
5049         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5050
5051         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5052         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5053         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5054         * passes.c (init_optimization_passes): Move
5055         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5056
5057 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5058
5059         * c-typeck.c (comptypes_internal): Replace target
5060         hook call of comp_type_attributes by version in tree.c file.
5061         * gimple.c (gimple_types_compatible_p_1): Likewise.
5062         * tree-ssa.c (useless_type_conversion_p): Likewise.
5063         * tree.c (build_type_attribute_qual_variant): Likewise.
5064         (attribute_value_equal): New static helper function.
5065         (comp_type_attributes): New function.
5066         (merge_attributes): Use attribute_value_equal for comparison.
5067         (attribute_list_contained): Likewise.
5068         * tree.h (comp_type_attributes): New prototype.
5069
5070 2011-03-25  Richard Guenther  <rguenther@suse.de>
5071
5072         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5073         of complex types at -O0.
5074         (verify_gimple_assign_binary): Likewise.
5075         (verify_gimple_assign_ternary): Likewise.
5076
5077 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5078
5079         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5080         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5081
5082 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5083
5084         PR debug/48041
5085         * dwarf2out.c (output_abbrev_section): Only write table when
5086         abbrev_die_table_in_use > 1.
5087
5088 2011-02-24  Richard Henderson  <rth@redhat.com>
5089
5090         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5091         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5092         (alpha_expand_unaligned_load_words): Use extql.
5093         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5094         (emit_insxl): Handle all modes for consistency.
5095
5096 2011-02-24  Richard Henderson  <rth@redhat.com>
5097
5098         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5099         (alpha_expand_unaligned_load): Likewise.
5100         (alpha_expand_unaligned_store): Likewise.
5101         (alpha_expand_unaligned_load_words): Likewise.
5102         (alpha_expand_unaligned_store_words): Likewise.
5103         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5104         (alpha_split_lock_test_and_set_12): Likewise.
5105         (print_operand, alpha_fold_builtin_extxx): Likewise.
5106         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5107         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5108         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5109         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5110         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5111         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5112         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5113         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5114         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5115         (extwl, extll, extql): Similarly.
5116         (inswh, inslh, insqh): Similarly.
5117         (mskbl, mskwl, mskll, mskql): Similarly.
5118         (mskwh, msklh, mskqh): Similarly.
5119
5120 2011-02-24  Richard Henderson  <rth@redhat.com>
5121
5122         * config/alpha/alpha.md (attribute isa): Add er, ner.
5123         (attribute enabled): Handle them.
5124         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5125
5126 2011-02-24  Richard Henderson  <rth@redhat.com>
5127
5128         * config/alpha/alpha.md (attribute isa): Add vms.
5129         (attribute enabled): Handle it.
5130         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5131         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5132         (*movtf): Rename from *movtf_internal for consistency.
5133         (*movsi): Merge with *movsi_nt_vms.
5134         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5135         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5136         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5137         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5138
5139 2011-02-24  Richard Henderson  <rth@redhat.com>
5140
5141         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5142         (extendqisi2, extendhisi2): Likewise.
5143         (extendqidi2): Simplify BWX/non-BWX expansions.
5144         (extendhidi2): Similarly.
5145
5146 2011-02-24  Richard Henderson  <rth@redhat.com>
5147
5148         * config/alpha/alpha.md (attribute isa): New.
5149         (attribute enabled): New.
5150         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5151         (zero_extendqisi2, zero_extendqidi2): Similarly.
5152         (zero_extendhisi2, zero_extendhidi2): Similarly.
5153         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5154
5155 2011-02-24  Richard Henderson  <rth@redhat.com>
5156
5157         * config/alpha/predicates.md (input_operand): Revert last change;
5158         update comment to mention 32-bit VMS rather than Windows.
5159
5160 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5161
5162         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5163         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5164         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5165         * passes.c (init_optimization_passes): Move
5166         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5167
5168 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5169
5170         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5171
5172 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5173
5174         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5175         correctly.
5176
5177 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5178
5179         PR debug/48204
5180         * simplify-rtx.c (simplify_const_unary_operation): Call
5181         real_convert when changing mode class with FLOAT_EXTEND.
5182
5183 2011-03-24  Nick Clifton  <nickc@redhat.com>
5184
5185         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5186         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5187         * config/rx/rx.c (rx_option_override): Set align_jumps,
5188         align_loops and align_labels if not set by the user.
5189         (rx_align_for_label): New function.
5190         (rx_max_skip_for_label): New function.
5191         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5192         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5193         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5194         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5195         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5196
5197 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5198
5199         PR rtl-optimization/48263
5200         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5201         and original commutative_p handling.  Use maybe_gen_insn.
5202
5203 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5204
5205         * reload.c (find_reloads_subreg_address): Add address_reloaded
5206         parameter and return true there if the full address has been
5207         reloaded.
5208         (find_reloads_toplev): Pass address_reloaded flag.
5209         (find_reloads_address_1): Don't use address_reloaded parameter.
5210
5211 2011-03-24  Jeff Law  <law@redhat.com>
5212
5213         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5214         unused variable "ann".
5215         (remove_unused_locals): Likewise.
5216
5217         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5218         statement.
5219
5220         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5221         after it is freed.
5222
5223 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5224
5225         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5226         for invalid symbolic addresses.
5227         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5228         larl operands.
5229
5230 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5231
5232         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5233         the argument in calls to fold_truth_not_expr.
5234
5235 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5236
5237         * tree.c (record_node_allocation_statistics): New function.
5238         (make_node_stat, copy_node_stat, build_string): Call it.
5239         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5240         (build1_stat, build_omp_clause): Likewise.
5241
5242 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5243
5244         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5245         last commit.
5246
5247 2011-03-24  Richard Guenther  <rguenther@suse.de>
5248
5249         PR tree-optimization/48271
5250         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5251         blocks that still exist.
5252
5253 2011-03-24  Richard Guenther  <rguenther@suse.de>
5254
5255         PR tree-optimization/48270
5256         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5257         not free datarefs before ddrs.
5258
5259 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5260
5261         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5262         from the address built for a reference with variable offset.
5263
5264 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5265
5266         PR target/48237
5267         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5268         alternatives that can be handled with movq or movabsq insn.
5269         (*movdf_internal): Disable for !TARGET_64BIT.
5270         (*movdf_internal_nointeger): Ditto.
5271         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5272
5273 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5274
5275         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5276         (FUNCTION_ARG_ADVANCE): Likewise.
5277         * tm.texi.in: Change references to them to hook references.
5278         * tm.texi: Regenerate.
5279         * targhooks.c (default_function_arg): Eliminate check for target macro.
5280         (default_function_incoming_arg): Likewise.
5281         (default_function_arg_advance): Likewise.
5282         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5283         (function_arg_advance): Likewise.
5284         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5285
5286 2011-03-24  Richard Guenther  <rguenther@suse.de>
5287
5288         PR middle-end/48269
5289         * tree-object-size.c (addr_object_size): Do not double-account
5290         for MEM_REF offsets.
5291
5292 2011-03-24  Diego Novillo  <dnovillo@google.com>
5293
5294         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5295         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5296         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5297         Update all users.
5298         (lto_input_string): Rename from input_string.  Make extern.
5299         Update all users.
5300         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5301         output_string_with_length.
5302         Output 0 to indicate a non-NULL string.  Update all callers to
5303         not emit 0.
5304         (lto_output_string): Rename from output_string.  Make extern.
5305         Update all users.
5306         (lto_output_decl_state_streams): Make extern.
5307         (lto_output_decl_state_refs): Make extern.
5308         * lto-streamer.h (lto_input_string): Declare.
5309         (lto_input_data_block): Declare.
5310         (lto_output_string): Declare.
5311         (lto_output_string_with_length): Declare.
5312         (lto_output_decl_state_streams): Declare.
5313         (lto_output_decl_state_refs): Declare.
5314
5315 2011-03-24  Richard Guenther  <rguenther@suse.de>
5316
5317         PR tree-optimization/46562
5318         * tree.c (build_invariant_address): New function.
5319         * tree.h (build_invariant_address): Declare.
5320         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5321         a renamed function moved ...
5322         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5323         Take valueization callback parameter.
5324         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5325         * gimple-fold.h: New file.
5326         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5327         (ccp_fold, fold_const_aggregate_ref,
5328         fold_ctor_reference, fold_nonarray_ctor_reference,
5329         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5330         get_base_constructor): Move ...
5331         * gimple-fold.c: ... here.
5332         (gimple_fold_stmt_to_constant_1): New function
5333         split out from ccp_fold.  Take a valueization callback parameter.
5334         Valueize all operands.
5335         (gimple_fold_stmt_to_constant): New wrapper function.
5336         (fold_const_aggregate_ref_1): New function split out from
5337         fold_const_aggregate_ref.  Take a valueization callback parameter.
5338         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5339         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5340         invariant POINTER_PLUS_EXPRs to invariant form.
5341         (vn_valueize): New function.
5342         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5343         * tree-vrp.c (vrp_valueize): New function.
5344         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5345         to fold statements to constants.
5346         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5347         function declarations.
5348         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5349         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5350
5351 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5352
5353         * config/h8300/predicates.md (jump_address_operand): Fix register
5354         mode check.
5355
5356 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5357
5358         * doc/invoke.texi (max-stores-to-sink): Document.
5359         * params.h (MAX_STORES_TO_SINK): Define.
5360         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5361         if either vectorization or if-conversion is disabled.
5362         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5363         tree-vect-data-refs.c vect_equal_offsets.
5364         (dr_equal_offsets_p): New function.
5365         (find_data_references_in_bb): Remove static.
5366         * tree-data-ref.h (find_data_references_in_bb): Declare.
5367         (dr_equal_offsets_p): Likewise.
5368         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5369         (vect_drs_dependent_in_basic_block): Update calls to
5370         vect_equal_offsets.
5371         (vect_check_interleaving): Likewise.
5372         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5373         (cond_if_else_store_replacement): Rename to...
5374         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5375         documentation.
5376         (cond_if_else_store_replacement): New function.
5377         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5378         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5379
5380 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5381
5382         PR target/46934
5383         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5384         to subtract lower bound instead of GEN_INT().
5385
5386 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5387
5388         PR other/48179
5389         PR other/48221
5390         PR other/48234
5391         * doc/extend.texi (Alignment): Move section to match order in TOC.
5392         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5393         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5394
5395 2011-03-23  Jeff Law  <law@redhat.com>
5396
5397         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5398         before removing the edge.
5399
5400         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5401         it may have been freed by redirect_branch_edge or
5402         redirect_edge_succ_nodup.
5403
5404 2011-03-23  Richard Guenther  <rguenther@suse.de>
5405
5406         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5407         (check_va_list_escapes): Likewise.
5408         (check_all_va_list_escapes): Likewise.
5409
5410 2011-03-23  Richard Guenther  <rguenther@suse.de>
5411
5412         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5413         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5414         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5415         (alias.o): Likewise.
5416         (ipa-type-escape.o): Remove.
5417         (ipa-struct-reorg.o): Likewise.
5418         (GTFILES): Remove ipa-struct-reorg.c.
5419         * alias.c: Do not include ipa-type-escape.h.
5420         * tree-ssa-alias.c: Likewise.
5421         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5422         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5423         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5424         and ipa-type-escape passes.
5425         * tree-pass.h (pass_ipa_type_escape): Remove.
5426         (pass_ipa_struct_reorg): Likewise.
5427         * ipa-struct-reorg.h: Remove.
5428         * ipa-struct-reorg.c: Likewise.
5429         * ipa-type-escape.h: Likewise.
5430         * ipa-type-escape.c: Likewise.
5431         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5432         (--param struct-reorg-cold-struct-ratio): Likewise.
5433         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5434         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5435         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5436
5437 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5438
5439         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5440         cpu attribute value.
5441         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5442         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5443         * config/s390/s390.c (processor_flags_table): New constant array.
5444         (s390_handle_arch_option): Remove.
5445         (s390_handle_option): Remove s390_handle_arch_option invocations
5446         and OPT_mwarn_framesize_ handling.
5447         (s390_option_override): Remove s390_handle_arch_option invocation.
5448         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5449         warnings.
5450         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5451         * config/s390/s390.opt (s390_tune, s390_arch)
5452         (march=): Replace s390_arch_option enum and values with
5453         processor_type.  Set variable name to s390_arch.  Set
5454         initialization value.
5455         (mtune=): Replace s390_arch_option with processor_type.  Set
5456         variable name to s390_tune.  Set initialization value.
5457
5458 2011-03-23  Julian Brown  <julian@codesourcery.com>
5459
5460         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5461         accesses which are not naturally aligned.
5462
5463 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5464
5465         PR target/47553
5466         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5467
5468 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5469
5470         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5471         parameter from "int" to "enum insn_code".
5472         (expand_operand_type): New enum.
5473         (expand_operand): New structure.
5474         (create_expand_operand): New function.
5475         (create_fixed_operand, create_output_operand): Likewise
5476         (create_input_operand, create_convert_operand_to): Likewise.
5477         (create_convert_operand_from, create_address_operand): Likewise.
5478         (create_integer_operand): Likewise.
5479         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5480         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5481         (expand_insn, expand_jump_insn): Likewise.
5482         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5483         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5484         (expand_movstr, expand_builtin___clear_cache): Likewise.
5485         (expand_builtin_lock_release): Likewise.
5486         * explow.c (allocate_dynamic_stack_space): Likewise.
5487         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5488         and use the default handling in that case.
5489         * expmed.c (check_predicate_volatile_ok): Delete.
5490         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5491         (emit_cstore): Likewise.
5492         * expr.c (emit_block_move_via_movmem): Likewise.
5493         (set_storage_via_setmem, expand_assignment): Likewise.
5494         (emit_storent_insn, try_casesi): Likewise.
5495         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5496         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5497         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5498         (expand_twoval_unop, expand_twoval_binop): Likewise.
5499         (expand_unop_direct, emit_indirect_jump): Likewise.
5500         (emit_conditional_move, vector_compare_rtx): Likewise.
5501         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5502         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5503         (expand_sync_lock_test_and_set): Likewise.
5504         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5505         (emit_unop_insn): Likewise.
5506         (expand_copysign_absneg): Change icode to an insn_code.
5507         (create_convert_operand_from_type): New function.
5508         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5509         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5510         (expand_insn, expand_jump_insn): Likewise.
5511         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5512         than const_int_operand for operand 2.
5513
5514 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5515
5516         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5517         if possible.
5518
5519 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5520
5521         * emit-rtl.c (emit_pattern_before_noloc): New function.
5522         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5523         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5524         (emit_pattern_after_noloc): New function.
5525         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5526         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5527
5528 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5529
5530         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5531         (__ffsDI2): Likewise.
5532
5533 2011-03-22  Richard Henderson  <rth@redhat.com>
5534
5535         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5536         of !TARGET_ABI_OPEN_VMS.
5537         (alpha_trampoline_init, alpha_start_function): Likewise.
5538         (alpha_expand_epilogue, alpha_file_start): Likewise.
5539         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5540         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5541         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5542         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5543         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5544
5545 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5546
5547         * config/s390/s390-opts.h: New.
5548         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5549         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5550         s390_stack_guard): Remove.
5551         (s390_handle_arch_option): Return void.  Take enum
5552         s390_arch_option value instead of string and searching array.
5553         (s390_handle_option): Don't assert that global structures are in
5554         use.  Access variables via opts pointer.  Use error_at.  Don't use
5555         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5556         s390_handle_arch_option.
5557         (s390_option_override): Update call to s390_handle_arch_option.
5558         (s390_emit_prologue): Use %d format for s390_stack_size in
5559         diagnostic.  Use %wd for HOST_WIDE_INT.
5560         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5561         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5562         * config/s390/s390.opt (config/s390/s390-opts.h): New
5563         HeaderInclude entry.
5564         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5565         s390_arch_flags, s390_warn_framesize): New Variable entries.
5566         (s390_arch_option): New Enum and EnumValue entries.
5567         (march=): Use Enum instead of Var.
5568         (mstack-guard=, mstack-size=): Use UInteger and Var.
5569         (mtune=): Use Enum.
5570
5571 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5572
5573         * config/score/score.c (score_handle_option): Don't assert that
5574         global structures are in use.  Access target_flags via opts
5575         pointer.  Use value of -march= option to determine target_flags
5576         settings.
5577         * config/score/score.opt (march=): Use Enum.
5578         (score_arch): New Enum and EnumValue entries.
5579
5580 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5581
5582         * config/mep/mep.c (option_mtiny_specified): Remove.
5583         (mep_option_override): Move register handling for -mivc2 from
5584         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5585         instead of option_mtiny_specified.
5586         (mep_handle_option): Access target_flags via opts pointer.  Don't
5587         assert that global structures are in use.  Defer part of -mivc2
5588         handling and move it to mep_option_override.
5589         * config/mep/mep.opt (IVC2): New Mask entry.
5590         (mivc2): Use Var and Defer instead of Mask.
5591
5592 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5593
5594         * config/v850/v850-opts.h: New.
5595         * config/v850/v850.c (small_memory): Replace with
5596         small_memory_physical_max array.  Make that array static const.
5597         (v850_handle_memory_option): Take integer value of argument.  Take
5598         gcc_options pointer, option text and location.  Return void.
5599         Update for changes to small memory structures.
5600         (v850_handle_option): Access target_flags via opts pointer.  Don't
5601         assert that global structures are in use.  Update calls to
5602         v850_handle_memory_option.
5603         (v850_encode_data_area): Update references to small memory settings.
5604         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5605         (enum small_memory_type): Move to v850-opts.h.
5606         * config/v850/v850.opt (config/v850/v850-opts.h): New
5607         HeaderInclude entry.
5608         (small_memory_max): New Variable entry.
5609         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5610         (mtda, mzda): Likewise.
5611
5612 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5613
5614         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5615         pointer.  Don't assert that global structures are in use.
5616
5617 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5618
5619         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5620         via opts pointer.  Don't assert that global structures are in use.
5621
5622 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5623
5624         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5625         (munix=93): Use Var.
5626         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5627         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5628         * config/pa/pa-opts.h: New.
5629         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5630         (pa_handle_option): Don't assert that global structures are in
5631         use.  Access target_flags via opts pointer.  Don't handle
5632         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5633         OPT_munix_98 here.
5634         (pa_option_override): Handle deferred OPT_mfixed_range_.
5635
5636 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5637
5638         * config/mn10300/mn10300-opts.h: New.
5639         * config/mn10300/mn10300.c (mn10300_processor,
5640         mn10300_tune_string): Remove.
5641         (mn10300_handle_option): Don't assert that global structures are
5642         in use.  Access mn10300_processor via opts pointer.  Don't handle
5643         OPT_mtune_ here.
5644         * config/mn10300/mn10300.h (enum processor_type): Move to
5645         mn10300-opts.h.
5646         (mn10300_processor): Remove.
5647         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5648         HeaderInclude entry.
5649         (mn10300_processor): New Variable entry.
5650         (mtune=): Use Var.
5651
5652 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5653
5654         * config/microblaze/microblaze.c: Don't include opts.h.
5655         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5656         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5657         (mno-clearbss): Use Var and Warn.
5658
5659 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5660
5661         * config/m32r/m32r-opts.h: New.
5662         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5663         (m32r_handle_option): Don't assert that global structures are in
5664         use.  Access target_flags and m32r_cache_flush_func via opts
5665         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5666         OPT_mno_flush_trap here.
5667         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5668         include of m32r-opts.h.
5669         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5670         HeaderInclude entry.
5671         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5672         (mmodel=): Use Enum and Var.
5673         (m32r_model): New Enum and EnumValue entries.
5674         (mno-flush-trap): Use Var.
5675         (msdata=): Use Enum and Var.
5676         (m32r_sdata): New Enum and EnumValue entries.
5677
5678 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5679
5680         * config/m32c/m32c.c: Don't include opts.h.
5681         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5682         m32c_handle_option): Remove.
5683         (m32c_option_override): Check global_options_set.x_target_memregs
5684         instead of target_memregs_set.
5685         * config/m32c/m32c.h (target_memregs): Remove.
5686         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5687         variable.
5688
5689 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5690
5691         * config/iq2000/iq2000-opts.h: New.
5692         * config/iq2000/iq2000.c: Don't include opts.h.
5693         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5694         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5695         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5696         HeaderInclude entry.
5697         (iq2000_tune): New Variable entry.
5698         (march=): Add comment.  Use Enum.
5699         (iq2000_arch): New Enum and EnumValue entries.
5700         (mcpu=): Use Enum and Var.
5701         (iq2000_tune): New Enum and EnumValue entries.
5702
5703 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5704
5705         * config/ia64/ia64-opts.h: New.
5706         * config/ia64/ia64.c (ia64_tune): Remove.
5707         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5708         here.  Use error_at.
5709         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5710         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5711         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5712         HeaderInclude entry.
5713         (ia64_tune): New Variable entry.
5714         (mfixed-range=): Use Defer and Var.
5715         (mtune=): Use Enum and Var.
5716         (ia64_tune): New Enum and EnumValue entries.
5717
5718 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5719
5720         * config/frv/frv-opts.h: New.
5721         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5722         frv-opts.h.
5723         (frv_cpu_type): Remove.
5724         * config/frv/frv.c: Don't include opts.h.
5725         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5726         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5727         (frv_cpu_type): New Variable entry.
5728         (frv_cpu): New Enum and EnumValue entries.
5729
5730 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5731
5732         * config/cris/cris.c (cris_handle_option): Access target_flags via
5733         opts pointer.  Don't assert that global structures are in use.
5734         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5735         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5736
5737 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5738
5739         * config/bfin/bfin-opts.h: New.
5740         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5741         bfin_si_revision, bfin_workarounds): Remove.
5742         (bfin_cpus): Make static const.
5743         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5744         not bfin_lib_id_given.
5745         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5746         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5747         pointer. Use error_at.  Don't assert that global structures are in use.
5748         * config/bfin/bfin.h: Include bfin-opts.h.
5749         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5750         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5751         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5752         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5753         entries.
5754
5755 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5756
5757         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5758         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5759         or -msoft-float here.
5760         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5761         -msoft-float and -mhard-float.
5762         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5763         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5764         msoft-float.
5765         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5766         -msoft-float.
5767         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5768         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5769         not mhard-float.
5770         (LIBGCC_SPEC): Don't handle -msoft-float.
5771         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5772         -mhard-float.
5773         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5774         msoft-float.
5775         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5776         -mfloat-abi=*, not -msoft-float and -mhard-float.
5777         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5778         -msoft-float.
5779         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5780         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5781         mhard-float and msoft-float.
5782         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5783         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5784         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5785         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5786         mhard-float.
5787         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5788         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5789         msoft-float.
5790         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5791         not mhard-float.
5792         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5793         not msoft-float.
5794
5795 2011-03-22  Richard Henderson  <rth@redhat.com>
5796
5797         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5798         TARGET_ABI_WINDOWS_NT.
5799         (alpha_output_function_end_prologue): Likewise.
5800         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5801         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5802         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5803         (trap, *movsi_nt_vms): Likewise.
5804         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5805         (*tablejump_osf_nt_internal): Remove.
5806         * config/alpha/predicates.md (input_operand): Only test Pmode.
5807
5808 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5809
5810         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5811         via opts pointer.  Use error_at.  Don't assert that global
5812         structures are in use.
5813
5814 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5815
5816         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5817         (ix86_handle_option): Access ix86_isa_flags and
5818         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5819         global structures are in use.
5820         (ix86_function_specific_save, ix86_function_specific_restore):
5821         Update ix86_isa_flags_explicit field name.
5822         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5823         (ix86_isa_flags_explicit): Rename TargetSave entry to
5824         x_ix86_isa_flags_explicit.
5825
5826 2011-03-22  Richard Henderson  <rth@redhat.com>
5827
5828         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5829         (alpha_option_override, direct_return): Likewise.
5830         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5831         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5832         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5833         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5834         (alpha_expand_epilogue, alpha_end_function): Likewise.
5835         (alpha_init_libfuncs): Likewise.
5836         (struct machine_function): Remove unicosmk members.
5837         (print_operand) ['t']: Remove.
5838         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5839         unicosmk_output_module_name, unicosmk_output_common,
5840         current_section_align, unicosmk_output_text_section_asm_op,
5841         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5842         unicosmk_section_type_flags, unicosmk_unique_section,
5843         unicosmk_asm_named_section, unicosmk_insert_attributes,
5844         unicosmk_output_align, unicosmk_defer_case_vector,
5845         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5846         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5847         unicosmk_output_ssib, unicosmk_add_call_info_word,
5848         unicosmk_extern_head, unicosmk_output_default_externs,
5849         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5850         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5851         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5852         * config/alpha/alpha-protos.h: Update.
5853         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5854         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5855         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5856         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5857         (*mulsi_se, mulvsi3): Likewise.
5858         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5859         (*divmodsi_internal, call, call_value, realign): Likewise.
5860         (moddi3, umoddi3): Likewise; remove duplicate expander.
5861         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5862         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5863         (*movdi_nofix): Remove r/U alternative.
5864         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5865         * config/alpha/constraints.md ("U"): Remove.
5866         * config/alpha/predicates.md (call_operand"): Don't test
5867         TARGET_ABI_UNICOSMK.
5868
5869 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5870
5871         * target.def (handle_option): Take gcc_options and
5872         cl_decoded_option pointers and location_t.
5873         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5874         * doc/tm.texi: Regenerate.
5875         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5876         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5877         * lto-opts.c (lto_reissue_options): Generate option structure for
5878         targetm.handle_option call.
5879         * opts.c (target_handle_option): Update call to
5880         targetm.handle_option.  Remove assertions about values now passed
5881         down to hook.
5882         * targhooks.c (default_target_handle_option): New.
5883         * targhooks.h (default_target_handle_option): Declare.
5884         * config/alpha/alpha.c: Include opts.h.
5885         (alpha_handle_option): Update to new hook interface.
5886         * config/arm/arm.c: Include opts.h.
5887         (arm_handle_option): Update to new hook interface.
5888         * config/arm/t-arm (arm.o): Update dependencies.
5889         * config/bfin/bfin.c: Include opts.h.
5890         (bfin_handle_option): Update to new hook interface.
5891         * config/cris/cris.c: Include opts.h.
5892         (cris_handle_option): Update to new hook interface.
5893         * config/frv/frv.c: Include opts.h.
5894         (frv_handle_option): Update to new hook interface.
5895         * config/i386/i386.c: Include opts.h.
5896         (ix86_handle_option): Update to new hook interface.
5897         (ix86_valid_target_attribute_inner_p): Generate option structure
5898         for call to ix86_handle_option.
5899         * config/i386/t-i386 (i386.o): Update dependencies.
5900         * config/ia64/ia64.c: Include opts.h.
5901         (ia64_handle_option): Update to new hook interface.
5902         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5903         * config/iq2000/iq2000.c: Include opts.h.
5904         (iq2000_handle_option): Update to new hook interface.
5905         * config/m32c/m32c.c: Include opts.h.
5906         (m32c_handle_option): Update to new hook interface.
5907         * config/m32r/m32r.c: Include opts.h.
5908         (m32r_handle_option): Update to new hook interface.
5909         * config/m68k/m68k.c: Include opts.h.
5910         (m68k_handle_option): Update to new hook interface.
5911         * config/mep/mep.c: Include opts.h.
5912         (mep_handle_option): Update to new hook interface.
5913         * config/microblaze/microblaze.c: Include opts.h.
5914         (microblaze_handle_option): Update to new hook interface.
5915         * config/mips/mips.c: Include opts.h.
5916         (mips_handle_option): Update to new hook interface.
5917         * config/mn10300/mn10300.c: Include opts.h.
5918         (mn10300_handle_option): Update to new hook interface.
5919         * config/pa/pa.c: Include opts.h.
5920         (pa_handle_option): Update to new hook interface.
5921         * config/pdp11/pdp11.c: Include opts.h.
5922         (pdp11_handle_option): Update to new hook interface.
5923         * config/rs6000/rs6000.c: Include opts.h.
5924         (rs6000_handle_option): Update to new hook interface.
5925         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5926         * config/rx/rx.c: Include opts.h.
5927         (rx_handle_option): Update to new hook interface.
5928         * config/s390/s390.c: Include opts.h.
5929         (s390_handle_option): Update to new hook interface.
5930         * config/score/score.c: Include opts.h.
5931         (score_handle_option): Update to new hook interface.
5932         * config/sh/sh.c: Include opts.h.
5933         (sh_handle_option): Update to new hook interface.
5934         * config/sparc/sparc.c: Include opts.h.
5935         (sparc_handle_option): Update to new hook interface.
5936         * config/v850/v850.c: Include opts.h.
5937         (v850_handle_option): Update to new hook interface.
5938
5939 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5940
5941         * gcc.c (driver_unknown_option_callback): Only permit and save
5942         unknown -Wno- options.
5943         (driver_wrong_lang_callback): Save options directly instead of via
5944         driver_unknown_option_callback.
5945
5946 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5947
5948         * combine.c (simplify_set): Try harder to find the best CC mode when
5949         simplifying a nested COMPARE on the RHS.
5950
5951 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5952
5953         * config/alpha/gnu.h: Remove.
5954         * config/arc: Remove directory.
5955         * config/arm/netbsd.h: Remove.
5956         * config/arm/t-pe: Remove.
5957         * config/crx: Remove directory.
5958         * config/i386/netbsd.h: Remove.
5959         * config/m68hc11: Remove directory.
5960         * config/m68k/uclinux-oldabi.h: Remove.
5961         * config/mcore/mcore-pe.h: Remove.
5962         * config/mcore/t-mcore-pe: Remove.
5963         * config/netbsd-aout.h: Remove.
5964         * config/rs6000/gnu.h: Remove.
5965         * config/sh/sh-symbian.h: Remove.
5966         * config/sh/symbian-base.c: Remove.
5967         * config/sh/symbian-c.c: Remove.
5968         * config/sh/symbian-cxx.c: Remove.
5969         * config/sh/symbian-post.h: Remove.
5970         * config/sh/symbian-pre.h: Remove.
5971         * config/sh/t-symbian: Remove.
5972         * config/svr3.h: Remove.
5973         * config/vax/netbsd.h: Remove.
5974         * config.build: Don't handle i[34567]86-*-pe.
5975         * config.gcc: Remove handling of deprecations for most deprecated
5976         targets.
5977         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5978         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5979         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5980         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5981         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5982         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
5983         Remove cases.
5984         * config.host: Don't handle i[34567]86-*-pe.
5985         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
5986         (ASM_SPEC32): Don't handle -mcall-gnu.
5987         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
5988         -mcall-gnu.
5989         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
5990         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
5991         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
5992         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
5993         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
5994         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
5995         conditional on SYMBIAN.
5996         * configure.ac: Don't handle powerpc*-*-gnu*.
5997         * configure: Regenerate.
5998         * doc/extend.texi (interrupt attribute): Don't mention CRX.
5999         * doc/install-old.texi (m6811, m6812): Don't mention.
6000         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6001         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6002         (m68k-uclinuxoldabi): Don't mention.
6003         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6004         Remove.
6005         (-mcall-gnu): Remove.
6006         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6007         families): Remove constraint documentation.
6008
6009 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6010
6011         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6012         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6013         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6014
6015 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6016
6017         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6018         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6019         * config/avr/avr.c (init_cumulative_args)
6020         (avr_function_arg_advance): Use it.
6021         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6022         sibcall epilogues.
6023         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6024         (avr_function_ok_for_sibcall): ...this new function.
6025         (avr_lookup_function_attribute1): New static Function.
6026         (avr_naked_function_p, interrupt_function_p)
6027         (signal_function_p, avr_OS_task_function_p)
6028         (avr_OS_main_function_p): Use it.
6029         * config/avr/avr.md ("sibcall", "sibcall_value")
6030         ("sibcall_epilogue"): New expander.
6031         ("*call_insn", "*call_value_insn"): New insn.
6032         ("call_insn", "call_value_insn"): Remove
6033         ("call", "call_value", "epilogue"): Change expander to handle
6034         sibling calls.
6035
6036 2011-03-21  Nick Clifton  <nickc@redhat.com>
6037
6038         * doc/invoke.texi (Overall Options): Move closing brace to end of
6039         options list.
6040         (Optimization Options): Add missing @gol.
6041         (Directory Options): Likewise.
6042         (i386 and x86-64 Options): Likewise.
6043         (RS6000 and PowerPC Options): Likewise.
6044         (i386 and x86-64 Windows Options): Likewise.
6045         (V850 Options): Add text missing from descriptions.
6046
6047 2011-03-22  Richard Henderson  <rth@redhat.com>
6048
6049         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6050         (avr_incoming_return_addr_rtx): New.
6051         (emit_push_byte): New.
6052         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6053         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6054         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6055         (emit_pop_byte): New.
6056         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6057         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6058         (INCOMING_RETURN_ADDR_RTX): New.
6059         (INCOMING_FRAME_SP_OFFSET): New.
6060         (ARG_POINTER_CFA_OFFSET): New.
6061         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6062         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6063         (pophi): Remove.
6064
6065         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6066
6067 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6068
6069         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6070         (FUNCTION_ARG_ADVANCE): Likewise.
6071         * tm.texi.in: Change references to them to hook references.
6072         * tm.texi: Regenerate.
6073         * targhooks.c (default_function_arg): Eliminate check for target
6074         macro.
6075         (default_function_incoming_arg): Likewise.
6076         (default_function_arg_advance): Likewise.
6077         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6078         (function_arg_advance): Likewise.
6079         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6080
6081 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6082
6083         * tree.c (build_call_1): New function.
6084         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6085
6086 2011-03-22  Richard Guenther  <rguenther@suse.de>
6087
6088         PR tree-optimization/48228
6089         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6090         for single-arg PHIs.
6091
6092 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6093
6094         PR rtl-optimization/48143
6095         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6096         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6097         sse2_cvtps2pd): Likewise.
6098
6099 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6100
6101         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6102
6103 2011-03-22  Richard Guenther  <rguenther@suse.de>
6104
6105         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6106         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6107         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6108         and REALIGN_LOAD_EXPR.
6109         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6110         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6111         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6112         DOT_PROD_EXPR case ...
6113         (expand_expr_real_2): ... here.
6114         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6115         and REALIGN_LOAD_EXPR.
6116         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6117         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6118         (vect_create_epilog_for_reduction): Likewise.
6119         (vectorizable_reduction): Likewise.
6120         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6121         * tree-vect-stmts.c (vectorizable_load): Likewise.
6122
6123 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6124
6125         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6126
6127 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6128
6129         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6130         handling for PLTOFF/GOTOFF.
6131
6132 2011-03-22  Nick Clifton  <nickc@redhat.com>
6133
6134         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6135         trailing backslash from the end of the macro definition.
6136
6137 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6138
6139         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6140         and PLT unspecs.
6141
6142 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6143
6144         * expr.h (prepare_operand): Move to...
6145         * optabs.h (prepare_operand): ...here and change the insn code
6146         parameter from "int" to "enum insn_code".
6147         (insn_operand_matches): Declare.
6148         * expr.c (init_expr_target): Use insn_operand_matches.
6149         (compress_float_constant): Likewise.
6150         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6151         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6152         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6153         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6154         Likewise.
6155         (gen_cond_trap): Likewise.
6156         (prepare_operand): Likewise.  Change icode to an insn_code.
6157         (insn_operand_matches): New function.
6158         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6159         * reload1.c (gen_reload): Likewise.
6160         * targhooks.c (default_secondary_reload): Likewise.
6161
6162 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6163
6164         * config/alpha/alpha.md (unspec): New define_c_enum.
6165         (unspecv): Ditto.
6166
6167 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6168
6169         PR debug/48214
6170         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6171         between a call and its CALL_ARG_LOCATION note.
6172
6173 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6174
6175         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6176
6177 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6178
6179         PR c/42544
6180         PR c/48197
6181         * c-common.c (shorten_compare): If primopN is first sign-extended
6182         to opN and then zero-extended to result type, set primopN to opN.
6183
6184 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6185
6186         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6187         for barrier handlers.
6188
6189 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6190
6191         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6192         UNSPEC constants to be in the unspec enumeration, and redefine
6193         all UNSPECV constants to be in the unspecv enumeration, so that
6194         dumps print which unspec/unspec_volatile this is.
6195         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6196         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6197         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6198         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6199         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6200
6201         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6202         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6203         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6204         * config/rs6000/sync.md (isync, lwsync): Ditto.
6205
6206 2011-03-21  Richard Guenther  <rguenther@suse.de>
6207
6208         * params.def (lto-min-partition): Fix typo.
6209
6210 2011-03-21  Richard Guenther  <rguenther@suse.de>
6211
6212         PR c/47939
6213         * c-decl.c (grokdeclarator): Drop to the main variant only
6214         for array types.  Drop flag_gen_aux_info check.
6215
6216 2011-03-21  Richard Guenther  <rguenther@suse.de>
6217
6218         PR translation/47911
6219         * params.def (lto-partitions): Fix typo.
6220         (lto-min-partition): Fix wording.
6221
6222 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6223
6224         * config/rs6000/t-freebsd: Remove duplication from file.
6225
6226 2011-03-21  Richard Guenther  <rguenther@suse.de>
6227
6228         PR middle-end/47661
6229         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6230
6231 2011-03-21  Richard Guenther  <rguenther@suse.de>
6232
6233         PR lto/48210
6234         * params.def (lto-partitions): Require at least 1 partition.
6235
6236 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6237
6238         * gthr-solaris.h: Remove.
6239         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6240         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6241         (LIB_SPEC): Likewise.
6242         * config/sol2.opt (threads): Remove.
6243         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6244         (sparc*-*-solaris2*): Likewise.
6245         * configure.ac (enable_threads): Enable solaris support.
6246         * configure: Regenerate.
6247         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6248         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6249         solaris.
6250
6251 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6252
6253         * config.gcc: Obsolete *-*-solaris2.8*.
6254         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6255
6256 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6257
6258         PR bootstrap/48135
6259         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6260         reference.  Solaris 8 perl works.
6261
6262 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6263
6264         PR bootstrap/48135
6265         * doc/install.texi (Prerequisites): Move jar etc. up.
6266         Explain support library version requirements.
6267
6268 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6269
6270         PR bootstrap/48135
6271         * doc/install.texi (Prerequisites): Move Perl to build
6272         requirements.  Always necessary on Solaris 2 with Sun ld.
6273
6274 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6275
6276         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6277         binutils 2.21.
6278         (Specific, i?86-*-solaris2.[89]): Likewise.
6279         (Specific, i?86-*-solaris2.10): Likewise.
6280         (Specific, mips-sgi-irix6): Likewise.
6281         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6282         Update for binutils 2.21.
6283
6284 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6285
6286         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6287         Allow -fuse-linker-plugin for non-default plugin linker.
6288         * configure: Regenerate.
6289
6290 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6291
6292         PR bootstrap/48167
6293         * gengtype.c (files_rules): Added rule for cp/parser.h.
6294
6295 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6296
6297         PR target/48213
6298         * config/s390/s390.c (s390_delegitimize_address): Don't call
6299         lowpart_subreg if orig_x has BLKmode.
6300
6301 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6302
6303         PR target/12171
6304         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6305         * tree.h (attribute_spec): Add new member affects_type_identity.
6306         * attribs.c (empty_attribute_table): Adjust attribute_spec
6307         initializers.
6308         * config/alpha/alpha.c: Likewise.
6309         * config/arc/arc.c: Likewise.
6310         * config/arm/arm.c: Likewise.
6311         * config/avr/avr.c: Likewise.
6312         * config/bfin/bfin.c: Likewise.
6313         * config/crx/crx.c: Likewise.
6314         * config/darwin.h: Likewise.
6315         * config/h8300/h8300.c: Likewise.
6316         * config/i386/cygming.h: Likewise.
6317         * config/i386/i386.c: Likewise.
6318         * config/ia64/ia64.c: Likewise.
6319         * config/m32c/m32c.c: Likewise.
6320         * config/m32r/m32r.c: Likewise.
6321         * config/m68hc11/m68hc11.c: Likewise.
6322         * config/m68k/m68k.c: Likewise.
6323         * config/mcore/mcore.c: Likewise.
6324         * config/mep/mep.c: Likewise.
6325         * config/microblaze/microblaze.c: Likewise.
6326         * config/mips/mips.c: Likewise.
6327         * config/rs6000/rs6000.c: Likewise.
6328         * config/rx/rx.c: Likewise.
6329         * config/sh/sh.c: Likewise.
6330         * config/sol2.h: Likewise.
6331         * config/sparc/sparc.c: Likewise.
6332         * config/spu/spu.c: Likewise.
6333         * config/stormy16/stormy16.c: Likewise.
6334         * config/v850/v850.c: Likewise.
6335
6336 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6337
6338         * simplify-rtx.c (simplify_binary_operation_1): Handle
6339         (xor (and A B) C) case when B and C are both constants.
6340
6341 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6342
6343         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6344
6345 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6346
6347         PR bootstrap/48168
6348         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6349
6350 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6351
6352         PR rtl-optimization/48156
6353         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6354         assume df and df_lr are not NULL.
6355
6356 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6357
6358         PR debug/48023
6359         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6360         between a call and its CALL_ARG_LOCATION note.
6361
6362 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6363
6364         PR debug/48178
6365         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6366         between a call and its corresponding CALL_ARG_LOCATION note.
6367
6368 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6369
6370         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6371         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6372         * haifa-sched.c (setup_ref_regs): Ditto.
6373         * caller-save.c (add_used_regs_1): Ditto.
6374         * dse.c (look_for_hardregs): Ditto.
6375         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6376         * sched-rgn.c (check_live_1): Ditto.
6377
6378 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6379
6380         * c-decl.c (diagnose_mismatched_decls): Give an error for
6381         redefining a typedef with variably modified type.
6382
6383 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6384
6385         * c-decl.c (grokfield): Don't allow typedefs for structures or
6386         unions with no tag by default.
6387         * doc/extend.texi (Unnamed Fields): Update.
6388
6389 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6390
6391         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6392         Rewrite using indirect functions.
6393         (lwp_slwpcb): Ditto.
6394         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6395         (avx_vinsertf128<mode>): Ditto.
6396
6397 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6398
6399         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6400         unspecs.
6401
6402 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6403
6404         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6405         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6406
6407 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6408
6409         PR rtl-optimization/48170
6410         * gcse.c (hoist_code): Remove bogus asserts.
6411
6412 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6413
6414         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6415         computation for prologue/epilogue.
6416
6417 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6418
6419         * Makefile.in (check-consistency): Remove.
6420
6421 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6422
6423         PR debug/48176
6424         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6425         arange_table_in_use is 0, but either text_section_used or
6426         cold_text_section_used is true.  Don't call it if
6427         !info_section_emitted.
6428
6429 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6430
6431         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6432         FUNCTION_VALUE_REGNO_P): Remove.
6433         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6434         Remove.
6435         * config/avr/avr.c (avr_ret_register): Make static inline.
6436         (avr_function_value_regno_p): New function.
6437         (avr_libcall_value): Make static. Add 'func' argument.
6438         (avr_function_value): Make static. Rename 'func' argument to
6439         'fn_decl_or_type', forward it to avr_libcall_value. Call
6440         avr_ret_register function instead of RET_REGISTER macro.
6441         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6442
6443 2011-03-18  Jason Merrill  <jason@redhat.com>
6444
6445         PR c++/23372
6446         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6447
6448 2011-03-18  Richard Guenther  <rguenther@suse.de>
6449
6450         * doc/install.texi (--enable-gold): Remove.
6451         (--with-plugin-ld): Document.
6452         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6453
6454 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6455
6456         PR middle-end/47790
6457         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6458         again after expansion changes.
6459
6460 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6461
6462         * combine.c (try_combine): Do simplification only call of
6463         subst() on i2 even when i1 is present. Update comments.
6464
6465 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6466
6467         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6468         and UNSPEC_PCREL_SYMOFF.
6469
6470 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6471
6472         * config/s390/s390.md: Use define_c_enum for the unspec constant
6473         definitions.
6474
6475 2011-03-18  Richard Henderson  <rth@redhat.com>
6476             Jakub Jelinek  <jakub@redhat.com>
6477
6478         PR bootstrap/48161
6479         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6480         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6481
6482 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6483
6484         PR middle-end/47725
6485         * combine.c (cant_combine_insn_p): Don't check zero/sign
6486         extended hard registers.
6487
6488 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6489
6490         PR middle-end/47725
6491         * combine.c (cant_combine_insn_p): Check zero/sign extended
6492         hard registers.
6493
6494 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6495
6496         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6497         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6498         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6499         Change return type to bool.
6500         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6501
6502 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6503
6504         PR debug/48163
6505         * var-tracking.c (prepare_call_arguments): If CALL target
6506         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6507         pc instead of looking it up using cselib_lookup and use
6508         Pmode for it if x has VOIDmode.
6509         * dwarf2out.c (gen_subprogram_die): If also both first and
6510         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6511
6512         PR debug/48163
6513         * function.c (assign_parms): For data.passed_pointer parms
6514         use MEM of data.entry_parm instead of data.entry_parm itself
6515         as DECL_INCOMING_RTL.
6516         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6517         also when passed and declared mode is the same, DECL_RTL
6518         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6519         a MEM too.
6520
6521 2011-03-16  Jeff Law  <law@redhat.com>
6522
6523         PR rtl-optimization/37273
6524         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6525         handle them like argument loads from stack slots.  Do not double
6526         count memory for memory constants and argument loads from stack slots.
6527
6528 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6529
6530         PR debug/48160
6531         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6532
6533 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6534
6535         PR target/48171
6536         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6537
6538 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6539
6540         PR bootstrap/48153
6541         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6542         if dwarf_strict.
6543         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6544         Clear call_arg_locations and call_arg_loc_last always.
6545
6546         PR middle-end/48152
6547         * var-tracking.c (prepare_call_arguments): If argument needs to be
6548         passed by reference, adjust argtype and mode.
6549
6550 2011-03-17  Richard Guenther  <rguenther@suse.de>
6551
6552         PR middle-end/48134
6553         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6554         a value make sure to fold the statement.
6555
6556 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6557
6558         PR target/43872
6559         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6560         return condition with !cfun->calls_alloca.
6561
6562 2011-03-17  Richard Guenther  <rguenther@suse.de>
6563
6564         PR bootstrap/48148
6565         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6566         origin for decls in other ltrans units.
6567         (input_varpool_node): Likewise.
6568
6569 2011-03-17  Richard Guenther  <rguenther@suse.de>
6570
6571         PR middle-end/48165
6572         * tree-object-size.c (compute_object_offset): Properly return
6573         the offset operand of MEM_REFs as sizetype.
6574
6575 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6576
6577         PR rtl-optimization/48141
6578         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6579         * dse.c: Include params.h.
6580         (active_local_stores_len): New variable.
6581         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6582         to NULL.
6583         (record_store, check_mem_read_rtx): Decrease it when removing
6584         from the chain.
6585         (scan_insn): Likewise.  Increase it when adding to chain, if it
6586         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6587         set active_local_stores to NULL before the addition.
6588         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6589
6590         PR rtl-optimization/48141
6591         * dse.c (record_store): If no positions are needed in an insn
6592         that cannot be deleted, at least unchain it from active_local_stores.
6593
6594 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6595
6596         PR debug/47510
6597         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6598         (lookup_type_die_strip_naming_typedef): ... here.
6599         (get_context_die): Use it.
6600         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6601         the anonymous struct named by the naming typedef.
6602
6603 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6604
6605         PR target/48154
6606         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6607         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6608
6609 2011-03-16  Jeff Law  <law@redhat.com>
6610
6611         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6612         check for operands of conditional.  Allow type to be a pointer.
6613
6614 2011-03-16  Richard Guenther  <rguenther@suse.de>
6615
6616         PR tree-optimization/48149
6617         * fold-const.c (fold_binary_loc): Fold
6618         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6619
6620 2011-03-16  Richard Guenther  <rguenther@suse.de>
6621
6622         PR tree-optimization/26134
6623         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6624         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6625         (non_rewritable_mem_ref_base): Handle complex type component
6626         accesses, constrain offsets for vector and complex extracts
6627         more properly.
6628
6629 2011-03-16  Richard Guenther  <rguenther@suse.de>
6630
6631         PR tree-optimization/48146
6632         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6633         operands avoiding the need for renaming.
6634
6635 2011-03-16  Richard Guenther  <rguenther@suse.de>
6636
6637         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6638         constant folding.  Move MEM_REF canonicalization first.
6639         Rely on fold_const_aggregate_ref for initializer folding.
6640         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6641
6642 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6643
6644         PR middle-end/48136
6645         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6646         arg0/arg1 or their arguments are always fold converted to matching
6647         types.
6648
6649         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6650         to nargs.
6651
6652 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6653
6654         PR lto/46944
6655         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6656         Handle in-tree gold.
6657         (ld_vers): Extract binutils version for gold.
6658         (gcc_cv_ld_hidden): Handle gold here.
6659         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6660         * configure: Regenerate.
6661         * config.in: Regenerate.
6662         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6663         -fuse-linker-plugin otherwise.
6664         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6665         (LINK_COMMAND_SPEC): Use it.
6666         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6667
6668 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6669
6670         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6671         * calls.c: Remove debug.h include.
6672         (emit_call_1): Don't call virtual_call_token debug hook.
6673         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6674         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6675         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6676         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6677         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6678         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6679         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6680         dwarf2out_virtual_call): Remove.
6681         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6682         copy_call_info and virtual_call hooks.
6683         (dwarf2out_init): Don't initialize vcall_insn_table,
6684         debug_dcall_section and debug_vcall_section.
6685         (prune_unused_types): Don't mark nodes from dcall_table.
6686         (dwarf2out_finish): Don't output dcall or vcall tables.
6687         * final.c (final_scan_insn): Don't call direct_call or
6688         virtual_call debug hooks.
6689         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6690         virtual_call_token, copy_call_info and virtual_call hooks.
6691         (debug_nothing_uid): Remove prototype.
6692         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6693         copy_call_info and virtual_call hooks.
6694         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6695         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6696         * debug.c (do_nothing_debug_hooks): Likewise.
6697         (debug_nothing_uid): Remove.
6698         * doc/invoke.texi (-fenable-icf-debug): Remove.
6699         * common.opt (-fenable-icf-debug): Likewise.
6700
6701         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6702         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6703         call's MEM.  Handle functions returning aggregate through a hidden
6704         first pointer.  For virtual calls add clobbered pc to call arguments
6705         chain.
6706         * dwarf2out.c (gen_subprogram_die): Emit
6707         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6708         can't be emitted.
6709
6710         PR debug/45882
6711         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6712         * rtl.h (ENTRY_VALUE_EXP): Define.
6713         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6714         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6715         * print-rtl.c (print_rtx): Likewise.
6716         * gengtype.c (adjust_field_rtx_def): Likewise.
6717         * var-tracking.c (vt_add_function_parameter): Adjust
6718         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6719         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6720         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6721         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6722         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6723
6724         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6725         Call var_location debug hook even on CALL_INSNs.
6726         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6727         * rtl.def (ENTRY_VALUE): New.
6728         * dwarf2out.c: Include cfglayout.h.
6729         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6730         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6731         (struct call_arg_loc_node): New type.
6732         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6733         tail_call_site_count): New variables.
6734         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6735         DW_TAG_GNU_call_site_parameter.
6736         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6737         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6738         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6739         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6740         and DW_AT_GNU_all_source_call_sites.
6741         (mem_loc_descriptor): Handle ENTRY_VALUE.
6742         (add_src_coords_attributes): Don't add enything if
6743         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6744         (dwarf2out_abstract_function): Save and clear call_arg_location,
6745         call_site_count and tail_call_site_count around dwarf2out_decl call.
6746         (gen_call_site_die): New function.
6747         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6748         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6749         (dwarf2out_function_decl): Clear call_arg_locations,
6750         call_arg_loc_last, set call_site_count and tail_call_site_count
6751         to -1 and free block_map.
6752         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6753         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6754         followed by any real instructions.
6755         (dwarf2out_begin_function): Set call_site_count and
6756         tail_call_site_count to 0.
6757         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6758         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6759         attempt to force a DIE for it and worst case remove the attribute.
6760         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6761         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6762         the decl itself.
6763         * var-tracking.c: Include tm_p.h.
6764         (vt_stack_adjustments): For calls call note_register_arguments.
6765         (argument_reg_set): New variable.
6766         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6767         ensure the VALUE is resolved.
6768         (call_arguments): New variable.
6769         (prepare_call_arguments): New function.
6770         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6771         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6772         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6773         always use the best expression.
6774         (vt_expand_loc): Add ignore_cur_loc argument.
6775         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6776         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6777         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6778         note for all calls.
6779         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6780         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6781         argument.  Don't call cselib_preserve_only_values and
6782         cselib_reset_table.
6783         (note_register_arguments): New function.
6784         (vt_initialize): Compute argument_reg_set.  Call
6785         vt_add_function_parameters before processing basic blocks instead of
6786         afterwards.  For calls call prepare_call_arguments before calling
6787         cselib_process_insn.
6788         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6789         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6790         (var-tracking.o): Depend on $(TM_P_H).
6791         * cfglayout.h (insn_scope): New prototype.
6792         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6793         * cfglayout.c (insn_scope): No longer static.
6794         * insn-notes.def (CALL_ARG_LOCATION): New.
6795         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6796         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6797         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6798         nothing for DECL_EXTERNAL BLOCK_VARS.
6799
6800 2011-03-16  Alan Modra  <amodra@gmail.com>
6801
6802         PR target/45844
6803         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6804         create invalid offset address for vsx splat insn.
6805         * config/rs6000/predicates.md (splat_input_operand): New.
6806         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6807
6808 2011-03-15  Xinliang David Li  <davidxl@google.com>
6809
6810         PR c/47837
6811         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6812         (normalize_preds): New function.
6813         (is_use_properly_guarded): Normalize def predicates.
6814
6815 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6816
6817         PR target/46788
6818         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6819         in the output template.
6820
6821 2011-03-15  Richard Guenther  <rguenther@suse.de>
6822
6823         PR middle-end/47650
6824         * tree-pretty-print.c (dump_function_declaration): Properly
6825         dump unprototyped and varargs function types.
6826
6827 2011-03-15  Richard Guenther  <rguenther@suse.de>
6828
6829         PR tree-optimization/13954
6830         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6831         and friends.
6832
6833 2011-03-15  Richard Guenther  <rguenther@suse.de>
6834
6835         PR tree-optimization/48037
6836         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6837         selects into BIT_FIELD_REFs.
6838         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6839         vector select.
6840
6841 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6842
6843         PR tree-optimization/48129
6844         * builtins.c (fold_builtin_snprintf): Convert to type of
6845         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6846         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6847
6848 2011-03-15  Richard Guenther  <rguenther@suse.de>
6849
6850         PR tree-optimization/41490
6851         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6852         value but with VUSE.
6853         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6854         return statements.
6855         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6856         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6857         * tree-tailcall.c (find_tail_calls): Ignore returns.
6858
6859 2011-03-15  Richard Guenther  <rguenther@suse.de>
6860
6861         PR middle-end/48031
6862         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6863         or variable-indexed array accesses when in gimple form.
6864
6865 2011-03-15  Richard Guenther  <rguenther@suse.de>
6866
6867         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6868
6869 2011-03-15  Alan Modra  <amodra@gmail.com>
6870
6871         PR target/48032
6872         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6873         presume symbol_refs without a symbol_ref_decl are suitably
6874         aligned, nor other trees we may see here.  Handle anchor symbols.
6875         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6876         Check cmodel=medium addresses.  Adjust all calls.
6877         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6878         creating cmodel=medium optimized access to locals.
6879         * config/rs6000/constraints.md (R): Pass QImode to
6880         legitimate_constant_pool_address_p.
6881         * config/rs6000/predicates.md (input_operand): Pass mode to
6882         legitimate_constant_pool_address_p.
6883         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6884         Update prototype.
6885
6886 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6887
6888         PR target/48053
6889         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6890         64-bit constants being loaded into registers other than GPRs such
6891         as loading 0 into a VSX register.
6892
6893 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6894
6895         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6896
6897 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6898
6899         PR middle-end/47917
6900         * builtins.c (fold_builtin_snprintf): New function.
6901         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6902         (fold_builtin_4): Likewise.
6903
6904         PR middle-end/38878
6905         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6906         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6907         and C - X == X also strip nops from +/-/p+ operand.
6908         When optimizing -X == C, fold C to arg0's type.
6909
6910         PR debug/47946
6911         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6912         emit it as add_AT_int instead of add_AT_unsigned.
6913
6914 2011-03-14  Tom Tromey  <tromey@redhat.com>
6915
6916         * unwind-dw2.c: Include sys/sdt.h if it exists.
6917         (_Unwind_DebugHook): Use STAP_PROBE2.
6918         * config.in, configure: Rebuild.
6919         * configure.ac: Check for sys/sdt.h.
6920
6921 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
6922
6923         * config/i386/i386.md (ROUND_FLOOR): New constant.
6924         (ROUND_CEIL): Ditto.
6925         (ROUND_TRUNC): Ditto.
6926         (ROUND_MXCSR): Ditto.
6927         (ROUND_NO_EXC): Ditto.
6928         (rint<mode>2): Use new defines instead of numerical constants.
6929         (floor<mode>2): Ditto.
6930         (ceil<mode>2): Ditto.
6931         (btrunc<mode>2): Ditto.
6932         * config/i386/i386-builtin-types.def: Define ROUND function type
6933         aliases.
6934         * config/i386/i386.c (enum ix86_builtins): Add
6935         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6936         (struct builtin_description): Add
6937         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6938         (ix86_expand_sse_round): New static function.
6939         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6940         function types.
6941         (ix86_builtin_vectorized_function): Handle
6942         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6943
6944 2011-03-14  Tom Tromey  <tromey@redhat.com>
6945
6946         * c-parser.c (c_parser_asm_string_literal): Clear
6947         warn_overlength_strings.
6948
6949 2011-03-14  Tom Tromey  <tromey@redhat.com>
6950
6951         * c-parser.c (disable_extension_diagnostics): Save
6952         warn_overlength_strings.
6953         (restore_extension_diagnostics): Restore warn_overlength_strings.
6954
6955 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6956
6957         * BASE-VER: Change to 4.7.0.
6958
6959 2011-03-14  Richard Guenther  <rguenther@suse.de>
6960
6961         PR middle-end/48098
6962         * tree.c (build_vector_from_val): Adjust assert to requirements
6963         and reality.
6964
6965 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6966
6967         PR bootstrap/48102
6968         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6969
6970 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6971
6972         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6973         terms of target_flags_explicit. Adjust copyright year.
6974
6975         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6976         * config/rs6000/t-freebsd: New file. Add override for
6977         LIB2FUNCS_EXTRA.
6978
6979 2011-03-13  Chris Demetriou  <cgd@google.com>
6980
6981         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6982         (-fno-diagnostics-show-option): this, to reflect current default.
6983         (-Werror=): Update text about -fno-diagnostics-show-option.
6984
6985 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
6986
6987         PR target/48053
6988         * config/rs6000/predicates.md (easy_vector_constant_add_self,
6989         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
6990         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
6991         mode is not V2DImode or V2DFmode.
6992         (vspltis_constant): Do not handle V2DImode and V2DFmode.
6993         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
6994         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
6995         registers to 0.
6996         (movdi_internal64): Likewise.
6997
6998 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
6999
7000         PR tree-optimization/47127
7001         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7002         parameter.
7003         (set_cloog_options): Same.
7004         (scop_to_clast): Same.
7005         (print_clast_stmt): Do not call cloog_state_malloc and
7006         cloog_state_free.
7007         (print_generated_program): Same.
7008         (gloog): Same.
7009         * graphite-clast-to-gimple.h (cloog_state): Declared.
7010         (scop_to_clast): Adjust declaration.
7011         * graphite.c (cloog_state): Defined here.
7012         (graphite_initialize): Call cloog_state_malloc.
7013         (graphite_finalize): Call cloog_state_free.
7014
7015 2011-03-11  Jason Merrill  <jason@redhat.com>
7016
7017         * attribs.c (lookup_attribute_spec): Take const_tree.
7018         * tree.h: Adjust.
7019
7020 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7021
7022         * config/sparc/sparc.c (sparc_option_override): Use
7023         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7024
7025 2011-03-11  Richard Guenther  <rguenther@suse.de>
7026
7027         PR tree-optimization/48067
7028         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7029         multiplication result will be only used once on the target
7030         stmt.
7031
7032 2011-03-11  Richard Guenther  <rguenther@suse.de>
7033
7034         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7035
7036 2011-03-11  Richard Guenther  <rguenther@suse.de>
7037
7038         PR lto/48073
7039         * tree.c (find_decls_types_r): Do not walk types only reachable
7040         from IDENTIFIER_NODEs.
7041
7042 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7043
7044         PR middle-end/48044
7045         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7046         all vnode->force_output nodes as needed.
7047
7048 2011-03-11  Jason Merrill  <jason@redhat.com>
7049
7050         PR c++/48069
7051         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7052         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7053
7054 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7055
7056         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7057         cgraph_node.
7058
7059 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7060
7061         PR tree-optimization/48063
7062         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7063         inline functions called once if !tree_can_inline_p (node->callers).
7064
7065 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7066
7067         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7068         extra_objs.
7069         * config/score/score3.c: Delete.
7070         * config/score/score3.h: Delete.
7071         * config/score/mul-div.S: Delete.
7072         * config/score/sfp-machine.h: Add new file.
7073         * config/score/constraints.md: Add new file.
7074         * config/score/t-score-softfp: Add new file.
7075         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7076         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7077         (score7_extra_constraint): Delete.
7078         (score7_option_override): Remove unused code.
7079         * config/score/score.c: Remove score3 and score5 define and code.
7080         * config/score/score.h: Remove score3 and score5 define and code.
7081         * config/score/score.md: Remove score3 template and unusual insn.
7082         * config/score/score.opt: Remove score3 and score5 options.
7083
7084 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7085
7086         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7087         when _HPUX_SOURCE is defined.
7088         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7089
7090 2011-03-10  Jason Merrill  <jason@redhat.com>
7091
7092         PR c++/48029
7093         * stor-layout.c (layout_type): Don't set structural equality
7094         on arrays of incomplete type.
7095         * tree.c (type_hash_eq): Handle comparing them properly.
7096
7097 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7098
7099         PR debug/48043
7100         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7101         result mode matches original rtl mode.
7102
7103 2011-03-10  Nick Clifton  <nickc@redhat.com>
7104
7105         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7106         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7107
7108 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7109
7110         PR rtl-optimization/47866
7111         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7112         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7113         if target wasn't scalar.
7114         * function.c (assign_stack_temp_for_type): Assert that neither
7115         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7116         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7117         macro.
7118         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7119
7120 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7121
7122         * config/s390/s390-protos.h (s390_label_align): New prototype.
7123         * config/s390/s390.c (s390_label_align): New function.
7124         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7125
7126 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7127
7128         PR target/47755
7129         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7130         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7131         (output_vec_const_move): Ditto.
7132
7133 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7134
7135         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7136         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7137         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7138         Change 'rclass' argument and result type to reg_class_t.
7139         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7140
7141 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7142
7143         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7144         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7145         (TARGET_MEMORY_MOVE_COST): Define.
7146         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7147
7148 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7149
7150         PR debug/47881
7151         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7152         removed anything.
7153
7154         PR tree-optimization/48022
7155         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7156         for EQ/NE_EXPR.
7157
7158 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7159
7160         PR debug/47991
7161         * var-tracking.c (find_use_val): Return NULL for
7162         cui->sets && cui->store_p BLKmode MEMs.
7163
7164 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7165
7166         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7167         Remove.
7168         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7169         xstormy16_print_operand_address): Remove.
7170         * config/stormy16/stormy16.c (xstormy16_print_operand,
7171         xstormy16_print_operand_address): Make static.
7172         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7173
7174 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7175
7176         PR target/47862
7177         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7178         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7179         before definition.
7180
7181 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7182
7183         PR bootstrap/48000
7184         * cfgloopmanip.c (fix_bb_placements): Return immediately
7185         if FROM is BASE_LOOP's header.
7186
7187 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7188
7189         * gimplify.c (gimplify_function_tree): Fix building calls
7190         to __builtin_return_address.
7191
7192 2011-03-07  Alan Modra  <amodra@gmail.com>
7193
7194         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7195         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7196         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7197         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7198         return_mode args.
7199         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7200         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7201         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7202         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7203         * config/rs6000/rs6000.c
7204         (rs6000_elf_end_indicate_exec_stack): Rename to..
7205         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7206         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7207         (rs6000_file_start): ..here.
7208         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7209         file scope variables.
7210         (call_ABI_of_interest): New function.
7211         (init_cumulative_args): Set above vars when function return value
7212         is a float, vector, or small struct.
7213         (rs6000_function_arg_advance_1): Likewise for function args.
7214         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7215         references float args.
7216
7217 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7218
7219         * doc/cfg.texi: Remove "See" before @ref.
7220         * doc/invoke.texi: Likewise.
7221
7222 2011-03-05  Jason Merrill  <jason@redhat.com>
7223
7224         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7225
7226 2011-03-05  Anthony Green  <green@moxielogic.com>
7227
7228         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7229
7230 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7231
7232         PR rtl-optimization/47899
7233         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7234         to flow_loop_nested_p when moving the loop upward.
7235
7236 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7237
7238         PR target/47719
7239         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7240
7241 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7242
7243         PR tree-optimization/47967
7244         * ipa-cp.c (build_const_val): Return NULL instead of creating
7245         VIEW_CONVERT_EXPR for mismatching sizes.
7246         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7247         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7248         give up on versioning.
7249
7250 2011-03-05  Alan Modra  <amodra@gmail.com>
7251
7252         PR target/47986
7253         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7254         full cmodel medium/large lo_sum + high addresses.
7255
7256 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7257
7258         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7259         pool references in UNSPEC_LTREL_OFFSET.
7260
7261 2011-03-04  Jan Hubicka  <jh@suse.cz>
7262
7263         PR lto/47497
7264         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7265         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7266         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7267         Add node pointers.
7268         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7269         cgraph_add_thunk): Add node pointers.
7270         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7271         associated to right node.
7272         (input_node): Update use of cgraph_same_body_alias
7273         and cgraph_add_thunk.
7274
7275 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7276
7277         * config/i386/i386.opt (mprefer-avx128): New flag.
7278         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7279         modes when the flag -mprefer-avx128 is on.
7280
7281 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7282
7283         * dwarf2out.c (compare_loc_operands): Fix address handling.
7284
7285 2011-03-04  Alan Modra  <amodra@gmail.com>
7286
7287         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7288
7289 2011-03-04  Richard Guenther  <rguenther@suse.de>
7290
7291         PR middle-end/47968
7292         * expmed.c (extract_bit_field_1): Prefer vector modes that
7293         vec_extract patterns can handle.
7294
7295 2011-03-04  Richard Guenther  <rguenther@suse.de>
7296
7297         PR middle-end/47975
7298         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7299
7300 2011-03-04  Richard Henderson  <rth@redhat.com>
7301
7302         * explow.c (emit_stack_save): Remove 'after' parameter.
7303         (emit_stack_restore): Likewise.
7304         * expr.h: Update to match.
7305         * builtins.c, calls.c, stmt.c: Likewise.
7306         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7307         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7308         * function.c (expand_function_end): Insert the emit_stack_save
7309         sequence before parm_birth_insn instead of after.
7310
7311 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7312
7313         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7314         (ssse3_pmaddubsw128): Ditto.
7315         (ssse3_pmaddubsw): Ditto.
7316
7317 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7318
7319         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7320
7321 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7322
7323         PR c/47963
7324         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7325         on TYPE_SIZE_UNIT if it is a DECL.
7326
7327         PR debug/47283
7328         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7329         first operand is not is_gimple_mem_ref_addr, try to fold it.
7330         If the operand still isn't is_gimple_mem_ref_addr, clear
7331         MEM_EXPR on op0.
7332
7333 2011-03-03  Richard Guenther  <rguenther@suse.de>
7334
7335         PR middle-end/47283
7336         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7337         match comment.
7338         (refs_may_alias_p_1): For release branches return true if
7339         we are confused by our input.
7340
7341 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7342
7343         * config/s390/s390.c (s390_function_value): Rename to ...
7344         (s390_function_and_libcall_value): ... this.
7345         (s390_function_value): New function.
7346         (s390_libcall_value): New function.
7347         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7348         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7349         target macro definitions.
7350         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7351
7352 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7353
7354         * config/i386/freebsd64.h (CC1_SPEC): Define.
7355         * config/i386/linux64.h (CC1_SPEC): Define.
7356         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7357
7358 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7359
7360         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7361         Remove.
7362         * config/stormy16/stormy16.c: Include reload.h.
7363         (xstormy16_memory_move_cost): New function.
7364         (TARGET_MEMORY_MOVE_COST): Define.
7365
7366 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7367
7368         PR rtl-optimization/47925
7369         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7370         with side effects.  Remove the more-specific check for volatile asms.
7371
7372 2011-03-02  Alan Modra  <amodra@gmail.com>
7373
7374         PR target/47935
7375         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7376         toc relative addresses for valid offsets.
7377
7378 2011-03-01  Richard Guenther  <rguenther@suse.de>
7379
7380         PR tree-optimization/47890
7381         * tree-vect-loop.c (get_initial_def_for_induction): Set
7382         related stmt properly.
7383
7384 2011-03-01  Richard Guenther  <rguenther@suse.de>
7385
7386         PR lto/47924
7387         * lto-streamer.c (lto_record_common_node): Also register
7388         the canonical type.
7389
7390 2011-03-01  Richard Guenther  <rguenther@suse.de>
7391
7392         PR lto/46911
7393         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7394         Do not stream DECL_ABSTRACT_ORIGIN.
7395         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7396         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7397         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7398         Do not stream DECL_ABSTRACT_ORIGIN.
7399         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7400         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7401
7402 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7403
7404         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7405         FUNCTION_VALUE_REGNO_P): Remove.
7406         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7407         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7408         Add 'outgoing' argument.
7409         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7410         function.
7411         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7412         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7413
7414 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7415
7416         PR debug/28047
7417         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7418         (lookup_filename): Likewise.
7419         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7420
7421 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7422             Jakub Jelinek  <jakub@redhat.com>
7423
7424         PR middle-end/47893
7425         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7426         (assign_stack_local_1): Change last argument type to int.
7427         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7428         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7429         don't record padding space into frame_space_list nor use those areas.
7430         (assign_stack_local): Adjust caller.
7431         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7432         of assign_stack_local, pass 0 as last argument.
7433         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7434         callers.
7435
7436 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7437
7438         PR debug/47283
7439         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7440         Use target address_mode and pointer_mode hooks instead of hardcoded
7441         Pmode and ptr_mode.  Handle some simple cases of extending if
7442         POINTERS_EXTEND_UNSIGNED < 0.
7443         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7444         Call convert_debug_memory_address.
7445         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7446         convert_debug_memory_address.
7447
7448         PR middle-end/46790
7449         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7450         * configure: Regenerated.
7451         * config.in: Regenerated.
7452         * varasm.c (default_function_section): Return NULL
7453         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7454
7455 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7456
7457         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7458         the description to match the printed values.
7459
7460 2011-02-28  Richard Guenther  <rguenther@suse.de>
7461
7462         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7463         of the copied scope tree.
7464
7465 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7466
7467         * doc/extend.texi (Function Attributes): Avoid deeply (and
7468         wrongly) nested tables.
7469
7470 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7471
7472         PR middle-end/47903
7473         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7474         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7475         r isn't op0 nor op1.
7476
7477 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7478
7479         * config/avr/avr.md: Remove magic comment for emacs.
7480
7481 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7482
7483         PR target/45261
7484         * config/avr/avr.c (avr_option_override): Use error on bad options.
7485         (avr_help): New function.
7486         (TARGET_HELP): Define.
7487
7488 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7489
7490         PR target/42240
7491         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7492         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7493
7494 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7495
7496         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7497         (ARM Options): Ditto.
7498         (i386 and x86-64 Options): Ditto.
7499         (RX Options): Ditto.
7500         (SPARC Options): Ditto.
7501
7502 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7503
7504         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7505         FreeBSD 6 and later.  Generally use cpu generic.
7506
7507 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7508
7509         * doc/cpp.texi: Update copyright years.
7510
7511 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7512
7513         PR target/46898
7514         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7515
7516 2011-02-25  Jon Beniston  <jon@beniston.com>
7517
7518         PR target/46898
7519         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7520         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7521         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7522         (lm32_block_move_inline): Add type cast to remove warning.
7523         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7524         (gen_int_relational): Move declarations to start of function.
7525
7526 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7527
7528         PR tree-optimization/45470
7529         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7530         can throw internally only.
7531         * tree-vect-stmts.c (vectorizable_call): Likewise.
7532
7533 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7534
7535         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7536         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7537         * config/stormy16/stormy16-protos.h
7538         (xstormy16_preferred_reload_class): Remove.
7539         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7540         static. Change 'rclass' argument and return type to reg_class_t.
7541         (TARGET_PREFERRED_RELOAD_CLASS,
7542         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7543
7544 2011-02-24  Richard Guenther  <rguenther@suse.de>
7545
7546         * lto-streamer-in.c (input_bb): Do not find referenced vars
7547         in debug statements.
7548
7549 2011-02-23  Jason Merrill  <jason@redhat.com>
7550
7551         * common.opt (fabi-version): Document v5 and v6.
7552
7553 2011-02-23  Richard Guenther  <rguenther@suse.de>
7554
7555         PR tree-optimization/47849
7556         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7557
7558 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7559
7560         * opts-common.c (decode_cmdline_option): Print empty string
7561         argument as "" in decoded->orig_option_with_args_text.
7562         * gcc.c (execute): Print empty string argument as ""
7563         in the verbose output.
7564         (do_spec_1): Keep empty string argument.
7565
7566 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7567
7568         * config.gcc: Declare score-* and crx-* obsolete.
7569
7570 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7571
7572         PR rtl-optimization/47763
7573         * web.c (web_main): Ignore naked clobber when replacing register.
7574
7575 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7576
7577         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7578         Remove.
7579
7580 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7581
7582         PR doc/47848
7583         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7584
7585 2011-02-22  Mike Stump  <mikestump@comcast.net>
7586
7587         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7588         assembler.
7589         * configure: Regenerate.
7590
7591 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7592
7593         PR rtl-optimization/46002
7594         * ira-color.c (update_copy_costs): Change class intersection
7595         test to reg_class_contents[] test of 'hard_regno'.
7596
7597 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7598
7599         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7600         than Driver option.
7601         * config/hpux11.opt (mt): Likewise.
7602         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7603         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7604         * config/vax/elf.opt (mno-asm-pic): Likewise.
7605         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7606
7607 2011-02-21  Mike Stump  <mikestump@comcast.net>
7608
7609         PR target/47822
7610         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7611         tree so we can get save the type.
7612         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7613         for CFString instead of trying to use past the end of the builtins.
7614         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7615         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7616         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7617         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7618         Rename to darwin_builtin_cfstring.
7619         (darwin_init_cfstring_builtins): Return the built type.
7620
7621 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7622
7623         PR target/47840
7624         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7625         (_mm256_insert_epi64): Use _mm_insert_epi64.
7626
7627 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7628
7629         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7630         * config/stormy16/stormy16-protos.h
7631         (xstormy16_mode_dependent_address_p): Remove.
7632         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7633         Make static. Change return type to bool. Change argument type to
7634         const_rtx. Remove dead code.
7635         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7636
7637 2011-02-21  Richard Guenther  <rguenther@suse.de>
7638
7639         PR lto/47820
7640         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7641         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7642         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7643         TUs context.
7644         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7645         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7646
7647 2011-02-20  Richard Guenther  <rguenther@suse.de>
7648
7649         PR lto/47822
7650         * tree.c (free_lang_data_in_decl): Clean builtins from
7651         the TU decl BLOCK_VARS.
7652
7653 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7654
7655         PR debug/47620
7656         PR debug/47630
7657         * haifa-sched.c (fix_tick_ready): Skip tick computation
7658         for debug insns.
7659
7660 2011-02-19  Richard Guenther  <rguenther@suse.de>
7661
7662         PR lto/47647
7663         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7664         Remove lazy BLOCK_VARS streaming.
7665         (lto_input_ts_block_tree_pointers): Likewise.
7666         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7667
7668 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7669
7670         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7671
7672 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7673
7674         * config/i386/biarch32.h, config/i386/mach.h,
7675         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7676
7677 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7678
7679         PR target/47800
7680         * config/i386/i386.md (peephole2 for shift and plus): Use
7681         operands[1] original mode in the first insn.
7682
7683 2011-02-18  Mike Stump  <mikestump@comcast.net>
7684
7685         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7686
7687 2011-02-18  Jan Hubicka  <jh@suse.cz>
7688
7689         PR middle-end/47788
7690         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7691         to zero when the function is not inlinable at all.
7692
7693 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7694
7695         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7696         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7697         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7698         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7699         * config/pa/t-pa64: Likewise.
7700         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7701
7702 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7703
7704         PR driver/47787
7705         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7706
7707 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7708
7709         PR target/47792
7710         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7711
7712 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7713
7714         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7715         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7716         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7717         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7718         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7719         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7720         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7721         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7722         m32r_legitimate_address_p): New functions.
7723         * config/m32r/constraints.md (constraint "S"): Don't use
7724         STORE_PREINC_PREDEC_P.
7725         (constraint "U"): Don't use LOAD_POSTINC_P.
7726
7727 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7728
7729         PR rtl-optimization/46178
7730         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7731         compute ira_hard_regno_cover_class[].
7732
7733 2011-02-18  Richard Guenther  <rguenther@suse.de>
7734
7735         PR lto/47798
7736         * lto-streamer.h (lto_global_var_decls): Declare.
7737         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7738         statics for global var processing.
7739
7740 2011-02-18  Richard Guenther  <rguenther@suse.de>
7741
7742         PR tree-optimization/47737
7743         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7744         edge dominance check.
7745
7746 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7747
7748         PR debug/47780
7749         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7750         avoid invalid rtx sharing.
7751
7752 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7753
7754         * doc/cpp.texi (Obsolete Features): Add background on the
7755         origin of assertions.
7756
7757 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7758
7759         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7760         objc_abi == 2.
7761         * config/darwin.c (output_objc_section_asm_op): Added support for
7762         ABI v1 and v2.
7763         (is_objc_metadata): New.
7764         (darwin_objc2_section): New.
7765         (darwin_objc1_section): New.
7766         (machopic_select_section): Added support for ABI v1 and v2.
7767         (darwin_emit_objc_zeroed): New.
7768         (darwin_output_aligned_bss): Detect objc metadata and treat it
7769         appropriately.
7770         (darwin_asm_output_aligned_decl_common): Same.
7771         (darwin_asm_output_aligned_decl_local): Same.
7772         * config/darwin-sections.def: Updated for ABI v1 and v2.
7773         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7774         compiling Objective-C code for the NeXT runtime, default to using
7775         ABI version 0 for 32-bit, and version 2 for 64-bit.
7776
7777 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7778
7779         * common.opt (optimize_fast): New Variable.
7780         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7781         instead of local variable ofast.
7782
7783 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7784
7785         * doc/invoke.texi (fobjc-abi-version): Documented.
7786         (fobjc-nilcheck): Documented.
7787         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7788         version.
7789
7790 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7791
7792         PR driver/47390
7793         * common.opt (export-dynamic): New Driver option.
7794         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7795
7796 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7797
7798         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7799
7800 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7801             Jan Hubicka  <jh@suse.cz>
7802
7803         PR debug/47106
7804         PR debug/47402
7805         * cfgexpand.c (account_used_vars_for_block): Remove.
7806         (estimated_stack_frame_size): Use referenced vars.
7807         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7808         that were referenced in the original function.  Test src_fn
7809         rather than cfun.  Drop redundant get_var_ann.
7810         (setup_one_parameter): Drop redundant get_var_ann.
7811         (declare_return_variable): Likewise.
7812         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7813         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7814         * ipa-inline.c (compute_inline_parameters): Do not compute
7815         disregard_inline_limits here.
7816         (compute_inlinable_for_current, pass_inlinable): New.
7817         (pass_inline_parameters): Require PROP_referenced_vars.
7818         * cgraphunit.c (cgraph_process_new_functions): Don't run
7819         compute_inline_parameters explicitly unless function is in SSA form.
7820         (cgraph_analyze_function): Set .disregard_inline_limits.
7821         * tree-sra.c (convert_callers): Compute inliner parameters
7822         only for functions already in SSA form.
7823
7824 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7825
7826         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7827         -mlittle-endian-data.
7828
7829 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7830
7831         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7832         -mno-fpu, not -fpu and -no-fpu.
7833         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7834         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7835
7836 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7837
7838         PR target/43653
7839         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7840         input reload with PLUS RTX.
7841
7842 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7843
7844         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7845         of InverseVar(MDMX).
7846
7847 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7848
7849         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7850         --m4-340.
7851
7852 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7853
7854         * config/mn10300/mn10300.opt (mno-crt0): New.
7855
7856 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7857
7858         * config/m68k/uclinux.opt (static-libc): New Driver option.
7859
7860 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7861
7862         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7863
7864 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7865
7866         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7867         %{muser-extend-enabled}.
7868
7869 2011-02-16  Richard Guenther  <rguenther@suse.de>
7870
7871         PR tree-optimization/47738
7872         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7873         the TODO from tree_predictive_commoning.
7874
7875 2011-02-15  Jeff Law  <law@redhat.com>
7876
7877         Revert
7878         2011-01-25  Jeff Law  <law@redhat.com>
7879
7880         PR rtl-optimization/37273
7881         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7882         handle them like argument loads from stack slots.  Do not double
7883         count memory for memory constants and argument loads from stack slots.
7884
7885 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7886
7887         PR middle-end/47725
7888         * combine.c (cant_combine_insn_p): Revert the last change.
7889
7890 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7891
7892         PR target/47755
7893         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7894         mode for vector constants.  Remove code that checks for TImode.
7895
7896 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7897
7898         PR debug/47106
7899         PR debug/47402
7900         * cgraph.h (compute_inline_parameters): Return void.
7901         * ipa-inline.c (compute_inline_parameters): Adjust.
7902
7903 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7904
7905         PR debug/47106
7906         PR debug/47402
7907         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7908         rather than decl.
7909         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7910         * ipa-inline.c (compute_inline_parameters): Adjust.
7911
7912 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7913
7914         PR debug/47106
7915         PR debug/47402
7916         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7917         Adjust all users.  Pass FN to...
7918         * tree-flow-inline.h (first_referenced_var): ... this.  Add
7919         fn argument.
7920         * ipa-struct-reorg.c: Adjust.
7921         * tree-dfa.c: Adjust.
7922         * tree-into-ssa.c: Adjust.
7923         * tree-sra.c: Adjust.
7924         * tree-ssa-alias.c: Adjust.
7925         * tree-ssa-live.c: Adjust.
7926         * tree-ssa.c: Adjust.
7927         * tree-ssanames.c: Adjust.
7928         * tree-tailcall.c: Adjust.
7929
7930 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7931
7932         PR debug/47106
7933         PR debug/47402
7934         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7935         Adjust all callers.
7936         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7937         * tree-flow-inline.h: Adjust.
7938         * gimple-pretty-print.c: Adjust.
7939         * tree-into-ssa.c: Adjust.
7940         * tree-ssa.c: Adjust.
7941         * cfgexpand.c: Adjust.
7942
7943 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7944
7945         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7946         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7947         (EXTRA_CONSTRAINT): Delete.
7948         * config/iq2000/constraints.md: New file.
7949         * config/iq2000/iq2000.md: Include it.
7950         (define_insn ""): Delete.
7951         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7952         unsupported constraint letters from patterns.
7953         (call_value, call_value_internal1): Likewise.
7954         (call_value_multiple_internal1): Likewise.
7955
7956 2011-02-15  Nick Clifton  <nickc@redhat.com>
7957
7958         * config/mn10300/mn10300.c: Include tm-constrs.h.
7959         (struct liw_data): New data structure describing an LIW candidate
7960         instruction.
7961         (extract_bundle): Use struct liw_data.  Allow small integer
7962         operands for some instructions.
7963         (check_liw_constraints): Use struct liw_data.  Remove swapped
7964         parameter.  Add comments describing the checks.  Fix bug when
7965         assigning the source of liw1 to the source of liw2.
7966         (liw_candidate): Delete.  Code moved into extract_bundle.
7967         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7968         before swapping.
7969         * config/mn10300/predicates.md (liw_operand): New predicate.
7970         Allows registers and small integer constants.
7971         * config/mn10300/constraints.md (O): New constraint.  Accetps
7972         integers in the range -8 to +7 inclusive.
7973         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7974         for moving a small integer into a register.  Give this alternative
7975         LIW attributes.
7976         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7977         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7978         using the J,K,L and M constraints,
7979         (liw): Remove SI mode on second operands to allow for HI and QI
7980         mode values.
7981         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7982         instruction.
7983
7984 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7985
7986         PR middle-end/47725
7987         * combine.c (cant_combine_insn_p): Check zero/sign extended
7988         hard registers.
7989
7990 2011-02-15  Richard Guenther  <rguenther@suse.de>
7991
7992         PR tree-optimization/47743
7993         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
7994         for a non-type-compatible VN lookup bail out.
7995
7996 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7997
7998         * config/fr30/constraints.md: New file.
7999         * config/fr30/fr30.md: Include it.
8000         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8001         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8002         (EXTRA_CONSTRAINT): Delete.
8003
8004 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8005
8006         * config/frv/constraints.md: New file.
8007         * config/frv/predicates.md: Include it.
8008         * config/frv/frv.c (reg_class_from_letter): Delete.
8009         (frv_option_override): Don't initialize it.
8010         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8011         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8012         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8013         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8014         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8015         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8016         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8017         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8018         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8019         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8020         (REG_CLASS_FROM_CONSTRAINT): Delete.
8021
8022 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8023
8024         PR middle-end/47581
8025         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8026         if frame size is 0 in a leaf function.
8027
8028 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8029
8030         PR pch/14940
8031         * config/alpha/host-osf.c: New file.
8032         * config/alpha/x-osf: New file.
8033         * config.host (alpha*-dec-osf*): Use it.
8034
8035 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8036
8037         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8038         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8039         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8040         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8041         type to const_rtx.
8042         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8043
8044 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8045
8046         * config/stormy16/constraints.md: New file.
8047         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8048         Use satisfies_constraint_Q and satisfies_constraint_R.
8049         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8050         Delete.
8051         (xstormy16_legitiamte_address_p): Declare.
8052         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8053         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8054         (EXTRA_CONSTRAINT): Delete.
8055         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8056         Un-staticize.
8057         (xstormy16_extra_constraint_p): Delete.
8058
8059 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8060
8061         PR tree-optimization/46494
8062         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8063         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8064         (pass_rtl_loop_done): Add TODO_verify_flow.
8065         * fwprop.c (pass_rtl_fwprop): Likewise.
8066         * modulo-sched.c (pass_sms): Likewise.
8067         * tree-ssa-dom.c (pass_dominator): Likewise.
8068         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8069         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8070         (pass_tree_loop_done): Likewise.
8071         * tree-ssa-pre.c (execute_pre): Likewise.
8072         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8073         * tree-ssa-sink.c (pass_sink_code): Likewise.
8074         * tree-vrp.c (pass_vrp): Likewise.
8075
8076 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8077
8078         * config/v850/constraints.md: New file.
8079         * config/v850/v850.md: Include it.
8080         * config/v850/predicates.md (reg_or_0_operand): Use
8081         satisfies_constraint_G.
8082         (special_symbolref_operand): Use satisfies_constraint_K.
8083         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8084         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8085         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8086         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8087         (EXTRA_CONSTRAINT): Delete.
8088         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8089         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8090         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8091
8092 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8093
8094         PR target/47696
8095         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8096         description.
8097
8098 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8099
8100         * config/mcore/constraints.md: New file.
8101         * config/mcore/mcore.md: Include it.
8102         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8103         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8104         (REG_CLASS_FROM_LETTER): Delete.
8105         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8106         insn_const_int_ok_for_constraint.
8107         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8108         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8109         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8110         (EXTRA_CONSTRAINT): Delete.
8111
8112 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8113
8114         PR ada/41929
8115         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8116         (IS_SIGHANDLER): Define.
8117         (sparc64_is_sighandler): New function, split off from
8118         sparc64_fallback_frame_state.
8119         (sparc_is_sighandler): New function, split off from
8120         sparc_fallback_frame_state.
8121         (sparc64_fallback_frame_state): Merge with ...
8122         (sparc_fallback_frame_state): ... this into ...
8123         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8124         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8125         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8126         stack instead of hardcoded offsets.
8127
8128 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8129
8130         PR target/45808
8131         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8132
8133 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8134
8135         * configure: Regenerate.
8136
8137 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8138
8139         PR driver/45731
8140         * gcc.c (asm_options): Correct spec matching --target-help.
8141
8142 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8143
8144         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8145         to gimple call error.
8146
8147 2011-02-12  Mike Stump  <mikestump@comcast.net>
8148
8149         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8150         comments in backslash regions.
8151
8152 2011-02-12  Mike Stump  <mikestump@comcast.net>
8153             Jakub Jelinek  <jakub@redhat.com>
8154             Iain Sandoe  <iains@gcc.gnu.org>
8155
8156         PR target/47324
8157         * dwarf2out.c (output_cfa_loc): When required, apply the
8158         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8159         (output_loc_sequence): Likewise.
8160         (output_loc_operands_raw): Likewise.
8161         (output_loc_sequence_raw): Likewise.
8162         (output_cfa_loc): Likewise.
8163         (output_loc_list): Suppress register number adjustment when
8164         calling output_loc_sequence()
8165         (output_die): Likewise.
8166
8167 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8168
8169         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8170         Remove macros.
8171         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8172         xtensa_memory_move_cost): New functions.
8173         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8174
8175 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8176
8177         PR lto/47225
8178         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8179         in the current directory.
8180         * configure: Rebuilt.
8181
8182 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8183
8184         * config/darwin.c (darwin_override_options): Add a hunk missed
8185         from the commit of r168571.  Trim comment line lengths and
8186         correct indents of the preceding block.
8187
8188 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8189
8190         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8191         the switch.
8192
8193 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8194
8195         * common.opt (nostartfiles): New Driver option.
8196
8197 2011-02-11  Xinliang David Li  <davidxl@google.com>
8198
8199         PR tree-optimization/47707
8200         * tree-chrec.c (convert_affine_scev): Keep type precision.
8201
8202 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8203
8204         PR tree-optimization/47420
8205         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8206
8207 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8208
8209         PR rtl-optimization/47614
8210         * rtl.h (check_for_inc_dec): Declare.
8211         * dse.c (check_for_inc_dec): Externalize...
8212         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8213         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8214
8215 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8216
8217         PR driver/47678
8218         * gcc.c (main): Do not compile inputs if there were errors in
8219         option handling.
8220         * opts-common.c (read_cmdline_option): Check for wrong language
8221         after other error checks.
8222
8223 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8224
8225         * cgraph.c: Fix comment typos.
8226         * cgraph.h: Likewise.
8227         * cgraphunit.c: Likewise.
8228         * ipa-cp.c: Likewise.
8229         * ipa-inline.c: Likewise.
8230         * ipa-prop.c: Likewise.
8231         * ipa-pure-const.c: Likewise.
8232         * ipa-ref.c: Likewise.
8233         * ipa-reference.c: Likewise.
8234
8235 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8236
8237         PR debug/47684
8238         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8239
8240 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8241
8242         PR testsuite/47400
8243         * doc/sourcebuild.texi (Require Support): Document
8244         dg-require-ascii-locale.
8245
8246 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8247
8248         * doc/lto.texi (Write summary): Fix missing parentheses.
8249
8250 2011-02-10  DJ Delorie  <dj@redhat.com>
8251
8252         * config/m32c/m32c.c (m32c_option_override): Disable
8253         -fcombine-stack-adjustments until flag value tracking and compare
8254         optimization can be rewritten.
8255
8256 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8257
8258         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8259         PROCESSOR_POWER7.
8260         (PROCESSOR_DEFAULT64): Likewise.
8261
8262 2011-02-10  Richard Henderson  <rth@redhat.com>
8263
8264         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8265         change from 2011-02-03.
8266         * config/rx/rx.c (flags_from_code): Likewise.
8267         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8268         is valid, n/pz otherwise.
8269         (rx_select_cc_mode): Return CCmode if Y is not zero.
8270
8271 2011-02-10  Richard Guenther  <rguenther@suse.de>
8272
8273         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8274
8275 2011-02-10  Richard Guenther  <rguenther@suse.de>
8276
8277         PR tree-optimization/47677
8278         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8279
8280 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8281
8282         PR target/47665
8283         * combine.c (make_compound_operation): Only change shifts into
8284         multiplication for SCALAR_INT_MODE_P.
8285
8286 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8287
8288         PR testsuite/47622
8289         Revert
8290         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8291         PR debug/42631
8292         * web.c (entry_register): Don't clobber the number of the
8293         first uninitialized reference in used[].
8294
8295 2011-02-09  Richard Guenther  <rguenther@suse.de>
8296
8297         PR tree-optimization/47664
8298         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8299         all edges again.
8300
8301 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8302
8303         PR target/46481
8304         PR target/47032
8305         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8306         PROCESSOR_POWER7.
8307         (PROCESSOR_DEFAULT64): Same.
8308         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8309
8310 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8311
8312         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8313
8314 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8315
8316         PR middle-end/45505
8317         * tree-sra.c (struct access): New flags grp_scalar_read and
8318         grp_scalar_write.  Changed description of assignment read and write
8319         flags.
8320         (dump_access): Dump new flags, reorder all of them.
8321         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8322         to detect multiple scalar reads.
8323         (analyze_access_subtree): Use the new scalar read write flags instead
8324         of the old flags.  Adjusted comments.
8325
8326 2011-02-08  DJ Delorie  <dj@redhat.com>
8327
8328         PR target/47548
8329         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8330         patterns.
8331
8332 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8333
8334         * config/m68k/uclinux.opt: New.
8335         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8336
8337 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8338
8339         * config/cris/elf.opt (sim): New Driver option.
8340
8341 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8342
8343         * config/xtensa/elf.opt: New.
8344         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8345
8346 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8347
8348         * config/vax/elf.opt: New.
8349         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8350
8351 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8352
8353         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8354
8355 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8356
8357         * config/gnu-user.opt: New.
8358         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8359         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8360         *-*-uclinux*): Use gnu-user.opt.
8361
8362 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8363
8364         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8365         * config/i386/gnu.h (CPP_SPEC): Likewise.
8366
8367 2011-02-08  Ian Lance Taylor  <iant@google.com>
8368
8369         * common.opt (fcx-limited-range): Add SetByCombined flag.
8370         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8371         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8372         (fassociative-math, freciprocal-math): Likewise.
8373         (funsafe-math-optimizations): Likewise.
8374         * opth-gen.awk: Handle SetByCombined.
8375         * optc-gen.awk: Likewise.
8376         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8377         (set_unsafe_math_optimizations_flags): Likewise.
8378         * doc/options.texi (Option properties): Document SetByCombined.
8379
8380 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8381
8382         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8383         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8384         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8385         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8386         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8387
8388 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8389
8390         PR tree-optimization/46834
8391         PR tree-optimization/46994
8392         PR tree-optimization/46995
8393         * graphite-sese-to-poly.c (used_outside_reduction): New.
8394         (detect_commutative_reduction): Call used_outside_reduction.
8395         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8396         translate_scalar_reduction_to_array only when at least one
8397         loop-phi/close-phi tuple has been detected.
8398
8399 2011-02-08  Richard Guenther  <rguenther@suse.de>
8400
8401         PR middle-end/47639
8402         * tree-vect-generic.c (expand_vector_operations_1): Update
8403         stmts here ...
8404         (expand_vector_operations): ... not here.  Cleanup EH info
8405         and the CFG if required.
8406
8407 2011-02-08  Richard Guenther  <rguenther@suse.de>
8408
8409         PR tree-optimization/47641
8410         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8411         require type compatibility.
8412
8413 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8414
8415         * gimple-low.c (lower_function_body): Don't remove the location of
8416         the return statement here.
8417         (lower_gimple_return): Do it here instead but only if the return
8418         statement is actually used twice.
8419
8420 2011-02-08  Richard Guenther  <rguenther@suse.de>
8421
8422         PR tree-optimization/47632
8423         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8424         unused up_to_stmt parameter, return whether cfg-cleanup is
8425         necessary, remove EH info properly.
8426         (forward_propagate_into_gimple_cond): Adjust caller.
8427         (forward_propagate_into_cond): Likewise.
8428         (forward_propagate_comparison): Likewise.
8429         (tree_ssa_forward_propagate_single_use_vars): Make
8430         forward_propagate_comparison case similar to the two others.
8431
8432 2011-02-08  Nick Clifton  <nickc@redhat.com>
8433
8434         * config/mn10300/mn10300.opt (mliw): New command line option.
8435         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8436         (liw_bundling): New automaton.
8437         (liw): New attribute.
8438         (liw_op): New attribute.
8439         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8440         (movsi_internal): Add LIW attributes.
8441         (andsi3): Likewise.
8442         (iorsi3): Likewise.
8443         (xorsi3): Likewise.
8444         (addsi3): Separate register and immediate alternatives.
8445         Add LIW attributes.
8446         (subsi3): Likewise.
8447         (cmpsi): Likewise.
8448         (aslsi3): Likewise.
8449         (lshrsi3): Likewise.
8450         (ashrsi3): Likewise.
8451         (liw): New pattern.
8452         * config/mn10300/mn10300.c (liw_op_names): New
8453         (mn10300_print_operand): Handle 'W' operand descriptor.
8454         (extract_bundle): New function.
8455         (check_liw_constraints): New function.
8456         (liw_candidate): New function.
8457         (mn10300_bundle_liw): New function.
8458         (mn10300_reorg): New function.
8459         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8460         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8461         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8462         __LIW__ or __NO_LIW__.
8463         * doc/invoke.texi: Describe the -mliw command line option.
8464
8465 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8466
8467         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8468         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8469         pthread_mutex_unlock): Remove.
8470         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8471         * config/pa/t-pa64: Likewise.
8472         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8473         shared libc if not linking against libpthread.
8474         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8475
8476 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8477
8478         PR target/47558
8479         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8480         on 10.6 and later to ensure that we always use the unwinder from
8481         the system.  Only add -no_compact_unwind when tarteting darwin
8482         10.6 or later.
8483
8484 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8485
8486         PR target/46997
8487         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8488         (vec_interleave_lowv2sf): Ditto.
8489         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8490         (vec_extract_oddv2sf): Ditto.
8491
8492 2011-02-07  Mike Stump  <mikestump@comcast.net>
8493
8494         PR target/42333
8495         Add __ieee_divdc3 entry point.
8496         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8497         entry point.
8498         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8499         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8500         * config/darwin.c (darwin_rename_builtins): Add.
8501         * config/darwin-protos.h (darwin_rename_builtins): Add.
8502
8503 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8504
8505         PR target/47636
8506         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8507         for the condition.
8508
8509 2011-02-07  Mike Stump  <mikestump@comcast.net>
8510
8511         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8512
8513 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8514
8515         PR target/47534
8516         * config/avr/libgcc.S (exit): Move .endfunc
8517
8518 2011-02-07  Richard Guenther  <rguenther@suse.de>
8519
8520         PR tree-optimization/47615
8521         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8522         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8523         (run_scc_vn): Initialize it.
8524         (visit_reference_op_load): Use it.
8525         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8526
8527 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8528
8529         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8530         DImode trapping arithmetic libfuncs.
8531
8532 2011-02-07  Richard Guenther  <rguenther@suse.de>
8533
8534         PR tree-optimization/47621
8535         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8536         two duplicates ...
8537         (execute_update_addresses_taken): ... here.  Make it more
8538         conservative in what we accept.
8539
8540 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8541
8542         * config/sparc/freebsd.h (ASM_SPEC): Define.
8543         * config/sparc/vxworks.h (ASM_SPEC): Define.
8544
8545 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8546
8547         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8548
8549 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8550
8551         * doc/invoke.texi: Remove reference to compiler internals from
8552         user documentation.
8553
8554         * reg-notes.def: Remove REG_VALUE_PROFILE.
8555         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8556
8557 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8558
8559         PR middle-end/47610
8560         * varasm.c (default_section_type_flags): If decl is NULL,
8561         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8562
8563 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8564
8565         PR debug/42631
8566         * web.c (entry_register): Don't clobber the number of the
8567         first uninitialized reference in used[].
8568
8569 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8570
8571         PR tree-optimization/46194
8572         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8573         (build_classic_dist_vector_1): Do not represent classic distance
8574         vectors when the access functions are variating in different loops.
8575
8576 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8577
8578         * config/mips/iris6.opt: New.
8579         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8580
8581 2011-02-04  Richard Henderson  <rth@redhat.com>
8582             Steve Ellcey  <sje@cup.hp.com>
8583
8584         PR target/46997
8585         * config/ia64/predicates.md (mux1_brcst_element): New.
8586         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8587         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8588         (ia64_unpack_sign): New.
8589         (ia64_expand_unpack): Rewrite using new routines.
8590         (ia64_expand_widen_sum): Ditto.
8591         (ia64_expand_dot_prod_v8qi): Ditto.
8592         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8593         routines, add endian check.
8594         (pmpy2_even): Rename from pmpy2_r, add endian check.
8595         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8596         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8597         (vec_widen_smult_hi_v4hi): Ditto.
8598         (vec_widen_umult_lo_v4hi): Ditto.
8599         (vec_widen_umult_hi_v4hi): Ditto.
8600         (mulv2si3): Change endian checks.
8601         (sdot_prodv4hi): Rewrite with new calls.
8602         (udot_prodv4hi): New.
8603         (vec_pack_ssat_v4hi): Add endian check.
8604         (vec_pack_usat_v4hi): Ditto.
8605         (vec_pack_ssat_v2si): Ditto.
8606         (max1_even): Rename from max1_r, add endian check.
8607         (max1_odd): Rename from max1_l, add endian check.
8608         (*mux1_rev): Format change.
8609         (*mux1_mix): Ditto.
8610         (*mux1_shuf): Ditto.
8611         (*mux1_alt): Ditto.
8612         (*mux1_brcst_v8qi): Use new predicate.
8613         (vec_extract_evenv8qi): Remove endian check.
8614         (vec_extract_oddv8qi): Ditto.
8615         (vec_interleave_lowv4hi): Format change.
8616         (vec_interleave_highv4hi): Ditto.
8617         (mix2_even): Rename from mix2_r, add endian check.
8618         (mix2_odd): Rename from mux2_l, add endian check.
8619         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8620         (vec_extract_evenodd_helper): Format change.
8621         (vec_extract_evenv4hi): Remove endian check.
8622         (vec_extract_oddv4hi): Remove endian check.
8623         (vec_interleave_lowv2si): Format change.
8624         (vec_interleave_highv2si): Format change.
8625         (vec_initv2si): Remove endian check.
8626         (vecinit_v2si): Add endian check.
8627         (reduc_splus_v2sf): Add endian check.
8628         (reduc_smax_v2sf): Ditto.
8629         (reduc_smin_v2sf): Ditto.
8630         (vec_initv2sf): Remove endian check.
8631         (fpack): Add endian check.
8632         (fswap): Add endian check.
8633         (vec_interleave_highv2sf): Add endian check.
8634         (vec_interleave_lowv2sf): Add endian check.
8635         (fmix_lr): Add endian check.
8636         (vec_setv2sf): Format change.
8637         (*vec_extractv2sf_0_be): Use shift to extract operand.
8638         (*vec_extractv2sf_1_be): New.
8639         (vec_pack_trunc_v4hi): Add endian check.
8640         (vec_pack_trunc_v2si): Format change.
8641
8642 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8643
8644         PR inline-asm/23200
8645         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8646         do bb, locus and block comparison and disallow loads if it is not set.
8647         (stmt_is_replaceable_p): New function.
8648         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8649         callers.
8650         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8651         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8652         SSA_NAME_DEF_STMT.
8653         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8654
8655 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8656
8657         * config/rs6000/xilinx.opt: New.
8658         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8659
8660 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8661
8662         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8663
8664 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8665
8666         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8667         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8668         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8669         secondary_reload_info, xtensa_secondary_reload): Remove.
8670         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8671         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8672         (xtensa_preferred_reload_class): Make static. Change return and
8673         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8674         Use CONST_DOUBLE_P predicate.
8675         (xtensa_preferred_output_reload_class): New function.
8676         (xtensa_secondary_reload): Make static.
8677
8678 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8679
8680         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8681         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8682         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8683
8684 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8685
8686         PR middle-end/31490
8687         * output.h (SECTION_RELRO): Define.
8688         (SECTION_MACH_DEP): Adjust.
8689         (get_variable_section): New prototype.
8690         * varpool.c (varpool_finalize_named_section_flags): New function.
8691         (varpool_assemble_pending_decls): Call it.
8692         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8693         * cgraphunit.c (cgraph_output_in_order): Call
8694         varpool_finalize_named_section_flags.
8695         * varasm.c (get_section): Allow section flags conflicts between
8696         relro and read-only sections if the section hasn't been declared yet.
8697         Set SECTION_OVERRIDE after diagnosing section type conflict.
8698         (get_variable_section): No longer static.
8699         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8700         readonly sections that need relocations.
8701         (decl_readonly_section_1): New function.
8702         (decl_readonly_section): Use it.
8703
8704         Revert:
8705         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8706                     Steve Ellcey  <sje@cup.hp.com>
8707
8708         PR middle-end/31490
8709         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8710         if section attribute used.
8711
8712 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8713
8714         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8715         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8716         (darwin_init_sections): Remove assertion.
8717
8718 2011-02-03  Nick Clifton  <nickc@redhat.com>
8719
8720         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8721         lt and ge.
8722         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8723         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8724         instead of "n" and "pz".
8725         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8726         CC_FLAG_S.
8727
8728 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8729
8730         PR target/47312
8731         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8732         fma, expand FMA_EXPR as fma{,f,l} call.
8733
8734         PR lto/47274
8735         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8736         copy them into a unsigned char variable and pass address of it to
8737         lto_output_data_stream.
8738
8739         PR target/47564
8740         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8741         around backend_init_target and lang_dependent_init_target calls.
8742         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8743         (verify_cgraph_node): Don't call set_cfun here.  Use
8744         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8745         Set error_found for incorrectly represented calls to thunks.
8746
8747 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8748
8749         PR debug/43092
8750         PR rtl-optimization/43494
8751         * rtl.h (for_each_inc_dec_fn): New type.
8752         (for_each_inc_dec): Declare.
8753         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8754         (for_each_inc_dec_find_inc_dec): New fn.
8755         (for_each_inc_dec_find_mem): New fn.
8756         (for_each_inc_dec): New fn.
8757         * dse.c (struct insn_size): Remove.
8758         (replace_inc_dec, replace_inc_dec_mem): Remove.
8759         (emit_inc_dec_insn_before): New fn.
8760         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8761         (canon_address): Pass mem modes to cselib_lookup.
8762         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8763         (cselib_lookup_from_insn): Likewise.
8764         (cselib_subst_to_values): Likewise.
8765         * cselib.c (find_slot_memmode): New var.
8766         (cselib_find_slot): New fn.  Use it instead of
8767         htab_find_slot_with_hash everywhere.
8768         (entry_and_rtx_equal_p): Use find_slot_memmode.
8769         (autoinc_split): New fn.
8770         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8771         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8772         Deal with autoinc.  Special-case recursion into MEMs.
8773         (cselib_hash_rtx): Likewise.
8774         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8775         address and MEM modes.
8776         (cselib_subst_to_values): Add memmode, pass it on.
8777         Deal with autoinc.
8778         (cselib_lookup): Add memmode argument, pass it on.
8779         (cselib_lookup_from_insn): Add memmode.
8780         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8781         (struct cselib_record_autoinc_data): New.
8782         (cselib_record_autoinc_cb): New fn.
8783         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8784         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8785         (cselib_process_insn): ... here.
8786         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8787         to cselib_lookup.
8788         (add_uses): Likewise, also to cselib_subst_to_values.
8789         (add_stores): Likewise.
8790         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8791         cselib_subst_to_values.
8792         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8793         * gcse.c (do_local_cprop): Adjusted.
8794         * postreload.c (reload_cse_simplify_set): Adjusted.
8795         (reload_cse_simplify_operands): Adjusted.
8796         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8797
8798 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8799
8800         PR tree-optimization/45122
8801         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8802         unsafe assumptions when there's more than one loop exit.
8803
8804 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8805
8806         PR target/47272
8807         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8808         Document using vector double with the load/store builtins, and
8809         that the load/store builtins always use Altivec instructions.
8810
8811         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8812         to use altivec memory instructions, even on VSX.
8813         (vector_altivec_store_<mode>): Ditto.
8814
8815         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8816         function.
8817
8818         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8819         V2DF, V2DI support to load/store overloaded builtins.
8820
8821         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8822         altivec load/store builtins for V2DF/V2DI types.
8823
8824         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8825         set avoid indexed addresses on power6 if -maltivec.
8826         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8827         vector_altivec_load/vector_altivec_store builtins.
8828         (altivec_expand_st_builtin): Ditto.
8829         (altivec_expand_builtin): Add VSX memory builtins.
8830         (rs6000_init_builtins): Add V2DI types to internal types.
8831         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8832         load/store builtins.
8833         (rs6000_address_for_altivec): Insure memory address is appropriate
8834         for Altivec.
8835
8836         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8837         vec_vsx_ld and vec_vsx_st.
8838         (vsx_store_<mode>): Ditto.
8839
8840         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8841         variables to hold long long types for VSX vector memory builtins.
8842         (RS6000_BTI_unsigned_long_long): Ditto.
8843         (long_long_integer_type_internal_node): Ditti.
8844         (long_long_unsigned_type_internal_node): Ditti.
8845
8846         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8847         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8848         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8849
8850         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8851         short cuts.
8852         (vec_vsx_st): Ditto.
8853
8854 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8855
8856         * config/pa/pa-hpux10.opt: New.
8857         * config/hpux11.opt (pthread): New Driver option.
8858         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8859         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8860
8861 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8862
8863         * config/ia64/vms.opt: New.
8864         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8865
8866 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8867
8868         PR target/47580
8869         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8870         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8871         generator functions.
8872         (vsx_floatuns<VSi><mode>2): Ditto.
8873         (vsx_fix_trunc<mode><VSi>2): Ditto.
8874         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8875
8876 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8877
8878         * config/i386/djgpp.opt (posix): New Driver option.
8879
8880 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8881
8882         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8883         Move to the unsupported targets list.
8884
8885 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8886
8887         PR rtl-optimization/47525
8888         * df-scan.c: Update copyright years.
8889         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8890         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8891
8892 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8893
8894         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8895         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8896         (ASM_OUTPUT_ASCII): Remove.
8897         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8898
8899 2011-02-02  Jeff Law  <law@redhat.com>
8900
8901         PR middle-end/47543
8902         * reload.c (find_reloads_address): Handle reg+d address where both
8903         components are invalid by reloading the entire address.
8904
8905 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8906             Richard Guenther  <rguenther@suse.de>
8907
8908         PR tree-optimization/40979
8909         PR bootstrap/47044
8910         * passes.c (init_optimization_passes): After LIM call copy_prop
8911         and DCE to clean up.
8912         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8913
8914 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8915
8916         PR tree-optimization/47576
8917         PR tree-optimization/47555
8918         * doc/invoke.texi (scev-max-expr-complexity): Documented.
8919         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8920         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8921         * tree-scalar-evolution.c (follow_ssa_edge): Use
8922         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8923
8924 2011-02-02  Richard Guenther  <rguenther@suse.de>
8925
8926         PR tree-optimization/47566
8927         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8928
8929 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8930
8931         PR debug/47106
8932         PR debug/47402
8933         * tree-inline.c (declare_return_variable): Remove unused caller
8934         variable.
8935
8936         PR debug/47106
8937         PR debug/47402
8938         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8939         * cfgexpand.c (account_used_vars_for_block): Use them.
8940         * tree-nrv.c (tree_nrv): Likewise.
8941         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8942         (dump_scope_block): Likewise.
8943         (remove_unused_locals): Likewise.
8944
8945         PR debug/47106
8946         PR debug/47402
8947         * tree-inline.c (declare_return_variable): Add result decl to
8948         local decls only once.
8949         * gimple-low.c (record_vars_into): Mark newly-created variables
8950         as referenced.
8951
8952 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8953
8954         PR debug/47498
8955         PR debug/47501
8956         PR debug/45136
8957         PR debug/45130
8958         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8959         debug insns.
8960         (no_real_insns_p, schedule_block, set_priorities): Drop special
8961         treatment of boundary debug insns.
8962         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8963         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8964         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8965         (BOUNDARY_DEBUG_INSN_P): Likewise.
8966         (SCHEDULE_DEBUG_INSN_P): Likewise.
8967         * sched-rgn.c (init_ready_list): Drop special treatment of
8968         boundary debug insns.
8969         * final.c (rest_of_clean_state): Clear notes' BB.
8970
8971 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8972
8973         * config/openbsd.opt (assert=): New Driver option.
8974
8975 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8976
8977         * config/i386/nto.opt: New.
8978         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8979
8980 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8981
8982         * config/i386/netware.opt: New.
8983         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
8984
8985 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8986
8987         * config/interix.opt (posix): New Driver option.
8988
8989 2011-02-01  DJ Delorie  <dj@redhat.com>
8990
8991         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
8992
8993         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
8994         class for A0/A1.
8995
8996 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
8997
8998         PR tree-optimization/47561
8999         * toplev.c (process_options): Print the Graphite flags.  Add
9000         flag_loop_flatten to the list of options requiring Graphite.
9001
9002 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9003
9004         * config/i386/cygming.opt (posix): New Driver option.
9005
9006 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9007
9008         * config/arm/vxworks.opt: New.
9009         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9010
9011 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9012
9013         * config/alpha/elf.opt: New.
9014         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9015         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9016
9017 2011-02-01  Richard Guenther  <rguenther@suse.de>
9018
9019         PR tree-optimization/47559
9020         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9021         store-motion on references that can throw.
9022
9023 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9024
9025         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9026         * tree-pass.h (TDF_CSELIB): New macro.
9027         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9028         cselib_lookup): Check for it rather than for TDF_DETAILS.
9029
9030 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9031
9032         PR driver/47547
9033         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9034         is HOST_BIT_BUCKET.
9035
9036         * opts.c (finish_options): Don't add x_aux_base_name if it is
9037         HOST_BIT_BUCKET.
9038
9039 2011-02-01  Richard Guenther  <rguenther@suse.de>
9040
9041         PR tree-optimization/47555
9042         Revert
9043         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9044
9045         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9046
9047 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9048
9049         PR gcc/46692
9050         * config/lm32/t-lm32: Add multilib for all CPU options.
9051
9052 2011-02-01  Richard Guenther  <rguenther@suse.de>
9053
9054         PR tree-optimization/47541
9055         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9056         sure to have a field at offset zero.
9057
9058 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9059
9060         * config/arc/arc.opt (EB, EL): New Driver options.
9061
9062 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9063
9064         * config/alpha/osf5.opt: New.
9065         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9066
9067 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9068
9069         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9070
9071 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9072
9073         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9074         -floop-interchange.
9075         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9076         is an alias of -floop-interchange and that it requires the
9077         Graphite infrastructure.
9078         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9079         flag_loop_interchange based on the value of flag_tree_loop_linear.
9080
9081 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9082             Richard Guenther  <rguenther@suse.de>
9083
9084         PR tree-optimization/47538
9085         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9086         type instead of r1type, except for comparisons.  For right
9087         shifts and comparisons punt if there are mismatches in
9088         sizetype vs. non-sizetype types.
9089
9090 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9091
9092         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9093         avx_runtime.
9094
9095 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9096
9097         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9098         version number.
9099         * configure: Regenerate.
9100
9101 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9102
9103         * configure.ac (gcc_cv_ld_static_option): Define.
9104         (gcc_cv_ld_dynamic_option): Define.
9105         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9106         instead.
9107         (HAVE_LD_STATIC_DYNAMIC): Update message.
9108         (LD_STATIC_OPTION): Define.
9109         (LD_DYNAMIC_OPTION): Define.
9110         * configure: Regenerate.
9111         * config.in: Regenerate.
9112         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9113         HAVE_LD_STATIC_DYNAMIC]: Use them.
9114
9115 2011-01-31  Nick Clifton  <nickc@redhat.com>
9116
9117         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9118         registers inside interrupt handlers if the handler is not a leaf
9119         function.
9120
9121 2011-01-31  Nick Clifton  <nickc@redhat.com>
9122
9123         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9124         reg_renumber returning an INVALID_REGNUM.
9125
9126 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9127
9128         PR libgcj/44341
9129         * doc/install.texi: Document host options discarded when cross
9130         configuring target libraries.
9131
9132 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9133
9134         Reverted:
9135         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9136         PR debug/45136
9137         PR debug/45130
9138         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9139         debug insns.
9140         (no_real_insns_p, schedule_block, set_priorities): Drop special
9141         treatment of boundary debug insns.
9142         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9143         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9144         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9145         (BOUNDARY_DEBUG_INSN_P): Likewise.
9146         (SCHEDULE_DEBUG_INSN_P): Likewise.
9147         * sched-rgn.c (init_ready_list): Drop special treatment of
9148         boundary debug insns.
9149         * final.c (rest_of_clean-state): Clear notes' BB.
9150
9151 2011-01-31  Alan Modra  <amodra@gmail.com>
9152
9153         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9154         toc relative expressions as we do in print_operand_address.
9155
9156 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9157
9158         * doc/extend.texi: Follow spelling conventions.
9159         * doc/invoke.texi: Fix a typo.
9160
9161 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9162
9163         * config/hpux11.opt: New.
9164         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9165         ia64*-*-hpux*): Use hpux11.opt.
9166
9167 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9168
9169         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9170         to tmake_file.
9171
9172 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9173
9174         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9175         support sites.
9176
9177 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9178
9179         * doc/install.texi (Binaries): Remove outdated reference for
9180         Motorola 68HC11/68HC12 downloads.
9181
9182 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9183
9184         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9185         Drepper's paper.
9186
9187 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9188
9189         PR bootstrap/47147
9190         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9191         used by NetBSD.
9192
9193 2011-01-28  Ahmad Sharif  <asharif@google.com>
9194
9195         * value-prof.c (check_counter): Corrected error message.
9196
9197 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9198
9199         * config/arm/arm.c (arm_legitimize_reload_address): New.
9200         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9201         arm_legitimize_reload_address.
9202         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9203
9204 2011-01-28  Ian Lance Taylor  <iant@google.com>
9205
9206         * godump.c (go_define): Ignore macros whose definitions include
9207         two adjacent operands.
9208
9209 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9210
9211         PR target/42894
9212         * varasm.c (force_const_mem): Store copy of x in desc->constant
9213         instead of x itself.
9214         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9215         itself into REG_EQUAL note.
9216
9217 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9218
9219         * config/freebsd.opt (posix, rdynamic): New Driver options.
9220
9221 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9222
9223         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9224         -Bstatic/-Bdynamic.
9225         * configure: Regenerate.
9226
9227 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9228
9229         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9230         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9231
9232 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9233
9234         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9235         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9236         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9237         (s390_preferred_reload_class): Make static. Change return and
9238         'rclass' argument type to reg_class_t.
9239
9240 2011-01-27  Jan Hubicka  <jh@suse.cz>
9241
9242         PR middle-end/46949
9243         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9244         (process_function_and_variable_attributes): Check defined weakrefs.
9245
9246 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9247
9248         PR tree-optimization/47228
9249         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9250         build_ref_for_offset.
9251
9252 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9253
9254         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9255
9256 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9257
9258         PR rtl-optimization/46856
9259         * postreload.c (reload_combine_recognize_const_pattern): Do not
9260         separate cc0 setter and user on cc0 targets.
9261
9262 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9263
9264         PR c/43082
9265         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9266         passed a VOID_TYPE expression, immediately emit an error and
9267         return error_mark_node.
9268
9269 2011-01-26  Jeff Law  <law@redhat.com>
9270
9271         PR rtl-optimization/47464
9272         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9273         rather than may_trap_p as needed.
9274
9275 2011-01-26  DJ Delorie  <dj@redhat.com>
9276
9277         PR rtl-optimization/46878
9278         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9279         setter/user dependency as well.
9280
9281 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9282
9283         PR rtl-optimization/44469
9284         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9285         after removing trivially dead basic blocks.
9286
9287 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9288
9289         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9290         * config/frv/frv.h (LINK_SPEC): Likewise.
9291         * config/i386/netware.h (LINK_SPEC): Likewise.
9292         * config/m68k/linux.h (ASM_SPEC): Likewise.
9293         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9294         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9295         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9296         * config/sparc/linux.h (ASM_SPEC): Likewise.
9297         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9298         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9299
9300 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9301
9302         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9303         * config/frv/frv.h (ASM_SPEC): Likewise.
9304         * config/m68k/linux.h (ASM_SPEC): Likewise.
9305         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9306         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9307         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9308         * config/sparc/linux.h (ASM_SPEC): Likewise.
9309         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9310         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9311
9312 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9313
9314         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9315         * config/frv/frv.h (LINK_SPEC): Likewise.
9316         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9317
9318 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9319
9320         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9321         * config/frv/frv.h (ASM_SPEC): Likewise.
9322         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9323         * config/m68k/linux.h (ASM_SPEC): Likewise.
9324         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9325         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9326         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9327         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9328         * config/sparc/linux.h (ASM_SPEC): Likewise.
9329         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9330         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9331         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9332
9333 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9334
9335         PR target/46997
9336         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9337         (*mux2): Ditto.
9338         (vec_extract_evenodd_help): Ditto.
9339         (vec_extract_evenv4hi): Ditto.
9340         (vec_extract_oddv4hi): Ditto.
9341         (vec_interleave_lowv2si): Ditto.
9342         (vec_interleave_highv2si): Ditto.
9343         (vec_extract_evenv2si): Ditto.
9344         (vec_extract_oddv2si: Ditto.
9345         (vec_pack_trunc_v2si): Ditto.
9346
9347 2011-01-22  Jan Hubicka  <jh@suse.cz>
9348
9349         PR target/47237
9350         * cgraph.h (cgraph_local_info): New field can_change_signature.
9351         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9352         signature can change.
9353         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9354         can change.
9355         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9356         (cgraph_function_versioning): We can not change signature of functions
9357         that don't allow that.
9358         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9359         (lto_input_node): Likewise.
9360         * ipa-inline.c (compute_inline_parameters): Compute
9361         local.can_change_signature.
9362         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9363         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9364         functions that can not change signature.
9365         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9366         init_cumulative_args): Do not use local calling conventions
9367         for functions that can not change signature.
9368
9369 2011-01-22  Jan Hubicka  <jh@suse.cz>
9370
9371         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9372
9373 2011-01-26  Richard Guenther  <rguenther@suse.de>
9374
9375         PR tree-optimization/47190
9376         * cgraphunit.c (process_common_attributes): New function.
9377         (process_function_and_variable_attributes): Use it.
9378
9379 2011-01-26  Richard Guenther  <rguenther@suse.de>
9380
9381         PR lto/47423
9382         * cgraphbuild.c (record_eh_tables): Record reference to personality
9383         function.
9384
9385 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9386
9387         PR debug/45454
9388         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9389         non-debug insns from moving up.
9390
9391 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9392
9393         PR target/40125
9394         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9395         t-dlldir{,-x} fragment for build and add it to tmake_file.
9396         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9397         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9398         * config/i386/t-dlldir: New file.
9399         (SHLIB_DLLDIR): Define.
9400         * config/i386/t-dlldir-x: New file.
9401         (SHLIB_DLLDIR): Define.
9402         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9403         (SHLIB_INSTALL): Use it.
9404
9405 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9406
9407         PR target/47246
9408         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9409         lower bound of the allowed Thumb-2 coprocessor load/store
9410         index range to -256. Add explaining comment.
9411
9412 2011-01-25  Ian Lance Taylor  <iant@google.com>
9413
9414         * godump.c (go_define): Improve lexing of macro expansion to only
9415         accept expressions which match Go spec.
9416
9417 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9418
9419         PR c++/43601
9420         * tree.c (handle_dll_attribute): Handle it.
9421         * doc/extend.texi (@item dllexport): Mention it.
9422         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9423
9424 2011-01-25  Ian Lance Taylor  <iant@google.com>
9425
9426         PR tree-optimization/26854
9427         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9428         (decl_jump_unsafe): Move higher in file, with no other change.
9429         (bind): Set has_jump_unsafe_decl if appropriate.
9430         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9431         (check_earlier_gotos): Likewise.
9432         (c_check_switch_jump_warnings): Likewise.
9433
9434 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9435
9436         * doc/invoke.texi (Warning Options): Add missing hyphen.
9437         (-fprofile-dir): Minor grammatical fixes.
9438         (-fbranch-probabilities): Likewise.
9439
9440 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9441
9442         PR debug/45136
9443         PR debug/45130
9444         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9445         debug insns.
9446         (no_real_insns_p, schedule_block, set_priorities): Drop special
9447         treatment of boundary debug insns.
9448         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9449         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9450         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9451         (BOUNDARY_DEBUG_INSN_P): Likewise.
9452         (SCHEDULE_DEBUG_INSN_P): Likewise.
9453         * sched-rgn.c (init_ready_list): Drop special treatment of
9454         boundary debug insns.
9455         * final.c (rest_of_clean-state): Clear notes' BB.
9456
9457 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9458
9459         * Makefile.in (LAMBDA_H): Removed.
9460         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9461         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9462         lambda-trans.o, and tree-loop-linear.o.
9463         (lto-symtab.o): Remove dependence on LAMBDA_H.
9464         (tree-loop-linear.o): Remove rule.
9465         (lambda-mat.o): Same.
9466         (lambda-trans.o): Same.
9467         (lambda-code.o): Same.
9468         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9469         (tree-vect-slp.o): Same.
9470         * hwint.h (gcd): Moved here.
9471         (least_common_multiple): Same.
9472         * lambda-code.c: Removed.
9473         * lambda-mat.c: Removed.
9474         * lambda-trans.c: Removed.
9475         * lambda.h: Removed.
9476         * tree-loop-linear.c: Removed.
9477         * lto-symtab.c: Do not include lambda.h.
9478         * omega.c (gcd): Removed.
9479         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9480         * tree-data-ref.c (print_lambda_vector): Moved here.
9481         (lambda_vector_copy): Same.
9482         (lambda_matrix_copy): Same.
9483         (lambda_matrix_id): Same.
9484         (lambda_vector_first_nz): Same.
9485         (lambda_matrix_row_add): Same.
9486         (lambda_matrix_row_exchange): Same.
9487         (lambda_vector_mult_const): Same.
9488         (lambda_vector_negate): Same.
9489         (lambda_matrix_row_negate): Same.
9490         (lambda_vector_equal): Same.
9491         (lambda_matrix_right_hermite): Same.
9492         * tree-data-ref.h: Do not include lambda.h.
9493         (lambda_vector): Moved here.
9494         (lambda_matrix): Same.
9495         (dependence_level): Same.
9496         (lambda_transform_legal_p): Removed declaration.
9497         (lambda_collect_parameters): Same.
9498         (lambda_compute_access_matrices): Same.
9499         (lambda_vector_gcd): Same.
9500         (lambda_vector_new): Same.
9501         (lambda_vector_clear): Same.
9502         (lambda_vector_lexico_pos): Same.
9503         (lambda_vector_zerop): Same.
9504         (lambda_matrix_new): Same.
9505         * tree-flow.h (least_common_multiple): Removed declaration.
9506         * tree-parloops.c (lambda_trans_matrix): Moved here.
9507         (LTM_MATRIX): Same.
9508         (LTM_ROWSIZE): Same.
9509         (LTM_COLSIZE): Same.
9510         (LTM_DENOMINATOR): Same.
9511         (lambda_trans_matrix_new): Same.
9512         (lambda_matrix_vector_mult): Same.
9513         (lambda_transform_legal_p): Same.
9514         * tree-pass.h (pass_linear_transform): Removed declaration.
9515         * tree-ssa-loop.c (tree_linear_transform): Removed.
9516         (gate_tree_linear_transform): Removed.
9517         (pass_linear_transform): Removed.
9518         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9519         flag_loop_interchange.
9520
9521 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9522
9523         PR tree-optimization/47265
9524         PR tree-optimization/47443
9525         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9526         if name still has some uses.
9527
9528 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9529
9530         PR tree-optimization/47382
9531         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9532         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9533
9534 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9535
9536         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9537         sjlj_except_unwind_info.
9538
9539 2011-01-25  Richard Guenther  <rguenther@suse.de>
9540
9541         PR tree-optimization/47426
9542         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9543         visible functions results escape.
9544
9545 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9546
9547         PR target/45701
9548         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9549         (arm_get_frame_offsets): Use it.
9550
9551 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9552             Jakub Jelinek  <jakub@redhat.com>
9553
9554         PR tree-optimization/47271
9555         * tree-if-conv.c (bb_postdominates_preds): New.
9556         (if_convertible_bb_p): Call bb_postdominates_preds.
9557         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9558         (predicate_scalar_phi): Call bb_postdominates_preds.
9559
9560 2011-01-25  Nick Clifton  <nickc@redhat.com>
9561
9562         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9563         * config/rx/rx.c (rx_function_value): Likewise.
9564         (rx_promote_function_mode): Likewise.
9565         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9566         in order to make it legitimate.
9567         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9568         make sure that the first operand is the same as the result register.
9569         (addsi3_unspec): Delete.
9570         (subdi3): Do not accept immediate operands.
9571         (subdi3_internal): Likewise.
9572
9573 2011-01-25  Jeff Law  <law@redhat.com>
9574
9575         PR rtl-optimization/37273
9576         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9577         handle them like argument loads from stack slots.  Do not double
9578         count memory for memory constants and argument loads from stack slots.
9579
9580 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9581
9582         PR tree-optimization/47427
9583         PR tree-optimization/47428
9584         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9585         coalesce if the new root var would be TREE_READONLY.
9586
9587 2011-01-25  Richard Guenther  <rguenther@suse.de>
9588
9589         PR middle-end/47414
9590         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9591         correct type for TBAA.
9592
9593 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9594
9595         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9596         (close_phi_written_to_memory): Call for_each_index with
9597         dr_indices_valid_in_loop.
9598
9599 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9600
9601         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9602         when it is initialized.
9603
9604 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9605
9606         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9607         call to graphite_find_data_references_in_stmt.
9608         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9609         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9610         call to graphite_find_data_references_in_stmt.
9611         (analyze_drs_in_stmts): Same.
9612         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9613         in which the scalar analysis of indices is performed.
9614         (create_data_ref): Same.  Update call to dr_analyze_indices.
9615         (find_data_references_in_stmt): Update call to create_data_ref.
9616         (graphite_find_data_references_in_stmt): Same.
9617         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9618         declaration.
9619         (create_data_ref): Same.
9620         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9621         call to create_data_ref.
9622
9623 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9624
9625         * graphite-sese-to-poly.c (build_poly_scop): Move
9626         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9627
9628 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9629
9630         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9631         VAR_DECL, PARM_DECL, and RESULT_DECL.
9632
9633 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9634
9635         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9636         in a reduction PBB.
9637         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9638         that have already been marked as PBB_IS_REDUCTION.
9639
9640 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9641
9642         * graphite-scop-detection.c (same_close_phi_node): New.
9643         (remove_duplicate_close_phi): New.
9644         (make_close_phi_nodes_unique): New.
9645         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9646
9647 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9648
9649         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9650         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9651         of both data references to be the same.
9652
9653 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9654
9655         * graphite-dependences.c (build_lexicographical_constraint): Remove
9656         the gdim parameter.
9657         (build_lexicographical_constraint): Adjust call to
9658         ppl_powerset_is_empty.
9659         (dependence_polyhedron): Same.
9660         (graphite_legal_transform_dr): Same.
9661         (graphite_carried_dependence_level_k): Same.
9662         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9663         parameter.
9664         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9665
9666 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9667
9668         * graphite-sese-to-poly.c
9669         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9670         (close_phi_written_to_memory): New.
9671         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9672         and unshare_expr.
9673
9674 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9675
9676         * doc/install.texi: Update the expected version number of PPL to 0.11.
9677         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9678         #if PPL_VERSION_MINOR < 11.
9679
9680 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9681
9682         * graphite-dependences.c: Include graphite-cloog-util.h.
9683         (new_poly_ddr): Inlined into dependence_polyhedron.
9684         (free_poly_ddr): Moved close by new_poly_ddr.
9685         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9686         Early return NULL when ppl_powerset_is_empty returns true.
9687         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9688         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9689         (graphite_legal_transform_dr): Call new_poly_ddr.
9690         (graphite_carried_dependence_level_k): Same.
9691         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9692         (dot_transformed_deps_stmt_1): Removed.
9693         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9694         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9695         (dot_deps_1): Call dot_deps_2.
9696         * Makefile.in (graphite-dependences.o): Add missing dependence on
9697         graphite-cloog-util.h.
9698
9699 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9700
9701         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9702         (build_lexicographical_constraint): Same.
9703         (dependence_polyhedron_1): Same.
9704         (graphite_legal_transform_dr): Same.
9705         (graphite_carried_dependence_level_k): Same.
9706         * graphite-ppl.c (ppl_powerset_is_empty): New.
9707         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9708         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9709
9710 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9711
9712         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9713         the "a followed by b" relation and document it.
9714
9715 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9716
9717         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9718         iteration when the bag of constraints is empty.
9719
9720 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9721
9722         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9723
9724 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9725
9726         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9727         nest and two loop depths as parameters.
9728         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9729         lst_perfect_nestify.
9730
9731 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9732
9733         * graphite-dependences.c (print_pddr): Call
9734         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9735
9736 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9737
9738         * graphite-ppl.c (debug_gmp_value): New.
9739         * graphite-ppl.h (debug_gmp_value): Declared.
9740
9741 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9742
9743         * doc/install.texi: Document availability of cloog-0.16.
9744
9745 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9746
9747         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9748         invalid postdominance info.
9749
9750 2011-01-24  Jan Hubicka  <jh@suse.cz>
9751
9752         PR c/21659
9753         * doc/extend.texi (weak pragma): Drop claim that it must
9754         appear before definition.
9755         * varasm.c (merge_weak, declare_weak): Only sanity check
9756         that DECL is not output at a time it is declared weak.
9757
9758 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9759
9760         * machmode.def: Fixed comments.
9761
9762 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9763
9764         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9765
9766 2011-01-24  Paul Koning  <ni1d@arrl.net>
9767
9768         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9769         WORDS_BIG_ENDIAN.
9770
9771 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9772
9773         PR target/46519
9774         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9775         (block_info): Add scanned and prev.
9776         (move_or_delete_vzeroupper_2): Return if the basic block
9777         has been scanned and the upper 128bit state is unchanged
9778         from the last scan.
9779         (move_or_delete_vzeroupper_1): Return true if the exit
9780         state is changed.
9781         (move_or_delete_vzeroupper): Visit basic blocks using the
9782         work-list based algorithm based on vt_find_locations in
9783         var-tracking.c.
9784
9785         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9786
9787 2011-01-24  Nick Clifton  <nickc@redhat.com>
9788
9789         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9790         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9791         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9792         then define __v850e1__.
9793         * doc/invoke.texi: Document -mv850es.
9794
9795 2011-01-24  Richard Henderson  <rth@redhat.com>
9796
9797         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9798         compound unordered comparisons.
9799         * config/rx/rx.c (rx_split_fp_compare): Remove.
9800         * config/rx/rx-protos.h: Update.
9801         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9802         (cbranchsf4): Don't call rx_split_fp_compare.
9803         (*cbranchsf4): Use rx_split_cbranch.
9804         (*cmpsf): Don't accept "i" constraint.
9805         (*conditional_branch): Only valid after reload.
9806         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9807
9808 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9809
9810         PR target/47385
9811         * config/rs6000/altivec.md (vector constant splitters): Add
9812         support for creating vector single precision constants if -mvsx is
9813         used and we would create the constant using Altivec primitives.
9814
9815 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9816             Richard Sandiford  <rdsandiford@googlemail.com>
9817
9818         PR rtl-optimization/47166
9819         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9820         mechanism for PRE_MODIFY and POST_MODIFY.
9821         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9822         reloadreg.
9823
9824 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9825
9826         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9827
9828 2011-01-22  Jan Hubicka  <jh@suse.cz>
9829
9830         PR lto/47333
9831         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9832
9833 2011-01-22  Jan Hubicka  <jh@suse.cz>
9834
9835         PR tree-optimization/43884
9836         PR lto/44334
9837         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9838         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9839
9840 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9841
9842         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9843         * config/s390/s390.c (s390_register_move_cost,
9844         s390_memory_move_cost): New.
9845         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9846
9847 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9848
9849         PR middle-end/47401
9850         * except.c (sjlj_assign_call_site_values): Move setting the
9851         crtl->uses_eh_lsda flag to ...
9852         (sjlj_mark_call_sites): ... here.
9853         (sjlj_emit_function_enter): Support NULL dispatch label.
9854         (sjlj_build_landing_pads): In a function with no landing pads
9855         that still has must-not-throw regions, generate code to register
9856         a personality function with empty LSDA.
9857
9858 2011-01-21  Richard Henderson  <rth@redhat.com>
9859
9860         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9861
9862         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9863
9864         * compare-elim.c: New file.
9865         * Makefile.in (OBJS-common): Add it.
9866         (compare-elim.o): New.
9867         * common.opt (fcompare-elim): New.
9868         * opts.c (default_options_table): Add OPT_fcompare_elim.
9869         * tree-pass.h (pass_compare_elim_after_reload): New.
9870         * passes.c (init_optimization_passes): Add it.
9871         * recog.h: Protect against re-inclusion.
9872         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9873         * doc/invoke.texi (-fcompare-elim): Document it.
9874         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9875         * doc/tm.texi: Rebuild.
9876
9877 2011-01-22  Nick Clifton  <nickc@redhat.com>
9878
9879         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9880         rx_split_fp_compare.
9881
9882 2011-01-22  Nick Clifton  <nickc@redhat.com>
9883
9884         * config/rx/rx.md (UNSPEC_CONST): New.
9885         (deallocate_and_return): Wrap the amount popped off the stack in
9886         an UNSPEC_CONST in order to stop it being rejected by
9887         -mmax-constant-size.
9888         (pop_and_return): Add a "(return)" rtx.
9889         (call): Drop the immediate operand.
9890         (call_internal): Likewise.
9891         (call_value): Likewise.
9892         (call_value_internal): Likewise.
9893         (sibcall_internal): Likewise.
9894         (sibcall_value_internal): Likewise.
9895         (sibcall): Likewise.  Generate an explicit call using
9896         sibcall_internal.
9897         (sibcall_value): Likewise.
9898         (mov<>): FAIL if a constant operand is not legitimate.
9899         (addsi3_unpsec): New pattern.
9900
9901         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9902         (ok_for_max_constant): New function.
9903         (gen_safe_add): New function.
9904         (rx_expand_prologue): Use gen_safe_add.
9905         (rx_expand_epilogue): Likewise.
9906         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9907         UNSPEC CONSTs.
9908
9909 2011-01-21  Jeff Law  <law@redhat.com>
9910
9911         PR tree-optimization/47053
9912         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9913         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9914         statements are deleted.
9915         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
9916         is nonempty, then purge dead edges and cleanup the CFG.
9917
9918 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9919
9920         PR debug/47402
9921         Temporarily revert:
9922         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9923         PR debug/47106
9924         * tree-dfa.c (create_var_ann): Mark variable as used.
9925
9926 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9927
9928         PR middle-end/45566
9929         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9930         notes from other section in hot/cold partitioning even if
9931         last_action is -3.  Increment call_site_base.
9932
9933         PR rtl-optimization/47366
9934         * fwprop.c (forward_propagate_into): Return bool.  If
9935         any changes are made, -fnon-call-exceptions is used and
9936         REG_EH_REGION note is present, call purge_dead_edges
9937         and return true if it purged anything.
9938         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9939         any EH edges were purged.
9940
9941 2011-01-21  Jeff Law  <law@redhat.com>
9942
9943         PR rtl-optimization/41619
9944         * caller-save.c (setup_save_areas): Break out code to determine
9945         which hard regs are live across calls by examining the reload chains
9946         so that it is always used.
9947         Eliminate code which checked REG_N_CALLS_CROSSED.
9948
9949 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9950
9951         PR tree-optimization/47355
9952         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9953         NOP has non-debug uses beyond PHIs in new_bb.
9954
9955 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9956
9957         PR debug/47106
9958         * cfgexpand.c (account_used_vars_for_block): Only account vars
9959         that are annotated as used.
9960         (estimated_stack_frame_size): Don't set TREE_USED.
9961         * tree-dfa.c (create_var_ann): Mark variable as used.
9962
9963 2011-01-21  Richard Guenther  <rguenther@suse.de>
9964
9965         PR middle-end/47395
9966         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9967
9968 2011-01-21  Richard Guenther  <rguenther@suse.de>
9969
9970         PR tree-optimization/47365
9971         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9972         (vn_reference_lookup_pieces): Adjust.
9973         (vn_reference_lookup): Likewise.
9974         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9975         (vn_reference_lookup_3): Only look through kills if in
9976         VN_WALKREWRITE mode.
9977         (vn_reference_lookup_pieces): Adjust.
9978         (vn_reference_lookup): Likewise.
9979         (visit_reference_op_load): Likewise.
9980         (visit_reference_op_store): Likewise.
9981         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9982         (compute_avail): Likewise.
9983         (eliminate): Likewise.
9984
9985 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9986
9987         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
9988         DECL_IGNORED_P non-reg vars if they are used.
9989
9990         PR tree-optimization/47391
9991         * varpool.c (const_value_known_p): Return false if
9992         decl is volatile.
9993
9994 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
9995
9996         PR bootstrap/47215
9997         * config/i386/i386.c (ix86_local_alignment): Handle
9998         case for va_list_type_node is nil.
9999         (ix86_canonical_va_list_type): Likewise.
10000
10001 2011-01-21  Alan Modra  <amodra@gmail.com>
10002
10003         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10004         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10005
10006 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10007
10008         * config/arm/arm.md (define_attr type): Rename f_load
10009         and f_store to f_fpa_load and f_fpa_store. Update.
10010         (write_conflict): Deal with rename fallout.
10011         (*push_fp_multi): Likewise.
10012         * config/arm/fpa.md (f_load): Use f_fpa_load.
10013         (f_store): Use f_fpa_store.
10014         (*movsf_fpa): Likewise.
10015         (*movdf_fpa): Likewise.
10016         (*movxf_fpa): Likewise.
10017         (*thumb2_movsf_fpa): Likewise.
10018         (*thumb2_movdf_fpa): Likewise.
10019         (*thumb2_movxf_fpa): Likewise.
10020         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10021         f_loadd and f_stored.
10022         (*thumb2_movdi_vfp): Likewise.
10023         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10024         (*thumb2_movsi_vfp): Likewise.
10025         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10026         Use f_loads instead of f_load.
10027         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10028
10029 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10030
10031         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10032         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10033         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10034         (xtensa_mode_dependent_address_p): New function.
10035         (constantpool_address_p): Make static. Change return type to bool.
10036         Change argument type to const_rtx. Use CONST_INT_P predicate.
10037
10038 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10039
10040         PR debug/46583
10041         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10042
10043 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10044
10045         PR debug/47283
10046         * cfgexpand.c (expand_debug_expr): Instead of generating
10047         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10048         etc. handling.
10049
10050 2011-01-20  Richard Guenther  <rguenther@suse.de>
10051
10052         PR middle-end/47370
10053         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10054         the pointer operand of MEM_REFs.
10055
10056 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10057
10058         PR tree-optimization/46130
10059         * ipa-split.c (consider_split): If return_bb contains non-virtual
10060         PHIs other than for retval or if split_function would not adjust it,
10061         refuse to split.
10062
10063 2011-01-20  Richard Guenther  <rguenther@suse.de>
10064
10065         PR tree-optimization/47167
10066         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10067         Revert previous change, only avoid enumeral type changes.
10068
10069 2011-01-19  Mike Stump  <mikestump@comcast.net>
10070
10071         * doc/tm.texi.in (BRANCH_COST): Englishify.
10072         * doc/tm.texi (BRANCH_COST): Likewise.
10073
10074 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10075
10076         PR c++/47291
10077         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10078         (gen_scheduled_generic_parms_dies): New functions.
10079         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10080         generation for the end of CU compilation.
10081         (dwarf2out_finish): Generate template parameters DIEs here.
10082
10083 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10084
10085         PR debug/46240
10086         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10087         debug bind stmt on merge edges.
10088
10089 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10090
10091         PR debug/47079
10092         PR debug/46724
10093         * function.c (instantiate_expr): Instantiate incoming rtl of
10094         implicit arguments, and recurse on VALUE_EXPRs.
10095         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10096         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10097
10098 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10099
10100         * c-parser.c (c_parser_for_statement): Initialize
10101         collection_expression.
10102
10103 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10104
10105         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10106
10107 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10108
10109         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10110         (LINK_SHLIB_SPEC): Don't use %(link_path).
10111         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10112
10113 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10114
10115         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10116         (NO_SHARED_LIB_SUPPORT): Remove.
10117         (LINK_SHLIB_SPEC): Remove one conditional definition.
10118
10119 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10120
10121         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10122         %{call_shared}.
10123         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10124         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10125         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10126         %{call_shared} and conditionals on these options not being passed.
10127         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10128         %{call_shared}.
10129
10130 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10131
10132         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10133         simplify.
10134
10135         * ipa-split.c: Spelling fixes.
10136
10137 2011-01-19  Richard Henderson  <rth@redhat.com>
10138
10139         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10140         (*mulsi3): Likewise.
10141
10142         * longlong.h [__mn10300__] (count_leading_zeros): New.
10143         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10144         [__mn10300__] (add_ssaaaa, subddmmss): New.
10145         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10146         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10147
10148 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10149
10150         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10151
10152 2011-01-19  Richard Henderson  <rth@redhat.com>
10153
10154         * config/mn10300/mn10300.md (addsi3_flags): New.
10155         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10156         (subsi3_flags, subc_internal, subdi3): New.
10157         (subdi3_internal, *subdi3_degenerate): New.
10158         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10159
10160         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10161         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10162         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10163         * config/mn10300/mn10300-protos.h: Update.
10164         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10165         (return_ret): Likewise.  Rename from return_internal_regs.
10166         (return_internal): Remove.
10167
10168         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10169         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10170         (mn10300_legitimate_constant_p): Likewise.
10171         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10172         (mn10300_frame_size): New.
10173         (mn10300_expand_prologue): Use it.
10174         (mn10300_expand_epilogue): Likewise.
10175         (mn10300_initial_offset): Likewise.
10176         * config/mn10300/mn10300-protos.h: Update.
10177         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10178         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10179         (prologue, epilogue, return_internal): Tidy output code.
10180         (mn10300_store_multiple_operation, return): Likewise.
10181         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10182         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10183         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10184         (load_pic, am33_load_pic): New.
10185         (mn10300_load_pic0, mn10300_load_pic1): New.
10186
10187         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10188         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10189         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10190         (cc_flags_for_mode, cc_flags_for_code): New.
10191         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10192         overflow flag is not valid.  Validate that the flags we need
10193         for the comparison are valid.
10194         (mn10300_output_cmp): Remove.
10195         (mn10300_output_add): New.
10196         (mn10300_select_cc_mode): Use cc_flags_for_code.
10197         (mn10300_split_cbranch): New.
10198         (mn10300_match_ccmode): New.
10199         (mn10300_split_and_operand_count): New.
10200         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10201         to the function.
10202         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10203         (addsi3): ... here.  Use mn10300_output_add.
10204         (*addsi3_flags): New.
10205         (*am33_subsi3, *mn10300_subsi3): Merge...
10206         (subsi3): ... here.  Use attribute isa.
10207         (*subsi3_flags): New.
10208         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10209         when possible.
10210         (*am33_andsi3, *mn10300_andsi3): Merge...
10211         (andsi3): ... here.
10212         (*andsi3_flags): New.
10213         (andsi3 splitters): New.
10214         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10215         (iorsi3): ... here.
10216         (*iorsi3_flags): New.
10217         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10218         (xorsi3): ... here.
10219         (*xorsi3_flags): New.
10220         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10221         (one_cmplsi2): ... here.
10222         (*one_cmplsi2_flags): New.
10223         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10224         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10225         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10226         use matching constraints to eliminate a self-comparison.
10227         (*integer_conditional_branch): Rename from integer_conditional_branch.
10228         Use int_mode_flags to match CC_REG.
10229         (*cbranchsi4_btst, *btstsi): New.
10230         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10231         mn10300_split_cbranch.
10232         (*am33_cmpsf): Rename from am33_cmpsf.
10233         (*float_conditional_branch): Rename from float_conditional_branch.
10234         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10235         (zero_extendqisi2): ... here.
10236         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10237         (zero_extendhisi2): ... here.
10238         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10239         (extendqisi2): ... here.
10240         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10241         (extendhisi2): ... here.
10242         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10243         (ashlsi3): ... here.
10244         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10245         (lshrsi3): ... here.
10246         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10247         (ashrsi3): ... here.
10248         (consecutive add peephole): Remove.
10249         * config/mn10300/predicates.md (label_ref_operand): New.
10250         (int_mode_flags): New.
10251         (CCZN_comparison_operator): New.
10252
10253         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10254         (throughput_42_latency_43): New reservation.
10255         (mulsidi3, umulsidi3): New expanders.
10256         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10257         the MDR register to allocation; separately allocate the low and
10258         high parts of the DImode result.
10259         (umulsidi3_internal): Similarly.
10260         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10261         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10262         (udivsi3, umodsi3): Remove.
10263         (udivmodsi4, divmodsi4): New expanders.
10264         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10265         (*divmodsi4): Simiarly.
10266         (ext_internal): New.
10267
10268         * config/mn10300/constraints.md ("z"): New constraint.
10269         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10270         (FIXED_REGISTERS): Don't fix MDR.
10271         (CALL_USED_REGSITERS): Reformat nicely.
10272         (REG_ALLOC_ORDER): Add MDR.
10273         (enum regclass): Add MDR_REGS.
10274         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10275         (IRA_COVER_CLASSES): Add MDR_REGS.
10276         (REGNO_REG_CLASS): Handle MDR_REG.
10277         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10278         (mn10300_register_move_cost): Likewise.
10279         * config/mn10300/mn10300.md (MDR_REG): New.
10280         (*movsi_internal): Handle moves to/from MDR_REGS.
10281
10282         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10283         POST_MODIFY.
10284         (mn10300_secondary_reload): Tidy combination reload classes.
10285         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10286         addresses for AM33.  Allow symbolic offsets for reg+imm.
10287         (mn10300_regno_in_class_p): New.
10288         (mn10300_legitimize_reload_address): New.
10289         * config/mn10300/mn10300.h (enum reg_class): Remove
10290         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10291         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10292         SP_OR_GENERAL_REGS.
10293         (REG_CLASS_NAMES): Update to match.
10294         (REG_CLASS_CONTENTS): Likewise.
10295         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10296         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10297         (REGNO_IN_RANGE_P): Remove.
10298         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10299         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10300         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10301         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10302         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10303         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10304         (REGNO_GENERAL_P): New.
10305         (HAVE_POST_MODIFY_DISP): New.
10306         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10307         (LEGITIMIZE_RELOAD_ADDRESS): New.
10308         * config/mn10300/mn10300-protos.h: Update.
10309
10310         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10311         DATA_REGS for AM33 stack-pointer destination.
10312         (mn10300_preferred_output_reload_class): Likewise.
10313         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10314         into a form appropriate for ...
10315         (TARGET_SECONDARY_RELOAD): New.
10316         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10317         * config/mn10300/mn10300-protos.h: Update.
10318         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10319         reload_insi; use the "A" constraint for the scratch; handle AM33
10320         moves of sp to non-address registers.
10321
10322         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10323         (*movqi_internal): ... here.
10324         (*am33_movhi, *mn10300_movhi): Merge into...
10325         (*movhi_internal): ... here.
10326         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10327         as the source/destination of moves from/to SP.
10328         (movsf): Only allow for AM33-2.
10329         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10330         any integer constant constraint.  Only allow for AM33-2.  Tidy
10331         all of the alternative outputs.
10332         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10333         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10334         for MN103.
10335         (udivsi3, umodsi3): New patterns for MN103 only.
10336
10337 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10338
10339         * doc/tm.texi.in: Spell out that a lack of register class unions
10340         can lead to ICEs.
10341         * doc/tm.texi: Regenerate.
10342
10343 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10344
10345         PR rtl-optimization/47337
10346         * dce.c (check_argument_store): New function.
10347         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10348
10349         PR tree-optimization/47290
10350         * tree-eh.c (infinite_empty_loop_p): New function.
10351         (cleanup_empty_eh): Use it.
10352
10353 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10354
10355         PR target/46997
10356         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10357         (a64_expand_widen_sum): Ditto.
10358         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10359         (vec_extract_evenodd_help): Ditto.
10360         (vec_extract_evenv4hi): Ditto.
10361         (vec_extract_oddv4hi): Ditto.
10362         (vec_extract_evenv2si): Ditto.
10363         (vec_extract_oddv2si): Ditto.
10364         (vec_extract_evenv2sf): Ditto.
10365         (vec_extract_oddv2sf): Ditto.
10366         (vec_pack_trunc_v4hi: Ditto.
10367         (vec_pack_trunc_v2si): Ditto.
10368         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10369         (vec_interleave_highv8qi): Ditto.
10370         (mix1_r): Ditto.
10371         (vec_extract_oddv8qi): Ditto.
10372         (vec_interleave_lowv4hi): Ditto.
10373         (vec_interleave_highv4hi): Ditto.
10374         (vec_interleave_lowv2si): Ditto.
10375         (vec_interleave_highv2si): Ditto.
10376
10377 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10378
10379         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10380         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10381         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10382         (pa_c_mode_for_suffix): New.
10383         (TARGET_EXPAND_BUILTIN): Define.
10384         (TARGET_C_MODE_FOR_SUFFIX): Define.
10385         (pa_builtins): Define.
10386         (pa_init_builtins): Register __float128 type and init new support
10387         builtins.
10388         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10389         * config/pa/quadlib.c (_U_Qfcopysign): New.
10390
10391 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10392
10393         PR middle-end/46894
10394         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10395         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10396         are defined.
10397
10398 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10399
10400         PR tree-optimization/47179
10401         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10402         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10403
10404 2011-01-18  Richard Guenther  <rguenther@suse.de>
10405
10406         PR rtl-optimization/47216
10407         * emit-rtl.c: Include tree-flow.h.
10408         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10409         of replicating it with different semantics.
10410         * Makefile.in (emit-rtl.o): Adjust.
10411
10412 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10413
10414         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10415         (cortex_a9_dp): Handle neon types correctly.
10416
10417 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10418
10419         PR rtl-optimization/47299
10420         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10421         subtarget.  Use normal multiplication if both operands are constants.
10422         * expmed.c (expand_widening_mult): Don't try to optimize constant
10423         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10424         before using it.
10425
10426 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10427
10428         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10429         spacing after 'e.g.', typos, comma, hyphenation.
10430
10431 2011-01-17  Richard Henderson  <rth@redhat.com>
10432
10433         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10434         (rx_restricted_mem_operand): New.
10435         (rx_shift_operand): Use register_operand.
10436         (rx_source_operand, rx_compare_operand): Likewise.
10437         * config/rx/rx.md (addsi3_flags): New expander.
10438         (adddi3): Rewrite as expander.
10439         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10440         (subsi3_flags): New expander.
10441         (subdi3): Rewrite as expander.
10442         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10443
10444         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10445         (rx_init_builtins): Remove sat builtin.
10446         (rx_expand_builtin): Likewise.
10447         * config/rx/rx.md (ssaddsi3): New.
10448         (*sat): Rename from sat.  Represent the CC_REG input.
10449
10450         * config/rx/predicates.md (rshift_operator): New.
10451         * config/rx/rx.c (rx_expand_insv): Remove.
10452         * config/rx/rx-protos.h: Update.
10453         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10454         operand to the canonical position.
10455         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10456         (*bitclr, *bitclr_in_memory): Similarly.
10457         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10458         (insv): Retain the zero_extract in the expansion.
10459
10460         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10461         (bswaphi2, bitinvert, revw): Likewise.
10462
10463         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10464         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10465         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10466         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10467         (bitset, bitset_in_memory): Likewise.
10468         (bitinvert, bitinvert_in_memory): Likewise.
10469         (bitclr, bitclr_in_memory): Likewise.
10470         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10471         (rx_strend, rx_cmpstrn): Likewise.
10472         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10473         (bitop peep2 patterns): Remove.
10474
10475         * config/rx/rx.c (rx_match_ccmode): New.
10476         * config/rx/rx-protos.h: Update.
10477         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10478         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10479         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10480         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10481         (fix_truncsfsi2, floatsisf2): Likewise.
10482         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10483         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10484         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10485         (*subsi3_flags, *xorsi3_flags): New.
10486
10487         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10488
10489         * config/rx/rx.c (rx_print_operand): Remove workaround for
10490         unsplit comparison operations.
10491
10492         * config/rx/rx.md (movsicc): Split after reload.
10493         (*movsicc): Merge *movsieq and *movsine via match_operator.
10494         (*stcc): New pattern.
10495
10496         * config/rx/rx.c (rx_float_compare_mode): Remove.
10497         * config/rx/rx.h (rx_float_compare_mode): Remove.
10498         * config/rx/rx.md (cstoresi4): Split after reload.
10499         (*sccc): New pattern.
10500
10501         * config/rx/predicates.md (label_ref_operand): New.
10502         (rx_z_comparison_operator): New.
10503         (rx_zs_comparison_operator): New.
10504         (rx_fp_comparison_operator): New.
10505         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10506         Validate that the flags are set properly for the comparison.
10507         (rx_gen_cond_branch_template): Remove.
10508         (rx_cc_modes_compatible): Remove.
10509         (mode_from_flags): New.
10510         (flags_from_code): Rename from flags_needed_for_conditional.
10511         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10512         (rx_select_cc_mode): Likewise.
10513         (rx_split_fp_compare): New.
10514         (rx_split_cbranch): New.
10515         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10516         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10517         (*cbranchsf4): Similarly.
10518         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10519         match_operator and rx_split_cbranch.
10520         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10521         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10522         (*cmpsi): Rename from cmpsi.
10523         (*tstsi): Rename from tstsi.
10524         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10525         (*conditional_branch): Rename from conditional_branch.
10526         (*reveresed_conditional_branch): Remove.
10527         (b<code>): Remove expander.
10528         * config/rx/rx-protos.h: Update.
10529
10530         * config/rx/rx.c (rx_compare_redundant): Remove.
10531         * config/rx/rx.md (cmpsi): Don't use it.
10532         * config/rx/rx-protos.h: Update.
10533
10534         * config/rx/rx-modes.def (CC_F): New mode.
10535         * config/rx/rx.c (rx_select_cc_mode): New.
10536         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10537         * config/rx/rx-protos.h: Update.
10538
10539 2011-01-17  Richard Henderson  <rth@redhat.com>
10540
10541         * except.c (dump_eh_tree): Fix stray ; after for statement.
10542
10543 2011-01-17  Richard Guenther  <rguenther@suse.de>
10544
10545         PR tree-optimization/47313
10546         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10547         handling before copying the body.  Properly deal with
10548         by-reference result in SSA form.
10549
10550 2011-01-17  Ian Lance Taylor  <iant@google.com>
10551
10552         PR target/47219
10553         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10554         (struct_value_alias_set): Don't define.
10555         (sparc_option_override): Don't set sparc_sr_alias_set and
10556         struct_value_alias_set.
10557         (save_or_restore_regs): Use gen_frame_mem rather than calling
10558         set_mem_alias_set.
10559         (sparc_struct_value_rtx): Likewise.
10560
10561 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10562
10563         PR target/47318
10564         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10565         (_mm_maskstore_pd): Likewise.
10566         (_mm_maskload_ps): Likewise.
10567         (_mm_maskstore_ps): Likewise.
10568         (_mm256_maskload_pd): Change mask to __m256i.
10569         (_mm256_maskstore_pd): Likewise.
10570         (_mm256_maskload_ps): Likewise.
10571         (_mm256_maskstore_ps): Likewise.
10572
10573         * config/i386/i386-builtin-types.def: Updated.
10574         (ix86_expand_special_args_builtin): Likewise.
10575
10576         * config/i386/i386.c (bdesc_special_args): Update
10577         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10578         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10579         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10580         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10581
10582         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10583         Use <avxpermvecmode> on mask register.
10584         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10585
10586 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10587             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10588             Eric Botcazou  <ebotcazou@adacore.com>
10589
10590         PR target/46655
10591         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10592         if <= USHRT_MAX in 32-bit mode.
10593
10594 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10595
10596         * doc/install.texi (Configuration, Specific): Wrap long
10597         lines in examples.  Allow line wrapping in long options
10598         and URLs where beneficial for PDF output.
10599
10600 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10601
10602         * config/mips/mips.c (mips_classify_symbol): Don't return
10603         SYMBOL_PC_RELATIVE for nonlocal labels.
10604
10605 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10606
10607         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10608
10609 2011-01-15  Jan Hubicka  <jh@suse.cz>
10610
10611         PR tree-optimization/47276
10612         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10613         declarations as needed.
10614
10615 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10616
10617         * common.opt (fdevirtualize): New flag.
10618         * doc/invoke.texi (Option Summary): Document it.
10619         * opts.c (default_options_table): Add devirtualize flag.
10620         * ipa-prop.c (detect_type_change): Return immediately if
10621         devirtualize flag is not set.
10622         (detect_type_change_ssa): Likewise.
10623         (compute_known_type_jump_func): Likewise.
10624         (ipa_analyze_virtual_call_uses): Likewise.
10625
10626 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10627
10628         PR tree-optimization/45934
10629         PR tree-optimization/46302
10630         * ipa-prop.c (type_change_info): New type.
10631         (stmt_may_be_vtbl_ptr_store): New function.
10632         (check_stmt_for_type_change): Likewise.
10633         (detect_type_change): Likewise.
10634         (detect_type_change_ssa): Likewise.
10635         (compute_complex_assign_jump_func): Check for dynamic type change.
10636         (compute_complex_ancestor_jump_func): Likewise.
10637         (compute_known_type_jump_func): Likewise.
10638         (compute_scalar_jump_functions): Likewise.
10639         (ipa_analyze_virtual_call_uses): Likewise.
10640         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10641
10642 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10643
10644         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10645         * config/i386/i386.opt (msse5): New Alias.
10646
10647 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10648
10649         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10650         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10651         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10652         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10653
10654 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10655
10656         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10657         -mcpu options.
10658         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10659         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10660         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10661         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10662         Likewise.
10663         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10664
10665 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10666
10667         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10668
10669 2011-01-14  Mike Stump  <mikestump@comcast.net>
10670
10671         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10672         * config/fr30/fr30.md: Likweise
10673         (movsi_push): Likewise.
10674         (movsi_pop): Likewise.
10675         (enter_func): Likewise.
10676         * config/moxie/moxie.md (movsi_push): Likewise.
10677         (movsi_pop): Likewise.
10678
10679 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10680
10681         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10682         %{no_archive} %{exact_version}.
10683         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10684         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10685         %{no_archive} %{exact_version}.
10686         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10687         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10688         * config/mips/vxworks.h: Likewise.
10689
10690 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10691
10692         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10693
10694 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10695
10696         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10697         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10698
10699 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10700
10701         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10702         -nodefaultlib.
10703
10704 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10705
10706         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10707         for mcpu not cpu.
10708         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10709         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10710         not cpu.
10711         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10712         Don't handle -shlib.
10713
10714 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10715
10716         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10717         (CC1_SPEC): Don't handle -profile.
10718
10719 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10720
10721         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10722         * config/mips/mips.h (CC1_SPEC): Likewise.
10723
10724 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10725
10726         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10727         * config/mips/mips.h (CC1_SPEC): Likewise.
10728
10729 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10730
10731         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10732         * config/m32r/linux.h (LINK_SPEC): Likewise.
10733         * config/mips/linux.h (LINK_SPEC): Likewise.
10734         * config/mips/linux64.h (LINK_SPEC): Likewise.
10735         * config/sparc/linux.h (LINK_SPEC): Likewise.
10736         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10737         LINK_SPEC): Likewise.
10738         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10739
10740 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10741
10742         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10743         %{version:-v}.
10744         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10745
10746 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10747
10748         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10749         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10750
10751 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10752
10753         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10754
10755 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10756
10757         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10758         supports -Bstatic/-Bdynamic.
10759         * configure: Regenerate.
10760
10761 2011-01-14  Jan Hubicka  <jh@suse.cz>
10762             Jack Howarth  <howarth@bromo.med.uc.edu>
10763
10764         PR target/46037
10765         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10766         when checking debug_info_level. Test write_symbols instead of
10767         debug_hooks->var_location when setting flag_var_tracking_uninit.
10768
10769 2011-01-14  Richard Guenther  <rguenther@suse.de>
10770
10771         PR tree-optimization/47179
10772         * target.def (ref_may_alias_errno): New target hook.
10773         * targhooks.h (default_ref_may_alias_errno): Declare.
10774         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10775         (default_ref_may_alias_errno): New function.
10776         * target.h (struct ao_ref_s): Declare.
10777         * tree-ssa-alias.c: Include target.h.
10778         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10779         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10780         (targhooks.o): Likewise.
10781         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10782         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10783
10784 2011-01-14  Richard Guenther  <rguenther@suse.de>
10785
10786         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10787
10788 2011-01-14  Richard Guenther  <rguenther@suse.de>
10789
10790         PR tree-optimization/47280
10791         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10792         return CFG changes.
10793         (tree_ssa_forward_propagate_single_use_vars): Deal with
10794         CFG changes from associate_plusminus.
10795
10796 2011-01-14  Richard Guenther  <rguenther@suse.de>
10797
10798         PR middle-end/47281
10799         Revert
10800         2011-01-11  Richard Guenther  <rguenther@suse.de>
10801
10802         PR tree-optimization/46076
10803         * tree-ssa.c (useless_type_conversion_p): Conversions from
10804         unprototyped to empty argument list function types are useless.
10805
10806 2011-01-14  Richard Guenther  <rguenther@suse.de>
10807
10808         PR tree-optimization/47286
10809         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10810
10811 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10812
10813         PR middle-end/46823
10814         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10815
10816 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10817
10818         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10819         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10820         * config/xtensa/xtensa.c (xtensa_libcall_value,
10821         xtensa_function_value_regno_p): New functions.
10822         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10823
10824 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10825
10826         PR c++/47213
10827         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10828         PE specific hook.
10829         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10830         New function prototype.
10831         * config/i386/winnt.c (i386_pe_assemble_visibility):
10832         Warn only if attribute was specified by user.
10833
10834 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10835
10836         PR target/47251
10837         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10838         floating point.
10839         (floatunsdidf2_fcfidu): Ditto.
10840
10841 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10842
10843         * config/s390/s390.c (print_operand_address): Replace 'error' with
10844         'output_operand_lossage'.
10845         (print_operand): Likewise.
10846
10847 2011-01-13  Jeff Law  <law@redhat.com>
10848
10849         PR rtl-optimization/39077
10850         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10851         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10852         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10853         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10854         * gcse.c (prune_insertions_deletions): New function.
10855         (compute_pre_data): Use it.
10856
10857 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10858
10859         PR debug/PR46973
10860         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10861         static function.
10862         (prune_unused_types_mark): Use it.
10863
10864 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10865
10866         PR rtl-optimization/45352
10867         * sel-sched.c: Update copyright years.
10868         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10869         in the advancing loop when we have issued issue_rate insns.
10870
10871 2011-01-12  Richard Henderson  <rth@redhat.com>
10872
10873         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10874         (TARGET_MD_ASM_CLOBBERS): New.
10875
10876         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10877         (TARGET_DELEGITIMIZE_ADDRESS): New.
10878
10879         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10880         (clzsi2, *bsch): New patterns.
10881
10882         * config/mn10300/mn10300.md (INT): New mode iterator.
10883         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10884
10885         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10886         flag_split_wide_types.
10887
10888         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10889         (mn10300_trampoline_init): Rewrite without a template, an immediate
10890         load and a direct branch.
10891         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10892
10893 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10894
10895         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10896         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10897         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10898         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10899
10900 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10901
10902         PR debug/47209
10903         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10904         of type.
10905
10906 2011-01-12  Jan Hubicka  <jh@suse.cz>
10907
10908         PR driver/47244
10909         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10910         (PLUGIN_COND_CLOSE): New macro.
10911         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10912
10913 2011-01-12  Richard Guenther  <rguenther@suse.de>
10914
10915         PR lto/47259
10916         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10917         register variables in a MEM_REF.
10918
10919 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
10920
10921         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10922         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10923         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10924         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10925         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10926         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10927         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10928         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10929         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10930         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10931         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10932         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10933         * config/gnu-user.h: New.  Copied from linux.h.
10934         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10935         GNU_USER_TARGET_STARTFILE_SPEC.
10936         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10937         GNU_USER_TARGET_ENDFILE_SPEC.
10938         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10939         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10940         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10941         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10942         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10943         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10944         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10945         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10946         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10947         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10948         * config/arm/linux-eabi.h (CC1_SPEC): Use
10949         GNU_USER_TARGET_CC1_SPEC.
10950         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10951         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10952         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10953         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10954         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10955         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10956         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10957         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10958
10959 2011-01-12  Richard Guenther  <rguenther@suse.de>
10960
10961         PR other/46946
10962         * doc/invoke.texi (ffast-math): Document it is turned on
10963         with -Ofast.
10964
10965 2011-01-12  Jan Hubicka  <jh@suse.cz>
10966
10967         PR tree-optimization/47233
10968         * opts.c (common_handle_option): Disable ipa-reference with profile
10969         feedback.
10970
10971 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10972
10973         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10974         error message.
10975
10976 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10977
10978         * c-parser.c (c_lex_one_token): Updated and reindented some
10979         comments.  No changes in code.
10980
10981 2011-01-11  Ian Lance Taylor  <iant@google.com>
10982
10983         * godump.c (go_output_var): Don't output the variable if there is
10984         already a type with the same name.
10985
10986 2011-01-11  Ian Lance Taylor  <iant@google.com>
10987
10988         * godump.c (go_format_type): Don't generate float80.
10989
10990 2011-01-11  Richard Henderson  <rth@redhat.com>
10991
10992         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
10993         declaration.  Rewrite for both speed and size.
10994         (mn10300_address_cost_1): Remove.
10995         (mn10300_register_move_cost): New.
10996         (mn10300_memory_move_cost): New.
10997         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
10998         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
10999         extensions, shifts, BSWAP, CLZ.
11000         (mn10300_wide_const_load_uses_clr): Remove.
11001         (TARGET_REGISTER_MOVE_COST): New.
11002         (TARGET_MEMORY_MOVE_COST): New.
11003         * config/mn10300/mn10300-protos.h: Update.
11004         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11005
11006         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11007         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11008         * config/mn10300/mn10300-protos.h: Update.
11009         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11010         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11011         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11012         (*test_int_bitfield, *test_byte_bitfield): Remove.
11013         (*bit_test, *subreg_bit_test): Remove.
11014         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11015
11016         * config/mn10300/constraints.md ("c"): Rename from "A".
11017         ("A", "D"): New constraint letters.
11018         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11019         (fmssf4, fnmasf4, fnmssf4): Likewise.
11020
11021         * config/mn10300/mn10300.md (isa): New attribute.
11022         (enabled): New attribute.
11023
11024         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11025         (abssf2, negsf2): Define only for hardware fp.
11026         (sqrtsf2): Reformat.
11027         (addsf3, subsf3, mulsf3): Merge expander and insn.
11028
11029         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11030         (DEBUGGER_AUTO_OFFSET): Remove.
11031         (DEBUGGER_ARG_OFFSET): Remove.
11032
11033         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11034         Emit register stores with the same offsets as the hardware.
11035         (mn10300_store_multiple_operation): Don't check that the register
11036         save offsets are monotonic.
11037         * config/mn10300/mn10300-protos.h: Update.
11038
11039         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11040
11041         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11042         in terms of the value on the stack, not the MDR register.
11043
11044 2011-01-11  Jan Hubicka  <jh@suse.cz>
11045
11046         PR lto/45721
11047         PR lto/45375
11048         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11049         (symbol_alias_set_destroy, symbol_alias_set_contains,
11050         propagate_aliases_backward): Declare.
11051         * lto-streamer-out.c (struct sets): New sturcture.
11052         (trivally_defined_alias): New function.
11053         (output_alias_pair_p): Rewrite.
11054         (output_unreferenced_globals): Fix output of alias pairs.
11055         (produce_symtab): Likewise.
11056         * ipa.c (function_and_variable_visibility): Set weak alias destination
11057         as needed in lto.
11058         * varasm.c (symbol_alias_set_t): Remove.
11059         (symbol_alias_set_destroy): Export.
11060         (propagate_aliases_forward, propagate_aliases_backward): New functions
11061         based on ...
11062         (compute_visible_aliases): ... this one; remove.
11063         (trivially_visible_alias): New
11064         (trivially_defined_alias): New.
11065         (remove_unreachable_alias_pairs): Rewrite.
11066         (finish_aliases_1): Reorganize code checking if alias is defined.
11067         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11068         in LTO mode.
11069
11070 2011-01-11  Richard Guenther  <rguenther@suse.de>
11071
11072         PR tree-optimization/46076
11073         * tree-ssa.c (useless_type_conversion_p): Conversions from
11074         unprototyped to empty argument list function types are useless.
11075
11076 2011-01-11  Richard Guenther  <rguenther@suse.de>
11077
11078         PR middle-end/45235
11079         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11080         volatile MEMs as MEM_READONLY_P.
11081
11082 2011-01-11  Richard Guenther  <rguenther@suse.de>
11083
11084         PR tree-optimization/47239
11085         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11086
11087 2011-01-11  Jeff Law  <law@redhat.com>
11088
11089         PR tree-optimization/47086
11090         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11091         IVs from statements that might throw.
11092
11093 2011-01-10  Jan Hubicka  <jh@suse.cz>
11094
11095         PR lto/45375
11096         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11097
11098 2011-01-10  Jan Hubicka  <jh@suse.cz>
11099
11100         PR lto/45375
11101         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11102         when correcting profile.
11103
11104 2011-01-10  Jan Hubicka  <jh@suse.cz>
11105
11106         PR lto/46083
11107         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11108         DECL_FINI_PRIORITY.
11109         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11110         Restore DECL_FINI_PRIORITY.
11111
11112 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11113
11114         * doc/gimple.texi: Fix quoting of multi-word return values in
11115         @deftypefn statements.  Ensure presence of return value.  Wrap
11116         overlong @deftypefn lines.
11117         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11118         descriptions of removed functions.
11119         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11120         of multi-word return value in @deftypefn statement.
11121
11122 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11123
11124         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11125         (Conditional Expressions, Logical Operators)
11126         (Statement and operand traversals): Do not indent smallexample
11127         code.  Fix duplicate function argument in example.
11128
11129 2011-01-10  Jeff Law  <law@redhat.com>
11130
11131         PR tree-optimization/47141
11132         * ipa-split.c (split_function): Handle case where we are
11133         returning a value and the return block has a virtual operand phi.
11134
11135 2011-01-10  Jan Hubicka  <jh@suse.cz>
11136
11137         PR tree-optimization/47234
11138         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11139         (pass_feedback_split_functions): Declare.
11140         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11141         tree-profile.
11142         * ipa-split.c (gate_split_functions): Update comments; disable
11143         split-functions for profile_arc_flag and branch_probabilities.
11144         (gate_feedback_split_functions): New function.
11145         (execute_feedback_split_functions): New function.
11146         (pass_feedback_split_functions): New global var.
11147
11148 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11149
11150         PR lto/46760
11151         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11152         calling gimple_call_set_cannot_inline.
11153
11154 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11155
11156         * config/darwin-sections.def: Remove unused section.
11157
11158 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11159
11160         PR c++/47218
11161         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11162
11163 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11164
11165         PR objc/47232
11166         * c-parser.c (c_parser_declaration_or_fndef): Improved
11167         error message.
11168
11169 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11170
11171         * config/i386/winnt.c (i386_pe_start_function): Make sure
11172         to switch back to function's section.
11173
11174 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11175
11176         PR gcc/46902
11177         PR testsuite/46912
11178         * plugin.c: Move include of dlfcn.h from here...
11179         * system.h: ... to here.
11180
11181 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11182
11183         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11184         file name.
11185         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11186         two extra empty pages in PDF output.
11187
11188 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11189
11190         PR objc/47078
11191         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11192         for error recovery purposes behave as if it was not specified so
11193         that the default type is usd.
11194
11195 2011-01-07  Jan Hubicka  <jh@suse.cz>
11196
11197         PR tree-optmization/46469
11198         * ipa.c (function_and_variable_visibility): Clear needed flags on
11199         nodes with external decls; handle weakrefs merging correctly.
11200
11201 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11202
11203         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11204         not false.
11205
11206 2011-01-07  Jan Hubicka  <jh@suse.cz>
11207
11208         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11209         and no longer claim that gold is required for linker plugin.
11210         * configure: Regenerate.
11211         * gcc.c (PLUGIN_COND): New macro.
11212         (LINK_COMMAND_SPEC): Use it.
11213         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11214         * config.in (HAVE_LTO_PLUGIN): New.
11215         * configure.ac (--with-lto-plugin): New parameter; autodetect
11216         HAVE_LTO_PLUGIN.
11217
11218 2011-01-07  Jan Hubicka  <jh@suse.cz>
11219
11220         PR tree-optimization/46367
11221         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11222         when we can update original.
11223         (cgraph_mark_inline_edge): Sanity check.
11224         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11225
11226 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11227
11228         * config/spu/spu.h (ASM_COMMENT_START): Define.
11229
11230 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11231
11232         PR driver/42445
11233         * gcc.c (%>S): New.
11234         (SWITCH_KEEP_FOR_GCC): Likewise.
11235         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11236         (do_spec_1): Handle "%>".
11237
11238         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11239
11240 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11241
11242         PR target/47201
11243         * config/i386/i386.c (ix86_delegitimize_address): If
11244         simplify_gen_subreg fails, return orig_x.
11245
11246         PR bootstrap/47187
11247         * value-prof.c (gimple_stringop_fixed_value): Handle
11248         lhs of the call properly.
11249
11250 2011-01-07  Jan Hubicka  <jh@suse.cz>
11251
11252         PR lto/45375
11253         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11254
11255 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11256
11257         * target.def (function_switched_text_sections): New hook.
11258         * doc/tm.texi: Regenerated.
11259         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11260         * final.c (default_function_switched_text_sections): New.
11261         (final_scan_insn): Call function_switched_text_sections when a
11262         mid-function section change occurs.
11263         * output.h (default_function_switched_text_sections): Declare.
11264         * config/darwin-protos.h (darwin_function_switched_text_sections):
11265         Likewise.
11266         * config/darwin.c (darwin_function_switched_text_sections): New.
11267         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11268
11269 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11270
11271         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11272         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11273         the secondary code fragment when outputting for DWARF == 2.
11274
11275 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11276
11277         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11278         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11279         Remove.
11280         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11281         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11282
11283 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11284
11285         PR debug/46704
11286         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11287         when it is not empty.
11288
11289 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11290
11291         Bobcat Enablement
11292         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11293         (case ${target}): Add btver1.
11294         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11295         -march=native recognize btver1 processors.
11296         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11297         btver1 def_and_undef
11298         * config/i386/i386.c (struct processor_costs btver1_cost): New
11299         btver1 cost table.
11300         (m_BTVER1): New definition.
11301         (m_AMD_MULTIPLE): Includes m_BTVER1.
11302         (initial_ix86_tune_features): Add btver1 tune.
11303         (processor_target_table): Add btver1 entry.
11304         (static const char *const cpu_names): Add btver1 entry.
11305         (software_prefetching_beneficial_p): Add btver1.
11306         (ix86_option_override_internal): Add btver1 instruction sets.
11307         (ix86_issue_rate): Add btver1.
11308         (ix86_adjust_cost): Add btver1.
11309         * config/i386/i386.h (TARGET_BTVER1): New definition.
11310         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11311         (enum processor_type): Add PROCESSOR_BTVER1.
11312         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11313
11314 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11315
11316         PR target/43309
11317         * config/i386/i386.c (legitimize_tls_address)
11318         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11319         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11320         (tls_initial_exec_64_sun): New pattern.
11321
11322 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11323
11324         * doc/invoke.texi (Overall Options): Improve wording and markup
11325         of the description of -wrapper.
11326
11327 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11328
11329         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11330         rdynamic, threads): New Driver options.
11331
11332 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11333
11334         PR target/38118
11335         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11336         if coming from .tdata.
11337         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11338
11339 2011-01-06  Jan Hubicka  <jh@suse.cz>
11340
11341         PR lto/47188
11342         * collect2.c (main): Do not enable LTOmode when plugin is active.
11343
11344 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11345
11346         PR other/45915
11347         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11348         --version output if supported.
11349         * configure: Regenerate.
11350
11351 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11352
11353         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11354         Driver options.
11355
11356 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11357
11358         PR c/47150
11359         * c-convert.c (convert): When converting a complex expression
11360         other than COMPLEX_EXPR to a different complex type, ensure
11361         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11362         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11363         when converting COMPLEX_TYPE.
11364
11365 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11366
11367         PR tree-optimization/47139
11368         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11369         only the last reduction value is used outside the loop.  Update
11370         documentation.
11371
11372 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11373
11374         * config/rtems.opt: New.
11375         * config.gcc (*-*-rtems*): Use rtems.opt.
11376
11377 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11378
11379         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11380         processors do not support 3DNow instructions.
11381
11382 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11383
11384         * config/spu/spu.c (spu_option_override): Set parameter
11385         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11386
11387 2011-01-05  Jan Hubicka  <jh@suse.cz>
11388
11389         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11390         at the command line.
11391
11392 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11393
11394         PR lto/47162
11395         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11396         deltas on streamed outgoing edges.
11397         (output_node_opt_summary): Output info for outgoing edges only when
11398         the node is in new parameter set.
11399         (output_cgraph_opt_summary): New parameter set, passed to the two
11400         aforementioned functions.  Update its forward declaration and its
11401         callee too.
11402
11403 2011-01-05  Tom Tromey  <tromey@redhat.com>
11404
11405         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11406         operator to c_finish_omp_atomic.
11407         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11408         (build_unary_op): Update.
11409         (build_modify_expr): Update.
11410         (build_asm_expr): Update.
11411
11412 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11413
11414         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11415         newly inserted insns.
11416         (pad_bb): Likewise.
11417         (spu_emit_branch_hint): Likewise.
11418         (insert_hbrp_for_ilb_runout): Likewise.
11419         (spu_machine_dependent_reorg): Call df_finish_pass after
11420         schedule_insns returns.
11421
11422 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11423
11424         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11425
11426 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11427
11428         PR tree-optimization/47005
11429         * tree-sra.c (struct access): Add 'non_addressable' bit.
11430         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11431         (decide_one_param_reduction): Return 0 if the parameter is passed by
11432         reference and one of the accesses in the group is non_addressable.
11433
11434 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11435
11436         PR tree-optimization/47056
11437         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11438         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11439         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11440
11441 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11442
11443         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11444         initializer.  Skip view conversions from aggregate types.
11445
11446 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11447
11448         PR bootstrap/47055
11449         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11450
11451 2011-01-04  Philipp Thomas  <pth@suse.de>
11452
11453         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11454         obvious typo.
11455
11456 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11457
11458         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11459         on empty epilogue sequences.
11460
11461 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11462
11463         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11464         non-static): New Driver options.
11465
11466 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11467
11468         PR driver/47137
11469         * gcc.c (default_compilers[]): Set combinable field to 0
11470         for all assembly languages.
11471
11472 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11473
11474         * config/mips/loongson3a.md: New file.
11475         * config/mips/mips.md: Include loongson3a.md.
11476         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11477         TUNE_LOONGSON_3A.
11478
11479 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11480
11481         PR middle-end/47017
11482         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11483         instead of convert_memory_address_addr_space on the base expression.
11484
11485 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11486
11487         * config/spu/spu.c (spu_option_override): Update error text
11488         for bad -march= / -mtune= values.
11489
11490 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11491
11492         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11493         if branch-hint optimization will be performed.
11494
11495 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11496
11497         PR tree-optimization/47148
11498         * ipa-split.c (split_function): Convert arguments to
11499         DECL_ARG_TYPE if possible.
11500
11501         PR tree-optimization/47155
11502         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11503         when computing uns.
11504
11505         PR rtl-optimization/47157
11506         * combine.c (try_combine): If undobuf.other_insn becomes
11507         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11508         and set *new_direct_jump_p too.
11509
11510 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11511
11512         PR tree-optimization/47021
11513         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11514
11515 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11516
11517         * gcc.c (process_command): Update copyright notice dates.
11518         * gcov.c (print_version): Likewise.
11519         * gcov-dump.c (print_version): Likewise.
11520         * mips-tfile.c (main): Likewise.
11521         * mips-tdump.c (main): Likewise.
11522
11523 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11524
11525         PR tree-optimization/46801
11526         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11527         aggregate fields start at byte boundary instead of the bit-field flag.
11528
11529 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11530
11531         PR driver/47137
11532         * gcc.c (main): Revert revision 168407.
11533
11534 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11535
11536         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11537
11538 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11539
11540         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11541         vector optab to expand vector/scalar shift, update gimple to vector.
11542
11543 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11544
11545         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11546         a thunk.
11547
11548 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11549
11550         PR tree-optimization/46984
11551         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11552         HOST_WIDE_INT.
11553         (cgraph_create_indirect_edge): Fixed line length.
11554         (cgraph_indirect_call_info): Declare.
11555         (cgraph_make_edge_direct) Update declaration.
11556         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11557         (cgraph_create_indirect_edge): Use it.
11558         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11559         callees.
11560         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11561         the new thunk_delta representation.
11562         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11563         HOST_WIDE_INT.
11564         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11565         (ipa_read_indirect_edge_info): Likewise.
11566         * lto-cgraph.c (output_edge_opt_summary): New function.
11567         (output_node_opt_summary): Call it on all outgoing edges.
11568         (input_edge_opt_summary): New function.
11569         (input_node_opt_summary): Call it on all outgoing edges.
11570
11571 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11572
11573         PR driver/47137
11574         * gcc.c (main): Don't check have_o when settting combine_inputs.
11575
11576 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11577
11578         * regrename.c: Add general comment describing the pass.
11579         (struct du_head): Remove 'length' field.
11580         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11581         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11582         Force renaming to the preferred class (if any) in the first pass and do
11583         not consider registers that belong to it in the second pass.
11584         (create_new_chain): Do not set 'length' field.
11585         (scan_rtx_reg): Likewise.
11586
11587 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11588
11589         PR tree-optimization/47140
11590         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11591         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11592         to bit_value_binop.
11593
11594         PR rtl-optimization/47028
11595         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11596         parm_birth_insn instead of at the beginning of first bb.
11597
11598 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11599
11600         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11601         Remove the word "see" before "@pxref".
11602         * doc/rtl.texi: Remove the word "see" before "@pxref".
11603
11604 2011-01-01  Jan Hubicka  <jh@suse.cz>
11605
11606         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11607         memory.
11608
11609 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11610
11611         PR target/38662
11612         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11613
11614 \f
11615 Copyright (C) 2011 Free Software Foundation, Inc.
11616
11617 Copying and distribution of this file, with or without modification,
11618 are permitted in any medium without royalty provided the copyright
11619 notice and this notice are preserved.