OSDN Git Service

* gengtype-state.c (read_a_state_token): Fix argument to
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
2             Jeff Law  <law@redhat.com>
3
4         * gengtype-state.c (read_a_state_token): Fix argument to 
5         obstack_free.
6         * gengtype.c (matching_file_name_substitute): Likewise.
7
8 2011-04-21  Richard Guenther  <rguenther@suse.de>
9
10         PR lto/48703
11         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
12         DECL_NAME.
13
14 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
15
16         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
17
18 2011-04-21  Richard Guenther  <rguenther@suse.de>
19
20         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
21         file name.
22
23 2011-04-21  Richard Guenther  <rguenther@suse.de>
24
25         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
26         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
27         Use DECL_P, not SSA_VAR_P.
28         (ptr_derefs_may_alias_p): Likewise.
29         (ptr_deref_may_alias_ref_p_1): Likewise.
30         (decl_refs_may_alias_p): Likewise.
31         (refs_may_alias_p_1): Likewise.
32         (ref_maybe_used_by_call_p_1): Likewise.
33         (call_may_clobber_ref_p_1): Likewise.
34         (indirect_ref_may_alias_decl_p): Assume indirect refrences
35         are either MEM_REF or TARGET_MEM_REF.
36         (indirect_refs_may_alias_p): Likewise.
37         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
38         for MEM_EXPR of indirect calls.
39
40 2011-04-21  Tristan Gingold  <gingold@adacore.com>
41
42         * vmsdbgout.c (write_srccorr): Compute file length from the string.
43         (dst_file_info_struct): Remove flen field.
44         (lookup_filename): Remove code that set flen field.
45
46 2011-04-21  Tristan Gingold  <gingold@adacore.com>
47
48         * config/ia64/ia64.c (ia64_start_function): Add a guard.
49
50 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
51
52         PR target/48708
53         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
54         vec_extract and vec_concat for non-SSE4_1 targets.
55
56 2011-04-21  Richard Guenther  <rguenther@suse.de>
57
58         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
59         return statements.
60
61 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
62
63         * config/i386/cygming.h (union tree_node, TREE): Don't define or
64         undefine.
65         (FILE): Don't undefine.
66
67 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
68
69         * config/alpha/alpha.c (struct machine_function): Use rtx, not
70         struct rtx_def *.
71         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
72         struct rtx_def *.
73         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
74         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
75         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
76         rtx_def *.
77         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
78         definitions where used.
79         * config/microblaze/microblaze.h (struct microblaze_args): Use
80         rtx, not struct rtx_def *.
81         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
82         rtx_def *.
83         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
84         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
85         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
86         not struct rtx_def *.
87         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
88         struct rtx_def *.
89         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
90         rtx_def *.
91         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
92
93 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
94
95         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
96         operand_equal_p to compare DR_BASE_ADDRESSes.
97         (vect_check_interleaving): Likewise.
98
99 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
100
101         PR target/46329
102         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
103         for all Neon struct constants.
104
105 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
106
107         * target.def (legitimate_constant_p): New hook.
108         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
109         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
110         * doc/tm.texi: Regenerate.
111         * hooks.h (hook_bool_mode_rtx_true): Declare.
112         * hooks.c (hook_bool_mode_rtx_true): Define.
113         * system.h (LEGITIMATE_CONSTANT_P): Poison.
114         * calls.c (precompute_register_parameters): Replace uses of
115         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
116         (emit_library_call_value_1): Likewise.
117         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
118         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
119         * ira-costs.c (scan_one_insn): Likewise.
120         * recog.c (general_operand, immediate_operand): Likewise.
121         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
122         * reload1.c (init_eliminable_invariants): Likewise.
123
124         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
125         mode argument.
126         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
127         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
128         argument.
129         (TARGET_LEGITIMATE_CONSTANT_P): Define.
130         * config/alpha/predicates.md (input_operand): Update call to
131         alpha_legitimate_constant_p.
132
133         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
134         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
135         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
136         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
137         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
138         (arm_legitimate_constant_p): New functions.
139         (arm_cannot_force_const_mem): Make static.
140
141         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
142
143         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
144         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
145         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
146         instead of bfin_legitimate_constant_p.
147         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
148         (TARGET_LEGITIMATE_CONSTANT_P): Define.
149
150         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
151
152         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
153
154         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
155         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
156         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
157         (frv_legitimate_constant_p): Make static.  Add a mode argument.
158
159         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
160         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
161         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
162
163         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
164         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
165         * config/i386/i386.c (legitimate_constant_p): Rename to...
166         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
167         argument.
168         (ix86_cannot_force_const_mem): Update accordingly.
169         (ix86_legitimate_address_p): Likewise.
170         (TARGET_LEGITIMATE_CONSTANT_P): Define.
171         * config/i386/i386.md: Update commentary.
172
173         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
174         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
175         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
176         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
177
178         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
179
180         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
181         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
182         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
183         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
184
185         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
186         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
187         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
188
189         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
190         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
191         (m32r_legitimate_constant_p): New function.
192
193         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
194         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
195         LEGITIMATE_CONSTANT_P.
196         (LEGITIMATE_CONSTANT_P): Delete.
197         * config/m68k/m68k.c (m68k_expand_prologue): Call
198         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
199         (m68k_legitimate_constant_p): New function.
200         * config/m68k/m68k.md: Update comments.
201
202         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
203         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
204         (mcore_legitimate_constant_p): New function.
205
206         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
207         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
208         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
209         Add a mode argument.
210         (mep_legitimate_address): Update accordingly.
211         (TARGET_LEGITIMATE_CONSTANT_P): Define.
212
213         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
214         Delete.
215         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
216         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
217         static.  Check OP's mode for VOIDmode.
218         (microblaze_legitimate_constant_p): New function.
219         (TARGET_LEGITIMATE_CONSTANT_P): Define.
220
221         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
222         * config/mips/mips.c (mips_legitimate_constant_p): New function.
223         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
224         (TARGET_LEGITIMATE_CONSTANT_P): Define.
225         * config/mips/predicates.md: Update comments.
226
227         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
228         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
229         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
230         (mmix_legitimate_constant_p): Make static, return a bool, and take
231         a mode argument.
232         (mmix_print_operand_address): Update accordingly.
233
234         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
235         Delete.
236         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
237         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
238         static.  Add a mode argument.
239         (TARGET_LEGITIMATE_CONSTANT_P): Define.
240
241         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
242
243         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
244         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
245         (pa_legitimate_constant_p): New function.
246
247         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
248
249         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
250         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
251         (pdp11_legitimate_constant_p): New function.
252
253         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
254         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
255         (rs6000_legitimate_constant_p): New function.
256
257         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
258         (rx_legitimate_constant_p): ...this.
259         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
260         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
261         (rx_legitimate_constant_p): ...this.
262         (TARGET_LEGITIMATE_CONSTANT_P): Define.
263         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
264
265         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
266         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
267         * config/s390/s390.c (legitimate_constant_p): Rename to...
268         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
269         and add a mode argument.
270         (TARGET_LEGITIMATE_CONSTANT_P): Define.
271
272         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
273
274         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
275         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
276         (sh_legitimate_constant_p): New function.
277
278         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
279         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
280         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
281         (legitimate_constant_p): Rename to...
282         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
283         argument.
284         (constant_address_p): Update accordingly.
285
286         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
287         argument and return a bool.
288         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
289         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
290         (spu_legitimate_constant_p): Add a mode argument and return a bool.
291         (spu_rtx_costs): Update accordingly.
292         * config/spu/predicates.md (vec_imm_operand): Likewise.
293
294         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
295
296         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
297         * config/v850/v850.c (v850_legitimate_constant_p): New function.
298         (TARGET_LEGITIMATE_CONSTANT_P): Define.
299
300         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
301         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
302         * config/vax/vax.c (legitimate_constant_p): Likewise.
303
304         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
305         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
306         (xtensa_legitimate_constant_p): New function.
307
308 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
309
310         * target.def (cannot_force_const_mem): Add a mode argument.
311         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
312         * doc/tm.texi: Regenerate.
313         * hooks.h (hook_bool_mode_rtx_false): Declare.
314         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
315         (hook_bool_mode_const_rtx_true): Likewise.
316         (hook_bool_mode_rtx_false): New function.
317         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
318         to be non-VOID.  Update call to cannot_force_const_mem.
319         (find_reloads): Update accordingly.
320         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
321         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
322         argument.
323         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
324         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
325         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
326         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
327         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
328         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
329         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
330         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
331         (m68k_cannot_force_const_mem): ...this new function.
332         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
333         argument.
334         (mips_const_insns, mips_legitimize_const_move): Update calls.
335         (mips_secondary_reload_class): Likewise.
336         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
337         (pa_cannot_force_const_mem): ...this new function.
338         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
339         (rs6000_cannot_force_const_mem): ...this new function.
340         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
341         argument.
342         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
343         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
344         to...
345         (xtensa_cannot_force_const_mem): ...this new function.
346
347 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
348
349         * config/mips/mips.c (mips16_build_function_stub): Call
350         build_function_type_list instead of build_function_type.
351         (mips16_build_call_stub): Likewise.
352
353 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
354
355         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
356         instead of build_function_type.
357
358 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
359
360         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
361         instead of build_function_type.
362
363 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
364
365         PR target/48678
366         * config/i386/i386.md (insv): Change operand 0 constraint to
367         "register_operand".  Change operand 1 and 2 constraint to
368         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
369         * config/i386/sse.md (sse4_1_pinsrb): Export.
370         (sse2_pinsrw): Ditto.
371         (sse4_1_pinsrd): Ditto.
372         (sse4_1_pinsrq): Ditto.
373         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
374         * config/i386/i386.c (ix86_expand_pinsr): New.
375
376 2011-04-20  Easwaran Raman  <eraman@google.com>
377
378         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
379         containing union type only with -fstrict-aliasing.
380
381 2011-04-20  Jim Meyering  <meyering@redhat.com>
382
383         Remove useless if-before-free tests.
384         * calls.c (expand_call, save_area): Likewise.
385         * cfgcleanup.c (try_forward_edges): Likewise.
386         * collect2.c (collect_execute): Likewise.
387         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
388         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
389         * coverage.c (coverage_checksum_string): Likewise.
390         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
391         * cselib.c (cselib_init): Likewise.
392         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
393         (df_set_clean_cfg): Likewise.
394         * function.c (free_after_compilation): Likewise.
395         * gcc.c (do_spec_1, main): Likewise.
396         * gcov.c (create_file_names): Likewise.
397         * gensupport.c (identify_predicable_attribute): Likewise.
398         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
399         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
400         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
401         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
402         * ipa-pure-const.c (local_pure_const): Likewise.
403         * ipa-reference.c (propagate): Likewise.
404         * ira-costs.c (free_ira_costs): Likewise.
405         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
406         * matrix-reorg.c (mat_free): Likewise.
407         * prefix.c (get_key_value): Likewise.
408         * profile.c (compute_value_histograms): Likewise.
409         * reload1.c (free_reg_equiv): Likewise.
410         * sched-deps.c (free_deps): Likewise.
411         * sel-sched-ir.c (fence_clear): Likewise.
412         * sese.c (set_rename, if_region_set_false_region): Likewise.
413         * tree-data-ref.c (free_rdg): Likewise.
414         * tree-eh.c (lower_try_finally): Likewise.
415         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
416         * tree-ssa-live.c (delete_var_map): Likewise.
417         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
418         * tree-ssa-pre.c (phi_trans_add): Likewise.
419
420 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
421
422         PR tree-optimization/48611
423         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
424         beyond ERT_MUST_NOT_THROW region.
425
426 2011-04-20  Catherine Moore  <clm@codesourcery.com>
427
428         * config/mips/mips.opt (mfix-24k): New.
429         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
430         * config/mips/mips.md (length): Increase by 4 for stores if
431         fixing 24K errata.
432         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
433         all noreorder if fixing 24K errata.
434         * doc/invoke.texi: Document mfix-24k.
435
436 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
437
438         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
439         quad-word modes, reduce to 9-bit index range when above 1016 limit.
440
441 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
442
443         * config/arm/arm.c (arm_gen_constant): Move movw support ....
444         (const_ok_for_op): ... to here.
445
446 2011-04-20  Kai Tietz  <ktietz@redhat.com>
447
448         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
449         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
450
451 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
452
453         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
454
455 2011-04-20  Richard Guenther  <rguenther@suse.de>
456
457         PR tree-optimization/47892
458         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
459         are if-convertible.
460
461 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
462
463         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
464
465 2011-04-20  Tristan Gingold  <gingold@adacore.com>
466
467         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
468
469 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
470
471         PR target/18145
472
473         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
474         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
475         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
476         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
477         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
478
479         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
480         New prototype.
481
482         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
483         (avr_asm_named_section, avr_asm_output_aligned_common,
484         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
485         New functions to update...
486         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
487         (avr_asm_init_sections): Overwrite section callbacks for
488         data_section, bss_section.
489         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
490         from here to...
491         (avr_file_end): ...here.
492
493 2011-04-20  Richard Guenther  <rguenther@suse.de>
494
495         PR middle-end/48695
496         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
497         objects and types here.  Adjust for their offset before comparing.
498
499 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
500
501         * tree-vect-stmts.c (vectorizable_store): Only chain one related
502         statement per copy.
503
504 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
505
506         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
507         (GIMPLE_H): Include $(INTERNAL_FN_H).
508         (OBJS-common): Add internal-fn.o.
509         (internal-fn.o): New rule.
510         * internal-fn.def: New file.
511         * internal-fn.h: Likewise.
512         * internal-fn.c: Likewise.
513         * gimple.h: Include internal-fn.h.
514         (GF_CALL_INTERNAL): New gf_mask.
515         (gimple_statement_call): Put fntype into a union with a new
516         internal_fn field.
517         (gimple_build_call_internal): Declare.
518         (gimple_build_call_internal_vec): Likewise.
519         (gimple_call_same_target_p): Likewise.
520         (gimple_call_internal_p): New function.
521         (gimple_call_internal_fn): Likewise.
522         (gimple_call_fntype): Return null for internal calls.
523         (gimple_call_set_fntype): Assert that the function is not internal.
524         (gimple_call_set_fn): Likewise.
525         (gimple_call_set_fndecl): Likewise.
526         (gimple_call_set_internal_fn): New function.
527         (gimple_call_addr_fndecl): Handle null functions.
528         (gimple_call_return_type): Likewise null types.
529         * gimple.c (gimple_build_call_internal_1): New function.
530         (gimple_build_call_internal): Likewise.
531         (gimple_build_call_internal_vec): Likewise.
532         (gimple_call_same_target_p): Likewise.
533         (gimple_call_flags): Handle calls to internal functions.
534         (gimple_call_fnspec): New function.
535         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
536         (gimple_has_side_effects): Handle null functions.
537         (gimple_rhs_has_side_effects): Likewise.
538         (gimple_call_copy_skip_args): Handle calls to internal functions.
539         * cfgexpand.c (expand_call_stmt): Likewise.
540         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
541         * gimple-fold.c (gimple_fold_call): Handle null functions.
542         (gimple_fold_stmt_to_constant_1): Don't fold
543         calls to internal functions.
544         * gimple-low.c (gimple_check_call_args): Handle calls to internal
545         functions.
546         * gimple-pretty-print.c (dump_gimple_call): Likewise.
547         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
548         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
549         (do_warn_unused_result): Likewise.
550         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
551         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
552         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
553         the target of a call.
554         (initialize_hash_element): Update accordingly.
555         (hashable_expr_equal_p): Use gimple_call_same_target_p.
556         (iterative_hash_hashable_expr): Handle calls to internal functions.
557         (print_expr_hash_elt): Likewise.
558         * tree-ssa-pre.c (can_value_number_call): Likewise.
559         (eliminate): Handle null functions.
560         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
561         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
562         (find_func_aliases): Likewise.
563         * value-prof.c (gimple_ic_transform): Likewise.
564         (gimple_indirect_call_to_profile): Likewise.
565         * lto-streamer-in.c (input_gimple_stmt): Likewise.
566         * lto-streamer-out.c (output_gimple_stmt): Likewise.
567
568 2011-04-19  Jan Hubicka  <jh@suse.cz>
569
570         * ipa-inline-transform.c (save_inline_function_body): Add comments.
571         * ipa-inline.c (inline_small_functions): Compute summaries first,
572         populate heap later.
573
574 2011-04-19  Jan Hubicka  <jh@suse.cz>
575
576         * cgraph.h (save_inline_function_body): Remove.
577         * ipa-inline-transform.c: New file, broke out of...
578         * ipa-inline.c: ... this one; Update toplevel comment.
579         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
580         make global.
581         (update_noncloned_frequencies): Move to ipa-inline-transform.c
582         (cgraph_mark_inline_edge): Rename to inline_call; move to
583         ipa-inline-transform.c.
584         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
585         move to ipa-inline-transform.c
586         (recursive_inlining, inline_small_functions, flatten_function,
587         ipa_inline, inline_always_inline_functions,
588         early_inline_small_functions): Update.
589         (inline_transform): Move to ipa-inline-transform.c.
590         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
591         Declare.
592         * Makefile.in (ipa-inline-transform.o): New file.
593         * cgraphunit.c (save_inline_function_body): Move to
594         ipa-inline-transform.c
595
596 2011-04-19  DJ Delorie  <dj@redhat.com>
597
598         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
599         registers if we already know there aren't any.
600         (m32c_emit_epilogue): Don't emit a barrier here.
601         (m32c_emit_eh_epilogue): Likewise.
602         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
603         operands at expand time.
604         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
605         int" wchar type.
606         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
607         duplicates.  Provide aliases instead.
608         * config/m32c/prologue.md (eh_return): Emit a barrier here.
609         (eh_epilogue): Add a "(return)" here as a hint to other parts of
610         the compiler.
611
612 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
613
614         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
615         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
616         (general_or_i64_p, sparc_register_move_cost): New function.
617
618 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
619
620         * doc/install.texi (Configuration, --enable-threads): Remove mach.
621         Add lynx, mipssde.  Sort table.
622
623 2011-04-19  Xinliang David Li  <davidxl@google.com>
624
625         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
626         not negative.
627
628 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
629
630         PR target/48678
631         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
632         is a SUBREG with non-MODE_INT mode inside of it.
633
634 2011-04-19  Martin Jambor  <mjambor@suse.cz>
635
636         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
637         also according to actual contants.
638         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
639         (gimple_fold_call): Use it.
640         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
641
642 2011-04-19  Martin Jambor  <mjambor@suse.cz>
643
644         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
645         non-pointer assignments.
646
647 2011-04-19  Martin Jambor  <mjambor@suse.cz>
648
649         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
650         account anc_offset and otr_type from the indirect edge info.
651         * ipa-prop.c (get_ancestor_addr_info): New function.
652         (compute_complex_ancestor_jump_func): Assignment analysis moved to
653         get_ancestor_addr_info, call it.
654         (ipa_note_param_call): Do not initialize information about polymorphic
655         calls, return the indirect call graph edge.  Remove the last
656         parameter, adjust all callers.
657         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
658         parameters.  Initialize polymorphic information in the indirect edge.
659
660 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
661
662         PR lto/48148
663         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
664         the types if they have different enumeration identifiers.
665
666 2011-04-19  Jan Hubicka  <jh@suse.cz>
667
668         * cgraph.h (cgraph_optimize_for_size_p): Declare.
669         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
670         * predict.c (cgraph_optimize_for_size_p): Break out from ...
671         (optimize_function_for_size_p) ... here.
672
673 2011-04-19  Richard Guenther  <rguenther@suse.de>
674
675         PR lto/48207
676         * tree.c (free_lang_data): Do not reset the decl-assembler-name
677         langhook.
678
679 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
680
681         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
682         if DECL_NO_INLINE_WARNING_P is set on the function.
683
684 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
685
686         PR fortran/47976
687         * reload1.c (inc_for_reload): Return void. All callers changed.
688         (emit_input_reload_insns): Don't try to delete previous output
689         reloads to a register, or record spill_reg_store for autoincs.
690
691 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
692
693         * gengtype.h: Updated copyright year.
694         (struct input_file_st): Add inpisplugin field.
695         (type_fileloc): New function.
696         * gengtype.c
697         (write_typed_struct_alloc_def): Add gcc_assert.
698         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
699         (write_typed_alloc_defns): Don't output for plugin files.
700         (input_file_by_name): Clear inpisplugin field.
701         (main): Set inpisplugin field for plugin files.
702
703 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
704
705         * gengtype-state.c (string_eq): New.
706         (read_state): Use string_eq instead of strcmp when creating the
707         state_ident_tab.
708
709 2011-04-19  Wei Guozhi  <carrot@google.com>
710
711         PR target/47855
712         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
713         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
714         linkage.
715         * config/arm/constraints.md (Uu): New constraint.
716         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
717
718 2011-04-19  Tristan Gingold  <gingold@adacore.com>
719
720         * config.gcc (-*-*-*vms): Added.
721         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
722         definitions moved.
723         * config/vms/vms-ld.c: New file.
724         * config/vms/vms-ar.c: New file.
725         * config/vms/t-vmsnative: New file.
726
727 2011-04-18  Xinliang David Li  <davidxl@google.com>
728
729         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
730
731 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
732
733         PR middle-end/48661
734         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
735         if TREE_TYPE (v) is non-NULL.
736
737         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
738         gimple_get_virt_mehtod_for_binfo.
739         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
740         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
741         callers.
742         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
743
744 2011-04-18  Michael Matz  <matz@suse.de>
745             Steve Ellcey  <sje@cup.hp.com>
746
747         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
748         use its mode as source mode if it isn't VOIDmode.
749
750 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
751
752         * doc/passes.texi: Fill crossref nodes.
753
754 2011-04-18  Jim Meyering  <meyering@redhat.com>
755
756         Fix doubled-word typos in comments and strings
757         * config/alpha/vms-unwind.h: s/for for/for/
758         * config/arm/unwind-arm.h: Likewise.
759         * config/microblaze/microblaze.c: Likewise.
760         * config/sh/constraints.md: s/in in/in/
761         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
762
763 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
764
765         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
766         (AVX_FLOAT_MODE_P): Ditto.
767         (AVX128_VEC_FLOAT_MODE_P): Ditto.
768         (AVX256_VEC_FLOAT_MODE_P): Ditto.
769         (AVX_VEC_FLOAT_MODE_P): Ditto.
770         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
771         (UNSPEC_MASKSTORE): Ditto.
772         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
773         Merge from <sse>_movmsk<ssemodesuffix> and
774         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
775         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
776         iterator.
777         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
778         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
779         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
780
781 2011-04-18  Jan Hubicka  <jh@suse.cz>
782
783         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
784
785         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
786         (want_inline_function_called_once_p): Break out the logic from
787         ipa_inline.
788         (edge_badness): Ensure that profile is not misupdated.
789         (lookup_recursive_calls): Prioritize by call frequencies.
790         (inline_small_functions): Move program size estimates here;
791         actually process whole queue even when unit growth has been
792         met. (to properly compute inline_failed reasons and for the
793         case unit size decrease.) Revisit comments on recursive inlining.
794         (ipa_inline): Remove unit summary code; first inline hot calls
795         of functions called once, cold calls next.
796         (order, nnodes): Remove unused variables.
797         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
798         (GTFILES): Remove ipa-inline.c
799         * sel-sched.c (fill_insns): Silence uninitialized var warning.
800
801 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
802
803         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
804
805 2011-04-18  Jie Zhang  <jie@codesourcery.com>
806             Richard Earnshaw  <rearnsha@arm.com>
807
808         * arm.c (neon_builtin_type_bits): Remove.
809         (typedef enum neon_builtin_mode): New.
810         (T_MAX): Don't define.
811         (typedef enum neon_builtin_datum): Remove bits, codes[],
812         num_vars and base_fcode.  Add mode, code and fcode.
813         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
814         VAR10): Change accordingly.
815         (neon_builtin_data[]): Change accordingly
816         (arm_init_neon_builtins): Change accordingly.
817         (neon_builtin_compare): Remove.
818         (locate_neon_builtin_icode): Remove.
819         (arm_expand_neon_builtin): Change accordingly.
820
821         * arm.h (enum arm_builtins): Move to ...
822         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
823
824         * arm.c (arm_builtin_decl): Declare.
825         (TARGET_BUILTIN_DECL): Define.
826         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
827         (arm_builtin_decls[]): New.
828         (arm_init_neon_builtins): Store builtin declarations in
829         arm_builtin_decls[].
830         (arm_init_tls_builtins): Likewise.
831         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
832         (arm_builtin_decl): New.
833
834 2011-04-18  Richard Guenther  <rguenther@suse.de>
835
836         * tree.c (upper_bound_in_type): Build properly canonicalized
837         INTEGER_CSTs.
838         (lower_bound_in_type): Likewise.
839
840 2011-04-18  Richard Guenther  <rguenther@suse.de>
841
842         * gimple.h (gimple_call_addr_fndecl): New function.
843         (gimple_call_fndecl): Use it.
844         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
845         for direct calls.
846         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
847         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
848
849 2011-04-18  Richard Guenther  <rguenther@suse.de>
850
851         PR middle-end/48650
852         * tree.c (build_string): STRING_CST is now derived from tree_typed.
853
854 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
855
856         PR lto/48492
857         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
858         DECL_IN_CONSTANT_POOL without RTL.
859
860 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
861             Ira Rosen  <ira.rosen@linaro.org>
862
863         PR target/48252
864         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
865         to match neon_vzip/vuzp/vtrn_internal.
866         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
867         outputs explicitly dependent on both inputs.
868         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
869
870 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
871
872         PR tree-optimization/48616
873         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
874         whether the shift is by scalar or vector based on whether all SLP
875         scalar stmts have the same rhs.
876
877 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
878
879         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
880         memory operands.
881
882 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
883
884         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
885         registers.
886
887 2011-04-17  Jan Hubicka  <jh@suse.cz>
888
889         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
890         * cgrpahunit.c (cgraph_finalize_function): Do not set
891         finalized_by_frontend.
892         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
893         finalized_by_frontend.
894
895 2011-04-17  Jan Hubicka  <jh@suse.cz>
896
897         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
898         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
899         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
900         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
901         method.
902         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
903         gimple-fold.c
904         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
905
906 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
907
908         PR lto/48538
909         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
910         is non-null before accessing it.
911         (input_cgraph): Remove trailing spaces.
912
913 2011-04-17  Revital Eres  <revital.eres@linaro.org>
914
915         * params.def (sms-min-sc): New param flag.
916         * modulo-sched.c (sms_schedule): Use it.
917         * doc/invoke.texi (sms-min-sc): Document it.
918
919 2011-04-17  Jan Hubicka  <jh@suse.cz>
920
921         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
922         present, also set gimple_call_set_cannot_inline.
923         * ipa-inline.c: Update toplevel comment.
924         (MAX_TIME): Remove.
925         (cgraph_clone_inlined_nodes): Fix linebreaks.
926         (cgraph_check_inline_limits): Restructure to ...
927         (caller_growth_limits): ... this one; be more tolerant
928         on growth in nested inline chains; add explanatory comment;
929         fix stack accounting thinko introduced by previous patch.
930         (cgraph_default_inline_p): Remove.
931         (report_inline_failed_reason): New function.
932         (can_inline_edge_p): New function.
933         (can_early_inline_edge_p): New function.
934         (leaf_node_p): Move upwards in file.
935         (want_early_inline_function_p): New function.
936         (want_inline_small_function_p): New function.
937         (want_inline_self_recursive_call_p): New function.
938         (cgraph_edge_badness): Rename to ...
939         (edge_badness) ... this one; fix linebreaks.
940         (update_edge_key): Update call of edge_baddness; add
941         detailed dump about queue updates.
942         (update_caller_keys): Use can_inline_edge_p and
943         want_inline_small_function_p.
944         (cgraph_decide_recursive_inlining): Rename to...
945         (recursive_inlining): Use can_inline_edge_p and
946         want_inline_self_recursive_call_p; simplify and remove no longer
947         valid FIXME.
948         (cgraph_set_inline_failed): Remove.
949         (add_new_edges_to_heap): Use can_inline_edge_p and
950         want_inline_small_function_p.
951         (cgraph_decide_inlining_of_small_functions): Rename to ...
952         (inline_small_functions): ... this one; cleanup; use
953         can/want predicates; cleanup debug ouput; work edges till fibheap
954         is exhausted and do not stop once unit growth is reached; remove
955         later loop processing remaining edges.
956         (cgraph_flatten): Rename to ...
957         (flatten_function): ... this one; use can_inline_edge_p
958         and can_early_inline_edge_p predicates.
959         (cgraph_decide_inlining): Rename to ...
960         (ipa_inline): ... this one; remove unreachable nodes before
961         inlining functions called once; simplify the pass.
962         (cgraph_perform_always_inlining): Rename to ...
963         (inline_always_inline_functions): ... this one; use
964         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
965         (cgraph_decide_inlining_incrementally): Rename to ...
966         (early_inline_small_functions): ... this one; simplify
967         using new predicates; cleanup; make dumps prettier.
968         (cgraph_early_inlining): Rename to ...
969         (early_inliner): newer inline regular functions into always-inlines;
970         fix updating of call stmt summaries.
971         (pass_early_inline): Update for new names.
972         (inline_transform): Fix formating.
973         (gate_cgraph_decide_inlining): Rename to ...
974         (pass_ipa_inline): ... this one.
975         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
976         * ipa-inline-analysis.c (dump_inline_summary): Update.
977         (compute_inline_parameters): Do not compute disregard_inline_limits;
978         look for mismatching arguments.
979         (estimate_growth): Fix handlig of non-trivial self recursion.
980         (inline_read_summary): Do not read info->disregard_inline_limits.
981         (inline_write_summary): Do not write info->disregard_inline_limits.
982         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
983         and move all checks into can_inline_edge_p predicate; re-enable code
984         comparing optimization levels.
985         (expand_call_inline): Do not test inline_forbidden_into_p.
986         * Makefile.in (ipa-inline.o): Update arguments.
987
988 2011-04-17  Revital Eres  <revital.eres@linaro.org>
989
990         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
991
992 2011-04-17  Revital Eres  <revital.eres@linaro.org>
993
994         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
995
996 2011-04-17  Michael Matz  <matz@suse.de>
997
998         PR tree-optimization/48622
999         PR lto/48645
1000         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1001         in same order as they're written.
1002
1003 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1004
1005         * config/pa/predicates.md: Reorganize and simplify predicates.
1006         Eliminate duplicate code checks.
1007         (arith_operand): Rename to arith14_operand
1008         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1009         * config/pa/pa.md: Use renamed operands.
1010         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1011         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1012         arith11_operand, adddi3_operand, indexed_memory_operand,
1013         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1014         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1015         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1016         move_dest_operand, move_src_operand, prefetch_cc_operand,
1017         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1018         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1019         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1020         div_operand, int5_operand, movb_comparison_operator,
1021         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1022         arith_double_operand, ireg_operand, lhs_lshift_operand,
1023         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1024         integer_store_memory_operand): Likewise.
1025         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1026         (integer_store_memory_operand, read_only_operand,
1027         function_label_operand, borx_reg_operand,
1028         non_hard_reg_operand): Likewise.
1029         (eq_neq_comparison_operator): Delete unused operator.
1030         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1031         function_label_operand.
1032         (emit_move_sequence): Likewise.
1033
1034 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1035
1036         * config/i386/sse.md (sseunpackmode): New mode attribute.
1037         (ssepackmode): Ditto.
1038         (vec_pack_trunc_<mode>): Macroize expander from
1039         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1040         (vec_unpacks_lo_<mode>): Macroize expander from
1041         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1042         (vec_unpacks_hi_<mode>): Macroize expander from
1043         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1044         (vec_unpacku_lo_<mode>): Macroize expander from
1045         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1046         (vec_unpacku_hi_<mode>): Macroize expander from
1047         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1048         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1049         ix86_expand_sse4_unpack.
1050         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1051
1052 2011-04-16  Jan Hubicka  <jh@suse.cz>
1053
1054         * cgraphbuild.c: Include ipa-inline.h.
1055         (reset_inline_failed): Use initialize_inline_failed.
1056         * cgraph.c: Include ipa-inline.h.
1057         (cgraph_create_node_1): Do not initialize estimated_growth.
1058         (initialize_inline_failed): More to ipa-inline-analysis.c
1059         (dump_cgraph_node): Do not dump inline flags.
1060         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1061         and disregard_inline_limits flags.
1062         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1063         time, size, estimated_growth.
1064         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1065         Update.
1066         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1067         DECL_DISREGARD_INLINE_LIMITS.
1068         (cgraph_analyze_function): Do not initialize
1069         node->local.disregard_inline_limits.
1070         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1071         inlinable, versionable and disregard_inline_limits.
1072         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1073         cgraph_check_inline_limits, cgraph_default_inline_p,
1074         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1075         add_new_edges_to_heap): Update.
1076         (cgraph_decide_inlining_of_small_function): Update; set
1077         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1078         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1079         cgraph_decide_inlining_incrementally): Update.
1080         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1081         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1082         time, size and estimated_growth parameters.
1083         (estimate_edge_growth): Update.
1084         (initialize_inline_failed): Declare.
1085         * ipa-split.c: Include ipa-inline.h
1086         (execute_split_functions): Update.
1087         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1088         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1089         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1090         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1091         estimated_growth to INT_MIN.
1092         (inline_node_duplication_hook): Likewise.
1093         (dump_inline_summary): Dump new fields.
1094         (compute_inline_parameters): Update.
1095         (estimate_edge_time, estimate_time_after_inlining,
1096         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1097         inline_write_summary):
1098         (initialize_inline_failed): Move here from cgraph.c.
1099         * tree-sra.c: Include ipa-inline.h.
1100         (ipa_sra_preliminary_function_checks): Update.
1101         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1102         ipa-inline.h.
1103
1104 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1105
1106         * config/i386/sse.md (V16): New mode iterator.
1107         (VI1, VI8): Ditto.
1108         (AVXMODEQI, AVXMODEDI): Remove.
1109         (sse2, sse3): New mode attribute.
1110         (mov<mode>): Use V16 mode iterator.
1111         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1112         (push<mode>1): Use V16 mode iterator.
1113         (movmisalign<mode>): Ditto.
1114         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1115         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1116         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1117         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1118         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1119         avx_movdqu<avxmodesuffix>.
1120         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1121         *avx_movdqu<avxmodesuffix>.
1122         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1123         avx_lddqu<avxmodesuffix>.
1124         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1125         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1126         avx_movnt<AVXMODEDI:mode>.
1127         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1128         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1129
1130 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1131
1132         PR target/48629
1133         * haifa-sched.c (prune_ready_list, schedule_block): Use
1134         sched_pressure_p rather than flag_sched_pressure.
1135
1136 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1137
1138         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1139         cgraph_get_node instead of cgraph_get_create_node.
1140
1141 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1142
1143         * cfgexpand.c (expand_debug_expr): Use
1144         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1145
1146 2011-04-15  Michael Matz  <matz@suse.de>
1147
1148         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1149         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1150         * function.c (gimplify_parameters): Ditto.
1151         * gimplify.c (gimplify_vla_decl): Ditto.
1152
1153         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1154         (gimple_call_set_alloca_for_var): New inline function.
1155         (gimple_call_alloca_for_var_p): Ditto.
1156         * gimple.c (gimple_build_call_from_tree): Remember
1157         CALL_ALLOCA_FOR_VAR_P state.
1158         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1159
1160         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1161         calls if they were for VLA objects.
1162
1163 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1164
1165         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1166         of ADR_EXPRs.
1167
1168 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1169
1170         PR middle-end/48601
1171         * tree-emutls.c (lower_emutls_function_body): Call
1172         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1173         result is non-NULL.
1174
1175 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1176
1177         * c-decl.c (detect_field_duplicates): Call
1178         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1179
1180 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1181
1182         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1183         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1184         * ipa-pure-const.c (check_stmt): Call it.
1185         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1186
1187 2011-04-15  Richard Guenther  <rguenther@suse.de>
1188
1189         PR tree-optimization/48290
1190         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1191         Properly decide inhibiting propagation based on the valueized
1192         operand.  Do loop-closed SSA form preserving here ...
1193         (init_copy_prop): ... not here.
1194
1195 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1196
1197         PR target/48612
1198         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1199         (*ieee_smax<mode>3): Likewise.
1200
1201 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1202
1203         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1204         Replace match_operand with match_dup for the third operand in
1205         these expanders.
1206
1207 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1208
1209         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1210         to track processing of conditionals.  Update all callers.
1211         (try_combine, simplify_if_then_else): Update.
1212
1213 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1214
1215         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1216         -fsched-pressure.
1217
1218 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1219
1220         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1221         instead of match_operand for operand 3.
1222
1223 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1224
1225         * recog.h (insn_operand_data): Add an "allows_mem" field.
1226         * genoutput.c (output_operand_data): Initialize it.
1227         * optabs.c (maybe_legitimize_operand_same_code): New function.
1228         (maybe_legitimize_operand): Use it when matching the original
1229         op->value.
1230
1231 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1232
1233         * gimplify.c: Fix issues in comments throughout.
1234         (voidify_wrapper_expr): Fix long line.
1235         (build_stack_save_restore): Likewise.
1236         (gimplify_loop_expr): Likewise.
1237         (gimplify_compound_lval): Likewise.
1238         (gimplify_init_ctor_eval): Likewise.
1239         (gimplify_modify_expr_rhs): Likewise.
1240         (omp_notice_threadprivate_variable): Likewise.
1241
1242 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1243
1244         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1245         original one if this is not a builtin function.
1246
1247 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1248
1249         PR target/48605
1250         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1251         offset it as needed based on top 2 bits in operands[3], change
1252         MEM mode to SFmode and mask those 2 bits away from operands[3].
1253
1254 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1255
1256         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1257         change from objc_declare_protocols() to objc_declare_protocol().
1258
1259 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1260
1261         * config/i386/sse.md (sse4_1): New mode attribute.
1262         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1263         avx_blend<ssemodesuffix><avxmodesuffix> and
1264         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1265         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1266         avx_blendv<ssemodesuffix><avxmodesuffix> and
1267         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1268         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1269         avx_dp<ssemodesuffix><avxmodesuffix> and
1270         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1271         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1272         (sse4_1_packusdw): Merge with *avx_packusdw.
1273         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1274         (sse4_1_pblendw): Merge with *avx_pblendw.
1275         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1276         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1277         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1278         VF mode iterator.
1279         (sse4_1_round<ssescalarmodesuffix>): Merge with
1280         *avx_round<ssescalarmodesuffix>.
1281         (aesenc): Merge with *avx_aesenc.
1282         (aesenclast): Merge with *avx_aesenclast.
1283         (aesdec): Merge with *avx_aesdec.
1284         (aesdeclast): Merge with *avx_aesdeclast.
1285         (pclmulqdq): Merge with *pclmulqdq.
1286         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1287         New predicate.
1288         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1289
1290 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1291
1292         PR middle-end/48608
1293         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1294         (align_local_variable): This.  Update DECL_ALIGN.
1295         (add_stack_var): Updated.
1296         (expand_one_stack_var): Likewise.
1297
1298 2011-04-14  Richard Guenther  <rguenther@suse.de>
1299
1300         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1301         Remove.
1302         (dse_initialize_block_local_data, dse_leave_block,
1303         record_voperand_set, get_stmt_uid): Likewise.
1304         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1305         (dse_optimize_stmt): Remove voperand set handling code.
1306         Simplify and improve to handle any kind of killing stmt.
1307         (dse_record_phi): Remove.
1308         (dse_enter_block): Simplify.
1309         (tree_ssa_dse): Likewise.
1310         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1311
1312 2011-04-14  Jan Hubicka  <jh@suse.cz>
1313
1314         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1315         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1316         (cgraph_local_info): Remove inline_summary.
1317         * ipa-cp.c: Include ipa-inline.h.
1318         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1319         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1320         accesor.
1321         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1322         (input_overwrite_node): Do not set inline summary.
1323         (input_node): Do not stream inline summary.
1324         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1325         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1326         growth; we do not have inline parameters computed for that anyway.
1327         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1328         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1329         (inline_summary_t): New type and VECtor.
1330         (debug_inline_summary, dump_inline_summaries): Declare.
1331         (inline_summary): Use VOCtor.
1332         (estimate_edge_growth): Kill hack computing call stmt size directly.
1333         * lto-section-in.c (lto_section_name): Add inline section.
1334         * ipa-inline-analysis.c: Include lto-streamer.h
1335         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1336         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1337         (inline_summary_vec): Define.
1338         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1339         dump_inline_summaries): New functions.
1340         (estimate_function_body_sizes): Properly compute size/time of outgoing
1341         calls.
1342         (compute_inline_parameters): Alloc inline_summary; do not compute
1343         size/time of incomming calls.
1344         (estimate_edge_time): Avoid missing time summary hack.
1345         (inline_read_summary): Read inline summary info.
1346         (inline_write_summary): Write inline summary info.
1347         (inline_free_summary): Free all hooks and inline summary vector.
1348         * lto-streamer.h: Add LTO_section_inline_summary section.
1349         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1350         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1351
1352 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1353
1354         * tree-vectorizer.h (vect_strided_store_supported): Add a
1355         HOST_WIDE_INT argument.
1356         (vect_strided_load_supported): Likewise.
1357         (vect_permute_store_chain): Return void.
1358         (vect_transform_strided_load): Likewise.
1359         (vect_permute_load_chain): Delete.
1360         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1361         count argument.  Check that the count is a power of two.
1362         (vect_strided_load_supported): Likewise.
1363         (vect_permute_store_chain): Return void.  Update after above changes.
1364         Assert that the access is supported.
1365         (vect_permute_load_chain): Likewise.
1366         (vect_transform_strided_load): Return void.
1367         * tree-vect-stmts.c (vectorizable_store): Update calls after
1368         above interface changes.
1369         (vectorizable_load): Likewise.
1370         (vect_analyze_stmt): Don't check for strided powers of two here.
1371
1372 2011-04-14  Richard Guenther  <rguenther@suse.de>
1373
1374         PR tree-optimization/48590
1375         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1376         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1377         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1378         BUILT_IN_STACK_SAVE.
1379         * tree-ssa-dce.c (propagate_necessity): Handle
1380         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1381
1382 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1383
1384         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1385         objc_declare_class.
1386
1387 2011-04-14  Richard Guenther  <rguenther@suse.de>
1388
1389         * tree.h (get_object_alignment_1): Declare.
1390         * builtins.c (get_object_alignment_1): Split out worker from ...
1391         (get_object_alignment): ... here.
1392         * fold-const.c (get_pointer_modulus_and_residue): Use
1393         get_object_alignment_1.
1394
1395 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1396
1397         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1398         type parameter.
1399         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1400         parameter.  Generalise code to handle arrays as well as vectors.
1401         (vect_setup_realignment): Update accordingly.
1402         * tree-vect-stmts.c (vectorizable_store): Likewise.
1403         (vectorizable_load): Likewise.
1404
1405 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1406
1407         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1408         within the per-copy loop.
1409
1410 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1411
1412         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1413         in the dump file.
1414
1415 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1416
1417         * doc/options.texi (Negative): Explicitly mention that the
1418         Negative chain must be circular.
1419
1420 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1421
1422         * function.h (block_chainon): Declare.
1423         * function.c (block_chainon): Define.
1424
1425 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1426             Eric Weddington  <eric.weddington@atmel.com>
1427             Georg-Johann Lay <avr@gjlay.de>
1428
1429         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1430         New Includes
1431         (avr_init_builtins, avr_expand_builtin,
1432         avr_expand_delay_cycles, avr_expand_unop_builtin,
1433         avr_expand_binop_builtin ): New functions.
1434         (avr_builtin_id): New enum
1435         (struct avr_builtin_description): New struct
1436         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1437         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1438
1439         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1440         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1441         UNSPECV_DELAY_CYCLES): new enumeration values
1442         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1443         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1444         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1445         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1446         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1447         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1448         "fmulsu"): New insns
1449
1450         * config/avr/avr-c.c: fix line endings
1451         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1452         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1453         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1454         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1455         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1456
1457         * doc/extend.texi (AVR Built-in Functions): New node
1458         (Target Builtins): Add documentation of AVR
1459         built-in functions.
1460
1461 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1462
1463         PR target/44643
1464         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1465         alone. Error if non-const data has attribute progmem.
1466
1467 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1468
1469         * tree.h (struct tree_constructor): Include tree_typed instead of
1470         tree_common.
1471         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1472         TS_TYPED instead of TS_COMMON.
1473
1474 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1475
1476         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1477         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1478         (sse2_psadbw): Merge with *avx_psadbw.
1479         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1480         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1481         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1482         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1483         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1484         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1485         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1486         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1487         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1488         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1489         (ssse3_palignrti): Merge with *avx_palignrti.
1490
1491 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1492
1493         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1494         * tree-ssanames.c (fini_ssanames): VEC_free it.
1495         (make_ssa_name_fn): Update for VECness of free_ssanames.
1496         (release_ssa_name, release_dead_ssa_names): Likewise.
1497         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1498         tree_common.
1499         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1500         TS_TYPED instead of TS_COMMON.
1501
1502 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1503
1504         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1505         statistics_counter_event.
1506         * tree-ssa-copyrename.c (stats): Define.
1507         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1508         statistics_counter_event.
1509         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1510         (bswap_stats, widen_mul_stats): Define.
1511         (insert_reciprocals): Increment rdivs_inserted.
1512         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1513         rfuncs_inserted.  Add calls to statistics_counter_event.
1514         (execute_cse_sincos_1): Increment inserted.
1515         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1516         statistics_counter_event.
1517         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1518         of bswap_stats.  Add calls to statistics_counter_event.
1519         (convert_mult_to_widen): Increment widen_mults_inserted.
1520         (convert_plusminus_to_widen): Increment maccs_inserted.
1521         (convert_mult_to_fma): Increment fmas_inserted.
1522         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1523         calls to statistics_counter_event.
1524
1525 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1526
1527         PR rtl-optimization/48455
1528         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1529         `temp_costs->mem_cost'.
1530
1531 2011-04-13  Jan Hubicka  <jh@suse.cz>
1532
1533         * ipa-inline.h: New file.
1534         * ipa-inline-analysis.c: New file. Broken out of ...
1535         * ipa-inline.c: ... this file; update toplevel comment;
1536         include ipa-inline.h
1537         (inline_summary): Move to ipa-inline.h
1538         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1539         ipa-inline-analysis.c.
1540         (cgraph_estimate_time_after_inlining): Rename to
1541         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1542         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1543         to estimate_edge_growth.
1544         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1545         rename to estimate_size_after_inlining.
1546         (cgraph_mark_inline_edge): Update for new naming convention.
1547         (cgraph_check_inline_limits): Likewise.
1548         (cgraph_edge_badness): Likewise.
1549         (cgraph_decide_recursive_inlining): Likewise.
1550         (cgraph_decide_inlining_of_small_functions): Likewise.
1551         (cgraph_decide_inlining_incrementally): Likewise.
1552         (cgraph_estimate_growth): Rename to estimate_growth; move to
1553         ipa-inline-analysis.c.
1554         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1555         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1556         (compute_inline_parameters): Likewise.
1557         (compute_inline_parameters_for_current): Likewise.
1558         (pass_inline_parameters): Likewise.
1559         (inline_indirect_intraprocedural_analysis): Likewise.
1560         (analyze_function): Rename to inline_analyze_function; likewise.
1561         (add_new_function): Move to ipa-inline-analysis.c.
1562         (inline_generate_summary): Likewise.
1563         (inline_read_summary): Likewise.
1564         (inline_write_summary): Likewise.
1565         * Makefile.in (ipa-inline-analysis.c): New file.
1566
1567 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1568
1569         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1570         * configure: Regenerate.
1571
1572 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1573
1574         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1575         instead of tree_common.
1576         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1577         Likewise.
1578         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1579         TS_TYPED rather than TS_COMMON.
1580         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1581
1582 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1583
1584         PR target/45263
1585         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1586         r20 around calls of __tablejump_elpm__
1587
1588 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1589
1590         PR middle-end/48591
1591         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1592         NULL.
1593         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1594
1595 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1596
1597         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1598         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1599         (cfi_vec): New typedef.
1600         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1601         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1602         (cie_cfi_vec): New static variable.
1603         (cie_cfi_head): Delete.
1604         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1605         declaration changed. Use vector rather than list operations.
1606         (new_cfi): Don't initialize the dw_cfi_next field.
1607         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1608         rather than list operations.
1609         (lookup_cfa): Use vector rather than list operations.
1610         (output_cfis): New argument upto. Accept a cfi_vec rather than
1611         a dw_cfi_ref list head as argument. All callers changed.
1612         Iterate over the vector using upto as a maximum index.
1613         (output_all_cfis): New static function.
1614         (output_fde): Use vector rather than list operations. Use the
1615         new upto argument for output_cfis rather than manipulating a
1616         list.
1617         (dwarf2out_begin_prologue): Change initializations to match
1618         new struct members.
1619         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1620         from the vector length rather than searching for the end of a list.
1621         Use output_all_cfis.
1622         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1623
1624 2011-04-13  Nick Clifton  <nickc@redhat.com>
1625
1626         * config/rx/rx.md (movmemsi): Do not use this pattern when
1627         volatile pointers are involved.
1628
1629 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1630
1631         * config/i386/sse.md (pinsrbits): Remove.
1632         (sse2_packsswb): Merge with *avx_packsswb.
1633         (sse2_packssdw): Merge with *avx_packssdw.
1634         (sse2_packuswb): Merge with *avx_packuswb.
1635         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1636         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1637         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1638         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1639         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1640         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1641         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1642         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1643         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1644         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1645         (sse2_loadld): Merge with *avx_loadld.
1646         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1647         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1648         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1649         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1650         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1651
1652 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1653
1654         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1655         calling TREE_CHAIN.
1656         * print-tree.c (print_node): Likewise.
1657         * tree-inline.c (copy_tree_r): Likewise.
1658         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1659         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1660         instead of TS_COMMON.
1661         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1662         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1663         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1664         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1665         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1666         ...and these...
1667         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1668         * tree.h: ...here.
1669         (TREE_CHAIN): Check for a TS_COMMON structure.
1670         (TREE_TYPE): Check for a TS_TYPED structure.
1671
1672 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1673
1674         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1675         cgraph_get_create_node instead of cgraph_node.
1676
1677 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1678
1679         * c-parser.c (c_parser_initelt): Updated call to
1680         objc_build_message_expr.
1681         (c_parser_postfix_expression): Likewise.
1682
1683 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1684
1685         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1686         MASK_MS_BITFIELD_LAYOUT bit.
1687
1688 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1689
1690         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1691         assert it is always true.
1692         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1693         moves.
1694
1695 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1696
1697         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1698         compiling Objective-C to be more efficient.
1699
1700 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1701
1702         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1703         argv_copied.
1704
1705 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1706
1707         * recog.h, genoutput.c, optabs.c: Revert last patch.
1708
1709 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1710
1711         PR target/48090
1712         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1713
1714 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1715
1716         * recog.h (insn_operand_data): Add an "allows_mem" field.
1717         * genoutput.c (output_operand_data): Initialize it.
1718         * optabs.c (maybe_legitimize_operand_same_code): New function.
1719         (maybe_legitimize_operand): Use it when matching the original
1720         op->value.
1721
1722 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1723
1724         * genpreds.c (process_define_predicate): Move most processing
1725         to gensupport.c.  Continue to validate the expression.
1726         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1727         (process_define_predicate): Move processing to gensupport.c.
1728         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1729         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1730         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1731         argument.
1732         (valid_predicate_name_p): New function, split out from old
1733         genpreds.c:process_define_predicate.
1734         (process_define_predicate): New function, combining code from
1735         old genpreds.c and genrecog.c functions.
1736         (process_rtx): Call it for DEFINE_PREDICATE and
1737         DEFINE_SPECIAL_PREDICATE.
1738
1739 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1740
1741         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1742         size of a '%A' memory reference.
1743         (T_DREG, T_QREG): New neon_builtin_type_bits.
1744         (arm_init_neon_builtins): Assert that the load and store operands
1745         are neon_struct_operands.
1746         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1747         (NEON_ARG_MEMORY): New builtin_arg.
1748         (neon_dereference_pointer): New function.
1749         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1750         Handle NEON_ARG_MEMORY.
1751         (arm_expand_neon_builtin): Update after above interface changes.
1752         Use NEON_ARG_MEMORY for loads and stores.
1753         * config/arm/predicates.md (neon_struct_operand): New predicate.
1754         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1755         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1756         (V_four_elem): Tweak formatting.
1757         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1758         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1759         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1760         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1761         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1762         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1763         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1764         Use %A in the output template.
1765         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1766         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1767         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1768         the width of the memory access.  Remove post-increment.
1769         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1770
1771 2011-04-12  Nick Clifton  <nickc@redhat.com>
1772
1773         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1774         instruction for interrupt handlers if the target is the basic V850
1775         architecture.
1776         (expand_epilogue): Likewise.
1777
1778 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1779
1780         PR rtl-optimization/48549
1781         * combine.c (propagate_for_debug): Also stop after BB_END of
1782         this_basic_block.  Process LAST and just stop processing after it.
1783         (combine_instructions): If last_combined_insn has been deleted,
1784         set last_combined_insn to its PREV_INSN.
1785
1786 2011-04-12  Richard Guenther  <rguenther@suse.de>
1787
1788         PR tree-optimization/46076
1789         * gimple.h (struct gimple_statement_call): Add fntype field.
1790         (gimple_call_fntype): Adjust.
1791         (gimple_call_set_fntype): New function.
1792         * gimple.c (gimple_build_call_1): Set the call function type.
1793         * gimplify.c (gimplify_call_expr): Preserve the function
1794         type the frontend used for the call.
1795         (gimplify_modify_expr): Likewise.
1796         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1797         function type.
1798         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1799         function type.
1800         * tree-ssa.c (useless_type_conversion_p): Function pointer
1801         conversions are useless.
1802
1803 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1804
1805         * cgraph.h (cgraph_node): Remove function declaration.
1806         (cgraph_create_node): Declare.
1807         (cgraph_get_create_node): Likewise.
1808         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1809         Updated all callers.
1810         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1811         the decl does not already exist.  Call cgraph_get_create_node instead
1812         of cgraph_node.
1813         (cgraph_get_create_node): New function.
1814         (cgraph_same_body_alias): Update comment.
1815         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1816         assert it does not return NULL.
1817         (cgraph_update_edges_for_call_stmt): Likewise.
1818         (cgraph_clone_edge): Likewise.
1819         (cgraph_create_virtual_clone): Likewise.
1820         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1821         instead of cgraph_node.
1822         (cgraph_add_new_function): Call cgraph_create_node or
1823         cgraph_get_create_node instead of cgraph_node.
1824         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1825         instead of cgraph_node.
1826         (record_eh_tables): Likewise.
1827         (mark_address): Likewise.
1828         (mark_load): Likewise.
1829         (build_cgraph_edges): Call cgraph_get_create_node instead
1830         of cgraph_node.
1831         (rebuild_cgraph_edges): Likewise.
1832         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1833         instead of cgraph_node.
1834         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1835         cgraph_node.
1836         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1837         cgraph_create_node instead of cgraph_node.
1838         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1839         of cgraph_node.
1840         * lto-cgraph.c (input_node): Likewise.
1841         * lto-streamer-in.c (input_function): Likewise.
1842         * varasm.c (mark_decl_referenced): Likewise.
1843         (assemble_alias): Likewise.
1844
1845 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1846
1847         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1848         instead of cgraph_node and assert it does not return NULL.
1849         * lto-streamer-in.c (lto_read_body): Likewise.
1850         * omp-low.c (new_omp_context): Likewise.
1851         (create_task_copyfn): Likewise.
1852         * tree-emutls.c (lower_emutls_function_body): Likewise.
1853         * matrix-reorg.c (transform_allocation_sites): Likewise.
1854
1855 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1856
1857         PR c/48552
1858         * c-typeck.c (build_asm_expr): Error out on attempts to use
1859         void type outputs or inputs for constraints that allow reg or
1860         don't allow memory.
1861
1862 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1863             Richard Earnshaw  <rearnsha@arm.com>
1864
1865         PR target/48250
1866         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1867         to use sign-magnitude offsets. Reject unsupported unaligned
1868         cases. Add detailed description in comments.
1869         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1870         condition from TARGET_32BIT to TARGET_ARM.
1871
1872 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1873
1874         * tree.h (struct typed_tree): New.
1875         (struct tree_common): Include it instead of tree_base.
1876         (TREE_TYPE): Update for new location of type field.
1877         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1878         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1879         (union tree_node): Add typed field.
1880         * treestruct.def (TS_TYPED): New.
1881         * lto-streamer.c (check_handled_ts_structures): Handle it.
1882         * tree.c (MARK_TS_TYPED): New macro.
1883         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1884
1885 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1886
1887         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1888         (force_nonfallthru): Do not alter the loop nest if no basic block
1889         was created.
1890
1891 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1892
1893         * config/i386/sse.md (VI): New mode iterator.
1894         (SSEMODEI): Remove.
1895         (AVX256MODEI): Ditto.
1896         (AVXMODEF4P): Ditto.
1897         (avxvecpsmode): Ditto.
1898         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1899         (sse2_andnot<mode>3): New expander.
1900         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1901         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1902         (<any_logic:code><mode>3): Use VI mode iterator.
1903         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1904         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1905         (*andnottf3): Handle AVX three-operand constraints.
1906         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1907
1908 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1909             Robert Millan  <rmh@gnu.org>
1910
1911         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1912         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1913         GNU_USER_DYNAMIC_LINKER64): Define.
1914         (REG_NAME): Don't undefine.
1915         (MD_UNWIND_SUPPORT): Undefine.
1916         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1917         (REG_NAME): Don't undefine.
1918         (MD_UNWIND_SUPPORT): Undefine.
1919         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1920
1921 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1922
1923         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
1924         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
1925
1926 2011-04-11  Xinliang David Li  <davidxl@google.com>
1927
1928         * value-profile.c (check_ic_target): New function.
1929         (gimple_ic_transform): Sanity check indirect call target.
1930         * gimple-low.c (gimple_check_call_args): Interface change.
1931         (gimple_check_call_matching_types): New function.
1932         * tree-inline.c (tree_can_inline_p): Call new function.
1933
1934 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
1935
1936         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
1937         tree-pretty-print.h & realmpfr.h.
1938
1939 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
1940
1941         PR middle-end/48464
1942         * ira.c (setup_pressure_classes): Fix typo in loop condition.
1943         (setup_allocno_and_important_classes): Ditto.
1944
1945 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1946
1947         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
1948         GNU_USER_DYNAMIC_LINKER.
1949         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
1950         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1951         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
1952         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1953         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1954         GNU_USER_TARGET_OS_CPP_BUILTINS.
1955         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
1956         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1957         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
1958         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1959         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
1960         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
1961         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1962         GNU_USER_TARGET_OS_CPP_BUILTINS.
1963         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1964         GNU_USER_DYNAMIC_LINKER.
1965         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1966         GNU_USER_TARGET_OS_CPP_BUILTINS.
1967         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
1968         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1969         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
1970         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1971         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
1972         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
1973         GNU_USER_DYNAMIC_LINKER64): Remove.
1974         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
1975         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1976         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1977         GNU_USER_DYNAMIC_LINKER.
1978         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1979         GNU_USER_TARGET_OS_CPP_BUILTINS.
1980         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1981         GNU_USER_TARGET_OS_CPP_BUILTINS.
1982         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
1983         to GNU_USER_TARGET_OS_CPP_BUILTINS.
1984         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
1985         GNU_USER_TARGET_OS_CPP_BUILTINS.
1986         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
1987         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
1988         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
1989         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
1990         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1991         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1992         GNU_USER_DYNAMIC_LINKER.
1993         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
1994         GNU_USER_TARGET_OS_CPP_BUILTINS.
1995         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
1996         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
1997         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
1998         GNU_USER_DYNAMIC_LINKER.
1999         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2000         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2001         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2002         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2003         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2004         GNU_USER_DYNAMIC_LINKER.
2005         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2006         GNU_USER_DYNAMIC_LINKERN32.
2007         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2008         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2009         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2010         GNU_USER_DYNAMIC_LINKER32.
2011         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2012         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2013         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2014         GNU_USER_DYNAMIC_LINKER.
2015         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2016         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2017         * config/pa/pa-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 GNU_USER_DYNAMIC_LINKER.
2020         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2021         GNU_USER_DYNAMIC_LINKER32.
2022         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2023         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2024         GNU_USER_DYNAMIC_LINKER.
2025         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2026         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2027         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2028         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2029         GNU_USER_DYNAMIC_LINKER64.
2030         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2031         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2032         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2033         GNU_USER_DYNAMIC_LINKER.
2034         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2035         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2036         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2037         GNU_USER_DYNAMIC_LINKER.
2038         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2039         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2040         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2041         GNU_USER_DYNAMIC_LINKER32.
2042         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2043         GNU_USER_DYNAMIC_LINKER64.
2044         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2045         GNU_USER_DYNAMIC_LINKER64.
2046         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2047         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2048         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2049         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2050         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2051
2052 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2053
2054         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2055         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2056         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2057         GNU_USER_DYNAMIC_LINKER.
2058         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2059         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2060         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2061         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2062         GNU_USER_DYNAMIC_LINKER64.
2063         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2064         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2065         GNU_USER_LINK_EMULATION.
2066         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2067         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2068         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2069         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2070         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2071         CPP_SPEC, CC1_SPEC): Remove.
2072         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2073         (GNU_USER_DYNAMIC_LINKER): Define.
2074         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2075         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2076         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2077         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2078         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2079         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2080         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2081         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2082         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2083         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2084         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2085         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2086         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2087         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2088         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2089         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2090         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2091         GNU_USER_DYNAMIC_LINKER.
2092         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2093         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2094         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2095         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2096         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2097         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2098         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2099         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2100         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2101         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2102
2103 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2104
2105         PR target/9601
2106         PR target/11772
2107         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2108         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2109         comment.
2110         (ix86_is_msabi_thiscall): Removed.
2111         (ix86_is_type_thiscall): Likewise.
2112         (ix86_get_callcvt): New function.
2113         (ix86_comp_type_attributes): Simplify check.
2114         (ix86_function_regparm): Use ix86_get_callcvt for calling
2115         convention attribute checks.
2116         (ix86_return_pops_args): Likewise.
2117         (ix86_static_chain): Likewise.
2118         (x86_this_parameter): Likewise.
2119         (x86_output_mi_thunk): Likewise.
2120         (ix86_function_type_abi): Optimize check for types without attributes.
2121         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2122         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2123         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2124         by flag-values.
2125         (IX86_BASE_CALLCVT): Helper macro.
2126         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2127         Use ix86_get_callcvt for calling convention attribute checks and avoid
2128         symbol-decoration for stdcall in TARGET_RTD case.
2129         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2130         Likewise.
2131         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2132         for declaration.
2133
2134 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2135
2136         * config/i386/sse.md (VI_128): New mode iterator.
2137         (VI12_128): Rename from SSEMODE12.
2138         (VI14_128): Rename from SSEMODE14.
2139         (VI124_128): New mode iterator.
2140         (VI24_128): Rename from SSEMODE248.
2141         (VI248_128): Rename from SSEMODE248.
2142         (SSEMODE124C8): Remove.
2143         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2144         (*sse2_<plusminus_insn><mode>3): Merge with
2145         *avx_<plusminus_insn><mode>3.
2146         (*mulv8hi3): Merge with *avx_mulv8hi3.
2147         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2148         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2149         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2150         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2151         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2152         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2153         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2154         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2155         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2156         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2157         (*<smaxmin:code>v8hi3): Ditto.
2158         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2159         (*<smaxmin:code>v16qi3): Ditto.
2160         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2161         (*sse2_eq<mode>3): Ditto.
2162         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2163         (*sse2_gt<mode>3): Ditto.
2164         (vcondv2di): Split out of vcond<mode>.
2165         (vconduv2di): Split out of vcondu<mode>.
2166
2167 2011-04-11  Richard Guenther  <rguenther@suse.de>
2168
2169         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2170         before calling tree_low_cst.
2171
2172 2011-04-11  Richard Guenther  <rguenther@suse.de>
2173
2174         * stor-layout.c (layout_type): Compute all array index size operations
2175         in the original type.
2176         (initialize_sizetypes): Add comment.
2177         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2178
2179 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2180
2181         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2182
2183 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2184
2185         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2186         of cgraph_node, handle NULL return value.
2187         (cgraph_global_info): Likewise.
2188         (cgraph_rtl_info): Likewise.
2189         * tree-inline.c (estimate_num_insns): Likewise.
2190         * gimplify.c (unshare_body): Likewise.
2191         (unvisit_body): Likewise.
2192         (gimplify_body): Likewise.
2193         * predict.c (optimize_function_for_size_p): Likewise.
2194         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2195         (call_may_clobber_ref_p_1): Likewise.
2196         * varasm.c (function_section_1): Likewise.
2197         (assemble_start_function): Likewise.
2198
2199 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2200
2201         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2202         of cgraph_node.
2203         * final.c (rest_of_clean_state): Likewise.
2204         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2205         * passes.c (pass_init_dump_file): Likewise.
2206         (execute_all_ipa_transforms): Likewise.
2207         (function_called_by_processed_nodes_p): Likewise.
2208         * predict.c (maybe_hot_frequency_p): Likewise.
2209         (probably_never_executed_bb_p): Likewise.
2210         (compute_function_frequency): Likewise.
2211         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2212         (unnest_nesting_tree_1): Likewise.
2213         (lower_nested_functions): Likewise.
2214         * tree-optimize.c (execute_fixup_cfg): Likewise.
2215         (tree_rest_of_compilation): Likewise.
2216         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2217         * tree-sra.c (ipa_early_sra): Likewise.
2218         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2219         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2220         * ipa.c (record_cdtor_fn): Likewise.
2221         * ipa-inline.c (cgraph_early_inlining): Likewise.
2222         (compute_inline_parameters_for_current): Likewise.
2223         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2224         * ipa-pure-const.c (local_pure_const): Likewise.
2225         * ipa-split.c (split_function): Likewise.
2226         (execute_split_functions): Likewise.
2227         * cgraphbuild.c (build_cgraph_edges): Likewise.
2228         (rebuild_cgraph_edges): Likewise.
2229         (cgraph_rebuild_references): Likewise.
2230         (remove_cgraph_callee_edges): Likewise.
2231         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2232         (verify_cgraph_node): Likewise.
2233         (cgraph_analyze_functions): Likewise.
2234         (cgraph_preserve_function_body_p): Likewise.
2235         (save_inline_function_body): Likewise.
2236         (save_inline_function_body): Likewise.
2237         * tree-inline.c (copy_bb): Likewise.
2238         (optimize_inline_calls): Likewise.
2239
2240 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2241
2242         PR tree-optimization/48195
2243         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2244         ipa_check_create_edge_args.
2245         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2246         ipa_check_create_edge_args.
2247         * ipa-inline.c (inline_generate_summary): Do not call
2248         ipa_check_create_node_params and ipa_check_create_edge_args.
2249         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2250         ipa_check_create_edge_args.
2251
2252 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2253
2254         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2255         instead of loop.
2256         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2257         * function.c (record_hard_reg_sets): Likewise.
2258         * ira.c (compute_regs_asm_clobbered): Likewise.
2259         * sched-deps.c (sched_analyze_1): Likewise.
2260         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2261
2262 2011-04-09  Xinliang David Li  <davidxl@google.com>
2263
2264         PR tree-optimization/PR48484
2265         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2266         has_valid_pred lazily
2267
2268 2011-04-09  Duncan Sands  <baldrick@free.fr>
2269
2270         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2271
2272 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2273
2274         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2275         cost of I0 to zero at the end, if any.
2276
2277 2011-04-08  Xinliang David Li  <davidxl@google.com>
2278
2279         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2280         to insane profile data.
2281
2282 2011-04-08  Xinliang David Li  <davidxl@google.com>
2283
2284         * ipa-cp.c (ipcp_update_profiling): Correct
2285          negative scale factor due to insane profile data.
2286
2287 2011-04-08  Xinliang David Li  <davidxl@google.com>
2288
2289         * final.c (dump_basic_block_info): New function.
2290         (final): Dump basic block.
2291         (final_scan_insn): Remove old dump.
2292
2293 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2294
2295         PR target/47829
2296         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2297         crtbegin/crtend.
2298
2299 2011-04-08  Michael Matz  <matz@suse.de>
2300
2301         PR middle-end/48389
2302         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2303         functions.
2304         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2305         * rtl.h (rebuild_jump_labels_chain): Declare.
2306         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2307         insns inserted on edges.
2308
2309 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2310
2311         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2312         * config/arm/arm-arches.def: New.
2313         * config/arm/arm-opts.h: New.
2314         * config/arm/genopt.sh: New.
2315         * config/arm/arm-tables.opt: New (generated).
2316         * config/arm/arm.c (arm_handle_option, arm_target_help,
2317         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2318         (all_architectures): Get most table contents from arm-arches.def.
2319         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2320         arm_selected_tune here.
2321         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2322         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2323         (march=, mcpu=, mtune=): Use Enum and Var.
2324         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2325         (arm.o): Update dependencies.
2326
2327 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2328
2329         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2330         of header_file.
2331         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2332         (write_typed_alloc_defns): Likewise.
2333         (main): Calls write_typed_alloc_defns with output_header.
2334
2335 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2336
2337         PR inline-asm/48435
2338         * ira-color.c (setup_profitable_hard_regs): Add comments.
2339         Don't take prohibited hard regs into account.
2340         (setup_conflict_profitable_regs): Rename to
2341         get_conflict_profitable_regs.
2342         (check_hard_reg_p): Check prohibited hard regs.
2343
2344 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2345
2346         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2347         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2348         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2349
2350 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2351
2352         PR target/48366
2353         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2354         move from floating point to shift amount register.
2355         (emit_move_sequence): Remove secondary reload support for floating
2356         point to shift amount amount register copies.
2357         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2358         amount register copies.
2359         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2360         register, return false if mode isn't a scalar integer mode.
2361         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2362
2363 2011-04-08  Richard Guenther  <rguenther@suse.de>
2364
2365         * gimple.c (gimple_call_flags): Remove kludge.
2366
2367 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2368
2369         * sel-sched.c (sel_region_init): Move call to
2370         sel_setup_region_sched_flags after setup_current_loop_nest.
2371
2372 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2373
2374         PR rtl-optimization/48272
2375         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2376         init_insn_reg_pressure_info.  Adjust a caller.
2377         * sched-int.h (init_insn_reg_pressure_info): Declare.
2378         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2379         when sched-pressure is enabled.
2380
2381 2011-04-08  Richard Guenther  <rguenther@suse.de>
2382
2383         * gimple.c (gimple_set_modified): Do not queue calls to
2384         MODIFIED_NORETURN_CALLS here ...
2385         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2386
2387 2011-04-08  Richard Guenther  <rguenther@suse.de>
2388
2389         PR lto/48467
2390         * toplev.c (lang_dependent_init): Do not open asm_out_file
2391         in WPA mode, nor perform debug machinery initialization.
2392         (finalize): Do not unlink asm_out_file in WPA mode.
2393
2394 2011-04-08  Richard Guenther  <rguenther@suse.de>
2395
2396         * gimple.h (gimple_call_fntype): New function.
2397         (gimple_call_return_type): Use it.
2398         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2399         * gimple-low.c (gimple_check_call_args): Likewise.
2400         * gimple.c (gimple_call_flags): Likewise.
2401         (gimple_call_arg_flags): Likewise.
2402         (gimple_call_return_flags): Likewise.
2403         * tree-cfg.c (verify_gimple_call): Likewise.
2404         (do_warn_unused_result): Likewise.
2405         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2406         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2407
2408 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2409
2410         PR rtl-optimization/48235
2411         * sel-sched.c (code_motion_process_successors): Recompute the last
2412         insn in basic block if control flow changed.
2413         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2414         Update condition for ilist_remove.
2415
2416 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2417
2418         PR rtl-optimization/48302
2419         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2420         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2421         it to record added preheader blocks.
2422         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2423         on to sel_add_loop_preheaders.
2424         (sel_region_init): Move call to setup_current_loop_nest after
2425         sel_init_bbs.
2426
2427 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2428
2429         PR target/48273
2430         * cfgloop.h (loop_has_exit_edges): New helper.
2431         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2432         non-clonable.
2433         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2434         that have no exit edges.
2435
2436 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2437
2438         PR rtl-optimization/48442
2439         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2440         all callers.  Adjust assert.
2441
2442 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2443
2444         PR tree-optimization/48377
2445         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2446         is_packed to true even for types with smaller TYPE_ALIGN than
2447         TYPE_SIZE.
2448
2449 2011-04-08  Richard Guenther  <rguenther@suse.de>
2450
2451         PR bootstrap/48513
2452         * doc/tm.texi: Re-generate.
2453
2454 2011-04-08  Wei Guozhi  <carrot@google.com>
2455
2456         PR target/47855
2457         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2458         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2459         * config/arm/arm.md (*push_multi): Change the length computation to
2460         call a C function.
2461
2462 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2463
2464         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2465         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2466         * doc/tm.texi: Regenerate.
2467         * system.h (ASM_OUTPUT_BSS): Poison.
2468         * varasm.c (asm_output_bss): Remove function.
2469         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2470
2471         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2472         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2473         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2474         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2475         Likewise.
2476         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2477         Likewise.
2478         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2479         Likewise.
2480         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2481
2482 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2483
2484         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2485         EnumValue lines.
2486
2487 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2488
2489         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2490         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2491         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2492         OPT_mcpu32.
2493         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2494         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2495         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2496         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2497         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2498         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2499         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2500         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2501         options.  Don't map other m68k options manually.  Don't handle
2502         old-style options as canonical.
2503         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2504         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2505
2506 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2507
2508         * basic-block.h (force_nonfallthru): Move to...
2509         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2510         (force_nonfallthru): ...here.
2511         * cfghooks.c (force_nonfallthru): New function.
2512         * cfgrtl.c (force_nonfallthru): Rename into...
2513         (rtl_force_nonfallthru): ...this.
2514         (commit_one_edge_insertion): Do not set AUX field.
2515         (commit_edge_insertions): Do not discover new basic blocks.
2516         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2517         (cfg_layout_rtl_cfg_hooks): Likewise.
2518         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2519         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2520         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2521
2522 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2523
2524         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2525         Remove macros.
2526
2527 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2528
2529         * config/i386/sse.md: Update copyright year.
2530         (avxcvtvecmode): Remove.
2531         (sse_movhlps): Merge with *avx_movhlps.
2532         (sse_movlhps): Merge with *avx_movlhps.
2533         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2534         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2535         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2536         (sse_loadhps): Merge with *avx_loadhps.
2537         (sse_storelps): Merge with *avx_storelps.
2538         (sse_loadlps): Merge with *avx_loadlps.
2539         (sse_movss): Merge with *avx_movss.
2540         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2541         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2542         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2543         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2544         (vec_set<mode>_0): Ditto.
2545         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2546         (sse4_1_insertps): Merge with *avx_insertps.
2547         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2548         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2549         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2550         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2551         (sse2_storehpd): Merge with *avx_storehpd.
2552         (sse2_loadhpd): Merge with *avx_loadhpd.
2553         (sse2_loadlpd): Merge with *avx_loadlpd.
2554         (sse2_movsd): Merge with *avx_movsd.
2555         (*vec_concatv2df): Merge with *vec_concatv2df.
2556
2557 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2558
2559         PR debug/48343
2560         * combine.c (combine_instructions): Add last_combined_insn,
2561         update it if insn is after it, pass it to all try_combine calls.
2562         (try_combine): Add last_combined_insn parameter, pass it instead of
2563         i3 to propagate_for_debug.
2564
2565 2011-04-07  Nick Clifton  <nickc@redhat.com>
2566
2567         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2568         to handle MDR <-> data register transfers.
2569         (movhi_internal): Likewise.
2570
2571 2011-04-07  Alan Modra  <amodra@gmail.com>
2572
2573         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2574         previous stack info.
2575
2576 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2577
2578         PR target/43920
2579         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2580         flow_find_cross_jump.  Swap variables to implement backward replacement.
2581         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2582
2583 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2584
2585         PR target/43920
2586         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2587         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2588         and bb2.
2589         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2590         src1 or src2.  Redirect edges to the last basic block.  Update
2591         frequency and count on multiple basic blocks in case of fallthru.
2592
2593 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2594
2595         PR target/43920
2596         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2597         function.
2598         (old_insns_match_p): Change return type.  Replace return false/true
2599         with return dir_none/dir_both.  Use can_replace_by.
2600         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2601         direction from dir_p.  Register replacement direction in dir, last_dir
2602         and afterlast_dir.  Handle new return type of old_insns_match_p using
2603         merge_dir.  Return replacement direction in dir_p.
2604         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2605         return type of old_insns_match_p.
2606         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2607         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2608         flow_find_cross_jump.
2609         * basic-block.h (enum replace_direction): New type.
2610         (flow_find_cross_jump): Add parameter to declaration.
2611
2612 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2613
2614         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2615         (AVXMODEDCVTPS2DQ): Ditto.
2616         (VEC_FLOAT_MODE): Ditto.
2617         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2618         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2619         (<any_logic:code><mode>3): Use VF mode iterator.
2620         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2621         Use VF mode iterator.
2622         (copysign<mode>3): Use VF mode iterator.
2623         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2624         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2625         (*<any_logic:code><MODEF:mode>3): Merge with
2626         *avx_<any_logic:code><MODEF:mode>3.
2627         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2628         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2629         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2630         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2631         (sse2_cvtdq2ps): Use %v modifier.
2632         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2633         (avx_cvtps2dq<avxmodesuffix>): Remove.
2634         (sse2_cvtps2dq): Use %v modifier.
2635         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2636         (avx_cvttps2dq<avxmodesuffix>): Remove.
2637         (sse2_cvttps2dq): Use %v modifier.
2638         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2639         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2640         (sse2_cvtsd2siq): Fix insn template.
2641         (sse2_cvtsd2siq_2): Ditto.
2642         (sse2_cvttsd2siq): Ditto.
2643         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2644         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2645
2646 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2647
2648         * gcov-io.c: Use GCC Runtime Library Exception.
2649
2650 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2651
2652         PR debug/48466
2653         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2654         as base_reg whatever register reg has been eliminated to, instead
2655         of hardcoding STACK_POINTER_REGNUM.
2656
2657 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2658
2659         * doc/tm.texi.in: Document C target hooks as separate from general
2660         target hooks.
2661         * doc/tm.texi: Regenerate.
2662         * genhooks.c (struct hook_desc): Add docname field.
2663         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2664         docname field.
2665         (hook_array): Include c-target.def.
2666         (emit_documentation): Use docname field in output.
2667         (emit_init_macros): Take docname argument.  Only emit definitions
2668         for hooks matching docname.
2669         (main): Expect additional arguments in all cases.  Pass argument
2670         to emit_init_macros.
2671         * target.def: Move initial macro definitions and comments to
2672         target-hooks-macros.h.
2673         (gcc_targetcm): Move to c-family/c-target.def.
2674         * target.h (targetcm): Move declaration to c-family/c-target.h.
2675         * targhooks.c (default_handle_c_option): Move to
2676         c-family/c-opts.c.
2677         * targhooks.h (default_handle_c_option): Move declaration to
2678         c-family/c-common.h.
2679         * target-hooks-macros.h: New file.
2680         * config.gcc (target_has_targetcm): Define and use to add to
2681         c_target_objs and cxx_target_objs.
2682         * config/default-c.c: New file.
2683         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2684         of target.h and target-def.h.
2685         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2686         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2687         darwin_check_cfstring_format_arg): Make static.
2688         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2689         TARGET_STRING_OBJECT_REF_TYPE_P,
2690         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2691         * config/darwin-protos.h (darwin_objc_construct_string,
2692         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2693         declare.
2694         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2695         TARGET_STRING_OBJECT_REF_TYPE_P,
2696         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2697         * config/t-darwin (darwin-c.o): Update dependencies.
2698         * system.h (TARGET_HAS_TARGETCM): Poison.
2699         * Makefile.in (TARGET_H): Update.
2700         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2701         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2702         (default-c.o): New target.
2703         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2704         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2705         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2706         c-target.def.
2707         (build/genhooks.o): Update dependencies.
2708
2709 2011-04-06  Richard Guenther  <rguenther@suse.de>
2710
2711         * ipa-inline.c (enum inlining_mode): Remove.
2712         (cgraph_flatten): Use some other token.
2713         (cgraph_edge_early_inlinable_p): New function, split out from ...
2714         (cgraph_perform_always_inlining): New function, split out from ...
2715         (cgraph_decide_inlining_incrementally): ... here.
2716         (cgraph_mark_inline_edge): Adjust.
2717         (cgraph_early_inlining): Re-structure.
2718         (pass_early_inline): Require SSA form.
2719
2720 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2721             Julian Brown  <julian@codesourcery.com>
2722             Mark Shinwell  <shinwell@codesourcery.com>
2723
2724         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2725         LO_REGS only for Thumb-1.
2726         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2727         be used in short instructions when optimising for size on Thumb-2.
2728
2729 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2730
2731         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2732         associated with user returns to be preserved.
2733
2734 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2735
2736         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2737         symbol_queue_size, DBXOUT_DECR_NESTING,
2738         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2739         if XCOFF_DEBUGGING_INFO.
2740
2741 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2742
2743         * config/i386/i386.md (attribute isa): New.
2744         (attribute enabled): New.
2745         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2746         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2747         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2748         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2749         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2750         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2751         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2752         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2753
2754         * config/i386/sse.md (VF): New mode iterator.
2755         (VF1): Ditto.
2756         (VF2): Ditto.
2757         (VF_128): Ditto.
2758         (SSEMODEF4): Remove.
2759         (attribute sse): Handle V8SF and V4DF modes.
2760         (<absneg:code><mode>2): Use VF mode iterator.
2761         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2762         mode iterator.
2763         (<plusminus_insn><mode>3): Use VF mode iterator.
2764         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2765         Use VF mode iterator.
2766         (<sse>_vm<plusminus_insn><mode>3): Merge with
2767         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2768         (mul<mode>3): Use VF mode iterator.
2769         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2770         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2771         mode iterator.
2772         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2773         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2774         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2775         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2776         mode iterator.
2777         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2778         Use VF1 mode iterator.
2779         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2780         (sqrt<VF2:mode>2): New expander.
2781         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2782         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2783         and sqrtv2df2.  Use VF mode iterator.
2784         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2785         mode iterator.
2786         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2787         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2788         Use VF1 mode iterator.
2789         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2790         (<smaxmin:code><mode>3): Use VF mode iterator.
2791         (*<smaxmin:code><mode>3_finite): Merge with
2792         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2793         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2794         (<sse>_vm<smaxmin:code><mode>2): Merge with
2795         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2796         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2797         mode iterator.
2798         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2799         mode iterator.
2800         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2801         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2802         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2803         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2804         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2805         VF mode iterator.
2806         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2807         Use VF_128 mode iterator.
2808         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2809         mode iterator.
2810         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2811         VF_128 mode iterator.
2812         (vcond<mode>): Use VF mode iterator.
2813         * config/i386/predicates.md (sse_comparison_operator): Merge with
2814         avx_comparison_float_operator.  Do not declare as special_predicate.
2815         * config/i386/i386.c (struct builtin_description): Update for renamed
2816         compare patterns.
2817         (ix86_expand_args_builtin): Ditto.
2818         (ix86_expand_sse_compare_mask): Ditto.
2819
2820 2011-04-06  Richard Guenther  <rguenther@suse.de>
2821
2822         * tree-inline.c (estimate_num_insns): For calls simply account
2823         for all passed arguments and a used return value.
2824
2825 2011-04-06  Richard Guenther  <rguenther@suse.de>
2826
2827         PR tree-optimization/47663
2828         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2829         call_stmt_time fields.
2830         (cgraph_edge_inlinable_p): Declare.
2831         (cgraph_edge_recursive_p): New inline function.
2832         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2833         (cgraph_clone_edge): Copy it.
2834         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2835         Account for call stmt time.
2836         (cgraph_estimate_time_after_inlining): Take edge argument.
2837         (cgraph_estimate_edge_growth): Account call stmt size.
2838         (cgraph_estimate_size_after_inlining): Take edge argument.
2839         (cgraph_mark_inline_edge): Adjust.
2840         (cgraph_check_inline_limits): Likewise.
2841         (cgraph_recursive_inlining_p): Remove.
2842         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2843         (cgraph_decide_recursive_inlining): Take edge argument and
2844         adjust.
2845         (cgraph_decide_inlining_of_small_functions): Do not avoid
2846         diags for recursive inlining here.
2847         (cgraph_flatten): Adjust.
2848         (cgraph_decide_inlining_incrementally): Likewise.
2849         (estimate_function_body_sizes): Remove call cost handling.
2850         (compute_inline_parameters): Initialize caller edge call costs.
2851         (cgraph_estimate_edge_growth): New function.
2852         (cgraph_estimate_growth): Use it.
2853         (cgraph_edge_badness): Likewise.
2854         (cgraph_check_inline_limits): Take an edge argument.
2855         (cgraph_decide_inlining_of_small_functions): Adjust.
2856         (cgraph_decide_inlining): Likewise.
2857         * tree-inline.c (estimate_num_insns): Only account for call
2858         return value if it is used.
2859         (expand_call_inline): Avoid diagnostics on recursive inline
2860         functions here.
2861         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2862         (input_edge): Input edge call costs.
2863
2864 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2865
2866         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2867
2868 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2869
2870         * doc/invoke.texi (Spec Files): Fix typo.
2871
2872 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2873
2874         * profile.c (branch_prob): Move declaration of local variable.  Remove
2875         obsolete ??? comment.  Expand the location explicitly instead of using
2876         the LOCATION_FILE and LOCATION_LINE macros.
2877
2878 2011-04-06  Wei Guozhi  <carrot@google.com>
2879
2880         PR target/47855
2881         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2882         (arm_cond_branch): Likewise.
2883         (arm_cond_branch_reversed): Likewise.
2884         (arm_jump): Likewise.
2885         (push_multi): Likewise.
2886         * config/arm/constraints.md (Py): New constraint.
2887
2888 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2889
2890         PR bootstrap/48471
2891         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2892         Move these...
2893         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2894         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2895         #ifdef DBX_DEBUGGING_INFO.
2896
2897 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2898
2899         PR bootstrap/48403
2900         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2901         if old and new states differ.
2902
2903 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2904
2905         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2906         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2907         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2908         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2909         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2910         mcfv4e): Use Alias.
2911         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2912         ColdFire options to -mcpu= options.
2913
2914 2011-04-05  Jeff Law  <law@redhat.com>
2915
2916         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2917         check if BB is a successor of LOOP->header and return
2918         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2919
2920 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2921
2922         * cprop.c (struct reg_use): Remove.
2923         (reg_use_table): Make an array of RTX.
2924         (find_used_regs, constprop_register, local_cprop_pass,
2925         bypass_block): Simplify users of reg_use_table.
2926         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
2927         on one of the uses found by find_used_regs.
2928
2929 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2930
2931         PR bootstrap/48469
2932         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
2933         declaration.
2934
2935 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2936
2937         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
2938         as an rtx.
2939         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
2940
2941 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2942
2943         PR middle-end/48441
2944         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
2945
2946 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2947
2948         * combine.c: Include obstack.h.
2949         (struct insn_link): Define.
2950         (uid_log_links): Adjust type.
2951         (FOR_EACH_LOG_LINK): New macro.
2952         (insn_link_obstack): Declare.
2953         (alloc_insn_link): Define.
2954         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
2955         type of link variables.
2956         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
2957         (try_combine, record_promoted_values, distribute_notes): Likewise.
2958         (distribute_links): Likewise.  Tweak prototype.
2959         (clear_log_links): Delete.
2960         (adjust_for_new_dest): Call alloc_insn_link.
2961         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
2962
2963 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2964
2965         * gcse.c (modify_mem_list): Convert to an array of VECs.
2966         (canon_modify_mem_list, compute_transp): Tweak formatting.
2967         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
2968         (load_killed_in_block_p): Likewise.
2969         (record_last_mem_set_info): Likewise.
2970         (clear_modify_mem_tables): Likewise.
2971
2972 2011-04-05  Tom de Vries  <tom@codesourcery.com>
2973
2974         PR middle-end/48461
2975         * function.c (emit_use_return_register_into_block): Only define if
2976         HAVE_return.
2977
2978 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
2979
2980         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
2981
2982 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2983
2984         * config/rx/rx-opts.h: New.
2985         * config/rx/rx.c (rx_cpu_type): Remove.
2986         (rx_handle_option): Don't assert that global structures are in
2987         use.  Access variables via opts pointer.  Defer most handling of
2988         OPT_mint_register_.  Use error_at.
2989         (rx_option_override): Handle deferred OPT_mint_register_ here.
2990         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
2991         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
2992         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
2993         (rx_cpu_types): New Enum and EnumValue entries.
2994         (mint-register=): Use Defer and use Var accordingly.
2995
2996 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2997
2998         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
2999         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3000         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3001         Move these...
3002         (debug_free_queue, debug_nesting, symbol_queue_index):
3003         ...and these...
3004         * dbxout.c: ...to here.  Make static.
3005
3006 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3007
3008         * gcse.c (modify_pair): Define.  Define a VEC of it.
3009         (canon_modify_mem_list): Convert to an array of VECs.
3010         (free_insn_expr_list_list): Delete.
3011         (clear_modify_mem_tables): Call VEC_free instead.
3012         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3013         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3014         (canon_list_insert, compute_transp): Likewise.
3015
3016 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3017
3018         PR target/43920
3019         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3020         for size.
3021
3022 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3023
3024         PR target/43920
3025         * function.c (emit_use_return_register_into_block): New function.
3026         (thread_prologue_and_epilogue_insns): Use
3027         emit_use_return_register_into_block.
3028
3029 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3030
3031         PR target/43920
3032         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3033         insn.
3034
3035 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3036
3037         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3038
3039 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3040
3041         * config/arm/arm.md (define_constants for unspec): Replace with
3042         define_c_enum.
3043         (define_constants for unspecv): Replace with define_c_enum.
3044         * config/arm/neon.md (define_constants for unspec): Replace with
3045         define_c_enum.
3046
3047 2011-04-04  Richard Henderson  <rth@redhat.com>
3048
3049         PR bootstrap/48400
3050         * dwarf2out.c (output_line_info): Always emit line info from
3051         at least one section.
3052         (dwarf2out_init): Create text_section_line_info here ...
3053         (set_cur_line_info_table): ... not here.
3054
3055 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3056
3057         PR target/48380
3058         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3059         not called.
3060
3061         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3062
3063 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3064
3065         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3066         (expr_equiv_p): Remove.
3067         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3068         (hash_scan_set): Update call to insert_set_in_table.
3069         (dump_hash_table): Dump <dest, src> pair.
3070         (lookup_set): Simplify.  Lookup <dest, src> pair.
3071         (compute_transp): Remove, fold heavily simplified code into...
3072         (compute_local_properties): ...here.  Expect COMP and TRANSP
3073         unconditionally.
3074         (find_avail_set): Take set directly from struct expr.
3075         (find_bypass-set): Likewise.
3076         (bypass_block): Likewise.
3077         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3078
3079         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3080         checks on form of COND from find_implicit_sets to here.
3081         (find_implicit_sets): Cleanup control flow. Split critical edges
3082         if it exposes implicit sets.  Allocate/resize implicit_sets as
3083         necessary.
3084         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3085         changed something.  Run df_analyze after find_implicit_sets if any
3086         edges were split.  Do not allocate implicit_sets here.
3087
3088         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3089         (gcse_obstack): Renamed to cprop_obstack.
3090         (GNEW, GNEWVEC, GNEWVAR): Remove.
3091         (gmalloc): Remove.
3092         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3093         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3094         (gcse_alloc): Likewise, and rename to cprop_alloc.
3095         (alloc_gcse_men, free_gcse_mem): Remove.
3096         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3097         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3098         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3099
3100         * cprop.c (oprs_not_set_p): Remove.
3101         (mark_set, mark_clobber): Remove.
3102         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3103         (reg_not_set_p): New function.
3104         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3105         (cprop_insn): Likewise.
3106         (cprop_jump): Use FOR_EACH_EDGE.
3107
3108 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3109
3110         PR bootstrap/48403
3111         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3112         (rank_for_schedule): Use scheduled_insns vector instead of
3113         last_scheduled_insn.
3114         (ok_for_early_queue_removal): Likewise.
3115         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3116         we have a dbg_cnt.
3117         (choose_ready): Likewise.
3118         (commit_schedule): Use VEC_iterate.
3119         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3120         a dbg_cnt, use it and ensure the first insn is in the ready list.
3121         (haifa_sched_init): Allocate scheduled_insns.
3122         (sched_extend_ready_list): Don't allocate it; reserve space.
3123         (haifa_sched_finish): Free it.
3124
3125 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3126
3127         * optc-gen.awk: Always remove type from Variable entry before
3128         recording in var_seen.
3129
3130 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3131
3132         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3133         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3134         call to tidy_fallthru_edges.
3135
3136 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3137
3138         * doc/options.texi (ToLower): Document.
3139         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3140         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3141         * opts.h (cl_option): Add cl_tolower field.
3142         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3143         arguments with lowercase strings.
3144         * config/rx/rx.opt (mcpu=): Add ToLower.
3145         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3146         argument.
3147
3148 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3149
3150         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3151
3152 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3153
3154         * config/vax/vax.c: Include reload.h.
3155
3156 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3157
3158         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3159         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3160         (sparc_preferred_reload_class): New function.
3161
3162 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3163
3164         PR debug/48401
3165         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3166         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3167
3168 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3169
3170         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3171         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3172
3173 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3174
3175         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3176         (ASM_OUTPUT_ALIGNED_BSS): Define.
3177
3178 2011-04-03  Michael Matz  <matz@suse.de>
3179
3180         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3181         and next_slot members.
3182         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3183         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3184         (lto_streamer_cache_append): Declare.
3185         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3186         unsigned index, remove offset parameter, ensure that we append
3187         or update existing entries.
3188         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3189         parameter, update next_slot for append.
3190         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3191         parameter.
3192         (lto_streamer_cache_insert_at): Likewise.
3193         (lto_streamer_cache_append): New function.
3194         (lto_streamer_cache_lookup): Use unsigned index.
3195         (lto_streamer_cache_get): Likewise.
3196         (lto_record_common_node): Don't test tree_node_can_be_shared.
3197         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3198         (lto_streamer_cache_delete): Don't free offsets member.
3199         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3200         (lto_output_string_with_length): Use lto_output_data_stream.
3201         (lto_output_tree_header): Remove ix parameter, don't write it.
3202         (lto_output_builtin_tree): Likewise.
3203         (lto_write_tree): Adjust callers to above, don't track and write
3204         offset, write unsigned index.
3205         (output_unreferenced_globals): Don't emit all global vars.
3206         (write_global_references): Use unsigned indices.
3207         (lto_output_decl_state_refs): Likewise.
3208         (write_symbol): Likewise.
3209         * lto-streamer-in.c (lto_input_chain): Move earlier.
3210         (input_function): Use unsigned index.
3211         (input_alias_pairs): Don't read and then ignore all global vars.
3212         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3213         don't pass it back, use lto_streamer_cache_append.
3214         (lto_register_var_decl_in_symtab): Use unsigned index.
3215         (lto_register_function_decl_in_symtab): Likewise.
3216         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3217         index.
3218         (lto_get_builtin_tree): Don't read index, use
3219         lto_streamer_cache_append.
3220         (lto_read_tree): Adjust call to lto_materialize_tree.
3221
3222         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3223         don't use function calls in arguments to MIN.
3224
3225         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3226         twice.
3227
3228         * gimple.c (gimple_type_leader_entry): Mark deletable.
3229
3230 2011-04-03  Alan Modra  <amodra@gmail.com>
3231
3232         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3233
3234 2011-04-03  Michael Matz  <matz@suse.de>
3235
3236         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3237         an integer.
3238         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3239
3240 2011-04-03  Michael Matz  <matz@suse.de>
3241
3242         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3243         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3244         without function context.
3245         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3246         current_function_decl and cfun.
3247
3248 2011-04-03  Michael Matz  <matz@suse.de>
3249
3250         * tree.c (decl_init_priority_insert): Don't create entry for
3251         default priority.
3252         (decl_fini_priority_insert): Ditto.
3253         (fields_compatible_p, find_compatible_field): Remove.
3254         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3255         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3256
3257 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3258
3259         * combine.c (try_combine): Remove useless local variable.
3260
3261 2011-04-03  Richard Guenther  <rguenther@suse.de>
3262             Ira Rosen  <ira.rosen@linaro.org>
3263
3264         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3265         non-variable offsets and compare the remaining bases of the two
3266         accesses instead of looking for exact same data-ref.
3267
3268 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3269
3270         PR target/48416
3271         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3272
3273         * i386.c (ix86_is_msabi_thiscall): New helper function.
3274         (ix86_is_type_thiscall): New helper function.
3275         (ix86_comp_type_attributes): Handle thiscall for method-functions
3276         special.
3277         (init_cumulative_args): Likewise.
3278         (find_drap_reg): Likewise.
3279         (ix86_static_chain): Likewise.
3280         (x86_this_parameter): Likewise.
3281         (x86_output_mi_thunk): Likewise.
3282
3283 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3284             Nicolas Setton  <setton@adacore.com>
3285             Eric Botcazou  <ebotcazou@adacore.com>
3286
3287         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3288         (add_gnat_descriptive_type_attribute): New function.
3289         (gen_array_type_die): Call it.
3290         (gen_enumeration_type_die): Likewise.
3291         (gen_struct_or_union_type_die): Likewise.
3292         (modified_type_die): Likewise.
3293         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3294         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3295         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3296
3297 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3298
3299         PR bootstrap/48148
3300         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3301         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3302
3303         Revert:
3304         2011-03-17  Richard Guenther  <rguenther@suse.de>
3305
3306         PR bootstrap/48148
3307         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3308         origin for decls in other ltrans units.
3309         (input_varpool_node): Likewise.
3310
3311 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3312
3313         PR middle-end/48335
3314         * expr.c (expand_assignment): Handle all possibilities
3315         if TO_RTX is CONCAT.
3316         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3317         (store_split_bit_field): If SUBREG_REG (op0) or
3318         op0 itself has smaller mode than word, return it
3319         for offset 0 and const0_rtx for out-of-bounds stores.
3320         If word is const0_rtx, skip it.
3321
3322 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3323
3324         * config/h8300/h8300.c (print_operand_address): Rename to...
3325         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3326         Call h8300_print_operand and h8300_print_operand_address instead of
3327         print_operand and print_operand_address. Declare.
3328         (print_operand): Renake to...
3329         (h8300_print_operand): ...this. Make static. Adjust comments.
3330         Call h8300_print_operand instead of print_operand. Declare.
3331         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3332         (h8300_register_move_cost): Likewise.
3333         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3334         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3335         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3336         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3337         * config/h8300/h8300-protos.h (print_operand): Delete.
3338         (print_operand_address): Delete.
3339
3340 2011-04-01  Richard Henderson  <rth@redhat.com>
3341
3342         PR 48400
3343         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3344         in strict mode before dwarf4.  Re-order tests to early out
3345         before switching sections.
3346
3347 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3348
3349         * config/h8300/constraints.md: New file.
3350         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3351         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3352         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3353         * config/h8300/predicates.md (bit_operand): Likewise.
3354         (incdec_operand): Use satisfies_constraint_M and
3355         satisfies_constraint_O.  Don't use C code block.
3356         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3357         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3358         (compute_mov_length): Use satisfies_constraint_G.
3359         (fix_bit_operand): Use satisfies_constraint_U.
3360         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3361         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3362         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3363         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3364         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3365         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3366         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3367         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3368         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3369         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3370         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3371         (EXTRA_MEMORY_CONSTRAINT): Delete.
3372
3373 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3374             Michael Meissner  <meissner@linux.vnet.ibm.com>
3375
3376         PR target/48262
3377         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3378         operands, as per the specifications.
3379
3380         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3381         (vec_extract_evenv4sf): Ditto.
3382         (vec_extract_evenv8hi): Ditto.
3383         (vec_extract_evenv16qi): Ditto.
3384         (vec_extract_oddv4si): Ditto.
3385
3386 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3387
3388         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3389         high_pc attribute if the CU has no associated code. Only output
3390         DW_AT_entry_pc for CU if not generating strict dwarf and
3391         dwarf_version < 4.
3392
3393 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3394
3395         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3396         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3397         out of ...
3398         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3399         * final.c (final_start_function): Call the new function rather
3400         than using a NULL argument for dwarf2out_frame_debug.
3401
3402         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3403         that contains the prologue.
3404
3405         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3406         changed.  Print it in debugging output.
3407
3408         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3409
3410         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3411         Split most of the code into...
3412         (begin_move_insn): ... here.  New function.
3413         (ebb_sched_info): Add a pointer to it.
3414         * haifa-sched.c (scheduled_insns): New static variable.
3415         (sched_extend_ready_list): Allocate it.
3416         (schedule_block): Use it to record the order of scheduled insns.
3417         Perform RTL changes to move insns only after all scheduling
3418         decisions have been made.
3419         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3420         begin_move_insn field.
3421         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3422         * sched-int.h (struct haifa_sched_info): Remove second argument
3423         from begin_schedule_ready hook.  Add new member begin_move_insn.
3424         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3425         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3426
3427         * haifa-sched.c (prune_ready_list): New function, broken out of
3428         schedule_block.
3429         (schedule_block): Use it.
3430
3431 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3432
3433         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3434
3435 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3436
3437         * config.gcc (*-*-mingw*): Allow as option the
3438         posix threading model.
3439         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3440         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3441         definition.
3442         (CPP_SPEC): Add pthread/no-pthread handling.
3443         (LIB_SPEC): Likewise.
3444         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3445         (LIB_SPEC): Likewise.
3446         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3447         flag to pass -pthread option for shared libgcc build.
3448         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3449         for shared libgcc build.
3450         * config/i386/t-mingw-pthread: New file.
3451         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3452         New define to enable use of library pthread by default.
3453         * config/i386/mingw.opt (pthread): New driver option.
3454         (no-pthread): New driver option.
3455         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3456         * config/i386/mingw-w64.opt: Likewise.
3457
3458 2011-04-01  Gary Funck <gary@intrepid.com>
3459
3460         * c-decl.c (grokdeclarator): Fix formatting.
3461
3462 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3463
3464         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3465         instead of n_operands.
3466         (set_storage_via_setmem): Likewise.
3467         * optabs.c (maybe_gen_insn): Likewise.
3468         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3469         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3470         (mips_expand_builtin_direct): Likewise.
3471         * config/spu/spu.c (expand_builtin_args): Likewise.
3472
3473 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3474
3475         * recog.h (insn_data_d): Add n_generator_args.
3476         * genoutput.c (data): Likewise.
3477         (output_insn_data): Print it.
3478         (max_opno, num_dups): Delete.
3479         (scan_operands): Just fill in "d->operand[...]".
3480         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3481
3482 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3483
3484         * gensupport.h (pattern_stats): New structure.
3485         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3486         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3487         (max_operand_1, max_operand_vec): Delete.
3488         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3489
3490 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3491
3492         * emit-rtl.c (emit_pattern_after_setloc): New function.
3493         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3494         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3495         (emit_pattern_after): New function.
3496         (emit_insn_after, emit_jump_insn_after): Call it.
3497         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3498         (emit_pattern_before_setloc): New function.
3499         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3500         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3501         Likewise.
3502         (emit_pattern_before): New function.
3503         (emit_insn_before, emit_jump_insn_before): Call it.
3504         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3505
3506 2011-03-31  Richard Henderson  <rth@redhat.com>
3507
3508         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3509         (dw_separate_line_info_entry): Remove.
3510         (enum dw_line_info_opcode): New.
3511         (dw_line_info_entry): Use it.
3512         (dw_line_info_table, dw_line_info_table_p): New.
3513         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3514         (line_info_table, line_info_label_num): Remove.
3515         (line_info_table_in_use): Remove.
3516         (separate_line_info_table): Remove.
3517         (separate_line_info_table_allocated): Remove.
3518         (separate_line_info_table_in_use): Remove.
3519         (LINE_INFO_TABLE_INCREMENT): Remove.
3520         (line_info_label_num): New.
3521         (cur_line_info_table): New.
3522         (text_section_line_info, cold_text_section_line_info): New.
3523         (separate_line_info): New.
3524         (SEPARATE_LINE_CODE_LABEL): Remove.
3525         (print_dwarf_line_table): Remove.
3526         (debug_dwarf): Don't dump it.
3527         (output_one_line_info_table): New.
3528         (output_line_info): Use it.
3529         (new_line_info_table): New.
3530         (set_cur_line_info_table): New.
3531         (dwarf2out_switch_text_section): Use it.
3532         (dwarf2out_begin_function): Likewise.
3533         (push_dw_line_info_entry): New.
3534         (dwarf2out_source_line): Rewrite for new line info tables.
3535         (dwarf2out_init): Remove dead initailizations.
3536
3537 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3538
3539         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3540         various flags.
3541         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3542         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3543         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3544         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3545         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3546         * opt-functions.awk (flag_init, switch_bit_fields): New.
3547         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3548         generate CL_MISSING_OK or CL_SAVE.
3549         * optc-gen.awk: Update to generate bit-field output as well as
3550         flags field.
3551         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3552         bit-field instead of CL_REJECT_DRIVER flag.
3553         * opts-common.c (generate_canonical_option,
3554         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3555         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3556         instead of CL_REJECT_NEGATIVE flag.
3557         * toplev.c (print_switch_values): Use cl_report bit-field instead
3558         of CL_REPORT flag.
3559
3560 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3561
3562         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3563         a zero minimum index only if it is redundant.
3564
3565 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3566
3567         PR rtl-optimization/48381
3568         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3569         instead of ira_class_hard_reg_index for calculating conflicting
3570         hard registers.
3571
3572 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3573
3574         * cprop.c: Clean up hash table building.
3575         (reg_avail_info): Remove.
3576         (oprs_available_p): Remove.
3577         (record_last_reg_set_info): Remove.
3578         (record_last_set_info): Remove.
3579         (reg_available_p): New function.
3580         (gcse_constant_p): Do not treat unfolded conditions as constants.
3581         (make_set_regs_unavailable): New function.
3582         (hash_scan_set): Simplify with new reg_available_p.
3583         (compute_hash_table_work): Traverse insns stream only once.
3584         Do not compute reg_avail_info. Traverse insns in reverse order.
3585         Record implicit sets after recording explicit sets from the block.
3586
3587 2011-03-31  Michael Matz  <matz@suse.de>
3588
3589         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3590
3591 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3592
3593         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3594         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3595         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3596         (h8300_mode_dependent_address_p): New function.
3597         (h8300_get_index): Make static.
3598
3599 2011-03-31  Jeff Law  <law@redhat.com>
3600
3601         * reload1.c (elimination_effects): Fix typo in recent change.
3602
3603         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3604         typo potentially leading to null pointer dereference.
3605
3606         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3607         (setup_save_areas): Corresponding changes to avoid useless
3608         assignments.
3609
3610         * jump.c (reversed_comparison_code_parts): Avoid successive return
3611         statements when REVERSE_CONDITION is defined.
3612
3613         * expr.c (expand_assignment): Avoid useless assignments.
3614         (expand_expr_real_1): Likewise.
3615         (expand_expr_real_2): Avoid useless statements.
3616
3617         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3618
3619         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3620
3621         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3622         statements.
3623
3624         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3625
3626 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3627
3628         PR target/47109
3629         * doc/tm.texi.in (TARGET_VERSION): Remove.
3630         * doc/tm.texi: Regenerate.
3631         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3632         * collect2.c (main): Don't use TARGET_VERSION.
3633         * mips-tdump.c (main): Don't use TARGET_VERSION.
3634         * mips-tfile.c (main): Don't use TARGET_VERSION.
3635         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3636         * config/rs6000/vxworksae.h: Remove.
3637         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3638         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3639         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3640         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3641         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3642         * config/arm/arm.h (TARGET_VERSION): Remove.
3643         * config/arm/coff.h (TARGET_VERSION): Remove.
3644         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3645         * config/arm/elf.h (TARGET_VERSION): Remove.
3646         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3647         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3648         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3649         * config/arm/pe.h (TARGET_VERSION): Remove.
3650         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3651         * config/arm/semi.h (TARGET_VERSION): Remove.
3652         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3653         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3654         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3655         * config/avr/avr.h (TARGET_VERSION): Remove.
3656         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3657         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3658         * config/frv/frv.h (TARGET_VERSION): Remove.
3659         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3660         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3661         * config/i386/darwin.h (TARGET_VERSION): Remove.
3662         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3663         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3664         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3665         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3666         * config/i386/gnu.h (TARGET_VERSION): Remove.
3667         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3668         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3669         * config/i386/linux.h (TARGET_VERSION): Remove.
3670         * config/i386/linux64.h (TARGET_VERSION): Remove.
3671         * config/i386/lynx.h (TARGET_VERSION): Remove.
3672         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3673         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3674         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3675         * config/i386/netware.h (TARGET_VERSION): Remove.
3676         * config/i386/nto.h (TARGET_VERSION): Remove.
3677         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3678         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3679         * config/ia64/elf.h (TARGET_VERSION): Remove.
3680         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3681         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3682         * config/ia64/linux.h (TARGET_VERSION): Remove.
3683         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3684         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3685         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3686         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3687         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3688         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3689         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3690         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3691         * config/m68k/linux.h (TARGET_VERSION): Remove.
3692         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3693         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3694         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3695         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3696         * config/mep/mep.h (TARGET_VERSION): Remove.
3697         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3698         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3699         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3700         * config/mips/linux.h (TARGET_VERSION): Remove.
3701         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3702         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3703         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3704         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3705         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3706         * config/pa/pa.h (TARGET_VERSION): Remove.
3707         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3708         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3709         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3710         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3711         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3712         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3713         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3714         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3715         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3716         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3717         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3718         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3719         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3720         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3721         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3722         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3723         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3724         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3725         * config/s390/linux.h (TARGET_VERSION): Remove.
3726         * config/s390/s390.h (TARGET_VERSION): Remove.
3727         * config/s390/tpf.h (TARGET_VERSION): Remove.
3728         * config/score/score.h (TARGET_VERSION): Remove.
3729         * config/sh/linux.h (TARGET_VERSION): Remove.
3730         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3731         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3732         * config/sh/sh.h (TARGET_VERSION): Remove.
3733         * config/sh/sh64.h (TARGET_VERSION): Remove.
3734         * config/sh/superh.h (TARGET_VERSION): Remove.
3735         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3736         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3737         * config/sparc/linux.h (TARGET_VERSION): Remove.
3738         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3739         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3740         TARGET_NAME32, TARGET_NAME): Remove.
3741         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3742         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3743         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3744         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3745         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3746         * config/spu/spu.h (TARGET_VERSION): Remove.
3747         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3748         * config/v850/v850.h (TARGET_VERSION): Remove.
3749         * config/vax/linux.h (TARGET_VERSION): Remove.
3750         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3751         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3752         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3753
3754 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3755
3756         PR target/48142
3757         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3758         frame-related from frame-unrelated adjustments to the stack pointer.
3759
3760 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3761
3762         * common.opt (fdebug-types-section): Move earlier.
3763         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3764
3765 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3766
3767         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3768         var.
3769
3770 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3771
3772         * tree.h (CASE_CHAIN): Define.
3773         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3774         (gimple_redirect_edge_and_branch): Likewise.
3775
3776 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3777
3778         PR middle-end/48367
3779         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3780         calculation.
3781
3782 2011-03-30  Jeff Law  <law@redhat.com>
3783
3784         * PR bootstrap/48371
3785         * reload1.c (reload): Fix botch in last change.
3786
3787         * reload.h (struct reload): Fix typo introduced in last change.
3788
3789 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3790
3791         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3792         Undocumented.  Remove help text.
3793         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3794         -mhard-float.
3795
3796 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3797
3798         * doc/options.texi (NegativeAlias): Document.
3799         (Alias): Mention NegativeAlias.
3800         * opt-functions.awk: Handle NegativeAlias.
3801         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3802         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3803         * opts.h (CL_NEGATIVE_ALIAS): Define.
3804         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3805         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3806         OPT_mspe_.
3807         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3808         Alias entries.
3809         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3810         mno-spe and mno-isel instead of mspe=no and -misel=no.
3811
3812 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3813
3814         * common.opt (fdebug-types-section): New flag.
3815         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3816         * dwarf2out.c (use_debug_types): New define.
3817         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3818         (print_die): Guard output of type unit signatures using
3819         use_debug_types.
3820         (build_abbrev_table): Replace assert of dwarf_version >= 4
3821         with assert on use_debug_types.
3822         (size_of_die): Likewise.
3823         (unmark_dies): Likewise.
3824         (value_format): Decide AT_ref_external form on use_debug_types.
3825         (output_die): Replace dwarf_version version check guard with
3826         use_debug_types where appropriate.
3827         (modified_type_die): Likewise.
3828         (gen_reference_type_die): Likewise.
3829         (dwarf2out_start_source_file): Likewise.
3830         (dwarf2out_end_source_file): Likewise.
3831         (prune_unused_types_walk_attribs): Likewise.
3832         (dwarf2out_finish): Likewise.
3833
3834 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3835
3836         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3837
3838 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3839
3840         PR rtl-optimization/48332
3841         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3842         mode of input operand N and modeN to its actual mode.
3843
3844 2011-03-30  Jeff Law  <law@redhat.com>
3845
3846         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3847         define accessor macro.
3848         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3849         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3850         (reg_equiv_init): Likewise.
3851         (reg_equivs_size): New variable.
3852         (reg_equiv_init_size): Remove.
3853         (allocate_initial_values): Move prototype to here from....
3854         * integrate.h (allocate_initial_values): Remove prototype.
3855         * integrate.c: Include reload.h.
3856         (allocate_initial_values): Corresponding changes.
3857         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3858         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3859         (update_equiv_regs): Corresponding changes.
3860         (ira): Corresponding changes.
3861         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3862         (push_secondary_reload): Corresponding changes.
3863         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3864         (make_memloc, find_reloads_address): Corresponding changes.
3865         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3866         (find_reloads_address_1): Corresponding changes.
3867         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3868         (refers_to_regno_for_reload_p): Corresponding changes.
3869         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3870         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3871         * reload1.c: Include ggc.h.
3872         (grow_reg_equivs): New function.
3873         (replace_pseudos_in, reload): Corresponding changes.
3874         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3875         (eliminate_regs_1, elimination_effects): Corresponding changes.
3876         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3877         (delete_output_reload): Likewise.
3878         * caller-save.c (mark_referenced_regs): Corresponding changes.
3879         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3880         * frv/predicates.md (frv_load_operand): Corresponding changes.
3881         * microblaze/microblaze.c (double_memory_operand): Corresponding
3882         changes.
3883         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3884         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3885         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3886         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3887         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3888         changes.
3889         * pa/pa.c (emit_move_sequence): Corresponding changes.
3890         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3891
3892 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3893
3894         PR target/47551
3895         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3896         structure modes.  Don't check neon_vector_mem_operand for
3897         vector or structure modes.
3898
3899 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3900             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3901
3902         PR target/43590
3903         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3904         operand 1 and reshuffle the operands to match.
3905         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3906
3907 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3908
3909         PR driver/48208
3910         * config/c.opt (F): Added 'Driver' to -F option.
3911
3912         PR driver/48260
3913         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3914           handler function.
3915         * config/darwin.opt: Added '-arch' option.
3916
3917 2011-03-30  Nick Clifton  <nickc@redhat.com>
3918
3919         * config/rx/rx.md: Add peepholes and patterns to combine
3920         extending loads and simple arithmetic instructions.
3921         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
3922         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
3923         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
3924         modes to use pre-decrement and post-increment addressing.
3925         (rx_is_restricted_memory_address): Add range checking of REG+INT
3926         addresses.
3927         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
3928         (rx_memory_move_cost): Adjust cost of stores.
3929         (rx_adjust_insn_length): New function.
3930
3931 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
3932
3933         PR c/48305
3934         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3935         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
3936         matching arg00/arg01 types.
3937
3938 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
3939
3940         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
3941         last_location to UNKNOWN_LOCATION.
3942
3943 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3944
3945         PR target/48349
3946         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
3947         FLOAT_SSE_REGS.
3948
3949 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3950             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3951
3952         PR bootstrap/48337
3953         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
3954         Init(PROCESSOR_V7).
3955         (sparc_cpu): Likewise.
3956         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
3957         PROCESSOR_V7.
3958
3959 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3960
3961         PR target/48336
3962         PR middle-end/48342
3963         PR rtl-optimization/48345
3964         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
3965         hard regs for given mode from profitable regs when doing secondary
3966         allocation.
3967
3968 2011-03-29  Jeff Law  <law@redhat.com>
3969
3970         PR bootstrap/48327
3971         * tree-ssa-threadupdate.c (struct redirection_data): Remove
3972         do_not_duplicate field.
3973         (lookup_redirection_data): Corresponding changes.
3974         (create_duplicates): Always create a template block.
3975         (redirect_edges): Remove code which reused the original block
3976         when it was going to become unreachable code.
3977         (thread_block): Don't set do_not_duplicate field.
3978
3979 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
3980
3981         * lto-opts.c (register_user_option_p, lto_register_user_option):
3982         Make type argument unsigned.
3983         * lto-streamer.h (lto_register_user_option): Make type argument
3984         unsigned.
3985         * opth-gen.awk: Make CL_* macros unsigned.
3986         * opts-common.c (find_opt): Make lang_mask argument unsigned.
3987         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
3988         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
3989         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
3990         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
3991         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
3992         (find_opt): Make lang_mask argument unsigned.
3993
3994 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3995
3996         PR rtl-optimization/48331
3997         PR rtl-optimization/48334
3998         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
3999         for any used algorithm.
4000
4001 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4002
4003         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4004         to parent_max.
4005
4006 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4007
4008         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4009         (alpha_option_override): Don't set alpha_sr_alias_set.
4010         (emit_frame_store_1): Use gen_frame_mem rather than calling
4011         set_mem_alias_set.
4012         (alpha_expand_epilogue): Ditto.
4013
4014 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4015
4016         PR tree-optimization/48290
4017         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4018         vectorization, check that relevant phis in the basic block after
4019         the inner loop are really inner loop's exit phis.
4020
4021 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4022
4023         PR debug/48190
4024         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4025         (cached_dw_loc_list_def): New structure.
4026         (cached_dw_loc_list): New typedef.
4027         (cached_dw_loc_list_table): New variable.
4028         (cached_dw_loc_list_table_hash): New function.
4029         (cached_dw_loc_list_table_eq): Likewise.
4030         (add_location_or_const_value_attribute): Take a bool cache_p.
4031         Cache the list when the parameter is true.
4032         (gen_formal_parameter_die): Update caller.
4033         (gen_variable_die): Likewise.
4034         (dwarf2out_finish): Likewise.
4035         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4036         while generating debug info for the decl.
4037         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4038         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4039         (resolve_addr): Cache the result of resolving a chain of
4040         location lists.
4041
4042 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4043
4044         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4045         conflict object hard regset nodes have intersecting hard reg sets.
4046
4047         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4048         after regstat_init_n_sets_and_refs.
4049
4050         * ira.c: Add more comments at the top.
4051         (setup_stack_reg_pressure_class, setup_pressure_classes):
4052         Add comments how we compute the register pressure classes.
4053         (setup_allocno_and_important_classes): Add more comments.
4054         (setup_class_translate_array, reorder_important_classes)
4055         (setup_reg_class_relations): Add comments.
4056
4057         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4058         start of the file.
4059
4060         * ira-color.c: Add 2011 to the Copyright line.
4061         (assign_hard_reg):  Add more comments.
4062         (improve_allocation): Ditto.
4063
4064         * ira-costs.c: Add 2011 to the Copyright line.
4065         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4066         comments.
4067         (setup_regno_cost_classes_by_mode): Ditto.
4068
4069         Initial patches from ira-improv branch:
4070
4071         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4072
4073         * ira-build.c (ira_create_object): Remove initialization of
4074         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4075         (ira_create_allocno): Remove initialization of
4076         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4077         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4078         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4079         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4080         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4081         Initialize ALLOCNO_ADD_DATA.
4082         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4083         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4084         ALLOCNO_REG.
4085         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4086         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4087
4088         * ira.c (ira_reallocate): Remove.
4089         (setup_pressure_classes): Call
4090         ira_init_register_move_cost_if_necessary.  Use
4091         ira_register_move_cost instead of ira_get_register_move_cost.
4092         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4093         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4094
4095         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4096         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4097         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4098         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4099         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4100         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4101         Fix formatting.
4102         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4103         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4104         (struct allocno_color_data): New.
4105         (allocno_color_data_t): New typedef.
4106         (allocno_color_data): New definition.
4107         (ALLOCNO_COLOR_DATA): New macro.
4108         (struct object_color_data): New.
4109         (object_color_data_t): New typedef.
4110         (object_color_data): New definition.
4111         (OBJECT_COLOR_DATA): New macro.
4112         (update_copy_costs, calculate_allocno_spill_cost): Call
4113         ira_init_register_move_cost_if_necessary.  Use
4114         ira_register_move_cost instead of ira_get_register_move_cost.
4115         (move_spill_restore, update_curr_costs): Ditto.
4116         (allocno_spill_priority): Make it inline.
4117         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4118         (struct coalesce_data, coalesce_data_t): New.
4119         (allocno_coalesce_data): New definition.
4120         (ALLOCNO_COALESCE_DATA): New macro.
4121         (merge_allocnos, coalesced_allocno_conflict_p): Use
4122         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4123         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4124         (coalesce_allocnos): Ditto.
4125         (setup_coalesced_allocno_costs_and_nums): Ditto.
4126         (collect_spilled_coalesced_allocnos): Ditto.
4127         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4128         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4129         (coalesce_spill_slots): Ditto.
4130         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4131         free allocno_coalesce_data.
4132
4133         * ira-conflicts.c: Fix formatting.
4134         (process_regs_for_copy): Call
4135         ira_init_register_move_cost_if_necessary.  Use
4136         ira_register_move_cost instead of ira_get_register_move_cost.
4137         (build_object_conflicts): Optimize.
4138
4139         * ira-costs.c (record_reg_classes): Optimize.  Call
4140         ira_init_register_move_cost_if_necessary.  Use
4141         ira_register_move_cost, ira_may_move_in_cost, and
4142         ira_may_move_out_cost instead of ira_get_register_move_cost and
4143         ira_get_may_move_cost.
4144         (record_address_regs): Ditto.
4145         (scan_one_insn): Optimize.
4146         (find_costs_and_classes): Optimize.
4147         (process_bb_node_for_hard_reg_moves): Call
4148         ira_init_register_move_cost_if_necessary.  Use
4149         ira_register_move_cost instead of ira_get_register_move_cost.
4150
4151         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4152         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4153         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4154         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4155         definitions.
4156         (ira_initiate_emit_data, ira_finish_emit_data)
4157         (create_new_allocno): New functions.
4158         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4159         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4160         Use ira_register_move_cost instead of ira_get_register_move_cost.
4161
4162         * ira-int.h: Fix some comments.
4163         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4164         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4165         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4166         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4167         add_data.
4168         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4169         bitfield after mode.  Make hard_regno a short int.  Make
4170         hard_regno short.  Remove first_coalesced_allocno and
4171         next_coalesced_allocno.  Move mem_optimized_dest_p,
4172         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4173         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4174         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4175         temp, colorable_p.  Add new member add_data.
4176         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4177         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4178         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4179         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4180         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4181         (ALLOCNO_ADD_DATA): New macro.
4182         (ira_emit_data_t): New typedef.
4183         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4184         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4185         from struct ira_allocno.
4186         (ALLOCNO_EMIT_DATA): New macro.
4187         (ira_allocno_emit_data, allocno_emit_reg): New.
4188         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4189         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4190         (OBJECT_ADD_DATA): New macro.
4191         (ira_reallocate): Remove.
4192         (ira_initiate_emit_data, ira_finish_emit_data): New.
4193         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4194         (ira_init_register_move_cost_if_necessary): New.
4195         (ira_object_conflict_iter_next): Merge into
4196         ira_object_conflict_iter_cond.
4197         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4198
4199         * ira-live.c (process_single_reg_class_operands): Call
4200         ira_init_register_move_cost_if_necessary.  Use
4201         ira_register_move_cost instead of ira_get_register_move_cost.
4202
4203         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4204
4205         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4206
4207         * ira-costs.c: Fix formatting.
4208         (cost_classes, cost_classes_num): Remove.
4209         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4210         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4211         (cost_classes_del, cost_classes_htab): New.
4212         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4213         (initiate_regno_cost_classes, setup_cost_classes): New.
4214         (setup_regno_cost_classes_by_aclass): New.
4215         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4216         (record_reg_classes): Use regno_cost_classes instead of
4217         cost_classes.  Move checking opposite operand up.
4218         (record_address_regs): Use regno_cost_classes
4219         instead of cost_classes.
4220         (scan_one_insn): Ditto.  Use always general register.
4221         (print_allocno_costs): Use regno_cost_classes instead of
4222         cost_classes.
4223         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4224         (find_costs_and_classes): Set up cost classes for each registers.
4225         Use also their mode for this.  Use regno_cost_classes instead of
4226         cost_classes.
4227         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4228         cost_classes.
4229         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4230         (ira_costs, ira_set_pseudo_classes): Call
4231         initiate_regno_cost_classes and finish_regno_cost_classes.
4232
4233         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4234
4235         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4236
4237         * target.def (ira_cover_classes): Remove.
4238
4239         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4240
4241         * doc/tm.texi.in: Ditto.
4242
4243         * ira-conflicts.c: Remove mentioning cover classes from the file.
4244         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4245         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4246
4247         * targhooks.c (default_ira_cover_classes): Remove.
4248
4249         * targhooks.h (default_ira_cover_classes): Ditto.
4250
4251         * haifa-sched.c: Remove mentioning cover classes from the file.
4252         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4253         ira_pressure_classes and ira_pressure_classes_num instead of
4254         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4255         sched_regno_pressure_class instead of sched_regno_cover_class.
4256         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4257         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4258
4259         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4260         classes from the file.
4261         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4262         (struct object_hard_regs, struct object_hard_regs_node): New.
4263         (struct ira_object): New members profitable_hard_regs,
4264         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4265         (struct ira_allocno): Rename cover_class to aclass.  Rename
4266         cover_class_cost and updated_cover_class_cost to class_cost and
4267         updated_class_cost.  Remove splay_removed_p and
4268         left_conflict_size.  Add new members colorable_p.
4269         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4270         (ALLOCNO_COLORABLE_P): New macro.
4271         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4272         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4273         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4274         (OBJECT_...): Rename parameter C to O.
4275         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4276         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4277         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4278         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4279         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4280         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4281         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4282         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4283         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4284         x_ira_reg_class_subunion.
4285         (ira_max_memory_move_cost, ira_max_register_move_cost)
4286         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4287         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4288         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4289         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4290         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4291         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4292         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4293         (ira_tune_allocno_costs_and_cover_classes): Rename to
4294         ira_tune_allocno_costs.
4295         (ira_debug_hard_regs_forest): New.
4296         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4297         (ira_object_conflict_iter_next): Fix comments.
4298         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4299         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4300         cover_class to aclass.
4301         (ira_allocate_and_accumulate_costs): Ditto.
4302         (ira_allocate_and_set_or_copy_costs): Ditto.
4303
4304         * opts.c (decode_options): Remove ira_cover_class check.
4305
4306         * ira-color.c: Remove mentioning cover classes from the file.  Use
4307         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4308         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4309         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4310         (splay-tree.h): Remove include.
4311         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4312         before copy_freq_compare_func.
4313         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4314         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4315         New definitions.
4316         (hard_regs_roots, hard_regs_node_vec): Ditto.
4317         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4318         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4319         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4320         (create_new_object_hard_regs_node): Ditto.
4321         (add_new_object_hard_regs_node_to_forest): Ditto.
4322         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4323         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4324         Ditto.
4325         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4326         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4327         (remove_unused_object_hard_regs_nodes): Ditto.
4328         (enumerate_object_hard_regs_nodes): Ditto.
4329         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4330         (object_hard_regs_subnode_t): Ditto.
4331         (struct object_hard_regs_subnode): Ditto.
4332         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4333         (setup_object_hard_regs_subnode_index): Ditto.
4334         (get_object_hard_regs_subnodes_num): Ditto.
4335         (form_object_hard_regs_nodes_forest): Ditto.
4336         (finish_object_hard_regs_nodes_tree): Ditto.
4337         (finish_object_hard_regs_nodes_forest): Ditto.
4338         (allocnos_have_intersected_live_ranges_p): Rename to
4339         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4340         (pseudos_have_intersected_live_ranges_p): Rename to
4341         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4342         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4343         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4344         (update_copy_costs): Remove assert.  Skip cost update if the hard
4345         reg does not belong the class.
4346         (assign_hard_reg): Process only profitable hard regs.
4347         (uncolorable_allocnos_num): Make it scalar.
4348         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4349         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4350         and ira_reg_class_max_nregs.
4351         (bucket_allocno_compare_func): Check frequency first.
4352         (sort_bucket): Add compare function as a parameter.
4353         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4354         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4355         (push_allocno_to_stack): Rewrite for checking new allocno
4356         colorability.
4357         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4358         (push_only_colorable): Pass new parameter to sort_bucket.
4359         (push_allocno_to_spill): Remove.
4360         (allocno_spill_priority_compare): Make it inline and rewrite.
4361         (splay_tree_allocate, splay_tree_free): Remove.
4362         (allocno_spill_sort_compare): New function.
4363         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4364         build and use splay tree.  Choose first allocno in uncolorable
4365         allocno bucket to spill.  Remove setting spill cost.
4366         (all_conflicting_hard_regs): Remove.
4367         (setup_allocno_available_regs_num): Check only profitable hard
4368         regs.  Print info about hard regs nodes.
4369         (setup_allocno_left_conflicts_size): Remove.
4370         (put_allocno_into_bucket): Don't call
4371         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4372         (improve_allocation): New.
4373         (color_allocnos): Call setup_profitable_hard_regs,
4374         form_object_hard_regs_nodes_forest, improve_allocation,
4375         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4376         (print_loop_title): Use pressure classes.
4377         (color_allocnso): Ditto.
4378         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4379         and allocnos_for_spilling.
4380         (ira_sort_regnos_for_alter_reg): Don't setup members
4381         {first,next}_coalesced_allocno.
4382         (color): Remove allocating and freeing removed_splay_allocno_vec.
4383         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4384         prohibited_class_mode_regs.
4385
4386         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4387         formatting.
4388         (update_allocno_pressure_excess_length): Use pressure classes.
4389         (inc_register_pressure, dec_register_pressure): Check for pressure
4390         class.
4391         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4392         pressure class.  Use ira_reg_class_nregs instead of
4393         ira_reg_class_max_nregs.
4394         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4395         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4396         (single_reg_class): Use ira_reg_class_nregs instead of
4397         ira_reg_class_max_nregs.
4398         (process_bb_node_lives): Use pressure classes.
4399
4400         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4401         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4402         (change_loop): Use pressure classes.
4403         (modify_move_list): Call ira_set_allocno_class instead of
4404         ira_set_allocno_cover_class.
4405
4406         * ira-build.c: Remove mentioning cover classes from the file.  Use
4407         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4408         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4409         ALLOCNO_UPDATED_CLASS_COST instead of
4410         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4411         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4412         (ira_create_allocno): Remove initialization of
4413         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4414         ALLOCNO_COLORABLE_P.
4415         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4416         Update conflict regs for the objects.
4417         (create_cap_allocno): Remove assert.  Don't propagate
4418         ALLOCNO_AVAILABLE_REGS_NUM.
4419         (ira_free_allocno_costs): New function.
4420         (finish_allocno): Change a part of code into call of
4421         ira_free_allocno_costs.
4422         (low_pressure_loop_node_p): Use pressure classes.
4423         (object_range_compare_func): Don't compare classes.
4424         (setup_min_max_conflict_allocno_ids): Ditto.
4425
4426         * loop-invariant.c: Remove mentioning cover classes from the file.
4427         Use ira_pressure_classes and ira_pressure_classes_num instead of
4428         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4429         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4430         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4431         Use reg_allocno_class instead of reg_cover_class.
4432         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4433         STACK_REG_COVER_CLASS.
4434         (get_regno_cover_class): Rename to get_regno_pressure_class.
4435         (move_loop_invariants): Initialize and finalize regstat.
4436
4437         * ira.c: Remove mentioning cover classes from the file.  Add
4438         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4439         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4440         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4441         setup_class_subset_and_memory_move_costs.
4442         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4443         (setup_cover_and_important_classes): Rename to
4444         setup_allocno_and_important_classes.
4445         (setup_class_translate_array): New.
4446         (setup_class_translate): Call it for allocno and pressure classes.
4447         (cover_class_order): Rename to allocno_class_order.
4448         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4449         of ira_class_translate.
4450         (reorder_important_classes): Set up ira_important_class_nums.
4451         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4452         (print_class_cover): Rename to print_classes.  Add parameter.
4453         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4454         Print pressure classes too.
4455         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4456         setup_reg_subclasses.
4457         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4458         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4459         (setup_prohibited_class_mode_regs): Use
4460         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4461         (clarify_prohibited_class_mode_regs): New function.
4462         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4463         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4464         (ira_init_once): Initialize them.
4465         (free_register_move_costs): Process them.
4466         (ira_init): Move calls of find_reg_classes and
4467         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4468         Call clarify_prohibited_class_mode_regs.
4469         (ira_no_alloc_reg): Remove.
4470         (too_high_register_pressure_p): Use pressure classes.
4471
4472         * sched-deps.c: Remove mentioning cover classes from the file.
4473         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4474         ira_pressure_classes and ira_pressure_classes_num instead of
4475         ira_reg_class_cover_size and ira_reg_class_cover.
4476         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4477         sched_regno_pressure_class instead of sched_regno_cover_class.
4478         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4479         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4480
4481         * ira.h: Add 2010 to Copyright.
4482         (ira_no_alloc_reg): Remove external.
4483         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4484         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4485         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4486         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4487         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4488         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4489         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4490         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4491         x_ira_no_alloc_regs.
4492         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4493         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4494         ira_allocno_classes_num and ira_allocno_classes.
4495         (ira_class_translate): Rename to ira_allocno_class_translate.
4496         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4497         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4498         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4499         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4500         (ira_no_alloc_regs): New.
4501
4502         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4503         classes from the file.  Use ALLOCNO_CLASS instead of
4504         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4505         ALLOCNO_COVER_CLASS_COST.
4506         (regno_cover_class): Rename to regno_aclass.
4507         (record_reg_classes): Use ira_reg_class_subunion instead of
4508         ira_reg_class_union.
4509         (record_address_regs): Check overflow.
4510         (scan_one_insn): Ditto.
4511         (print_allocno_costs): Print total mem cost fore regional allocation.
4512         (print_pseudo_costs): Use REG_N_REFS.
4513         (find_costs_and_classes): Use classes intersected with them on the
4514         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4515         ira_reg_class_union.  Use ira_allocno_class_translate and
4516         regno_aclass instead of ira_class_translate and regno_cover_class.
4517         Modify code for finding regno_aclass.  Setup preferred classes for
4518         the next pass.
4519         (setup_allocno_cover_class_and_costs): Rename to
4520         setup_allocno_class_and_costs.  Use regno_aclass instead of
4521         regno_cover_class.  Use ira_set_allocno_class instead of
4522         ira_set_allocno_cover_class.
4523         (init_costs, finish_costs): Use regno_aclass instead of
4524         regno_cover_class.
4525         (ira_costs): Use setup_allocno_class_and_costs instead of
4526         setup_allocno_cover_class_and_costs.
4527         (ira_tune_allocno_costs_and_cover_classes): Rename to
4528         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4529         by processing objects.  Use ira_reg_class_max_nregs instead of
4530         ira_reg_class_nregs.
4531
4532         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4533
4534         * sched-int.h: Remove mentioning cover classes from the file.
4535         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4536
4537         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4538         classes from the file.
4539         (struct reg_pref): Rename coverclass into allocnoclass.
4540         (reg_cover_class): Rename to reg_allocno_class.
4541
4542         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4543
4544         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4545
4546         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4547
4548         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4549
4550         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4551
4552         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4553
4554         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4555
4556         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4557
4558         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4559
4560         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4561
4562         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4563         (i386_ira_cover_classes): Ditto.
4564
4565         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4566
4567         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4568
4569         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4570
4571         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4572
4573         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4574
4575         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4576
4577         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4578         (mips_ira_cover_classes): Ditto.
4579
4580         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4581
4582         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4583
4584         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4585
4586         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4587
4588         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4589
4590         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4591         (IRA_COVER_CLASSES_VSX): Ditto.
4592
4593         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4594         (rs6000_ira_cover_classes): Ditto.
4595
4596         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4597
4598         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4599
4600         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4601
4602         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4603
4604         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4605
4606         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4607
4608         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4609
4610         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4611
4612         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4613
4614         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4615
4616 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4617
4618         PR debug/48253
4619         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4620         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4621         dw_fde_unlikely_section_end_label, cold_in_std_section,
4622         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4623         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4624         fields.
4625         (output_fde): Use dw_fde_second_{begin,end} if second is
4626         true, otherwise dw_fde_{begin,end}.
4627         (output_call_frame_info): Test dw_fde_second_begin != NULL
4628         instead of dw_fde_switched_sections.
4629         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4630         fields, initialize new fields.  Initialize in_std_section
4631         unconditionally from the first partition.
4632         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4633         dw_fde_second_begin is non-NULL.
4634         (dwarf2out_switch_text_section): Stop initializing removed
4635         dw_fde_struct fields, initialize new fields, initialize
4636         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4637         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4638         (struct var_loc_list_def): Add last_before_switch field.
4639         (arange_table, arange_table_allocated, arange_table_in_use,
4640         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4641         (size_of_aranges): Count !in_std_section and !second_in_std_section
4642         hunks in fdes, instead of looking at arange_table_in_use.
4643         (output_aranges): Add aranges_length argument, don't call
4644         size_of_aranges here.  Instead of using aranges_table*
4645         emit ranges for fdes when !in_std_section resp.
4646         !second_in_std_section.
4647         (dw_loc_list): Break ranges crossing section switch.
4648         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4649         use dw_fde_second_end instead of dw_fde_end as end of last range.
4650         (gen_subprogram_die): Don't call add_arange.  Use
4651         dw_fde_{begin,end} for first partition and if switched
4652         section dw_fde_second_{begin,end} for the second.
4653         (var_location_switch_text_section_1,
4654         var_location_switch_text_section): New functions.
4655         (dwarf2out_begin_function): Initialize cold_text_section even
4656         when function_section () isn't text_section.
4657         (prune_unused_types): Don't walk arange_table.
4658         (dwarf2out_finish): Don't needlessly test
4659         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4660         If info_section_emitted, call size_of_aranges and if it indicates
4661         non-empty .debug_aranges, call output_aranges with the computed
4662         size.  Stop using removed dw_fde_struct fields, use
4663         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4664         for second.
4665
4666         PR debug/48203
4667         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4668         create ENTRY_VALUE if incoming or address of incoming's MEM
4669         is a hard REG.
4670         * dwarf2out.c (mem_loc_descriptor): Don't emit
4671         DW_OP_GNU_entry_value of DW_OP_fbreg.
4672         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4673         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4674         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4675         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4676         ENTRY_VALUE_EXPs.
4677         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4678         is a REG_P or MEM_P with REG_P address, compute hash directly
4679         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4680         (preserve_only_constants): Don't clear VALUES forwaring
4681         ENTRY_VALUE to some other VALUE.
4682
4683 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4684
4685         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4686         instead of GEN_INT.
4687
4688 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4689
4690         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4691         block before expanding the statement.
4692         (expand_gimple_stmt_1): Likewise.  Set them here...
4693         (expand_gimple_stmt): ...and not here.  Tidy.
4694         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4695         unknown.
4696
4697 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4698
4699         * Makefile.in: New rule for cprop.o.
4700         * gcse.c: Move constant/copy propagation to cprop.c.
4701         (compute_local_properties): Only handle expression tables.
4702         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4703         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4704         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4705         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4706         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4707         compute_cprop_data, find_used_regs, try_replace_reg,
4708         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4709         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4710         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4711         find_bypass_set, reg_killed_on_edge, bypass_block,
4712         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4713         execute_rtl_cprop, pass_rtl_cprop): Move to...
4714         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4715         moved from gcse.c to here with minor cleanups in duplicated code.
4716
4717 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4718
4719         * config/i386/i386.c (flag_opts): Fix a typo in
4720         -mavx256-split-unaligned-store.
4721
4722 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4723
4724         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4725         LIBCALL_VALUE): Remove macros.
4726         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4727         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4728         (h8300_function_value, h8300_libcall_value,
4729         h8300_function_value_regno_p): New functions.
4730
4731 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4732
4733         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4734
4735 2011-03-28  Jeff Law  <law@redhat.com>
4736
4737         * tree-ssa-threadupdate.c (redirect_edges): Call
4738         create_edge_and_update_destination_phis as needed.
4739         (create_edge_and_update_destination_phis): Accept new BB argument.
4740         All callers updated.
4741         (thread_block): Do not update the profile when threading around
4742         intermediate blocks.
4743         (thread_single_edge): Likewise.
4744         (determine_bb_domination_status): If BB is not a successor of the
4745         loop header, return NONDOMINATING.
4746         (register_jump_thread): Note when we register a jump thread around
4747         an intermediate block.
4748         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4749         (thread_across_edge): Use it.
4750
4751 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4752
4753         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4754         when for_return is 2.
4755
4756 2011-03-28  Jeff Law  <law@redhat.com>
4757
4758         * var-tracking.c (canonicalize_values_mark): Delete unused
4759         lhs assignment.
4760         (canonicalize_values_star, set_variable_part): Likewise.
4761         (clobber_variable_part, delete_variable_part): Likewise.
4762
4763 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4764
4765         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4766
4767 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4768
4769         * tree-inline.c (expand_call_inline): Do not check that destination
4770         node is analyzed.
4771         (optimize_inline_calls): Assert that destination node is analyzed.
4772         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4773         not call tree_lowering_passes.
4774         * cgraph.h (cgraph_analyze_function): Declare.
4775         * cgraphunit.c (cgraph_analyze_function): Make public.
4776
4777 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4778
4779         * config/sparc/sparc-opts.h: New.
4780         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4781         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4782         (sparc_option_override): Store processor_type enumeration rather
4783         than string in cpu_default.  Remove name and enumeration from
4784         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4785         without using sparc_select.  Use target_flags_explicit instead of
4786         fpu_option_set.
4787         * config/sparc/sparc.h (enum processor_type): Move to
4788         sparc-opts.h.
4789         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4790         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4791         HeaderInclude entry.
4792         (mcpu=, mtune=): Use Var and Enum.
4793         (sparc_processor_type): New Enum and EnumValue entries.
4794
4795 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4796             Iain Sandoe  <iains@gcc.gnu.org>
4797
4798         PR target/48245
4799         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4800
4801 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4802
4803         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4804         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4805         Insert new statements at it in lieu of STMT.
4806         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4807         * tree-vect-stmts.c (vectorizable_store): Likewise.
4808         (vectorizable_load): Likewise.
4809
4810 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4811
4812         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4813         (divtf3): Ditto.
4814         (multf3): Ditto.
4815         (subtf3): Ditto.
4816
4817 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4818
4819         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4820         unaligned 256bit load/store.
4821         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4822         (*avx_movdqu<avxmodesuffix>): Likewise.
4823
4824 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4825
4826         PR target/48288
4827         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4828         * config/pa/pa.md (iordi3): Use new predicate in expander.
4829         (iorsi3): Likewise.
4830
4831 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4832
4833         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4834         FUNCTION_VALUE_REGNO_P): Remove macros.
4835         * config/mips/mips-protos.h (mips_function_value): Remove.
4836         * config/mips/mips.c (mips_function_value): Rename to...
4837         (mips_function_value_1): ... this. Make static.  Handle receiving
4838         the function type in 'fn_decl_or_type' argument.
4839         (mips_function_value, mips_libcall_value,
4840         mips_function_value_regno_p): New function.
4841         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4842         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4843
4844 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4845
4846         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4847         and -mavx256-split-unaligned-store.
4848         (ix86_option_override_internal): Split 32-byte AVX unaligned
4849         load/store by default.
4850         (ix86_avx256_split_vector_move_misalign): New.
4851         (ix86_expand_vector_move_misalign): Use it.
4852
4853         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4854         -mavx256-split-unaligned-store.
4855
4856         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4857         256bit load/store.  Generate unaligned store on misaligned memory
4858         operand.
4859         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4860         256bit load/store.
4861         (*avx_movdqu<avxmodesuffix>): Likewise.
4862
4863         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4864         -mavx256-split-unaligned-store.
4865
4866 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4867
4868         PR target/38598
4869         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4870         Update commentary.
4871
4872 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4873
4874         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4875         opno arguments with an expand_operand.  Use create_input_operand.
4876         (mips_prepare_builtin_target): Delete.
4877         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4878         functions.
4879         (mips_expand_builtin_direct): Use create_output_operand and
4880         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4881         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4882         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4883
4884 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4885
4886         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4887         function.
4888         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4889
4890 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4891
4892         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4893         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4894         basic blocks and call commit_edge_insertions directly.
4895         (fixup_abnormal_edges): Move from here to...
4896         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4897         on the edges and return whether some have actually been inserted.
4898         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4899         compensation code.
4900
4901 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4902
4903         PR rtl-optimization/48144
4904         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4905         (merge_expr_data): ... here.
4906         (av_set_intersect): Rename to av_set_code_motion_filter.
4907         Update all callers.  Call merge_history_vect when an expression
4908         is found in both sets.
4909         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4910
4911 2011-03-26  Alan Modra  <amodra@gmail.com>
4912
4913         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4914         cmodel medium addresses.
4915         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4916         64-bit gpr loads and stores.
4917         (rs6000_secondary_reload_ppc64): New function.
4918         * config/rs6000/rs6000-protos.h: Declare it.
4919         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4920
4921 2011-03-26  Alan Modra  <amodra@gmail.com>
4922
4923         PR target/47487
4924         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
4925         GNU Go in traceback table.
4926
4927 2011-03-25  Richard Henderson  <rth@redhat.com>
4928
4929         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
4930         if there are exactly 6 operands.
4931         (set_storage_via_setmem): Similarly.
4932
4933 2011-03-25  Kai Tietz  <ktietz@redhat.com>
4934
4935         * collect2.c (write_c_file_stat): Handle backslash
4936         as right-hand directory separator.
4937         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
4938         checking just for slash.
4939         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
4940         instead of checking for trailing slash.
4941         * gcc.c (record_temp_file): Use filename_cmp instead
4942         of strcmp.
4943         (do_spec_1): Likewise.
4944         (replace_outfile_spec_function): Likewise.
4945         (is_directory): Use filename_ncmp instead of strncmp.
4946         (print_multilib_info): Likewise.
4947         * gcov.c (find_source): Use filename_cmp instead
4948         instead of strcmp.
4949         (make_gcov_file_name): Fix order of slash/backslash
4950         checks.
4951         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
4952         (add_standard_paths): Likewise.
4953         * mips-tfile.c (saber_stop): Handle backslash.
4954         * prefix.c (update_path): Use filename_ncmp instead of
4955         strncmp.
4956         * profile.c (output_location): Use filename_cmp instead
4957         of strcmp.
4958         * read-md.c (handle_toplevel_file): Handle backslash.
4959         * tlink.c (frob_extension):  Likewise.
4960         * tree-cfg.c (same_line_p): Use filename_cmp instead of
4961         strcmp.
4962         * tree-dump.c (dequeue_and_dump): Handle backslash.
4963         * tree.c (get_file_function_name): Likewise.
4964         * gengtype.c (read_input_list): Likewise.
4965         (get_file_realbasename): Likewise.
4966         (get_output_file_with_visibility): Use filename_cmp
4967         instead of strcmp.
4968
4969 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
4970
4971         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
4972         case to VFPv1.
4973
4974 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
4975
4976         * fold-const.c (expr_location_or): New function.
4977         (fold_truth_not_expr): Call it.
4978
4979 2011-03-25  Jeff Law  <law@redhat.com>
4980
4981         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
4982         va_end.
4983         * c-family/c-common.c (def_fn_type): Likewise.
4984         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
4985         * emit-rtl.c (gen_rtvec): Likewise.
4986         * lto/lto-lang.c (def_fn_type): Likewise.
4987
4988 2011-03-25  Richard Guenther  <rguenther@suse.de>
4989
4990         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
4991         also generate copies.
4992         (fini_copy_prop): Handle constant values properly.
4993
4994 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
4995
4996         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
4997         mode size instead of bitsize with DWARF2_ADDR_SIZE.
4998         (hash_loc_operands, compare_loc_operands): Handle
4999         DW_OP_GNU_entry_value.
5000
5001 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5002
5003         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5004         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5005         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5006         comment and use macro TARGET_64BIT_MS_ABI instead.
5007         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5008         and change default behavior for 32-bit MS_ABI.
5009         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5010         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5011         32-bit, too.
5012         (ix86_cfun_abi): Likewise.
5013         (ix86_maybe_switch_abi): Adjust comment.
5014         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5015         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5016         instead of checking for SYSV_ABI.
5017         (ix86_nsaved_sseregs): Likewise.
5018         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5019         to 16 bytes.
5020         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5021         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5022         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5023         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5024         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5025
5026 2011-03-25  Richard Guenther  <rguenther@suse.de>
5027
5028         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5029         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5030         (verify_gimple): Remove.
5031         * tree-cfg.c (verify_gimple_call): Merge verification
5032         from verify_stmts.
5033         (verify_gimple_phi): Merge verification from verify_stmts.
5034         (verify_gimple_label): New function.
5035         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5036         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5037         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5038         (verify_stmts): Rename to verify_gimple_in_cfg.
5039         (verify_gimple_in_cfg): New function.
5040         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5041         * tree-ssa.c (verify_ssa): Likewise.
5042         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5043
5044 2011-03-25  Richard Guenther  <rguenther@suse.de>
5045
5046         * passes.c (init_optimization_passes): Add FRE pass after
5047         early SRA.
5048
5049 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5050             Andrew Stubbs  <ams@codesourcery.com>
5051
5052         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5053         for Cortex-A8.
5054         (arm_movdi_vfp_cortexa8): New pattern.
5055         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5056         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5057         instructions when tuning for Cortex-A8.  Set attribute "arch".
5058         * config/arm/arm.md: Move include arm-tune.md up a bit.
5059         (define_attr "arch"): Add "onlya8" and "nota8" values.
5060         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5061
5062 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5063
5064         PR bootstrap/48282
5065         Revert:
5066         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5067
5068         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5069         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5070         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5071         * passes.c (init_optimization_passes): Move
5072         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5073
5074 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5075
5076         * c-typeck.c (comptypes_internal): Replace target
5077         hook call of comp_type_attributes by version in tree.c file.
5078         * gimple.c (gimple_types_compatible_p_1): Likewise.
5079         * tree-ssa.c (useless_type_conversion_p): Likewise.
5080         * tree.c (build_type_attribute_qual_variant): Likewise.
5081         (attribute_value_equal): New static helper function.
5082         (comp_type_attributes): New function.
5083         (merge_attributes): Use attribute_value_equal for comparison.
5084         (attribute_list_contained): Likewise.
5085         * tree.h (comp_type_attributes): New prototype.
5086
5087 2011-03-25  Richard Guenther  <rguenther@suse.de>
5088
5089         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5090         of complex types at -O0.
5091         (verify_gimple_assign_binary): Likewise.
5092         (verify_gimple_assign_ternary): Likewise.
5093
5094 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5095
5096         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5097         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5098
5099 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5100
5101         PR debug/48041
5102         * dwarf2out.c (output_abbrev_section): Only write table when
5103         abbrev_die_table_in_use > 1.
5104
5105 2011-02-24  Richard Henderson  <rth@redhat.com>
5106
5107         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5108         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5109         (alpha_expand_unaligned_load_words): Use extql.
5110         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5111         (emit_insxl): Handle all modes for consistency.
5112
5113 2011-02-24  Richard Henderson  <rth@redhat.com>
5114
5115         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5116         (alpha_expand_unaligned_load): Likewise.
5117         (alpha_expand_unaligned_store): Likewise.
5118         (alpha_expand_unaligned_load_words): Likewise.
5119         (alpha_expand_unaligned_store_words): Likewise.
5120         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5121         (alpha_split_lock_test_and_set_12): Likewise.
5122         (print_operand, alpha_fold_builtin_extxx): Likewise.
5123         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5124         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5125         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5126         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5127         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5128         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5129         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5130         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5131         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5132         (extwl, extll, extql): Similarly.
5133         (inswh, inslh, insqh): Similarly.
5134         (mskbl, mskwl, mskll, mskql): Similarly.
5135         (mskwh, msklh, mskqh): Similarly.
5136
5137 2011-02-24  Richard Henderson  <rth@redhat.com>
5138
5139         * config/alpha/alpha.md (attribute isa): Add er, ner.
5140         (attribute enabled): Handle them.
5141         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5142
5143 2011-02-24  Richard Henderson  <rth@redhat.com>
5144
5145         * config/alpha/alpha.md (attribute isa): Add vms.
5146         (attribute enabled): Handle it.
5147         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5148         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5149         (*movtf): Rename from *movtf_internal for consistency.
5150         (*movsi): Merge with *movsi_nt_vms.
5151         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5152         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5153         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5154         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5155
5156 2011-02-24  Richard Henderson  <rth@redhat.com>
5157
5158         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5159         (extendqisi2, extendhisi2): Likewise.
5160         (extendqidi2): Simplify BWX/non-BWX expansions.
5161         (extendhidi2): Similarly.
5162
5163 2011-02-24  Richard Henderson  <rth@redhat.com>
5164
5165         * config/alpha/alpha.md (attribute isa): New.
5166         (attribute enabled): New.
5167         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5168         (zero_extendqisi2, zero_extendqidi2): Similarly.
5169         (zero_extendhisi2, zero_extendhidi2): Similarly.
5170         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5171
5172 2011-02-24  Richard Henderson  <rth@redhat.com>
5173
5174         * config/alpha/predicates.md (input_operand): Revert last change;
5175         update comment to mention 32-bit VMS rather than Windows.
5176
5177 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5178
5179         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5180         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5181         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5182         * passes.c (init_optimization_passes): Move
5183         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5184
5185 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5186
5187         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5188
5189 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5190
5191         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5192         correctly.
5193
5194 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5195
5196         PR debug/48204
5197         * simplify-rtx.c (simplify_const_unary_operation): Call
5198         real_convert when changing mode class with FLOAT_EXTEND.
5199
5200 2011-03-24  Nick Clifton  <nickc@redhat.com>
5201
5202         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5203         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5204         * config/rx/rx.c (rx_option_override): Set align_jumps,
5205         align_loops and align_labels if not set by the user.
5206         (rx_align_for_label): New function.
5207         (rx_max_skip_for_label): New function.
5208         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5209         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5210         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5211         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5212         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5213
5214 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5215
5216         PR rtl-optimization/48263
5217         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5218         and original commutative_p handling.  Use maybe_gen_insn.
5219
5220 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5221
5222         * reload.c (find_reloads_subreg_address): Add address_reloaded
5223         parameter and return true there if the full address has been
5224         reloaded.
5225         (find_reloads_toplev): Pass address_reloaded flag.
5226         (find_reloads_address_1): Don't use address_reloaded parameter.
5227
5228 2011-03-24  Jeff Law  <law@redhat.com>
5229
5230         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5231         unused variable "ann".
5232         (remove_unused_locals): Likewise.
5233
5234         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5235         statement.
5236
5237         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5238         after it is freed.
5239
5240 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5241
5242         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5243         for invalid symbolic addresses.
5244         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5245         larl operands.
5246
5247 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5248
5249         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5250         the argument in calls to fold_truth_not_expr.
5251
5252 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5253
5254         * tree.c (record_node_allocation_statistics): New function.
5255         (make_node_stat, copy_node_stat, build_string): Call it.
5256         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5257         (build1_stat, build_omp_clause): Likewise.
5258
5259 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5260
5261         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5262         last commit.
5263
5264 2011-03-24  Richard Guenther  <rguenther@suse.de>
5265
5266         PR tree-optimization/48271
5267         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5268         blocks that still exist.
5269
5270 2011-03-24  Richard Guenther  <rguenther@suse.de>
5271
5272         PR tree-optimization/48270
5273         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5274         not free datarefs before ddrs.
5275
5276 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5277
5278         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5279         from the address built for a reference with variable offset.
5280
5281 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5282
5283         PR target/48237
5284         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5285         alternatives that can be handled with movq or movabsq insn.
5286         (*movdf_internal): Disable for !TARGET_64BIT.
5287         (*movdf_internal_nointeger): Ditto.
5288         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5289
5290 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5291
5292         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5293         (FUNCTION_ARG_ADVANCE): Likewise.
5294         * tm.texi.in: Change references to them to hook references.
5295         * tm.texi: Regenerate.
5296         * targhooks.c (default_function_arg): Eliminate check for target macro.
5297         (default_function_incoming_arg): Likewise.
5298         (default_function_arg_advance): Likewise.
5299         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5300         (function_arg_advance): Likewise.
5301         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5302
5303 2011-03-24  Richard Guenther  <rguenther@suse.de>
5304
5305         PR middle-end/48269
5306         * tree-object-size.c (addr_object_size): Do not double-account
5307         for MEM_REF offsets.
5308
5309 2011-03-24  Diego Novillo  <dnovillo@google.com>
5310
5311         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5312         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5313         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5314         Update all users.
5315         (lto_input_string): Rename from input_string.  Make extern.
5316         Update all users.
5317         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5318         output_string_with_length.
5319         Output 0 to indicate a non-NULL string.  Update all callers to
5320         not emit 0.
5321         (lto_output_string): Rename from output_string.  Make extern.
5322         Update all users.
5323         (lto_output_decl_state_streams): Make extern.
5324         (lto_output_decl_state_refs): Make extern.
5325         * lto-streamer.h (lto_input_string): Declare.
5326         (lto_input_data_block): Declare.
5327         (lto_output_string): Declare.
5328         (lto_output_string_with_length): Declare.
5329         (lto_output_decl_state_streams): Declare.
5330         (lto_output_decl_state_refs): Declare.
5331
5332 2011-03-24  Richard Guenther  <rguenther@suse.de>
5333
5334         PR tree-optimization/46562
5335         * tree.c (build_invariant_address): New function.
5336         * tree.h (build_invariant_address): Declare.
5337         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5338         a renamed function moved ...
5339         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5340         Take valueization callback parameter.
5341         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5342         * gimple-fold.h: New file.
5343         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5344         (ccp_fold, fold_const_aggregate_ref,
5345         fold_ctor_reference, fold_nonarray_ctor_reference,
5346         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5347         get_base_constructor): Move ...
5348         * gimple-fold.c: ... here.
5349         (gimple_fold_stmt_to_constant_1): New function
5350         split out from ccp_fold.  Take a valueization callback parameter.
5351         Valueize all operands.
5352         (gimple_fold_stmt_to_constant): New wrapper function.
5353         (fold_const_aggregate_ref_1): New function split out from
5354         fold_const_aggregate_ref.  Take a valueization callback parameter.
5355         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5356         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5357         invariant POINTER_PLUS_EXPRs to invariant form.
5358         (vn_valueize): New function.
5359         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5360         * tree-vrp.c (vrp_valueize): New function.
5361         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5362         to fold statements to constants.
5363         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5364         function declarations.
5365         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5366         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5367
5368 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5369
5370         * config/h8300/predicates.md (jump_address_operand): Fix register
5371         mode check.
5372
5373 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5374
5375         * doc/invoke.texi (max-stores-to-sink): Document.
5376         * params.h (MAX_STORES_TO_SINK): Define.
5377         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5378         if either vectorization or if-conversion is disabled.
5379         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5380         tree-vect-data-refs.c vect_equal_offsets.
5381         (dr_equal_offsets_p): New function.
5382         (find_data_references_in_bb): Remove static.
5383         * tree-data-ref.h (find_data_references_in_bb): Declare.
5384         (dr_equal_offsets_p): Likewise.
5385         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5386         (vect_drs_dependent_in_basic_block): Update calls to
5387         vect_equal_offsets.
5388         (vect_check_interleaving): Likewise.
5389         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5390         (cond_if_else_store_replacement): Rename to...
5391         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5392         documentation.
5393         (cond_if_else_store_replacement): New function.
5394         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5395         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5396
5397 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5398
5399         PR target/46934
5400         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5401         to subtract lower bound instead of GEN_INT().
5402
5403 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5404
5405         PR other/48179
5406         PR other/48221
5407         PR other/48234
5408         * doc/extend.texi (Alignment): Move section to match order in TOC.
5409         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5410         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5411
5412 2011-03-23  Jeff Law  <law@redhat.com>
5413
5414         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5415         before removing the edge.
5416
5417         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5418         it may have been freed by redirect_branch_edge or
5419         redirect_edge_succ_nodup.
5420
5421 2011-03-23  Richard Guenther  <rguenther@suse.de>
5422
5423         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5424         (check_va_list_escapes): Likewise.
5425         (check_all_va_list_escapes): Likewise.
5426
5427 2011-03-23  Richard Guenther  <rguenther@suse.de>
5428
5429         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5430         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5431         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5432         (alias.o): Likewise.
5433         (ipa-type-escape.o): Remove.
5434         (ipa-struct-reorg.o): Likewise.
5435         (GTFILES): Remove ipa-struct-reorg.c.
5436         * alias.c: Do not include ipa-type-escape.h.
5437         * tree-ssa-alias.c: Likewise.
5438         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5439         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5440         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5441         and ipa-type-escape passes.
5442         * tree-pass.h (pass_ipa_type_escape): Remove.
5443         (pass_ipa_struct_reorg): Likewise.
5444         * ipa-struct-reorg.h: Remove.
5445         * ipa-struct-reorg.c: Likewise.
5446         * ipa-type-escape.h: Likewise.
5447         * ipa-type-escape.c: Likewise.
5448         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5449         (--param struct-reorg-cold-struct-ratio): Likewise.
5450         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5451         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5452         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5453
5454 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5455
5456         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5457         cpu attribute value.
5458         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5459         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5460         * config/s390/s390.c (processor_flags_table): New constant array.
5461         (s390_handle_arch_option): Remove.
5462         (s390_handle_option): Remove s390_handle_arch_option invocations
5463         and OPT_mwarn_framesize_ handling.
5464         (s390_option_override): Remove s390_handle_arch_option invocation.
5465         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5466         warnings.
5467         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5468         * config/s390/s390.opt (s390_tune, s390_arch)
5469         (march=): Replace s390_arch_option enum and values with
5470         processor_type.  Set variable name to s390_arch.  Set
5471         initialization value.
5472         (mtune=): Replace s390_arch_option with processor_type.  Set
5473         variable name to s390_tune.  Set initialization value.
5474
5475 2011-03-23  Julian Brown  <julian@codesourcery.com>
5476
5477         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5478         accesses which are not naturally aligned.
5479
5480 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5481
5482         PR target/47553
5483         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5484
5485 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5486
5487         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5488         parameter from "int" to "enum insn_code".
5489         (expand_operand_type): New enum.
5490         (expand_operand): New structure.
5491         (create_expand_operand): New function.
5492         (create_fixed_operand, create_output_operand): Likewise
5493         (create_input_operand, create_convert_operand_to): Likewise.
5494         (create_convert_operand_from, create_address_operand): Likewise.
5495         (create_integer_operand): Likewise.
5496         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5497         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5498         (expand_insn, expand_jump_insn): Likewise.
5499         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5500         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5501         (expand_movstr, expand_builtin___clear_cache): Likewise.
5502         (expand_builtin_lock_release): Likewise.
5503         * explow.c (allocate_dynamic_stack_space): Likewise.
5504         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5505         and use the default handling in that case.
5506         * expmed.c (check_predicate_volatile_ok): Delete.
5507         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5508         (emit_cstore): Likewise.
5509         * expr.c (emit_block_move_via_movmem): Likewise.
5510         (set_storage_via_setmem, expand_assignment): Likewise.
5511         (emit_storent_insn, try_casesi): Likewise.
5512         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5513         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5514         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5515         (expand_twoval_unop, expand_twoval_binop): Likewise.
5516         (expand_unop_direct, emit_indirect_jump): Likewise.
5517         (emit_conditional_move, vector_compare_rtx): Likewise.
5518         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5519         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5520         (expand_sync_lock_test_and_set): Likewise.
5521         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5522         (emit_unop_insn): Likewise.
5523         (expand_copysign_absneg): Change icode to an insn_code.
5524         (create_convert_operand_from_type): New function.
5525         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5526         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5527         (expand_insn, expand_jump_insn): Likewise.
5528         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5529         than const_int_operand for operand 2.
5530
5531 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5532
5533         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5534         if possible.
5535
5536 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5537
5538         * emit-rtl.c (emit_pattern_before_noloc): New function.
5539         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5540         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5541         (emit_pattern_after_noloc): New function.
5542         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5543         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5544
5545 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5546
5547         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5548         (__ffsDI2): Likewise.
5549
5550 2011-03-22  Richard Henderson  <rth@redhat.com>
5551
5552         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5553         of !TARGET_ABI_OPEN_VMS.
5554         (alpha_trampoline_init, alpha_start_function): Likewise.
5555         (alpha_expand_epilogue, alpha_file_start): Likewise.
5556         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5557         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5558         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5559         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5560         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5561
5562 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5563
5564         * config/s390/s390-opts.h: New.
5565         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5566         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5567         s390_stack_guard): Remove.
5568         (s390_handle_arch_option): Return void.  Take enum
5569         s390_arch_option value instead of string and searching array.
5570         (s390_handle_option): Don't assert that global structures are in
5571         use.  Access variables via opts pointer.  Use error_at.  Don't use
5572         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5573         s390_handle_arch_option.
5574         (s390_option_override): Update call to s390_handle_arch_option.
5575         (s390_emit_prologue): Use %d format for s390_stack_size in
5576         diagnostic.  Use %wd for HOST_WIDE_INT.
5577         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5578         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5579         * config/s390/s390.opt (config/s390/s390-opts.h): New
5580         HeaderInclude entry.
5581         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5582         s390_arch_flags, s390_warn_framesize): New Variable entries.
5583         (s390_arch_option): New Enum and EnumValue entries.
5584         (march=): Use Enum instead of Var.
5585         (mstack-guard=, mstack-size=): Use UInteger and Var.
5586         (mtune=): Use Enum.
5587
5588 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5589
5590         * config/score/score.c (score_handle_option): Don't assert that
5591         global structures are in use.  Access target_flags via opts
5592         pointer.  Use value of -march= option to determine target_flags
5593         settings.
5594         * config/score/score.opt (march=): Use Enum.
5595         (score_arch): New Enum and EnumValue entries.
5596
5597 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5598
5599         * config/mep/mep.c (option_mtiny_specified): Remove.
5600         (mep_option_override): Move register handling for -mivc2 from
5601         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5602         instead of option_mtiny_specified.
5603         (mep_handle_option): Access target_flags via opts pointer.  Don't
5604         assert that global structures are in use.  Defer part of -mivc2
5605         handling and move it to mep_option_override.
5606         * config/mep/mep.opt (IVC2): New Mask entry.
5607         (mivc2): Use Var and Defer instead of Mask.
5608
5609 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5610
5611         * config/v850/v850-opts.h: New.
5612         * config/v850/v850.c (small_memory): Replace with
5613         small_memory_physical_max array.  Make that array static const.
5614         (v850_handle_memory_option): Take integer value of argument.  Take
5615         gcc_options pointer, option text and location.  Return void.
5616         Update for changes to small memory structures.
5617         (v850_handle_option): Access target_flags via opts pointer.  Don't
5618         assert that global structures are in use.  Update calls to
5619         v850_handle_memory_option.
5620         (v850_encode_data_area): Update references to small memory settings.
5621         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5622         (enum small_memory_type): Move to v850-opts.h.
5623         * config/v850/v850.opt (config/v850/v850-opts.h): New
5624         HeaderInclude entry.
5625         (small_memory_max): New Variable entry.
5626         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5627         (mtda, mzda): Likewise.
5628
5629 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5630
5631         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5632         pointer.  Don't assert that global structures are in use.
5633
5634 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5635
5636         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5637         via opts pointer.  Don't assert that global structures are in use.
5638
5639 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5640
5641         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5642         (munix=93): Use Var.
5643         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5644         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5645         * config/pa/pa-opts.h: New.
5646         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5647         (pa_handle_option): Don't assert that global structures are in
5648         use.  Access target_flags via opts pointer.  Don't handle
5649         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5650         OPT_munix_98 here.
5651         (pa_option_override): Handle deferred OPT_mfixed_range_.
5652
5653 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5654
5655         * config/mn10300/mn10300-opts.h: New.
5656         * config/mn10300/mn10300.c (mn10300_processor,
5657         mn10300_tune_string): Remove.
5658         (mn10300_handle_option): Don't assert that global structures are
5659         in use.  Access mn10300_processor via opts pointer.  Don't handle
5660         OPT_mtune_ here.
5661         * config/mn10300/mn10300.h (enum processor_type): Move to
5662         mn10300-opts.h.
5663         (mn10300_processor): Remove.
5664         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5665         HeaderInclude entry.
5666         (mn10300_processor): New Variable entry.
5667         (mtune=): Use Var.
5668
5669 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5670
5671         * config/microblaze/microblaze.c: Don't include opts.h.
5672         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5673         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5674         (mno-clearbss): Use Var and Warn.
5675
5676 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5677
5678         * config/m32r/m32r-opts.h: New.
5679         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5680         (m32r_handle_option): Don't assert that global structures are in
5681         use.  Access target_flags and m32r_cache_flush_func via opts
5682         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5683         OPT_mno_flush_trap here.
5684         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5685         include of m32r-opts.h.
5686         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5687         HeaderInclude entry.
5688         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5689         (mmodel=): Use Enum and Var.
5690         (m32r_model): New Enum and EnumValue entries.
5691         (mno-flush-trap): Use Var.
5692         (msdata=): Use Enum and Var.
5693         (m32r_sdata): New Enum and EnumValue entries.
5694
5695 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5696
5697         * config/m32c/m32c.c: Don't include opts.h.
5698         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5699         m32c_handle_option): Remove.
5700         (m32c_option_override): Check global_options_set.x_target_memregs
5701         instead of target_memregs_set.
5702         * config/m32c/m32c.h (target_memregs): Remove.
5703         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5704         variable.
5705
5706 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5707
5708         * config/iq2000/iq2000-opts.h: New.
5709         * config/iq2000/iq2000.c: Don't include opts.h.
5710         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5711         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5712         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5713         HeaderInclude entry.
5714         (iq2000_tune): New Variable entry.
5715         (march=): Add comment.  Use Enum.
5716         (iq2000_arch): New Enum and EnumValue entries.
5717         (mcpu=): Use Enum and Var.
5718         (iq2000_tune): New Enum and EnumValue entries.
5719
5720 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5721
5722         * config/ia64/ia64-opts.h: New.
5723         * config/ia64/ia64.c (ia64_tune): Remove.
5724         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5725         here.  Use error_at.
5726         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5727         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5728         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5729         HeaderInclude entry.
5730         (ia64_tune): New Variable entry.
5731         (mfixed-range=): Use Defer and Var.
5732         (mtune=): Use Enum and Var.
5733         (ia64_tune): New Enum and EnumValue entries.
5734
5735 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5736
5737         * config/frv/frv-opts.h: New.
5738         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5739         frv-opts.h.
5740         (frv_cpu_type): Remove.
5741         * config/frv/frv.c: Don't include opts.h.
5742         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5743         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5744         (frv_cpu_type): New Variable entry.
5745         (frv_cpu): New Enum and EnumValue entries.
5746
5747 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5748
5749         * config/cris/cris.c (cris_handle_option): Access target_flags via
5750         opts pointer.  Don't assert that global structures are in use.
5751         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5752         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5753
5754 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5755
5756         * config/bfin/bfin-opts.h: New.
5757         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5758         bfin_si_revision, bfin_workarounds): Remove.
5759         (bfin_cpus): Make static const.
5760         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5761         not bfin_lib_id_given.
5762         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5763         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5764         pointer. Use error_at.  Don't assert that global structures are in use.
5765         * config/bfin/bfin.h: Include bfin-opts.h.
5766         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5767         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5768         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5769         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5770         entries.
5771
5772 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5773
5774         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5775         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5776         or -msoft-float here.
5777         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5778         -msoft-float and -mhard-float.
5779         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5780         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5781         msoft-float.
5782         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5783         -msoft-float.
5784         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5785         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5786         not mhard-float.
5787         (LIBGCC_SPEC): Don't handle -msoft-float.
5788         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5789         -mhard-float.
5790         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5791         msoft-float.
5792         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5793         -mfloat-abi=*, not -msoft-float and -mhard-float.
5794         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5795         -msoft-float.
5796         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5797         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5798         mhard-float and msoft-float.
5799         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5800         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5801         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5802         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5803         mhard-float.
5804         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5805         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5806         msoft-float.
5807         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5808         not mhard-float.
5809         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5810         not msoft-float.
5811
5812 2011-03-22  Richard Henderson  <rth@redhat.com>
5813
5814         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5815         TARGET_ABI_WINDOWS_NT.
5816         (alpha_output_function_end_prologue): Likewise.
5817         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5818         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5819         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5820         (trap, *movsi_nt_vms): Likewise.
5821         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5822         (*tablejump_osf_nt_internal): Remove.
5823         * config/alpha/predicates.md (input_operand): Only test Pmode.
5824
5825 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5826
5827         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5828         via opts pointer.  Use error_at.  Don't assert that global
5829         structures are in use.
5830
5831 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5832
5833         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5834         (ix86_handle_option): Access ix86_isa_flags and
5835         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5836         global structures are in use.
5837         (ix86_function_specific_save, ix86_function_specific_restore):
5838         Update ix86_isa_flags_explicit field name.
5839         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5840         (ix86_isa_flags_explicit): Rename TargetSave entry to
5841         x_ix86_isa_flags_explicit.
5842
5843 2011-03-22  Richard Henderson  <rth@redhat.com>
5844
5845         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5846         (alpha_option_override, direct_return): Likewise.
5847         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5848         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5849         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5850         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5851         (alpha_expand_epilogue, alpha_end_function): Likewise.
5852         (alpha_init_libfuncs): Likewise.
5853         (struct machine_function): Remove unicosmk members.
5854         (print_operand) ['t']: Remove.
5855         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5856         unicosmk_output_module_name, unicosmk_output_common,
5857         current_section_align, unicosmk_output_text_section_asm_op,
5858         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5859         unicosmk_section_type_flags, unicosmk_unique_section,
5860         unicosmk_asm_named_section, unicosmk_insert_attributes,
5861         unicosmk_output_align, unicosmk_defer_case_vector,
5862         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5863         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5864         unicosmk_output_ssib, unicosmk_add_call_info_word,
5865         unicosmk_extern_head, unicosmk_output_default_externs,
5866         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5867         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5868         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5869         * config/alpha/alpha-protos.h: Update.
5870         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5871         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5872         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5873         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5874         (*mulsi_se, mulvsi3): Likewise.
5875         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5876         (*divmodsi_internal, call, call_value, realign): Likewise.
5877         (moddi3, umoddi3): Likewise; remove duplicate expander.
5878         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5879         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5880         (*movdi_nofix): Remove r/U alternative.
5881         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5882         * config/alpha/constraints.md ("U"): Remove.
5883         * config/alpha/predicates.md (call_operand"): Don't test
5884         TARGET_ABI_UNICOSMK.
5885
5886 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5887
5888         * target.def (handle_option): Take gcc_options and
5889         cl_decoded_option pointers and location_t.
5890         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5891         * doc/tm.texi: Regenerate.
5892         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5893         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5894         * lto-opts.c (lto_reissue_options): Generate option structure for
5895         targetm.handle_option call.
5896         * opts.c (target_handle_option): Update call to
5897         targetm.handle_option.  Remove assertions about values now passed
5898         down to hook.
5899         * targhooks.c (default_target_handle_option): New.
5900         * targhooks.h (default_target_handle_option): Declare.
5901         * config/alpha/alpha.c: Include opts.h.
5902         (alpha_handle_option): Update to new hook interface.
5903         * config/arm/arm.c: Include opts.h.
5904         (arm_handle_option): Update to new hook interface.
5905         * config/arm/t-arm (arm.o): Update dependencies.
5906         * config/bfin/bfin.c: Include opts.h.
5907         (bfin_handle_option): Update to new hook interface.
5908         * config/cris/cris.c: Include opts.h.
5909         (cris_handle_option): Update to new hook interface.
5910         * config/frv/frv.c: Include opts.h.
5911         (frv_handle_option): Update to new hook interface.
5912         * config/i386/i386.c: Include opts.h.
5913         (ix86_handle_option): Update to new hook interface.
5914         (ix86_valid_target_attribute_inner_p): Generate option structure
5915         for call to ix86_handle_option.
5916         * config/i386/t-i386 (i386.o): Update dependencies.
5917         * config/ia64/ia64.c: Include opts.h.
5918         (ia64_handle_option): Update to new hook interface.
5919         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5920         * config/iq2000/iq2000.c: Include opts.h.
5921         (iq2000_handle_option): Update to new hook interface.
5922         * config/m32c/m32c.c: Include opts.h.
5923         (m32c_handle_option): Update to new hook interface.
5924         * config/m32r/m32r.c: Include opts.h.
5925         (m32r_handle_option): Update to new hook interface.
5926         * config/m68k/m68k.c: Include opts.h.
5927         (m68k_handle_option): Update to new hook interface.
5928         * config/mep/mep.c: Include opts.h.
5929         (mep_handle_option): Update to new hook interface.
5930         * config/microblaze/microblaze.c: Include opts.h.
5931         (microblaze_handle_option): Update to new hook interface.
5932         * config/mips/mips.c: Include opts.h.
5933         (mips_handle_option): Update to new hook interface.
5934         * config/mn10300/mn10300.c: Include opts.h.
5935         (mn10300_handle_option): Update to new hook interface.
5936         * config/pa/pa.c: Include opts.h.
5937         (pa_handle_option): Update to new hook interface.
5938         * config/pdp11/pdp11.c: Include opts.h.
5939         (pdp11_handle_option): Update to new hook interface.
5940         * config/rs6000/rs6000.c: Include opts.h.
5941         (rs6000_handle_option): Update to new hook interface.
5942         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
5943         * config/rx/rx.c: Include opts.h.
5944         (rx_handle_option): Update to new hook interface.
5945         * config/s390/s390.c: Include opts.h.
5946         (s390_handle_option): Update to new hook interface.
5947         * config/score/score.c: Include opts.h.
5948         (score_handle_option): Update to new hook interface.
5949         * config/sh/sh.c: Include opts.h.
5950         (sh_handle_option): Update to new hook interface.
5951         * config/sparc/sparc.c: Include opts.h.
5952         (sparc_handle_option): Update to new hook interface.
5953         * config/v850/v850.c: Include opts.h.
5954         (v850_handle_option): Update to new hook interface.
5955
5956 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5957
5958         * gcc.c (driver_unknown_option_callback): Only permit and save
5959         unknown -Wno- options.
5960         (driver_wrong_lang_callback): Save options directly instead of via
5961         driver_unknown_option_callback.
5962
5963 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
5964
5965         * combine.c (simplify_set): Try harder to find the best CC mode when
5966         simplifying a nested COMPARE on the RHS.
5967
5968 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5969
5970         * config/alpha/gnu.h: Remove.
5971         * config/arc: Remove directory.
5972         * config/arm/netbsd.h: Remove.
5973         * config/arm/t-pe: Remove.
5974         * config/crx: Remove directory.
5975         * config/i386/netbsd.h: Remove.
5976         * config/m68hc11: Remove directory.
5977         * config/m68k/uclinux-oldabi.h: Remove.
5978         * config/mcore/mcore-pe.h: Remove.
5979         * config/mcore/t-mcore-pe: Remove.
5980         * config/netbsd-aout.h: Remove.
5981         * config/rs6000/gnu.h: Remove.
5982         * config/sh/sh-symbian.h: Remove.
5983         * config/sh/symbian-base.c: Remove.
5984         * config/sh/symbian-c.c: Remove.
5985         * config/sh/symbian-cxx.c: Remove.
5986         * config/sh/symbian-post.h: Remove.
5987         * config/sh/symbian-pre.h: Remove.
5988         * config/sh/t-symbian: Remove.
5989         * config/svr3.h: Remove.
5990         * config/vax/netbsd.h: Remove.
5991         * config.build: Don't handle i[34567]86-*-pe.
5992         * config.gcc: Remove handling of deprecations for most deprecated
5993         targets.
5994         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
5995         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
5996         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
5997         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
5998         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
5999         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6000         Remove cases.
6001         * config.host: Don't handle i[34567]86-*-pe.
6002         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6003         (ASM_SPEC32): Don't handle -mcall-gnu.
6004         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6005         -mcall-gnu.
6006         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6007         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6008         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6009         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6010         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6011         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6012         conditional on SYMBIAN.
6013         * configure.ac: Don't handle powerpc*-*-gnu*.
6014         * configure: Regenerate.
6015         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6016         * doc/install-old.texi (m6811, m6812): Don't mention.
6017         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6018         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6019         (m68k-uclinuxoldabi): Don't mention.
6020         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6021         Remove.
6022         (-mcall-gnu): Remove.
6023         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6024         families): Remove constraint documentation.
6025
6026 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6027
6028         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6029         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6030         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6031
6032 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6033
6034         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6035         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6036         * config/avr/avr.c (init_cumulative_args)
6037         (avr_function_arg_advance): Use it.
6038         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6039         sibcall epilogues.
6040         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6041         (avr_function_ok_for_sibcall): ...this new function.
6042         (avr_lookup_function_attribute1): New static Function.
6043         (avr_naked_function_p, interrupt_function_p)
6044         (signal_function_p, avr_OS_task_function_p)
6045         (avr_OS_main_function_p): Use it.
6046         * config/avr/avr.md ("sibcall", "sibcall_value")
6047         ("sibcall_epilogue"): New expander.
6048         ("*call_insn", "*call_value_insn"): New insn.
6049         ("call_insn", "call_value_insn"): Remove
6050         ("call", "call_value", "epilogue"): Change expander to handle
6051         sibling calls.
6052
6053 2011-03-21  Nick Clifton  <nickc@redhat.com>
6054
6055         * doc/invoke.texi (Overall Options): Move closing brace to end of
6056         options list.
6057         (Optimization Options): Add missing @gol.
6058         (Directory Options): Likewise.
6059         (i386 and x86-64 Options): Likewise.
6060         (RS6000 and PowerPC Options): Likewise.
6061         (i386 and x86-64 Windows Options): Likewise.
6062         (V850 Options): Add text missing from descriptions.
6063
6064 2011-03-22  Richard Henderson  <rth@redhat.com>
6065
6066         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6067         (avr_incoming_return_addr_rtx): New.
6068         (emit_push_byte): New.
6069         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6070         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6071         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6072         (emit_pop_byte): New.
6073         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6074         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6075         (INCOMING_RETURN_ADDR_RTX): New.
6076         (INCOMING_FRAME_SP_OFFSET): New.
6077         (ARG_POINTER_CFA_OFFSET): New.
6078         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6079         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6080         (pophi): Remove.
6081
6082         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6083
6084 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6085
6086         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6087         (FUNCTION_ARG_ADVANCE): Likewise.
6088         * tm.texi.in: Change references to them to hook references.
6089         * tm.texi: Regenerate.
6090         * targhooks.c (default_function_arg): Eliminate check for target
6091         macro.
6092         (default_function_incoming_arg): Likewise.
6093         (default_function_arg_advance): Likewise.
6094         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6095         (function_arg_advance): Likewise.
6096         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6097
6098 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6099
6100         * tree.c (build_call_1): New function.
6101         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6102
6103 2011-03-22  Richard Guenther  <rguenther@suse.de>
6104
6105         PR tree-optimization/48228
6106         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6107         for single-arg PHIs.
6108
6109 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6110
6111         PR rtl-optimization/48143
6112         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6113         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6114         sse2_cvtps2pd): Likewise.
6115
6116 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6117
6118         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6119
6120 2011-03-22  Richard Guenther  <rguenther@suse.de>
6121
6122         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6123         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6124         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6125         and REALIGN_LOAD_EXPR.
6126         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6127         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6128         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6129         DOT_PROD_EXPR case ...
6130         (expand_expr_real_2): ... here.
6131         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6132         and REALIGN_LOAD_EXPR.
6133         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6134         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6135         (vect_create_epilog_for_reduction): Likewise.
6136         (vectorizable_reduction): Likewise.
6137         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6138         * tree-vect-stmts.c (vectorizable_load): Likewise.
6139
6140 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6141
6142         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6143
6144 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6145
6146         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6147         handling for PLTOFF/GOTOFF.
6148
6149 2011-03-22  Nick Clifton  <nickc@redhat.com>
6150
6151         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6152         trailing backslash from the end of the macro definition.
6153
6154 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6155
6156         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6157         and PLT unspecs.
6158
6159 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6160
6161         * expr.h (prepare_operand): Move to...
6162         * optabs.h (prepare_operand): ...here and change the insn code
6163         parameter from "int" to "enum insn_code".
6164         (insn_operand_matches): Declare.
6165         * expr.c (init_expr_target): Use insn_operand_matches.
6166         (compress_float_constant): Likewise.
6167         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6168         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6169         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6170         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6171         Likewise.
6172         (gen_cond_trap): Likewise.
6173         (prepare_operand): Likewise.  Change icode to an insn_code.
6174         (insn_operand_matches): New function.
6175         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6176         * reload1.c (gen_reload): Likewise.
6177         * targhooks.c (default_secondary_reload): Likewise.
6178
6179 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6180
6181         * config/alpha/alpha.md (unspec): New define_c_enum.
6182         (unspecv): Ditto.
6183
6184 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6185
6186         PR debug/48214
6187         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6188         between a call and its CALL_ARG_LOCATION note.
6189
6190 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6191
6192         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6193
6194 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6195
6196         PR c/42544
6197         PR c/48197
6198         * c-common.c (shorten_compare): If primopN is first sign-extended
6199         to opN and then zero-extended to result type, set primopN to opN.
6200
6201 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6202
6203         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6204         for barrier handlers.
6205
6206 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6207
6208         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6209         UNSPEC constants to be in the unspec enumeration, and redefine
6210         all UNSPECV constants to be in the unspecv enumeration, so that
6211         dumps print which unspec/unspec_volatile this is.
6212         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6213         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6214         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6215         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6216         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6217
6218         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6219         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6220         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6221         * config/rs6000/sync.md (isync, lwsync): Ditto.
6222
6223 2011-03-21  Richard Guenther  <rguenther@suse.de>
6224
6225         * params.def (lto-min-partition): Fix typo.
6226
6227 2011-03-21  Richard Guenther  <rguenther@suse.de>
6228
6229         PR c/47939
6230         * c-decl.c (grokdeclarator): Drop to the main variant only
6231         for array types.  Drop flag_gen_aux_info check.
6232
6233 2011-03-21  Richard Guenther  <rguenther@suse.de>
6234
6235         PR translation/47911
6236         * params.def (lto-partitions): Fix typo.
6237         (lto-min-partition): Fix wording.
6238
6239 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6240
6241         * config/rs6000/t-freebsd: Remove duplication from file.
6242
6243 2011-03-21  Richard Guenther  <rguenther@suse.de>
6244
6245         PR middle-end/47661
6246         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6247
6248 2011-03-21  Richard Guenther  <rguenther@suse.de>
6249
6250         PR lto/48210
6251         * params.def (lto-partitions): Require at least 1 partition.
6252
6253 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6254
6255         * gthr-solaris.h: Remove.
6256         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6257         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6258         (LIB_SPEC): Likewise.
6259         * config/sol2.opt (threads): Remove.
6260         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6261         (sparc*-*-solaris2*): Likewise.
6262         * configure.ac (enable_threads): Enable solaris support.
6263         * configure: Regenerate.
6264         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6265         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6266         solaris.
6267
6268 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6269
6270         * config.gcc: Obsolete *-*-solaris2.8*.
6271         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6272
6273 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6274
6275         PR bootstrap/48135
6276         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6277         reference.  Solaris 8 perl works.
6278
6279 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6280
6281         PR bootstrap/48135
6282         * doc/install.texi (Prerequisites): Move jar etc. up.
6283         Explain support library version requirements.
6284
6285 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6286
6287         PR bootstrap/48135
6288         * doc/install.texi (Prerequisites): Move Perl to build
6289         requirements.  Always necessary on Solaris 2 with Sun ld.
6290
6291 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6292
6293         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6294         binutils 2.21.
6295         (Specific, i?86-*-solaris2.[89]): Likewise.
6296         (Specific, i?86-*-solaris2.10): Likewise.
6297         (Specific, mips-sgi-irix6): Likewise.
6298         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6299         Update for binutils 2.21.
6300
6301 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6302
6303         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6304         Allow -fuse-linker-plugin for non-default plugin linker.
6305         * configure: Regenerate.
6306
6307 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6308
6309         PR bootstrap/48167
6310         * gengtype.c (files_rules): Added rule for cp/parser.h.
6311
6312 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6313
6314         PR target/48213
6315         * config/s390/s390.c (s390_delegitimize_address): Don't call
6316         lowpart_subreg if orig_x has BLKmode.
6317
6318 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6319
6320         PR target/12171
6321         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6322         * tree.h (attribute_spec): Add new member affects_type_identity.
6323         * attribs.c (empty_attribute_table): Adjust attribute_spec
6324         initializers.
6325         * config/alpha/alpha.c: Likewise.
6326         * config/arc/arc.c: Likewise.
6327         * config/arm/arm.c: Likewise.
6328         * config/avr/avr.c: Likewise.
6329         * config/bfin/bfin.c: Likewise.
6330         * config/crx/crx.c: Likewise.
6331         * config/darwin.h: Likewise.
6332         * config/h8300/h8300.c: Likewise.
6333         * config/i386/cygming.h: Likewise.
6334         * config/i386/i386.c: Likewise.
6335         * config/ia64/ia64.c: Likewise.
6336         * config/m32c/m32c.c: Likewise.
6337         * config/m32r/m32r.c: Likewise.
6338         * config/m68hc11/m68hc11.c: Likewise.
6339         * config/m68k/m68k.c: Likewise.
6340         * config/mcore/mcore.c: Likewise.
6341         * config/mep/mep.c: Likewise.
6342         * config/microblaze/microblaze.c: Likewise.
6343         * config/mips/mips.c: Likewise.
6344         * config/rs6000/rs6000.c: Likewise.
6345         * config/rx/rx.c: Likewise.
6346         * config/sh/sh.c: Likewise.
6347         * config/sol2.h: Likewise.
6348         * config/sparc/sparc.c: Likewise.
6349         * config/spu/spu.c: Likewise.
6350         * config/stormy16/stormy16.c: Likewise.
6351         * config/v850/v850.c: Likewise.
6352
6353 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6354
6355         * simplify-rtx.c (simplify_binary_operation_1): Handle
6356         (xor (and A B) C) case when B and C are both constants.
6357
6358 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6359
6360         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6361
6362 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6363
6364         PR bootstrap/48168
6365         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6366
6367 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6368
6369         PR rtl-optimization/48156
6370         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6371         assume df and df_lr are not NULL.
6372
6373 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6374
6375         PR debug/48023
6376         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6377         between a call and its CALL_ARG_LOCATION note.
6378
6379 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6380
6381         PR debug/48178
6382         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6383         between a call and its corresponding CALL_ARG_LOCATION note.
6384
6385 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6386
6387         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6388         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6389         * haifa-sched.c (setup_ref_regs): Ditto.
6390         * caller-save.c (add_used_regs_1): Ditto.
6391         * dse.c (look_for_hardregs): Ditto.
6392         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6393         * sched-rgn.c (check_live_1): Ditto.
6394
6395 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6396
6397         * c-decl.c (diagnose_mismatched_decls): Give an error for
6398         redefining a typedef with variably modified type.
6399
6400 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6401
6402         * c-decl.c (grokfield): Don't allow typedefs for structures or
6403         unions with no tag by default.
6404         * doc/extend.texi (Unnamed Fields): Update.
6405
6406 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6407
6408         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6409         Rewrite using indirect functions.
6410         (lwp_slwpcb): Ditto.
6411         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6412         (avx_vinsertf128<mode>): Ditto.
6413
6414 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6415
6416         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6417         unspecs.
6418
6419 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6420
6421         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6422         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6423
6424 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6425
6426         PR rtl-optimization/48170
6427         * gcse.c (hoist_code): Remove bogus asserts.
6428
6429 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6430
6431         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6432         computation for prologue/epilogue.
6433
6434 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6435
6436         * Makefile.in (check-consistency): Remove.
6437
6438 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6439
6440         PR debug/48176
6441         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6442         arange_table_in_use is 0, but either text_section_used or
6443         cold_text_section_used is true.  Don't call it if
6444         !info_section_emitted.
6445
6446 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6447
6448         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6449         FUNCTION_VALUE_REGNO_P): Remove.
6450         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6451         Remove.
6452         * config/avr/avr.c (avr_ret_register): Make static inline.
6453         (avr_function_value_regno_p): New function.
6454         (avr_libcall_value): Make static. Add 'func' argument.
6455         (avr_function_value): Make static. Rename 'func' argument to
6456         'fn_decl_or_type', forward it to avr_libcall_value. Call
6457         avr_ret_register function instead of RET_REGISTER macro.
6458         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6459
6460 2011-03-18  Jason Merrill  <jason@redhat.com>
6461
6462         PR c++/23372
6463         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6464
6465 2011-03-18  Richard Guenther  <rguenther@suse.de>
6466
6467         * doc/install.texi (--enable-gold): Remove.
6468         (--with-plugin-ld): Document.
6469         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6470
6471 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6472
6473         PR middle-end/47790
6474         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6475         again after expansion changes.
6476
6477 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6478
6479         * combine.c (try_combine): Do simplification only call of
6480         subst() on i2 even when i1 is present. Update comments.
6481
6482 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6483
6484         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6485         and UNSPEC_PCREL_SYMOFF.
6486
6487 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6488
6489         * config/s390/s390.md: Use define_c_enum for the unspec constant
6490         definitions.
6491
6492 2011-03-18  Richard Henderson  <rth@redhat.com>
6493             Jakub Jelinek  <jakub@redhat.com>
6494
6495         PR bootstrap/48161
6496         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6497         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6498
6499 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6500
6501         PR middle-end/47725
6502         * combine.c (cant_combine_insn_p): Don't check zero/sign
6503         extended hard registers.
6504
6505 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6506
6507         PR middle-end/47725
6508         * combine.c (cant_combine_insn_p): Check zero/sign extended
6509         hard registers.
6510
6511 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6512
6513         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6514         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6515         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6516         Change return type to bool.
6517         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6518
6519 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6520
6521         PR debug/48163
6522         * var-tracking.c (prepare_call_arguments): If CALL target
6523         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6524         pc instead of looking it up using cselib_lookup and use
6525         Pmode for it if x has VOIDmode.
6526         * dwarf2out.c (gen_subprogram_die): If also both first and
6527         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6528
6529         PR debug/48163
6530         * function.c (assign_parms): For data.passed_pointer parms
6531         use MEM of data.entry_parm instead of data.entry_parm itself
6532         as DECL_INCOMING_RTL.
6533         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6534         also when passed and declared mode is the same, DECL_RTL
6535         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6536         a MEM too.
6537
6538 2011-03-16  Jeff Law  <law@redhat.com>
6539
6540         PR rtl-optimization/37273
6541         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6542         handle them like argument loads from stack slots.  Do not double
6543         count memory for memory constants and argument loads from stack slots.
6544
6545 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6546
6547         PR debug/48160
6548         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6549
6550 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6551
6552         PR target/48171
6553         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6554
6555 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6556
6557         PR bootstrap/48153
6558         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6559         if dwarf_strict.
6560         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6561         Clear call_arg_locations and call_arg_loc_last always.
6562
6563         PR middle-end/48152
6564         * var-tracking.c (prepare_call_arguments): If argument needs to be
6565         passed by reference, adjust argtype and mode.
6566
6567 2011-03-17  Richard Guenther  <rguenther@suse.de>
6568
6569         PR middle-end/48134
6570         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6571         a value make sure to fold the statement.
6572
6573 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6574
6575         PR target/43872
6576         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6577         return condition with !cfun->calls_alloca.
6578
6579 2011-03-17  Richard Guenther  <rguenther@suse.de>
6580
6581         PR bootstrap/48148
6582         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6583         origin for decls in other ltrans units.
6584         (input_varpool_node): Likewise.
6585
6586 2011-03-17  Richard Guenther  <rguenther@suse.de>
6587
6588         PR middle-end/48165
6589         * tree-object-size.c (compute_object_offset): Properly return
6590         the offset operand of MEM_REFs as sizetype.
6591
6592 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6593
6594         PR rtl-optimization/48141
6595         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6596         * dse.c: Include params.h.
6597         (active_local_stores_len): New variable.
6598         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6599         to NULL.
6600         (record_store, check_mem_read_rtx): Decrease it when removing
6601         from the chain.
6602         (scan_insn): Likewise.  Increase it when adding to chain, if it
6603         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6604         set active_local_stores to NULL before the addition.
6605         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6606
6607         PR rtl-optimization/48141
6608         * dse.c (record_store): If no positions are needed in an insn
6609         that cannot be deleted, at least unchain it from active_local_stores.
6610
6611 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6612
6613         PR debug/47510
6614         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6615         (lookup_type_die_strip_naming_typedef): ... here.
6616         (get_context_die): Use it.
6617         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6618         the anonymous struct named by the naming typedef.
6619
6620 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6621
6622         PR target/48154
6623         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6624         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6625
6626 2011-03-16  Jeff Law  <law@redhat.com>
6627
6628         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6629         check for operands of conditional.  Allow type to be a pointer.
6630
6631 2011-03-16  Richard Guenther  <rguenther@suse.de>
6632
6633         PR tree-optimization/48149
6634         * fold-const.c (fold_binary_loc): Fold
6635         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6636
6637 2011-03-16  Richard Guenther  <rguenther@suse.de>
6638
6639         PR tree-optimization/26134
6640         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6641         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6642         (non_rewritable_mem_ref_base): Handle complex type component
6643         accesses, constrain offsets for vector and complex extracts
6644         more properly.
6645
6646 2011-03-16  Richard Guenther  <rguenther@suse.de>
6647
6648         PR tree-optimization/48146
6649         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6650         operands avoiding the need for renaming.
6651
6652 2011-03-16  Richard Guenther  <rguenther@suse.de>
6653
6654         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6655         constant folding.  Move MEM_REF canonicalization first.
6656         Rely on fold_const_aggregate_ref for initializer folding.
6657         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6658
6659 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6660
6661         PR middle-end/48136
6662         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6663         arg0/arg1 or their arguments are always fold converted to matching
6664         types.
6665
6666         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6667         to nargs.
6668
6669 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6670
6671         PR lto/46944
6672         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6673         Handle in-tree gold.
6674         (ld_vers): Extract binutils version for gold.
6675         (gcc_cv_ld_hidden): Handle gold here.
6676         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6677         * configure: Regenerate.
6678         * config.in: Regenerate.
6679         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6680         -fuse-linker-plugin otherwise.
6681         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6682         (LINK_COMMAND_SPEC): Use it.
6683         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6684
6685 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6686
6687         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6688         * calls.c: Remove debug.h include.
6689         (emit_call_1): Don't call virtual_call_token debug hook.
6690         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6691         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6692         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6693         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6694         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6695         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6696         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6697         dwarf2out_virtual_call): Remove.
6698         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6699         copy_call_info and virtual_call hooks.
6700         (dwarf2out_init): Don't initialize vcall_insn_table,
6701         debug_dcall_section and debug_vcall_section.
6702         (prune_unused_types): Don't mark nodes from dcall_table.
6703         (dwarf2out_finish): Don't output dcall or vcall tables.
6704         * final.c (final_scan_insn): Don't call direct_call or
6705         virtual_call debug hooks.
6706         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6707         virtual_call_token, copy_call_info and virtual_call hooks.
6708         (debug_nothing_uid): Remove prototype.
6709         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6710         copy_call_info and virtual_call hooks.
6711         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6712         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6713         * debug.c (do_nothing_debug_hooks): Likewise.
6714         (debug_nothing_uid): Remove.
6715         * doc/invoke.texi (-fenable-icf-debug): Remove.
6716         * common.opt (-fenable-icf-debug): Likewise.
6717
6718         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6719         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6720         call's MEM.  Handle functions returning aggregate through a hidden
6721         first pointer.  For virtual calls add clobbered pc to call arguments
6722         chain.
6723         * dwarf2out.c (gen_subprogram_die): Emit
6724         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6725         can't be emitted.
6726
6727         PR debug/45882
6728         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6729         * rtl.h (ENTRY_VALUE_EXP): Define.
6730         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6731         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6732         * print-rtl.c (print_rtx): Likewise.
6733         * gengtype.c (adjust_field_rtx_def): Likewise.
6734         * var-tracking.c (vt_add_function_parameter): Adjust
6735         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6736         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6737         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6738         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6739         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6740
6741         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6742         Call var_location debug hook even on CALL_INSNs.
6743         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6744         * rtl.def (ENTRY_VALUE): New.
6745         * dwarf2out.c: Include cfglayout.h.
6746         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6747         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6748         (struct call_arg_loc_node): New type.
6749         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6750         tail_call_site_count): New variables.
6751         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6752         DW_TAG_GNU_call_site_parameter.
6753         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6754         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6755         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6756         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6757         and DW_AT_GNU_all_source_call_sites.
6758         (mem_loc_descriptor): Handle ENTRY_VALUE.
6759         (add_src_coords_attributes): Don't add enything if
6760         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6761         (dwarf2out_abstract_function): Save and clear call_arg_location,
6762         call_site_count and tail_call_site_count around dwarf2out_decl call.
6763         (gen_call_site_die): New function.
6764         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6765         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6766         (dwarf2out_function_decl): Clear call_arg_locations,
6767         call_arg_loc_last, set call_site_count and tail_call_site_count
6768         to -1 and free block_map.
6769         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6770         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6771         followed by any real instructions.
6772         (dwarf2out_begin_function): Set call_site_count and
6773         tail_call_site_count to 0.
6774         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6775         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6776         attempt to force a DIE for it and worst case remove the attribute.
6777         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6778         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6779         the decl itself.
6780         * var-tracking.c: Include tm_p.h.
6781         (vt_stack_adjustments): For calls call note_register_arguments.
6782         (argument_reg_set): New variable.
6783         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6784         ensure the VALUE is resolved.
6785         (call_arguments): New variable.
6786         (prepare_call_arguments): New function.
6787         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6788         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6789         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6790         always use the best expression.
6791         (vt_expand_loc): Add ignore_cur_loc argument.
6792         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6793         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6794         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6795         note for all calls.
6796         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6797         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6798         argument.  Don't call cselib_preserve_only_values and
6799         cselib_reset_table.
6800         (note_register_arguments): New function.
6801         (vt_initialize): Compute argument_reg_set.  Call
6802         vt_add_function_parameters before processing basic blocks instead of
6803         afterwards.  For calls call prepare_call_arguments before calling
6804         cselib_process_insn.
6805         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6806         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6807         (var-tracking.o): Depend on $(TM_P_H).
6808         * cfglayout.h (insn_scope): New prototype.
6809         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6810         * cfglayout.c (insn_scope): No longer static.
6811         * insn-notes.def (CALL_ARG_LOCATION): New.
6812         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6813         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6814         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6815         nothing for DECL_EXTERNAL BLOCK_VARS.
6816
6817 2011-03-16  Alan Modra  <amodra@gmail.com>
6818
6819         PR target/45844
6820         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6821         create invalid offset address for vsx splat insn.
6822         * config/rs6000/predicates.md (splat_input_operand): New.
6823         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6824
6825 2011-03-15  Xinliang David Li  <davidxl@google.com>
6826
6827         PR c/47837
6828         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6829         (normalize_preds): New function.
6830         (is_use_properly_guarded): Normalize def predicates.
6831
6832 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6833
6834         PR target/46788
6835         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6836         in the output template.
6837
6838 2011-03-15  Richard Guenther  <rguenther@suse.de>
6839
6840         PR middle-end/47650
6841         * tree-pretty-print.c (dump_function_declaration): Properly
6842         dump unprototyped and varargs function types.
6843
6844 2011-03-15  Richard Guenther  <rguenther@suse.de>
6845
6846         PR tree-optimization/13954
6847         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6848         and friends.
6849
6850 2011-03-15  Richard Guenther  <rguenther@suse.de>
6851
6852         PR tree-optimization/48037
6853         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6854         selects into BIT_FIELD_REFs.
6855         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6856         vector select.
6857
6858 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6859
6860         PR tree-optimization/48129
6861         * builtins.c (fold_builtin_snprintf): Convert to type of
6862         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6863         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6864
6865 2011-03-15  Richard Guenther  <rguenther@suse.de>
6866
6867         PR tree-optimization/41490
6868         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6869         value but with VUSE.
6870         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6871         return statements.
6872         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6873         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6874         * tree-tailcall.c (find_tail_calls): Ignore returns.
6875
6876 2011-03-15  Richard Guenther  <rguenther@suse.de>
6877
6878         PR middle-end/48031
6879         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6880         or variable-indexed array accesses when in gimple form.
6881
6882 2011-03-15  Richard Guenther  <rguenther@suse.de>
6883
6884         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6885
6886 2011-03-15  Alan Modra  <amodra@gmail.com>
6887
6888         PR target/48032
6889         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6890         presume symbol_refs without a symbol_ref_decl are suitably
6891         aligned, nor other trees we may see here.  Handle anchor symbols.
6892         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6893         Check cmodel=medium addresses.  Adjust all calls.
6894         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6895         creating cmodel=medium optimized access to locals.
6896         * config/rs6000/constraints.md (R): Pass QImode to
6897         legitimate_constant_pool_address_p.
6898         * config/rs6000/predicates.md (input_operand): Pass mode to
6899         legitimate_constant_pool_address_p.
6900         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6901         Update prototype.
6902
6903 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6904
6905         PR target/48053
6906         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6907         64-bit constants being loaded into registers other than GPRs such
6908         as loading 0 into a VSX register.
6909
6910 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6911
6912         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6913
6914 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6915
6916         PR middle-end/47917
6917         * builtins.c (fold_builtin_snprintf): New function.
6918         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6919         (fold_builtin_4): Likewise.
6920
6921         PR middle-end/38878
6922         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
6923         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
6924         and C - X == X also strip nops from +/-/p+ operand.
6925         When optimizing -X == C, fold C to arg0's type.
6926
6927         PR debug/47946
6928         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
6929         emit it as add_AT_int instead of add_AT_unsigned.
6930
6931 2011-03-14  Tom Tromey  <tromey@redhat.com>
6932
6933         * unwind-dw2.c: Include sys/sdt.h if it exists.
6934         (_Unwind_DebugHook): Use STAP_PROBE2.
6935         * config.in, configure: Rebuild.
6936         * configure.ac: Check for sys/sdt.h.
6937
6938 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
6939
6940         * config/i386/i386.md (ROUND_FLOOR): New constant.
6941         (ROUND_CEIL): Ditto.
6942         (ROUND_TRUNC): Ditto.
6943         (ROUND_MXCSR): Ditto.
6944         (ROUND_NO_EXC): Ditto.
6945         (rint<mode>2): Use new defines instead of numerical constants.
6946         (floor<mode>2): Ditto.
6947         (ceil<mode>2): Ditto.
6948         (btrunc<mode>2): Ditto.
6949         * config/i386/i386-builtin-types.def: Define ROUND function type
6950         aliases.
6951         * config/i386/i386.c (enum ix86_builtins): Add
6952         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
6953         (struct builtin_description): Add
6954         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
6955         (ix86_expand_sse_round): New static function.
6956         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
6957         function types.
6958         (ix86_builtin_vectorized_function): Handle
6959         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6960
6961 2011-03-14  Tom Tromey  <tromey@redhat.com>
6962
6963         * c-parser.c (c_parser_asm_string_literal): Clear
6964         warn_overlength_strings.
6965
6966 2011-03-14  Tom Tromey  <tromey@redhat.com>
6967
6968         * c-parser.c (disable_extension_diagnostics): Save
6969         warn_overlength_strings.
6970         (restore_extension_diagnostics): Restore warn_overlength_strings.
6971
6972 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6973
6974         * BASE-VER: Change to 4.7.0.
6975
6976 2011-03-14  Richard Guenther  <rguenther@suse.de>
6977
6978         PR middle-end/48098
6979         * tree.c (build_vector_from_val): Adjust assert to requirements
6980         and reality.
6981
6982 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6983
6984         PR bootstrap/48102
6985         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
6986
6987 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
6988
6989         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
6990         terms of target_flags_explicit. Adjust copyright year.
6991
6992         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
6993         * config/rs6000/t-freebsd: New file. Add override for
6994         LIB2FUNCS_EXTRA.
6995
6996 2011-03-13  Chris Demetriou  <cgd@google.com>
6997
6998         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
6999         (-fno-diagnostics-show-option): this, to reflect current default.
7000         (-Werror=): Update text about -fno-diagnostics-show-option.
7001
7002 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7003
7004         PR target/48053
7005         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7006         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7007         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7008         mode is not V2DImode or V2DFmode.
7009         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7010         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7011         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7012         registers to 0.
7013         (movdi_internal64): Likewise.
7014
7015 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7016
7017         PR tree-optimization/47127
7018         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7019         parameter.
7020         (set_cloog_options): Same.
7021         (scop_to_clast): Same.
7022         (print_clast_stmt): Do not call cloog_state_malloc and
7023         cloog_state_free.
7024         (print_generated_program): Same.
7025         (gloog): Same.
7026         * graphite-clast-to-gimple.h (cloog_state): Declared.
7027         (scop_to_clast): Adjust declaration.
7028         * graphite.c (cloog_state): Defined here.
7029         (graphite_initialize): Call cloog_state_malloc.
7030         (graphite_finalize): Call cloog_state_free.
7031
7032 2011-03-11  Jason Merrill  <jason@redhat.com>
7033
7034         * attribs.c (lookup_attribute_spec): Take const_tree.
7035         * tree.h: Adjust.
7036
7037 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7038
7039         * config/sparc/sparc.c (sparc_option_override): Use
7040         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7041
7042 2011-03-11  Richard Guenther  <rguenther@suse.de>
7043
7044         PR tree-optimization/48067
7045         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7046         multiplication result will be only used once on the target
7047         stmt.
7048
7049 2011-03-11  Richard Guenther  <rguenther@suse.de>
7050
7051         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7052
7053 2011-03-11  Richard Guenther  <rguenther@suse.de>
7054
7055         PR lto/48073
7056         * tree.c (find_decls_types_r): Do not walk types only reachable
7057         from IDENTIFIER_NODEs.
7058
7059 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7060
7061         PR middle-end/48044
7062         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7063         all vnode->force_output nodes as needed.
7064
7065 2011-03-11  Jason Merrill  <jason@redhat.com>
7066
7067         PR c++/48069
7068         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7069         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7070
7071 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7072
7073         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7074         cgraph_node.
7075
7076 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7077
7078         PR tree-optimization/48063
7079         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7080         inline functions called once if !tree_can_inline_p (node->callers).
7081
7082 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7083
7084         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7085         extra_objs.
7086         * config/score/score3.c: Delete.
7087         * config/score/score3.h: Delete.
7088         * config/score/mul-div.S: Delete.
7089         * config/score/sfp-machine.h: Add new file.
7090         * config/score/constraints.md: Add new file.
7091         * config/score/t-score-softfp: Add new file.
7092         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7093         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7094         (score7_extra_constraint): Delete.
7095         (score7_option_override): Remove unused code.
7096         * config/score/score.c: Remove score3 and score5 define and code.
7097         * config/score/score.h: Remove score3 and score5 define and code.
7098         * config/score/score.md: Remove score3 template and unusual insn.
7099         * config/score/score.opt: Remove score3 and score5 options.
7100
7101 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7102
7103         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7104         when _HPUX_SOURCE is defined.
7105         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7106
7107 2011-03-10  Jason Merrill  <jason@redhat.com>
7108
7109         PR c++/48029
7110         * stor-layout.c (layout_type): Don't set structural equality
7111         on arrays of incomplete type.
7112         * tree.c (type_hash_eq): Handle comparing them properly.
7113
7114 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7115
7116         PR debug/48043
7117         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7118         result mode matches original rtl mode.
7119
7120 2011-03-10  Nick Clifton  <nickc@redhat.com>
7121
7122         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7123         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7124
7125 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7126
7127         PR rtl-optimization/47866
7128         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7129         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7130         if target wasn't scalar.
7131         * function.c (assign_stack_temp_for_type): Assert that neither
7132         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7133         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7134         macro.
7135         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7136
7137 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7138
7139         * config/s390/s390-protos.h (s390_label_align): New prototype.
7140         * config/s390/s390.c (s390_label_align): New function.
7141         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7142
7143 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7144
7145         PR target/47755
7146         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7147         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7148         (output_vec_const_move): Ditto.
7149
7150 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7151
7152         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7153         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7154         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7155         Change 'rclass' argument and result type to reg_class_t.
7156         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7157
7158 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7159
7160         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7161         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7162         (TARGET_MEMORY_MOVE_COST): Define.
7163         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7164
7165 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7166
7167         PR debug/47881
7168         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7169         removed anything.
7170
7171         PR tree-optimization/48022
7172         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7173         for EQ/NE_EXPR.
7174
7175 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7176
7177         PR debug/47991
7178         * var-tracking.c (find_use_val): Return NULL for
7179         cui->sets && cui->store_p BLKmode MEMs.
7180
7181 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7182
7183         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7184         Remove.
7185         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7186         xstormy16_print_operand_address): Remove.
7187         * config/stormy16/stormy16.c (xstormy16_print_operand,
7188         xstormy16_print_operand_address): Make static.
7189         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7190
7191 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7192
7193         PR target/47862
7194         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7195         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7196         before definition.
7197
7198 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7199
7200         PR bootstrap/48000
7201         * cfgloopmanip.c (fix_bb_placements): Return immediately
7202         if FROM is BASE_LOOP's header.
7203
7204 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7205
7206         * gimplify.c (gimplify_function_tree): Fix building calls
7207         to __builtin_return_address.
7208
7209 2011-03-07  Alan Modra  <amodra@gmail.com>
7210
7211         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7212         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7213         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7214         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7215         return_mode args.
7216         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7217         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7218         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7219         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7220         * config/rs6000/rs6000.c
7221         (rs6000_elf_end_indicate_exec_stack): Rename to..
7222         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7223         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7224         (rs6000_file_start): ..here.
7225         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7226         file scope variables.
7227         (call_ABI_of_interest): New function.
7228         (init_cumulative_args): Set above vars when function return value
7229         is a float, vector, or small struct.
7230         (rs6000_function_arg_advance_1): Likewise for function args.
7231         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7232         references float args.
7233
7234 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7235
7236         * doc/cfg.texi: Remove "See" before @ref.
7237         * doc/invoke.texi: Likewise.
7238
7239 2011-03-05  Jason Merrill  <jason@redhat.com>
7240
7241         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7242
7243 2011-03-05  Anthony Green  <green@moxielogic.com>
7244
7245         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7246
7247 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7248
7249         PR rtl-optimization/47899
7250         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7251         to flow_loop_nested_p when moving the loop upward.
7252
7253 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7254
7255         PR target/47719
7256         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7257
7258 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7259
7260         PR tree-optimization/47967
7261         * ipa-cp.c (build_const_val): Return NULL instead of creating
7262         VIEW_CONVERT_EXPR for mismatching sizes.
7263         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7264         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7265         give up on versioning.
7266
7267 2011-03-05  Alan Modra  <amodra@gmail.com>
7268
7269         PR target/47986
7270         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7271         full cmodel medium/large lo_sum + high addresses.
7272
7273 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7274
7275         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7276         pool references in UNSPEC_LTREL_OFFSET.
7277
7278 2011-03-04  Jan Hubicka  <jh@suse.cz>
7279
7280         PR lto/47497
7281         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7282         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7283         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7284         Add node pointers.
7285         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7286         cgraph_add_thunk): Add node pointers.
7287         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7288         associated to right node.
7289         (input_node): Update use of cgraph_same_body_alias
7290         and cgraph_add_thunk.
7291
7292 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7293
7294         * config/i386/i386.opt (mprefer-avx128): New flag.
7295         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7296         modes when the flag -mprefer-avx128 is on.
7297
7298 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7299
7300         * dwarf2out.c (compare_loc_operands): Fix address handling.
7301
7302 2011-03-04  Alan Modra  <amodra@gmail.com>
7303
7304         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7305
7306 2011-03-04  Richard Guenther  <rguenther@suse.de>
7307
7308         PR middle-end/47968
7309         * expmed.c (extract_bit_field_1): Prefer vector modes that
7310         vec_extract patterns can handle.
7311
7312 2011-03-04  Richard Guenther  <rguenther@suse.de>
7313
7314         PR middle-end/47975
7315         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7316
7317 2011-03-04  Richard Henderson  <rth@redhat.com>
7318
7319         * explow.c (emit_stack_save): Remove 'after' parameter.
7320         (emit_stack_restore): Likewise.
7321         * expr.h: Update to match.
7322         * builtins.c, calls.c, stmt.c: Likewise.
7323         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7324         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7325         * function.c (expand_function_end): Insert the emit_stack_save
7326         sequence before parm_birth_insn instead of after.
7327
7328 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7329
7330         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7331         (ssse3_pmaddubsw128): Ditto.
7332         (ssse3_pmaddubsw): Ditto.
7333
7334 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7335
7336         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7337
7338 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7339
7340         PR c/47963
7341         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7342         on TYPE_SIZE_UNIT if it is a DECL.
7343
7344         PR debug/47283
7345         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7346         first operand is not is_gimple_mem_ref_addr, try to fold it.
7347         If the operand still isn't is_gimple_mem_ref_addr, clear
7348         MEM_EXPR on op0.
7349
7350 2011-03-03  Richard Guenther  <rguenther@suse.de>
7351
7352         PR middle-end/47283
7353         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7354         match comment.
7355         (refs_may_alias_p_1): For release branches return true if
7356         we are confused by our input.
7357
7358 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7359
7360         * config/s390/s390.c (s390_function_value): Rename to ...
7361         (s390_function_and_libcall_value): ... this.
7362         (s390_function_value): New function.
7363         (s390_libcall_value): New function.
7364         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7365         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7366         target macro definitions.
7367         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7368
7369 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7370
7371         * config/i386/freebsd64.h (CC1_SPEC): Define.
7372         * config/i386/linux64.h (CC1_SPEC): Define.
7373         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7374
7375 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7376
7377         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7378         Remove.
7379         * config/stormy16/stormy16.c: Include reload.h.
7380         (xstormy16_memory_move_cost): New function.
7381         (TARGET_MEMORY_MOVE_COST): Define.
7382
7383 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7384
7385         PR rtl-optimization/47925
7386         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7387         with side effects.  Remove the more-specific check for volatile asms.
7388
7389 2011-03-02  Alan Modra  <amodra@gmail.com>
7390
7391         PR target/47935
7392         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7393         toc relative addresses for valid offsets.
7394
7395 2011-03-01  Richard Guenther  <rguenther@suse.de>
7396
7397         PR tree-optimization/47890
7398         * tree-vect-loop.c (get_initial_def_for_induction): Set
7399         related stmt properly.
7400
7401 2011-03-01  Richard Guenther  <rguenther@suse.de>
7402
7403         PR lto/47924
7404         * lto-streamer.c (lto_record_common_node): Also register
7405         the canonical type.
7406
7407 2011-03-01  Richard Guenther  <rguenther@suse.de>
7408
7409         PR lto/46911
7410         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7411         Do not stream DECL_ABSTRACT_ORIGIN.
7412         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7413         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7414         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7415         Do not stream DECL_ABSTRACT_ORIGIN.
7416         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7417         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7418
7419 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7420
7421         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7422         FUNCTION_VALUE_REGNO_P): Remove.
7423         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7424         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7425         Add 'outgoing' argument.
7426         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7427         function.
7428         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7429         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7430
7431 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7432
7433         PR debug/28047
7434         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7435         (lookup_filename): Likewise.
7436         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7437
7438 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7439             Jakub Jelinek  <jakub@redhat.com>
7440
7441         PR middle-end/47893
7442         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7443         (assign_stack_local_1): Change last argument type to int.
7444         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7445         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7446         don't record padding space into frame_space_list nor use those areas.
7447         (assign_stack_local): Adjust caller.
7448         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7449         of assign_stack_local, pass 0 as last argument.
7450         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7451         callers.
7452
7453 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7454
7455         PR debug/47283
7456         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7457         Use target address_mode and pointer_mode hooks instead of hardcoded
7458         Pmode and ptr_mode.  Handle some simple cases of extending if
7459         POINTERS_EXTEND_UNSIGNED < 0.
7460         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7461         Call convert_debug_memory_address.
7462         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7463         convert_debug_memory_address.
7464
7465         PR middle-end/46790
7466         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7467         * configure: Regenerated.
7468         * config.in: Regenerated.
7469         * varasm.c (default_function_section): Return NULL
7470         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7471
7472 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7473
7474         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7475         the description to match the printed values.
7476
7477 2011-02-28  Richard Guenther  <rguenther@suse.de>
7478
7479         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7480         of the copied scope tree.
7481
7482 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7483
7484         * doc/extend.texi (Function Attributes): Avoid deeply (and
7485         wrongly) nested tables.
7486
7487 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7488
7489         PR middle-end/47903
7490         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7491         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7492         r isn't op0 nor op1.
7493
7494 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7495
7496         * config/avr/avr.md: Remove magic comment for emacs.
7497
7498 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7499
7500         PR target/45261
7501         * config/avr/avr.c (avr_option_override): Use error on bad options.
7502         (avr_help): New function.
7503         (TARGET_HELP): Define.
7504
7505 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7506
7507         PR target/42240
7508         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7509         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7510
7511 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7512
7513         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7514         (ARM Options): Ditto.
7515         (i386 and x86-64 Options): Ditto.
7516         (RX Options): Ditto.
7517         (SPARC Options): Ditto.
7518
7519 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7520
7521         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7522         FreeBSD 6 and later.  Generally use cpu generic.
7523
7524 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7525
7526         * doc/cpp.texi: Update copyright years.
7527
7528 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7529
7530         PR target/46898
7531         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7532
7533 2011-02-25  Jon Beniston  <jon@beniston.com>
7534
7535         PR target/46898
7536         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7537         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7538         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7539         (lm32_block_move_inline): Add type cast to remove warning.
7540         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7541         (gen_int_relational): Move declarations to start of function.
7542
7543 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7544
7545         PR tree-optimization/45470
7546         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7547         can throw internally only.
7548         * tree-vect-stmts.c (vectorizable_call): Likewise.
7549
7550 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7551
7552         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7553         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7554         * config/stormy16/stormy16-protos.h
7555         (xstormy16_preferred_reload_class): Remove.
7556         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7557         static. Change 'rclass' argument and return type to reg_class_t.
7558         (TARGET_PREFERRED_RELOAD_CLASS,
7559         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7560
7561 2011-02-24  Richard Guenther  <rguenther@suse.de>
7562
7563         * lto-streamer-in.c (input_bb): Do not find referenced vars
7564         in debug statements.
7565
7566 2011-02-23  Jason Merrill  <jason@redhat.com>
7567
7568         * common.opt (fabi-version): Document v5 and v6.
7569
7570 2011-02-23  Richard Guenther  <rguenther@suse.de>
7571
7572         PR tree-optimization/47849
7573         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7574
7575 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7576
7577         * opts-common.c (decode_cmdline_option): Print empty string
7578         argument as "" in decoded->orig_option_with_args_text.
7579         * gcc.c (execute): Print empty string argument as ""
7580         in the verbose output.
7581         (do_spec_1): Keep empty string argument.
7582
7583 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7584
7585         * config.gcc: Declare score-* and crx-* obsolete.
7586
7587 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7588
7589         PR rtl-optimization/47763
7590         * web.c (web_main): Ignore naked clobber when replacing register.
7591
7592 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7593
7594         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7595         Remove.
7596
7597 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7598
7599         PR doc/47848
7600         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7601
7602 2011-02-22  Mike Stump  <mikestump@comcast.net>
7603
7604         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7605         assembler.
7606         * configure: Regenerate.
7607
7608 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7609
7610         PR rtl-optimization/46002
7611         * ira-color.c (update_copy_costs): Change class intersection
7612         test to reg_class_contents[] test of 'hard_regno'.
7613
7614 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7615
7616         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7617         than Driver option.
7618         * config/hpux11.opt (mt): Likewise.
7619         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7620         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7621         * config/vax/elf.opt (mno-asm-pic): Likewise.
7622         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7623
7624 2011-02-21  Mike Stump  <mikestump@comcast.net>
7625
7626         PR target/47822
7627         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7628         tree so we can get save the type.
7629         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7630         for CFString instead of trying to use past the end of the builtins.
7631         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7632         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7633         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7634         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7635         Rename to darwin_builtin_cfstring.
7636         (darwin_init_cfstring_builtins): Return the built type.
7637
7638 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7639
7640         PR target/47840
7641         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7642         (_mm256_insert_epi64): Use _mm_insert_epi64.
7643
7644 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7645
7646         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7647         * config/stormy16/stormy16-protos.h
7648         (xstormy16_mode_dependent_address_p): Remove.
7649         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7650         Make static. Change return type to bool. Change argument type to
7651         const_rtx. Remove dead code.
7652         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7653
7654 2011-02-21  Richard Guenther  <rguenther@suse.de>
7655
7656         PR lto/47820
7657         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7658         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7659         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7660         TUs context.
7661         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7662         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7663
7664 2011-02-20  Richard Guenther  <rguenther@suse.de>
7665
7666         PR lto/47822
7667         * tree.c (free_lang_data_in_decl): Clean builtins from
7668         the TU decl BLOCK_VARS.
7669
7670 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7671
7672         PR debug/47620
7673         PR debug/47630
7674         * haifa-sched.c (fix_tick_ready): Skip tick computation
7675         for debug insns.
7676
7677 2011-02-19  Richard Guenther  <rguenther@suse.de>
7678
7679         PR lto/47647
7680         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7681         Remove lazy BLOCK_VARS streaming.
7682         (lto_input_ts_block_tree_pointers): Likewise.
7683         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7684
7685 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7686
7687         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7688
7689 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7690
7691         * config/i386/biarch32.h, config/i386/mach.h,
7692         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7693
7694 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7695
7696         PR target/47800
7697         * config/i386/i386.md (peephole2 for shift and plus): Use
7698         operands[1] original mode in the first insn.
7699
7700 2011-02-18  Mike Stump  <mikestump@comcast.net>
7701
7702         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7703
7704 2011-02-18  Jan Hubicka  <jh@suse.cz>
7705
7706         PR middle-end/47788
7707         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7708         to zero when the function is not inlinable at all.
7709
7710 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7711
7712         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7713         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7714         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7715         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7716         * config/pa/t-pa64: Likewise.
7717         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7718
7719 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7720
7721         PR driver/47787
7722         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7723
7724 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7725
7726         PR target/47792
7727         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7728
7729 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7730
7731         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7732         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7733         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7734         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7735         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7736         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7737         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7738         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7739         m32r_legitimate_address_p): New functions.
7740         * config/m32r/constraints.md (constraint "S"): Don't use
7741         STORE_PREINC_PREDEC_P.
7742         (constraint "U"): Don't use LOAD_POSTINC_P.
7743
7744 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7745
7746         PR rtl-optimization/46178
7747         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7748         compute ira_hard_regno_cover_class[].
7749
7750 2011-02-18  Richard Guenther  <rguenther@suse.de>
7751
7752         PR lto/47798
7753         * lto-streamer.h (lto_global_var_decls): Declare.
7754         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7755         statics for global var processing.
7756
7757 2011-02-18  Richard Guenther  <rguenther@suse.de>
7758
7759         PR tree-optimization/47737
7760         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7761         edge dominance check.
7762
7763 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7764
7765         PR debug/47780
7766         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7767         avoid invalid rtx sharing.
7768
7769 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7770
7771         * doc/cpp.texi (Obsolete Features): Add background on the
7772         origin of assertions.
7773
7774 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7775
7776         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7777         objc_abi == 2.
7778         * config/darwin.c (output_objc_section_asm_op): Added support for
7779         ABI v1 and v2.
7780         (is_objc_metadata): New.
7781         (darwin_objc2_section): New.
7782         (darwin_objc1_section): New.
7783         (machopic_select_section): Added support for ABI v1 and v2.
7784         (darwin_emit_objc_zeroed): New.
7785         (darwin_output_aligned_bss): Detect objc metadata and treat it
7786         appropriately.
7787         (darwin_asm_output_aligned_decl_common): Same.
7788         (darwin_asm_output_aligned_decl_local): Same.
7789         * config/darwin-sections.def: Updated for ABI v1 and v2.
7790         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7791         compiling Objective-C code for the NeXT runtime, default to using
7792         ABI version 0 for 32-bit, and version 2 for 64-bit.
7793
7794 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7795
7796         * common.opt (optimize_fast): New Variable.
7797         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7798         instead of local variable ofast.
7799
7800 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7801
7802         * doc/invoke.texi (fobjc-abi-version): Documented.
7803         (fobjc-nilcheck): Documented.
7804         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7805         version.
7806
7807 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7808
7809         PR driver/47390
7810         * common.opt (export-dynamic): New Driver option.
7811         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7812
7813 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7814
7815         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7816
7817 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7818             Jan Hubicka  <jh@suse.cz>
7819
7820         PR debug/47106
7821         PR debug/47402
7822         * cfgexpand.c (account_used_vars_for_block): Remove.
7823         (estimated_stack_frame_size): Use referenced vars.
7824         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7825         that were referenced in the original function.  Test src_fn
7826         rather than cfun.  Drop redundant get_var_ann.
7827         (setup_one_parameter): Drop redundant get_var_ann.
7828         (declare_return_variable): Likewise.
7829         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7830         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7831         * ipa-inline.c (compute_inline_parameters): Do not compute
7832         disregard_inline_limits here.
7833         (compute_inlinable_for_current, pass_inlinable): New.
7834         (pass_inline_parameters): Require PROP_referenced_vars.
7835         * cgraphunit.c (cgraph_process_new_functions): Don't run
7836         compute_inline_parameters explicitly unless function is in SSA form.
7837         (cgraph_analyze_function): Set .disregard_inline_limits.
7838         * tree-sra.c (convert_callers): Compute inliner parameters
7839         only for functions already in SSA form.
7840
7841 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7842
7843         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7844         -mlittle-endian-data.
7845
7846 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7847
7848         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7849         -mno-fpu, not -fpu and -no-fpu.
7850         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7851         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7852
7853 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7854
7855         PR target/43653
7856         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7857         input reload with PLUS RTX.
7858
7859 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7860
7861         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7862         of InverseVar(MDMX).
7863
7864 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7865
7866         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7867         --m4-340.
7868
7869 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7870
7871         * config/mn10300/mn10300.opt (mno-crt0): New.
7872
7873 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7874
7875         * config/m68k/uclinux.opt (static-libc): New Driver option.
7876
7877 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7878
7879         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7880
7881 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7882
7883         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7884         %{muser-extend-enabled}.
7885
7886 2011-02-16  Richard Guenther  <rguenther@suse.de>
7887
7888         PR tree-optimization/47738
7889         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7890         the TODO from tree_predictive_commoning.
7891
7892 2011-02-15  Jeff Law  <law@redhat.com>
7893
7894         Revert
7895         2011-01-25  Jeff Law  <law@redhat.com>
7896
7897         PR rtl-optimization/37273
7898         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7899         handle them like argument loads from stack slots.  Do not double
7900         count memory for memory constants and argument loads from stack slots.
7901
7902 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7903
7904         PR middle-end/47725
7905         * combine.c (cant_combine_insn_p): Revert the last change.
7906
7907 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7908
7909         PR target/47755
7910         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7911         mode for vector constants.  Remove code that checks for TImode.
7912
7913 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7914
7915         PR debug/47106
7916         PR debug/47402
7917         * cgraph.h (compute_inline_parameters): Return void.
7918         * ipa-inline.c (compute_inline_parameters): Adjust.
7919
7920 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7921
7922         PR debug/47106
7923         PR debug/47402
7924         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
7925         rather than decl.
7926         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7927         * ipa-inline.c (compute_inline_parameters): Adjust.
7928
7929 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7930
7931         PR debug/47106
7932         PR debug/47402
7933         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
7934         Adjust all users.  Pass FN to...
7935         * tree-flow-inline.h (first_referenced_var): ... this.  Add
7936         fn argument.
7937         * ipa-struct-reorg.c: Adjust.
7938         * tree-dfa.c: Adjust.
7939         * tree-into-ssa.c: Adjust.
7940         * tree-sra.c: Adjust.
7941         * tree-ssa-alias.c: Adjust.
7942         * tree-ssa-live.c: Adjust.
7943         * tree-ssa.c: Adjust.
7944         * tree-ssanames.c: Adjust.
7945         * tree-tailcall.c: Adjust.
7946
7947 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7948
7949         PR debug/47106
7950         PR debug/47402
7951         * tree-flow.h (referenced_var_lookup): Add fn parameter.
7952         Adjust all callers.
7953         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
7954         * tree-flow-inline.h: Adjust.
7955         * gimple-pretty-print.c: Adjust.
7956         * tree-into-ssa.c: Adjust.
7957         * tree-ssa.c: Adjust.
7958         * cfgexpand.c: Adjust.
7959
7960 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
7961
7962         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
7963         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7964         (EXTRA_CONSTRAINT): Delete.
7965         * config/iq2000/constraints.md: New file.
7966         * config/iq2000/iq2000.md: Include it.
7967         (define_insn ""): Delete.
7968         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
7969         unsupported constraint letters from patterns.
7970         (call_value, call_value_internal1): Likewise.
7971         (call_value_multiple_internal1): Likewise.
7972
7973 2011-02-15  Nick Clifton  <nickc@redhat.com>
7974
7975         * config/mn10300/mn10300.c: Include tm-constrs.h.
7976         (struct liw_data): New data structure describing an LIW candidate
7977         instruction.
7978         (extract_bundle): Use struct liw_data.  Allow small integer
7979         operands for some instructions.
7980         (check_liw_constraints): Use struct liw_data.  Remove swapped
7981         parameter.  Add comments describing the checks.  Fix bug when
7982         assigning the source of liw1 to the source of liw2.
7983         (liw_candidate): Delete.  Code moved into extract_bundle.
7984         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
7985         before swapping.
7986         * config/mn10300/predicates.md (liw_operand): New predicate.
7987         Allows registers and small integer constants.
7988         * config/mn10300/constraints.md (O): New constraint.  Accetps
7989         integers in the range -8 to +7 inclusive.
7990         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
7991         for moving a small integer into a register.  Give this alternative
7992         LIW attributes.
7993         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
7994         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
7995         using the J,K,L and M constraints,
7996         (liw): Remove SI mode on second operands to allow for HI and QI
7997         mode values.
7998         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
7999         instruction.
8000
8001 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8002
8003         PR middle-end/47725
8004         * combine.c (cant_combine_insn_p): Check zero/sign extended
8005         hard registers.
8006
8007 2011-02-15  Richard Guenther  <rguenther@suse.de>
8008
8009         PR tree-optimization/47743
8010         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8011         for a non-type-compatible VN lookup bail out.
8012
8013 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8014
8015         * config/fr30/constraints.md: New file.
8016         * config/fr30/fr30.md: Include it.
8017         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8018         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8019         (EXTRA_CONSTRAINT): Delete.
8020
8021 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8022
8023         * config/frv/constraints.md: New file.
8024         * config/frv/predicates.md: Include it.
8025         * config/frv/frv.c (reg_class_from_letter): Delete.
8026         (frv_option_override): Don't initialize it.
8027         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8028         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8029         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8030         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8031         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8032         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8033         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8034         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8035         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8036         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8037         (REG_CLASS_FROM_CONSTRAINT): Delete.
8038
8039 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8040
8041         PR middle-end/47581
8042         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8043         if frame size is 0 in a leaf function.
8044
8045 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8046
8047         PR pch/14940
8048         * config/alpha/host-osf.c: New file.
8049         * config/alpha/x-osf: New file.
8050         * config.host (alpha*-dec-osf*): Use it.
8051
8052 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8053
8054         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8055         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8056         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8057         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8058         type to const_rtx.
8059         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8060
8061 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8062
8063         * config/stormy16/constraints.md: New file.
8064         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8065         Use satisfies_constraint_Q and satisfies_constraint_R.
8066         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8067         Delete.
8068         (xstormy16_legitiamte_address_p): Declare.
8069         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8070         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8071         (EXTRA_CONSTRAINT): Delete.
8072         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8073         Un-staticize.
8074         (xstormy16_extra_constraint_p): Delete.
8075
8076 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8077
8078         PR tree-optimization/46494
8079         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8080         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8081         (pass_rtl_loop_done): Add TODO_verify_flow.
8082         * fwprop.c (pass_rtl_fwprop): Likewise.
8083         * modulo-sched.c (pass_sms): Likewise.
8084         * tree-ssa-dom.c (pass_dominator): Likewise.
8085         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8086         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8087         (pass_tree_loop_done): Likewise.
8088         * tree-ssa-pre.c (execute_pre): Likewise.
8089         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8090         * tree-ssa-sink.c (pass_sink_code): Likewise.
8091         * tree-vrp.c (pass_vrp): Likewise.
8092
8093 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8094
8095         * config/v850/constraints.md: New file.
8096         * config/v850/v850.md: Include it.
8097         * config/v850/predicates.md (reg_or_0_operand): Use
8098         satisfies_constraint_G.
8099         (special_symbolref_operand): Use satisfies_constraint_K.
8100         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8101         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8102         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8103         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8104         (EXTRA_CONSTRAINT): Delete.
8105         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8106         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8107         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8108
8109 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8110
8111         PR target/47696
8112         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8113         description.
8114
8115 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8116
8117         * config/mcore/constraints.md: New file.
8118         * config/mcore/mcore.md: Include it.
8119         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8120         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8121         (REG_CLASS_FROM_LETTER): Delete.
8122         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8123         insn_const_int_ok_for_constraint.
8124         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8125         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8126         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8127         (EXTRA_CONSTRAINT): Delete.
8128
8129 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8130
8131         PR ada/41929
8132         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8133         (IS_SIGHANDLER): Define.
8134         (sparc64_is_sighandler): New function, split off from
8135         sparc64_fallback_frame_state.
8136         (sparc_is_sighandler): New function, split off from
8137         sparc_fallback_frame_state.
8138         (sparc64_fallback_frame_state): Merge with ...
8139         (sparc_fallback_frame_state): ... this into ...
8140         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8141         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8142         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8143         stack instead of hardcoded offsets.
8144
8145 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8146
8147         PR target/45808
8148         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8149
8150 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8151
8152         * configure: Regenerate.
8153
8154 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8155
8156         PR driver/45731
8157         * gcc.c (asm_options): Correct spec matching --target-help.
8158
8159 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8160
8161         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8162         to gimple call error.
8163
8164 2011-02-12  Mike Stump  <mikestump@comcast.net>
8165
8166         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8167         comments in backslash regions.
8168
8169 2011-02-12  Mike Stump  <mikestump@comcast.net>
8170             Jakub Jelinek  <jakub@redhat.com>
8171             Iain Sandoe  <iains@gcc.gnu.org>
8172
8173         PR target/47324
8174         * dwarf2out.c (output_cfa_loc): When required, apply the
8175         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8176         (output_loc_sequence): Likewise.
8177         (output_loc_operands_raw): Likewise.
8178         (output_loc_sequence_raw): Likewise.
8179         (output_cfa_loc): Likewise.
8180         (output_loc_list): Suppress register number adjustment when
8181         calling output_loc_sequence()
8182         (output_die): Likewise.
8183
8184 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8185
8186         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8187         Remove macros.
8188         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8189         xtensa_memory_move_cost): New functions.
8190         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8191
8192 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8193
8194         PR lto/47225
8195         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8196         in the current directory.
8197         * configure: Rebuilt.
8198
8199 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8200
8201         * config/darwin.c (darwin_override_options): Add a hunk missed
8202         from the commit of r168571.  Trim comment line lengths and
8203         correct indents of the preceding block.
8204
8205 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8206
8207         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8208         the switch.
8209
8210 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8211
8212         * common.opt (nostartfiles): New Driver option.
8213
8214 2011-02-11  Xinliang David Li  <davidxl@google.com>
8215
8216         PR tree-optimization/47707
8217         * tree-chrec.c (convert_affine_scev): Keep type precision.
8218
8219 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8220
8221         PR tree-optimization/47420
8222         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8223
8224 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8225
8226         PR rtl-optimization/47614
8227         * rtl.h (check_for_inc_dec): Declare.
8228         * dse.c (check_for_inc_dec): Externalize...
8229         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8230         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8231
8232 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8233
8234         PR driver/47678
8235         * gcc.c (main): Do not compile inputs if there were errors in
8236         option handling.
8237         * opts-common.c (read_cmdline_option): Check for wrong language
8238         after other error checks.
8239
8240 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8241
8242         * cgraph.c: Fix comment typos.
8243         * cgraph.h: Likewise.
8244         * cgraphunit.c: Likewise.
8245         * ipa-cp.c: Likewise.
8246         * ipa-inline.c: Likewise.
8247         * ipa-prop.c: Likewise.
8248         * ipa-pure-const.c: Likewise.
8249         * ipa-ref.c: Likewise.
8250         * ipa-reference.c: Likewise.
8251
8252 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8253
8254         PR debug/47684
8255         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8256
8257 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8258
8259         PR testsuite/47400
8260         * doc/sourcebuild.texi (Require Support): Document
8261         dg-require-ascii-locale.
8262
8263 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8264
8265         * doc/lto.texi (Write summary): Fix missing parentheses.
8266
8267 2011-02-10  DJ Delorie  <dj@redhat.com>
8268
8269         * config/m32c/m32c.c (m32c_option_override): Disable
8270         -fcombine-stack-adjustments until flag value tracking and compare
8271         optimization can be rewritten.
8272
8273 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8274
8275         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8276         PROCESSOR_POWER7.
8277         (PROCESSOR_DEFAULT64): Likewise.
8278
8279 2011-02-10  Richard Henderson  <rth@redhat.com>
8280
8281         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8282         change from 2011-02-03.
8283         * config/rx/rx.c (flags_from_code): Likewise.
8284         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8285         is valid, n/pz otherwise.
8286         (rx_select_cc_mode): Return CCmode if Y is not zero.
8287
8288 2011-02-10  Richard Guenther  <rguenther@suse.de>
8289
8290         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8291
8292 2011-02-10  Richard Guenther  <rguenther@suse.de>
8293
8294         PR tree-optimization/47677
8295         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8296
8297 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8298
8299         PR target/47665
8300         * combine.c (make_compound_operation): Only change shifts into
8301         multiplication for SCALAR_INT_MODE_P.
8302
8303 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8304
8305         PR testsuite/47622
8306         Revert
8307         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8308         PR debug/42631
8309         * web.c (entry_register): Don't clobber the number of the
8310         first uninitialized reference in used[].
8311
8312 2011-02-09  Richard Guenther  <rguenther@suse.de>
8313
8314         PR tree-optimization/47664
8315         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8316         all edges again.
8317
8318 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8319
8320         PR target/46481
8321         PR target/47032
8322         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8323         PROCESSOR_POWER7.
8324         (PROCESSOR_DEFAULT64): Same.
8325         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8326
8327 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8328
8329         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8330
8331 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8332
8333         PR middle-end/45505
8334         * tree-sra.c (struct access): New flags grp_scalar_read and
8335         grp_scalar_write.  Changed description of assignment read and write
8336         flags.
8337         (dump_access): Dump new flags, reorder all of them.
8338         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8339         to detect multiple scalar reads.
8340         (analyze_access_subtree): Use the new scalar read write flags instead
8341         of the old flags.  Adjusted comments.
8342
8343 2011-02-08  DJ Delorie  <dj@redhat.com>
8344
8345         PR target/47548
8346         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8347         patterns.
8348
8349 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8350
8351         * config/m68k/uclinux.opt: New.
8352         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8353
8354 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8355
8356         * config/cris/elf.opt (sim): New Driver option.
8357
8358 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8359
8360         * config/xtensa/elf.opt: New.
8361         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8362
8363 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8364
8365         * config/vax/elf.opt: New.
8366         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8367
8368 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8369
8370         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8371
8372 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8373
8374         * config/gnu-user.opt: New.
8375         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8376         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8377         *-*-uclinux*): Use gnu-user.opt.
8378
8379 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8380
8381         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8382         * config/i386/gnu.h (CPP_SPEC): Likewise.
8383
8384 2011-02-08  Ian Lance Taylor  <iant@google.com>
8385
8386         * common.opt (fcx-limited-range): Add SetByCombined flag.
8387         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8388         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8389         (fassociative-math, freciprocal-math): Likewise.
8390         (funsafe-math-optimizations): Likewise.
8391         * opth-gen.awk: Handle SetByCombined.
8392         * optc-gen.awk: Likewise.
8393         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8394         (set_unsafe_math_optimizations_flags): Likewise.
8395         * doc/options.texi (Option properties): Document SetByCombined.
8396
8397 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8398
8399         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8400         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8401         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8402         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8403         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8404
8405 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8406
8407         PR tree-optimization/46834
8408         PR tree-optimization/46994
8409         PR tree-optimization/46995
8410         * graphite-sese-to-poly.c (used_outside_reduction): New.
8411         (detect_commutative_reduction): Call used_outside_reduction.
8412         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8413         translate_scalar_reduction_to_array only when at least one
8414         loop-phi/close-phi tuple has been detected.
8415
8416 2011-02-08  Richard Guenther  <rguenther@suse.de>
8417
8418         PR middle-end/47639
8419         * tree-vect-generic.c (expand_vector_operations_1): Update
8420         stmts here ...
8421         (expand_vector_operations): ... not here.  Cleanup EH info
8422         and the CFG if required.
8423
8424 2011-02-08  Richard Guenther  <rguenther@suse.de>
8425
8426         PR tree-optimization/47641
8427         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8428         require type compatibility.
8429
8430 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8431
8432         * gimple-low.c (lower_function_body): Don't remove the location of
8433         the return statement here.
8434         (lower_gimple_return): Do it here instead but only if the return
8435         statement is actually used twice.
8436
8437 2011-02-08  Richard Guenther  <rguenther@suse.de>
8438
8439         PR tree-optimization/47632
8440         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8441         unused up_to_stmt parameter, return whether cfg-cleanup is
8442         necessary, remove EH info properly.
8443         (forward_propagate_into_gimple_cond): Adjust caller.
8444         (forward_propagate_into_cond): Likewise.
8445         (forward_propagate_comparison): Likewise.
8446         (tree_ssa_forward_propagate_single_use_vars): Make
8447         forward_propagate_comparison case similar to the two others.
8448
8449 2011-02-08  Nick Clifton  <nickc@redhat.com>
8450
8451         * config/mn10300/mn10300.opt (mliw): New command line option.
8452         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8453         (liw_bundling): New automaton.
8454         (liw): New attribute.
8455         (liw_op): New attribute.
8456         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8457         (movsi_internal): Add LIW attributes.
8458         (andsi3): Likewise.
8459         (iorsi3): Likewise.
8460         (xorsi3): Likewise.
8461         (addsi3): Separate register and immediate alternatives.
8462         Add LIW attributes.
8463         (subsi3): Likewise.
8464         (cmpsi): Likewise.
8465         (aslsi3): Likewise.
8466         (lshrsi3): Likewise.
8467         (ashrsi3): Likewise.
8468         (liw): New pattern.
8469         * config/mn10300/mn10300.c (liw_op_names): New
8470         (mn10300_print_operand): Handle 'W' operand descriptor.
8471         (extract_bundle): New function.
8472         (check_liw_constraints): New function.
8473         (liw_candidate): New function.
8474         (mn10300_bundle_liw): New function.
8475         (mn10300_reorg): New function.
8476         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8477         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8478         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8479         __LIW__ or __NO_LIW__.
8480         * doc/invoke.texi: Describe the -mliw command line option.
8481
8482 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8483
8484         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8485         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8486         pthread_mutex_unlock): Remove.
8487         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8488         * config/pa/t-pa64: Likewise.
8489         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8490         shared libc if not linking against libpthread.
8491         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8492
8493 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8494
8495         PR target/47558
8496         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8497         on 10.6 and later to ensure that we always use the unwinder from
8498         the system.  Only add -no_compact_unwind when tarteting darwin
8499         10.6 or later.
8500
8501 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8502
8503         PR target/46997
8504         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8505         (vec_interleave_lowv2sf): Ditto.
8506         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8507         (vec_extract_oddv2sf): Ditto.
8508
8509 2011-02-07  Mike Stump  <mikestump@comcast.net>
8510
8511         PR target/42333
8512         Add __ieee_divdc3 entry point.
8513         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8514         entry point.
8515         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8516         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8517         * config/darwin.c (darwin_rename_builtins): Add.
8518         * config/darwin-protos.h (darwin_rename_builtins): Add.
8519
8520 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8521
8522         PR target/47636
8523         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8524         for the condition.
8525
8526 2011-02-07  Mike Stump  <mikestump@comcast.net>
8527
8528         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8529
8530 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8531
8532         PR target/47534
8533         * config/avr/libgcc.S (exit): Move .endfunc
8534
8535 2011-02-07  Richard Guenther  <rguenther@suse.de>
8536
8537         PR tree-optimization/47615
8538         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8539         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8540         (run_scc_vn): Initialize it.
8541         (visit_reference_op_load): Use it.
8542         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8543
8544 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8545
8546         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8547         DImode trapping arithmetic libfuncs.
8548
8549 2011-02-07  Richard Guenther  <rguenther@suse.de>
8550
8551         PR tree-optimization/47621
8552         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8553         two duplicates ...
8554         (execute_update_addresses_taken): ... here.  Make it more
8555         conservative in what we accept.
8556
8557 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8558
8559         * config/sparc/freebsd.h (ASM_SPEC): Define.
8560         * config/sparc/vxworks.h (ASM_SPEC): Define.
8561
8562 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8563
8564         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8565
8566 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8567
8568         * doc/invoke.texi: Remove reference to compiler internals from
8569         user documentation.
8570
8571         * reg-notes.def: Remove REG_VALUE_PROFILE.
8572         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8573
8574 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8575
8576         PR middle-end/47610
8577         * varasm.c (default_section_type_flags): If decl is NULL,
8578         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8579
8580 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8581
8582         PR debug/42631
8583         * web.c (entry_register): Don't clobber the number of the
8584         first uninitialized reference in used[].
8585
8586 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8587
8588         PR tree-optimization/46194
8589         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8590         (build_classic_dist_vector_1): Do not represent classic distance
8591         vectors when the access functions are variating in different loops.
8592
8593 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8594
8595         * config/mips/iris6.opt: New.
8596         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8597
8598 2011-02-04  Richard Henderson  <rth@redhat.com>
8599             Steve Ellcey  <sje@cup.hp.com>
8600
8601         PR target/46997
8602         * config/ia64/predicates.md (mux1_brcst_element): New.
8603         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8604         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8605         (ia64_unpack_sign): New.
8606         (ia64_expand_unpack): Rewrite using new routines.
8607         (ia64_expand_widen_sum): Ditto.
8608         (ia64_expand_dot_prod_v8qi): Ditto.
8609         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8610         routines, add endian check.
8611         (pmpy2_even): Rename from pmpy2_r, add endian check.
8612         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8613         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8614         (vec_widen_smult_hi_v4hi): Ditto.
8615         (vec_widen_umult_lo_v4hi): Ditto.
8616         (vec_widen_umult_hi_v4hi): Ditto.
8617         (mulv2si3): Change endian checks.
8618         (sdot_prodv4hi): Rewrite with new calls.
8619         (udot_prodv4hi): New.
8620         (vec_pack_ssat_v4hi): Add endian check.
8621         (vec_pack_usat_v4hi): Ditto.
8622         (vec_pack_ssat_v2si): Ditto.
8623         (max1_even): Rename from max1_r, add endian check.
8624         (max1_odd): Rename from max1_l, add endian check.
8625         (*mux1_rev): Format change.
8626         (*mux1_mix): Ditto.
8627         (*mux1_shuf): Ditto.
8628         (*mux1_alt): Ditto.
8629         (*mux1_brcst_v8qi): Use new predicate.
8630         (vec_extract_evenv8qi): Remove endian check.
8631         (vec_extract_oddv8qi): Ditto.
8632         (vec_interleave_lowv4hi): Format change.
8633         (vec_interleave_highv4hi): Ditto.
8634         (mix2_even): Rename from mix2_r, add endian check.
8635         (mix2_odd): Rename from mux2_l, add endian check.
8636         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8637         (vec_extract_evenodd_helper): Format change.
8638         (vec_extract_evenv4hi): Remove endian check.
8639         (vec_extract_oddv4hi): Remove endian check.
8640         (vec_interleave_lowv2si): Format change.
8641         (vec_interleave_highv2si): Format change.
8642         (vec_initv2si): Remove endian check.
8643         (vecinit_v2si): Add endian check.
8644         (reduc_splus_v2sf): Add endian check.
8645         (reduc_smax_v2sf): Ditto.
8646         (reduc_smin_v2sf): Ditto.
8647         (vec_initv2sf): Remove endian check.
8648         (fpack): Add endian check.
8649         (fswap): Add endian check.
8650         (vec_interleave_highv2sf): Add endian check.
8651         (vec_interleave_lowv2sf): Add endian check.
8652         (fmix_lr): Add endian check.
8653         (vec_setv2sf): Format change.
8654         (*vec_extractv2sf_0_be): Use shift to extract operand.
8655         (*vec_extractv2sf_1_be): New.
8656         (vec_pack_trunc_v4hi): Add endian check.
8657         (vec_pack_trunc_v2si): Format change.
8658
8659 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8660
8661         PR inline-asm/23200
8662         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8663         do bb, locus and block comparison and disallow loads if it is not set.
8664         (stmt_is_replaceable_p): New function.
8665         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8666         callers.
8667         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8668         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8669         SSA_NAME_DEF_STMT.
8670         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8671
8672 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8673
8674         * config/rs6000/xilinx.opt: New.
8675         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8676
8677 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8678
8679         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8680
8681 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8682
8683         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8684         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8685         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8686         secondary_reload_info, xtensa_secondary_reload): Remove.
8687         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8688         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8689         (xtensa_preferred_reload_class): Make static. Change return and
8690         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8691         Use CONST_DOUBLE_P predicate.
8692         (xtensa_preferred_output_reload_class): New function.
8693         (xtensa_secondary_reload): Make static.
8694
8695 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8696
8697         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8698         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8699         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8700
8701 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8702
8703         PR middle-end/31490
8704         * output.h (SECTION_RELRO): Define.
8705         (SECTION_MACH_DEP): Adjust.
8706         (get_variable_section): New prototype.
8707         * varpool.c (varpool_finalize_named_section_flags): New function.
8708         (varpool_assemble_pending_decls): Call it.
8709         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8710         * cgraphunit.c (cgraph_output_in_order): Call
8711         varpool_finalize_named_section_flags.
8712         * varasm.c (get_section): Allow section flags conflicts between
8713         relro and read-only sections if the section hasn't been declared yet.
8714         Set SECTION_OVERRIDE after diagnosing section type conflict.
8715         (get_variable_section): No longer static.
8716         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8717         readonly sections that need relocations.
8718         (decl_readonly_section_1): New function.
8719         (decl_readonly_section): Use it.
8720
8721         Revert:
8722         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8723                     Steve Ellcey  <sje@cup.hp.com>
8724
8725         PR middle-end/31490
8726         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8727         if section attribute used.
8728
8729 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8730
8731         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8732         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8733         (darwin_init_sections): Remove assertion.
8734
8735 2011-02-03  Nick Clifton  <nickc@redhat.com>
8736
8737         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8738         lt and ge.
8739         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8740         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8741         instead of "n" and "pz".
8742         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8743         CC_FLAG_S.
8744
8745 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8746
8747         PR target/47312
8748         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8749         fma, expand FMA_EXPR as fma{,f,l} call.
8750
8751         PR lto/47274
8752         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8753         copy them into a unsigned char variable and pass address of it to
8754         lto_output_data_stream.
8755
8756         PR target/47564
8757         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8758         around backend_init_target and lang_dependent_init_target calls.
8759         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8760         (verify_cgraph_node): Don't call set_cfun here.  Use
8761         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8762         Set error_found for incorrectly represented calls to thunks.
8763
8764 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8765
8766         PR debug/43092
8767         PR rtl-optimization/43494
8768         * rtl.h (for_each_inc_dec_fn): New type.
8769         (for_each_inc_dec): Declare.
8770         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8771         (for_each_inc_dec_find_inc_dec): New fn.
8772         (for_each_inc_dec_find_mem): New fn.
8773         (for_each_inc_dec): New fn.
8774         * dse.c (struct insn_size): Remove.
8775         (replace_inc_dec, replace_inc_dec_mem): Remove.
8776         (emit_inc_dec_insn_before): New fn.
8777         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8778         (canon_address): Pass mem modes to cselib_lookup.
8779         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8780         (cselib_lookup_from_insn): Likewise.
8781         (cselib_subst_to_values): Likewise.
8782         * cselib.c (find_slot_memmode): New var.
8783         (cselib_find_slot): New fn.  Use it instead of
8784         htab_find_slot_with_hash everywhere.
8785         (entry_and_rtx_equal_p): Use find_slot_memmode.
8786         (autoinc_split): New fn.
8787         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8788         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8789         Deal with autoinc.  Special-case recursion into MEMs.
8790         (cselib_hash_rtx): Likewise.
8791         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8792         address and MEM modes.
8793         (cselib_subst_to_values): Add memmode, pass it on.
8794         Deal with autoinc.
8795         (cselib_lookup): Add memmode argument, pass it on.
8796         (cselib_lookup_from_insn): Add memmode.
8797         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8798         (struct cselib_record_autoinc_data): New.
8799         (cselib_record_autoinc_cb): New fn.
8800         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8801         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8802         (cselib_process_insn): ... here.
8803         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8804         to cselib_lookup.
8805         (add_uses): Likewise, also to cselib_subst_to_values.
8806         (add_stores): Likewise.
8807         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8808         cselib_subst_to_values.
8809         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8810         * gcse.c (do_local_cprop): Adjusted.
8811         * postreload.c (reload_cse_simplify_set): Adjusted.
8812         (reload_cse_simplify_operands): Adjusted.
8813         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8814
8815 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8816
8817         PR tree-optimization/45122
8818         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8819         unsafe assumptions when there's more than one loop exit.
8820
8821 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8822
8823         PR target/47272
8824         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8825         Document using vector double with the load/store builtins, and
8826         that the load/store builtins always use Altivec instructions.
8827
8828         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8829         to use altivec memory instructions, even on VSX.
8830         (vector_altivec_store_<mode>): Ditto.
8831
8832         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8833         function.
8834
8835         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8836         V2DF, V2DI support to load/store overloaded builtins.
8837
8838         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8839         altivec load/store builtins for V2DF/V2DI types.
8840
8841         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8842         set avoid indexed addresses on power6 if -maltivec.
8843         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8844         vector_altivec_load/vector_altivec_store builtins.
8845         (altivec_expand_st_builtin): Ditto.
8846         (altivec_expand_builtin): Add VSX memory builtins.
8847         (rs6000_init_builtins): Add V2DI types to internal types.
8848         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8849         load/store builtins.
8850         (rs6000_address_for_altivec): Insure memory address is appropriate
8851         for Altivec.
8852
8853         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8854         vec_vsx_ld and vec_vsx_st.
8855         (vsx_store_<mode>): Ditto.
8856
8857         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8858         variables to hold long long types for VSX vector memory builtins.
8859         (RS6000_BTI_unsigned_long_long): Ditto.
8860         (long_long_integer_type_internal_node): Ditti.
8861         (long_long_unsigned_type_internal_node): Ditti.
8862
8863         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8864         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8865         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8866
8867         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8868         short cuts.
8869         (vec_vsx_st): Ditto.
8870
8871 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8872
8873         * config/pa/pa-hpux10.opt: New.
8874         * config/hpux11.opt (pthread): New Driver option.
8875         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8876         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8877
8878 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8879
8880         * config/ia64/vms.opt: New.
8881         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8882
8883 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8884
8885         PR target/47580
8886         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8887         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8888         generator functions.
8889         (vsx_floatuns<VSi><mode>2): Ditto.
8890         (vsx_fix_trunc<mode><VSi>2): Ditto.
8891         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8892
8893 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8894
8895         * config/i386/djgpp.opt (posix): New Driver option.
8896
8897 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8898
8899         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8900         Move to the unsupported targets list.
8901
8902 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8903
8904         PR rtl-optimization/47525
8905         * df-scan.c: Update copyright years.
8906         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8907         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8908
8909 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8910
8911         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8912         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8913         (ASM_OUTPUT_ASCII): Remove.
8914         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8915
8916 2011-02-02  Jeff Law  <law@redhat.com>
8917
8918         PR middle-end/47543
8919         * reload.c (find_reloads_address): Handle reg+d address where both
8920         components are invalid by reloading the entire address.
8921
8922 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8923             Richard Guenther  <rguenther@suse.de>
8924
8925         PR tree-optimization/40979
8926         PR bootstrap/47044
8927         * passes.c (init_optimization_passes): After LIM call copy_prop
8928         and DCE to clean up.
8929         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
8930
8931 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
8932
8933         PR tree-optimization/47576
8934         PR tree-optimization/47555
8935         * doc/invoke.texi (scev-max-expr-complexity): Documented.
8936         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
8937         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
8938         * tree-scalar-evolution.c (follow_ssa_edge): Use
8939         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
8940
8941 2011-02-02  Richard Guenther  <rguenther@suse.de>
8942
8943         PR tree-optimization/47566
8944         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
8945
8946 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8947
8948         PR debug/47106
8949         PR debug/47402
8950         * tree-inline.c (declare_return_variable): Remove unused caller
8951         variable.
8952
8953         PR debug/47106
8954         PR debug/47402
8955         * tree-flow-inline.h (clear_is_used, is_used_p): New.
8956         * cfgexpand.c (account_used_vars_for_block): Use them.
8957         * tree-nrv.c (tree_nrv): Likewise.
8958         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8959         (dump_scope_block): Likewise.
8960         (remove_unused_locals): Likewise.
8961
8962         PR debug/47106
8963         PR debug/47402
8964         * tree-inline.c (declare_return_variable): Add result decl to
8965         local decls only once.
8966         * gimple-low.c (record_vars_into): Mark newly-created variables
8967         as referenced.
8968
8969 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
8970
8971         PR debug/47498
8972         PR debug/47501
8973         PR debug/45136
8974         PR debug/45130
8975         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
8976         debug insns.
8977         (no_real_insns_p, schedule_block, set_priorities): Drop special
8978         treatment of boundary debug insns.
8979         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
8980         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
8981         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
8982         (BOUNDARY_DEBUG_INSN_P): Likewise.
8983         (SCHEDULE_DEBUG_INSN_P): Likewise.
8984         * sched-rgn.c (init_ready_list): Drop special treatment of
8985         boundary debug insns.
8986         * final.c (rest_of_clean_state): Clear notes' BB.
8987
8988 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8989
8990         * config/openbsd.opt (assert=): New Driver option.
8991
8992 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8993
8994         * config/i386/nto.opt: New.
8995         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
8996
8997 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
8998
8999         * config/i386/netware.opt: New.
9000         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9001
9002 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9003
9004         * config/interix.opt (posix): New Driver option.
9005
9006 2011-02-01  DJ Delorie  <dj@redhat.com>
9007
9008         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9009
9010         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9011         class for A0/A1.
9012
9013 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9014
9015         PR tree-optimization/47561
9016         * toplev.c (process_options): Print the Graphite flags.  Add
9017         flag_loop_flatten to the list of options requiring Graphite.
9018
9019 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9020
9021         * config/i386/cygming.opt (posix): New Driver option.
9022
9023 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9024
9025         * config/arm/vxworks.opt: New.
9026         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9027
9028 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9029
9030         * config/alpha/elf.opt: New.
9031         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9032         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9033
9034 2011-02-01  Richard Guenther  <rguenther@suse.de>
9035
9036         PR tree-optimization/47559
9037         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9038         store-motion on references that can throw.
9039
9040 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9041
9042         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9043         * tree-pass.h (TDF_CSELIB): New macro.
9044         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9045         cselib_lookup): Check for it rather than for TDF_DETAILS.
9046
9047 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9048
9049         PR driver/47547
9050         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9051         is HOST_BIT_BUCKET.
9052
9053         * opts.c (finish_options): Don't add x_aux_base_name if it is
9054         HOST_BIT_BUCKET.
9055
9056 2011-02-01  Richard Guenther  <rguenther@suse.de>
9057
9058         PR tree-optimization/47555
9059         Revert
9060         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9061
9062         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9063
9064 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9065
9066         PR gcc/46692
9067         * config/lm32/t-lm32: Add multilib for all CPU options.
9068
9069 2011-02-01  Richard Guenther  <rguenther@suse.de>
9070
9071         PR tree-optimization/47541
9072         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9073         sure to have a field at offset zero.
9074
9075 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9076
9077         * config/arc/arc.opt (EB, EL): New Driver options.
9078
9079 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9080
9081         * config/alpha/osf5.opt: New.
9082         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9083
9084 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9085
9086         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9087
9088 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9089
9090         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9091         -floop-interchange.
9092         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9093         is an alias of -floop-interchange and that it requires the
9094         Graphite infrastructure.
9095         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9096         flag_loop_interchange based on the value of flag_tree_loop_linear.
9097
9098 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9099             Richard Guenther  <rguenther@suse.de>
9100
9101         PR tree-optimization/47538
9102         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9103         type instead of r1type, except for comparisons.  For right
9104         shifts and comparisons punt if there are mismatches in
9105         sizetype vs. non-sizetype types.
9106
9107 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9108
9109         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9110         avx_runtime.
9111
9112 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9113
9114         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9115         version number.
9116         * configure: Regenerate.
9117
9118 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9119
9120         * configure.ac (gcc_cv_ld_static_option): Define.
9121         (gcc_cv_ld_dynamic_option): Define.
9122         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9123         instead.
9124         (HAVE_LD_STATIC_DYNAMIC): Update message.
9125         (LD_STATIC_OPTION): Define.
9126         (LD_DYNAMIC_OPTION): Define.
9127         * configure: Regenerate.
9128         * config.in: Regenerate.
9129         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9130         HAVE_LD_STATIC_DYNAMIC]: Use them.
9131
9132 2011-01-31  Nick Clifton  <nickc@redhat.com>
9133
9134         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9135         registers inside interrupt handlers if the handler is not a leaf
9136         function.
9137
9138 2011-01-31  Nick Clifton  <nickc@redhat.com>
9139
9140         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9141         reg_renumber returning an INVALID_REGNUM.
9142
9143 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9144
9145         PR libgcj/44341
9146         * doc/install.texi: Document host options discarded when cross
9147         configuring target libraries.
9148
9149 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9150
9151         Reverted:
9152         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9153         PR debug/45136
9154         PR debug/45130
9155         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9156         debug insns.
9157         (no_real_insns_p, schedule_block, set_priorities): Drop special
9158         treatment of boundary debug insns.
9159         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9160         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9161         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9162         (BOUNDARY_DEBUG_INSN_P): Likewise.
9163         (SCHEDULE_DEBUG_INSN_P): Likewise.
9164         * sched-rgn.c (init_ready_list): Drop special treatment of
9165         boundary debug insns.
9166         * final.c (rest_of_clean-state): Clear notes' BB.
9167
9168 2011-01-31  Alan Modra  <amodra@gmail.com>
9169
9170         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9171         toc relative expressions as we do in print_operand_address.
9172
9173 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9174
9175         * doc/extend.texi: Follow spelling conventions.
9176         * doc/invoke.texi: Fix a typo.
9177
9178 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9179
9180         * config/hpux11.opt: New.
9181         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9182         ia64*-*-hpux*): Use hpux11.opt.
9183
9184 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9185
9186         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9187         to tmake_file.
9188
9189 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9190
9191         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9192         support sites.
9193
9194 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9195
9196         * doc/install.texi (Binaries): Remove outdated reference for
9197         Motorola 68HC11/68HC12 downloads.
9198
9199 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9200
9201         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9202         Drepper's paper.
9203
9204 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9205
9206         PR bootstrap/47147
9207         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9208         used by NetBSD.
9209
9210 2011-01-28  Ahmad Sharif  <asharif@google.com>
9211
9212         * value-prof.c (check_counter): Corrected error message.
9213
9214 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9215
9216         * config/arm/arm.c (arm_legitimize_reload_address): New.
9217         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9218         arm_legitimize_reload_address.
9219         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9220
9221 2011-01-28  Ian Lance Taylor  <iant@google.com>
9222
9223         * godump.c (go_define): Ignore macros whose definitions include
9224         two adjacent operands.
9225
9226 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9227
9228         PR target/42894
9229         * varasm.c (force_const_mem): Store copy of x in desc->constant
9230         instead of x itself.
9231         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9232         itself into REG_EQUAL note.
9233
9234 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9235
9236         * config/freebsd.opt (posix, rdynamic): New Driver options.
9237
9238 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9239
9240         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9241         -Bstatic/-Bdynamic.
9242         * configure: Regenerate.
9243
9244 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9245
9246         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9247         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9248
9249 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9250
9251         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9252         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9253         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9254         (s390_preferred_reload_class): Make static. Change return and
9255         'rclass' argument type to reg_class_t.
9256
9257 2011-01-27  Jan Hubicka  <jh@suse.cz>
9258
9259         PR middle-end/46949
9260         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9261         (process_function_and_variable_attributes): Check defined weakrefs.
9262
9263 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9264
9265         PR tree-optimization/47228
9266         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9267         build_ref_for_offset.
9268
9269 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9270
9271         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9272
9273 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9274
9275         PR rtl-optimization/46856
9276         * postreload.c (reload_combine_recognize_const_pattern): Do not
9277         separate cc0 setter and user on cc0 targets.
9278
9279 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9280
9281         PR c/43082
9282         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9283         passed a VOID_TYPE expression, immediately emit an error and
9284         return error_mark_node.
9285
9286 2011-01-26  Jeff Law  <law@redhat.com>
9287
9288         PR rtl-optimization/47464
9289         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9290         rather than may_trap_p as needed.
9291
9292 2011-01-26  DJ Delorie  <dj@redhat.com>
9293
9294         PR rtl-optimization/46878
9295         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9296         setter/user dependency as well.
9297
9298 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9299
9300         PR rtl-optimization/44469
9301         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9302         after removing trivially dead basic blocks.
9303
9304 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9305
9306         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9307         * config/frv/frv.h (LINK_SPEC): Likewise.
9308         * config/i386/netware.h (LINK_SPEC): Likewise.
9309         * config/m68k/linux.h (ASM_SPEC): Likewise.
9310         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9311         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9312         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9313         * config/sparc/linux.h (ASM_SPEC): Likewise.
9314         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9315         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9316
9317 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9318
9319         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9320         * config/frv/frv.h (ASM_SPEC): Likewise.
9321         * config/m68k/linux.h (ASM_SPEC): Likewise.
9322         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9323         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9324         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9325         * config/sparc/linux.h (ASM_SPEC): Likewise.
9326         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9327         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9328
9329 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9330
9331         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9332         * config/frv/frv.h (LINK_SPEC): Likewise.
9333         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9334
9335 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9336
9337         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9338         * config/frv/frv.h (ASM_SPEC): Likewise.
9339         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9340         * config/m68k/linux.h (ASM_SPEC): Likewise.
9341         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9342         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9343         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9344         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9345         * config/sparc/linux.h (ASM_SPEC): Likewise.
9346         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9347         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9348         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9349
9350 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9351
9352         PR target/46997
9353         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9354         (*mux2): Ditto.
9355         (vec_extract_evenodd_help): Ditto.
9356         (vec_extract_evenv4hi): Ditto.
9357         (vec_extract_oddv4hi): Ditto.
9358         (vec_interleave_lowv2si): Ditto.
9359         (vec_interleave_highv2si): Ditto.
9360         (vec_extract_evenv2si): Ditto.
9361         (vec_extract_oddv2si: Ditto.
9362         (vec_pack_trunc_v2si): Ditto.
9363
9364 2011-01-22  Jan Hubicka  <jh@suse.cz>
9365
9366         PR target/47237
9367         * cgraph.h (cgraph_local_info): New field can_change_signature.
9368         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9369         signature can change.
9370         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9371         can change.
9372         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9373         (cgraph_function_versioning): We can not change signature of functions
9374         that don't allow that.
9375         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9376         (lto_input_node): Likewise.
9377         * ipa-inline.c (compute_inline_parameters): Compute
9378         local.can_change_signature.
9379         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9380         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9381         functions that can not change signature.
9382         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9383         init_cumulative_args): Do not use local calling conventions
9384         for functions that can not change signature.
9385
9386 2011-01-22  Jan Hubicka  <jh@suse.cz>
9387
9388         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9389
9390 2011-01-26  Richard Guenther  <rguenther@suse.de>
9391
9392         PR tree-optimization/47190
9393         * cgraphunit.c (process_common_attributes): New function.
9394         (process_function_and_variable_attributes): Use it.
9395
9396 2011-01-26  Richard Guenther  <rguenther@suse.de>
9397
9398         PR lto/47423
9399         * cgraphbuild.c (record_eh_tables): Record reference to personality
9400         function.
9401
9402 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9403
9404         PR debug/45454
9405         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9406         non-debug insns from moving up.
9407
9408 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9409
9410         PR target/40125
9411         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9412         t-dlldir{,-x} fragment for build and add it to tmake_file.
9413         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9414         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9415         * config/i386/t-dlldir: New file.
9416         (SHLIB_DLLDIR): Define.
9417         * config/i386/t-dlldir-x: New file.
9418         (SHLIB_DLLDIR): Define.
9419         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9420         (SHLIB_INSTALL): Use it.
9421
9422 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9423
9424         PR target/47246
9425         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9426         lower bound of the allowed Thumb-2 coprocessor load/store
9427         index range to -256. Add explaining comment.
9428
9429 2011-01-25  Ian Lance Taylor  <iant@google.com>
9430
9431         * godump.c (go_define): Improve lexing of macro expansion to only
9432         accept expressions which match Go spec.
9433
9434 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9435
9436         PR c++/43601
9437         * tree.c (handle_dll_attribute): Handle it.
9438         * doc/extend.texi (@item dllexport): Mention it.
9439         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9440
9441 2011-01-25  Ian Lance Taylor  <iant@google.com>
9442
9443         PR tree-optimization/26854
9444         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9445         (decl_jump_unsafe): Move higher in file, with no other change.
9446         (bind): Set has_jump_unsafe_decl if appropriate.
9447         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9448         (check_earlier_gotos): Likewise.
9449         (c_check_switch_jump_warnings): Likewise.
9450
9451 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9452
9453         * doc/invoke.texi (Warning Options): Add missing hyphen.
9454         (-fprofile-dir): Minor grammatical fixes.
9455         (-fbranch-probabilities): Likewise.
9456
9457 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9458
9459         PR debug/45136
9460         PR debug/45130
9461         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9462         debug insns.
9463         (no_real_insns_p, schedule_block, set_priorities): Drop special
9464         treatment of boundary debug insns.
9465         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9466         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9467         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9468         (BOUNDARY_DEBUG_INSN_P): Likewise.
9469         (SCHEDULE_DEBUG_INSN_P): Likewise.
9470         * sched-rgn.c (init_ready_list): Drop special treatment of
9471         boundary debug insns.
9472         * final.c (rest_of_clean-state): Clear notes' BB.
9473
9474 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9475
9476         * Makefile.in (LAMBDA_H): Removed.
9477         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9478         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9479         lambda-trans.o, and tree-loop-linear.o.
9480         (lto-symtab.o): Remove dependence on LAMBDA_H.
9481         (tree-loop-linear.o): Remove rule.
9482         (lambda-mat.o): Same.
9483         (lambda-trans.o): Same.
9484         (lambda-code.o): Same.
9485         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9486         (tree-vect-slp.o): Same.
9487         * hwint.h (gcd): Moved here.
9488         (least_common_multiple): Same.
9489         * lambda-code.c: Removed.
9490         * lambda-mat.c: Removed.
9491         * lambda-trans.c: Removed.
9492         * lambda.h: Removed.
9493         * tree-loop-linear.c: Removed.
9494         * lto-symtab.c: Do not include lambda.h.
9495         * omega.c (gcd): Removed.
9496         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9497         * tree-data-ref.c (print_lambda_vector): Moved here.
9498         (lambda_vector_copy): Same.
9499         (lambda_matrix_copy): Same.
9500         (lambda_matrix_id): Same.
9501         (lambda_vector_first_nz): Same.
9502         (lambda_matrix_row_add): Same.
9503         (lambda_matrix_row_exchange): Same.
9504         (lambda_vector_mult_const): Same.
9505         (lambda_vector_negate): Same.
9506         (lambda_matrix_row_negate): Same.
9507         (lambda_vector_equal): Same.
9508         (lambda_matrix_right_hermite): Same.
9509         * tree-data-ref.h: Do not include lambda.h.
9510         (lambda_vector): Moved here.
9511         (lambda_matrix): Same.
9512         (dependence_level): Same.
9513         (lambda_transform_legal_p): Removed declaration.
9514         (lambda_collect_parameters): Same.
9515         (lambda_compute_access_matrices): Same.
9516         (lambda_vector_gcd): Same.
9517         (lambda_vector_new): Same.
9518         (lambda_vector_clear): Same.
9519         (lambda_vector_lexico_pos): Same.
9520         (lambda_vector_zerop): Same.
9521         (lambda_matrix_new): Same.
9522         * tree-flow.h (least_common_multiple): Removed declaration.
9523         * tree-parloops.c (lambda_trans_matrix): Moved here.
9524         (LTM_MATRIX): Same.
9525         (LTM_ROWSIZE): Same.
9526         (LTM_COLSIZE): Same.
9527         (LTM_DENOMINATOR): Same.
9528         (lambda_trans_matrix_new): Same.
9529         (lambda_matrix_vector_mult): Same.
9530         (lambda_transform_legal_p): Same.
9531         * tree-pass.h (pass_linear_transform): Removed declaration.
9532         * tree-ssa-loop.c (tree_linear_transform): Removed.
9533         (gate_tree_linear_transform): Removed.
9534         (pass_linear_transform): Removed.
9535         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9536         flag_loop_interchange.
9537
9538 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9539
9540         PR tree-optimization/47265
9541         PR tree-optimization/47443
9542         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9543         if name still has some uses.
9544
9545 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9546
9547         PR tree-optimization/47382
9548         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9549         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9550
9551 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9552
9553         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9554         sjlj_except_unwind_info.
9555
9556 2011-01-25  Richard Guenther  <rguenther@suse.de>
9557
9558         PR tree-optimization/47426
9559         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9560         visible functions results escape.
9561
9562 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9563
9564         PR target/45701
9565         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9566         (arm_get_frame_offsets): Use it.
9567
9568 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9569             Jakub Jelinek  <jakub@redhat.com>
9570
9571         PR tree-optimization/47271
9572         * tree-if-conv.c (bb_postdominates_preds): New.
9573         (if_convertible_bb_p): Call bb_postdominates_preds.
9574         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9575         (predicate_scalar_phi): Call bb_postdominates_preds.
9576
9577 2011-01-25  Nick Clifton  <nickc@redhat.com>
9578
9579         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9580         * config/rx/rx.c (rx_function_value): Likewise.
9581         (rx_promote_function_mode): Likewise.
9582         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9583         in order to make it legitimate.
9584         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9585         make sure that the first operand is the same as the result register.
9586         (addsi3_unspec): Delete.
9587         (subdi3): Do not accept immediate operands.
9588         (subdi3_internal): Likewise.
9589
9590 2011-01-25  Jeff Law  <law@redhat.com>
9591
9592         PR rtl-optimization/37273
9593         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9594         handle them like argument loads from stack slots.  Do not double
9595         count memory for memory constants and argument loads from stack slots.
9596
9597 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9598
9599         PR tree-optimization/47427
9600         PR tree-optimization/47428
9601         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9602         coalesce if the new root var would be TREE_READONLY.
9603
9604 2011-01-25  Richard Guenther  <rguenther@suse.de>
9605
9606         PR middle-end/47414
9607         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9608         correct type for TBAA.
9609
9610 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9611
9612         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9613         (close_phi_written_to_memory): Call for_each_index with
9614         dr_indices_valid_in_loop.
9615
9616 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9617
9618         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9619         when it is initialized.
9620
9621 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9622
9623         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9624         call to graphite_find_data_references_in_stmt.
9625         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9626         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9627         call to graphite_find_data_references_in_stmt.
9628         (analyze_drs_in_stmts): Same.
9629         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9630         in which the scalar analysis of indices is performed.
9631         (create_data_ref): Same.  Update call to dr_analyze_indices.
9632         (find_data_references_in_stmt): Update call to create_data_ref.
9633         (graphite_find_data_references_in_stmt): Same.
9634         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9635         declaration.
9636         (create_data_ref): Same.
9637         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9638         call to create_data_ref.
9639
9640 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9641
9642         * graphite-sese-to-poly.c (build_poly_scop): Move
9643         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9644
9645 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9646
9647         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9648         VAR_DECL, PARM_DECL, and RESULT_DECL.
9649
9650 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9651
9652         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9653         in a reduction PBB.
9654         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9655         that have already been marked as PBB_IS_REDUCTION.
9656
9657 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9658
9659         * graphite-scop-detection.c (same_close_phi_node): New.
9660         (remove_duplicate_close_phi): New.
9661         (make_close_phi_nodes_unique): New.
9662         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9663
9664 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9665
9666         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9667         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9668         of both data references to be the same.
9669
9670 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9671
9672         * graphite-dependences.c (build_lexicographical_constraint): Remove
9673         the gdim parameter.
9674         (build_lexicographical_constraint): Adjust call to
9675         ppl_powerset_is_empty.
9676         (dependence_polyhedron): Same.
9677         (graphite_legal_transform_dr): Same.
9678         (graphite_carried_dependence_level_k): Same.
9679         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9680         parameter.
9681         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9682
9683 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9684
9685         * graphite-sese-to-poly.c
9686         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9687         (close_phi_written_to_memory): New.
9688         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9689         and unshare_expr.
9690
9691 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9692
9693         * doc/install.texi: Update the expected version number of PPL to 0.11.
9694         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9695         #if PPL_VERSION_MINOR < 11.
9696
9697 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9698
9699         * graphite-dependences.c: Include graphite-cloog-util.h.
9700         (new_poly_ddr): Inlined into dependence_polyhedron.
9701         (free_poly_ddr): Moved close by new_poly_ddr.
9702         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9703         Early return NULL when ppl_powerset_is_empty returns true.
9704         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9705         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9706         (graphite_legal_transform_dr): Call new_poly_ddr.
9707         (graphite_carried_dependence_level_k): Same.
9708         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9709         (dot_transformed_deps_stmt_1): Removed.
9710         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9711         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9712         (dot_deps_1): Call dot_deps_2.
9713         * Makefile.in (graphite-dependences.o): Add missing dependence on
9714         graphite-cloog-util.h.
9715
9716 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9717
9718         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9719         (build_lexicographical_constraint): Same.
9720         (dependence_polyhedron_1): Same.
9721         (graphite_legal_transform_dr): Same.
9722         (graphite_carried_dependence_level_k): Same.
9723         * graphite-ppl.c (ppl_powerset_is_empty): New.
9724         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9725         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9726
9727 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9728
9729         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9730         the "a followed by b" relation and document it.
9731
9732 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9733
9734         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9735         iteration when the bag of constraints is empty.
9736
9737 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9738
9739         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9740
9741 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9742
9743         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9744         nest and two loop depths as parameters.
9745         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9746         lst_perfect_nestify.
9747
9748 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9749
9750         * graphite-dependences.c (print_pddr): Call
9751         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9752
9753 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9754
9755         * graphite-ppl.c (debug_gmp_value): New.
9756         * graphite-ppl.h (debug_gmp_value): Declared.
9757
9758 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9759
9760         * doc/install.texi: Document availability of cloog-0.16.
9761
9762 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9763
9764         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9765         invalid postdominance info.
9766
9767 2011-01-24  Jan Hubicka  <jh@suse.cz>
9768
9769         PR c/21659
9770         * doc/extend.texi (weak pragma): Drop claim that it must
9771         appear before definition.
9772         * varasm.c (merge_weak, declare_weak): Only sanity check
9773         that DECL is not output at a time it is declared weak.
9774
9775 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9776
9777         * machmode.def: Fixed comments.
9778
9779 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9780
9781         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9782
9783 2011-01-24  Paul Koning  <ni1d@arrl.net>
9784
9785         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9786         WORDS_BIG_ENDIAN.
9787
9788 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9789
9790         PR target/46519
9791         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9792         (block_info): Add scanned and prev.
9793         (move_or_delete_vzeroupper_2): Return if the basic block
9794         has been scanned and the upper 128bit state is unchanged
9795         from the last scan.
9796         (move_or_delete_vzeroupper_1): Return true if the exit
9797         state is changed.
9798         (move_or_delete_vzeroupper): Visit basic blocks using the
9799         work-list based algorithm based on vt_find_locations in
9800         var-tracking.c.
9801
9802         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9803
9804 2011-01-24  Nick Clifton  <nickc@redhat.com>
9805
9806         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9807         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9808         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9809         then define __v850e1__.
9810         * doc/invoke.texi: Document -mv850es.
9811
9812 2011-01-24  Richard Henderson  <rth@redhat.com>
9813
9814         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9815         compound unordered comparisons.
9816         * config/rx/rx.c (rx_split_fp_compare): Remove.
9817         * config/rx/rx-protos.h: Update.
9818         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9819         (cbranchsf4): Don't call rx_split_fp_compare.
9820         (*cbranchsf4): Use rx_split_cbranch.
9821         (*cmpsf): Don't accept "i" constraint.
9822         (*conditional_branch): Only valid after reload.
9823         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9824
9825 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9826
9827         PR target/47385
9828         * config/rs6000/altivec.md (vector constant splitters): Add
9829         support for creating vector single precision constants if -mvsx is
9830         used and we would create the constant using Altivec primitives.
9831
9832 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9833             Richard Sandiford  <rdsandiford@googlemail.com>
9834
9835         PR rtl-optimization/47166
9836         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9837         mechanism for PRE_MODIFY and POST_MODIFY.
9838         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9839         reloadreg.
9840
9841 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9842
9843         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9844
9845 2011-01-22  Jan Hubicka  <jh@suse.cz>
9846
9847         PR lto/47333
9848         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9849
9850 2011-01-22  Jan Hubicka  <jh@suse.cz>
9851
9852         PR tree-optimization/43884
9853         PR lto/44334
9854         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9855         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9856
9857 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9858
9859         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9860         * config/s390/s390.c (s390_register_move_cost,
9861         s390_memory_move_cost): New.
9862         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9863
9864 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9865
9866         PR middle-end/47401
9867         * except.c (sjlj_assign_call_site_values): Move setting the
9868         crtl->uses_eh_lsda flag to ...
9869         (sjlj_mark_call_sites): ... here.
9870         (sjlj_emit_function_enter): Support NULL dispatch label.
9871         (sjlj_build_landing_pads): In a function with no landing pads
9872         that still has must-not-throw regions, generate code to register
9873         a personality function with empty LSDA.
9874
9875 2011-01-21  Richard Henderson  <rth@redhat.com>
9876
9877         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9878
9879         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9880
9881         * compare-elim.c: New file.
9882         * Makefile.in (OBJS-common): Add it.
9883         (compare-elim.o): New.
9884         * common.opt (fcompare-elim): New.
9885         * opts.c (default_options_table): Add OPT_fcompare_elim.
9886         * tree-pass.h (pass_compare_elim_after_reload): New.
9887         * passes.c (init_optimization_passes): Add it.
9888         * recog.h: Protect against re-inclusion.
9889         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9890         * doc/invoke.texi (-fcompare-elim): Document it.
9891         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9892         * doc/tm.texi: Rebuild.
9893
9894 2011-01-22  Nick Clifton  <nickc@redhat.com>
9895
9896         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9897         rx_split_fp_compare.
9898
9899 2011-01-22  Nick Clifton  <nickc@redhat.com>
9900
9901         * config/rx/rx.md (UNSPEC_CONST): New.
9902         (deallocate_and_return): Wrap the amount popped off the stack in
9903         an UNSPEC_CONST in order to stop it being rejected by
9904         -mmax-constant-size.
9905         (pop_and_return): Add a "(return)" rtx.
9906         (call): Drop the immediate operand.
9907         (call_internal): Likewise.
9908         (call_value): Likewise.
9909         (call_value_internal): Likewise.
9910         (sibcall_internal): Likewise.
9911         (sibcall_value_internal): Likewise.
9912         (sibcall): Likewise.  Generate an explicit call using
9913         sibcall_internal.
9914         (sibcall_value): Likewise.
9915         (mov<>): FAIL if a constant operand is not legitimate.
9916         (addsi3_unpsec): New pattern.
9917
9918         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9919         (ok_for_max_constant): New function.
9920         (gen_safe_add): New function.
9921         (rx_expand_prologue): Use gen_safe_add.
9922         (rx_expand_epilogue): Likewise.
9923         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
9924         UNSPEC CONSTs.
9925
9926 2011-01-21  Jeff Law  <law@redhat.com>
9927
9928         PR tree-optimization/47053
9929         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
9930         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
9931         statements are deleted.
9932         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
9933         is nonempty, then purge dead edges and cleanup the CFG.
9934
9935 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9936
9937         PR debug/47402
9938         Temporarily revert:
9939         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9940         PR debug/47106
9941         * tree-dfa.c (create_var_ann): Mark variable as used.
9942
9943 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9944
9945         PR middle-end/45566
9946         * except.c (convert_to_eh_region_ranges): Emit queued no-region
9947         notes from other section in hot/cold partitioning even if
9948         last_action is -3.  Increment call_site_base.
9949
9950         PR rtl-optimization/47366
9951         * fwprop.c (forward_propagate_into): Return bool.  If
9952         any changes are made, -fnon-call-exceptions is used and
9953         REG_EH_REGION note is present, call purge_dead_edges
9954         and return true if it purged anything.
9955         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
9956         any EH edges were purged.
9957
9958 2011-01-21  Jeff Law  <law@redhat.com>
9959
9960         PR rtl-optimization/41619
9961         * caller-save.c (setup_save_areas): Break out code to determine
9962         which hard regs are live across calls by examining the reload chains
9963         so that it is always used.
9964         Eliminate code which checked REG_N_CALLS_CROSSED.
9965
9966 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
9967
9968         PR tree-optimization/47355
9969         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
9970         NOP has non-debug uses beyond PHIs in new_bb.
9971
9972 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
9973
9974         PR debug/47106
9975         * cfgexpand.c (account_used_vars_for_block): Only account vars
9976         that are annotated as used.
9977         (estimated_stack_frame_size): Don't set TREE_USED.
9978         * tree-dfa.c (create_var_ann): Mark variable as used.
9979
9980 2011-01-21  Richard Guenther  <rguenther@suse.de>
9981
9982         PR middle-end/47395
9983         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
9984
9985 2011-01-21  Richard Guenther  <rguenther@suse.de>
9986
9987         PR tree-optimization/47365
9988         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
9989         (vn_reference_lookup_pieces): Adjust.
9990         (vn_reference_lookup): Likewise.
9991         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
9992         (vn_reference_lookup_3): Only look through kills if in
9993         VN_WALKREWRITE mode.
9994         (vn_reference_lookup_pieces): Adjust.
9995         (vn_reference_lookup): Likewise.
9996         (visit_reference_op_load): Likewise.
9997         (visit_reference_op_store): Likewise.
9998         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
9999         (compute_avail): Likewise.
10000         (eliminate): Likewise.
10001
10002 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10003
10004         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10005         DECL_IGNORED_P non-reg vars if they are used.
10006
10007         PR tree-optimization/47391
10008         * varpool.c (const_value_known_p): Return false if
10009         decl is volatile.
10010
10011 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10012
10013         PR bootstrap/47215
10014         * config/i386/i386.c (ix86_local_alignment): Handle
10015         case for va_list_type_node is nil.
10016         (ix86_canonical_va_list_type): Likewise.
10017
10018 2011-01-21  Alan Modra  <amodra@gmail.com>
10019
10020         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10021         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10022
10023 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10024
10025         * config/arm/arm.md (define_attr type): Rename f_load
10026         and f_store to f_fpa_load and f_fpa_store. Update.
10027         (write_conflict): Deal with rename fallout.
10028         (*push_fp_multi): Likewise.
10029         * config/arm/fpa.md (f_load): Use f_fpa_load.
10030         (f_store): Use f_fpa_store.
10031         (*movsf_fpa): Likewise.
10032         (*movdf_fpa): Likewise.
10033         (*movxf_fpa): Likewise.
10034         (*thumb2_movsf_fpa): Likewise.
10035         (*thumb2_movdf_fpa): Likewise.
10036         (*thumb2_movxf_fpa): Likewise.
10037         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10038         f_loadd and f_stored.
10039         (*thumb2_movdi_vfp): Likewise.
10040         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10041         (*thumb2_movsi_vfp): Likewise.
10042         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10043         Use f_loads instead of f_load.
10044         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10045
10046 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10047
10048         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10049         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10050         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10051         (xtensa_mode_dependent_address_p): New function.
10052         (constantpool_address_p): Make static. Change return type to bool.
10053         Change argument type to const_rtx. Use CONST_INT_P predicate.
10054
10055 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10056
10057         PR debug/46583
10058         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10059
10060 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10061
10062         PR debug/47283
10063         * cfgexpand.c (expand_debug_expr): Instead of generating
10064         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10065         etc. handling.
10066
10067 2011-01-20  Richard Guenther  <rguenther@suse.de>
10068
10069         PR middle-end/47370
10070         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10071         the pointer operand of MEM_REFs.
10072
10073 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10074
10075         PR tree-optimization/46130
10076         * ipa-split.c (consider_split): If return_bb contains non-virtual
10077         PHIs other than for retval or if split_function would not adjust it,
10078         refuse to split.
10079
10080 2011-01-20  Richard Guenther  <rguenther@suse.de>
10081
10082         PR tree-optimization/47167
10083         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10084         Revert previous change, only avoid enumeral type changes.
10085
10086 2011-01-19  Mike Stump  <mikestump@comcast.net>
10087
10088         * doc/tm.texi.in (BRANCH_COST): Englishify.
10089         * doc/tm.texi (BRANCH_COST): Likewise.
10090
10091 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10092
10093         PR c++/47291
10094         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10095         (gen_scheduled_generic_parms_dies): New functions.
10096         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10097         generation for the end of CU compilation.
10098         (dwarf2out_finish): Generate template parameters DIEs here.
10099
10100 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10101
10102         PR debug/46240
10103         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10104         debug bind stmt on merge edges.
10105
10106 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10107
10108         PR debug/47079
10109         PR debug/46724
10110         * function.c (instantiate_expr): Instantiate incoming rtl of
10111         implicit arguments, and recurse on VALUE_EXPRs.
10112         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10113         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10114
10115 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10116
10117         * c-parser.c (c_parser_for_statement): Initialize
10118         collection_expression.
10119
10120 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10121
10122         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10123
10124 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10125
10126         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10127         (LINK_SHLIB_SPEC): Don't use %(link_path).
10128         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10129
10130 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10131
10132         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10133         (NO_SHARED_LIB_SUPPORT): Remove.
10134         (LINK_SHLIB_SPEC): Remove one conditional definition.
10135
10136 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10137
10138         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10139         %{call_shared}.
10140         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10141         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10142         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10143         %{call_shared} and conditionals on these options not being passed.
10144         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10145         %{call_shared}.
10146
10147 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10148
10149         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10150         simplify.
10151
10152         * ipa-split.c: Spelling fixes.
10153
10154 2011-01-19  Richard Henderson  <rth@redhat.com>
10155
10156         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10157         (*mulsi3): Likewise.
10158
10159         * longlong.h [__mn10300__] (count_leading_zeros): New.
10160         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10161         [__mn10300__] (add_ssaaaa, subddmmss): New.
10162         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10163         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10164
10165 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10166
10167         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10168
10169 2011-01-19  Richard Henderson  <rth@redhat.com>
10170
10171         * config/mn10300/mn10300.md (addsi3_flags): New.
10172         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10173         (subsi3_flags, subc_internal, subdi3): New.
10174         (subdi3_internal, *subdi3_degenerate): New.
10175         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10176
10177         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10178         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10179         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10180         * config/mn10300/mn10300-protos.h: Update.
10181         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10182         (return_ret): Likewise.  Rename from return_internal_regs.
10183         (return_internal): Remove.
10184
10185         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10186         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10187         (mn10300_legitimate_constant_p): Likewise.
10188         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10189         (mn10300_frame_size): New.
10190         (mn10300_expand_prologue): Use it.
10191         (mn10300_expand_epilogue): Likewise.
10192         (mn10300_initial_offset): Likewise.
10193         * config/mn10300/mn10300-protos.h: Update.
10194         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10195         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10196         (prologue, epilogue, return_internal): Tidy output code.
10197         (mn10300_store_multiple_operation, return): Likewise.
10198         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10199         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10200         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10201         (load_pic, am33_load_pic): New.
10202         (mn10300_load_pic0, mn10300_load_pic1): New.
10203
10204         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10205         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10206         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10207         (cc_flags_for_mode, cc_flags_for_code): New.
10208         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10209         overflow flag is not valid.  Validate that the flags we need
10210         for the comparison are valid.
10211         (mn10300_output_cmp): Remove.
10212         (mn10300_output_add): New.
10213         (mn10300_select_cc_mode): Use cc_flags_for_code.
10214         (mn10300_split_cbranch): New.
10215         (mn10300_match_ccmode): New.
10216         (mn10300_split_and_operand_count): New.
10217         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10218         to the function.
10219         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10220         (addsi3): ... here.  Use mn10300_output_add.
10221         (*addsi3_flags): New.
10222         (*am33_subsi3, *mn10300_subsi3): Merge...
10223         (subsi3): ... here.  Use attribute isa.
10224         (*subsi3_flags): New.
10225         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10226         when possible.
10227         (*am33_andsi3, *mn10300_andsi3): Merge...
10228         (andsi3): ... here.
10229         (*andsi3_flags): New.
10230         (andsi3 splitters): New.
10231         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10232         (iorsi3): ... here.
10233         (*iorsi3_flags): New.
10234         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10235         (xorsi3): ... here.
10236         (*xorsi3_flags): New.
10237         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10238         (one_cmplsi2): ... here.
10239         (*one_cmplsi2_flags): New.
10240         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10241         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10242         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10243         use matching constraints to eliminate a self-comparison.
10244         (*integer_conditional_branch): Rename from integer_conditional_branch.
10245         Use int_mode_flags to match CC_REG.
10246         (*cbranchsi4_btst, *btstsi): New.
10247         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10248         mn10300_split_cbranch.
10249         (*am33_cmpsf): Rename from am33_cmpsf.
10250         (*float_conditional_branch): Rename from float_conditional_branch.
10251         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10252         (zero_extendqisi2): ... here.
10253         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10254         (zero_extendhisi2): ... here.
10255         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10256         (extendqisi2): ... here.
10257         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10258         (extendhisi2): ... here.
10259         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10260         (ashlsi3): ... here.
10261         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10262         (lshrsi3): ... here.
10263         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10264         (ashrsi3): ... here.
10265         (consecutive add peephole): Remove.
10266         * config/mn10300/predicates.md (label_ref_operand): New.
10267         (int_mode_flags): New.
10268         (CCZN_comparison_operator): New.
10269
10270         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10271         (throughput_42_latency_43): New reservation.
10272         (mulsidi3, umulsidi3): New expanders.
10273         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10274         the MDR register to allocation; separately allocate the low and
10275         high parts of the DImode result.
10276         (umulsidi3_internal): Similarly.
10277         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10278         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10279         (udivsi3, umodsi3): Remove.
10280         (udivmodsi4, divmodsi4): New expanders.
10281         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10282         (*divmodsi4): Simiarly.
10283         (ext_internal): New.
10284
10285         * config/mn10300/constraints.md ("z"): New constraint.
10286         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10287         (FIXED_REGISTERS): Don't fix MDR.
10288         (CALL_USED_REGSITERS): Reformat nicely.
10289         (REG_ALLOC_ORDER): Add MDR.
10290         (enum regclass): Add MDR_REGS.
10291         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10292         (IRA_COVER_CLASSES): Add MDR_REGS.
10293         (REGNO_REG_CLASS): Handle MDR_REG.
10294         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10295         (mn10300_register_move_cost): Likewise.
10296         * config/mn10300/mn10300.md (MDR_REG): New.
10297         (*movsi_internal): Handle moves to/from MDR_REGS.
10298
10299         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10300         POST_MODIFY.
10301         (mn10300_secondary_reload): Tidy combination reload classes.
10302         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10303         addresses for AM33.  Allow symbolic offsets for reg+imm.
10304         (mn10300_regno_in_class_p): New.
10305         (mn10300_legitimize_reload_address): New.
10306         * config/mn10300/mn10300.h (enum reg_class): Remove
10307         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10308         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10309         SP_OR_GENERAL_REGS.
10310         (REG_CLASS_NAMES): Update to match.
10311         (REG_CLASS_CONTENTS): Likewise.
10312         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10313         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10314         (REGNO_IN_RANGE_P): Remove.
10315         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10316         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10317         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10318         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10319         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10320         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10321         (REGNO_GENERAL_P): New.
10322         (HAVE_POST_MODIFY_DISP): New.
10323         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10324         (LEGITIMIZE_RELOAD_ADDRESS): New.
10325         * config/mn10300/mn10300-protos.h: Update.
10326
10327         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10328         DATA_REGS for AM33 stack-pointer destination.
10329         (mn10300_preferred_output_reload_class): Likewise.
10330         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10331         into a form appropriate for ...
10332         (TARGET_SECONDARY_RELOAD): New.
10333         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10334         * config/mn10300/mn10300-protos.h: Update.
10335         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10336         reload_insi; use the "A" constraint for the scratch; handle AM33
10337         moves of sp to non-address registers.
10338
10339         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10340         (*movqi_internal): ... here.
10341         (*am33_movhi, *mn10300_movhi): Merge into...
10342         (*movhi_internal): ... here.
10343         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10344         as the source/destination of moves from/to SP.
10345         (movsf): Only allow for AM33-2.
10346         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10347         any integer constant constraint.  Only allow for AM33-2.  Tidy
10348         all of the alternative outputs.
10349         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10350         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10351         for MN103.
10352         (udivsi3, umodsi3): New patterns for MN103 only.
10353
10354 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10355
10356         * doc/tm.texi.in: Spell out that a lack of register class unions
10357         can lead to ICEs.
10358         * doc/tm.texi: Regenerate.
10359
10360 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10361
10362         PR rtl-optimization/47337
10363         * dce.c (check_argument_store): New function.
10364         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10365
10366         PR tree-optimization/47290
10367         * tree-eh.c (infinite_empty_loop_p): New function.
10368         (cleanup_empty_eh): Use it.
10369
10370 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10371
10372         PR target/46997
10373         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10374         (a64_expand_widen_sum): Ditto.
10375         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10376         (vec_extract_evenodd_help): Ditto.
10377         (vec_extract_evenv4hi): Ditto.
10378         (vec_extract_oddv4hi): Ditto.
10379         (vec_extract_evenv2si): Ditto.
10380         (vec_extract_oddv2si): Ditto.
10381         (vec_extract_evenv2sf): Ditto.
10382         (vec_extract_oddv2sf): Ditto.
10383         (vec_pack_trunc_v4hi: Ditto.
10384         (vec_pack_trunc_v2si): Ditto.
10385         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10386         (vec_interleave_highv8qi): Ditto.
10387         (mix1_r): Ditto.
10388         (vec_extract_oddv8qi): Ditto.
10389         (vec_interleave_lowv4hi): Ditto.
10390         (vec_interleave_highv4hi): Ditto.
10391         (vec_interleave_lowv2si): Ditto.
10392         (vec_interleave_highv2si): Ditto.
10393
10394 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10395
10396         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10397         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10398         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10399         (pa_c_mode_for_suffix): New.
10400         (TARGET_EXPAND_BUILTIN): Define.
10401         (TARGET_C_MODE_FOR_SUFFIX): Define.
10402         (pa_builtins): Define.
10403         (pa_init_builtins): Register __float128 type and init new support
10404         builtins.
10405         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10406         * config/pa/quadlib.c (_U_Qfcopysign): New.
10407
10408 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10409
10410         PR middle-end/46894
10411         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10412         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10413         are defined.
10414
10415 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10416
10417         PR tree-optimization/47179
10418         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10419         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10420
10421 2011-01-18  Richard Guenther  <rguenther@suse.de>
10422
10423         PR rtl-optimization/47216
10424         * emit-rtl.c: Include tree-flow.h.
10425         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10426         of replicating it with different semantics.
10427         * Makefile.in (emit-rtl.o): Adjust.
10428
10429 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10430
10431         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10432         (cortex_a9_dp): Handle neon types correctly.
10433
10434 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10435
10436         PR rtl-optimization/47299
10437         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10438         subtarget.  Use normal multiplication if both operands are constants.
10439         * expmed.c (expand_widening_mult): Don't try to optimize constant
10440         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10441         before using it.
10442
10443 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10444
10445         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10446         spacing after 'e.g.', typos, comma, hyphenation.
10447
10448 2011-01-17  Richard Henderson  <rth@redhat.com>
10449
10450         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10451         (rx_restricted_mem_operand): New.
10452         (rx_shift_operand): Use register_operand.
10453         (rx_source_operand, rx_compare_operand): Likewise.
10454         * config/rx/rx.md (addsi3_flags): New expander.
10455         (adddi3): Rewrite as expander.
10456         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10457         (subsi3_flags): New expander.
10458         (subdi3): Rewrite as expander.
10459         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10460
10461         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10462         (rx_init_builtins): Remove sat builtin.
10463         (rx_expand_builtin): Likewise.
10464         * config/rx/rx.md (ssaddsi3): New.
10465         (*sat): Rename from sat.  Represent the CC_REG input.
10466
10467         * config/rx/predicates.md (rshift_operator): New.
10468         * config/rx/rx.c (rx_expand_insv): Remove.
10469         * config/rx/rx-protos.h: Update.
10470         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10471         operand to the canonical position.
10472         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10473         (*bitclr, *bitclr_in_memory): Similarly.
10474         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10475         (insv): Retain the zero_extract in the expansion.
10476
10477         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10478         (bswaphi2, bitinvert, revw): Likewise.
10479
10480         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10481         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10482         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10483         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10484         (bitset, bitset_in_memory): Likewise.
10485         (bitinvert, bitinvert_in_memory): Likewise.
10486         (bitclr, bitclr_in_memory): Likewise.
10487         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10488         (rx_strend, rx_cmpstrn): Likewise.
10489         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10490         (bitop peep2 patterns): Remove.
10491
10492         * config/rx/rx.c (rx_match_ccmode): New.
10493         * config/rx/rx-protos.h: Update.
10494         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10495         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10496         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10497         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10498         (fix_truncsfsi2, floatsisf2): Likewise.
10499         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10500         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10501         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10502         (*subsi3_flags, *xorsi3_flags): New.
10503
10504         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10505
10506         * config/rx/rx.c (rx_print_operand): Remove workaround for
10507         unsplit comparison operations.
10508
10509         * config/rx/rx.md (movsicc): Split after reload.
10510         (*movsicc): Merge *movsieq and *movsine via match_operator.
10511         (*stcc): New pattern.
10512
10513         * config/rx/rx.c (rx_float_compare_mode): Remove.
10514         * config/rx/rx.h (rx_float_compare_mode): Remove.
10515         * config/rx/rx.md (cstoresi4): Split after reload.
10516         (*sccc): New pattern.
10517
10518         * config/rx/predicates.md (label_ref_operand): New.
10519         (rx_z_comparison_operator): New.
10520         (rx_zs_comparison_operator): New.
10521         (rx_fp_comparison_operator): New.
10522         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10523         Validate that the flags are set properly for the comparison.
10524         (rx_gen_cond_branch_template): Remove.
10525         (rx_cc_modes_compatible): Remove.
10526         (mode_from_flags): New.
10527         (flags_from_code): Rename from flags_needed_for_conditional.
10528         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10529         (rx_select_cc_mode): Likewise.
10530         (rx_split_fp_compare): New.
10531         (rx_split_cbranch): New.
10532         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10533         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10534         (*cbranchsf4): Similarly.
10535         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10536         match_operator and rx_split_cbranch.
10537         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10538         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10539         (*cmpsi): Rename from cmpsi.
10540         (*tstsi): Rename from tstsi.
10541         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10542         (*conditional_branch): Rename from conditional_branch.
10543         (*reveresed_conditional_branch): Remove.
10544         (b<code>): Remove expander.
10545         * config/rx/rx-protos.h: Update.
10546
10547         * config/rx/rx.c (rx_compare_redundant): Remove.
10548         * config/rx/rx.md (cmpsi): Don't use it.
10549         * config/rx/rx-protos.h: Update.
10550
10551         * config/rx/rx-modes.def (CC_F): New mode.
10552         * config/rx/rx.c (rx_select_cc_mode): New.
10553         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10554         * config/rx/rx-protos.h: Update.
10555
10556 2011-01-17  Richard Henderson  <rth@redhat.com>
10557
10558         * except.c (dump_eh_tree): Fix stray ; after for statement.
10559
10560 2011-01-17  Richard Guenther  <rguenther@suse.de>
10561
10562         PR tree-optimization/47313
10563         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10564         handling before copying the body.  Properly deal with
10565         by-reference result in SSA form.
10566
10567 2011-01-17  Ian Lance Taylor  <iant@google.com>
10568
10569         PR target/47219
10570         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10571         (struct_value_alias_set): Don't define.
10572         (sparc_option_override): Don't set sparc_sr_alias_set and
10573         struct_value_alias_set.
10574         (save_or_restore_regs): Use gen_frame_mem rather than calling
10575         set_mem_alias_set.
10576         (sparc_struct_value_rtx): Likewise.
10577
10578 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10579
10580         PR target/47318
10581         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10582         (_mm_maskstore_pd): Likewise.
10583         (_mm_maskload_ps): Likewise.
10584         (_mm_maskstore_ps): Likewise.
10585         (_mm256_maskload_pd): Change mask to __m256i.
10586         (_mm256_maskstore_pd): Likewise.
10587         (_mm256_maskload_ps): Likewise.
10588         (_mm256_maskstore_ps): Likewise.
10589
10590         * config/i386/i386-builtin-types.def: Updated.
10591         (ix86_expand_special_args_builtin): Likewise.
10592
10593         * config/i386/i386.c (bdesc_special_args): Update
10594         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10595         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10596         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10597         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10598
10599         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10600         Use <avxpermvecmode> on mask register.
10601         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10602
10603 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10604             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10605             Eric Botcazou  <ebotcazou@adacore.com>
10606
10607         PR target/46655
10608         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10609         if <= USHRT_MAX in 32-bit mode.
10610
10611 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10612
10613         * doc/install.texi (Configuration, Specific): Wrap long
10614         lines in examples.  Allow line wrapping in long options
10615         and URLs where beneficial for PDF output.
10616
10617 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10618
10619         * config/mips/mips.c (mips_classify_symbol): Don't return
10620         SYMBOL_PC_RELATIVE for nonlocal labels.
10621
10622 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10623
10624         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10625
10626 2011-01-15  Jan Hubicka  <jh@suse.cz>
10627
10628         PR tree-optimization/47276
10629         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10630         declarations as needed.
10631
10632 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10633
10634         * common.opt (fdevirtualize): New flag.
10635         * doc/invoke.texi (Option Summary): Document it.
10636         * opts.c (default_options_table): Add devirtualize flag.
10637         * ipa-prop.c (detect_type_change): Return immediately if
10638         devirtualize flag is not set.
10639         (detect_type_change_ssa): Likewise.
10640         (compute_known_type_jump_func): Likewise.
10641         (ipa_analyze_virtual_call_uses): Likewise.
10642
10643 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10644
10645         PR tree-optimization/45934
10646         PR tree-optimization/46302
10647         * ipa-prop.c (type_change_info): New type.
10648         (stmt_may_be_vtbl_ptr_store): New function.
10649         (check_stmt_for_type_change): Likewise.
10650         (detect_type_change): Likewise.
10651         (detect_type_change_ssa): Likewise.
10652         (compute_complex_assign_jump_func): Check for dynamic type change.
10653         (compute_complex_ancestor_jump_func): Likewise.
10654         (compute_known_type_jump_func): Likewise.
10655         (compute_scalar_jump_functions): Likewise.
10656         (ipa_analyze_virtual_call_uses): Likewise.
10657         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10658
10659 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10660
10661         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10662         * config/i386/i386.opt (msse5): New Alias.
10663
10664 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10665
10666         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10667         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10668         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10669         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10670
10671 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10672
10673         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10674         -mcpu options.
10675         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10676         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10677         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10678         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10679         Likewise.
10680         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10681
10682 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10683
10684         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10685
10686 2011-01-14  Mike Stump  <mikestump@comcast.net>
10687
10688         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10689         * config/fr30/fr30.md: Likweise
10690         (movsi_push): Likewise.
10691         (movsi_pop): Likewise.
10692         (enter_func): Likewise.
10693         * config/moxie/moxie.md (movsi_push): Likewise.
10694         (movsi_pop): Likewise.
10695
10696 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10697
10698         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10699         %{no_archive} %{exact_version}.
10700         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10701         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10702         %{no_archive} %{exact_version}.
10703         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10704         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10705         * config/mips/vxworks.h: Likewise.
10706
10707 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10708
10709         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10710
10711 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10712
10713         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10714         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10715
10716 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10717
10718         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10719         -nodefaultlib.
10720
10721 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10722
10723         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10724         for mcpu not cpu.
10725         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10726         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10727         not cpu.
10728         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10729         Don't handle -shlib.
10730
10731 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10732
10733         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10734         (CC1_SPEC): Don't handle -profile.
10735
10736 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10737
10738         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10739         * config/mips/mips.h (CC1_SPEC): Likewise.
10740
10741 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10742
10743         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10744         * config/mips/mips.h (CC1_SPEC): Likewise.
10745
10746 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10747
10748         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10749         * config/m32r/linux.h (LINK_SPEC): Likewise.
10750         * config/mips/linux.h (LINK_SPEC): Likewise.
10751         * config/mips/linux64.h (LINK_SPEC): Likewise.
10752         * config/sparc/linux.h (LINK_SPEC): Likewise.
10753         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10754         LINK_SPEC): Likewise.
10755         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10756
10757 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10758
10759         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10760         %{version:-v}.
10761         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10762
10763 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10764
10765         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10766         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10767
10768 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10769
10770         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10771
10772 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10773
10774         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10775         supports -Bstatic/-Bdynamic.
10776         * configure: Regenerate.
10777
10778 2011-01-14  Jan Hubicka  <jh@suse.cz>
10779             Jack Howarth  <howarth@bromo.med.uc.edu>
10780
10781         PR target/46037
10782         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10783         when checking debug_info_level. Test write_symbols instead of
10784         debug_hooks->var_location when setting flag_var_tracking_uninit.
10785
10786 2011-01-14  Richard Guenther  <rguenther@suse.de>
10787
10788         PR tree-optimization/47179
10789         * target.def (ref_may_alias_errno): New target hook.
10790         * targhooks.h (default_ref_may_alias_errno): Declare.
10791         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10792         (default_ref_may_alias_errno): New function.
10793         * target.h (struct ao_ref_s): Declare.
10794         * tree-ssa-alias.c: Include target.h.
10795         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10796         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10797         (targhooks.o): Likewise.
10798         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10799         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10800
10801 2011-01-14  Richard Guenther  <rguenther@suse.de>
10802
10803         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10804
10805 2011-01-14  Richard Guenther  <rguenther@suse.de>
10806
10807         PR tree-optimization/47280
10808         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10809         return CFG changes.
10810         (tree_ssa_forward_propagate_single_use_vars): Deal with
10811         CFG changes from associate_plusminus.
10812
10813 2011-01-14  Richard Guenther  <rguenther@suse.de>
10814
10815         PR middle-end/47281
10816         Revert
10817         2011-01-11  Richard Guenther  <rguenther@suse.de>
10818
10819         PR tree-optimization/46076
10820         * tree-ssa.c (useless_type_conversion_p): Conversions from
10821         unprototyped to empty argument list function types are useless.
10822
10823 2011-01-14  Richard Guenther  <rguenther@suse.de>
10824
10825         PR tree-optimization/47286
10826         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10827
10828 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10829
10830         PR middle-end/46823
10831         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10832
10833 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10834
10835         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10836         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10837         * config/xtensa/xtensa.c (xtensa_libcall_value,
10838         xtensa_function_value_regno_p): New functions.
10839         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10840
10841 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10842
10843         PR c++/47213
10844         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10845         PE specific hook.
10846         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10847         New function prototype.
10848         * config/i386/winnt.c (i386_pe_assemble_visibility):
10849         Warn only if attribute was specified by user.
10850
10851 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10852
10853         PR target/47251
10854         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10855         floating point.
10856         (floatunsdidf2_fcfidu): Ditto.
10857
10858 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10859
10860         * config/s390/s390.c (print_operand_address): Replace 'error' with
10861         'output_operand_lossage'.
10862         (print_operand): Likewise.
10863
10864 2011-01-13  Jeff Law  <law@redhat.com>
10865
10866         PR rtl-optimization/39077
10867         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10868         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10869         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10870         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10871         * gcse.c (prune_insertions_deletions): New function.
10872         (compute_pre_data): Use it.
10873
10874 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10875
10876         PR debug/PR46973
10877         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10878         static function.
10879         (prune_unused_types_mark): Use it.
10880
10881 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10882
10883         PR rtl-optimization/45352
10884         * sel-sched.c: Update copyright years.
10885         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10886         in the advancing loop when we have issued issue_rate insns.
10887
10888 2011-01-12  Richard Henderson  <rth@redhat.com>
10889
10890         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10891         (TARGET_MD_ASM_CLOBBERS): New.
10892
10893         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10894         (TARGET_DELEGITIMIZE_ADDRESS): New.
10895
10896         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10897         (clzsi2, *bsch): New patterns.
10898
10899         * config/mn10300/mn10300.md (INT): New mode iterator.
10900         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10901
10902         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10903         flag_split_wide_types.
10904
10905         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10906         (mn10300_trampoline_init): Rewrite without a template, an immediate
10907         load and a direct branch.
10908         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10909
10910 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10911
10912         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10913         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10914         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10915         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10916
10917 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10918
10919         PR debug/47209
10920         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10921         of type.
10922
10923 2011-01-12  Jan Hubicka  <jh@suse.cz>
10924
10925         PR driver/47244
10926         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
10927         (PLUGIN_COND_CLOSE): New macro.
10928         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
10929
10930 2011-01-12  Richard Guenther  <rguenther@suse.de>
10931
10932         PR lto/47259
10933         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
10934         register variables in a MEM_REF.
10935
10936 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
10937
10938         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
10939         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
10940         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
10941         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10942         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10943         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
10944         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
10945         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
10946         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
10947         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
10948         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
10949         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
10950         * config/gnu-user.h: New.  Copied from linux.h.
10951         (LINUX_TARGET_STARTFILE_SPEC): Rename to
10952         GNU_USER_TARGET_STARTFILE_SPEC.
10953         (LINUX_TARGET_ENDFILE_SPEC): Rename to
10954         GNU_USER_TARGET_ENDFILE_SPEC.
10955         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
10956         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
10957         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
10958         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
10959         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
10960         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
10961         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
10962         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
10963         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
10964         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
10965         * config/arm/linux-eabi.h (CC1_SPEC): Use
10966         GNU_USER_TARGET_CC1_SPEC.
10967         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
10968         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
10969         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
10970         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
10971         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
10972         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
10973         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
10974         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
10975
10976 2011-01-12  Richard Guenther  <rguenther@suse.de>
10977
10978         PR other/46946
10979         * doc/invoke.texi (ffast-math): Document it is turned on
10980         with -Ofast.
10981
10982 2011-01-12  Jan Hubicka  <jh@suse.cz>
10983
10984         PR tree-optimization/47233
10985         * opts.c (common_handle_option): Disable ipa-reference with profile
10986         feedback.
10987
10988 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10989
10990         * c-parser.c (c_parser_objc_at_property_declaration): Improved
10991         error message.
10992
10993 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
10994
10995         * c-parser.c (c_lex_one_token): Updated and reindented some
10996         comments.  No changes in code.
10997
10998 2011-01-11  Ian Lance Taylor  <iant@google.com>
10999
11000         * godump.c (go_output_var): Don't output the variable if there is
11001         already a type with the same name.
11002
11003 2011-01-11  Ian Lance Taylor  <iant@google.com>
11004
11005         * godump.c (go_format_type): Don't generate float80.
11006
11007 2011-01-11  Richard Henderson  <rth@redhat.com>
11008
11009         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11010         declaration.  Rewrite for both speed and size.
11011         (mn10300_address_cost_1): Remove.
11012         (mn10300_register_move_cost): New.
11013         (mn10300_memory_move_cost): New.
11014         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11015         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11016         extensions, shifts, BSWAP, CLZ.
11017         (mn10300_wide_const_load_uses_clr): Remove.
11018         (TARGET_REGISTER_MOVE_COST): New.
11019         (TARGET_MEMORY_MOVE_COST): New.
11020         * config/mn10300/mn10300-protos.h: Update.
11021         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11022
11023         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11024         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11025         * config/mn10300/mn10300-protos.h: Update.
11026         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11027         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11028         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11029         (*test_int_bitfield, *test_byte_bitfield): Remove.
11030         (*bit_test, *subreg_bit_test): Remove.
11031         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11032
11033         * config/mn10300/constraints.md ("c"): Rename from "A".
11034         ("A", "D"): New constraint letters.
11035         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11036         (fmssf4, fnmasf4, fnmssf4): Likewise.
11037
11038         * config/mn10300/mn10300.md (isa): New attribute.
11039         (enabled): New attribute.
11040
11041         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11042         (abssf2, negsf2): Define only for hardware fp.
11043         (sqrtsf2): Reformat.
11044         (addsf3, subsf3, mulsf3): Merge expander and insn.
11045
11046         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11047         (DEBUGGER_AUTO_OFFSET): Remove.
11048         (DEBUGGER_ARG_OFFSET): Remove.
11049
11050         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11051         Emit register stores with the same offsets as the hardware.
11052         (mn10300_store_multiple_operation): Don't check that the register
11053         save offsets are monotonic.
11054         * config/mn10300/mn10300-protos.h: Update.
11055
11056         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11057
11058         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11059         in terms of the value on the stack, not the MDR register.
11060
11061 2011-01-11  Jan Hubicka  <jh@suse.cz>
11062
11063         PR lto/45721
11064         PR lto/45375
11065         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11066         (symbol_alias_set_destroy, symbol_alias_set_contains,
11067         propagate_aliases_backward): Declare.
11068         * lto-streamer-out.c (struct sets): New sturcture.
11069         (trivally_defined_alias): New function.
11070         (output_alias_pair_p): Rewrite.
11071         (output_unreferenced_globals): Fix output of alias pairs.
11072         (produce_symtab): Likewise.
11073         * ipa.c (function_and_variable_visibility): Set weak alias destination
11074         as needed in lto.
11075         * varasm.c (symbol_alias_set_t): Remove.
11076         (symbol_alias_set_destroy): Export.
11077         (propagate_aliases_forward, propagate_aliases_backward): New functions
11078         based on ...
11079         (compute_visible_aliases): ... this one; remove.
11080         (trivially_visible_alias): New
11081         (trivially_defined_alias): New.
11082         (remove_unreachable_alias_pairs): Rewrite.
11083         (finish_aliases_1): Reorganize code checking if alias is defined.
11084         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11085         in LTO mode.
11086
11087 2011-01-11  Richard Guenther  <rguenther@suse.de>
11088
11089         PR tree-optimization/46076
11090         * tree-ssa.c (useless_type_conversion_p): Conversions from
11091         unprototyped to empty argument list function types are useless.
11092
11093 2011-01-11  Richard Guenther  <rguenther@suse.de>
11094
11095         PR middle-end/45235
11096         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11097         volatile MEMs as MEM_READONLY_P.
11098
11099 2011-01-11  Richard Guenther  <rguenther@suse.de>
11100
11101         PR tree-optimization/47239
11102         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11103
11104 2011-01-11  Jeff Law  <law@redhat.com>
11105
11106         PR tree-optimization/47086
11107         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11108         IVs from statements that might throw.
11109
11110 2011-01-10  Jan Hubicka  <jh@suse.cz>
11111
11112         PR lto/45375
11113         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11114
11115 2011-01-10  Jan Hubicka  <jh@suse.cz>
11116
11117         PR lto/45375
11118         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11119         when correcting profile.
11120
11121 2011-01-10  Jan Hubicka  <jh@suse.cz>
11122
11123         PR lto/46083
11124         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11125         DECL_FINI_PRIORITY.
11126         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11127         Restore DECL_FINI_PRIORITY.
11128
11129 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11130
11131         * doc/gimple.texi: Fix quoting of multi-word return values in
11132         @deftypefn statements.  Ensure presence of return value.  Wrap
11133         overlong @deftypefn lines.
11134         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11135         descriptions of removed functions.
11136         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11137         of multi-word return value in @deftypefn statement.
11138
11139 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11140
11141         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11142         (Conditional Expressions, Logical Operators)
11143         (Statement and operand traversals): Do not indent smallexample
11144         code.  Fix duplicate function argument in example.
11145
11146 2011-01-10  Jeff Law  <law@redhat.com>
11147
11148         PR tree-optimization/47141
11149         * ipa-split.c (split_function): Handle case where we are
11150         returning a value and the return block has a virtual operand phi.
11151
11152 2011-01-10  Jan Hubicka  <jh@suse.cz>
11153
11154         PR tree-optimization/47234
11155         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11156         (pass_feedback_split_functions): Declare.
11157         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11158         tree-profile.
11159         * ipa-split.c (gate_split_functions): Update comments; disable
11160         split-functions for profile_arc_flag and branch_probabilities.
11161         (gate_feedback_split_functions): New function.
11162         (execute_feedback_split_functions): New function.
11163         (pass_feedback_split_functions): New global var.
11164
11165 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11166
11167         PR lto/46760
11168         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11169         calling gimple_call_set_cannot_inline.
11170
11171 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11172
11173         * config/darwin-sections.def: Remove unused section.
11174
11175 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11176
11177         PR c++/47218
11178         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11179
11180 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11181
11182         PR objc/47232
11183         * c-parser.c (c_parser_declaration_or_fndef): Improved
11184         error message.
11185
11186 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11187
11188         * config/i386/winnt.c (i386_pe_start_function): Make sure
11189         to switch back to function's section.
11190
11191 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11192
11193         PR gcc/46902
11194         PR testsuite/46912
11195         * plugin.c: Move include of dlfcn.h from here...
11196         * system.h: ... to here.
11197
11198 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11199
11200         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11201         file name.
11202         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11203         two extra empty pages in PDF output.
11204
11205 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11206
11207         PR objc/47078
11208         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11209         for error recovery purposes behave as if it was not specified so
11210         that the default type is usd.
11211
11212 2011-01-07  Jan Hubicka  <jh@suse.cz>
11213
11214         PR tree-optmization/46469
11215         * ipa.c (function_and_variable_visibility): Clear needed flags on
11216         nodes with external decls; handle weakrefs merging correctly.
11217
11218 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11219
11220         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11221         not false.
11222
11223 2011-01-07  Jan Hubicka  <jh@suse.cz>
11224
11225         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11226         and no longer claim that gold is required for linker plugin.
11227         * configure: Regenerate.
11228         * gcc.c (PLUGIN_COND): New macro.
11229         (LINK_COMMAND_SPEC): Use it.
11230         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11231         * config.in (HAVE_LTO_PLUGIN): New.
11232         * configure.ac (--with-lto-plugin): New parameter; autodetect
11233         HAVE_LTO_PLUGIN.
11234
11235 2011-01-07  Jan Hubicka  <jh@suse.cz>
11236
11237         PR tree-optimization/46367
11238         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11239         when we can update original.
11240         (cgraph_mark_inline_edge): Sanity check.
11241         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11242
11243 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11244
11245         * config/spu/spu.h (ASM_COMMENT_START): Define.
11246
11247 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11248
11249         PR driver/42445
11250         * gcc.c (%>S): New.
11251         (SWITCH_KEEP_FOR_GCC): Likewise.
11252         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11253         (do_spec_1): Handle "%>".
11254
11255         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11256
11257 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11258
11259         PR target/47201
11260         * config/i386/i386.c (ix86_delegitimize_address): If
11261         simplify_gen_subreg fails, return orig_x.
11262
11263         PR bootstrap/47187
11264         * value-prof.c (gimple_stringop_fixed_value): Handle
11265         lhs of the call properly.
11266
11267 2011-01-07  Jan Hubicka  <jh@suse.cz>
11268
11269         PR lto/45375
11270         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11271
11272 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11273
11274         * target.def (function_switched_text_sections): New hook.
11275         * doc/tm.texi: Regenerated.
11276         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11277         * final.c (default_function_switched_text_sections): New.
11278         (final_scan_insn): Call function_switched_text_sections when a
11279         mid-function section change occurs.
11280         * output.h (default_function_switched_text_sections): Declare.
11281         * config/darwin-protos.h (darwin_function_switched_text_sections):
11282         Likewise.
11283         * config/darwin.c (darwin_function_switched_text_sections): New.
11284         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11285
11286 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11287
11288         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11289         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11290         the secondary code fragment when outputting for DWARF == 2.
11291
11292 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11293
11294         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11295         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11296         Remove.
11297         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11298         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11299
11300 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11301
11302         PR debug/46704
11303         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11304         when it is not empty.
11305
11306 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11307
11308         Bobcat Enablement
11309         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11310         (case ${target}): Add btver1.
11311         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11312         -march=native recognize btver1 processors.
11313         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11314         btver1 def_and_undef
11315         * config/i386/i386.c (struct processor_costs btver1_cost): New
11316         btver1 cost table.
11317         (m_BTVER1): New definition.
11318         (m_AMD_MULTIPLE): Includes m_BTVER1.
11319         (initial_ix86_tune_features): Add btver1 tune.
11320         (processor_target_table): Add btver1 entry.
11321         (static const char *const cpu_names): Add btver1 entry.
11322         (software_prefetching_beneficial_p): Add btver1.
11323         (ix86_option_override_internal): Add btver1 instruction sets.
11324         (ix86_issue_rate): Add btver1.
11325         (ix86_adjust_cost): Add btver1.
11326         * config/i386/i386.h (TARGET_BTVER1): New definition.
11327         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11328         (enum processor_type): Add PROCESSOR_BTVER1.
11329         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11330
11331 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11332
11333         PR target/43309
11334         * config/i386/i386.c (legitimize_tls_address)
11335         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11336         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11337         (tls_initial_exec_64_sun): New pattern.
11338
11339 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11340
11341         * doc/invoke.texi (Overall Options): Improve wording and markup
11342         of the description of -wrapper.
11343
11344 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11345
11346         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11347         rdynamic, threads): New Driver options.
11348
11349 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11350
11351         PR target/38118
11352         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11353         if coming from .tdata.
11354         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11355
11356 2011-01-06  Jan Hubicka  <jh@suse.cz>
11357
11358         PR lto/47188
11359         * collect2.c (main): Do not enable LTOmode when plugin is active.
11360
11361 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11362
11363         PR other/45915
11364         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11365         --version output if supported.
11366         * configure: Regenerate.
11367
11368 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11369
11370         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11371         Driver options.
11372
11373 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11374
11375         PR c/47150
11376         * c-convert.c (convert): When converting a complex expression
11377         other than COMPLEX_EXPR to a different complex type, ensure
11378         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11379         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11380         when converting COMPLEX_TYPE.
11381
11382 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11383
11384         PR tree-optimization/47139
11385         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11386         only the last reduction value is used outside the loop.  Update
11387         documentation.
11388
11389 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11390
11391         * config/rtems.opt: New.
11392         * config.gcc (*-*-rtems*): Use rtems.opt.
11393
11394 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11395
11396         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11397         processors do not support 3DNow instructions.
11398
11399 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11400
11401         * config/spu/spu.c (spu_option_override): Set parameter
11402         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11403
11404 2011-01-05  Jan Hubicka  <jh@suse.cz>
11405
11406         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11407         at the command line.
11408
11409 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11410
11411         PR lto/47162
11412         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11413         deltas on streamed outgoing edges.
11414         (output_node_opt_summary): Output info for outgoing edges only when
11415         the node is in new parameter set.
11416         (output_cgraph_opt_summary): New parameter set, passed to the two
11417         aforementioned functions.  Update its forward declaration and its
11418         callee too.
11419
11420 2011-01-05  Tom Tromey  <tromey@redhat.com>
11421
11422         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11423         operator to c_finish_omp_atomic.
11424         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11425         (build_unary_op): Update.
11426         (build_modify_expr): Update.
11427         (build_asm_expr): Update.
11428
11429 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11430
11431         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11432         newly inserted insns.
11433         (pad_bb): Likewise.
11434         (spu_emit_branch_hint): Likewise.
11435         (insert_hbrp_for_ilb_runout): Likewise.
11436         (spu_machine_dependent_reorg): Call df_finish_pass after
11437         schedule_insns returns.
11438
11439 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11440
11441         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11442
11443 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11444
11445         PR tree-optimization/47005
11446         * tree-sra.c (struct access): Add 'non_addressable' bit.
11447         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11448         (decide_one_param_reduction): Return 0 if the parameter is passed by
11449         reference and one of the accesses in the group is non_addressable.
11450
11451 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11452
11453         PR tree-optimization/47056
11454         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11455         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11456         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11457
11458 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11459
11460         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11461         initializer.  Skip view conversions from aggregate types.
11462
11463 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11464
11465         PR bootstrap/47055
11466         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11467
11468 2011-01-04  Philipp Thomas  <pth@suse.de>
11469
11470         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11471         obvious typo.
11472
11473 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11474
11475         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11476         on empty epilogue sequences.
11477
11478 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11479
11480         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11481         non-static): New Driver options.
11482
11483 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11484
11485         PR driver/47137
11486         * gcc.c (default_compilers[]): Set combinable field to 0
11487         for all assembly languages.
11488
11489 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11490
11491         * config/mips/loongson3a.md: New file.
11492         * config/mips/mips.md: Include loongson3a.md.
11493         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11494         TUNE_LOONGSON_3A.
11495
11496 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11497
11498         PR middle-end/47017
11499         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11500         instead of convert_memory_address_addr_space on the base expression.
11501
11502 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11503
11504         * config/spu/spu.c (spu_option_override): Update error text
11505         for bad -march= / -mtune= values.
11506
11507 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11508
11509         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11510         if branch-hint optimization will be performed.
11511
11512 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11513
11514         PR tree-optimization/47148
11515         * ipa-split.c (split_function): Convert arguments to
11516         DECL_ARG_TYPE if possible.
11517
11518         PR tree-optimization/47155
11519         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11520         when computing uns.
11521
11522         PR rtl-optimization/47157
11523         * combine.c (try_combine): If undobuf.other_insn becomes
11524         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11525         and set *new_direct_jump_p too.
11526
11527 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11528
11529         PR tree-optimization/47021
11530         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11531
11532 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11533
11534         * gcc.c (process_command): Update copyright notice dates.
11535         * gcov.c (print_version): Likewise.
11536         * gcov-dump.c (print_version): Likewise.
11537         * mips-tfile.c (main): Likewise.
11538         * mips-tdump.c (main): Likewise.
11539
11540 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11541
11542         PR tree-optimization/46801
11543         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11544         aggregate fields start at byte boundary instead of the bit-field flag.
11545
11546 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11547
11548         PR driver/47137
11549         * gcc.c (main): Revert revision 168407.
11550
11551 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11552
11553         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11554
11555 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11556
11557         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11558         vector optab to expand vector/scalar shift, update gimple to vector.
11559
11560 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11561
11562         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11563         a thunk.
11564
11565 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11566
11567         PR tree-optimization/46984
11568         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11569         HOST_WIDE_INT.
11570         (cgraph_create_indirect_edge): Fixed line length.
11571         (cgraph_indirect_call_info): Declare.
11572         (cgraph_make_edge_direct) Update declaration.
11573         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11574         (cgraph_create_indirect_edge): Use it.
11575         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11576         callees.
11577         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11578         the new thunk_delta representation.
11579         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11580         HOST_WIDE_INT.
11581         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11582         (ipa_read_indirect_edge_info): Likewise.
11583         * lto-cgraph.c (output_edge_opt_summary): New function.
11584         (output_node_opt_summary): Call it on all outgoing edges.
11585         (input_edge_opt_summary): New function.
11586         (input_node_opt_summary): Call it on all outgoing edges.
11587
11588 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11589
11590         PR driver/47137
11591         * gcc.c (main): Don't check have_o when settting combine_inputs.
11592
11593 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11594
11595         * regrename.c: Add general comment describing the pass.
11596         (struct du_head): Remove 'length' field.
11597         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11598         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11599         Force renaming to the preferred class (if any) in the first pass and do
11600         not consider registers that belong to it in the second pass.
11601         (create_new_chain): Do not set 'length' field.
11602         (scan_rtx_reg): Likewise.
11603
11604 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11605
11606         PR tree-optimization/47140
11607         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11608         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11609         to bit_value_binop.
11610
11611         PR rtl-optimization/47028
11612         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11613         parm_birth_insn instead of at the beginning of first bb.
11614
11615 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11616
11617         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11618         Remove the word "see" before "@pxref".
11619         * doc/rtl.texi: Remove the word "see" before "@pxref".
11620
11621 2011-01-01  Jan Hubicka  <jh@suse.cz>
11622
11623         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11624         memory.
11625
11626 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11627
11628         PR target/38662
11629         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11630
11631 \f
11632 Copyright (C) 2011 Free Software Foundation, Inc.
11633
11634 Copying and distribution of this file, with or without modification,
11635 are permitted in any medium without royalty provided the copyright
11636 notice and this notice are preserved.