OSDN Git Service

PR c/36750
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
2
3         PR c/36750
4         * c-typeck.c (pop_init_level): Do not warn about initializing
5         with ` = {0}'.
6
7 2011-04-22  Alan Modra  <amodra@gmail.com>
8
9         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10         when returning call_cookie.
11         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
12         pointers, to functions with no more vector args than the current
13         function, and some non-local calls for ABI_V4.
14         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
15         sibcall_nonlocal_aix64): Combine to ..
16         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
17         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
18         (sibcall_value_nonlocal_aix<mode>): ..likewise.
19         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
20         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
21         operand.
22         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
23         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
24         sibcall_value_symbolic_64): Delete.
25
26 2011-04-21  Xinliang David Li  <davidxl@google.com>
27
28         * cgraph.h: Remove pid.
29         * cgraph.c: Remove pid.
30         * value-prof.c (init_node_map): New function.
31         (del_node_map): New function.
32         (find_func_by_funcdef_no): New function.
33         (gimple_ic_transform): Call new function.
34         * cgraphunit.c (cgraph_finalize_function): Remove pid.
35         * function.c (get_last_funcdef_no): New function.
36         * function.h (get_last_funcdef_no): New function.
37         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
38         to libgcov function.
39         (tree-profiling): Call node map init and delete function.
40
41 2011-04-21  Ian Lance Taylor  <iant@google.com>
42
43         * godump.c (go_format_type): Use exported Go name for anonymous
44         field name.
45
46 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
47
48         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
49         Call builtin_function_type_list instead of builtin_function_type.
50         (UNARY, BINARY, TRINARY, QUAD): Likewise.
51
52 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
53
54         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
55         build_function_type_list instead of build_function_type.
56         Delete variable `endlink'.
57
58 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
59
60         * config/s390/s390.c (s390_init_builtins): Call
61         build_function_type_list instead of build_function_type.
62
63 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
64
65         * config/ia64/ia64.c (ia64_init_builtins): Call
66         build_function_type_list instead of builtin_function_type.
67
68 2011-04-21  Easwaran Raman  <eraman@google.com>
69
70         * cfgexpand.c (stack_var): Remove OFFSET...
71         (add_stack_var): ...and its reference here...
72         (expand_stack_vars): ...and here.
73         (stack_var_cmp): Sort by descending order of size.
74         (partition_stack_vars): Change heuristic.
75         (union_stack_vars): Fix to reflect changes in
76         partition_stack_vars.
77         (dump_stack_var_partition): Add newline after each partition.
78
79 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
80             Jeff Law  <law@redhat.com>
81
82         * gengtype-state.c (read_a_state_token): Fix argument to
83         obstack_free.
84         * gengtype.c (matching_file_name_substitute): Likewise.
85
86 2011-04-21  Richard Guenther  <rguenther@suse.de>
87
88         PR lto/48703
89         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of
90         DECL_NAME.
91
92 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
93
94         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
95
96 2011-04-21  Richard Guenther  <rguenther@suse.de>
97
98         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
99         file name.
100
101 2011-04-21  Richard Guenther  <rguenther@suse.de>
102
103         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
104         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
105         Use DECL_P, not SSA_VAR_P.
106         (ptr_derefs_may_alias_p): Likewise.
107         (ptr_deref_may_alias_ref_p_1): Likewise.
108         (decl_refs_may_alias_p): Likewise.
109         (refs_may_alias_p_1): Likewise.
110         (ref_maybe_used_by_call_p_1): Likewise.
111         (call_may_clobber_ref_p_1): Likewise.
112         (indirect_ref_may_alias_decl_p): Assume indirect refrences
113         are either MEM_REF or TARGET_MEM_REF.
114         (indirect_refs_may_alias_p): Likewise.
115         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
116         for MEM_EXPR of indirect calls.
117
118 2011-04-21  Tristan Gingold  <gingold@adacore.com>
119
120         * vmsdbgout.c (write_srccorr): Compute file length from the string.
121         (dst_file_info_struct): Remove flen field.
122         (lookup_filename): Remove code that set flen field.
123
124 2011-04-21  Tristan Gingold  <gingold@adacore.com>
125
126         * config/ia64/ia64.c (ia64_start_function): Add a guard.
127
128 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
129
130         PR target/48708
131         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
132         vec_extract and vec_concat for non-SSE4_1 targets.
133
134 2011-04-21  Richard Guenther  <rguenther@suse.de>
135
136         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
137         return statements.
138
139 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
140
141         * config/i386/cygming.h (union tree_node, TREE): Don't define or
142         undefine.
143         (FILE): Don't undefine.
144
145 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
146
147         * config/alpha/alpha.c (struct machine_function): Use rtx, not
148         struct rtx_def *.
149         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
150         struct rtx_def *.
151         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
152         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
153         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
154         rtx_def *.
155         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
156         definitions where used.
157         * config/microblaze/microblaze.h (struct microblaze_args): Use
158         rtx, not struct rtx_def *.
159         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
160         rtx_def *.
161         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
162         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
163         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
164         not struct rtx_def *.
165         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
166         struct rtx_def *.
167         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
168         rtx_def *.
169         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
170
171 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
172
173         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
174         operand_equal_p to compare DR_BASE_ADDRESSes.
175         (vect_check_interleaving): Likewise.
176
177 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
178
179         PR target/46329
180         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
181         for all Neon struct constants.
182
183 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
184
185         * target.def (legitimate_constant_p): New hook.
186         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
187         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
188         * doc/tm.texi: Regenerate.
189         * hooks.h (hook_bool_mode_rtx_true): Declare.
190         * hooks.c (hook_bool_mode_rtx_true): Define.
191         * system.h (LEGITIMATE_CONSTANT_P): Poison.
192         * calls.c (precompute_register_parameters): Replace uses of
193         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
194         (emit_library_call_value_1): Likewise.
195         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
196         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
197         * ira-costs.c (scan_one_insn): Likewise.
198         * recog.c (general_operand, immediate_operand): Likewise.
199         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
200         * reload1.c (init_eliminable_invariants): Likewise.
201
202         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
203         mode argument.
204         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
205         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
206         argument.
207         (TARGET_LEGITIMATE_CONSTANT_P): Define.
208         * config/alpha/predicates.md (input_operand): Update call to
209         alpha_legitimate_constant_p.
210
211         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
212         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
213         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
214         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
215         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
216         (arm_legitimate_constant_p): New functions.
217         (arm_cannot_force_const_mem): Make static.
218
219         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
220
221         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
222         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
223         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
224         instead of bfin_legitimate_constant_p.
225         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
226         (TARGET_LEGITIMATE_CONSTANT_P): Define.
227
228         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
229
230         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
231
232         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
233         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
234         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
235         (frv_legitimate_constant_p): Make static.  Add a mode argument.
236
237         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
238         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
239         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
240
241         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
242         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
243         * config/i386/i386.c (legitimate_constant_p): Rename to...
244         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
245         argument.
246         (ix86_cannot_force_const_mem): Update accordingly.
247         (ix86_legitimate_address_p): Likewise.
248         (TARGET_LEGITIMATE_CONSTANT_P): Define.
249         * config/i386/i386.md: Update commentary.
250
251         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
252         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
253         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
254         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
255
256         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
257
258         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
259         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
260         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
261         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
262
263         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
264         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
265         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
266
267         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
268         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
269         (m32r_legitimate_constant_p): New function.
270
271         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
272         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
273         LEGITIMATE_CONSTANT_P.
274         (LEGITIMATE_CONSTANT_P): Delete.
275         * config/m68k/m68k.c (m68k_expand_prologue): Call
276         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
277         (m68k_legitimate_constant_p): New function.
278         * config/m68k/m68k.md: Update comments.
279
280         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
281         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
282         (mcore_legitimate_constant_p): New function.
283
284         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
285         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
286         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
287         Add a mode argument.
288         (mep_legitimate_address): Update accordingly.
289         (TARGET_LEGITIMATE_CONSTANT_P): Define.
290
291         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
292         Delete.
293         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
294         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
295         static.  Check OP's mode for VOIDmode.
296         (microblaze_legitimate_constant_p): New function.
297         (TARGET_LEGITIMATE_CONSTANT_P): Define.
298
299         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
300         * config/mips/mips.c (mips_legitimate_constant_p): New function.
301         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
302         (TARGET_LEGITIMATE_CONSTANT_P): Define.
303         * config/mips/predicates.md: Update comments.
304
305         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
306         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
307         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
308         (mmix_legitimate_constant_p): Make static, return a bool, and take
309         a mode argument.
310         (mmix_print_operand_address): Update accordingly.
311
312         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
313         Delete.
314         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
315         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
316         static.  Add a mode argument.
317         (TARGET_LEGITIMATE_CONSTANT_P): Define.
318
319         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
320
321         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
322         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
323         (pa_legitimate_constant_p): New function.
324
325         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
326
327         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
328         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
329         (pdp11_legitimate_constant_p): New function.
330
331         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
332         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
333         (rs6000_legitimate_constant_p): New function.
334
335         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
336         (rx_legitimate_constant_p): ...this.
337         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
338         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
339         (rx_legitimate_constant_p): ...this.
340         (TARGET_LEGITIMATE_CONSTANT_P): Define.
341         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
342
343         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
344         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
345         * config/s390/s390.c (legitimate_constant_p): Rename to...
346         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
347         and add a mode argument.
348         (TARGET_LEGITIMATE_CONSTANT_P): Define.
349
350         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
351
352         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
353         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
354         (sh_legitimate_constant_p): New function.
355
356         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
357         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
358         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
359         (legitimate_constant_p): Rename to...
360         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
361         argument.
362         (constant_address_p): Update accordingly.
363
364         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
365         argument and return a bool.
366         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
367         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
368         (spu_legitimate_constant_p): Add a mode argument and return a bool.
369         (spu_rtx_costs): Update accordingly.
370         * config/spu/predicates.md (vec_imm_operand): Likewise.
371
372         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
373
374         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
375         * config/v850/v850.c (v850_legitimate_constant_p): New function.
376         (TARGET_LEGITIMATE_CONSTANT_P): Define.
377
378         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
379         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
380         * config/vax/vax.c (legitimate_constant_p): Likewise.
381
382         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
383         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
384         (xtensa_legitimate_constant_p): New function.
385
386 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
387
388         * target.def (cannot_force_const_mem): Add a mode argument.
389         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
390         * doc/tm.texi: Regenerate.
391         * hooks.h (hook_bool_mode_rtx_false): Declare.
392         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
393         (hook_bool_mode_const_rtx_true): Likewise.
394         (hook_bool_mode_rtx_false): New function.
395         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
396         to be non-VOID.  Update call to cannot_force_const_mem.
397         (find_reloads): Update accordingly.
398         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
399         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
400         argument.
401         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
402         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
403         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
404         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
405         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
406         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
407         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
408         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
409         (m68k_cannot_force_const_mem): ...this new function.
410         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
411         argument.
412         (mips_const_insns, mips_legitimize_const_move): Update calls.
413         (mips_secondary_reload_class): Likewise.
414         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
415         (pa_cannot_force_const_mem): ...this new function.
416         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
417         (rs6000_cannot_force_const_mem): ...this new function.
418         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
419         argument.
420         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
421         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
422         to...
423         (xtensa_cannot_force_const_mem): ...this new function.
424
425 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
426
427         * config/mips/mips.c (mips16_build_function_stub): Call
428         build_function_type_list instead of build_function_type.
429         (mips16_build_call_stub): Likewise.
430
431 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
432
433         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
434         instead of build_function_type.
435
436 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
437
438         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
439         instead of build_function_type.
440
441 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
442
443         PR target/48678
444         * config/i386/i386.md (insv): Change operand 0 constraint to
445         "register_operand".  Change operand 1 and 2 constraint to
446         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
447         * config/i386/sse.md (sse4_1_pinsrb): Export.
448         (sse2_pinsrw): Ditto.
449         (sse4_1_pinsrd): Ditto.
450         (sse4_1_pinsrq): Ditto.
451         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
452         * config/i386/i386.c (ix86_expand_pinsr): New.
453
454 2011-04-20  Easwaran Raman  <eraman@google.com>
455
456         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
457         containing union type only with -fstrict-aliasing.
458
459 2011-04-20  Jim Meyering  <meyering@redhat.com>
460
461         Remove useless if-before-free tests.
462         * calls.c (expand_call, save_area): Likewise.
463         * cfgcleanup.c (try_forward_edges): Likewise.
464         * collect2.c (collect_execute): Likewise.
465         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
466         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
467         * coverage.c (coverage_checksum_string): Likewise.
468         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
469         * cselib.c (cselib_init): Likewise.
470         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
471         (df_set_clean_cfg): Likewise.
472         * function.c (free_after_compilation): Likewise.
473         * gcc.c (do_spec_1, main): Likewise.
474         * gcov.c (create_file_names): Likewise.
475         * gensupport.c (identify_predicable_attribute): Likewise.
476         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
477         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
478         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
479         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
480         * ipa-pure-const.c (local_pure_const): Likewise.
481         * ipa-reference.c (propagate): Likewise.
482         * ira-costs.c (free_ira_costs): Likewise.
483         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
484         * matrix-reorg.c (mat_free): Likewise.
485         * prefix.c (get_key_value): Likewise.
486         * profile.c (compute_value_histograms): Likewise.
487         * reload1.c (free_reg_equiv): Likewise.
488         * sched-deps.c (free_deps): Likewise.
489         * sel-sched-ir.c (fence_clear): Likewise.
490         * sese.c (set_rename, if_region_set_false_region): Likewise.
491         * tree-data-ref.c (free_rdg): Likewise.
492         * tree-eh.c (lower_try_finally): Likewise.
493         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
494         * tree-ssa-live.c (delete_var_map): Likewise.
495         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
496         * tree-ssa-pre.c (phi_trans_add): Likewise.
497
498 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
499
500         PR tree-optimization/48611
501         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
502         beyond ERT_MUST_NOT_THROW region.
503
504 2011-04-20  Catherine Moore  <clm@codesourcery.com>
505
506         * config/mips/mips.opt (mfix-24k): New.
507         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
508         * config/mips/mips.md (length): Increase by 4 for stores if
509         fixing 24K errata.
510         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
511         all noreorder if fixing 24K errata.
512         * doc/invoke.texi: Document mfix-24k.
513
514 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
515
516         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
517         quad-word modes, reduce to 9-bit index range when above 1016 limit.
518
519 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
520
521         * config/arm/arm.c (arm_gen_constant): Move movw support ....
522         (const_ok_for_op): ... to here.
523
524 2011-04-20  Kai Tietz  <ktietz@redhat.com>
525
526         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
527         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
528
529 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
530
531         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
532
533 2011-04-20  Richard Guenther  <rguenther@suse.de>
534
535         PR tree-optimization/47892
536         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
537         are if-convertible.
538
539 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
540
541         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
542
543 2011-04-20  Tristan Gingold  <gingold@adacore.com>
544
545         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
546
547 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
548
549         PR target/18145
550
551         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
552         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
553         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
554         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
555         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
556
557         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
558         New prototype.
559
560         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
561         (avr_asm_named_section, avr_asm_output_aligned_common,
562         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
563         New functions to update...
564         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
565         (avr_asm_init_sections): Overwrite section callbacks for
566         data_section, bss_section.
567         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
568         from here to...
569         (avr_file_end): ...here.
570
571 2011-04-20  Richard Guenther  <rguenther@suse.de>
572
573         PR middle-end/48695
574         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
575         objects and types here.  Adjust for their offset before comparing.
576
577 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
578
579         * tree-vect-stmts.c (vectorizable_store): Only chain one related
580         statement per copy.
581
582 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
583
584         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
585         (GIMPLE_H): Include $(INTERNAL_FN_H).
586         (OBJS-common): Add internal-fn.o.
587         (internal-fn.o): New rule.
588         * internal-fn.def: New file.
589         * internal-fn.h: Likewise.
590         * internal-fn.c: Likewise.
591         * gimple.h: Include internal-fn.h.
592         (GF_CALL_INTERNAL): New gf_mask.
593         (gimple_statement_call): Put fntype into a union with a new
594         internal_fn field.
595         (gimple_build_call_internal): Declare.
596         (gimple_build_call_internal_vec): Likewise.
597         (gimple_call_same_target_p): Likewise.
598         (gimple_call_internal_p): New function.
599         (gimple_call_internal_fn): Likewise.
600         (gimple_call_fntype): Return null for internal calls.
601         (gimple_call_set_fntype): Assert that the function is not internal.
602         (gimple_call_set_fn): Likewise.
603         (gimple_call_set_fndecl): Likewise.
604         (gimple_call_set_internal_fn): New function.
605         (gimple_call_addr_fndecl): Handle null functions.
606         (gimple_call_return_type): Likewise null types.
607         * gimple.c (gimple_build_call_internal_1): New function.
608         (gimple_build_call_internal): Likewise.
609         (gimple_build_call_internal_vec): Likewise.
610         (gimple_call_same_target_p): Likewise.
611         (gimple_call_flags): Handle calls to internal functions.
612         (gimple_call_fnspec): New function.
613         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
614         (gimple_has_side_effects): Handle null functions.
615         (gimple_rhs_has_side_effects): Likewise.
616         (gimple_call_copy_skip_args): Handle calls to internal functions.
617         * cfgexpand.c (expand_call_stmt): Likewise.
618         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
619         * gimple-fold.c (gimple_fold_call): Handle null functions.
620         (gimple_fold_stmt_to_constant_1): Don't fold
621         calls to internal functions.
622         * gimple-low.c (gimple_check_call_args): Handle calls to internal
623         functions.
624         * gimple-pretty-print.c (dump_gimple_call): Likewise.
625         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
626         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
627         (do_warn_unused_result): Likewise.
628         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
629         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
630         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
631         the target of a call.
632         (initialize_hash_element): Update accordingly.
633         (hashable_expr_equal_p): Use gimple_call_same_target_p.
634         (iterative_hash_hashable_expr): Handle calls to internal functions.
635         (print_expr_hash_elt): Likewise.
636         * tree-ssa-pre.c (can_value_number_call): Likewise.
637         (eliminate): Handle null functions.
638         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
639         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
640         (find_func_aliases): Likewise.
641         * value-prof.c (gimple_ic_transform): Likewise.
642         (gimple_indirect_call_to_profile): Likewise.
643         * lto-streamer-in.c (input_gimple_stmt): Likewise.
644         * lto-streamer-out.c (output_gimple_stmt): Likewise.
645
646 2011-04-19  Jan Hubicka  <jh@suse.cz>
647
648         * ipa-inline-transform.c (save_inline_function_body): Add comments.
649         * ipa-inline.c (inline_small_functions): Compute summaries first,
650         populate heap later.
651
652 2011-04-19  Jan Hubicka  <jh@suse.cz>
653
654         * cgraph.h (save_inline_function_body): Remove.
655         * ipa-inline-transform.c: New file, broke out of...
656         * ipa-inline.c: ... this one; Update toplevel comment.
657         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
658         make global.
659         (update_noncloned_frequencies): Move to ipa-inline-transform.c
660         (cgraph_mark_inline_edge): Rename to inline_call; move to
661         ipa-inline-transform.c.
662         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
663         move to ipa-inline-transform.c
664         (recursive_inlining, inline_small_functions, flatten_function,
665         ipa_inline, inline_always_inline_functions,
666         early_inline_small_functions): Update.
667         (inline_transform): Move to ipa-inline-transform.c.
668         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
669         Declare.
670         * Makefile.in (ipa-inline-transform.o): New file.
671         * cgraphunit.c (save_inline_function_body): Move to
672         ipa-inline-transform.c
673
674 2011-04-19  DJ Delorie  <dj@redhat.com>
675
676         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
677         registers if we already know there aren't any.
678         (m32c_emit_epilogue): Don't emit a barrier here.
679         (m32c_emit_eh_epilogue): Likewise.
680         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
681         operands at expand time.
682         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
683         int" wchar type.
684         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
685         duplicates.  Provide aliases instead.
686         * config/m32c/prologue.md (eh_return): Emit a barrier here.
687         (eh_epilogue): Add a "(return)" here as a hint to other parts of
688         the compiler.
689
690 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
691
692         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
693         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
694         (general_or_i64_p, sparc_register_move_cost): New function.
695
696 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
697
698         * doc/install.texi (Configuration, --enable-threads): Remove mach.
699         Add lynx, mipssde.  Sort table.
700
701 2011-04-19  Xinliang David Li  <davidxl@google.com>
702
703         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
704         not negative.
705
706 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
707
708         PR target/48678
709         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
710         is a SUBREG with non-MODE_INT mode inside of it.
711
712 2011-04-19  Martin Jambor  <mjambor@suse.cz>
713
714         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
715         also according to actual contants.
716         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
717         (gimple_fold_call): Use it.
718         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
719
720 2011-04-19  Martin Jambor  <mjambor@suse.cz>
721
722         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
723         non-pointer assignments.
724
725 2011-04-19  Martin Jambor  <mjambor@suse.cz>
726
727         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
728         account anc_offset and otr_type from the indirect edge info.
729         * ipa-prop.c (get_ancestor_addr_info): New function.
730         (compute_complex_ancestor_jump_func): Assignment analysis moved to
731         get_ancestor_addr_info, call it.
732         (ipa_note_param_call): Do not initialize information about polymorphic
733         calls, return the indirect call graph edge.  Remove the last
734         parameter, adjust all callers.
735         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
736         parameters.  Initialize polymorphic information in the indirect edge.
737
738 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
739
740         PR lto/48148
741         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
742         the types if they have different enumeration identifiers.
743
744 2011-04-19  Jan Hubicka  <jh@suse.cz>
745
746         * cgraph.h (cgraph_optimize_for_size_p): Declare.
747         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
748         * predict.c (cgraph_optimize_for_size_p): Break out from ...
749         (optimize_function_for_size_p) ... here.
750
751 2011-04-19  Richard Guenther  <rguenther@suse.de>
752
753         PR lto/48207
754         * tree.c (free_lang_data): Do not reset the decl-assembler-name
755         langhook.
756
757 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
758
759         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
760         if DECL_NO_INLINE_WARNING_P is set on the function.
761
762 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
763
764         PR fortran/47976
765         * reload1.c (inc_for_reload): Return void. All callers changed.
766         (emit_input_reload_insns): Don't try to delete previous output
767         reloads to a register, or record spill_reg_store for autoincs.
768
769 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
770
771         * gengtype.h: Updated copyright year.
772         (struct input_file_st): Add inpisplugin field.
773         (type_fileloc): New function.
774         * gengtype.c
775         (write_typed_struct_alloc_def): Add gcc_assert.
776         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
777         (write_typed_alloc_defns): Don't output for plugin files.
778         (input_file_by_name): Clear inpisplugin field.
779         (main): Set inpisplugin field for plugin files.
780
781 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
782
783         * gengtype-state.c (string_eq): New.
784         (read_state): Use string_eq instead of strcmp when creating the
785         state_ident_tab.
786
787 2011-04-19  Wei Guozhi  <carrot@google.com>
788
789         PR target/47855
790         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
791         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
792         linkage.
793         * config/arm/constraints.md (Uu): New constraint.
794         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
795
796 2011-04-19  Tristan Gingold  <gingold@adacore.com>
797
798         * config.gcc (-*-*-*vms): Added.
799         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
800         definitions moved.
801         * config/vms/vms-ld.c: New file.
802         * config/vms/vms-ar.c: New file.
803         * config/vms/t-vmsnative: New file.
804
805 2011-04-18  Xinliang David Li  <davidxl@google.com>
806
807         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
808
809 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
810
811         PR middle-end/48661
812         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
813         if TREE_TYPE (v) is non-NULL.
814
815         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
816         gimple_get_virt_mehtod_for_binfo.
817         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
818         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
819         callers.
820         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
821
822 2011-04-18  Michael Matz  <matz@suse.de>
823             Steve Ellcey  <sje@cup.hp.com>
824
825         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
826         use its mode as source mode if it isn't VOIDmode.
827
828 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
829
830         * doc/passes.texi: Fill crossref nodes.
831
832 2011-04-18  Jim Meyering  <meyering@redhat.com>
833
834         Fix doubled-word typos in comments and strings
835         * config/alpha/vms-unwind.h: s/for for/for/
836         * config/arm/unwind-arm.h: Likewise.
837         * config/microblaze/microblaze.c: Likewise.
838         * config/sh/constraints.md: s/in in/in/
839         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
840
841 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
842
843         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
844         (AVX_FLOAT_MODE_P): Ditto.
845         (AVX128_VEC_FLOAT_MODE_P): Ditto.
846         (AVX256_VEC_FLOAT_MODE_P): Ditto.
847         (AVX_VEC_FLOAT_MODE_P): Ditto.
848         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
849         (UNSPEC_MASKSTORE): Ditto.
850         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
851         Merge from <sse>_movmsk<ssemodesuffix> and
852         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
853         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
854         iterator.
855         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
856         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
857         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
858
859 2011-04-18  Jan Hubicka  <jh@suse.cz>
860
861         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
862
863         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
864         (want_inline_function_called_once_p): Break out the logic from
865         ipa_inline.
866         (edge_badness): Ensure that profile is not misupdated.
867         (lookup_recursive_calls): Prioritize by call frequencies.
868         (inline_small_functions): Move program size estimates here;
869         actually process whole queue even when unit growth has been
870         met. (to properly compute inline_failed reasons and for the
871         case unit size decrease.) Revisit comments on recursive inlining.
872         (ipa_inline): Remove unit summary code; first inline hot calls
873         of functions called once, cold calls next.
874         (order, nnodes): Remove unused variables.
875         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
876         (GTFILES): Remove ipa-inline.c
877         * sel-sched.c (fill_insns): Silence uninitialized var warning.
878
879 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
880
881         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
882
883 2011-04-18  Jie Zhang  <jie@codesourcery.com>
884             Richard Earnshaw  <rearnsha@arm.com>
885
886         * arm.c (neon_builtin_type_bits): Remove.
887         (typedef enum neon_builtin_mode): New.
888         (T_MAX): Don't define.
889         (typedef enum neon_builtin_datum): Remove bits, codes[],
890         num_vars and base_fcode.  Add mode, code and fcode.
891         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
892         VAR10): Change accordingly.
893         (neon_builtin_data[]): Change accordingly
894         (arm_init_neon_builtins): Change accordingly.
895         (neon_builtin_compare): Remove.
896         (locate_neon_builtin_icode): Remove.
897         (arm_expand_neon_builtin): Change accordingly.
898
899         * arm.h (enum arm_builtins): Move to ...
900         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
901
902         * arm.c (arm_builtin_decl): Declare.
903         (TARGET_BUILTIN_DECL): Define.
904         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
905         (arm_builtin_decls[]): New.
906         (arm_init_neon_builtins): Store builtin declarations in
907         arm_builtin_decls[].
908         (arm_init_tls_builtins): Likewise.
909         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
910         (arm_builtin_decl): New.
911
912 2011-04-18  Richard Guenther  <rguenther@suse.de>
913
914         * tree.c (upper_bound_in_type): Build properly canonicalized
915         INTEGER_CSTs.
916         (lower_bound_in_type): Likewise.
917
918 2011-04-18  Richard Guenther  <rguenther@suse.de>
919
920         * gimple.h (gimple_call_addr_fndecl): New function.
921         (gimple_call_fndecl): Use it.
922         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
923         for direct calls.
924         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
925         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
926
927 2011-04-18  Richard Guenther  <rguenther@suse.de>
928
929         PR middle-end/48650
930         * tree.c (build_string): STRING_CST is now derived from tree_typed.
931
932 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
933
934         PR lto/48492
935         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
936         DECL_IN_CONSTANT_POOL without RTL.
937
938 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
939             Ira Rosen  <ira.rosen@linaro.org>
940
941         PR target/48252
942         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
943         to match neon_vzip/vuzp/vtrn_internal.
944         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
945         outputs explicitly dependent on both inputs.
946         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
947
948 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
949
950         PR tree-optimization/48616
951         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
952         whether the shift is by scalar or vector based on whether all SLP
953         scalar stmts have the same rhs.
954
955 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
956
957         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
958         memory operands.
959
960 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
961
962         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
963         registers.
964
965 2011-04-17  Jan Hubicka  <jh@suse.cz>
966
967         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
968         * cgrpahunit.c (cgraph_finalize_function): Do not set
969         finalized_by_frontend.
970         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
971         finalized_by_frontend.
972
973 2011-04-17  Jan Hubicka  <jh@suse.cz>
974
975         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
976         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
977         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
978         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
979         method.
980         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
981         gimple-fold.c
982         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
983
984 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
985
986         PR lto/48538
987         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
988         is non-null before accessing it.
989         (input_cgraph): Remove trailing spaces.
990
991 2011-04-17  Revital Eres  <revital.eres@linaro.org>
992
993         * params.def (sms-min-sc): New param flag.
994         * modulo-sched.c (sms_schedule): Use it.
995         * doc/invoke.texi (sms-min-sc): Document it.
996
997 2011-04-17  Jan Hubicka  <jh@suse.cz>
998
999         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
1000         present, also set gimple_call_set_cannot_inline.
1001         * ipa-inline.c: Update toplevel comment.
1002         (MAX_TIME): Remove.
1003         (cgraph_clone_inlined_nodes): Fix linebreaks.
1004         (cgraph_check_inline_limits): Restructure to ...
1005         (caller_growth_limits): ... this one; be more tolerant
1006         on growth in nested inline chains; add explanatory comment;
1007         fix stack accounting thinko introduced by previous patch.
1008         (cgraph_default_inline_p): Remove.
1009         (report_inline_failed_reason): New function.
1010         (can_inline_edge_p): New function.
1011         (can_early_inline_edge_p): New function.
1012         (leaf_node_p): Move upwards in file.
1013         (want_early_inline_function_p): New function.
1014         (want_inline_small_function_p): New function.
1015         (want_inline_self_recursive_call_p): New function.
1016         (cgraph_edge_badness): Rename to ...
1017         (edge_badness) ... this one; fix linebreaks.
1018         (update_edge_key): Update call of edge_baddness; add
1019         detailed dump about queue updates.
1020         (update_caller_keys): Use can_inline_edge_p and
1021         want_inline_small_function_p.
1022         (cgraph_decide_recursive_inlining): Rename to...
1023         (recursive_inlining): Use can_inline_edge_p and
1024         want_inline_self_recursive_call_p; simplify and remove no longer
1025         valid FIXME.
1026         (cgraph_set_inline_failed): Remove.
1027         (add_new_edges_to_heap): Use can_inline_edge_p and
1028         want_inline_small_function_p.
1029         (cgraph_decide_inlining_of_small_functions): Rename to ...
1030         (inline_small_functions): ... this one; cleanup; use
1031         can/want predicates; cleanup debug ouput; work edges till fibheap
1032         is exhausted and do not stop once unit growth is reached; remove
1033         later loop processing remaining edges.
1034         (cgraph_flatten): Rename to ...
1035         (flatten_function): ... this one; use can_inline_edge_p
1036         and can_early_inline_edge_p predicates.
1037         (cgraph_decide_inlining): Rename to ...
1038         (ipa_inline): ... this one; remove unreachable nodes before
1039         inlining functions called once; simplify the pass.
1040         (cgraph_perform_always_inlining): Rename to ...
1041         (inline_always_inline_functions): ... this one; use
1042         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
1043         (cgraph_decide_inlining_incrementally): Rename to ...
1044         (early_inline_small_functions): ... this one; simplify
1045         using new predicates; cleanup; make dumps prettier.
1046         (cgraph_early_inlining): Rename to ...
1047         (early_inliner): newer inline regular functions into always-inlines;
1048         fix updating of call stmt summaries.
1049         (pass_early_inline): Update for new names.
1050         (inline_transform): Fix formating.
1051         (gate_cgraph_decide_inlining): Rename to ...
1052         (pass_ipa_inline): ... this one.
1053         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
1054         * ipa-inline-analysis.c (dump_inline_summary): Update.
1055         (compute_inline_parameters): Do not compute disregard_inline_limits;
1056         look for mismatching arguments.
1057         (estimate_growth): Fix handlig of non-trivial self recursion.
1058         (inline_read_summary): Do not read info->disregard_inline_limits.
1059         (inline_write_summary): Do not write info->disregard_inline_limits.
1060         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
1061         and move all checks into can_inline_edge_p predicate; re-enable code
1062         comparing optimization levels.
1063         (expand_call_inline): Do not test inline_forbidden_into_p.
1064         * Makefile.in (ipa-inline.o): Update arguments.
1065
1066 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1067
1068         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
1069
1070 2011-04-17  Revital Eres  <revital.eres@linaro.org>
1071
1072         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
1073
1074 2011-04-17  Michael Matz  <matz@suse.de>
1075
1076         PR tree-optimization/48622
1077         PR lto/48645
1078         * ipa-inline-analysis.c (inline_read_summary): Read size/time
1079         in same order as they're written.
1080
1081 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1082
1083         * config/pa/predicates.md: Reorganize and simplify predicates.
1084         Eliminate duplicate code checks.
1085         (arith_operand): Rename to arith14_operand
1086         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
1087         * config/pa/pa.md: Use renamed operands.
1088         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
1089         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
1090         arith11_operand, adddi3_operand, indexed_memory_operand,
1091         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
1092         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
1093         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
1094         move_dest_operand, move_src_operand, prefetch_cc_operand,
1095         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
1096         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
1097         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
1098         div_operand, int5_operand, movb_comparison_operator,
1099         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
1100         arith_double_operand, ireg_operand, lhs_lshift_operand,
1101         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
1102         integer_store_memory_operand): Likewise.
1103         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
1104         (integer_store_memory_operand, read_only_operand,
1105         function_label_operand, borx_reg_operand,
1106         non_hard_reg_operand): Likewise.
1107         (eq_neq_comparison_operator): Delete unused operator.
1108         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
1109         function_label_operand.
1110         (emit_move_sequence): Likewise.
1111
1112 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1113
1114         * config/i386/sse.md (sseunpackmode): New mode attribute.
1115         (ssepackmode): Ditto.
1116         (vec_pack_trunc_<mode>): Macroize expander from
1117         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
1118         (vec_unpacks_lo_<mode>): Macroize expander from
1119         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1120         (vec_unpacks_hi_<mode>): Macroize expander from
1121         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1122         (vec_unpacku_lo_<mode>): Macroize expander from
1123         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1124         (vec_unpacku_hi_<mode>): Macroize expander from
1125         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
1126         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
1127         ix86_expand_sse4_unpack.
1128         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
1129
1130 2011-04-16  Jan Hubicka  <jh@suse.cz>
1131
1132         * cgraphbuild.c: Include ipa-inline.h.
1133         (reset_inline_failed): Use initialize_inline_failed.
1134         * cgraph.c: Include ipa-inline.h.
1135         (cgraph_create_node_1): Do not initialize estimated_growth.
1136         (initialize_inline_failed): More to ipa-inline-analysis.c
1137         (dump_cgraph_node): Do not dump inline flags.
1138         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
1139         and disregard_inline_limits flags.
1140         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
1141         time, size, estimated_growth.
1142         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
1143         Update.
1144         * cgraphunit.c (cgraph_decide_is_function_needed): Use
1145         DECL_DISREGARD_INLINE_LIMITS.
1146         (cgraph_analyze_function): Do not initialize
1147         node->local.disregard_inline_limits.
1148         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
1149         inlinable, versionable and disregard_inline_limits.
1150         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
1151         cgraph_check_inline_limits, cgraph_default_inline_p,
1152         cgraph_edge_badness, update_caller_keys, update_callee_keys,
1153         add_new_edges_to_heap): Update.
1154         (cgraph_decide_inlining_of_small_function): Update; set
1155         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
1156         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
1157         cgraph_decide_inlining_incrementally): Update.
1158         * ipa-inline.h (inline_summary): Add inlinable, versionable,
1159         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
1160         time, size and estimated_growth parameters.
1161         (estimate_edge_growth): Update.
1162         (initialize_inline_failed): Declare.
1163         * ipa-split.c: Include ipa-inline.h
1164         (execute_split_functions): Update.
1165         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
1166         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
1167         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
1168         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
1169         estimated_growth to INT_MIN.
1170         (inline_node_duplication_hook): Likewise.
1171         (dump_inline_summary): Dump new fields.
1172         (compute_inline_parameters): Update.
1173         (estimate_edge_time, estimate_time_after_inlining,
1174         estimate_size_after_inlining, estimate_growth, inline_read_summary,
1175         inline_write_summary):
1176         (initialize_inline_failed): Move here from cgraph.c.
1177         * tree-sra.c: Include ipa-inline.h.
1178         (ipa_sra_preliminary_function_checks): Update.
1179         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
1180         ipa-inline.h.
1181
1182 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
1183
1184         * config/i386/sse.md (V16): New mode iterator.
1185         (VI1, VI8): Ditto.
1186         (AVXMODEQI, AVXMODEDI): Remove.
1187         (sse2, sse3): New mode attribute.
1188         (mov<mode>): Use V16 mode iterator.
1189         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
1190         (push<mode>1): Use V16 mode iterator.
1191         (movmisalign<mode>): Ditto.
1192         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1193         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
1194         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
1195         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
1196         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
1197         avx_movdqu<avxmodesuffix>.
1198         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
1199         *avx_movdqu<avxmodesuffix>.
1200         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
1201         avx_lddqu<avxmodesuffix>.
1202         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
1203         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
1204         avx_movnt<AVXMODEDI:mode>.
1205         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
1206         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
1207
1208 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1209
1210         PR target/48629
1211         * haifa-sched.c (prune_ready_list, schedule_block): Use
1212         sched_pressure_p rather than flag_sched_pressure.
1213
1214 2011-04-15  Pat Haugen <pthaugen@us.ibm.com>
1215
1216         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1217         cgraph_get_node instead of cgraph_get_create_node.
1218
1219 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
1220
1221         * cfgexpand.c (expand_debug_expr): Use
1222         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
1223
1224 2011-04-15  Michael Matz  <matz@suse.de>
1225
1226         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
1227         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
1228         * function.c (gimplify_parameters): Ditto.
1229         * gimplify.c (gimplify_vla_decl): Ditto.
1230
1231         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
1232         (gimple_call_set_alloca_for_var): New inline function.
1233         (gimple_call_alloca_for_var_p): Ditto.
1234         * gimple.c (gimple_build_call_from_tree): Remember
1235         CALL_ALLOCA_FOR_VAR_P state.
1236         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
1237
1238         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
1239         calls if they were for VLA objects.
1240
1241 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1242
1243         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
1244         of ADR_EXPRs.
1245
1246 2011-04-15  Martin Jambor  <mjambor@suse.cz>
1247
1248         PR middle-end/48601
1249         * tree-emutls.c (lower_emutls_function_body): Call
1250         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
1251         result is non-NULL.
1252
1253 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
1254
1255         * c-decl.c (detect_field_duplicates): Call
1256         objc_detect_field_duplicates instead of objc_get_interface_ivars.
1257
1258 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
1259
1260         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
1261         * gimple.c (gimple_asm_clobbers_memory_p): Define.
1262         * ipa-pure-const.c (check_stmt): Call it.
1263         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
1264
1265 2011-04-15  Richard Guenther  <rguenther@suse.de>
1266
1267         PR tree-optimization/48290
1268         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
1269         Properly decide inhibiting propagation based on the valueized
1270         operand.  Do loop-closed SSA form preserving here ...
1271         (init_copy_prop): ... not here.
1272
1273 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1274
1275         PR target/48612
1276         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
1277         (*ieee_smax<mode>3): Likewise.
1278
1279 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1280
1281         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
1282         Replace match_operand with match_dup for the third operand in
1283         these expanders.
1284
1285 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1286
1287         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
1288         to track processing of conditionals.  Update all callers.
1289         (try_combine, simplify_if_then_else): Update.
1290
1291 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1292
1293         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
1294         -fsched-pressure.
1295
1296 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
1297
1298         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
1299         instead of match_operand for operand 3.
1300
1301 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
1302
1303         * recog.h (insn_operand_data): Add an "allows_mem" field.
1304         * genoutput.c (output_operand_data): Initialize it.
1305         * optabs.c (maybe_legitimize_operand_same_code): New function.
1306         (maybe_legitimize_operand): Use it when matching the original
1307         op->value.
1308
1309 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1310
1311         * gimplify.c: Fix issues in comments throughout.
1312         (voidify_wrapper_expr): Fix long line.
1313         (build_stack_save_restore): Likewise.
1314         (gimplify_loop_expr): Likewise.
1315         (gimplify_compound_lval): Likewise.
1316         (gimplify_init_ctor_eval): Likewise.
1317         (gimplify_modify_expr_rhs): Likewise.
1318         (omp_notice_threadprivate_variable): Likewise.
1319
1320 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
1321
1322         * cfgexpand.c (expand_call_stmt): Convert the function type to the
1323         original one if this is not a builtin function.
1324
1325 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
1326
1327         PR target/48605
1328         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
1329         offset it as needed based on top 2 bits in operands[3], change
1330         MEM mode to SFmode and mask those 2 bits away from operands[3].
1331
1332 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1333
1334         * c-parser.c (c_parser_objc_protocol_definition): Updated for
1335         change from objc_declare_protocols() to objc_declare_protocol().
1336
1337 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
1338
1339         * config/i386/sse.md (sse4_1): New mode attribute.
1340         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
1341         avx_blend<ssemodesuffix><avxmodesuffix> and
1342         sse4_1_blend<ssemodesuffix> using VF mode iterator.
1343         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
1344         avx_blendv<ssemodesuffix><avxmodesuffix> and
1345         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
1346         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
1347         avx_dp<ssemodesuffix><avxmodesuffix> and
1348         sse4_1_dp<ssemodesuffix> using VF mode iterator.
1349         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
1350         (sse4_1_packusdw): Merge with *avx_packusdw.
1351         (sse4_1_pblendvb): Merge with *avx_pblendvb.
1352         (sse4_1_pblendw): Merge with *avx_pblendw.
1353         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
1354         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
1355         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
1356         VF mode iterator.
1357         (sse4_1_round<ssescalarmodesuffix>): Merge with
1358         *avx_round<ssescalarmodesuffix>.
1359         (aesenc): Merge with *avx_aesenc.
1360         (aesenclast): Merge with *avx_aesenclast.
1361         (aesdec): Merge with *avx_aesdec.
1362         (aesdeclast): Merge with *avx_aesdeclast.
1363         (pclmulqdq): Merge with *pclmulqdq.
1364         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
1365         New predicate.
1366         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
1367
1368 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
1369
1370         PR middle-end/48608
1371         * cfgexpand.c (get_decl_align_unit): Renamed to ...
1372         (align_local_variable): This.  Update DECL_ALIGN.
1373         (add_stack_var): Updated.
1374         (expand_one_stack_var): Likewise.
1375
1376 2011-04-14  Richard Guenther  <rguenther@suse.de>
1377
1378         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
1379         Remove.
1380         (dse_initialize_block_local_data, dse_leave_block,
1381         record_voperand_set, get_stmt_uid): Likewise.
1382         (dse_possible_dead_store_p): Allow any kind of killing stmt.
1383         (dse_optimize_stmt): Remove voperand set handling code.
1384         Simplify and improve to handle any kind of killing stmt.
1385         (dse_record_phi): Remove.
1386         (dse_enter_block): Simplify.
1387         (tree_ssa_dse): Likewise.
1388         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
1389
1390 2011-04-14  Jan Hubicka  <jh@suse.cz>
1391
1392         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
1393         * cgraph.h (struct inline_summary): Move to ipa-inline.h
1394         (cgraph_local_info): Remove inline_summary.
1395         * ipa-cp.c: Include ipa-inline.h.
1396         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
1397         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
1398         accesor.
1399         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
1400         (input_overwrite_node): Do not set inline summary.
1401         (input_node): Do not stream inline summary.
1402         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
1403         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
1404         growth; we do not have inline parameters computed for that anyway.
1405         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
1406         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
1407         (inline_summary_t): New type and VECtor.
1408         (debug_inline_summary, dump_inline_summaries): Declare.
1409         (inline_summary): Use VOCtor.
1410         (estimate_edge_growth): Kill hack computing call stmt size directly.
1411         * lto-section-in.c (lto_section_name): Add inline section.
1412         * ipa-inline-analysis.c: Include lto-streamer.h
1413         (node_removal_hook_holder, node_duplication_hook_holder): New holders
1414         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
1415         (inline_summary_vec): Define.
1416         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
1417         dump_inline_summaries): New functions.
1418         (estimate_function_body_sizes): Properly compute size/time of outgoing
1419         calls.
1420         (compute_inline_parameters): Alloc inline_summary; do not compute
1421         size/time of incomming calls.
1422         (estimate_edge_time): Avoid missing time summary hack.
1423         (inline_read_summary): Read inline summary info.
1424         (inline_write_summary): Write inline summary info.
1425         (inline_free_summary): Free all hooks and inline summary vector.
1426         * lto-streamer.h: Add LTO_section_inline_summary section.
1427         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
1428         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
1429
1430 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1431
1432         * tree-vectorizer.h (vect_strided_store_supported): Add a
1433         HOST_WIDE_INT argument.
1434         (vect_strided_load_supported): Likewise.
1435         (vect_permute_store_chain): Return void.
1436         (vect_transform_strided_load): Likewise.
1437         (vect_permute_load_chain): Delete.
1438         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
1439         count argument.  Check that the count is a power of two.
1440         (vect_strided_load_supported): Likewise.
1441         (vect_permute_store_chain): Return void.  Update after above changes.
1442         Assert that the access is supported.
1443         (vect_permute_load_chain): Likewise.
1444         (vect_transform_strided_load): Return void.
1445         * tree-vect-stmts.c (vectorizable_store): Update calls after
1446         above interface changes.
1447         (vectorizable_load): Likewise.
1448         (vect_analyze_stmt): Don't check for strided powers of two here.
1449
1450 2011-04-14  Richard Guenther  <rguenther@suse.de>
1451
1452         PR tree-optimization/48590
1453         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1454         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1455         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
1456         BUILT_IN_STACK_SAVE.
1457         * tree-ssa-dce.c (propagate_necessity): Handle
1458         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
1459
1460 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
1461
1462         * c-parser.c (c_parser_objc_class_declaration): Updated call to
1463         objc_declare_class.
1464
1465 2011-04-14  Richard Guenther  <rguenther@suse.de>
1466
1467         * tree.h (get_object_alignment_1): Declare.
1468         * builtins.c (get_object_alignment_1): Split out worker from ...
1469         (get_object_alignment): ... here.
1470         * fold-const.c (get_pointer_modulus_and_residue): Use
1471         get_object_alignment_1.
1472
1473 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1474
1475         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
1476         type parameter.
1477         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
1478         parameter.  Generalise code to handle arrays as well as vectors.
1479         (vect_setup_realignment): Update accordingly.
1480         * tree-vect-stmts.c (vectorizable_store): Likewise.
1481         (vectorizable_load): Likewise.
1482
1483 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1484
1485         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
1486         within the per-copy loop.
1487
1488 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1489
1490         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
1491         in the dump file.
1492
1493 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
1494
1495         * doc/options.texi (Negative): Explicitly mention that the
1496         Negative chain must be circular.
1497
1498 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
1499
1500         * function.h (block_chainon): Declare.
1501         * function.c (block_chainon): Define.
1502
1503 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
1504             Eric Weddington  <eric.weddington@atmel.com>
1505             Georg-Johann Lay <avr@gjlay.de>
1506
1507         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
1508         New Includes
1509         (avr_init_builtins, avr_expand_builtin,
1510         avr_expand_delay_cycles, avr_expand_unop_builtin,
1511         avr_expand_binop_builtin ): New functions.
1512         (avr_builtin_id): New enum
1513         (struct avr_builtin_description): New struct
1514         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
1515         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1516
1517         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
1518         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
1519         UNSPECV_DELAY_CYCLES): new enumeration values
1520         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
1521         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
1522         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
1523         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
1524         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
1525         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
1526         "fmulsu"): New insns
1527
1528         * config/avr/avr-c.c: fix line endings
1529         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
1530         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
1531         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
1532         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
1533         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
1534
1535         * doc/extend.texi (AVR Built-in Functions): New node
1536         (Target Builtins): Add documentation of AVR
1537         built-in functions.
1538
1539 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
1540
1541         PR target/44643
1542         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
1543         alone. Error if non-const data has attribute progmem.
1544
1545 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1546
1547         * tree.h (struct tree_constructor): Include tree_typed instead of
1548         tree_common.
1549         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
1550         TS_TYPED instead of TS_COMMON.
1551
1552 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1553
1554         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
1555         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
1556         (sse2_psadbw): Merge with *avx_psadbw.
1557         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
1558         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
1559         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
1560         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
1561         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
1562         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
1563         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
1564         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
1565         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
1566         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
1567         (ssse3_palignrti): Merge with *avx_palignrti.
1568
1569 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1570
1571         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
1572         * tree-ssanames.c (fini_ssanames): VEC_free it.
1573         (make_ssa_name_fn): Update for VECness of free_ssanames.
1574         (release_ssa_name, release_dead_ssa_names): Likewise.
1575         * tree.h (struct tree_ssa_name): Include tree_typed instead of
1576         tree_common.
1577         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
1578         TS_TYPED instead of TS_COMMON.
1579
1580 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1581
1582         * postreload-gcse.c (gcse_after_reload_main): Add calls to
1583         statistics_counter_event.
1584         * tree-ssa-copyrename.c (stats): Define.
1585         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
1586         statistics_counter_event.
1587         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
1588         (bswap_stats, widen_mul_stats): Define.
1589         (insert_reciprocals): Increment rdivs_inserted.
1590         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
1591         rfuncs_inserted.  Add calls to statistics_counter_event.
1592         (execute_cse_sincos_1): Increment inserted.
1593         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
1594         statistics_counter_event.
1595         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
1596         of bswap_stats.  Add calls to statistics_counter_event.
1597         (convert_mult_to_widen): Increment widen_mults_inserted.
1598         (convert_plusminus_to_widen): Increment maccs_inserted.
1599         (convert_mult_to_fma): Increment fmas_inserted.
1600         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
1601         calls to statistics_counter_event.
1602
1603 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
1604
1605         PR rtl-optimization/48455
1606         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
1607         `temp_costs->mem_cost'.
1608
1609 2011-04-13  Jan Hubicka  <jh@suse.cz>
1610
1611         * ipa-inline.h: New file.
1612         * ipa-inline-analysis.c: New file. Broken out of ...
1613         * ipa-inline.c: ... this file; update toplevel comment;
1614         include ipa-inline.h
1615         (inline_summary): Move to ipa-inline.h
1616         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
1617         ipa-inline-analysis.c.
1618         (cgraph_estimate_time_after_inlining): Rename to
1619         estiamte_time_after_inlining; move to ipa-inline-analysis.c
1620         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
1621         to estimate_edge_growth.
1622         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
1623         rename to estimate_size_after_inlining.
1624         (cgraph_mark_inline_edge): Update for new naming convention.
1625         (cgraph_check_inline_limits): Likewise.
1626         (cgraph_edge_badness): Likewise.
1627         (cgraph_decide_recursive_inlining): Likewise.
1628         (cgraph_decide_inlining_of_small_functions): Likewise.
1629         (cgraph_decide_inlining_incrementally): Likewise.
1630         (cgraph_estimate_growth): Rename to estimate_growth; move to
1631         ipa-inline-analysis.c.
1632         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
1633         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
1634         (compute_inline_parameters): Likewise.
1635         (compute_inline_parameters_for_current): Likewise.
1636         (pass_inline_parameters): Likewise.
1637         (inline_indirect_intraprocedural_analysis): Likewise.
1638         (analyze_function): Rename to inline_analyze_function; likewise.
1639         (add_new_function): Move to ipa-inline-analysis.c.
1640         (inline_generate_summary): Likewise.
1641         (inline_read_summary): Likewise.
1642         (inline_write_summary): Likewise.
1643         * Makefile.in (ipa-inline-analysis.c): New file.
1644
1645 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1646
1647         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
1648         * configure: Regenerate.
1649
1650 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
1651
1652         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
1653         instead of tree_common.
1654         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
1655         Likewise.
1656         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
1657         TS_TYPED rather than TS_COMMON.
1658         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
1659
1660 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
1661
1662         PR target/45263
1663         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
1664         r20 around calls of __tablejump_elpm__
1665
1666 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1667
1668         PR middle-end/48591
1669         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
1670         NULL.
1671         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
1672
1673 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
1674
1675         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
1676         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
1677         (cfi_vec): New typedef.
1678         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
1679         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
1680         (cie_cfi_vec): New static variable.
1681         (cie_cfi_head): Delete.
1682         (add_cfi): Accept a cfi_vec * as first argument. All callers and
1683         declaration changed. Use vector rather than list operations.
1684         (new_cfi): Don't initialize the dw_cfi_next field.
1685         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
1686         rather than list operations.
1687         (lookup_cfa): Use vector rather than list operations.
1688         (output_cfis): New argument upto. Accept a cfi_vec rather than
1689         a dw_cfi_ref list head as argument. All callers changed.
1690         Iterate over the vector using upto as a maximum index.
1691         (output_all_cfis): New static function.
1692         (output_fde): Use vector rather than list operations. Use the
1693         new upto argument for output_cfis rather than manipulating a
1694         list.
1695         (dwarf2out_begin_prologue): Change initializations to match
1696         new struct members.
1697         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
1698         from the vector length rather than searching for the end of a list.
1699         Use output_all_cfis.
1700         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
1701
1702 2011-04-13  Nick Clifton  <nickc@redhat.com>
1703
1704         * config/rx/rx.md (movmemsi): Do not use this pattern when
1705         volatile pointers are involved.
1706
1707 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
1708
1709         * config/i386/sse.md (pinsrbits): Remove.
1710         (sse2_packsswb): Merge with *avx_packsswb.
1711         (sse2_packssdw): Merge with *avx_packssdw.
1712         (sse2_packuswb): Merge with *avx_packuswb.
1713         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
1714         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
1715         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
1716         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
1717         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
1718         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
1719         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
1720         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
1721         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
1722         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
1723         (sse2_loadld): Merge with *avx_loadld.
1724         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
1725         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
1726         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
1727         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
1728         (vec_concatv2di): Merge with *vec_concatv2di_avx.
1729
1730 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
1731
1732         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
1733         calling TREE_CHAIN.
1734         * print-tree.c (print_node): Likewise.
1735         * tree-inline.c (copy_tree_r): Likewise.
1736         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
1737         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
1738         instead of TS_COMMON.
1739         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
1740         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
1741         (copy_node_stat): Zero TREE_CHAIN only if necessary.
1742         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
1743         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
1744         ...and these...
1745         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
1746         * tree.h: ...here.
1747         (TREE_CHAIN): Check for a TS_COMMON structure.
1748         (TREE_TYPE): Check for a TS_TYPED structure.
1749
1750 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
1751
1752         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
1753         cgraph_get_create_node instead of cgraph_node.
1754
1755 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1756
1757         * c-parser.c (c_parser_initelt): Updated call to
1758         objc_build_message_expr.
1759         (c_parser_postfix_expression): Likewise.
1760
1761 2011-04-12  Kai Tietz  <ktietz@redhat.com>
1762
1763         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
1764         MASK_MS_BITFIELD_LAYOUT bit.
1765
1766 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1767
1768         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
1769         assert it is always true.
1770         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
1771         moves.
1772
1773 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
1774
1775         * c-parser.c (c_lex_one_token): Rewritten conditional used when
1776         compiling Objective-C to be more efficient.
1777
1778 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
1779
1780         * opts-common.c (decode_cmdline_options_to_array): Remove variable
1781         argv_copied.
1782
1783 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1784
1785         * recog.h, genoutput.c, optabs.c: Revert last patch.
1786
1787 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1788
1789         PR target/48090
1790         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
1791
1792 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1793
1794         * recog.h (insn_operand_data): Add an "allows_mem" field.
1795         * genoutput.c (output_operand_data): Initialize it.
1796         * optabs.c (maybe_legitimize_operand_same_code): New function.
1797         (maybe_legitimize_operand): Use it when matching the original
1798         op->value.
1799
1800 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1801
1802         * genpreds.c (process_define_predicate): Move most processing
1803         to gensupport.c.  Continue to validate the expression.
1804         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
1805         (process_define_predicate): Move processing to gensupport.c.
1806         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
1807         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
1808         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
1809         argument.
1810         (valid_predicate_name_p): New function, split out from old
1811         genpreds.c:process_define_predicate.
1812         (process_define_predicate): New function, combining code from
1813         old genpreds.c and genrecog.c functions.
1814         (process_rtx): Call it for DEFINE_PREDICATE and
1815         DEFINE_SPECIAL_PREDICATE.
1816
1817 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
1818
1819         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
1820         size of a '%A' memory reference.
1821         (T_DREG, T_QREG): New neon_builtin_type_bits.
1822         (arm_init_neon_builtins): Assert that the load and store operands
1823         are neon_struct_operands.
1824         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
1825         (NEON_ARG_MEMORY): New builtin_arg.
1826         (neon_dereference_pointer): New function.
1827         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
1828         Handle NEON_ARG_MEMORY.
1829         (arm_expand_neon_builtin): Update after above interface changes.
1830         Use NEON_ARG_MEMORY for loads and stores.
1831         * config/arm/predicates.md (neon_struct_operand): New predicate.
1832         * config/arm/iterators.md (V_two_elem): Tweak formatting.
1833         (V_three_elem): Use BLKmode for accesses that have no associated mode.
1834         (V_four_elem): Tweak formatting.
1835         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
1836         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
1837         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
1838         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
1839         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
1840         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
1841         (neon_vst4<mode>): Replace pointer operand with a memory operand.
1842         Use %A in the output template.
1843         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
1844         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
1845         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
1846         the width of the memory access.  Remove post-increment.
1847         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
1848
1849 2011-04-12  Nick Clifton  <nickc@redhat.com>
1850
1851         * config/v850/v850.c (expand_prologue): Do not use the CALLT
1852         instruction for interrupt handlers if the target is the basic V850
1853         architecture.
1854         (expand_epilogue): Likewise.
1855
1856 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1857
1858         PR rtl-optimization/48549
1859         * combine.c (propagate_for_debug): Also stop after BB_END of
1860         this_basic_block.  Process LAST and just stop processing after it.
1861         (combine_instructions): If last_combined_insn has been deleted,
1862         set last_combined_insn to its PREV_INSN.
1863
1864 2011-04-12  Richard Guenther  <rguenther@suse.de>
1865
1866         PR tree-optimization/46076
1867         * gimple.h (struct gimple_statement_call): Add fntype field.
1868         (gimple_call_fntype): Adjust.
1869         (gimple_call_set_fntype): New function.
1870         * gimple.c (gimple_build_call_1): Set the call function type.
1871         * gimplify.c (gimplify_call_expr): Preserve the function
1872         type the frontend used for the call.
1873         (gimplify_modify_expr): Likewise.
1874         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
1875         function type.
1876         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
1877         function type.
1878         * tree-ssa.c (useless_type_conversion_p): Function pointer
1879         conversions are useless.
1880
1881 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1882
1883         * cgraph.h (cgraph_node): Remove function declaration.
1884         (cgraph_create_node): Declare.
1885         (cgraph_get_create_node): Likewise.
1886         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
1887         Updated all callers.
1888         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
1889         the decl does not already exist.  Call cgraph_get_create_node instead
1890         of cgraph_node.
1891         (cgraph_get_create_node): New function.
1892         (cgraph_same_body_alias): Update comment.
1893         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
1894         assert it does not return NULL.
1895         (cgraph_update_edges_for_call_stmt): Likewise.
1896         (cgraph_clone_edge): Likewise.
1897         (cgraph_create_virtual_clone): Likewise.
1898         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
1899         instead of cgraph_node.
1900         (cgraph_add_new_function): Call cgraph_create_node or
1901         cgraph_get_create_node instead of cgraph_node.
1902         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
1903         instead of cgraph_node.
1904         (record_eh_tables): Likewise.
1905         (mark_address): Likewise.
1906         (mark_load): Likewise.
1907         (build_cgraph_edges): Call cgraph_get_create_node instead
1908         of cgraph_node.
1909         (rebuild_cgraph_edges): Likewise.
1910         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
1911         instead of cgraph_node.
1912         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
1913         cgraph_node.
1914         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
1915         cgraph_create_node instead of cgraph_node.
1916         * c-decl.c (finish_function): Call cgraph_get_create_node instead
1917         of cgraph_node.
1918         * lto-cgraph.c (input_node): Likewise.
1919         * lto-streamer-in.c (input_function): Likewise.
1920         * varasm.c (mark_decl_referenced): Likewise.
1921         (assemble_alias): Likewise.
1922
1923 2011-04-12  Martin Jambor  <mjambor@suse.cz>
1924
1925         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
1926         instead of cgraph_node and assert it does not return NULL.
1927         * lto-streamer-in.c (lto_read_body): Likewise.
1928         * omp-low.c (new_omp_context): Likewise.
1929         (create_task_copyfn): Likewise.
1930         * tree-emutls.c (lower_emutls_function_body): Likewise.
1931         * matrix-reorg.c (transform_allocation_sites): Likewise.
1932
1933 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
1934
1935         PR c/48552
1936         * c-typeck.c (build_asm_expr): Error out on attempts to use
1937         void type outputs or inputs for constraints that allow reg or
1938         don't allow memory.
1939
1940 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
1941             Richard Earnshaw  <rearnsha@arm.com>
1942
1943         PR target/48250
1944         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
1945         to use sign-magnitude offsets. Reject unsupported unaligned
1946         cases. Add detailed description in comments.
1947         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
1948         condition from TARGET_32BIT to TARGET_ARM.
1949
1950 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
1951
1952         * tree.h (struct typed_tree): New.
1953         (struct tree_common): Include it instead of tree_base.
1954         (TREE_TYPE): Update for new location of type field.
1955         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
1956         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
1957         (union tree_node): Add typed field.
1958         * treestruct.def (TS_TYPED): New.
1959         * lto-streamer.c (check_handled_ts_structures): Handle it.
1960         * tree.c (MARK_TS_TYPED): New macro.
1961         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
1962
1963 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
1964
1965         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
1966         (force_nonfallthru): Do not alter the loop nest if no basic block
1967         was created.
1968
1969 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
1970
1971         * config/i386/sse.md (VI): New mode iterator.
1972         (SSEMODEI): Remove.
1973         (AVX256MODEI): Ditto.
1974         (AVXMODEF4P): Ditto.
1975         (avxvecpsmode): Ditto.
1976         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
1977         (sse2_andnot<mode>3): New expander.
1978         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
1979         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
1980         (<any_logic:code><mode>3): Use VI mode iterator.
1981         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
1982         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
1983         (*andnottf3): Handle AVX three-operand constraints.
1984         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
1985
1986 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
1987             Robert Millan  <rmh@gnu.org>
1988
1989         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
1990         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
1991         GNU_USER_DYNAMIC_LINKER64): Define.
1992         (REG_NAME): Don't undefine.
1993         (MD_UNWIND_SUPPORT): Undefine.
1994         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
1995         (REG_NAME): Don't undefine.
1996         (MD_UNWIND_SUPPORT): Undefine.
1997         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
1998
1999 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2000
2001         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
2002         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
2003
2004 2011-04-11  Xinliang David Li  <davidxl@google.com>
2005
2006         * value-profile.c (check_ic_target): New function.
2007         (gimple_ic_transform): Sanity check indirect call target.
2008         * gimple-low.c (gimple_check_call_args): Interface change.
2009         (gimple_check_call_matching_types): New function.
2010         * tree-inline.c (tree_can_inline_p): Call new function.
2011
2012 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
2013
2014         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
2015         tree-pretty-print.h & realmpfr.h.
2016
2017 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
2018
2019         PR middle-end/48464
2020         * ira.c (setup_pressure_classes): Fix typo in loop condition.
2021         (setup_allocno_and_important_classes): Ditto.
2022
2023 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2024
2025         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
2026         GNU_USER_DYNAMIC_LINKER.
2027         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
2028         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2029         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
2030         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2031         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2032         GNU_USER_TARGET_OS_CPP_BUILTINS.
2033         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
2034         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2035         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2036         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2037         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
2038         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2039         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2040         GNU_USER_TARGET_OS_CPP_BUILTINS.
2041         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2042         GNU_USER_DYNAMIC_LINKER.
2043         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2044         GNU_USER_TARGET_OS_CPP_BUILTINS.
2045         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
2046         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2047         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
2048         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2049         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
2050         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
2051         GNU_USER_DYNAMIC_LINKER64): Remove.
2052         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
2053         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2054         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2055         GNU_USER_DYNAMIC_LINKER.
2056         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2057         GNU_USER_TARGET_OS_CPP_BUILTINS.
2058         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2059         GNU_USER_TARGET_OS_CPP_BUILTINS.
2060         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
2061         to GNU_USER_TARGET_OS_CPP_BUILTINS.
2062         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
2063         GNU_USER_TARGET_OS_CPP_BUILTINS.
2064         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
2065         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
2066         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2067         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
2068         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2069         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2070         GNU_USER_DYNAMIC_LINKER.
2071         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
2072         GNU_USER_TARGET_OS_CPP_BUILTINS.
2073         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
2074         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2075         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2076         GNU_USER_DYNAMIC_LINKER.
2077         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2078         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2079         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
2080         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2081         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2082         GNU_USER_DYNAMIC_LINKER.
2083         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
2084         GNU_USER_DYNAMIC_LINKERN32.
2085         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
2086         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
2087         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
2088         GNU_USER_DYNAMIC_LINKER32.
2089         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
2090         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2091         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2092         GNU_USER_DYNAMIC_LINKER.
2093         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
2094         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2095         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
2096         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2097         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2098         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
2099         GNU_USER_DYNAMIC_LINKER32.
2100         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
2101         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
2102         GNU_USER_DYNAMIC_LINKER.
2103         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
2104         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2105         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2106         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
2107         GNU_USER_DYNAMIC_LINKER64.
2108         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
2109         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2110         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2111         GNU_USER_DYNAMIC_LINKER.
2112         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
2113         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2114         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
2115         GNU_USER_DYNAMIC_LINKER.
2116         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
2117         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2118         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
2119         GNU_USER_DYNAMIC_LINKER32.
2120         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2121         GNU_USER_DYNAMIC_LINKER64.
2122         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
2123         GNU_USER_DYNAMIC_LINKER64.
2124         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
2125         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2126         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
2127         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
2128         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
2129
2130 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2131
2132         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
2133         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
2134         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
2135         GNU_USER_DYNAMIC_LINKER.
2136         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2137         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
2138         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
2139         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
2140         GNU_USER_DYNAMIC_LINKER64.
2141         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
2142         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
2143         GNU_USER_LINK_EMULATION.
2144         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2145         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
2146         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
2147         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
2148         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
2149         CPP_SPEC, CC1_SPEC): Remove.
2150         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
2151         (GNU_USER_DYNAMIC_LINKER): Define.
2152         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
2153         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
2154         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
2155         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
2156         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
2157         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
2158         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2159         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
2160         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
2161         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
2162         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
2163         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
2164         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
2165         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
2166         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
2167         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
2168         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2169         GNU_USER_DYNAMIC_LINKER.
2170         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2171         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2172         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2173         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2174         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
2175         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
2176         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
2177         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
2178         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
2179         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
2180
2181 2011-04-11  Kai Tietz  <ktietz@redhat.com>
2182
2183         PR target/9601
2184         PR target/11772
2185         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
2186         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
2187         comment.
2188         (ix86_is_msabi_thiscall): Removed.
2189         (ix86_is_type_thiscall): Likewise.
2190         (ix86_get_callcvt): New function.
2191         (ix86_comp_type_attributes): Simplify check.
2192         (ix86_function_regparm): Use ix86_get_callcvt for calling
2193         convention attribute checks.
2194         (ix86_return_pops_args): Likewise.
2195         (ix86_static_chain): Likewise.
2196         (x86_this_parameter): Likewise.
2197         (x86_output_mi_thunk): Likewise.
2198         (ix86_function_type_abi): Optimize check for types without attributes.
2199         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
2200         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
2201         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
2202         by flag-values.
2203         (IX86_BASE_CALLCVT): Helper macro.
2204         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2205         Use ix86_get_callcvt for calling convention attribute checks and avoid
2206         symbol-decoration for stdcall in TARGET_RTD case.
2207         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
2208         Likewise.
2209         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
2210         for declaration.
2211
2212 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
2213
2214         * config/i386/sse.md (VI_128): New mode iterator.
2215         (VI12_128): Rename from SSEMODE12.
2216         (VI14_128): Rename from SSEMODE14.
2217         (VI124_128): New mode iterator.
2218         (VI24_128): Rename from SSEMODE248.
2219         (VI248_128): Rename from SSEMODE248.
2220         (SSEMODE124C8): Remove.
2221         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2222         (*sse2_<plusminus_insn><mode>3): Merge with
2223         *avx_<plusminus_insn><mode>3.
2224         (*mulv8hi3): Merge with *avx_mulv8hi3.
2225         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
2226         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
2227         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
2228         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
2229         (ashr<mode>3): Merge with *avx_ashr<mode>3.
2230         (lshr<mode>3): Merge with *avx_lshr<mode>3.
2231         (ashl<mode>3): Merge with *avx_ashl<mode>3.
2232         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
2233         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
2234         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2235         (*<smaxmin:code>v8hi3): Ditto.
2236         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
2237         (*<smaxmin:code>v16qi3): Ditto.
2238         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
2239         (*sse2_eq<mode>3): Ditto.
2240         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
2241         (*sse2_gt<mode>3): Ditto.
2242         (vcondv2di): Split out of vcond<mode>.
2243         (vconduv2di): Split out of vcondu<mode>.
2244
2245 2011-04-11  Richard Guenther  <rguenther@suse.de>
2246
2247         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
2248         before calling tree_low_cst.
2249
2250 2011-04-11  Richard Guenther  <rguenther@suse.de>
2251
2252         * stor-layout.c (layout_type): Compute all array index size operations
2253         in the original type.
2254         (initialize_sizetypes): Add comment.
2255         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
2256
2257 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
2258
2259         * common.opt (Tbss=, Tdata=, Ttext=): New options.
2260
2261 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2262
2263         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
2264         of cgraph_node, handle NULL return value.
2265         (cgraph_global_info): Likewise.
2266         (cgraph_rtl_info): Likewise.
2267         * tree-inline.c (estimate_num_insns): Likewise.
2268         * gimplify.c (unshare_body): Likewise.
2269         (unvisit_body): Likewise.
2270         (gimplify_body): Likewise.
2271         * predict.c (optimize_function_for_size_p): Likewise.
2272         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
2273         (call_may_clobber_ref_p_1): Likewise.
2274         * varasm.c (function_section_1): Likewise.
2275         (assemble_start_function): Likewise.
2276
2277 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2278
2279         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
2280         of cgraph_node.
2281         * final.c (rest_of_clean_state): Likewise.
2282         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
2283         * passes.c (pass_init_dump_file): Likewise.
2284         (execute_all_ipa_transforms): Likewise.
2285         (function_called_by_processed_nodes_p): Likewise.
2286         * predict.c (maybe_hot_frequency_p): Likewise.
2287         (probably_never_executed_bb_p): Likewise.
2288         (compute_function_frequency): Likewise.
2289         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
2290         (unnest_nesting_tree_1): Likewise.
2291         (lower_nested_functions): Likewise.
2292         * tree-optimize.c (execute_fixup_cfg): Likewise.
2293         (tree_rest_of_compilation): Likewise.
2294         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
2295         * tree-sra.c (ipa_early_sra): Likewise.
2296         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
2297         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
2298         * ipa.c (record_cdtor_fn): Likewise.
2299         * ipa-inline.c (cgraph_early_inlining): Likewise.
2300         (compute_inline_parameters_for_current): Likewise.
2301         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
2302         * ipa-pure-const.c (local_pure_const): Likewise.
2303         * ipa-split.c (split_function): Likewise.
2304         (execute_split_functions): Likewise.
2305         * cgraphbuild.c (build_cgraph_edges): Likewise.
2306         (rebuild_cgraph_edges): Likewise.
2307         (cgraph_rebuild_references): Likewise.
2308         (remove_cgraph_callee_edges): Likewise.
2309         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
2310         (verify_cgraph_node): Likewise.
2311         (cgraph_analyze_functions): Likewise.
2312         (cgraph_preserve_function_body_p): Likewise.
2313         (save_inline_function_body): Likewise.
2314         (save_inline_function_body): Likewise.
2315         * tree-inline.c (copy_bb): Likewise.
2316         (optimize_inline_calls): Likewise.
2317
2318 2011-04-11  Martin Jambor  <mjambor@suse.cz>
2319
2320         PR tree-optimization/48195
2321         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
2322         ipa_check_create_edge_args.
2323         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
2324         ipa_check_create_edge_args.
2325         * ipa-inline.c (inline_generate_summary): Do not call
2326         ipa_check_create_node_params and ipa_check_create_edge_args.
2327         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
2328         ipa_check_create_edge_args.
2329
2330 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
2331
2332         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
2333         instead of loop.
2334         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2335         * function.c (record_hard_reg_sets): Likewise.
2336         * ira.c (compute_regs_asm_clobbered): Likewise.
2337         * sched-deps.c (sched_analyze_1): Likewise.
2338         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
2339
2340 2011-04-09  Xinliang David Li  <davidxl@google.com>
2341
2342         PR tree-optimization/PR48484
2343         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
2344         has_valid_pred lazily
2345
2346 2011-04-09  Duncan Sands  <baldrick@free.fr>
2347
2348         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
2349
2350 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2351
2352         * combine.c (combine_validate_cost): Adjust comments.  Set registered
2353         cost of I0 to zero at the end, if any.
2354
2355 2011-04-08  Xinliang David Li  <davidxl@google.com>
2356
2357         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
2358         to insane profile data.
2359
2360 2011-04-08  Xinliang David Li  <davidxl@google.com>
2361
2362         * ipa-cp.c (ipcp_update_profiling): Correct
2363          negative scale factor due to insane profile data.
2364
2365 2011-04-08  Xinliang David Li  <davidxl@google.com>
2366
2367         * final.c (dump_basic_block_info): New function.
2368         (final): Dump basic block.
2369         (final_scan_insn): Remove old dump.
2370
2371 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2372
2373         PR target/47829
2374         * config.gcc (i386-*-freebsd): Disable unwind table generation for
2375         crtbegin/crtend.
2376
2377 2011-04-08  Michael Matz  <matz@suse.de>
2378
2379         PR middle-end/48389
2380         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
2381         functions.
2382         (rebuild_jump_labels): Call rebuild_jump_labels_1.
2383         * rtl.h (rebuild_jump_labels_chain): Declare.
2384         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
2385         insns inserted on edges.
2386
2387 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
2388
2389         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
2390         * config/arm/arm-arches.def: New.
2391         * config/arm/arm-opts.h: New.
2392         * config/arm/genopt.sh: New.
2393         * config/arm/arm-tables.opt: New (generated).
2394         * config/arm/arm.c (arm_handle_option, arm_target_help,
2395         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
2396         (all_architectures): Get most table contents from arm-arches.def.
2397         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
2398         arm_selected_tune here.
2399         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
2400         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
2401         (march=, mcpu=, mtune=): Use Enum and Var.
2402         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
2403         (arm.o): Update dependencies.
2404
2405 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
2406
2407         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
2408         of header_file.
2409         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
2410         (write_typed_alloc_defns): Likewise.
2411         (main): Calls write_typed_alloc_defns with output_header.
2412
2413 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
2414
2415         PR inline-asm/48435
2416         * ira-color.c (setup_profitable_hard_regs): Add comments.
2417         Don't take prohibited hard regs into account.
2418         (setup_conflict_profitable_regs): Rename to
2419         get_conflict_profitable_regs.
2420         (check_hard_reg_p): Check prohibited hard regs.
2421
2422 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
2423
2424         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
2425         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
2426         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
2427
2428 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2429
2430         PR target/48366
2431         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
2432         move from floating point to shift amount register.
2433         (emit_move_sequence): Remove secondary reload support for floating
2434         point to shift amount amount register copies.
2435         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
2436         amount register copies.
2437         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
2438         register, return false if mode isn't a scalar integer mode.
2439         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
2440
2441 2011-04-08  Richard Guenther  <rguenther@suse.de>
2442
2443         * gimple.c (gimple_call_flags): Remove kludge.
2444
2445 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2446
2447         * sel-sched.c (sel_region_init): Move call to
2448         sel_setup_region_sched_flags after setup_current_loop_nest.
2449
2450 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
2451
2452         PR rtl-optimization/48272
2453         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
2454         init_insn_reg_pressure_info.  Adjust a caller.
2455         * sched-int.h (init_insn_reg_pressure_info): Declare.
2456         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
2457         when sched-pressure is enabled.
2458
2459 2011-04-08  Richard Guenther  <rguenther@suse.de>
2460
2461         * gimple.c (gimple_set_modified): Do not queue calls to
2462         MODIFIED_NORETURN_CALLS here ...
2463         * tree-ssa-operands.c (update_stmt_operands): ... but here.
2464
2465 2011-04-08  Richard Guenther  <rguenther@suse.de>
2466
2467         PR lto/48467
2468         * toplev.c (lang_dependent_init): Do not open asm_out_file
2469         in WPA mode, nor perform debug machinery initialization.
2470         (finalize): Do not unlink asm_out_file in WPA mode.
2471
2472 2011-04-08  Richard Guenther  <rguenther@suse.de>
2473
2474         * gimple.h (gimple_call_fntype): New function.
2475         (gimple_call_return_type): Use it.
2476         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
2477         * gimple-low.c (gimple_check_call_args): Likewise.
2478         * gimple.c (gimple_call_flags): Likewise.
2479         (gimple_call_arg_flags): Likewise.
2480         (gimple_call_return_flags): Likewise.
2481         * tree-cfg.c (verify_gimple_call): Likewise.
2482         (do_warn_unused_result): Likewise.
2483         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
2484         * value-prof.c (gimple_ic_transform): Fix fndecl check.
2485
2486 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
2487
2488         PR rtl-optimization/48235
2489         * sel-sched.c (code_motion_process_successors): Recompute the last
2490         insn in basic block if control flow changed.
2491         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
2492         Update condition for ilist_remove.
2493
2494 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2495
2496         PR rtl-optimization/48302
2497         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
2498         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
2499         it to record added preheader blocks.
2500         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
2501         on to sel_add_loop_preheaders.
2502         (sel_region_init): Move call to setup_current_loop_nest after
2503         sel_init_bbs.
2504
2505 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2506
2507         PR target/48273
2508         * cfgloop.h (loop_has_exit_edges): New helper.
2509         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
2510         non-clonable.
2511         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
2512         that have no exit edges.
2513
2514 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
2515
2516         PR rtl-optimization/48442
2517         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
2518         all callers.  Adjust assert.
2519
2520 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
2521
2522         PR tree-optimization/48377
2523         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
2524         is_packed to true even for types with smaller TYPE_ALIGN than
2525         TYPE_SIZE.
2526
2527 2011-04-08  Richard Guenther  <rguenther@suse.de>
2528
2529         PR bootstrap/48513
2530         * doc/tm.texi: Re-generate.
2531
2532 2011-04-08  Wei Guozhi  <carrot@google.com>
2533
2534         PR target/47855
2535         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
2536         * config/arm/arm.c (arm_attr_length_push_multi): New function.
2537         * config/arm/arm.md (*push_multi): Change the length computation to
2538         call a C function.
2539
2540 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
2541
2542         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
2543         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
2544         * doc/tm.texi: Regenerate.
2545         * system.h (ASM_OUTPUT_BSS): Poison.
2546         * varasm.c (asm_output_bss): Remove function.
2547         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
2548
2549         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
2550         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
2551         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
2552         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2553         Likewise.
2554         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2555         Likewise.
2556         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
2557         Likewise.
2558         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
2559
2560 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2561
2562         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
2563         EnumValue lines.
2564
2565 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
2566
2567         * config/m68k/m68k.c (m68k_handle_option): Don't handle
2568         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
2569         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
2570         OPT_mcpu32.
2571         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2572         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
2573         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
2574         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
2575         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
2576         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
2577         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2578         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
2579         options.  Don't map other m68k options manually.  Don't handle
2580         old-style options as canonical.
2581         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
2582         * doc/install.texi (m68k-*-*): Document binutils version requirement.
2583
2584 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
2585
2586         * basic-block.h (force_nonfallthru): Move to...
2587         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
2588         (force_nonfallthru): ...here.
2589         * cfghooks.c (force_nonfallthru): New function.
2590         * cfgrtl.c (force_nonfallthru): Rename into...
2591         (rtl_force_nonfallthru): ...this.
2592         (commit_one_edge_insertion): Do not set AUX field.
2593         (commit_edge_insertions): Do not discover new basic blocks.
2594         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
2595         (cfg_layout_rtl_cfg_hooks): Likewise.
2596         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
2597         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
2598         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
2599
2600 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
2601
2602         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
2603         Remove macros.
2604
2605 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
2606
2607         * config/i386/sse.md: Update copyright year.
2608         (avxcvtvecmode): Remove.
2609         (sse_movhlps): Merge with *avx_movhlps.
2610         (sse_movlhps): Merge with *avx_movlhps.
2611         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
2612         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
2613         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
2614         (sse_loadhps): Merge with *avx_loadhps.
2615         (sse_storelps): Merge with *avx_storelps.
2616         (sse_loadlps): Merge with *avx_loadlps.
2617         (sse_movss): Merge with *avx_movss.
2618         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
2619         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
2620         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
2621         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
2622         (vec_set<mode>_0): Ditto.
2623         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
2624         (sse4_1_insertps): Merge with *avx_insertps.
2625         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
2626         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
2627         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
2628         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
2629         (sse2_storehpd): Merge with *avx_storehpd.
2630         (sse2_loadhpd): Merge with *avx_loadhpd.
2631         (sse2_loadlpd): Merge with *avx_loadlpd.
2632         (sse2_movsd): Merge with *avx_movsd.
2633         (*vec_concatv2df): Merge with *vec_concatv2df.
2634
2635 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
2636
2637         PR debug/48343
2638         * combine.c (combine_instructions): Add last_combined_insn,
2639         update it if insn is after it, pass it to all try_combine calls.
2640         (try_combine): Add last_combined_insn parameter, pass it instead of
2641         i3 to propagate_for_debug.
2642
2643 2011-04-07  Nick Clifton  <nickc@redhat.com>
2644
2645         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
2646         to handle MDR <-> data register transfers.
2647         (movhi_internal): Likewise.
2648
2649 2011-04-07  Alan Modra  <amodra@gmail.com>
2650
2651         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
2652         previous stack info.
2653
2654 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2655
2656         PR target/43920
2657         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
2658         flow_find_cross_jump.  Swap variables to implement backward replacement.
2659         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
2660
2661 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2662
2663         PR target/43920
2664         * cfgcleanup.c (walk_to_nondebug_insn): New function.
2665         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
2666         and bb2.
2667         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
2668         src1 or src2.  Redirect edges to the last basic block.  Update
2669         frequency and count on multiple basic blocks in case of fallthru.
2670
2671 2011-04-07  Tom de Vries  <tom@codesourcery.com>
2672
2673         PR target/43920
2674         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
2675         function.
2676         (old_insns_match_p): Change return type.  Replace return false/true
2677         with return dir_none/dir_both.  Use can_replace_by.
2678         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
2679         direction from dir_p.  Register replacement direction in dir, last_dir
2680         and afterlast_dir.  Handle new return type of old_insns_match_p using
2681         merge_dir.  Return replacement direction in dir_p.
2682         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
2683         return type of old_insns_match_p.
2684         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
2685         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
2686         flow_find_cross_jump.
2687         * basic-block.h (enum replace_direction): New type.
2688         (flow_find_cross_jump): Add parameter to declaration.
2689
2690 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2691
2692         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
2693         (AVXMODEDCVTPS2DQ): Ditto.
2694         (VEC_FLOAT_MODE): Ditto.
2695         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
2696         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2697         (<any_logic:code><mode>3): Use VF mode iterator.
2698         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
2699         Use VF mode iterator.
2700         (copysign<mode>3): Use VF mode iterator.
2701         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
2702         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
2703         (*<any_logic:code><MODEF:mode>3): Merge with
2704         *avx_<any_logic:code><MODEF:mode>3.
2705         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
2706         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
2707         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
2708         (avx_cvtdq2ps<avxmodesuffix>): Remove.
2709         (sse2_cvtdq2ps): Use %v modifier.
2710         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
2711         (avx_cvtps2dq<avxmodesuffix>): Remove.
2712         (sse2_cvtps2dq): Use %v modifier.
2713         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
2714         (avx_cvttps2dq<avxmodesuffix>): Remove.
2715         (sse2_cvttps2dq): Use %v modifier.
2716         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
2717         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
2718         (sse2_cvtsd2siq): Fix insn template.
2719         (sse2_cvtsd2siq_2): Ditto.
2720         (sse2_cvttsd2siq): Ditto.
2721         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
2722         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
2723
2724 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2725
2726         * gcov-io.c: Use GCC Runtime Library Exception.
2727
2728 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
2729
2730         PR debug/48466
2731         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
2732         as base_reg whatever register reg has been eliminated to, instead
2733         of hardcoding STACK_POINTER_REGNUM.
2734
2735 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
2736
2737         * doc/tm.texi.in: Document C target hooks as separate from general
2738         target hooks.
2739         * doc/tm.texi: Regenerate.
2740         * genhooks.c (struct hook_desc): Add docname field.
2741         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
2742         docname field.
2743         (hook_array): Include c-target.def.
2744         (emit_documentation): Use docname field in output.
2745         (emit_init_macros): Take docname argument.  Only emit definitions
2746         for hooks matching docname.
2747         (main): Expect additional arguments in all cases.  Pass argument
2748         to emit_init_macros.
2749         * target.def: Move initial macro definitions and comments to
2750         target-hooks-macros.h.
2751         (gcc_targetcm): Move to c-family/c-target.def.
2752         * target.h (targetcm): Move declaration to c-family/c-target.h.
2753         * targhooks.c (default_handle_c_option): Move to
2754         c-family/c-opts.c.
2755         * targhooks.h (default_handle_c_option): Move declaration to
2756         c-family/c-common.h.
2757         * target-hooks-macros.h: New file.
2758         * config.gcc (target_has_targetcm): Define and use to add to
2759         c_target_objs and cxx_target_objs.
2760         * config/default-c.c: New file.
2761         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
2762         of target.h and target-def.h.
2763         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
2764         (darwin_objc_construct_string, darwin_cfstring_ref_p,
2765         darwin_check_cfstring_format_arg): Make static.
2766         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2767         TARGET_STRING_OBJECT_REF_TYPE_P,
2768         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
2769         * config/darwin-protos.h (darwin_objc_construct_string,
2770         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
2771         declare.
2772         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
2773         TARGET_STRING_OBJECT_REF_TYPE_P,
2774         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
2775         * config/t-darwin (darwin-c.o): Update dependencies.
2776         * system.h (TARGET_HAS_TARGETCM): Poison.
2777         * Makefile.in (TARGET_H): Update.
2778         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
2779         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
2780         (default-c.o): New target.
2781         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
2782         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
2783         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
2784         c-target.def.
2785         (build/genhooks.o): Update dependencies.
2786
2787 2011-04-06  Richard Guenther  <rguenther@suse.de>
2788
2789         * ipa-inline.c (enum inlining_mode): Remove.
2790         (cgraph_flatten): Use some other token.
2791         (cgraph_edge_early_inlinable_p): New function, split out from ...
2792         (cgraph_perform_always_inlining): New function, split out from ...
2793         (cgraph_decide_inlining_incrementally): ... here.
2794         (cgraph_mark_inline_edge): Adjust.
2795         (cgraph_early_inlining): Re-structure.
2796         (pass_early_inline): Require SSA form.
2797
2798 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
2799             Julian Brown  <julian@codesourcery.com>
2800             Mark Shinwell  <shinwell@codesourcery.com>
2801
2802         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
2803         LO_REGS only for Thumb-1.
2804         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
2805         be used in short instructions when optimising for size on Thumb-2.
2806
2807 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2808
2809         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
2810         associated with user returns to be preserved.
2811
2812 2011-04-06  Tristan Gingold  <gingold@adacore.com>
2813
2814         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
2815         symbol_queue_size, DBXOUT_DECR_NESTING,
2816         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
2817         if XCOFF_DEBUGGING_INFO.
2818
2819 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
2820
2821         * config/i386/i386.md (attribute isa): New.
2822         (attribute enabled): New.
2823         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
2824         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
2825         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
2826         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
2827         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
2828         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2829         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
2830         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
2831
2832         * config/i386/sse.md (VF): New mode iterator.
2833         (VF1): Ditto.
2834         (VF2): Ditto.
2835         (VF_128): Ditto.
2836         (SSEMODEF4): Remove.
2837         (attribute sse): Handle V8SF and V4DF modes.
2838         (<absneg:code><mode>2): Use VF mode iterator.
2839         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
2840         mode iterator.
2841         (<plusminus_insn><mode>3): Use VF mode iterator.
2842         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
2843         Use VF mode iterator.
2844         (<sse>_vm<plusminus_insn><mode>3): Merge with
2845         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
2846         (mul<mode>3): Use VF mode iterator.
2847         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
2848         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
2849         mode iterator.
2850         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
2851         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
2852         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
2853         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
2854         mode iterator.
2855         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
2856         Use VF1 mode iterator.
2857         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
2858         (sqrt<VF2:mode>2): New expander.
2859         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
2860         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
2861         and sqrtv2df2.  Use VF mode iterator.
2862         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
2863         mode iterator.
2864         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
2865         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
2866         Use VF1 mode iterator.
2867         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
2868         (<smaxmin:code><mode>3): Use VF mode iterator.
2869         (*<smaxmin:code><mode>3_finite): Merge with
2870         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
2871         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
2872         (<sse>_vm<smaxmin:code><mode>2): Merge with
2873         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
2874         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
2875         mode iterator.
2876         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
2877         mode iterator.
2878         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
2879         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
2880         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
2881         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
2882         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
2883         VF mode iterator.
2884         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
2885         Use VF_128 mode iterator.
2886         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
2887         mode iterator.
2888         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
2889         VF_128 mode iterator.
2890         (vcond<mode>): Use VF mode iterator.
2891         * config/i386/predicates.md (sse_comparison_operator): Merge with
2892         avx_comparison_float_operator.  Do not declare as special_predicate.
2893         * config/i386/i386.c (struct builtin_description): Update for renamed
2894         compare patterns.
2895         (ix86_expand_args_builtin): Ditto.
2896         (ix86_expand_sse_compare_mask): Ditto.
2897
2898 2011-04-06  Richard Guenther  <rguenther@suse.de>
2899
2900         * tree-inline.c (estimate_num_insns): For calls simply account
2901         for all passed arguments and a used return value.
2902
2903 2011-04-06  Richard Guenther  <rguenther@suse.de>
2904
2905         PR tree-optimization/47663
2906         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
2907         call_stmt_time fields.
2908         (cgraph_edge_inlinable_p): Declare.
2909         (cgraph_edge_recursive_p): New inline function.
2910         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
2911         (cgraph_clone_edge): Copy it.
2912         * ipa-inline.c (cgraph_estimate_edge_time): New function.
2913         Account for call stmt time.
2914         (cgraph_estimate_time_after_inlining): Take edge argument.
2915         (cgraph_estimate_edge_growth): Account call stmt size.
2916         (cgraph_estimate_size_after_inlining): Take edge argument.
2917         (cgraph_mark_inline_edge): Adjust.
2918         (cgraph_check_inline_limits): Likewise.
2919         (cgraph_recursive_inlining_p): Remove.
2920         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
2921         (cgraph_decide_recursive_inlining): Take edge argument and
2922         adjust.
2923         (cgraph_decide_inlining_of_small_functions): Do not avoid
2924         diags for recursive inlining here.
2925         (cgraph_flatten): Adjust.
2926         (cgraph_decide_inlining_incrementally): Likewise.
2927         (estimate_function_body_sizes): Remove call cost handling.
2928         (compute_inline_parameters): Initialize caller edge call costs.
2929         (cgraph_estimate_edge_growth): New function.
2930         (cgraph_estimate_growth): Use it.
2931         (cgraph_edge_badness): Likewise.
2932         (cgraph_check_inline_limits): Take an edge argument.
2933         (cgraph_decide_inlining_of_small_functions): Adjust.
2934         (cgraph_decide_inlining): Likewise.
2935         * tree-inline.c (estimate_num_insns): Only account for call
2936         return value if it is used.
2937         (expand_call_inline): Avoid diagnostics on recursive inline
2938         functions here.
2939         * lto-cgraph.c (lto_output_edge): Output edge call costs.
2940         (input_edge): Input edge call costs.
2941
2942 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2943
2944         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
2945
2946 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
2947
2948         * doc/invoke.texi (Spec Files): Fix typo.
2949
2950 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
2951
2952         * profile.c (branch_prob): Move declaration of local variable.  Remove
2953         obsolete ??? comment.  Expand the location explicitly instead of using
2954         the LOCATION_FILE and LOCATION_LINE macros.
2955
2956 2011-04-06  Wei Guozhi  <carrot@google.com>
2957
2958         PR target/47855
2959         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
2960         (arm_cond_branch): Likewise.
2961         (arm_cond_branch_reversed): Likewise.
2962         (arm_jump): Likewise.
2963         (push_multi): Likewise.
2964         * config/arm/constraints.md (Py): New constraint.
2965
2966 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
2967
2968         PR bootstrap/48471
2969         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
2970         Move these...
2971         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
2972         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
2973         #ifdef DBX_DEBUGGING_INFO.
2974
2975 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
2976
2977         PR bootstrap/48403
2978         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
2979         if old and new states differ.
2980
2981 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
2982
2983         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
2984         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
2985         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
2986         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
2987         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
2988         mcfv4e): Use Alias.
2989         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
2990         ColdFire options to -mcpu= options.
2991
2992 2011-04-05  Jeff Law  <law@redhat.com>
2993
2994         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
2995         check if BB is a successor of LOOP->header and return
2996         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
2997
2998 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
2999
3000         * cprop.c (struct reg_use): Remove.
3001         (reg_use_table): Make an array of RTX.
3002         (find_used_regs, constprop_register, local_cprop_pass,
3003         bypass_block): Simplify users of reg_use_table.
3004         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
3005         on one of the uses found by find_used_regs.
3006
3007 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3008
3009         PR bootstrap/48469
3010         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
3011         declaration.
3012
3013 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3014
3015         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
3016         as an rtx.
3017         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
3018
3019 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
3020
3021         PR middle-end/48441
3022         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
3023
3024 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3025
3026         * combine.c: Include obstack.h.
3027         (struct insn_link): Define.
3028         (uid_log_links): Adjust type.
3029         (FOR_EACH_LOG_LINK): New macro.
3030         (insn_link_obstack): Declare.
3031         (alloc_insn_link): Define.
3032         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
3033         type of link variables.
3034         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
3035         (try_combine, record_promoted_values, distribute_notes): Likewise.
3036         (distribute_links): Likewise.  Tweak prototype.
3037         (clear_log_links): Delete.
3038         (adjust_for_new_dest): Call alloc_insn_link.
3039         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
3040
3041 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3042
3043         * gcse.c (modify_mem_list): Convert to an array of VECs.
3044         (canon_modify_mem_list, compute_transp): Tweak formatting.
3045         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
3046         (load_killed_in_block_p): Likewise.
3047         (record_last_mem_set_info): Likewise.
3048         (clear_modify_mem_tables): Likewise.
3049
3050 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3051
3052         PR middle-end/48461
3053         * function.c (emit_use_return_register_into_block): Only define if
3054         HAVE_return.
3055
3056 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
3057
3058         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
3059
3060 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
3061
3062         * config/rx/rx-opts.h: New.
3063         * config/rx/rx.c (rx_cpu_type): Remove.
3064         (rx_handle_option): Don't assert that global structures are in
3065         use.  Access variables via opts pointer.  Defer most handling of
3066         OPT_mint_register_.  Use error_at.
3067         (rx_option_override): Handle deferred OPT_mint_register_ here.
3068         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
3069         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
3070         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
3071         (rx_cpu_types): New Enum and EnumValue entries.
3072         (mint-register=): Use Defer and use Var accordingly.
3073
3074 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3075
3076         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
3077         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
3078         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
3079         Move these...
3080         (debug_free_queue, debug_nesting, symbol_queue_index):
3081         ...and these...
3082         * dbxout.c: ...to here.  Make static.
3083
3084 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
3085
3086         * gcse.c (modify_pair): Define.  Define a VEC of it.
3087         (canon_modify_mem_list): Convert to an array of VECs.
3088         (free_insn_expr_list_list): Delete.
3089         (clear_modify_mem_tables): Call VEC_free instead.
3090         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
3091         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
3092         (canon_list_insert, compute_transp): Likewise.
3093
3094 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3095
3096         PR target/43920
3097         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
3098         for size.
3099
3100 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3101
3102         PR target/43920
3103         * function.c (emit_use_return_register_into_block): New function.
3104         (thread_prologue_and_epilogue_insns): Use
3105         emit_use_return_register_into_block.
3106
3107 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3108
3109         PR target/43920
3110         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
3111         insn.
3112
3113 2011-04-05  Tom de Vries  <tom@codesourcery.com>
3114
3115         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
3116
3117 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3118
3119         * config/arm/arm.md (define_constants for unspec): Replace with
3120         define_c_enum.
3121         (define_constants for unspecv): Replace with define_c_enum.
3122         * config/arm/neon.md (define_constants for unspec): Replace with
3123         define_c_enum.
3124
3125 2011-04-04  Richard Henderson  <rth@redhat.com>
3126
3127         PR bootstrap/48400
3128         * dwarf2out.c (output_line_info): Always emit line info from
3129         at least one section.
3130         (dwarf2out_init): Create text_section_line_info here ...
3131         (set_cur_line_info_table): ... not here.
3132
3133 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
3134
3135         PR target/48380
3136         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
3137         not called.
3138
3139         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
3140
3141 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
3142
3143         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
3144         (expr_equiv_p): Remove.
3145         (insert_set_in_table): Look at <dest, src> pair instead of expr.
3146         (hash_scan_set): Update call to insert_set_in_table.
3147         (dump_hash_table): Dump <dest, src> pair.
3148         (lookup_set): Simplify.  Lookup <dest, src> pair.
3149         (compute_transp): Remove, fold heavily simplified code into...
3150         (compute_local_properties): ...here.  Expect COMP and TRANSP
3151         unconditionally.
3152         (find_avail_set): Take set directly from struct expr.
3153         (find_bypass-set): Likewise.
3154         (bypass_block): Likewise.
3155         (cprop_insn): Likewise.  Remove redundant INSN_P test.
3156
3157         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
3158         checks on form of COND from find_implicit_sets to here.
3159         (find_implicit_sets): Cleanup control flow. Split critical edges
3160         if it exposes implicit sets.  Allocate/resize implicit_sets as
3161         necessary.
3162         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
3163         changed something.  Run df_analyze after find_implicit_sets if any
3164         edges were split.  Do not allocate implicit_sets here.
3165
3166         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
3167         (gcse_obstack): Renamed to cprop_obstack.
3168         (GNEW, GNEWVEC, GNEWVAR): Remove.
3169         (gmalloc): Remove.
3170         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
3171         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
3172         (gcse_alloc): Likewise, and rename to cprop_alloc.
3173         (alloc_gcse_men, free_gcse_mem): Remove.
3174         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
3175         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
3176         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
3177
3178         * cprop.c (oprs_not_set_p): Remove.
3179         (mark_set, mark_clobber): Remove.
3180         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
3181         (reg_not_set_p): New function.
3182         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
3183         (cprop_insn): Likewise.
3184         (cprop_jump): Use FOR_EACH_EDGE.
3185
3186 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
3187
3188         PR bootstrap/48403
3189         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
3190         (rank_for_schedule): Use scheduled_insns vector instead of
3191         last_scheduled_insn.
3192         (ok_for_early_queue_removal): Likewise.
3193         (queue_to_ready): Search forward in nonscheduled_insns_begin if
3194         we have a dbg_cnt.
3195         (choose_ready): Likewise.
3196         (commit_schedule): Use VEC_iterate.
3197         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
3198         a dbg_cnt, use it and ensure the first insn is in the ready list.
3199         (haifa_sched_init): Allocate scheduled_insns.
3200         (sched_extend_ready_list): Don't allocate it; reserve space.
3201         (haifa_sched_finish): Free it.
3202
3203 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3204
3205         * optc-gen.awk: Always remove type from Variable entry before
3206         recording in var_seen.
3207
3208 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
3209
3210         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
3211         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
3212         call to tidy_fallthru_edges.
3213
3214 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
3215
3216         * doc/options.texi (ToLower): Document.
3217         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
3218         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
3219         * opts.h (cl_option): Add cl_tolower field.
3220         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
3221         arguments with lowercase strings.
3222         * config/rx/rx.opt (mcpu=): Add ToLower.
3223         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
3224         argument.
3225
3226 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3227
3228         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
3229
3230 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
3231
3232         * config/vax/vax.c: Include reload.h.
3233
3234 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
3235
3236         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
3237         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3238         (sparc_preferred_reload_class): New function.
3239
3240 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
3241
3242         PR debug/48401
3243         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3244         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
3245
3246 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
3247
3248         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
3249         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
3250
3251 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
3252
3253         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
3254         (ASM_OUTPUT_ALIGNED_BSS): Define.
3255
3256 2011-04-03  Michael Matz  <matz@suse.de>
3257
3258         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
3259         and next_slot members.
3260         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
3261         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
3262         (lto_streamer_cache_append): Declare.
3263         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
3264         unsigned index, remove offset parameter, ensure that we append
3265         or update existing entries.
3266         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
3267         parameter, update next_slot for append.
3268         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
3269         parameter.
3270         (lto_streamer_cache_insert_at): Likewise.
3271         (lto_streamer_cache_append): New function.
3272         (lto_streamer_cache_lookup): Use unsigned index.
3273         (lto_streamer_cache_get): Likewise.
3274         (lto_record_common_node): Don't test tree_node_can_be_shared.
3275         (preload_common_node): Adjust call to lto_streamer_cache_insert.
3276         (lto_streamer_cache_delete): Don't free offsets member.
3277         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
3278         (lto_output_string_with_length): Use lto_output_data_stream.
3279         (lto_output_tree_header): Remove ix parameter, don't write it.
3280         (lto_output_builtin_tree): Likewise.
3281         (lto_write_tree): Adjust callers to above, don't track and write
3282         offset, write unsigned index.
3283         (output_unreferenced_globals): Don't emit all global vars.
3284         (write_global_references): Use unsigned indices.
3285         (lto_output_decl_state_refs): Likewise.
3286         (write_symbol): Likewise.
3287         * lto-streamer-in.c (lto_input_chain): Move earlier.
3288         (input_function): Use unsigned index.
3289         (input_alias_pairs): Don't read and then ignore all global vars.
3290         (lto_materialize_tree): Remove ix_p parameter, don't read index,
3291         don't pass it back, use lto_streamer_cache_append.
3292         (lto_register_var_decl_in_symtab): Use unsigned index.
3293         (lto_register_function_decl_in_symtab): Likewise.
3294         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
3295         index.
3296         (lto_get_builtin_tree): Don't read index, use
3297         lto_streamer_cache_append.
3298         (lto_read_tree): Adjust call to lto_materialize_tree.
3299
3300         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
3301         don't use function calls in arguments to MIN.
3302
3303         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
3304         twice.
3305
3306         * gimple.c (gimple_type_leader_entry): Mark deletable.
3307
3308 2011-04-03  Alan Modra  <amodra@gmail.com>
3309
3310         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
3311
3312 2011-04-03  Michael Matz  <matz@suse.de>
3313
3314         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
3315         an integer.
3316         * tree.h (tree_decl_non_common.vindex): Adjust comment.
3317
3318 2011-04-03  Michael Matz  <matz@suse.de>
3319
3320         * cgraphbuild.c (record_reference): Canonicalize constructor values.
3321         * gimple-fold.c (canonicalize_constructor_val): Accept being called
3322         without function context.
3323         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
3324         current_function_decl and cfun.
3325
3326 2011-04-03  Michael Matz  <matz@suse.de>
3327
3328         * tree.c (decl_init_priority_insert): Don't create entry for
3329         default priority.
3330         (decl_fini_priority_insert): Ditto.
3331         (fields_compatible_p, find_compatible_field): Remove.
3332         * tree.h (fields_compatible_p, find_compatible_field): Remove.
3333         * gimple.c (gimple_compare_field_offset): Adjust block comment.
3334
3335 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
3336
3337         * combine.c (try_combine): Remove useless local variable.
3338
3339 2011-04-03  Richard Guenther  <rguenther@suse.de>
3340             Ira Rosen  <ira.rosen@linaro.org>
3341
3342         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
3343         non-variable offsets and compare the remaining bases of the two
3344         accesses instead of looking for exact same data-ref.
3345
3346 2011-04-02  Kai Tietz  <ktietz@redhat.com>
3347
3348         PR target/48416
3349         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
3350
3351         * i386.c (ix86_is_msabi_thiscall): New helper function.
3352         (ix86_is_type_thiscall): New helper function.
3353         (ix86_comp_type_attributes): Handle thiscall for method-functions
3354         special.
3355         (init_cumulative_args): Likewise.
3356         (find_drap_reg): Likewise.
3357         (ix86_static_chain): Likewise.
3358         (x86_this_parameter): Likewise.
3359         (x86_output_mi_thunk): Likewise.
3360
3361 2011-04-01  Olivier Hainque  <hainque@adacore.com>
3362             Nicolas Setton  <setton@adacore.com>
3363             Eric Botcazou  <ebotcazou@adacore.com>
3364
3365         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
3366         (add_gnat_descriptive_type_attribute): New function.
3367         (gen_array_type_die): Call it.
3368         (gen_enumeration_type_die): Likewise.
3369         (gen_struct_or_union_type_die): Likewise.
3370         (modified_type_die): Likewise.
3371         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
3372         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
3373         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
3374
3375 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3376
3377         PR bootstrap/48148
3378         * dwarf2out.c (resolve_addr): Don't call force_decl_die
3379         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
3380
3381         Revert:
3382         2011-03-17  Richard Guenther  <rguenther@suse.de>
3383
3384         PR bootstrap/48148
3385         * lto-cgraph.c (input_overwrite_node): Clear the abstract
3386         origin for decls in other ltrans units.
3387         (input_varpool_node): Likewise.
3388
3389 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
3390
3391         PR middle-end/48335
3392         * expr.c (expand_assignment): Handle all possibilities
3393         if TO_RTX is CONCAT.
3394         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
3395         (store_split_bit_field): If SUBREG_REG (op0) or
3396         op0 itself has smaller mode than word, return it
3397         for offset 0 and const0_rtx for out-of-bounds stores.
3398         If word is const0_rtx, skip it.
3399
3400 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
3401
3402         * config/h8300/h8300.c (print_operand_address): Rename to...
3403         (h8300_print_operand_address): ...this. Make static. Adjust comments.
3404         Call h8300_print_operand and h8300_print_operand_address instead of
3405         print_operand and print_operand_address. Declare.
3406         (print_operand): Renake to...
3407         (h8300_print_operand): ...this. Make static. Adjust comments.
3408         Call h8300_print_operand instead of print_operand. Declare.
3409         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
3410         (h8300_register_move_cost): Likewise.
3411         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
3412         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
3413         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
3414         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
3415         * config/h8300/h8300-protos.h (print_operand): Delete.
3416         (print_operand_address): Delete.
3417
3418 2011-04-01  Richard Henderson  <rth@redhat.com>
3419
3420         PR 48400
3421         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
3422         in strict mode before dwarf4.  Re-order tests to early out
3423         before switching sections.
3424
3425 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
3426
3427         * config/h8300/constraints.md: New file.
3428         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
3429         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
3430         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
3431         * config/h8300/predicates.md (bit_operand): Likewise.
3432         (incdec_operand): Use satisfies_constraint_M and
3433         satisfies_constraint_O.  Don't use C code block.
3434         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
3435         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
3436         (compute_mov_length): Use satisfies_constraint_G.
3437         (fix_bit_operand): Use satisfies_constraint_U.
3438         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
3439         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
3440         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
3441         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
3442         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
3443         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
3444         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
3445         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
3446         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
3447         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
3448         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
3449         (EXTRA_MEMORY_CONSTRAINT): Delete.
3450
3451 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
3452             Michael Meissner  <meissner@linux.vnet.ibm.com>
3453
3454         PR target/48262
3455         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
3456         operands, as per the specifications.
3457
3458         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
3459         (vec_extract_evenv4sf): Ditto.
3460         (vec_extract_evenv8hi): Ditto.
3461         (vec_extract_evenv16qi): Ditto.
3462         (vec_extract_oddv4si): Ditto.
3463
3464 2011-03-31  Mark Wielaard  <mjw@redhat.com>
3465
3466         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
3467         high_pc attribute if the CU has no associated code. Only output
3468         DW_AT_entry_pc for CU if not generating strict dwarf and
3469         dwarf_version < 4.
3470
3471 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
3472
3473         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
3474         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
3475         out of ...
3476         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
3477         * final.c (final_start_function): Call the new function rather
3478         than using a NULL argument for dwarf2out_frame_debug.
3479
3480         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
3481         that contains the prologue.
3482
3483         * haifa-sched.c (queue_insn): New arg REASON.  All callers
3484         changed.  Print it in debugging output.
3485
3486         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
3487
3488         * sched-ebb.c (begin_schedule_ready): Remove second argument.
3489         Split most of the code into...
3490         (begin_move_insn): ... here.  New function.
3491         (ebb_sched_info): Add a pointer to it.
3492         * haifa-sched.c (scheduled_insns): New static variable.
3493         (sched_extend_ready_list): Allocate it.
3494         (schedule_block): Use it to record the order of scheduled insns.
3495         Perform RTL changes to move insns only after all scheduling
3496         decisions have been made.
3497         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
3498         begin_move_insn field.
3499         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3500         * sched-int.h (struct haifa_sched_info): Remove second argument
3501         from begin_schedule_ready hook.  Add new member begin_move_insn.
3502         * sched-rgn.c (begin_schedule_ready): Remove second argument.
3503         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
3504
3505         * haifa-sched.c (prune_ready_list): New function, broken out of
3506         schedule_block.
3507         (schedule_block): Use it.
3508
3509 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3510
3511         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
3512
3513 2011-04-01  Kai Tietz  <ktietz@redhat.com>
3514
3515         * config.gcc (*-*-mingw*): Allow as option the
3516         posix threading model.
3517         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
3518         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
3519         definition.
3520         (CPP_SPEC): Add pthread/no-pthread handling.
3521         (LIB_SPEC): Likewise.
3522         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
3523         (LIB_SPEC): Likewise.
3524         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
3525         flag to pass -pthread option for shared libgcc build.
3526         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
3527         for shared libgcc build.
3528         * config/i386/t-mingw-pthread: New file.
3529         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
3530         New define to enable use of library pthread by default.
3531         * config/i386/mingw.opt (pthread): New driver option.
3532         (no-pthread): New driver option.
3533         * config/i386/cygming.opt: Make sure trailing empty line is retained.
3534         * config/i386/mingw-w64.opt: Likewise.
3535
3536 2011-04-01  Gary Funck <gary@intrepid.com>
3537
3538         * c-decl.c (grokdeclarator): Fix formatting.
3539
3540 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3541
3542         * expr.c (emit_block_move_via_movmem): Use n_generator_args
3543         instead of n_operands.
3544         (set_storage_via_setmem): Likewise.
3545         * optabs.c (maybe_gen_insn): Likewise.
3546         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
3547         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
3548         (mips_expand_builtin_direct): Likewise.
3549         * config/spu/spu.c (expand_builtin_args): Likewise.
3550
3551 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3552
3553         * recog.h (insn_data_d): Add n_generator_args.
3554         * genoutput.c (data): Likewise.
3555         (output_insn_data): Print it.
3556         (max_opno, num_dups): Delete.
3557         (scan_operands): Just fill in "d->operand[...]".
3558         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
3559
3560 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
3561
3562         * gensupport.h (pattern_stats): New structure.
3563         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
3564         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
3565         (max_operand_1, max_operand_vec): Delete.
3566         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
3567
3568 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
3569
3570         * emit-rtl.c (emit_pattern_after_setloc): New function.
3571         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
3572         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
3573         (emit_pattern_after): New function.
3574         (emit_insn_after, emit_jump_insn_after): Call it.
3575         (emit_call_insn_after, emit_debug_insn_after): Likewise.
3576         (emit_pattern_before_setloc): New function.
3577         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
3578         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
3579         Likewise.
3580         (emit_pattern_before): New function.
3581         (emit_insn_before, emit_jump_insn_before): Call it.
3582         (emit_call_insn_before, emit_debug_insn_before): Likewise.
3583
3584 2011-03-31  Richard Henderson  <rth@redhat.com>
3585
3586         * dwarf2out.c (dw_separate_line_info_ref): Remove.
3587         (dw_separate_line_info_entry): Remove.
3588         (enum dw_line_info_opcode): New.
3589         (dw_line_info_entry): Use it.
3590         (dw_line_info_table, dw_line_info_table_p): New.
3591         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
3592         (line_info_table, line_info_label_num): Remove.
3593         (line_info_table_in_use): Remove.
3594         (separate_line_info_table): Remove.
3595         (separate_line_info_table_allocated): Remove.
3596         (separate_line_info_table_in_use): Remove.
3597         (LINE_INFO_TABLE_INCREMENT): Remove.
3598         (line_info_label_num): New.
3599         (cur_line_info_table): New.
3600         (text_section_line_info, cold_text_section_line_info): New.
3601         (separate_line_info): New.
3602         (SEPARATE_LINE_CODE_LABEL): Remove.
3603         (print_dwarf_line_table): Remove.
3604         (debug_dwarf): Don't dump it.
3605         (output_one_line_info_table): New.
3606         (output_line_info): Use it.
3607         (new_line_info_table): New.
3608         (set_cur_line_info_table): New.
3609         (dwarf2out_switch_text_section): Use it.
3610         (dwarf2out_begin_function): Likewise.
3611         (push_dw_line_info_entry): New.
3612         (dwarf2out_source_line): Rewrite for new line info tables.
3613         (dwarf2out_init): Remove dead initailizations.
3614
3615 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3616
3617         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
3618         various flags.
3619         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
3620         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
3621         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
3622         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
3623         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
3624         * opt-functions.awk (flag_init, switch_bit_fields): New.
3625         (switch_flags): Don't handle flags moved to bit-fields.  Don't
3626         generate CL_MISSING_OK or CL_SAVE.
3627         * optc-gen.awk: Update to generate bit-field output as well as
3628         flags field.
3629         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
3630         bit-field instead of CL_REJECT_DRIVER flag.
3631         * opts-common.c (generate_canonical_option,
3632         decode_cmdline_option): Use bit-fields instead of CL_* flags.
3633         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
3634         instead of CL_REJECT_NEGATIVE flag.
3635         * toplev.c (print_switch_values): Use cl_report bit-field instead
3636         of CL_REPORT flag.
3637
3638 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3639
3640         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
3641         a zero minimum index only if it is redundant.
3642
3643 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3644
3645         PR rtl-optimization/48381
3646         * ira-color.c (assign_hard_reg): Use hard reg set intersection
3647         instead of ira_class_hard_reg_index for calculating conflicting
3648         hard registers.
3649
3650 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
3651
3652         * cprop.c: Clean up hash table building.
3653         (reg_avail_info): Remove.
3654         (oprs_available_p): Remove.
3655         (record_last_reg_set_info): Remove.
3656         (record_last_set_info): Remove.
3657         (reg_available_p): New function.
3658         (gcse_constant_p): Do not treat unfolded conditions as constants.
3659         (make_set_regs_unavailable): New function.
3660         (hash_scan_set): Simplify with new reg_available_p.
3661         (compute_hash_table_work): Traverse insns stream only once.
3662         Do not compute reg_avail_info. Traverse insns in reverse order.
3663         Record implicit sets after recording explicit sets from the block.
3664
3665 2011-03-31  Michael Matz  <matz@suse.de>
3666
3667         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
3668
3669 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
3670
3671         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
3672         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
3673         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3674         (h8300_mode_dependent_address_p): New function.
3675         (h8300_get_index): Make static.
3676
3677 2011-03-31  Jeff Law  <law@redhat.com>
3678
3679         * reload1.c (elimination_effects): Fix typo in recent change.
3680
3681         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
3682         typo potentially leading to null pointer dereference.
3683
3684         * caller-save.c (new_saved_hard_reg): Eliminate return value.
3685         (setup_save_areas): Corresponding changes to avoid useless
3686         assignments.
3687
3688         * jump.c (reversed_comparison_code_parts): Avoid successive return
3689         statements when REVERSE_CONDITION is defined.
3690
3691         * expr.c (expand_assignment): Avoid useless assignments.
3692         (expand_expr_real_1): Likewise.
3693         (expand_expr_real_2): Avoid useless statements.
3694
3695         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
3696
3697         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
3698
3699         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
3700         statements.
3701
3702         * stmt.c (expand_expr_stmt): Avoid useless assignment.
3703
3704 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
3705
3706         PR target/47109
3707         * doc/tm.texi.in (TARGET_VERSION): Remove.
3708         * doc/tm.texi: Regenerate.
3709         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
3710         * collect2.c (main): Don't use TARGET_VERSION.
3711         * mips-tdump.c (main): Don't use TARGET_VERSION.
3712         * mips-tfile.c (main): Don't use TARGET_VERSION.
3713         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
3714         * config/rs6000/vxworksae.h: Remove.
3715         * config/alpha/alpha.h (TARGET_VERSION): Remove.
3716         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
3717         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
3718         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
3719         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3720         * config/arm/arm.h (TARGET_VERSION): Remove.
3721         * config/arm/coff.h (TARGET_VERSION): Remove.
3722         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
3723         * config/arm/elf.h (TARGET_VERSION): Remove.
3724         * config/arm/freebsd.h (TARGET_VERSION): Remove.
3725         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
3726         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
3727         * config/arm/pe.h (TARGET_VERSION): Remove.
3728         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
3729         * config/arm/semi.h (TARGET_VERSION): Remove.
3730         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
3731         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
3732         * config/arm/vxworks.h (TARGET_VERSION): Remove.
3733         * config/avr/avr.h (TARGET_VERSION): Remove.
3734         * config/bfin/bfin.h (TARGET_VERSION): Remove.
3735         * config/fr30/fr30.h (TARGET_VERSION): Remove.
3736         * config/frv/frv.h (TARGET_VERSION): Remove.
3737         * config/h8300/h8300.h (TARGET_VERSION): Remove.
3738         * config/i386/cygwin.h (TARGET_VERSION): Remove.
3739         * config/i386/darwin.h (TARGET_VERSION): Remove.
3740         * config/i386/darwin64.h (TARGET_VERSION): Remove.
3741         * config/i386/djgpp.h (TARGET_VERSION): Remove.
3742         * config/i386/freebsd.h (TARGET_VERSION): Remove.
3743         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
3744         * config/i386/gnu.h (TARGET_VERSION): Remove.
3745         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
3746         * config/i386/i386elf.h (TARGET_VERSION): Remove.
3747         * config/i386/linux.h (TARGET_VERSION): Remove.
3748         * config/i386/linux64.h (TARGET_VERSION): Remove.
3749         * config/i386/lynx.h (TARGET_VERSION): Remove.
3750         * config/i386/mingw32.h (TARGET_VERSION): Remove.
3751         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
3752         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
3753         * config/i386/netware.h (TARGET_VERSION): Remove.
3754         * config/i386/nto.h (TARGET_VERSION): Remove.
3755         * config/i386/openbsd.h (TARGET_VERSION): Remove.
3756         * config/i386/vxworks.h (TARGET_VERSION): Remove.
3757         * config/ia64/elf.h (TARGET_VERSION): Remove.
3758         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
3759         * config/ia64/hpux.h (TARGET_VERSION): Remove.
3760         * config/ia64/linux.h (TARGET_VERSION): Remove.
3761         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
3762         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
3763         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3764         * config/lm32/lm32.h (TARGET_VERSION): Remove.
3765         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
3766         * config/m32c/m32c.h (TARGET_VERSION): Remove.
3767         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
3768         * config/m32r/m32r.h (TARGET_VERSION): Remove.
3769         * config/m68k/linux.h (TARGET_VERSION): Remove.
3770         * config/m68k/m68k.h (TARGET_VERSION): Remove.
3771         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
3772         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
3773         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
3774         * config/mep/mep.h (TARGET_VERSION): Remove.
3775         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
3776         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3777         * config/mips/iris6.h (MACHINE_TYPE): Remove.
3778         * config/mips/linux.h (TARGET_VERSION): Remove.
3779         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
3780         * config/mips/vxworks.h (TARGET_VERSION): Remove.
3781         * config/mmix/mmix.h (TARGET_VERSION): Remove.
3782         * config/mn10300/linux.h (TARGET_VERSION): Remove.
3783         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
3784         * config/pa/pa.h (TARGET_VERSION): Remove.
3785         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
3786         * config/picochip/picochip.h (TARGET_VERSION): Remove.
3787         * config/rs6000/aix.h (TARGET_VERSION): Remove.
3788         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
3789         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
3790         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
3791         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
3792         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
3793         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
3794         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
3795         * config/rs6000/linux.h (TARGET_VERSION): Remove.
3796         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
3797         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
3798         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
3799         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
3800         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
3801         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
3802         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
3803         * config/s390/linux.h (TARGET_VERSION): Remove.
3804         * config/s390/s390.h (TARGET_VERSION): Remove.
3805         * config/s390/tpf.h (TARGET_VERSION): Remove.
3806         * config/score/score.h (TARGET_VERSION): Remove.
3807         * config/sh/linux.h (TARGET_VERSION): Remove.
3808         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
3809         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
3810         * config/sh/sh.h (TARGET_VERSION): Remove.
3811         * config/sh/sh64.h (TARGET_VERSION): Remove.
3812         * config/sh/superh.h (TARGET_VERSION): Remove.
3813         * config/sh/vxworks.h (TARGET_VERSION): Remove.
3814         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
3815         * config/sparc/linux.h (TARGET_VERSION): Remove.
3816         * config/sparc/linux64.h (TARGET_VERSION): Remove.
3817         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
3818         TARGET_NAME32, TARGET_NAME): Remove.
3819         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
3820         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
3821         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
3822         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
3823         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
3824         * config/spu/spu.h (TARGET_VERSION): Remove.
3825         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
3826         * config/v850/v850.h (TARGET_VERSION): Remove.
3827         * config/vax/linux.h (TARGET_VERSION): Remove.
3828         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
3829         * config/xtensa/elf.h (TARGET_VERSION): Remove.
3830         * config/xtensa/linux.h (TARGET_VERSION): Remove.
3831
3832 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
3833
3834         PR target/48142
3835         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
3836         frame-related from frame-unrelated adjustments to the stack pointer.
3837
3838 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
3839
3840         * common.opt (fdebug-types-section): Move earlier.
3841         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
3842
3843 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
3844
3845         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
3846         var.
3847
3848 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
3849
3850         * tree.h (CASE_CHAIN): Define.
3851         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
3852         (gimple_redirect_edge_and_branch): Likewise.
3853
3854 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3855
3856         PR middle-end/48367
3857         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
3858         calculation.
3859
3860 2011-03-30  Jeff Law  <law@redhat.com>
3861
3862         * PR bootstrap/48371
3863         * reload1.c (reload): Fix botch in last change.
3864
3865         * reload.h (struct reload): Fix typo introduced in last change.
3866
3867 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3868
3869         * config/arm/arm.opt (mhard-float, msoft-float): Mark
3870         Undocumented.  Remove help text.
3871         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
3872         -mhard-float.
3873
3874 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
3875
3876         * doc/options.texi (NegativeAlias): Document.
3877         (Alias): Mention NegativeAlias.
3878         * opt-functions.awk: Handle NegativeAlias.
3879         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
3880         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
3881         * opts.h (CL_NEGATIVE_ALIAS): Define.
3882         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
3883         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
3884         OPT_mspe_.
3885         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
3886         Alias entries.
3887         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
3888         mno-spe and mno-isel instead of mspe=no and -misel=no.
3889
3890 2011-03-29  Mark Wielaard  <mjw@redhat.com>
3891
3892         * common.opt (fdebug-types-section): New flag.
3893         * doc/invoke.texi: Document new -fno-debug-types-section flag.
3894         * dwarf2out.c (use_debug_types): New define.
3895         (struct die_struct): Mark die_id with GTY desc use_debug_types.
3896         (print_die): Guard output of type unit signatures using
3897         use_debug_types.
3898         (build_abbrev_table): Replace assert of dwarf_version >= 4
3899         with assert on use_debug_types.
3900         (size_of_die): Likewise.
3901         (unmark_dies): Likewise.
3902         (value_format): Decide AT_ref_external form on use_debug_types.
3903         (output_die): Replace dwarf_version version check guard with
3904         use_debug_types where appropriate.
3905         (modified_type_die): Likewise.
3906         (gen_reference_type_die): Likewise.
3907         (dwarf2out_start_source_file): Likewise.
3908         (dwarf2out_end_source_file): Likewise.
3909         (prune_unused_types_walk_attribs): Likewise.
3910         (dwarf2out_finish): Likewise.
3911
3912 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
3913
3914         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
3915
3916 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3917
3918         PR rtl-optimization/48332
3919         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
3920         mode of input operand N and modeN to its actual mode.
3921
3922 2011-03-30  Jeff Law  <law@redhat.com>
3923
3924         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
3925         define accessor macro.
3926         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
3927         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
3928         (reg_equiv_init): Likewise.
3929         (reg_equivs_size): New variable.
3930         (reg_equiv_init_size): Remove.
3931         (allocate_initial_values): Move prototype to here from....
3932         * integrate.h (allocate_initial_values): Remove prototype.
3933         * integrate.c: Include reload.h.
3934         (allocate_initial_values): Corresponding changes.
3935         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
3936         (fix_reg_equiv_init, no_equiv): Corresponding changes.
3937         (update_equiv_regs): Corresponding changes.
3938         (ira): Corresponding changes.
3939         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
3940         (push_secondary_reload): Corresponding changes.
3941         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
3942         (make_memloc, find_reloads_address): Corresponding changes.
3943         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
3944         (find_reloads_address_1): Corresponding changes.
3945         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
3946         (refers_to_regno_for_reload_p): Corresponding changes.
3947         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
3948         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
3949         * reload1.c: Include ggc.h.
3950         (grow_reg_equivs): New function.
3951         (replace_pseudos_in, reload): Corresponding changes.
3952         (calculate_needs_all_insns, alter_regs): Corresponding changes.
3953         (eliminate_regs_1, elimination_effects): Corresponding changes.
3954         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
3955         (delete_output_reload): Likewise.
3956         * caller-save.c (mark_referenced_regs): Corresponding changes.
3957         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
3958         * frv/predicates.md (frv_load_operand): Corresponding changes.
3959         * microblaze/microblaze.c (double_memory_operand): Corresponding
3960         changes.
3961         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
3962         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
3963         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
3964         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
3965         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
3966         changes.
3967         * pa/pa.c (emit_move_sequence): Corresponding changes.
3968         * vax/vax.c (nonindexed_address_p): Corresponding changes.
3969
3970 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3971
3972         PR target/47551
3973         * config/arm/arm.c (coproc_secondary_reload_class): Handle
3974         structure modes.  Don't check neon_vector_mem_operand for
3975         vector or structure modes.
3976
3977 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
3978             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3979
3980         PR target/43590
3981         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
3982         operand 1 and reshuffle the operands to match.
3983         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
3984
3985 2011-03-30  Christian Schüler  <cschueler@gmx.de>
3986
3987         PR driver/48208
3988         * config/c.opt (F): Added 'Driver' to -F option.
3989
3990         PR driver/48260
3991         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
3992           handler function.
3993         * config/darwin.opt: Added '-arch' option.
3994
3995 2011-03-30  Nick Clifton  <nickc@redhat.com>
3996
3997         * config/rx/rx.md: Add peepholes and patterns to combine
3998         extending loads and simple arithmetic instructions.
3999         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
4000         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
4001         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
4002         modes to use pre-decrement and post-increment addressing.
4003         (rx_is_restricted_memory_address): Add range checking of REG+INT
4004         addresses.
4005         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
4006         (rx_memory_move_cost): Adjust cost of stores.
4007         (rx_adjust_insn_length): New function.
4008
4009 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
4010
4011         PR c/48305
4012         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
4013         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
4014         matching arg00/arg01 types.
4015
4016 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
4017
4018         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
4019         last_location to UNKNOWN_LOCATION.
4020
4021 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
4022
4023         PR target/48349
4024         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
4025         FLOAT_SSE_REGS.
4026
4027 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
4028             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4029
4030         PR bootstrap/48337
4031         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
4032         Init(PROCESSOR_V7).
4033         (sparc_cpu): Likewise.
4034         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
4035         PROCESSOR_V7.
4036
4037 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4038
4039         PR target/48336
4040         PR middle-end/48342
4041         PR rtl-optimization/48345
4042         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
4043         hard regs for given mode from profitable regs when doing secondary
4044         allocation.
4045
4046 2011-03-29  Jeff Law  <law@redhat.com>
4047
4048         PR bootstrap/48327
4049         * tree-ssa-threadupdate.c (struct redirection_data): Remove
4050         do_not_duplicate field.
4051         (lookup_redirection_data): Corresponding changes.
4052         (create_duplicates): Always create a template block.
4053         (redirect_edges): Remove code which reused the original block
4054         when it was going to become unreachable code.
4055         (thread_block): Don't set do_not_duplicate field.
4056
4057 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
4058
4059         * lto-opts.c (register_user_option_p, lto_register_user_option):
4060         Make type argument unsigned.
4061         * lto-streamer.h (lto_register_user_option): Make type argument
4062         unsigned.
4063         * opth-gen.awk: Make CL_* macros unsigned.
4064         * opts-common.c (find_opt): Make lang_mask argument unsigned.
4065         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
4066         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
4067         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
4068         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
4069         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
4070         (find_opt): Make lang_mask argument unsigned.
4071
4072 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4073
4074         PR rtl-optimization/48331
4075         PR rtl-optimization/48334
4076         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
4077         for any used algorithm.
4078
4079 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
4080
4081         * ira-conflicts.c (build_object_conflicts): Add unused attribute
4082         to parent_max.
4083
4084 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
4085
4086         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
4087         (alpha_option_override): Don't set alpha_sr_alias_set.
4088         (emit_frame_store_1): Use gen_frame_mem rather than calling
4089         set_mem_alias_set.
4090         (alpha_expand_epilogue): Ditto.
4091
4092 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
4093
4094         PR tree-optimization/48290
4095         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
4096         vectorization, check that relevant phis in the basic block after
4097         the inner loop are really inner loop's exit phis.
4098
4099 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
4100
4101         PR debug/48190
4102         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
4103         (cached_dw_loc_list_def): New structure.
4104         (cached_dw_loc_list): New typedef.
4105         (cached_dw_loc_list_table): New variable.
4106         (cached_dw_loc_list_table_hash): New function.
4107         (cached_dw_loc_list_table_eq): Likewise.
4108         (add_location_or_const_value_attribute): Take a bool cache_p.
4109         Cache the list when the parameter is true.
4110         (gen_formal_parameter_die): Update caller.
4111         (gen_variable_die): Likewise.
4112         (dwarf2out_finish): Likewise.
4113         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
4114         while generating debug info for the decl.
4115         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
4116         (dwarf2out_init): Initialize cached_dw_loc_list_table.
4117         (resolve_addr): Cache the result of resolving a chain of
4118         location lists.
4119
4120 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
4121
4122         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
4123         conflict object hard regset nodes have intersecting hard reg sets.
4124
4125         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
4126         after regstat_init_n_sets_and_refs.
4127
4128         * ira.c: Add more comments at the top.
4129         (setup_stack_reg_pressure_class, setup_pressure_classes):
4130         Add comments how we compute the register pressure classes.
4131         (setup_allocno_and_important_classes): Add more comments.
4132         (setup_class_translate_array, reorder_important_classes)
4133         (setup_reg_class_relations): Add comments.
4134
4135         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
4136         start of the file.
4137
4138         * ira-color.c: Add 2011 to the Copyright line.
4139         (assign_hard_reg):  Add more comments.
4140         (improve_allocation): Ditto.
4141
4142         * ira-costs.c: Add 2011 to the Copyright line.
4143         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
4144         comments.
4145         (setup_regno_cost_classes_by_mode): Ditto.
4146
4147         Initial patches from ira-improv branch:
4148
4149         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4150
4151         * ira-build.c (ira_create_object): Remove initialization of
4152         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
4153         (ira_create_allocno): Remove initialization of
4154         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
4155         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
4156         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4157         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
4158         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
4159         Initialize ALLOCNO_ADD_DATA.
4160         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
4161         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
4162         ALLOCNO_REG.
4163         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
4164         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
4165
4166         * ira.c (ira_reallocate): Remove.
4167         (setup_pressure_classes): Call
4168         ira_init_register_move_cost_if_necessary.  Use
4169         ira_register_move_cost instead of ira_get_register_move_cost.
4170         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
4171         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
4172
4173         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
4174         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
4175         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
4176         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
4177         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
4178         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
4179         Fix formatting.
4180         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
4181         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4182         (struct allocno_color_data): New.
4183         (allocno_color_data_t): New typedef.
4184         (allocno_color_data): New definition.
4185         (ALLOCNO_COLOR_DATA): New macro.
4186         (struct object_color_data): New.
4187         (object_color_data_t): New typedef.
4188         (object_color_data): New definition.
4189         (OBJECT_COLOR_DATA): New macro.
4190         (update_copy_costs, calculate_allocno_spill_cost): Call
4191         ira_init_register_move_cost_if_necessary.  Use
4192         ira_register_move_cost instead of ira_get_register_move_cost.
4193         (move_spill_restore, update_curr_costs): Ditto.
4194         (allocno_spill_priority): Make it inline.
4195         (color_pass): Allocate and free allocno_color_dat and object_color_data.
4196         (struct coalesce_data, coalesce_data_t): New.
4197         (allocno_coalesce_data): New definition.
4198         (ALLOCNO_COALESCE_DATA): New macro.
4199         (merge_allocnos, coalesced_allocno_conflict_p): Use
4200         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
4201         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
4202         (coalesce_allocnos): Ditto.
4203         (setup_coalesced_allocno_costs_and_nums): Ditto.
4204         (collect_spilled_coalesced_allocnos): Ditto.
4205         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
4206         (setup_slot_coalesced_allocno_live_ranges): Ditto.
4207         (coalesce_spill_slots): Ditto.
4208         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
4209         free allocno_coalesce_data.
4210
4211         * ira-conflicts.c: Fix formatting.
4212         (process_regs_for_copy): Call
4213         ira_init_register_move_cost_if_necessary.  Use
4214         ira_register_move_cost instead of ira_get_register_move_cost.
4215         (build_object_conflicts): Optimize.
4216
4217         * ira-costs.c (record_reg_classes): Optimize.  Call
4218         ira_init_register_move_cost_if_necessary.  Use
4219         ira_register_move_cost, ira_may_move_in_cost, and
4220         ira_may_move_out_cost instead of ira_get_register_move_cost and
4221         ira_get_may_move_cost.
4222         (record_address_regs): Ditto.
4223         (scan_one_insn): Optimize.
4224         (find_costs_and_classes): Optimize.
4225         (process_bb_node_for_hard_reg_moves): Call
4226         ira_init_register_move_cost_if_necessary.  Use
4227         ira_register_move_cost instead of ira_get_register_move_cost.
4228
4229         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
4230         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
4231         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
4232         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
4233         definitions.
4234         (ira_initiate_emit_data, ira_finish_emit_data)
4235         (create_new_allocno): New functions.
4236         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
4237         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
4238         Use ira_register_move_cost instead of ira_get_register_move_cost.
4239
4240         * ira-int.h: Fix some comments.
4241         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
4242         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
4243         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
4244         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
4245         add_data.
4246         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
4247         bitfield after mode.  Make hard_regno a short int.  Make
4248         hard_regno short.  Remove first_coalesced_allocno and
4249         next_coalesced_allocno.  Move mem_optimized_dest_p,
4250         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
4251         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
4252         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
4253         temp, colorable_p.  Add new member add_data.
4254         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
4255         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
4256         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
4257         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
4258         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
4259         (ALLOCNO_ADD_DATA): New macro.
4260         (ira_emit_data_t): New typedef.
4261         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
4262         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
4263         from struct ira_allocno.
4264         (ALLOCNO_EMIT_DATA): New macro.
4265         (ira_allocno_emit_data, allocno_emit_reg): New.
4266         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
4267         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
4268         (OBJECT_ADD_DATA): New macro.
4269         (ira_reallocate): Remove.
4270         (ira_initiate_emit_data, ira_finish_emit_data): New.
4271         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
4272         (ira_init_register_move_cost_if_necessary): New.
4273         (ira_object_conflict_iter_next): Merge into
4274         ira_object_conflict_iter_cond.
4275         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
4276
4277         * ira-live.c (process_single_reg_class_operands): Call
4278         ira_init_register_move_cost_if_necessary.  Use
4279         ira_register_move_cost instead of ira_get_register_move_cost.
4280
4281         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
4282
4283         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
4284
4285         * ira-costs.c: Fix formatting.
4286         (cost_classes, cost_classes_num): Remove.
4287         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
4288         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
4289         (cost_classes_del, cost_classes_htab): New.
4290         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
4291         (initiate_regno_cost_classes, setup_cost_classes): New.
4292         (setup_regno_cost_classes_by_aclass): New.
4293         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
4294         (record_reg_classes): Use regno_cost_classes instead of
4295         cost_classes.  Move checking opposite operand up.
4296         (record_address_regs): Use regno_cost_classes
4297         instead of cost_classes.
4298         (scan_one_insn): Ditto.  Use always general register.
4299         (print_allocno_costs): Use regno_cost_classes instead of
4300         cost_classes.
4301         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
4302         (find_costs_and_classes): Set up cost classes for each registers.
4303         Use also their mode for this.  Use regno_cost_classes instead of
4304         cost_classes.
4305         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
4306         cost_classes.
4307         (free_ira_costs, ira_init_costs): Don't use cost_classes.
4308         (ira_costs, ira_set_pseudo_classes): Call
4309         initiate_regno_cost_classes and finish_regno_cost_classes.
4310
4311         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4312
4313         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
4314
4315         * target.def (ira_cover_classes): Remove.
4316
4317         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
4318
4319         * doc/tm.texi.in: Ditto.
4320
4321         * ira-conflicts.c: Remove mentioning cover classes from the file.
4322         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
4323         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
4324
4325         * targhooks.c (default_ira_cover_classes): Remove.
4326
4327         * targhooks.h (default_ira_cover_classes): Ditto.
4328
4329         * haifa-sched.c: Remove mentioning cover classes from the file.
4330         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4331         ira_pressure_classes and ira_pressure_classes_num instead of
4332         ira_reg_class_cover_size and ira_reg_class_cover.  Use
4333         sched_regno_pressure_class instead of sched_regno_cover_class.
4334         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
4335         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4336
4337         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
4338         classes from the file.
4339         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
4340         (struct object_hard_regs, struct object_hard_regs_node): New.
4341         (struct ira_object): New members profitable_hard_regs,
4342         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
4343         (struct ira_allocno): Rename cover_class to aclass.  Rename
4344         cover_class_cost and updated_cover_class_cost to class_cost and
4345         updated_class_cost.  Remove splay_removed_p and
4346         left_conflict_size.  Add new members colorable_p.
4347         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
4348         (ALLOCNO_COLORABLE_P): New macro.
4349         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
4350         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
4351         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
4352         (OBJECT_...): Rename parameter C to O.
4353         (OBJECT_PROFITABLE_HARD_REGS): New macro.
4354         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
4355         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
4356         (struct target_ira_int): New members x_ira_max_memory_move_cost,
4357         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
4358         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
4359         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
4360         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
4361         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
4362         x_ira_reg_class_subunion.
4363         (ira_max_memory_move_cost, ira_max_register_move_cost)
4364         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
4365         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
4366         (ira_important_class_nums, ira_reg_class_superunion): New macros.
4367         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
4368         (ira_reg_class_union): Rename to ira_reg_class_subunion.
4369         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4370         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4371         (ira_tune_allocno_costs_and_cover_classes): Rename to
4372         ira_tune_allocno_costs.
4373         (ira_debug_hard_regs_forest): New.
4374         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
4375         (ira_object_conflict_iter_next): Fix comments.
4376         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
4377         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
4378         cover_class to aclass.
4379         (ira_allocate_and_accumulate_costs): Ditto.
4380         (ira_allocate_and_set_or_copy_costs): Ditto.
4381
4382         * opts.c (decode_options): Remove ira_cover_class check.
4383
4384         * ira-color.c: Remove mentioning cover classes from the file.  Use
4385         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
4386         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
4387         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4388         (splay-tree.h): Remove include.
4389         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
4390         before copy_freq_compare_func.
4391         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
4392         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
4393         New definitions.
4394         (hard_regs_roots, hard_regs_node_vec): Ditto.
4395         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
4396         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
4397         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
4398         (create_new_object_hard_regs_node): Ditto.
4399         (add_new_object_hard_regs_node_to_forest): Ditto.
4400         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
4401         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
4402         Ditto.
4403         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
4404         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
4405         (remove_unused_object_hard_regs_nodes): Ditto.
4406         (enumerate_object_hard_regs_nodes): Ditto.
4407         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
4408         (object_hard_regs_subnode_t): Ditto.
4409         (struct object_hard_regs_subnode): Ditto.
4410         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
4411         (setup_object_hard_regs_subnode_index): Ditto.
4412         (get_object_hard_regs_subnodes_num): Ditto.
4413         (form_object_hard_regs_nodes_forest): Ditto.
4414         (finish_object_hard_regs_nodes_tree): Ditto.
4415         (finish_object_hard_regs_nodes_forest): Ditto.
4416         (allocnos_have_intersected_live_ranges_p): Rename to
4417         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4418         (pseudos_have_intersected_live_ranges_p): Rename to
4419         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
4420         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
4421         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
4422         (update_copy_costs): Remove assert.  Skip cost update if the hard
4423         reg does not belong the class.
4424         (assign_hard_reg): Process only profitable hard regs.
4425         (uncolorable_allocnos_num): Make it scalar.
4426         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
4427         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
4428         and ira_reg_class_max_nregs.
4429         (bucket_allocno_compare_func): Check frequency first.
4430         (sort_bucket): Add compare function as a parameter.
4431         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
4432         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
4433         (push_allocno_to_stack): Rewrite for checking new allocno
4434         colorability.
4435         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
4436         (push_only_colorable): Pass new parameter to sort_bucket.
4437         (push_allocno_to_spill): Remove.
4438         (allocno_spill_priority_compare): Make it inline and rewrite.
4439         (splay_tree_allocate, splay_tree_free): Remove.
4440         (allocno_spill_sort_compare): New function.
4441         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
4442         build and use splay tree.  Choose first allocno in uncolorable
4443         allocno bucket to spill.  Remove setting spill cost.
4444         (all_conflicting_hard_regs): Remove.
4445         (setup_allocno_available_regs_num): Check only profitable hard
4446         regs.  Print info about hard regs nodes.
4447         (setup_allocno_left_conflicts_size): Remove.
4448         (put_allocno_into_bucket): Don't call
4449         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
4450         (improve_allocation): New.
4451         (color_allocnos): Call setup_profitable_hard_regs,
4452         form_object_hard_regs_nodes_forest, improve_allocation,
4453         finish_object_hard_regs_nodes_forest.  Setup spill cost.
4454         (print_loop_title): Use pressure classes.
4455         (color_allocnso): Ditto.
4456         (do_coloring): Remove allocation and freeing splay_tree_node_pool
4457         and allocnos_for_spilling.
4458         (ira_sort_regnos_for_alter_reg): Don't setup members
4459         {first,next}_coalesced_allocno.
4460         (color): Remove allocating and freeing removed_splay_allocno_vec.
4461         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
4462         prohibited_class_mode_regs.
4463
4464         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
4465         formatting.
4466         (update_allocno_pressure_excess_length): Use pressure classes.
4467         (inc_register_pressure, dec_register_pressure): Check for pressure
4468         class.
4469         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
4470         pressure class.  Use ira_reg_class_nregs instead of
4471         ira_reg_class_max_nregs.
4472         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
4473         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
4474         (single_reg_class): Use ira_reg_class_nregs instead of
4475         ira_reg_class_max_nregs.
4476         (process_bb_node_lives): Use pressure classes.
4477
4478         * ira-emit.c: Remove mentioning cover classes from the file.  Use
4479         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4480         (change_loop): Use pressure classes.
4481         (modify_move_list): Call ira_set_allocno_class instead of
4482         ira_set_allocno_cover_class.
4483
4484         * ira-build.c: Remove mentioning cover classes from the file.  Use
4485         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
4486         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
4487         ALLOCNO_UPDATED_CLASS_COST instead of
4488         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
4489         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
4490         (ira_create_allocno): Remove initialization of
4491         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
4492         ALLOCNO_COLORABLE_P.
4493         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
4494         Update conflict regs for the objects.
4495         (create_cap_allocno): Remove assert.  Don't propagate
4496         ALLOCNO_AVAILABLE_REGS_NUM.
4497         (ira_free_allocno_costs): New function.
4498         (finish_allocno): Change a part of code into call of
4499         ira_free_allocno_costs.
4500         (low_pressure_loop_node_p): Use pressure classes.
4501         (object_range_compare_func): Don't compare classes.
4502         (setup_min_max_conflict_allocno_ids): Ditto.
4503
4504         * loop-invariant.c: Remove mentioning cover classes from the file.
4505         Use ira_pressure_classes and ira_pressure_classes_num instead of
4506         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
4507         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
4508         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4509         Use reg_allocno_class instead of reg_cover_class.
4510         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
4511         STACK_REG_COVER_CLASS.
4512         (get_regno_cover_class): Rename to get_regno_pressure_class.
4513         (move_loop_invariants): Initialize and finalize regstat.
4514
4515         * ira.c: Remove mentioning cover classes from the file.  Add
4516         comments about coloring without cover classes.  Use ALLOCNO_CLASS
4517         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
4518         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
4519         setup_class_subset_and_memory_move_costs.
4520         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
4521         (setup_cover_and_important_classes): Rename to
4522         setup_allocno_and_important_classes.
4523         (setup_class_translate_array): New.
4524         (setup_class_translate): Call it for allocno and pressure classes.
4525         (cover_class_order): Rename to allocno_class_order.
4526         (comp_reg_classes_func): Use ira_allocno_class_translate instead
4527         of ira_class_translate.
4528         (reorder_important_classes): Set up ira_important_class_nums.
4529         (setup_reg_class_relations): Set up ira_reg_class_superunion.
4530         (print_class_cover): Rename to print_classes.  Add parameter.
4531         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
4532         Print pressure classes too.
4533         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
4534         setup_reg_subclasses.
4535         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4536         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4537         (setup_prohibited_class_mode_regs): Use
4538         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
4539         (clarify_prohibited_class_mode_regs): New function.
4540         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
4541         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
4542         (ira_init_once): Initialize them.
4543         (free_register_move_costs): Process them.
4544         (ira_init): Move calls of find_reg_classes and
4545         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
4546         Call clarify_prohibited_class_mode_regs.
4547         (ira_no_alloc_reg): Remove.
4548         (too_high_register_pressure_p): Use pressure classes.
4549
4550         * sched-deps.c: Remove mentioning cover classes from the file.
4551         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
4552         ira_pressure_classes and ira_pressure_classes_num instead of
4553         ira_reg_class_cover_size and ira_reg_class_cover.
4554         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
4555         sched_regno_pressure_class instead of sched_regno_cover_class.
4556         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
4557         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
4558
4559         * ira.h: Add 2010 to Copyright.
4560         (ira_no_alloc_reg): Remove external.
4561         (struct target_ira): Rename x_ira_hard_regno_cover_class,
4562         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
4563         x_ira_class_translate to x_ira_hard_regno_allocno_class,
4564         x_ira_allocno_classes_num, x_ira_allocno_classes, and
4565         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
4566         x_ira_pressure_classes, x_ira_pressure_class_translate, and
4567         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
4568         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
4569         x_ira_no_alloc_regs.
4570         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
4571         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
4572         ira_allocno_classes_num and ira_allocno_classes.
4573         (ira_class_translate): Rename to ira_allocno_class_translate.
4574         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
4575         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
4576         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
4577         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
4578         (ira_no_alloc_regs): New.
4579
4580         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
4581         classes from the file.  Use ALLOCNO_CLASS instead of
4582         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
4583         ALLOCNO_COVER_CLASS_COST.
4584         (regno_cover_class): Rename to regno_aclass.
4585         (record_reg_classes): Use ira_reg_class_subunion instead of
4586         ira_reg_class_union.
4587         (record_address_regs): Check overflow.
4588         (scan_one_insn): Ditto.
4589         (print_allocno_costs): Print total mem cost fore regional allocation.
4590         (print_pseudo_costs): Use REG_N_REFS.
4591         (find_costs_and_classes): Use classes intersected with them on the
4592         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
4593         ira_reg_class_union.  Use ira_allocno_class_translate and
4594         regno_aclass instead of ira_class_translate and regno_cover_class.
4595         Modify code for finding regno_aclass.  Setup preferred classes for
4596         the next pass.
4597         (setup_allocno_cover_class_and_costs): Rename to
4598         setup_allocno_class_and_costs.  Use regno_aclass instead of
4599         regno_cover_class.  Use ira_set_allocno_class instead of
4600         ira_set_allocno_cover_class.
4601         (init_costs, finish_costs): Use regno_aclass instead of
4602         regno_cover_class.
4603         (ira_costs): Use setup_allocno_class_and_costs instead of
4604         setup_allocno_cover_class_and_costs.
4605         (ira_tune_allocno_costs_and_cover_classes): Rename to
4606         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
4607         by processing objects.  Use ira_reg_class_max_nregs instead of
4608         ira_reg_class_nregs.
4609
4610         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
4611
4612         * sched-int.h: Remove mentioning cover classes from the file.
4613         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
4614
4615         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
4616         classes from the file.
4617         (struct reg_pref): Rename coverclass into allocnoclass.
4618         (reg_cover_class): Rename to reg_allocno_class.
4619
4620         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
4621
4622         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
4623
4624         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4625
4626         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
4627
4628         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
4629
4630         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
4631
4632         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
4633
4634         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
4635
4636         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
4637
4638         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
4639
4640         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
4641         (i386_ira_cover_classes): Ditto.
4642
4643         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4644
4645         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
4646
4647         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
4648
4649         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
4650
4651         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
4652
4653         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
4654
4655         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
4656         (mips_ira_cover_classes): Ditto.
4657
4658         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
4659
4660         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
4661
4662         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
4663
4664         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
4665
4666         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
4667
4668         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
4669         (IRA_COVER_CLASSES_VSX): Ditto.
4670
4671         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
4672         (rs6000_ira_cover_classes): Ditto.
4673
4674         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
4675
4676         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
4677
4678         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
4679
4680         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
4681
4682         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
4683
4684         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
4685
4686         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
4687
4688         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
4689
4690         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
4691
4692         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
4693
4694 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
4695
4696         PR debug/48253
4697         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
4698         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
4699         dw_fde_unlikely_section_end_label, cold_in_std_section,
4700         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
4701         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
4702         fields.
4703         (output_fde): Use dw_fde_second_{begin,end} if second is
4704         true, otherwise dw_fde_{begin,end}.
4705         (output_call_frame_info): Test dw_fde_second_begin != NULL
4706         instead of dw_fde_switched_sections.
4707         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
4708         fields, initialize new fields.  Initialize in_std_section
4709         unconditionally from the first partition.
4710         (dwarf2out_end_epilogue): Don't override dw_fde_end when
4711         dw_fde_second_begin is non-NULL.
4712         (dwarf2out_switch_text_section): Stop initializing removed
4713         dw_fde_struct fields, initialize new fields, initialize
4714         also dw_fde_end here.  Set dw_fde_switch_cfi even when
4715         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
4716         (struct var_loc_list_def): Add last_before_switch field.
4717         (arange_table, arange_table_allocated, arange_table_in_use,
4718         ARANGE_TABLE_INCREMENT, add_arange): Removed.
4719         (size_of_aranges): Count !in_std_section and !second_in_std_section
4720         hunks in fdes, instead of looking at arange_table_in_use.
4721         (output_aranges): Add aranges_length argument, don't call
4722         size_of_aranges here.  Instead of using aranges_table*
4723         emit ranges for fdes when !in_std_section resp.
4724         !second_in_std_section.
4725         (dw_loc_list): Break ranges crossing section switch.
4726         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
4727         use dw_fde_second_end instead of dw_fde_end as end of last range.
4728         (gen_subprogram_die): Don't call add_arange.  Use
4729         dw_fde_{begin,end} for first partition and if switched
4730         section dw_fde_second_{begin,end} for the second.
4731         (var_location_switch_text_section_1,
4732         var_location_switch_text_section): New functions.
4733         (dwarf2out_begin_function): Initialize cold_text_section even
4734         when function_section () isn't text_section.
4735         (prune_unused_types): Don't walk arange_table.
4736         (dwarf2out_finish): Don't needlessly test
4737         flag_reorder_blocks_and_partition when testing cold_text_section_used.
4738         If info_section_emitted, call size_of_aranges and if it indicates
4739         non-empty .debug_aranges, call output_aranges with the computed
4740         size.  Stop using removed dw_fde_struct fields, use
4741         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
4742         for second.
4743
4744         PR debug/48203
4745         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
4746         create ENTRY_VALUE if incoming or address of incoming's MEM
4747         is a hard REG.
4748         * dwarf2out.c (mem_loc_descriptor): Don't emit
4749         DW_OP_GNU_entry_value of DW_OP_fbreg.
4750         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
4751         on ENTRY_VALUE is able to find the canonical parameter VALUE.
4752         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
4753         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
4754         ENTRY_VALUE_EXPs.
4755         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
4756         is a REG_P or MEM_P with REG_P address, compute hash directly
4757         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
4758         (preserve_only_constants): Don't clear VALUES forwaring
4759         ENTRY_VALUE to some other VALUE.
4760
4761 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
4762
4763         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
4764         instead of GEN_INT.
4765
4766 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4767
4768         * cfgexpand.c (expand_gimple_cond): Always set the source location and
4769         block before expanding the statement.
4770         (expand_gimple_stmt_1): Likewise.  Set them here...
4771         (expand_gimple_stmt): ...and not here.  Tidy.
4772         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
4773         unknown.
4774
4775 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4776
4777         * Makefile.in: New rule for cprop.o.
4778         * gcse.c: Move constant/copy propagation to cprop.c.
4779         (compute_local_properties): Only handle expression tables.
4780         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
4781         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
4782         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
4783         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
4784         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
4785         compute_cprop_data, find_used_regs, try_replace_reg,
4786         find_avail_set, cprop_jump, constprop_register, cprop_insn,
4787         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
4788         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
4789         find_bypass_set, reg_killed_on_edge, bypass_block,
4790         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
4791         execute_rtl_cprop, pass_rtl_cprop): Move to...
4792         * cprop.c: ...here.  New file, constant/copy propagation for RTL
4793         moved from gcse.c to here with minor cleanups in duplicated code.
4794
4795 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
4796
4797         * config/i386/i386.c (flag_opts): Fix a typo in
4798         -mavx256-split-unaligned-store.
4799
4800 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4801
4802         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4803         LIBCALL_VALUE): Remove macros.
4804         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4805         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4806         (h8300_function_value, h8300_libcall_value,
4807         h8300_function_value_regno_p): New functions.
4808
4809 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
4810
4811         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
4812
4813 2011-03-28  Jeff Law  <law@redhat.com>
4814
4815         * tree-ssa-threadupdate.c (redirect_edges): Call
4816         create_edge_and_update_destination_phis as needed.
4817         (create_edge_and_update_destination_phis): Accept new BB argument.
4818         All callers updated.
4819         (thread_block): Do not update the profile when threading around
4820         intermediate blocks.
4821         (thread_single_edge): Likewise.
4822         (determine_bb_domination_status): If BB is not a successor of the
4823         loop header, return NONDOMINATING.
4824         (register_jump_thread): Note when we register a jump thread around
4825         an intermediate block.
4826         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
4827         (thread_across_edge): Use it.
4828
4829 2011-03-28  Tristan Gingold  <gingold@adacore.com>
4830
4831         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
4832         when for_return is 2.
4833
4834 2011-03-28  Jeff Law  <law@redhat.com>
4835
4836         * var-tracking.c (canonicalize_values_mark): Delete unused
4837         lhs assignment.
4838         (canonicalize_values_star, set_variable_part): Likewise.
4839         (clobber_variable_part, delete_variable_part): Likewise.
4840
4841 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
4842
4843         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
4844
4845 2011-03-28  Martin Jambor  <mjambor@suse.cz>
4846
4847         * tree-inline.c (expand_call_inline): Do not check that destination
4848         node is analyzed.
4849         (optimize_inline_calls): Assert that destination node is analyzed.
4850         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
4851         not call tree_lowering_passes.
4852         * cgraph.h (cgraph_analyze_function): Declare.
4853         * cgraphunit.c (cgraph_analyze_function): Make public.
4854
4855 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
4856
4857         * config/sparc/sparc-opts.h: New.
4858         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
4859         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
4860         (sparc_option_override): Store processor_type enumeration rather
4861         than string in cpu_default.  Remove name and enumeration from
4862         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
4863         without using sparc_select.  Use target_flags_explicit instead of
4864         fpu_option_set.
4865         * config/sparc/sparc.h (enum processor_type): Move to
4866         sparc-opts.h.
4867         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
4868         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
4869         HeaderInclude entry.
4870         (mcpu=, mtune=): Use Var and Enum.
4871         (sparc_processor_type): New Enum and EnumValue entries.
4872
4873 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4874             Iain Sandoe  <iains@gcc.gnu.org>
4875
4876         PR target/48245
4877         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
4878
4879 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
4880
4881         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
4882         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
4883         Insert new statements at it in lieu of STMT.
4884         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
4885         * tree-vect-stmts.c (vectorizable_store): Likewise.
4886         (vectorizable_load): Likewise.
4887
4888 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
4889
4890         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
4891         (divtf3): Ditto.
4892         (multf3): Ditto.
4893         (subtf3): Ditto.
4894
4895 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4896
4897         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
4898         unaligned 256bit load/store.
4899         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
4900         (*avx_movdqu<avxmodesuffix>): Likewise.
4901
4902 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4903
4904         PR target/48288
4905         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
4906         * config/pa/pa.md (iordi3): Use new predicate in expander.
4907         (iorsi3): Likewise.
4908
4909 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
4910
4911         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
4912         FUNCTION_VALUE_REGNO_P): Remove macros.
4913         * config/mips/mips-protos.h (mips_function_value): Remove.
4914         * config/mips/mips.c (mips_function_value): Rename to...
4915         (mips_function_value_1): ... this. Make static.  Handle receiving
4916         the function type in 'fn_decl_or_type' argument.
4917         (mips_function_value, mips_libcall_value,
4918         mips_function_value_regno_p): New function.
4919         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4920         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4921
4922 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
4923
4924         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
4925         and -mavx256-split-unaligned-store.
4926         (ix86_option_override_internal): Split 32-byte AVX unaligned
4927         load/store by default.
4928         (ix86_avx256_split_vector_move_misalign): New.
4929         (ix86_expand_vector_move_misalign): Use it.
4930
4931         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
4932         -mavx256-split-unaligned-store.
4933
4934         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
4935         256bit load/store.  Generate unaligned store on misaligned memory
4936         operand.
4937         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
4938         256bit load/store.
4939         (*avx_movdqu<avxmodesuffix>): Likewise.
4940
4941         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
4942         -mavx256-split-unaligned-store.
4943
4944 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4945
4946         PR target/38598
4947         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
4948         Update commentary.
4949
4950 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
4951
4952         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
4953         opno arguments with an expand_operand.  Use create_input_operand.
4954         (mips_prepare_builtin_target): Delete.
4955         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
4956         functions.
4957         (mips_expand_builtin_direct): Use create_output_operand and
4958         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
4959         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
4960         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
4961
4962 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
4963
4964         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
4965         function.
4966         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4967
4968 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
4969
4970         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
4971         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
4972         basic blocks and call commit_edge_insertions directly.
4973         (fixup_abnormal_edges): Move from here to...
4974         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
4975         on the edges and return whether some have actually been inserted.
4976         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
4977         compensation code.
4978
4979 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
4980
4981         PR rtl-optimization/48144
4982         * sel-sched-ir.c (merge_history_vect): Factor out from ...
4983         (merge_expr_data): ... here.
4984         (av_set_intersect): Rename to av_set_code_motion_filter.
4985         Update all callers.  Call merge_history_vect when an expression
4986         is found in both sets.
4987         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
4988
4989 2011-03-26  Alan Modra  <amodra@gmail.com>
4990
4991         * config/rs6000/predicates.md (word_offset_memref_op): Handle
4992         cmodel medium addresses.
4993         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
4994         64-bit gpr loads and stores.
4995         (rs6000_secondary_reload_ppc64): New function.
4996         * config/rs6000/rs6000-protos.h: Declare it.
4997         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
4998
4999 2011-03-26  Alan Modra  <amodra@gmail.com>
5000
5001         PR target/47487
5002         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
5003         GNU Go in traceback table.
5004
5005 2011-03-25  Richard Henderson  <rth@redhat.com>
5006
5007         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
5008         if there are exactly 6 operands.
5009         (set_storage_via_setmem): Similarly.
5010
5011 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5012
5013         * collect2.c (write_c_file_stat): Handle backslash
5014         as right-hand directory separator.
5015         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
5016         checking just for slash.
5017         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
5018         instead of checking for trailing slash.
5019         * gcc.c (record_temp_file): Use filename_cmp instead
5020         of strcmp.
5021         (do_spec_1): Likewise.
5022         (replace_outfile_spec_function): Likewise.
5023         (is_directory): Use filename_ncmp instead of strncmp.
5024         (print_multilib_info): Likewise.
5025         * gcov.c (find_source): Use filename_cmp instead
5026         instead of strcmp.
5027         (make_gcov_file_name): Fix order of slash/backslash
5028         checks.
5029         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
5030         (add_standard_paths): Likewise.
5031         * mips-tfile.c (saber_stop): Handle backslash.
5032         * prefix.c (update_path): Use filename_ncmp instead of
5033         strncmp.
5034         * profile.c (output_location): Use filename_cmp instead
5035         of strcmp.
5036         * read-md.c (handle_toplevel_file): Handle backslash.
5037         * tlink.c (frob_extension):  Likewise.
5038         * tree-cfg.c (same_line_p): Use filename_cmp instead of
5039         strcmp.
5040         * tree-dump.c (dequeue_and_dump): Handle backslash.
5041         * tree.c (get_file_function_name): Likewise.
5042         * gengtype.c (read_input_list): Likewise.
5043         (get_file_realbasename): Likewise.
5044         (get_output_file_with_visibility): Use filename_cmp
5045         instead of strcmp.
5046
5047 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
5048
5049         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
5050         case to VFPv1.
5051
5052 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5053
5054         * fold-const.c (expr_location_or): New function.
5055         (fold_truth_not_expr): Call it.
5056
5057 2011-03-25  Jeff Law  <law@redhat.com>
5058
5059         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
5060         va_end.
5061         * c-family/c-common.c (def_fn_type): Likewise.
5062         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
5063         * emit-rtl.c (gen_rtvec): Likewise.
5064         * lto/lto-lang.c (def_fn_type): Likewise.
5065
5066 2011-03-25  Richard Guenther  <rguenther@suse.de>
5067
5068         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
5069         also generate copies.
5070         (fini_copy_prop): Handle constant values properly.
5071
5072 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
5073
5074         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
5075         mode size instead of bitsize with DWARF2_ADDR_SIZE.
5076         (hash_loc_operands, compare_loc_operands): Handle
5077         DW_OP_GNU_entry_value.
5078
5079 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5080
5081         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
5082         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
5083         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
5084         comment and use macro TARGET_64BIT_MS_ABI instead.
5085         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
5086         and change default behavior for 32-bit MS_ABI.
5087         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
5088         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
5089         32-bit, too.
5090         (ix86_cfun_abi): Likewise.
5091         (ix86_maybe_switch_abi): Adjust comment.
5092         (init_cumulative_args): Check for bit-ness in MS_ABI case.
5093         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
5094         instead of checking for SYSV_ABI.
5095         (ix86_nsaved_sseregs): Likewise.
5096         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
5097         to 16 bytes.
5098         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
5099         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
5100         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
5101         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
5102         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
5103
5104 2011-03-25  Richard Guenther  <rguenther@suse.de>
5105
5106         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
5107         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5108         (verify_gimple): Remove.
5109         * tree-cfg.c (verify_gimple_call): Merge verification
5110         from verify_stmts.
5111         (verify_gimple_phi): Merge verification from verify_stmts.
5112         (verify_gimple_label): New function.
5113         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
5114         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
5115         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
5116         (verify_stmts): Rename to verify_gimple_in_cfg.
5117         (verify_gimple_in_cfg): New function.
5118         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
5119         * tree-ssa.c (verify_ssa): Likewise.
5120         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
5121
5122 2011-03-25  Richard Guenther  <rguenther@suse.de>
5123
5124         * passes.c (init_optimization_passes): Add FRE pass after
5125         early SRA.
5126
5127 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
5128             Andrew Stubbs  <ams@codesourcery.com>
5129
5130         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
5131         for Cortex-A8.
5132         (arm_movdi_vfp_cortexa8): New pattern.
5133         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
5134         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
5135         instructions when tuning for Cortex-A8.  Set attribute "arch".
5136         * config/arm/arm.md: Move include arm-tune.md up a bit.
5137         (define_attr "arch"): Add "onlya8" and "nota8" values.
5138         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
5139
5140 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
5141
5142         PR bootstrap/48282
5143         Revert:
5144         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5145
5146         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5147         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5148         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5149         * passes.c (init_optimization_passes): Move
5150         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5151
5152 2011-03-25  Kai Tietz  <ktietz@redhat.com>
5153
5154         * c-typeck.c (comptypes_internal): Replace target
5155         hook call of comp_type_attributes by version in tree.c file.
5156         * gimple.c (gimple_types_compatible_p_1): Likewise.
5157         * tree-ssa.c (useless_type_conversion_p): Likewise.
5158         * tree.c (build_type_attribute_qual_variant): Likewise.
5159         (attribute_value_equal): New static helper function.
5160         (comp_type_attributes): New function.
5161         (merge_attributes): Use attribute_value_equal for comparison.
5162         (attribute_list_contained): Likewise.
5163         * tree.h (comp_type_attributes): New prototype.
5164
5165 2011-03-25  Richard Guenther  <rguenther@suse.de>
5166
5167         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
5168         of complex types at -O0.
5169         (verify_gimple_assign_binary): Likewise.
5170         (verify_gimple_assign_ternary): Likewise.
5171
5172 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5173
5174         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
5175         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
5176
5177 2011-03-24  Mark Wielaard  <mjw@redhat.com>
5178
5179         PR debug/48041
5180         * dwarf2out.c (output_abbrev_section): Only write table when
5181         abbrev_die_table_in_use > 1.
5182
5183 2011-02-24  Richard Henderson  <rth@redhat.com>
5184
5185         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
5186         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
5187         (alpha_expand_unaligned_load_words): Use extql.
5188         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
5189         (emit_insxl): Handle all modes for consistency.
5190
5191 2011-02-24  Richard Henderson  <rth@redhat.com>
5192
5193         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
5194         (alpha_expand_unaligned_load): Likewise.
5195         (alpha_expand_unaligned_store): Likewise.
5196         (alpha_expand_unaligned_load_words): Likewise.
5197         (alpha_expand_unaligned_store_words): Likewise.
5198         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
5199         (alpha_split_lock_test_and_set_12): Likewise.
5200         (print_operand, alpha_fold_builtin_extxx): Likewise.
5201         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
5202         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
5203         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
5204         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
5205         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
5206         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
5207         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
5208         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
5209         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
5210         (extwl, extll, extql): Similarly.
5211         (inswh, inslh, insqh): Similarly.
5212         (mskbl, mskwl, mskll, mskql): Similarly.
5213         (mskwh, msklh, mskqh): Similarly.
5214
5215 2011-02-24  Richard Henderson  <rth@redhat.com>
5216
5217         * config/alpha/alpha.md (attribute isa): Add er, ner.
5218         (attribute enabled): Handle them.
5219         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
5220
5221 2011-02-24  Richard Henderson  <rth@redhat.com>
5222
5223         * config/alpha/alpha.md (attribute isa): Add vms.
5224         (attribute enabled): Handle it.
5225         (*movsf): Merge *movsf_{nofix,fix,nofp}.
5226         (*movdf): Merge *movdf_{nofix,fix,nofp}.
5227         (*movtf): Rename from *movtf_internal for consistency.
5228         (*movsi): Merge with *movsi_nt_vms.
5229         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
5230         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
5231         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
5232         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
5233
5234 2011-02-24  Richard Henderson  <rth@redhat.com>
5235
5236         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
5237         (extendqisi2, extendhisi2): Likewise.
5238         (extendqidi2): Simplify BWX/non-BWX expansions.
5239         (extendhidi2): Similarly.
5240
5241 2011-02-24  Richard Henderson  <rth@redhat.com>
5242
5243         * config/alpha/alpha.md (attribute isa): New.
5244         (attribute enabled): New.
5245         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
5246         (zero_extendqisi2, zero_extendqidi2): Similarly.
5247         (zero_extendhisi2, zero_extendhidi2): Similarly.
5248         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
5249
5250 2011-02-24  Richard Henderson  <rth@redhat.com>
5251
5252         * config/alpha/predicates.md (input_operand): Revert last change;
5253         update comment to mention 32-bit VMS rather than Windows.
5254
5255 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5256
5257         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
5258         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
5259         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
5260         * passes.c (init_optimization_passes): Move
5261         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
5262
5263 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5264
5265         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
5266
5267 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5268
5269         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
5270         correctly.
5271
5272 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
5273
5274         PR debug/48204
5275         * simplify-rtx.c (simplify_const_unary_operation): Call
5276         real_convert when changing mode class with FLOAT_EXTEND.
5277
5278 2011-03-24  Nick Clifton  <nickc@redhat.com>
5279
5280         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
5281         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
5282         * config/rx/rx.c (rx_option_override): Set align_jumps,
5283         align_loops and align_labels if not set by the user.
5284         (rx_align_for_label): New function.
5285         (rx_max_skip_for_label): New function.
5286         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
5287         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
5288         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
5289         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
5290         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
5291
5292 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5293
5294         PR rtl-optimization/48263
5295         * optabs.c (expand_binop_directly): Reinstate convert_modes code
5296         and original commutative_p handling.  Use maybe_gen_insn.
5297
5298 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5299
5300         * reload.c (find_reloads_subreg_address): Add address_reloaded
5301         parameter and return true there if the full address has been
5302         reloaded.
5303         (find_reloads_toplev): Pass address_reloaded flag.
5304         (find_reloads_address_1): Don't use address_reloaded parameter.
5305
5306 2011-03-24  Jeff Law  <law@redhat.com>
5307
5308         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
5309         unused variable "ann".
5310         (remove_unused_locals): Likewise.
5311
5312         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
5313         statement.
5314
5315         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
5316         after it is freed.
5317
5318 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5319
5320         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
5321         for invalid symbolic addresses.
5322         (s390_secondary_reload): Don't use s390_check_symref_alignment for
5323         larl operands.
5324
5325 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5326
5327         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
5328         the argument in calls to fold_truth_not_expr.
5329
5330 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5331
5332         * tree.c (record_node_allocation_statistics): New function.
5333         (make_node_stat, copy_node_stat, build_string): Call it.
5334         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
5335         (build1_stat, build_omp_clause): Likewise.
5336
5337 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5338
5339         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
5340         last commit.
5341
5342 2011-03-24  Richard Guenther  <rguenther@suse.de>
5343
5344         PR tree-optimization/48271
5345         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
5346         blocks that still exist.
5347
5348 2011-03-24  Richard Guenther  <rguenther@suse.de>
5349
5350         PR tree-optimization/48270
5351         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
5352         not free datarefs before ddrs.
5353
5354 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
5355
5356         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
5357         from the address built for a reference with variable offset.
5358
5359 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
5360
5361         PR target/48237
5362         * config/i386/i386.md (*movdf_internal_rex64): Do not split
5363         alternatives that can be handled with movq or movabsq insn.
5364         (*movdf_internal): Disable for !TARGET_64BIT.
5365         (*movdf_internal_nointeger): Ditto.
5366         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
5367
5368 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
5369
5370         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
5371         (FUNCTION_ARG_ADVANCE): Likewise.
5372         * tm.texi.in: Change references to them to hook references.
5373         * tm.texi: Regenerate.
5374         * targhooks.c (default_function_arg): Eliminate check for target macro.
5375         (default_function_incoming_arg): Likewise.
5376         (default_function_arg_advance): Likewise.
5377         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
5378         (function_arg_advance): Likewise.
5379         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
5380
5381 2011-03-24  Richard Guenther  <rguenther@suse.de>
5382
5383         PR middle-end/48269
5384         * tree-object-size.c (addr_object_size): Do not double-account
5385         for MEM_REF offsets.
5386
5387 2011-03-24  Diego Novillo  <dnovillo@google.com>
5388
5389         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
5390         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
5391         (lto_input_data_block): Move from lto-opts.c.  Make extern.
5392         Update all users.
5393         (lto_input_string): Rename from input_string.  Make extern.
5394         Update all users.
5395         * lto-streamer-out.c (lto_output_string_with_length): Rename from
5396         output_string_with_length.
5397         Output 0 to indicate a non-NULL string.  Update all callers to
5398         not emit 0.
5399         (lto_output_string): Rename from output_string.  Make extern.
5400         Update all users.
5401         (lto_output_decl_state_streams): Make extern.
5402         (lto_output_decl_state_refs): Make extern.
5403         * lto-streamer.h (lto_input_string): Declare.
5404         (lto_input_data_block): Declare.
5405         (lto_output_string): Declare.
5406         (lto_output_string_with_length): Declare.
5407         (lto_output_decl_state_streams): Declare.
5408         (lto_output_decl_state_refs): Declare.
5409
5410 2011-03-24  Richard Guenther  <rguenther@suse.de>
5411
5412         PR tree-optimization/46562
5413         * tree.c (build_invariant_address): New function.
5414         * tree.h (build_invariant_address): Declare.
5415         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
5416         a renamed function moved ...
5417         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
5418         Take valueization callback parameter.
5419         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
5420         * gimple-fold.h: New file.
5421         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
5422         (ccp_fold, fold_const_aggregate_ref,
5423         fold_ctor_reference, fold_nonarray_ctor_reference,
5424         fold_array_ctor_reference, fold_string_cst_ctor_reference,
5425         get_base_constructor): Move ...
5426         * gimple-fold.c: ... here.
5427         (gimple_fold_stmt_to_constant_1): New function
5428         split out from ccp_fold.  Take a valueization callback parameter.
5429         Valueize all operands.
5430         (gimple_fold_stmt_to_constant): New wrapper function.
5431         (fold_const_aggregate_ref_1): New function split out from
5432         fold_const_aggregate_ref.  Take a valueization callback parameter.
5433         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
5434         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
5435         invariant POINTER_PLUS_EXPRs to invariant form.
5436         (vn_valueize): New function.
5437         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
5438         * tree-vrp.c (vrp_valueize): New function.
5439         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
5440         to fold statements to constants.
5441         * tree-ssa-pre.c (eliminate): Properly guard propagation of
5442         function declarations.
5443         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
5444         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
5445
5446 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
5447
5448         * config/h8300/predicates.md (jump_address_operand): Fix register
5449         mode check.
5450
5451 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
5452
5453         * doc/invoke.texi (max-stores-to-sink): Document.
5454         * params.h (MAX_STORES_TO_SINK): Define.
5455         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
5456         if either vectorization or if-conversion is disabled.
5457         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
5458         tree-vect-data-refs.c vect_equal_offsets.
5459         (dr_equal_offsets_p): New function.
5460         (find_data_references_in_bb): Remove static.
5461         * tree-data-ref.h (find_data_references_in_bb): Declare.
5462         (dr_equal_offsets_p): Likewise.
5463         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
5464         (vect_drs_dependent_in_basic_block): Update calls to
5465         vect_equal_offsets.
5466         (vect_check_interleaving): Likewise.
5467         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
5468         (cond_if_else_store_replacement): Rename to...
5469         (cond_if_else_store_replacement_1): ... this.  Change arguments and
5470         documentation.
5471         (cond_if_else_store_replacement): New function.
5472         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
5473         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
5474
5475 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
5476
5477         PR target/46934
5478         * config/arm/arm.md (casesi): Use the gen_int_mode() function
5479         to subtract lower bound instead of GEN_INT().
5480
5481 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
5482
5483         PR other/48179
5484         PR other/48221
5485         PR other/48234
5486         * doc/extend.texi (Alignment): Move section to match order in TOC.
5487         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
5488         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
5489
5490 2011-03-23  Jeff Law  <law@redhat.com>
5491
5492         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
5493         before removing the edge.
5494
5495         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
5496         it may have been freed by redirect_branch_edge or
5497         redirect_edge_succ_nodup.
5498
5499 2011-03-23  Richard Guenther  <rguenther@suse.de>
5500
5501         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
5502         (check_va_list_escapes): Likewise.
5503         (check_all_va_list_escapes): Likewise.
5504
5505 2011-03-23  Richard Guenther  <rguenther@suse.de>
5506
5507         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
5508         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
5509         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
5510         (alias.o): Likewise.
5511         (ipa-type-escape.o): Remove.
5512         (ipa-struct-reorg.o): Likewise.
5513         (GTFILES): Remove ipa-struct-reorg.c.
5514         * alias.c: Do not include ipa-type-escape.h.
5515         * tree-ssa-alias.c: Likewise.
5516         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
5517         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
5518         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
5519         and ipa-type-escape passes.
5520         * tree-pass.h (pass_ipa_type_escape): Remove.
5521         (pass_ipa_struct_reorg): Likewise.
5522         * ipa-struct-reorg.h: Remove.
5523         * ipa-struct-reorg.c: Likewise.
5524         * ipa-type-escape.h: Likewise.
5525         * ipa-type-escape.c: Likewise.
5526         * doc/invoke.texi (-fipa-struct-reorg): Remove.
5527         (--param struct-reorg-cold-struct-ratio): Likewise.
5528         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5529         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
5530         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
5531
5532 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5533
5534         * config/s390/2084.md: Enable all insn reservations also for z9_ec
5535         cpu attribute value.
5536         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
5537         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
5538         * config/s390/s390.c (processor_flags_table): New constant array.
5539         (s390_handle_arch_option): Remove.
5540         (s390_handle_option): Remove s390_handle_arch_option invocations
5541         and OPT_mwarn_framesize_ handling.
5542         (s390_option_override): Remove s390_handle_arch_option invocation.
5543         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
5544         warnings.
5545         * config/s390/s390.md (cpu attribute): Add z9_ec value.
5546         * config/s390/s390.opt (s390_tune, s390_arch)
5547         (march=): Replace s390_arch_option enum and values with
5548         processor_type.  Set variable name to s390_arch.  Set
5549         initialization value.
5550         (mtune=): Replace s390_arch_option with processor_type.  Set
5551         variable name to s390_tune.  Set initialization value.
5552
5553 2011-03-23  Julian Brown  <julian@codesourcery.com>
5554
5555         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
5556         accesses which are not naturally aligned.
5557
5558 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5559
5560         PR target/47553
5561         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
5562
5563 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
5564
5565         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
5566         parameter from "int" to "enum insn_code".
5567         (expand_operand_type): New enum.
5568         (expand_operand): New structure.
5569         (create_expand_operand): New function.
5570         (create_fixed_operand, create_output_operand): Likewise
5571         (create_input_operand, create_convert_operand_to): Likewise.
5572         (create_convert_operand_from, create_address_operand): Likewise.
5573         (create_integer_operand): Likewise.
5574         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
5575         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5576         (expand_insn, expand_jump_insn): Likewise.
5577         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
5578         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
5579         (expand_movstr, expand_builtin___clear_cache): Likewise.
5580         (expand_builtin_lock_release): Likewise.
5581         * explow.c (allocate_dynamic_stack_space): Likewise.
5582         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
5583         and use the default handling in that case.
5584         * expmed.c (check_predicate_volatile_ok): Delete.
5585         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
5586         (emit_cstore): Likewise.
5587         * expr.c (emit_block_move_via_movmem): Likewise.
5588         (set_storage_via_setmem, expand_assignment): Likewise.
5589         (emit_storent_insn, try_casesi): Likewise.
5590         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
5591         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
5592         (expand_vec_shift_expr, expand_binop_directly): Likewise.
5593         (expand_twoval_unop, expand_twoval_binop): Likewise.
5594         (expand_unop_direct, emit_indirect_jump): Likewise.
5595         (emit_conditional_move, vector_compare_rtx): Likewise.
5596         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
5597         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
5598         (expand_sync_lock_test_and_set): Likewise.
5599         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
5600         (emit_unop_insn): Likewise.
5601         (expand_copysign_absneg): Change icode to an insn_code.
5602         (create_convert_operand_from_type): New function.
5603         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
5604         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
5605         (expand_insn, expand_jump_insn): Likewise.
5606         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
5607         than const_int_operand for operand 2.
5608
5609 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5610
5611         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
5612         if possible.
5613
5614 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5615
5616         * emit-rtl.c (emit_pattern_before_noloc): New function.
5617         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
5618         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
5619         (emit_pattern_after_noloc): New function.
5620         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
5621         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
5622
5623 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
5624
5625         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
5626         (__ffsDI2): Likewise.
5627
5628 2011-03-22  Richard Henderson  <rth@redhat.com>
5629
5630         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
5631         of !TARGET_ABI_OPEN_VMS.
5632         (alpha_trampoline_init, alpha_start_function): Likewise.
5633         (alpha_expand_epilogue, alpha_file_start): Likewise.
5634         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
5635         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
5636         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
5637         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
5638         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
5639
5640 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5641
5642         * config/s390/s390-opts.h: New.
5643         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
5644         s390_arch_flags, s390_warn_framesize, s390_stack_size,
5645         s390_stack_guard): Remove.
5646         (s390_handle_arch_option): Return void.  Take enum
5647         s390_arch_option value instead of string and searching array.
5648         (s390_handle_option): Don't assert that global structures are in
5649         use.  Access variables via opts pointer.  Use error_at.  Don't use
5650         sscanf for -mstack-guard= or -mstack-size=.  Update call to
5651         s390_handle_arch_option.
5652         (s390_option_override): Update call to s390_handle_arch_option.
5653         (s390_emit_prologue): Use %d format for s390_stack_size in
5654         diagnostic.  Use %wd for HOST_WIDE_INT.
5655         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
5656         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
5657         * config/s390/s390.opt (config/s390/s390-opts.h): New
5658         HeaderInclude entry.
5659         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
5660         s390_arch_flags, s390_warn_framesize): New Variable entries.
5661         (s390_arch_option): New Enum and EnumValue entries.
5662         (march=): Use Enum instead of Var.
5663         (mstack-guard=, mstack-size=): Use UInteger and Var.
5664         (mtune=): Use Enum.
5665
5666 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5667
5668         * config/score/score.c (score_handle_option): Don't assert that
5669         global structures are in use.  Access target_flags via opts
5670         pointer.  Use value of -march= option to determine target_flags
5671         settings.
5672         * config/score/score.opt (march=): Use Enum.
5673         (score_arch): New Enum and EnumValue entries.
5674
5675 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5676
5677         * config/mep/mep.c (option_mtiny_specified): Remove.
5678         (mep_option_override): Move register handling for -mivc2 from
5679         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
5680         instead of option_mtiny_specified.
5681         (mep_handle_option): Access target_flags via opts pointer.  Don't
5682         assert that global structures are in use.  Defer part of -mivc2
5683         handling and move it to mep_option_override.
5684         * config/mep/mep.opt (IVC2): New Mask entry.
5685         (mivc2): Use Var and Defer instead of Mask.
5686
5687 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5688
5689         * config/v850/v850-opts.h: New.
5690         * config/v850/v850.c (small_memory): Replace with
5691         small_memory_physical_max array.  Make that array static const.
5692         (v850_handle_memory_option): Take integer value of argument.  Take
5693         gcc_options pointer, option text and location.  Return void.
5694         Update for changes to small memory structures.
5695         (v850_handle_option): Access target_flags via opts pointer.  Don't
5696         assert that global structures are in use.  Update calls to
5697         v850_handle_memory_option.
5698         (v850_encode_data_area): Update references to small memory settings.
5699         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
5700         (enum small_memory_type): Move to v850-opts.h.
5701         * config/v850/v850.opt (config/v850/v850-opts.h): New
5702         HeaderInclude entry.
5703         (small_memory_max): New Variable entry.
5704         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
5705         (mtda, mzda): Likewise.
5706
5707 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5708
5709         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
5710         pointer.  Don't assert that global structures are in use.
5711
5712 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5713
5714         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
5715         via opts pointer.  Don't assert that global structures are in use.
5716
5717 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5718
5719         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
5720         (munix=93): Use Var.
5721         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
5722         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
5723         * config/pa/pa-opts.h: New.
5724         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
5725         (pa_handle_option): Don't assert that global structures are in
5726         use.  Access target_flags via opts pointer.  Don't handle
5727         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
5728         OPT_munix_98 here.
5729         (pa_option_override): Handle deferred OPT_mfixed_range_.
5730
5731 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5732
5733         * config/mn10300/mn10300-opts.h: New.
5734         * config/mn10300/mn10300.c (mn10300_processor,
5735         mn10300_tune_string): Remove.
5736         (mn10300_handle_option): Don't assert that global structures are
5737         in use.  Access mn10300_processor via opts pointer.  Don't handle
5738         OPT_mtune_ here.
5739         * config/mn10300/mn10300.h (enum processor_type): Move to
5740         mn10300-opts.h.
5741         (mn10300_processor): Remove.
5742         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
5743         HeaderInclude entry.
5744         (mn10300_processor): New Variable entry.
5745         (mtune=): Use Var.
5746
5747 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5748
5749         * config/microblaze/microblaze.c: Don't include opts.h.
5750         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
5751         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
5752         (mno-clearbss): Use Var and Warn.
5753
5754 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5755
5756         * config/m32r/m32r-opts.h: New.
5757         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
5758         (m32r_handle_option): Don't assert that global structures are in
5759         use.  Access target_flags and m32r_cache_flush_func via opts
5760         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
5761         OPT_mno_flush_trap here.
5762         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
5763         include of m32r-opts.h.
5764         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
5765         HeaderInclude entry.
5766         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
5767         (mmodel=): Use Enum and Var.
5768         (m32r_model): New Enum and EnumValue entries.
5769         (mno-flush-trap): Use Var.
5770         (msdata=): Use Enum and Var.
5771         (m32r_sdata): New Enum and EnumValue entries.
5772
5773 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5774
5775         * config/m32c/m32c.c: Don't include opts.h.
5776         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
5777         m32c_handle_option): Remove.
5778         (m32c_option_override): Check global_options_set.x_target_memregs
5779         instead of target_memregs_set.
5780         * config/m32c/m32c.h (target_memregs): Remove.
5781         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
5782         variable.
5783
5784 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5785
5786         * config/iq2000/iq2000-opts.h: New.
5787         * config/iq2000/iq2000.c: Don't include opts.h.
5788         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
5789         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
5790         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
5791         HeaderInclude entry.
5792         (iq2000_tune): New Variable entry.
5793         (march=): Add comment.  Use Enum.
5794         (iq2000_arch): New Enum and EnumValue entries.
5795         (mcpu=): Use Enum and Var.
5796         (iq2000_tune): New Enum and EnumValue entries.
5797
5798 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5799
5800         * config/ia64/ia64-opts.h: New.
5801         * config/ia64/ia64.c (ia64_tune): Remove.
5802         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
5803         here.  Use error_at.
5804         (ia64_option_override): Handle deferred OPT_mfixed_range_.
5805         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
5806         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
5807         HeaderInclude entry.
5808         (ia64_tune): New Variable entry.
5809         (mfixed-range=): Use Defer and Var.
5810         (mtune=): Use Enum and Var.
5811         (ia64_tune): New Enum and EnumValue entries.
5812
5813 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5814
5815         * config/frv/frv-opts.h: New.
5816         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
5817         frv-opts.h.
5818         (frv_cpu_type): Remove.
5819         * config/frv/frv.c: Don't include opts.h.
5820         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
5821         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
5822         (frv_cpu_type): New Variable entry.
5823         (frv_cpu): New Enum and EnumValue entries.
5824
5825 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5826
5827         * config/cris/cris.c (cris_handle_option): Access target_flags via
5828         opts pointer.  Don't assert that global structures are in use.
5829         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
5830         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
5831
5832 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5833
5834         * config/bfin/bfin-opts.h: New.
5835         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
5836         bfin_si_revision, bfin_workarounds): Remove.
5837         (bfin_cpus): Make static const.
5838         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
5839         not bfin_lib_id_given.
5840         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
5841         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
5842         pointer. Use error_at.  Don't assert that global structures are in use.
5843         * config/bfin/bfin.h: Include bfin-opts.h.
5844         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
5845         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
5846         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
5847         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
5848         entries.
5849
5850 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5851
5852         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
5853         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
5854         or -msoft-float here.
5855         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
5856         -msoft-float and -mhard-float.
5857         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5858         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5859         msoft-float.
5860         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
5861         -msoft-float.
5862         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
5863         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
5864         not mhard-float.
5865         (LIBGCC_SPEC): Don't handle -msoft-float.
5866         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
5867         -mhard-float.
5868         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
5869         msoft-float.
5870         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
5871         -mfloat-abi=*, not -msoft-float and -mhard-float.
5872         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
5873         -msoft-float.
5874         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
5875         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
5876         mhard-float and msoft-float.
5877         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
5878         mfloat-abi=soft in comments, not mhard-float and msoft-float.
5879         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
5880         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
5881         mhard-float.
5882         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
5883         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
5884         msoft-float.
5885         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
5886         not mhard-float.
5887         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
5888         not msoft-float.
5889
5890 2011-03-22  Richard Henderson  <rth@redhat.com>
5891
5892         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
5893         TARGET_ABI_WINDOWS_NT.
5894         (alpha_output_function_end_prologue): Likewise.
5895         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
5896         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5897         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
5898         (trap, *movsi_nt_vms): Likewise.
5899         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
5900         (*tablejump_osf_nt_internal): Remove.
5901         * config/alpha/predicates.md (input_operand): Only test Pmode.
5902
5903 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5904
5905         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
5906         via opts pointer.  Use error_at.  Don't assert that global
5907         structures are in use.
5908
5909 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5910
5911         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
5912         (ix86_handle_option): Access ix86_isa_flags and
5913         ix86_isa_flags_explicit via opts pointer.  Don't assert that
5914         global structures are in use.
5915         (ix86_function_specific_save, ix86_function_specific_restore):
5916         Update ix86_isa_flags_explicit field name.
5917         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
5918         (ix86_isa_flags_explicit): Rename TargetSave entry to
5919         x_ix86_isa_flags_explicit.
5920
5921 2011-03-22  Richard Henderson  <rth@redhat.com>
5922
5923         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
5924         (alpha_option_override, direct_return): Likewise.
5925         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
5926         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
5927         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
5928         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
5929         (alpha_expand_epilogue, alpha_end_function): Likewise.
5930         (alpha_init_libfuncs): Likewise.
5931         (struct machine_function): Remove unicosmk members.
5932         (print_operand) ['t']: Remove.
5933         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
5934         unicosmk_output_module_name, unicosmk_output_common,
5935         current_section_align, unicosmk_output_text_section_asm_op,
5936         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
5937         unicosmk_section_type_flags, unicosmk_unique_section,
5938         unicosmk_asm_named_section, unicosmk_insert_attributes,
5939         unicosmk_output_align, unicosmk_defer_case_vector,
5940         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
5941         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
5942         unicosmk_output_ssib, unicosmk_add_call_info_word,
5943         unicosmk_extern_head, unicosmk_output_default_externs,
5944         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
5945         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
5946         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
5947         * config/alpha/alpha-protos.h: Update.
5948         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
5949         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
5950         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
5951         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
5952         (*mulsi_se, mulvsi3): Likewise.
5953         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
5954         (*divmodsi_internal, call, call_value, realign): Likewise.
5955         (moddi3, umoddi3): Likewise; remove duplicate expander.
5956         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
5957         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
5958         (*movdi_nofix): Remove r/U alternative.
5959         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
5960         * config/alpha/constraints.md ("U"): Remove.
5961         * config/alpha/predicates.md (call_operand"): Don't test
5962         TARGET_ABI_UNICOSMK.
5963
5964 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
5965
5966         * target.def (handle_option): Take gcc_options and
5967         cl_decoded_option pointers and location_t.
5968         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
5969         * doc/tm.texi: Regenerate.
5970         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
5971         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
5972         * lto-opts.c (lto_reissue_options): Generate option structure for
5973         targetm.handle_option call.
5974         * opts.c (target_handle_option): Update call to
5975         targetm.handle_option.  Remove assertions about values now passed
5976         down to hook.
5977         * targhooks.c (default_target_handle_option): New.
5978         * targhooks.h (default_target_handle_option): Declare.
5979         * config/alpha/alpha.c: Include opts.h.
5980         (alpha_handle_option): Update to new hook interface.
5981         * config/arm/arm.c: Include opts.h.
5982         (arm_handle_option): Update to new hook interface.
5983         * config/arm/t-arm (arm.o): Update dependencies.
5984         * config/bfin/bfin.c: Include opts.h.
5985         (bfin_handle_option): Update to new hook interface.
5986         * config/cris/cris.c: Include opts.h.
5987         (cris_handle_option): Update to new hook interface.
5988         * config/frv/frv.c: Include opts.h.
5989         (frv_handle_option): Update to new hook interface.
5990         * config/i386/i386.c: Include opts.h.
5991         (ix86_handle_option): Update to new hook interface.
5992         (ix86_valid_target_attribute_inner_p): Generate option structure
5993         for call to ix86_handle_option.
5994         * config/i386/t-i386 (i386.o): Update dependencies.
5995         * config/ia64/ia64.c: Include opts.h.
5996         (ia64_handle_option): Update to new hook interface.
5997         * config/ia64/t-ia64 (ia64.o): Update dependencies.
5998         * config/iq2000/iq2000.c: Include opts.h.
5999         (iq2000_handle_option): Update to new hook interface.
6000         * config/m32c/m32c.c: Include opts.h.
6001         (m32c_handle_option): Update to new hook interface.
6002         * config/m32r/m32r.c: Include opts.h.
6003         (m32r_handle_option): Update to new hook interface.
6004         * config/m68k/m68k.c: Include opts.h.
6005         (m68k_handle_option): Update to new hook interface.
6006         * config/mep/mep.c: Include opts.h.
6007         (mep_handle_option): Update to new hook interface.
6008         * config/microblaze/microblaze.c: Include opts.h.
6009         (microblaze_handle_option): Update to new hook interface.
6010         * config/mips/mips.c: Include opts.h.
6011         (mips_handle_option): Update to new hook interface.
6012         * config/mn10300/mn10300.c: Include opts.h.
6013         (mn10300_handle_option): Update to new hook interface.
6014         * config/pa/pa.c: Include opts.h.
6015         (pa_handle_option): Update to new hook interface.
6016         * config/pdp11/pdp11.c: Include opts.h.
6017         (pdp11_handle_option): Update to new hook interface.
6018         * config/rs6000/rs6000.c: Include opts.h.
6019         (rs6000_handle_option): Update to new hook interface.
6020         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6021         * config/rx/rx.c: Include opts.h.
6022         (rx_handle_option): Update to new hook interface.
6023         * config/s390/s390.c: Include opts.h.
6024         (s390_handle_option): Update to new hook interface.
6025         * config/score/score.c: Include opts.h.
6026         (score_handle_option): Update to new hook interface.
6027         * config/sh/sh.c: Include opts.h.
6028         (sh_handle_option): Update to new hook interface.
6029         * config/sparc/sparc.c: Include opts.h.
6030         (sparc_handle_option): Update to new hook interface.
6031         * config/v850/v850.c: Include opts.h.
6032         (v850_handle_option): Update to new hook interface.
6033
6034 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6035
6036         * gcc.c (driver_unknown_option_callback): Only permit and save
6037         unknown -Wno- options.
6038         (driver_wrong_lang_callback): Save options directly instead of via
6039         driver_unknown_option_callback.
6040
6041 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6042
6043         * combine.c (simplify_set): Try harder to find the best CC mode when
6044         simplifying a nested COMPARE on the RHS.
6045
6046 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
6047
6048         * config/alpha/gnu.h: Remove.
6049         * config/arc: Remove directory.
6050         * config/arm/netbsd.h: Remove.
6051         * config/arm/t-pe: Remove.
6052         * config/crx: Remove directory.
6053         * config/i386/netbsd.h: Remove.
6054         * config/m68hc11: Remove directory.
6055         * config/m68k/uclinux-oldabi.h: Remove.
6056         * config/mcore/mcore-pe.h: Remove.
6057         * config/mcore/t-mcore-pe: Remove.
6058         * config/netbsd-aout.h: Remove.
6059         * config/rs6000/gnu.h: Remove.
6060         * config/sh/sh-symbian.h: Remove.
6061         * config/sh/symbian-base.c: Remove.
6062         * config/sh/symbian-c.c: Remove.
6063         * config/sh/symbian-cxx.c: Remove.
6064         * config/sh/symbian-post.h: Remove.
6065         * config/sh/symbian-pre.h: Remove.
6066         * config/sh/t-symbian: Remove.
6067         * config/svr3.h: Remove.
6068         * config/vax/netbsd.h: Remove.
6069         * config.build: Don't handle i[34567]86-*-pe.
6070         * config.gcc: Remove handling of deprecations for most deprecated
6071         targets.
6072         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
6073         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
6074         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
6075         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
6076         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
6077         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
6078         Remove cases.
6079         * config.host: Don't handle i[34567]86-*-pe.
6080         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
6081         (ASM_SPEC32): Don't handle -mcall-gnu.
6082         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
6083         -mcall-gnu.
6084         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
6085         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
6086         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
6087         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
6088         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
6089         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
6090         conditional on SYMBIAN.
6091         * configure.ac: Don't handle powerpc*-*-gnu*.
6092         * configure: Regenerate.
6093         * doc/extend.texi (interrupt attribute): Don't mention CRX.
6094         * doc/install-old.texi (m6811, m6812): Don't mention.
6095         * doc/install.texi (arc-*-elf*): Don't document multilib option.
6096         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
6097         (m68k-uclinuxoldabi): Don't mention.
6098         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
6099         Remove.
6100         (-mcall-gnu): Remove.
6101         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
6102         families): Remove constraint documentation.
6103
6104 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
6105
6106         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
6107         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
6108         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
6109
6110 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
6111
6112         * config/avr/avr-protos.h (expand_epilogue): Change prototype
6113         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
6114         * config/avr/avr.c (init_cumulative_args)
6115         (avr_function_arg_advance): Use it.
6116         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
6117         sibcall epilogues.
6118         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
6119         (avr_function_ok_for_sibcall): ...this new function.
6120         (avr_lookup_function_attribute1): New static Function.
6121         (avr_naked_function_p, interrupt_function_p)
6122         (signal_function_p, avr_OS_task_function_p)
6123         (avr_OS_main_function_p): Use it.
6124         * config/avr/avr.md ("sibcall", "sibcall_value")
6125         ("sibcall_epilogue"): New expander.
6126         ("*call_insn", "*call_value_insn"): New insn.
6127         ("call_insn", "call_value_insn"): Remove
6128         ("call", "call_value", "epilogue"): Change expander to handle
6129         sibling calls.
6130
6131 2011-03-21  Nick Clifton  <nickc@redhat.com>
6132
6133         * doc/invoke.texi (Overall Options): Move closing brace to end of
6134         options list.
6135         (Optimization Options): Add missing @gol.
6136         (Directory Options): Likewise.
6137         (i386 and x86-64 Options): Likewise.
6138         (RS6000 and PowerPC Options): Likewise.
6139         (i386 and x86-64 Windows Options): Likewise.
6140         (V850 Options): Add text missing from descriptions.
6141
6142 2011-03-22  Richard Henderson  <rth@redhat.com>
6143
6144         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
6145         (avr_incoming_return_addr_rtx): New.
6146         (emit_push_byte): New.
6147         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
6148         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
6149         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
6150         (emit_pop_byte): New.
6151         (expand_epilogue): Use it.  Pop frame pointer by bytes.
6152         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
6153         (INCOMING_RETURN_ADDR_RTX): New.
6154         (INCOMING_FRAME_SP_OFFSET): New.
6155         (ARG_POINTER_CFA_OFFSET): New.
6156         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
6157         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
6158         (pophi): Remove.
6159
6160         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
6161
6162 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6163
6164         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
6165         (FUNCTION_ARG_ADVANCE): Likewise.
6166         * tm.texi.in: Change references to them to hook references.
6167         * tm.texi: Regenerate.
6168         * targhooks.c (default_function_arg): Eliminate check for target
6169         macro.
6170         (default_function_incoming_arg): Likewise.
6171         (default_function_arg_advance): Likewise.
6172         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
6173         (function_arg_advance): Likewise.
6174         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
6175
6176 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
6177
6178         * tree.c (build_call_1): New function.
6179         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
6180
6181 2011-03-22  Richard Guenther  <rguenther@suse.de>
6182
6183         PR tree-optimization/48228
6184         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
6185         for single-arg PHIs.
6186
6187 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
6188
6189         PR rtl-optimization/48143
6190         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
6191         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
6192         sse2_cvtps2pd): Likewise.
6193
6194 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6195
6196         * recog.c (canonicalize_change_group): Use validate_unshare_change.
6197
6198 2011-03-22  Richard Guenther  <rguenther@suse.de>
6199
6200         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
6201         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
6202         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
6203         and REALIGN_LOAD_EXPR.
6204         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
6205         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
6206         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
6207         DOT_PROD_EXPR case ...
6208         (expand_expr_real_2): ... here.
6209         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
6210         and REALIGN_LOAD_EXPR.
6211         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
6212         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
6213         (vect_create_epilog_for_reduction): Likewise.
6214         (vectorizable_reduction): Likewise.
6215         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
6216         * tree-vect-stmts.c (vectorizable_load): Likewise.
6217
6218 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
6219
6220         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
6221
6222 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6223
6224         * config/s390/s390.c (s390_delegitimize_address): Fix offset
6225         handling for PLTOFF/GOTOFF.
6226
6227 2011-03-22  Nick Clifton  <nickc@redhat.com>
6228
6229         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
6230         trailing backslash from the end of the macro definition.
6231
6232 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6233
6234         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
6235         and PLT unspecs.
6236
6237 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
6238
6239         * expr.h (prepare_operand): Move to...
6240         * optabs.h (prepare_operand): ...here and change the insn code
6241         parameter from "int" to "enum insn_code".
6242         (insn_operand_matches): Declare.
6243         * expr.c (init_expr_target): Use insn_operand_matches.
6244         (compress_float_constant): Likewise.
6245         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
6246         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
6247         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
6248         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
6249         Likewise.
6250         (gen_cond_trap): Likewise.
6251         (prepare_operand): Likewise.  Change icode to an insn_code.
6252         (insn_operand_matches): New function.
6253         * reload.c (find_reloads_address_1): Use insn_operand_matches.
6254         * reload1.c (gen_reload): Likewise.
6255         * targhooks.c (default_secondary_reload): Likewise.
6256
6257 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6258
6259         * config/alpha/alpha.md (unspec): New define_c_enum.
6260         (unspecv): Ditto.
6261
6262 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
6263
6264         PR debug/48214
6265         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
6266         between a call and its CALL_ARG_LOCATION note.
6267
6268 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
6269
6270         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
6271
6272 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6273
6274         PR c/42544
6275         PR c/48197
6276         * c-common.c (shorten_compare): If primopN is first sign-extended
6277         to opN and then zero-extended to result type, set primopN to opN.
6278
6279 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
6280
6281         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
6282         for barrier handlers.
6283
6284 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6285
6286         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
6287         UNSPEC constants to be in the unspec enumeration, and redefine
6288         all UNSPECV constants to be in the unspecv enumeration, so that
6289         dumps print which unspec/unspec_volatile this is.
6290         * config/rs6000/vector.md (UNSPEC_*): Ditto.
6291         * config/rs6000/paired.md (UNSPEC_*): Ditto.
6292         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
6293         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
6294         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
6295
6296         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
6297         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
6298         UNSPECV_LWSYNC, since these are used as unspec_volatile.
6299         * config/rs6000/sync.md (isync, lwsync): Ditto.
6300
6301 2011-03-21  Richard Guenther  <rguenther@suse.de>
6302
6303         * params.def (lto-min-partition): Fix typo.
6304
6305 2011-03-21  Richard Guenther  <rguenther@suse.de>
6306
6307         PR c/47939
6308         * c-decl.c (grokdeclarator): Drop to the main variant only
6309         for array types.  Drop flag_gen_aux_info check.
6310
6311 2011-03-21  Richard Guenther  <rguenther@suse.de>
6312
6313         PR translation/47911
6314         * params.def (lto-partitions): Fix typo.
6315         (lto-min-partition): Fix wording.
6316
6317 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
6318
6319         * config/rs6000/t-freebsd: Remove duplication from file.
6320
6321 2011-03-21  Richard Guenther  <rguenther@suse.de>
6322
6323         PR middle-end/47661
6324         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
6325
6326 2011-03-21  Richard Guenther  <rguenther@suse.de>
6327
6328         PR lto/48210
6329         * params.def (lto-partitions): Require at least 1 partition.
6330
6331 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6332
6333         * gthr-solaris.h: Remove.
6334         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
6335         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
6336         (LIB_SPEC): Likewise.
6337         * config/sol2.opt (threads): Remove.
6338         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
6339         (sparc*-*-solaris2*): Likewise.
6340         * configure.ac (enable_threads): Enable solaris support.
6341         * configure: Regenerate.
6342         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
6343         * doc/install.texi (Configuration, --enable-threads=lib): Remove
6344         solaris.
6345
6346 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6347
6348         * config.gcc: Obsolete *-*-solaris2.8*.
6349         * doc/install.texi (Specific, *-*-solaris2*): Document it.
6350
6351 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6352
6353         PR bootstrap/48135
6354         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
6355         reference.  Solaris 8 perl works.
6356
6357 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6358
6359         PR bootstrap/48135
6360         * doc/install.texi (Prerequisites): Move jar etc. up.
6361         Explain support library version requirements.
6362
6363 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6364
6365         PR bootstrap/48135
6366         * doc/install.texi (Prerequisites): Move Perl to build
6367         requirements.  Always necessary on Solaris 2 with Sun ld.
6368
6369 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6370
6371         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
6372         binutils 2.21.
6373         (Specific, i?86-*-solaris2.[89]): Likewise.
6374         (Specific, i?86-*-solaris2.10): Likewise.
6375         (Specific, mips-sgi-irix6): Likewise.
6376         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
6377         Update for binutils 2.21.
6378
6379 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6380
6381         * configure.ac (gcc_cv_lto_plugin): Fix typo.
6382         Allow -fuse-linker-plugin for non-default plugin linker.
6383         * configure: Regenerate.
6384
6385 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6386
6387         PR bootstrap/48167
6388         * gengtype.c (files_rules): Added rule for cp/parser.h.
6389
6390 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
6391
6392         PR target/48213
6393         * config/s390/s390.c (s390_delegitimize_address): Don't call
6394         lowpart_subreg if orig_x has BLKmode.
6395
6396 2011-03-21  Kai Tietz  <ktietz@redhat.com>
6397
6398         PR target/12171
6399         * doc/plugins.texi: Adjust documentation for plugin register_callback.
6400         * tree.h (attribute_spec): Add new member affects_type_identity.
6401         * attribs.c (empty_attribute_table): Adjust attribute_spec
6402         initializers.
6403         * config/alpha/alpha.c: Likewise.
6404         * config/arc/arc.c: Likewise.
6405         * config/arm/arm.c: Likewise.
6406         * config/avr/avr.c: Likewise.
6407         * config/bfin/bfin.c: Likewise.
6408         * config/crx/crx.c: Likewise.
6409         * config/darwin.h: Likewise.
6410         * config/h8300/h8300.c: Likewise.
6411         * config/i386/cygming.h: Likewise.
6412         * config/i386/i386.c: Likewise.
6413         * config/ia64/ia64.c: Likewise.
6414         * config/m32c/m32c.c: Likewise.
6415         * config/m32r/m32r.c: Likewise.
6416         * config/m68hc11/m68hc11.c: Likewise.
6417         * config/m68k/m68k.c: Likewise.
6418         * config/mcore/mcore.c: Likewise.
6419         * config/mep/mep.c: Likewise.
6420         * config/microblaze/microblaze.c: Likewise.
6421         * config/mips/mips.c: Likewise.
6422         * config/rs6000/rs6000.c: Likewise.
6423         * config/rx/rx.c: Likewise.
6424         * config/sh/sh.c: Likewise.
6425         * config/sol2.h: Likewise.
6426         * config/sparc/sparc.c: Likewise.
6427         * config/spu/spu.c: Likewise.
6428         * config/stormy16/stormy16.c: Likewise.
6429         * config/v850/v850.c: Likewise.
6430
6431 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
6432
6433         * simplify-rtx.c (simplify_binary_operation_1): Handle
6434         (xor (and A B) C) case when B and C are both constants.
6435
6436 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
6437
6438         * tree-dfa.c (add_referenced_var): Fix typo in comment.
6439
6440 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
6441
6442         PR bootstrap/48168
6443         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
6444
6445 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
6446
6447         PR rtl-optimization/48156
6448         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
6449         assume df and df_lr are not NULL.
6450
6451 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6452
6453         PR debug/48023
6454         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
6455         between a call and its CALL_ARG_LOCATION note.
6456
6457 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6458
6459         PR debug/48178
6460         * config/sh/sh.c (find_barrier): Don't emit a constant pool
6461         between a call and its corresponding CALL_ARG_LOCATION note.
6462
6463 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
6464
6465         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
6466         instead of loop. Use HARD_REGISTER_NUM_P predicate.
6467         * haifa-sched.c (setup_ref_regs): Ditto.
6468         * caller-save.c (add_used_regs_1): Ditto.
6469         * dse.c (look_for_hardregs): Ditto.
6470         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
6471         * sched-rgn.c (check_live_1): Ditto.
6472
6473 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6474
6475         * c-decl.c (diagnose_mismatched_decls): Give an error for
6476         redefining a typedef with variably modified type.
6477
6478 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
6479
6480         * c-decl.c (grokfield): Don't allow typedefs for structures or
6481         unions with no tag by default.
6482         * doc/extend.texi (Unnamed Fields): Update.
6483
6484 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
6485
6486         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6487         Rewrite using indirect functions.
6488         (lwp_slwpcb): Ditto.
6489         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
6490         (avx_vinsertf128<mode>): Ditto.
6491
6492 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6493
6494         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
6495         unspecs.
6496
6497 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6498
6499         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
6500         splitting between a call and its corresponding CALL_ARG_LOCATION note.
6501
6502 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6503
6504         PR rtl-optimization/48170
6505         * gcse.c (hoist_code): Remove bogus asserts.
6506
6507 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
6508
6509         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
6510         computation for prologue/epilogue.
6511
6512 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6513
6514         * Makefile.in (check-consistency): Remove.
6515
6516 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
6517
6518         PR debug/48176
6519         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
6520         arange_table_in_use is 0, but either text_section_used or
6521         cold_text_section_used is true.  Don't call it if
6522         !info_section_emitted.
6523
6524 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
6525
6526         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
6527         FUNCTION_VALUE_REGNO_P): Remove.
6528         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
6529         Remove.
6530         * config/avr/avr.c (avr_ret_register): Make static inline.
6531         (avr_function_value_regno_p): New function.
6532         (avr_libcall_value): Make static. Add 'func' argument.
6533         (avr_function_value): Make static. Rename 'func' argument to
6534         'fn_decl_or_type', forward it to avr_libcall_value. Call
6535         avr_ret_register function instead of RET_REGISTER macro.
6536         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
6537
6538 2011-03-18  Jason Merrill  <jason@redhat.com>
6539
6540         PR c++/23372
6541         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
6542
6543 2011-03-18  Richard Guenther  <rguenther@suse.de>
6544
6545         * doc/install.texi (--enable-gold): Remove.
6546         (--with-plugin-ld): Document.
6547         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
6548
6549 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
6550
6551         PR middle-end/47790
6552         * expr.c (optimize_bitfield_assignment_op): Revamp to work
6553         again after expansion changes.
6554
6555 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
6556
6557         * combine.c (try_combine): Do simplification only call of
6558         subst() on i2 even when i1 is present. Update comments.
6559
6560 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6561
6562         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
6563         and UNSPEC_PCREL_SYMOFF.
6564
6565 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6566
6567         * config/s390/s390.md: Use define_c_enum for the unspec constant
6568         definitions.
6569
6570 2011-03-18  Richard Henderson  <rth@redhat.com>
6571             Jakub Jelinek  <jakub@redhat.com>
6572
6573         PR bootstrap/48161
6574         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
6575         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
6576
6577 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6578
6579         PR middle-end/47725
6580         * combine.c (cant_combine_insn_p): Don't check zero/sign
6581         extended hard registers.
6582
6583 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6584
6585         PR middle-end/47725
6586         * combine.c (cant_combine_insn_p): Check zero/sign extended
6587         hard registers.
6588
6589 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
6590
6591         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6592         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
6593         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
6594         Change return type to bool.
6595         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6596
6597 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6598
6599         PR debug/48163
6600         * var-tracking.c (prepare_call_arguments): If CALL target
6601         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
6602         pc instead of looking it up using cselib_lookup and use
6603         Pmode for it if x has VOIDmode.
6604         * dwarf2out.c (gen_subprogram_die): If also both first and
6605         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
6606
6607         PR debug/48163
6608         * function.c (assign_parms): For data.passed_pointer parms
6609         use MEM of data.entry_parm instead of data.entry_parm itself
6610         as DECL_INCOMING_RTL.
6611         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
6612         also when passed and declared mode is the same, DECL_RTL
6613         is a MEM with pseudo as address and DECL_INCOMING_RTL is
6614         a MEM too.
6615
6616 2011-03-16  Jeff Law  <law@redhat.com>
6617
6618         PR rtl-optimization/37273
6619         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6620         handle them like argument loads from stack slots.  Do not double
6621         count memory for memory constants and argument loads from stack slots.
6622
6623 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6624
6625         PR debug/48160
6626         * var-tracking.c (prepare_call_arguments): Check SUBREG.
6627
6628 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
6629
6630         PR target/48171
6631         * config/i386/i386.opt: Add Save to -mavx and -mfma.
6632
6633 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6634
6635         PR bootstrap/48153
6636         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
6637         if dwarf_strict.
6638         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
6639         Clear call_arg_locations and call_arg_loc_last always.
6640
6641         PR middle-end/48152
6642         * var-tracking.c (prepare_call_arguments): If argument needs to be
6643         passed by reference, adjust argtype and mode.
6644
6645 2011-03-17  Richard Guenther  <rguenther@suse.de>
6646
6647         PR middle-end/48134
6648         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
6649         a value make sure to fold the statement.
6650
6651 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
6652
6653         PR target/43872
6654         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
6655         return condition with !cfun->calls_alloca.
6656
6657 2011-03-17  Richard Guenther  <rguenther@suse.de>
6658
6659         PR bootstrap/48148
6660         * lto-cgraph.c (input_overwrite_node): Clear the abstract
6661         origin for decls in other ltrans units.
6662         (input_varpool_node): Likewise.
6663
6664 2011-03-17  Richard Guenther  <rguenther@suse.de>
6665
6666         PR middle-end/48165
6667         * tree-object-size.c (compute_object_offset): Properly return
6668         the offset operand of MEM_REFs as sizetype.
6669
6670 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
6671
6672         PR rtl-optimization/48141
6673         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
6674         * dse.c: Include params.h.
6675         (active_local_stores_len): New variable.
6676         (add_wild_read, dse_step1): Clear it when setting active_local_stores
6677         to NULL.
6678         (record_store, check_mem_read_rtx): Decrease it when removing
6679         from the chain.
6680         (scan_insn): Likewise.  Increase it when adding to chain, if it
6681         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
6682         set active_local_stores to NULL before the addition.
6683         * Makefile.in (dse.o): Depend on $(PARAMS_H).
6684
6685         PR rtl-optimization/48141
6686         * dse.c (record_store): If no positions are needed in an insn
6687         that cannot be deleted, at least unchain it from active_local_stores.
6688
6689 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
6690
6691         PR debug/47510
6692         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
6693         (lookup_type_die_strip_naming_typedef): ... here.
6694         (get_context_die): Use it.
6695         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
6696         the anonymous struct named by the naming typedef.
6697
6698 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6699
6700         PR target/48154
6701         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
6702         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
6703
6704 2011-03-16  Jeff Law  <law@redhat.com>
6705
6706         * tree-vrp.c (identify_jump_threads): Slightly simplify type
6707         check for operands of conditional.  Allow type to be a pointer.
6708
6709 2011-03-16  Richard Guenther  <rguenther@suse.de>
6710
6711         PR tree-optimization/48149
6712         * fold-const.c (fold_binary_loc): Fold
6713         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
6714
6715 2011-03-16  Richard Guenther  <rguenther@suse.de>
6716
6717         PR tree-optimization/26134
6718         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
6719         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
6720         (non_rewritable_mem_ref_base): Handle complex type component
6721         accesses, constrain offsets for vector and complex extracts
6722         more properly.
6723
6724 2011-03-16  Richard Guenther  <rguenther@suse.de>
6725
6726         PR tree-optimization/48146
6727         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
6728         operands avoiding the need for renaming.
6729
6730 2011-03-16  Richard Guenther  <rguenther@suse.de>
6731
6732         * gimple-fold.c (maybe_fold_reference): Open-code relevant
6733         constant folding.  Move MEM_REF canonicalization first.
6734         Rely on fold_const_aggregate_ref for initializer folding.
6735         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
6736
6737 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6738
6739         PR middle-end/48136
6740         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6741         arg0/arg1 or their arguments are always fold converted to matching
6742         types.
6743
6744         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
6745         to nargs.
6746
6747 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6748
6749         PR lto/46944
6750         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
6751         Handle in-tree gold.
6752         (ld_vers): Extract binutils version for gold.
6753         (gcc_cv_ld_hidden): Handle gold here.
6754         (gcc_cv_lto_plugin): Determine level of linker plugin support.
6755         * configure: Regenerate.
6756         * config.in: Regenerate.
6757         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
6758         -fuse-linker-plugin otherwise.
6759         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
6760         (LINK_COMMAND_SPEC): Use it.
6761         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
6762
6763 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
6764
6765         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
6766         * calls.c: Remove debug.h include.
6767         (emit_call_1): Don't call virtual_call_token debug hook.
6768         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
6769         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
6770         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
6771         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
6772         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
6773         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
6774         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
6775         dwarf2out_virtual_call): Remove.
6776         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
6777         copy_call_info and virtual_call hooks.
6778         (dwarf2out_init): Don't initialize vcall_insn_table,
6779         debug_dcall_section and debug_vcall_section.
6780         (prune_unused_types): Don't mark nodes from dcall_table.
6781         (dwarf2out_finish): Don't output dcall or vcall tables.
6782         * final.c (final_scan_insn): Don't call direct_call or
6783         virtual_call debug hooks.
6784         * debug.h (struct gcc_debug_hooks): Remove direct_call,
6785         virtual_call_token, copy_call_info and virtual_call hooks.
6786         (debug_nothing_uid): Remove prototype.
6787         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
6788         copy_call_info and virtual_call hooks.
6789         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6790         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
6791         * debug.c (do_nothing_debug_hooks): Likewise.
6792         (debug_nothing_uid): Remove.
6793         * doc/invoke.texi (-fenable-icf-debug): Remove.
6794         * common.opt (-fenable-icf-debug): Likewise.
6795
6796         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
6797         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
6798         call's MEM.  Handle functions returning aggregate through a hidden
6799         first pointer.  For virtual calls add clobbered pc to call arguments
6800         chain.
6801         * dwarf2out.c (gen_subprogram_die): Emit
6802         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
6803         can't be emitted.
6804
6805         PR debug/45882
6806         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
6807         * rtl.h (ENTRY_VALUE_EXP): Define.
6808         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
6809         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
6810         * print-rtl.c (print_rtx): Likewise.
6811         * gengtype.c (adjust_field_rtx_def): Likewise.
6812         * var-tracking.c (vt_add_function_parameter): Adjust
6813         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
6814         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
6815         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
6816         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
6817         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
6818
6819         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
6820         Call var_location debug hook even on CALL_INSNs.
6821         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
6822         * rtl.def (ENTRY_VALUE): New.
6823         * dwarf2out.c: Include cfglayout.h.
6824         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
6825         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
6826         (struct call_arg_loc_node): New type.
6827         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
6828         tail_call_site_count): New variables.
6829         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
6830         DW_TAG_GNU_call_site_parameter.
6831         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
6832         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
6833         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
6834         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
6835         and DW_AT_GNU_all_source_call_sites.
6836         (mem_loc_descriptor): Handle ENTRY_VALUE.
6837         (add_src_coords_attributes): Don't add enything if
6838         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
6839         (dwarf2out_abstract_function): Save and clear call_arg_location,
6840         call_site_count and tail_call_site_count around dwarf2out_decl call.
6841         (gen_call_site_die): New function.
6842         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
6843         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
6844         (dwarf2out_function_decl): Clear call_arg_locations,
6845         call_arg_loc_last, set call_site_count and tail_call_site_count
6846         to -1 and free block_map.
6847         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
6848         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
6849         followed by any real instructions.
6850         (dwarf2out_begin_function): Set call_site_count and
6851         tail_call_site_count to 0.
6852         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
6853         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
6854         attempt to force a DIE for it and worst case remove the attribute.
6855         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
6856         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
6857         the decl itself.
6858         * var-tracking.c: Include tm_p.h.
6859         (vt_stack_adjustments): For calls call note_register_arguments.
6860         (argument_reg_set): New variable.
6861         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
6862         ensure the VALUE is resolved.
6863         (call_arguments): New variable.
6864         (prepare_call_arguments): New function.
6865         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
6866         (struct expand_loc_callback_data): Add ignore_cur_loc field.
6867         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
6868         always use the best expression.
6869         (vt_expand_loc): Add ignore_cur_loc argument.
6870         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
6871         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
6872         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
6873         note for all calls.
6874         (vt_add_function_parameter): Use cselib_lookup_from_insn.
6875         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
6876         argument.  Don't call cselib_preserve_only_values and
6877         cselib_reset_table.
6878         (note_register_arguments): New function.
6879         (vt_initialize): Compute argument_reg_set.  Call
6880         vt_add_function_parameters before processing basic blocks instead of
6881         afterwards.  For calls call prepare_call_arguments before calling
6882         cselib_process_insn.
6883         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
6884         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
6885         (var-tracking.o): Depend on $(TM_P_H).
6886         * cfglayout.h (insn_scope): New prototype.
6887         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
6888         * cfglayout.c (insn_scope): No longer static.
6889         * insn-notes.def (CALL_ARG_LOCATION): New.
6890         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
6891         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
6892         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
6893         nothing for DECL_EXTERNAL BLOCK_VARS.
6894
6895 2011-03-16  Alan Modra  <amodra@gmail.com>
6896
6897         PR target/45844
6898         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6899         create invalid offset address for vsx splat insn.
6900         * config/rs6000/predicates.md (splat_input_operand): New.
6901         * config/rs6000/vsx.md (vsx_splat_*): Use it.
6902
6903 2011-03-15  Xinliang David Li  <davidxl@google.com>
6904
6905         PR c/47837
6906         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
6907         (normalize_preds): New function.
6908         (is_use_properly_guarded): Normalize def predicates.
6909
6910 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6911
6912         PR target/46788
6913         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
6914         in the output template.
6915
6916 2011-03-15  Richard Guenther  <rguenther@suse.de>
6917
6918         PR middle-end/47650
6919         * tree-pretty-print.c (dump_function_declaration): Properly
6920         dump unprototyped and varargs function types.
6921
6922 2011-03-15  Richard Guenther  <rguenther@suse.de>
6923
6924         PR tree-optimization/13954
6925         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
6926         and friends.
6927
6928 2011-03-15  Richard Guenther  <rguenther@suse.de>
6929
6930         PR tree-optimization/48037
6931         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
6932         selects into BIT_FIELD_REFs.
6933         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
6934         vector select.
6935
6936 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
6937
6938         PR tree-optimization/48129
6939         * builtins.c (fold_builtin_snprintf): Convert to type of
6940         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
6941         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
6942
6943 2011-03-15  Richard Guenther  <rguenther@suse.de>
6944
6945         PR tree-optimization/41490
6946         * tree-ssa-dce.c (propagate_necessity): Handle returns without
6947         value but with VUSE.
6948         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
6949         return statements.
6950         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
6951         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
6952         * tree-tailcall.c (find_tail_calls): Ignore returns.
6953
6954 2011-03-15  Richard Guenther  <rguenther@suse.de>
6955
6956         PR middle-end/48031
6957         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
6958         or variable-indexed array accesses when in gimple form.
6959
6960 2011-03-15  Richard Guenther  <rguenther@suse.de>
6961
6962         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
6963
6964 2011-03-15  Alan Modra  <amodra@gmail.com>
6965
6966         PR target/48032
6967         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
6968         presume symbol_refs without a symbol_ref_decl are suitably
6969         aligned, nor other trees we may see here.  Handle anchor symbols.
6970         (legitimate_constant_pool_address_p): Comment.  Add mode param.
6971         Check cmodel=medium addresses.  Adjust all calls.
6972         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
6973         creating cmodel=medium optimized access to locals.
6974         * config/rs6000/constraints.md (R): Pass QImode to
6975         legitimate_constant_pool_address_p.
6976         * config/rs6000/predicates.md (input_operand): Pass mode to
6977         legitimate_constant_pool_address_p.
6978         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
6979         Update prototype.
6980
6981 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6982
6983         PR target/48053
6984         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
6985         64-bit constants being loaded into registers other than GPRs such
6986         as loading 0 into a VSX register.
6987
6988 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6989
6990         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
6991
6992 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
6993
6994         PR middle-end/47917
6995         * builtins.c (fold_builtin_snprintf): New function.
6996         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
6997         (fold_builtin_4): Likewise.
6998
6999         PR middle-end/38878
7000         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
7001         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
7002         and C - X == X also strip nops from +/-/p+ operand.
7003         When optimizing -X == C, fold C to arg0's type.
7004
7005         PR debug/47946
7006         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
7007         emit it as add_AT_int instead of add_AT_unsigned.
7008
7009 2011-03-14  Tom Tromey  <tromey@redhat.com>
7010
7011         * unwind-dw2.c: Include sys/sdt.h if it exists.
7012         (_Unwind_DebugHook): Use STAP_PROBE2.
7013         * config.in, configure: Rebuild.
7014         * configure.ac: Check for sys/sdt.h.
7015
7016 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
7017
7018         * config/i386/i386.md (ROUND_FLOOR): New constant.
7019         (ROUND_CEIL): Ditto.
7020         (ROUND_TRUNC): Ditto.
7021         (ROUND_MXCSR): Ditto.
7022         (ROUND_NO_EXC): Ditto.
7023         (rint<mode>2): Use new defines instead of numerical constants.
7024         (floor<mode>2): Ditto.
7025         (ceil<mode>2): Ditto.
7026         (btrunc<mode>2): Ditto.
7027         * config/i386/i386-builtin-types.def: Define ROUND function type
7028         aliases.
7029         * config/i386/i386.c (enum ix86_builtins): Add
7030         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
7031         (struct builtin_description): Add
7032         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
7033         (ix86_expand_sse_round): New static function.
7034         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
7035         function types.
7036         (ix86_builtin_vectorized_function): Handle
7037         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
7038
7039 2011-03-14  Tom Tromey  <tromey@redhat.com>
7040
7041         * c-parser.c (c_parser_asm_string_literal): Clear
7042         warn_overlength_strings.
7043
7044 2011-03-14  Tom Tromey  <tromey@redhat.com>
7045
7046         * c-parser.c (disable_extension_diagnostics): Save
7047         warn_overlength_strings.
7048         (restore_extension_diagnostics): Restore warn_overlength_strings.
7049
7050 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7051
7052         * BASE-VER: Change to 4.7.0.
7053
7054 2011-03-14  Richard Guenther  <rguenther@suse.de>
7055
7056         PR middle-end/48098
7057         * tree.c (build_vector_from_val): Adjust assert to requirements
7058         and reality.
7059
7060 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
7061
7062         PR bootstrap/48102
7063         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
7064
7065 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
7066
7067         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
7068         terms of target_flags_explicit. Adjust copyright year.
7069
7070         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
7071         * config/rs6000/t-freebsd: New file. Add override for
7072         LIB2FUNCS_EXTRA.
7073
7074 2011-03-13  Chris Demetriou  <cgd@google.com>
7075
7076         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
7077         (-fno-diagnostics-show-option): this, to reflect current default.
7078         (-Werror=): Update text about -fno-diagnostics-show-option.
7079
7080 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
7081
7082         PR target/48053
7083         * config/rs6000/predicates.md (easy_vector_constant_add_self,
7084         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
7085         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
7086         mode is not V2DImode or V2DFmode.
7087         (vspltis_constant): Do not handle V2DImode and V2DFmode.
7088         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
7089         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
7090         registers to 0.
7091         (movdi_internal64): Likewise.
7092
7093 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
7094
7095         PR tree-optimization/47127
7096         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
7097         parameter.
7098         (set_cloog_options): Same.
7099         (scop_to_clast): Same.
7100         (print_clast_stmt): Do not call cloog_state_malloc and
7101         cloog_state_free.
7102         (print_generated_program): Same.
7103         (gloog): Same.
7104         * graphite-clast-to-gimple.h (cloog_state): Declared.
7105         (scop_to_clast): Adjust declaration.
7106         * graphite.c (cloog_state): Defined here.
7107         (graphite_initialize): Call cloog_state_malloc.
7108         (graphite_finalize): Call cloog_state_free.
7109
7110 2011-03-11  Jason Merrill  <jason@redhat.com>
7111
7112         * attribs.c (lookup_attribute_spec): Take const_tree.
7113         * tree.h: Adjust.
7114
7115 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
7116
7117         * config/sparc/sparc.c (sparc_option_override): Use
7118         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
7119
7120 2011-03-11  Richard Guenther  <rguenther@suse.de>
7121
7122         PR tree-optimization/48067
7123         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
7124         multiplication result will be only used once on the target
7125         stmt.
7126
7127 2011-03-11  Richard Guenther  <rguenther@suse.de>
7128
7129         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
7130
7131 2011-03-11  Richard Guenther  <rguenther@suse.de>
7132
7133         PR lto/48073
7134         * tree.c (find_decls_types_r): Do not walk types only reachable
7135         from IDENTIFIER_NODEs.
7136
7137 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7138
7139         PR middle-end/48044
7140         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
7141         all vnode->force_output nodes as needed.
7142
7143 2011-03-11  Jason Merrill  <jason@redhat.com>
7144
7145         PR c++/48069
7146         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
7147         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
7148
7149 2011-03-11  Martin Jambor  <mjambor@suse.cz>
7150
7151         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
7152         cgraph_node.
7153
7154 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
7155
7156         PR tree-optimization/48063
7157         * ipa-inline.c (cgraph_decide_inlining): Don't try to
7158         inline functions called once if !tree_can_inline_p (node->callers).
7159
7160 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
7161
7162         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
7163         extra_objs.
7164         * config/score/score3.c: Delete.
7165         * config/score/score3.h: Delete.
7166         * config/score/mul-div.S: Delete.
7167         * config/score/sfp-machine.h: Add new file.
7168         * config/score/constraints.md: Add new file.
7169         * config/score/t-score-softfp: Add new file.
7170         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
7171         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
7172         (score7_extra_constraint): Delete.
7173         (score7_option_override): Remove unused code.
7174         * config/score/score.c: Remove score3 and score5 define and code.
7175         * config/score/score.h: Remove score3 and score5 define and code.
7176         * config/score/score.md: Remove score3 template and unusual insn.
7177         * config/score/score.opt: Remove score3 and score5 options.
7178
7179 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7180
7181         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
7182         when _HPUX_SOURCE is defined.
7183         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
7184
7185 2011-03-10  Jason Merrill  <jason@redhat.com>
7186
7187         PR c++/48029
7188         * stor-layout.c (layout_type): Don't set structural equality
7189         on arrays of incomplete type.
7190         * tree.c (type_hash_eq): Handle comparing them properly.
7191
7192 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
7193
7194         PR debug/48043
7195         * config/s390/s390.c (s390_delegitimize_address): Make sure the
7196         result mode matches original rtl mode.
7197
7198 2011-03-10  Nick Clifton  <nickc@redhat.com>
7199
7200         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
7201         (andsi3, andsi3_flags): Fix timings for three operand alternative.
7202
7203 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
7204
7205         PR rtl-optimization/47866
7206         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
7207         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
7208         if target wasn't scalar.
7209         * function.c (assign_stack_temp_for_type): Assert that neither
7210         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
7211         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
7212         macro.
7213         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
7214
7215 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7216
7217         * config/s390/s390-protos.h (s390_label_align): New prototype.
7218         * config/s390/s390.c (s390_label_align): New function.
7219         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
7220
7221 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7222
7223         PR target/47755
7224         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
7225         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
7226         (output_vec_const_move): Ditto.
7227
7228 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
7229
7230         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
7231         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
7232         * config/mips/mips.c (mips_preferred_reload_class): Make static.
7233         Change 'rclass' argument and result type to reg_class_t.
7234         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7235
7236 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
7237
7238         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7239         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
7240         (TARGET_MEMORY_MOVE_COST): Define.
7241         (avr_register_move_cost, avr_memory_move_cost): New Functions.
7242
7243 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
7244
7245         PR debug/47881
7246         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
7247         removed anything.
7248
7249         PR tree-optimization/48022
7250         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
7251         for EQ/NE_EXPR.
7252
7253 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
7254
7255         PR debug/47991
7256         * var-tracking.c (find_use_val): Return NULL for
7257         cui->sets && cui->store_p BLKmode MEMs.
7258
7259 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
7260
7261         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7262         Remove.
7263         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
7264         xstormy16_print_operand_address): Remove.
7265         * config/stormy16/stormy16.c (xstormy16_print_operand,
7266         xstormy16_print_operand_address): Make static.
7267         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7268
7269 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
7270
7271         PR target/47862
7272         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
7273         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
7274         before definition.
7275
7276 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
7277
7278         PR bootstrap/48000
7279         * cfgloopmanip.c (fix_bb_placements): Return immediately
7280         if FROM is BASE_LOOP's header.
7281
7282 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
7283
7284         * gimplify.c (gimplify_function_tree): Fix building calls
7285         to __builtin_return_address.
7286
7287 2011-03-07  Alan Modra  <amodra@gmail.com>
7288
7289         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
7290         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
7291         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
7292         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
7293         return_mode args.
7294         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
7295         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
7296         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
7297         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
7298         * config/rs6000/rs6000.c
7299         (rs6000_elf_end_indicate_exec_stack): Rename to..
7300         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
7301         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
7302         (rs6000_file_start): ..here.
7303         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
7304         file scope variables.
7305         (call_ABI_of_interest): New function.
7306         (init_cumulative_args): Set above vars when function return value
7307         is a float, vector, or small struct.
7308         (rs6000_function_arg_advance_1): Likewise for function args.
7309         (rs6000_va_start): Set rs6000_passes_float if variable arg function
7310         references float args.
7311
7312 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
7313
7314         * doc/cfg.texi: Remove "See" before @ref.
7315         * doc/invoke.texi: Likewise.
7316
7317 2011-03-05  Jason Merrill  <jason@redhat.com>
7318
7319         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
7320
7321 2011-03-05  Anthony Green  <green@moxielogic.com>
7322
7323         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
7324
7325 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
7326
7327         PR rtl-optimization/47899
7328         * cfgloopmanip.c (fix_bb_placements): Fix first argument
7329         to flow_loop_nested_p when moving the loop upward.
7330
7331 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
7332
7333         PR target/47719
7334         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
7335
7336 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
7337
7338         PR tree-optimization/47967
7339         * ipa-cp.c (build_const_val): Return NULL instead of creating
7340         VIEW_CONVERT_EXPR for mismatching sizes.
7341         (ipcp_create_replace_map): Return NULL if build_const_val failed.
7342         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
7343         give up on versioning.
7344
7345 2011-03-05  Alan Modra  <amodra@gmail.com>
7346
7347         PR target/47986
7348         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7349         full cmodel medium/large lo_sum + high addresses.
7350
7351 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7352
7353         * config/s390/s390.c (s390_decompose_address): Reject non-literal
7354         pool references in UNSPEC_LTREL_OFFSET.
7355
7356 2011-03-04  Jan Hubicka  <jh@suse.cz>
7357
7358         PR lto/47497
7359         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
7360         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
7361         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
7362         Add node pointers.
7363         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
7364         cgraph_add_thunk): Add node pointers.
7365         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
7366         associated to right node.
7367         (input_node): Update use of cgraph_same_body_alias
7368         and cgraph_add_thunk.
7369
7370 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
7371
7372         * config/i386/i386.opt (mprefer-avx128): New flag.
7373         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
7374         modes when the flag -mprefer-avx128 is on.
7375
7376 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
7377
7378         * dwarf2out.c (compare_loc_operands): Fix address handling.
7379
7380 2011-03-04  Alan Modra  <amodra@gmail.com>
7381
7382         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
7383
7384 2011-03-04  Richard Guenther  <rguenther@suse.de>
7385
7386         PR middle-end/47968
7387         * expmed.c (extract_bit_field_1): Prefer vector modes that
7388         vec_extract patterns can handle.
7389
7390 2011-03-04  Richard Guenther  <rguenther@suse.de>
7391
7392         PR middle-end/47975
7393         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
7394
7395 2011-03-04  Richard Henderson  <rth@redhat.com>
7396
7397         * explow.c (emit_stack_save): Remove 'after' parameter.
7398         (emit_stack_restore): Likewise.
7399         * expr.h: Update to match.
7400         * builtins.c, calls.c, stmt.c: Likewise.
7401         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
7402         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
7403         * function.c (expand_function_end): Insert the emit_stack_save
7404         sequence before parm_birth_insn instead of after.
7405
7406 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
7407
7408         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
7409         (ssse3_pmaddubsw128): Ditto.
7410         (ssse3_pmaddubsw): Ditto.
7411
7412 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
7413
7414         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
7415
7416 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
7417
7418         PR c/47963
7419         * gimplify.c (omp_add_variable): Only call omp_notice_variable
7420         on TYPE_SIZE_UNIT if it is a DECL.
7421
7422         PR debug/47283
7423         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
7424         first operand is not is_gimple_mem_ref_addr, try to fold it.
7425         If the operand still isn't is_gimple_mem_ref_addr, clear
7426         MEM_EXPR on op0.
7427
7428 2011-03-03  Richard Guenther  <rguenther@suse.de>
7429
7430         PR middle-end/47283
7431         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
7432         match comment.
7433         (refs_may_alias_p_1): For release branches return true if
7434         we are confused by our input.
7435
7436 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7437
7438         * config/s390/s390.c (s390_function_value): Rename to ...
7439         (s390_function_and_libcall_value): ... this.
7440         (s390_function_value): New function.
7441         (s390_libcall_value): New function.
7442         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
7443         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
7444         target macro definitions.
7445         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
7446
7447 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
7448
7449         * config/i386/freebsd64.h (CC1_SPEC): Define.
7450         * config/i386/linux64.h (CC1_SPEC): Define.
7451         * config/i386/x86-64.h (CC1_SPEC): Don't define.
7452
7453 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
7454
7455         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7456         Remove.
7457         * config/stormy16/stormy16.c: Include reload.h.
7458         (xstormy16_memory_move_cost): New function.
7459         (TARGET_MEMORY_MOVE_COST): Define.
7460
7461 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
7462
7463         PR rtl-optimization/47925
7464         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
7465         with side effects.  Remove the more-specific check for volatile asms.
7466
7467 2011-03-02  Alan Modra  <amodra@gmail.com>
7468
7469         PR target/47935
7470         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
7471         toc relative addresses for valid offsets.
7472
7473 2011-03-01  Richard Guenther  <rguenther@suse.de>
7474
7475         PR tree-optimization/47890
7476         * tree-vect-loop.c (get_initial_def_for_induction): Set
7477         related stmt properly.
7478
7479 2011-03-01  Richard Guenther  <rguenther@suse.de>
7480
7481         PR lto/47924
7482         * lto-streamer.c (lto_record_common_node): Also register
7483         the canonical type.
7484
7485 2011-03-01  Richard Guenther  <rguenther@suse.de>
7486
7487         PR lto/46911
7488         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7489         Do not stream DECL_ABSTRACT_ORIGIN.
7490         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7491         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7492         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7493         Do not stream DECL_ABSTRACT_ORIGIN.
7494         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
7495         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
7496
7497 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
7498
7499         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
7500         FUNCTION_VALUE_REGNO_P): Remove.
7501         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
7502         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
7503         Add 'outgoing' argument.
7504         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
7505         function.
7506         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7507         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7508
7509 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
7510
7511         PR debug/28047
7512         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
7513         (lookup_filename): Likewise.
7514         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
7515
7516 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
7517             Jakub Jelinek  <jakub@redhat.com>
7518
7519         PR middle-end/47893
7520         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
7521         (assign_stack_local_1): Change last argument type to int.
7522         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
7523         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
7524         don't record padding space into frame_space_list nor use those areas.
7525         (assign_stack_local): Adjust caller.
7526         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
7527         of assign_stack_local, pass 0 as last argument.
7528         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
7529         callers.
7530
7531 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
7532
7533         PR debug/47283
7534         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
7535         Use target address_mode and pointer_mode hooks instead of hardcoded
7536         Pmode and ptr_mode.  Handle some simple cases of extending if
7537         POINTERS_EXTEND_UNSIGNED < 0.
7538         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
7539         Call convert_debug_memory_address.
7540         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
7541         convert_debug_memory_address.
7542
7543         PR middle-end/46790
7544         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
7545         * configure: Regenerated.
7546         * config.in: Regenerated.
7547         * varasm.c (default_function_section): Return NULL
7548         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
7549
7550 2011-02-28  Martin Jambor  <mjambor@suse.cz>
7551
7552         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
7553         the description to match the printed values.
7554
7555 2011-02-28  Richard Guenther  <rguenther@suse.de>
7556
7557         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
7558         of the copied scope tree.
7559
7560 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7561
7562         * doc/extend.texi (Function Attributes): Avoid deeply (and
7563         wrongly) nested tables.
7564
7565 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
7566
7567         PR middle-end/47903
7568         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
7569         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
7570         r isn't op0 nor op1.
7571
7572 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7573
7574         * config/avr/avr.md: Remove magic comment for emacs.
7575
7576 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
7577
7578         PR target/45261
7579         * config/avr/avr.c (avr_option_override): Use error on bad options.
7580         (avr_help): New function.
7581         (TARGET_HELP): Define.
7582
7583 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
7584
7585         PR target/42240
7586         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
7587         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
7588
7589 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
7590
7591         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
7592         (ARM Options): Ditto.
7593         (i386 and x86-64 Options): Ditto.
7594         (RX Options): Ditto.
7595         (SPARC Options): Ditto.
7596
7597 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
7598
7599         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
7600         FreeBSD 6 and later.  Generally use cpu generic.
7601
7602 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
7603
7604         * doc/cpp.texi: Update copyright years.
7605
7606 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7607
7608         PR target/46898
7609         * config/lm32/lm32.md (ashrsi3): Added needed variable.
7610
7611 2011-02-25  Jon Beniston  <jon@beniston.com>
7612
7613         PR target/46898
7614         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
7615         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
7616         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
7617         (lm32_block_move_inline): Add type cast to remove warning.
7618         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
7619         (gen_int_relational): Move declarations to start of function.
7620
7621 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
7622
7623         PR tree-optimization/45470
7624         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7625         can throw internally only.
7626         * tree-vect-stmts.c (vectorizable_call): Likewise.
7627
7628 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
7629
7630         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
7631         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7632         * config/stormy16/stormy16-protos.h
7633         (xstormy16_preferred_reload_class): Remove.
7634         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
7635         static. Change 'rclass' argument and return type to reg_class_t.
7636         (TARGET_PREFERRED_RELOAD_CLASS,
7637         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7638
7639 2011-02-24  Richard Guenther  <rguenther@suse.de>
7640
7641         * lto-streamer-in.c (input_bb): Do not find referenced vars
7642         in debug statements.
7643
7644 2011-02-23  Jason Merrill  <jason@redhat.com>
7645
7646         * common.opt (fabi-version): Document v5 and v6.
7647
7648 2011-02-23  Richard Guenther  <rguenther@suse.de>
7649
7650         PR tree-optimization/47849
7651         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
7652
7653 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7654
7655         * opts-common.c (decode_cmdline_option): Print empty string
7656         argument as "" in decoded->orig_option_with_args_text.
7657         * gcc.c (execute): Print empty string argument as ""
7658         in the verbose output.
7659         (do_spec_1): Keep empty string argument.
7660
7661 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
7662
7663         * config.gcc: Declare score-* and crx-* obsolete.
7664
7665 2011-02-23  Jie Zhang  <jie@codesourcery.com>
7666
7667         PR rtl-optimization/47763
7668         * web.c (web_main): Ignore naked clobber when replacing register.
7669
7670 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
7671
7672         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
7673         Remove.
7674
7675 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
7676
7677         PR doc/47848
7678         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
7679
7680 2011-02-22  Mike Stump  <mikestump@comcast.net>
7681
7682         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
7683         assembler.
7684         * configure: Regenerate.
7685
7686 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
7687
7688         PR rtl-optimization/46002
7689         * ira-color.c (update_copy_costs): Change class intersection
7690         test to reg_class_contents[] test of 'hard_regno'.
7691
7692 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
7693
7694         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
7695         than Driver option.
7696         * config/hpux11.opt (mt): Likewise.
7697         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
7698         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
7699         * config/vax/elf.opt (mno-asm-pic): Likewise.
7700         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
7701
7702 2011-02-21  Mike Stump  <mikestump@comcast.net>
7703
7704         PR target/47822
7705         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
7706         tree so we can get save the type.
7707         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
7708         for CFString instead of trying to use past the end of the builtins.
7709         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
7710         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
7711         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
7712         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
7713         Rename to darwin_builtin_cfstring.
7714         (darwin_init_cfstring_builtins): Return the built type.
7715
7716 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
7717
7718         PR target/47840
7719         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
7720         (_mm256_insert_epi64): Use _mm_insert_epi64.
7721
7722 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
7723
7724         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7725         * config/stormy16/stormy16-protos.h
7726         (xstormy16_mode_dependent_address_p): Remove.
7727         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7728         Make static. Change return type to bool. Change argument type to
7729         const_rtx. Remove dead code.
7730         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7731
7732 2011-02-21  Richard Guenther  <rguenther@suse.de>
7733
7734         PR lto/47820
7735         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7736         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7737         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
7738         TUs context.
7739         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7740         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
7741
7742 2011-02-20  Richard Guenther  <rguenther@suse.de>
7743
7744         PR lto/47822
7745         * tree.c (free_lang_data_in_decl): Clean builtins from
7746         the TU decl BLOCK_VARS.
7747
7748 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
7749
7750         PR debug/47620
7751         PR debug/47630
7752         * haifa-sched.c (fix_tick_ready): Skip tick computation
7753         for debug insns.
7754
7755 2011-02-19  Richard Guenther  <rguenther@suse.de>
7756
7757         PR lto/47647
7758         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7759         Remove lazy BLOCK_VARS streaming.
7760         (lto_input_ts_block_tree_pointers): Likewise.
7761         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7762
7763 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7764
7765         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
7766
7767 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
7768
7769         * config/i386/biarch32.h, config/i386/mach.h,
7770         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
7771
7772 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
7773
7774         PR target/47800
7775         * config/i386/i386.md (peephole2 for shift and plus): Use
7776         operands[1] original mode in the first insn.
7777
7778 2011-02-18  Mike Stump  <mikestump@comcast.net>
7779
7780         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
7781
7782 2011-02-18  Jan Hubicka  <jh@suse.cz>
7783
7784         PR middle-end/47788
7785         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
7786         to zero when the function is not inlinable at all.
7787
7788 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7789
7790         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
7791         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
7792         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
7793         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
7794         * config/pa/t-pa64: Likewise.
7795         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7796
7797 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7798
7799         PR driver/47787
7800         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
7801
7802 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7803
7804         PR target/47792
7805         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
7806
7807 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
7808
7809         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7810         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
7811         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
7812         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7813         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
7814         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
7815         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
7816         m32r_load_postinc_p, m32r_store_preinc_predec_p,
7817         m32r_legitimate_address_p): New functions.
7818         * config/m32r/constraints.md (constraint "S"): Don't use
7819         STORE_PREINC_PREDEC_P.
7820         (constraint "U"): Don't use LOAD_POSTINC_P.
7821
7822 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
7823
7824         PR rtl-optimization/46178
7825         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
7826         compute ira_hard_regno_cover_class[].
7827
7828 2011-02-18  Richard Guenther  <rguenther@suse.de>
7829
7830         PR lto/47798
7831         * lto-streamer.h (lto_global_var_decls): Declare.
7832         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
7833         statics for global var processing.
7834
7835 2011-02-18  Richard Guenther  <rguenther@suse.de>
7836
7837         PR tree-optimization/47737
7838         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
7839         edge dominance check.
7840
7841 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
7842
7843         PR debug/47780
7844         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
7845         avoid invalid rtx sharing.
7846
7847 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
7848
7849         * doc/cpp.texi (Obsolete Features): Add background on the
7850         origin of assertions.
7851
7852 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
7853
7854         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
7855         objc_abi == 2.
7856         * config/darwin.c (output_objc_section_asm_op): Added support for
7857         ABI v1 and v2.
7858         (is_objc_metadata): New.
7859         (darwin_objc2_section): New.
7860         (darwin_objc1_section): New.
7861         (machopic_select_section): Added support for ABI v1 and v2.
7862         (darwin_emit_objc_zeroed): New.
7863         (darwin_output_aligned_bss): Detect objc metadata and treat it
7864         appropriately.
7865         (darwin_asm_output_aligned_decl_common): Same.
7866         (darwin_asm_output_aligned_decl_local): Same.
7867         * config/darwin-sections.def: Updated for ABI v1 and v2.
7868         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
7869         compiling Objective-C code for the NeXT runtime, default to using
7870         ABI version 0 for 32-bit, and version 2 for 64-bit.
7871
7872 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7873
7874         * common.opt (optimize_fast): New Variable.
7875         * opts.c (default_options_optimization): Use opts->x_optimize_fast
7876         instead of local variable ofast.
7877
7878 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7879
7880         * doc/invoke.texi (fobjc-abi-version): Documented.
7881         (fobjc-nilcheck): Documented.
7882         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
7883         version.
7884
7885 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7886
7887         PR driver/47390
7888         * common.opt (export-dynamic): New Driver option.
7889         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
7890
7891 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7892
7893         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
7894
7895 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
7896             Jan Hubicka  <jh@suse.cz>
7897
7898         PR debug/47106
7899         PR debug/47402
7900         * cfgexpand.c (account_used_vars_for_block): Remove.
7901         (estimated_stack_frame_size): Use referenced vars.
7902         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
7903         that were referenced in the original function.  Test src_fn
7904         rather than cfun.  Drop redundant get_var_ann.
7905         (setup_one_parameter): Drop redundant get_var_ann.
7906         (declare_return_variable): Likewise.
7907         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
7908         (copy_arguments_for_versioning): Drop redundant get_var_ann.
7909         * ipa-inline.c (compute_inline_parameters): Do not compute
7910         disregard_inline_limits here.
7911         (compute_inlinable_for_current, pass_inlinable): New.
7912         (pass_inline_parameters): Require PROP_referenced_vars.
7913         * cgraphunit.c (cgraph_process_new_functions): Don't run
7914         compute_inline_parameters explicitly unless function is in SSA form.
7915         (cgraph_analyze_function): Set .disregard_inline_limits.
7916         * tree-sra.c (convert_callers): Compute inliner parameters
7917         only for functions already in SSA form.
7918
7919 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7920
7921         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
7922         -mlittle-endian-data.
7923
7924 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
7925
7926         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
7927         -mno-fpu, not -fpu and -no-fpu.
7928         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
7929         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
7930
7931 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
7932
7933         PR target/43653
7934         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
7935         input reload with PLUS RTX.
7936
7937 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7938
7939         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
7940         of InverseVar(MDMX).
7941
7942 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7943
7944         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
7945         --m4-340.
7946
7947 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7948
7949         * config/mn10300/mn10300.opt (mno-crt0): New.
7950
7951 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7952
7953         * config/m68k/uclinux.opt (static-libc): New Driver option.
7954
7955 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7956
7957         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
7958
7959 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
7960
7961         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
7962         %{muser-extend-enabled}.
7963
7964 2011-02-16  Richard Guenther  <rguenther@suse.de>
7965
7966         PR tree-optimization/47738
7967         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
7968         the TODO from tree_predictive_commoning.
7969
7970 2011-02-15  Jeff Law  <law@redhat.com>
7971
7972         Revert
7973         2011-01-25  Jeff Law  <law@redhat.com>
7974
7975         PR rtl-optimization/37273
7976         * ira-costs.c (scan_one_insn): Detect constants living in memory and
7977         handle them like argument loads from stack slots.  Do not double
7978         count memory for memory constants and argument loads from stack slots.
7979
7980 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
7981
7982         PR middle-end/47725
7983         * combine.c (cant_combine_insn_p): Revert the last change.
7984
7985 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
7986
7987         PR target/47755
7988         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
7989         mode for vector constants.  Remove code that checks for TImode.
7990
7991 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7992
7993         PR debug/47106
7994         PR debug/47402
7995         * cgraph.h (compute_inline_parameters): Return void.
7996         * ipa-inline.c (compute_inline_parameters): Adjust.
7997
7998 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
7999
8000         PR debug/47106
8001         PR debug/47402
8002         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
8003         rather than decl.
8004         * cfgexpand.c (estimated_stack_frame_size): Likewise.
8005         * ipa-inline.c (compute_inline_parameters): Adjust.
8006
8007 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8008
8009         PR debug/47106
8010         PR debug/47402
8011         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
8012         Adjust all users.  Pass FN to...
8013         * tree-flow-inline.h (first_referenced_var): ... this.  Add
8014         fn argument.
8015         * ipa-struct-reorg.c: Adjust.
8016         * tree-dfa.c: Adjust.
8017         * tree-into-ssa.c: Adjust.
8018         * tree-sra.c: Adjust.
8019         * tree-ssa-alias.c: Adjust.
8020         * tree-ssa-live.c: Adjust.
8021         * tree-ssa.c: Adjust.
8022         * tree-ssanames.c: Adjust.
8023         * tree-tailcall.c: Adjust.
8024
8025 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
8026
8027         PR debug/47106
8028         PR debug/47402
8029         * tree-flow.h (referenced_var_lookup): Add fn parameter.
8030         Adjust all callers.
8031         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8032         * tree-flow-inline.h: Adjust.
8033         * gimple-pretty-print.c: Adjust.
8034         * tree-into-ssa.c: Adjust.
8035         * tree-ssa.c: Adjust.
8036         * cfgexpand.c: Adjust.
8037
8038 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8039
8040         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
8041         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8042         (EXTRA_CONSTRAINT): Delete.
8043         * config/iq2000/constraints.md: New file.
8044         * config/iq2000/iq2000.md: Include it.
8045         (define_insn ""): Delete.
8046         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
8047         unsupported constraint letters from patterns.
8048         (call_value, call_value_internal1): Likewise.
8049         (call_value_multiple_internal1): Likewise.
8050
8051 2011-02-15  Nick Clifton  <nickc@redhat.com>
8052
8053         * config/mn10300/mn10300.c: Include tm-constrs.h.
8054         (struct liw_data): New data structure describing an LIW candidate
8055         instruction.
8056         (extract_bundle): Use struct liw_data.  Allow small integer
8057         operands for some instructions.
8058         (check_liw_constraints): Use struct liw_data.  Remove swapped
8059         parameter.  Add comments describing the checks.  Fix bug when
8060         assigning the source of liw1 to the source of liw2.
8061         (liw_candidate): Delete.  Code moved into extract_bundle.
8062         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
8063         before swapping.
8064         * config/mn10300/predicates.md (liw_operand): New predicate.
8065         Allows registers and small integer constants.
8066         * config/mn10300/constraints.md (O): New constraint.  Accetps
8067         integers in the range -8 to +7 inclusive.
8068         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
8069         for moving a small integer into a register.  Give this alternative
8070         LIW attributes.
8071         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
8072         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
8073         using the J,K,L and M constraints,
8074         (liw): Remove SI mode on second operands to allow for HI and QI
8075         mode values.
8076         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
8077         instruction.
8078
8079 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8080
8081         PR middle-end/47725
8082         * combine.c (cant_combine_insn_p): Check zero/sign extended
8083         hard registers.
8084
8085 2011-02-15  Richard Guenther  <rguenther@suse.de>
8086
8087         PR tree-optimization/47743
8088         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
8089         for a non-type-compatible VN lookup bail out.
8090
8091 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8092
8093         * config/fr30/constraints.md: New file.
8094         * config/fr30/fr30.md: Include it.
8095         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
8096         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8097         (EXTRA_CONSTRAINT): Delete.
8098
8099 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
8100
8101         * config/frv/constraints.md: New file.
8102         * config/frv/predicates.md: Include it.
8103         * config/frv/frv.c (reg_class_from_letter): Delete.
8104         (frv_option_override): Don't initialize it.
8105         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
8106         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
8107         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
8108         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8109         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
8110         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8111         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
8112         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
8113         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
8114         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
8115         (REG_CLASS_FROM_CONSTRAINT): Delete.
8116
8117 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
8118
8119         PR middle-end/47581
8120         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
8121         if frame size is 0 in a leaf function.
8122
8123 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8124
8125         PR pch/14940
8126         * config/alpha/host-osf.c: New file.
8127         * config/alpha/x-osf: New file.
8128         * config.host (alpha*-dec-osf*): Use it.
8129
8130 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8131
8132         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8133         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
8134         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
8135         (rx_mode_dependent_address_p): ...this. Make static. Change argument
8136         type to const_rtx.
8137         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8138
8139 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8140
8141         * config/stormy16/constraints.md: New file.
8142         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
8143         Use satisfies_constraint_Q and satisfies_constraint_R.
8144         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
8145         Delete.
8146         (xstormy16_legitiamte_address_p): Declare.
8147         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
8148         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8149         (EXTRA_CONSTRAINT): Delete.
8150         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
8151         Un-staticize.
8152         (xstormy16_extra_constraint_p): Delete.
8153
8154 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
8155
8156         PR tree-optimization/46494
8157         * loop-unroll.c (split_edge_and_insert): Adjust comment.
8158         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
8159         (pass_rtl_loop_done): Add TODO_verify_flow.
8160         * fwprop.c (pass_rtl_fwprop): Likewise.
8161         * modulo-sched.c (pass_sms): Likewise.
8162         * tree-ssa-dom.c (pass_dominator): Likewise.
8163         * tree-ssa-loop-ch.c (pass_ch): Likewise.
8164         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
8165         (pass_tree_loop_done): Likewise.
8166         * tree-ssa-pre.c (execute_pre): Likewise.
8167         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
8168         * tree-ssa-sink.c (pass_sink_code): Likewise.
8169         * tree-vrp.c (pass_vrp): Likewise.
8170
8171 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8172
8173         * config/v850/constraints.md: New file.
8174         * config/v850/v850.md: Include it.
8175         * config/v850/predicates.md (reg_or_0_operand): Use
8176         satisfies_constraint_G.
8177         (special_symbolref_operand): Use satisfies_constraint_K.
8178         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
8179         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
8180         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
8181         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
8182         (EXTRA_CONSTRAINT): Delete.
8183         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
8184         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
8185         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
8186
8187 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
8188
8189         PR target/47696
8190         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
8191         description.
8192
8193 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
8194
8195         * config/mcore/constraints.md: New file.
8196         * config/mcore/mcore.md: Include it.
8197         * config/mcore/mcore.c (reg_class_from_letter): Delete.
8198         * config/mcore/mcore.h (reg_class_from_letter): Delete.
8199         (REG_CLASS_FROM_LETTER): Delete.
8200         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
8201         insn_const_int_ok_for_constraint.
8202         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
8203         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
8204         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8205         (EXTRA_CONSTRAINT): Delete.
8206
8207 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8208
8209         PR ada/41929
8210         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
8211         (IS_SIGHANDLER): Define.
8212         (sparc64_is_sighandler): New function, split off from
8213         sparc64_fallback_frame_state.
8214         (sparc_is_sighandler): New function, split off from
8215         sparc_fallback_frame_state.
8216         (sparc64_fallback_frame_state): Merge with ...
8217         (sparc_fallback_frame_state): ... this into ...
8218         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
8219         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
8220         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
8221         stack instead of hardcoded offsets.
8222
8223 2011-02-14  Andriy Gapon  <avg@freebsd.org>
8224
8225         PR target/45808
8226         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
8227
8228 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8229
8230         * configure: Regenerate.
8231
8232 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
8233
8234         PR driver/45731
8235         * gcc.c (asm_options): Correct spec matching --target-help.
8236
8237 2011-02-12  Martin Jambor  <mjambor@suse.cz>
8238
8239         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
8240         to gimple call error.
8241
8242 2011-02-12  Mike Stump  <mikestump@comcast.net>
8243
8244         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
8245         comments in backslash regions.
8246
8247 2011-02-12  Mike Stump  <mikestump@comcast.net>
8248             Jakub Jelinek  <jakub@redhat.com>
8249             Iain Sandoe  <iains@gcc.gnu.org>
8250
8251         PR target/47324
8252         * dwarf2out.c (output_cfa_loc): When required, apply the
8253         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
8254         (output_loc_sequence): Likewise.
8255         (output_loc_operands_raw): Likewise.
8256         (output_loc_sequence_raw): Likewise.
8257         (output_cfa_loc): Likewise.
8258         (output_loc_list): Suppress register number adjustment when
8259         calling output_loc_sequence()
8260         (output_die): Likewise.
8261
8262 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
8263
8264         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
8265         Remove macros.
8266         * config/xtensa/xtensa.c (xtensa_register_move_cost,
8267         xtensa_memory_move_cost): New functions.
8268         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
8269
8270 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
8271
8272         PR lto/47225
8273         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
8274         in the current directory.
8275         * configure: Rebuilt.
8276
8277 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8278
8279         * config/darwin.c (darwin_override_options): Add a hunk missed
8280         from the commit of r168571.  Trim comment line lengths and
8281         correct indents of the preceding block.
8282
8283 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
8284
8285         * gcc.c (driver_handle_option): Concatenate the argument to -F with
8286         the switch.
8287
8288 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8289
8290         * common.opt (nostartfiles): New Driver option.
8291
8292 2011-02-11  Xinliang David Li  <davidxl@google.com>
8293
8294         PR tree-optimization/47707
8295         * tree-chrec.c (convert_affine_scev): Keep type precision.
8296
8297 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
8298
8299         PR tree-optimization/47420
8300         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
8301
8302 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
8303
8304         PR rtl-optimization/47614
8305         * rtl.h (check_for_inc_dec): Declare.
8306         * dse.c (check_for_inc_dec): Externalize...
8307         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
8308         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
8309
8310 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
8311
8312         PR driver/47678
8313         * gcc.c (main): Do not compile inputs if there were errors in
8314         option handling.
8315         * opts-common.c (read_cmdline_option): Check for wrong language
8316         after other error checks.
8317
8318 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
8319
8320         * cgraph.c: Fix comment typos.
8321         * cgraph.h: Likewise.
8322         * cgraphunit.c: Likewise.
8323         * ipa-cp.c: Likewise.
8324         * ipa-inline.c: Likewise.
8325         * ipa-prop.c: Likewise.
8326         * ipa-pure-const.c: Likewise.
8327         * ipa-ref.c: Likewise.
8328         * ipa-reference.c: Likewise.
8329
8330 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
8331
8332         PR debug/47684
8333         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
8334
8335 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8336
8337         PR testsuite/47400
8338         * doc/sourcebuild.texi (Require Support): Document
8339         dg-require-ascii-locale.
8340
8341 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
8342
8343         * doc/lto.texi (Write summary): Fix missing parentheses.
8344
8345 2011-02-10  DJ Delorie  <dj@redhat.com>
8346
8347         * config/m32c/m32c.c (m32c_option_override): Disable
8348         -fcombine-stack-adjustments until flag value tracking and compare
8349         optimization can be rewritten.
8350
8351 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
8352
8353         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
8354         PROCESSOR_POWER7.
8355         (PROCESSOR_DEFAULT64): Likewise.
8356
8357 2011-02-10  Richard Henderson  <rth@redhat.com>
8358
8359         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
8360         change from 2011-02-03.
8361         * config/rx/rx.c (flags_from_code): Likewise.
8362         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
8363         is valid, n/pz otherwise.
8364         (rx_select_cc_mode): Return CCmode if Y is not zero.
8365
8366 2011-02-10  Richard Guenther  <rguenther@suse.de>
8367
8368         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
8369
8370 2011-02-10  Richard Guenther  <rguenther@suse.de>
8371
8372         PR tree-optimization/47677
8373         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
8374
8375 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
8376
8377         PR target/47665
8378         * combine.c (make_compound_operation): Only change shifts into
8379         multiplication for SCALAR_INT_MODE_P.
8380
8381 2011-02-10  Jie Zhang  <jie@codesourcery.com>
8382
8383         PR testsuite/47622
8384         Revert
8385         2011-02-05  Jie Zhang  <jie@codesourcery.com>
8386         PR debug/42631
8387         * web.c (entry_register): Don't clobber the number of the
8388         first uninitialized reference in used[].
8389
8390 2011-02-09  Richard Guenther  <rguenther@suse.de>
8391
8392         PR tree-optimization/47664
8393         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
8394         all edges again.
8395
8396 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
8397
8398         PR target/46481
8399         PR target/47032
8400         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
8401         PROCESSOR_POWER7.
8402         (PROCESSOR_DEFAULT64): Same.
8403         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
8404
8405 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8406
8407         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
8408
8409 2011-02-09  Martin Jambor  <mjambor@suse.cz>
8410
8411         PR middle-end/45505
8412         * tree-sra.c (struct access): New flags grp_scalar_read and
8413         grp_scalar_write.  Changed description of assignment read and write
8414         flags.
8415         (dump_access): Dump new flags, reorder all of them.
8416         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
8417         to detect multiple scalar reads.
8418         (analyze_access_subtree): Use the new scalar read write flags instead
8419         of the old flags.  Adjusted comments.
8420
8421 2011-02-08  DJ Delorie  <dj@redhat.com>
8422
8423         PR target/47548
8424         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
8425         patterns.
8426
8427 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8428
8429         * config/m68k/uclinux.opt: New.
8430         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
8431
8432 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8433
8434         * config/cris/elf.opt (sim): New Driver option.
8435
8436 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8437
8438         * config/xtensa/elf.opt: New.
8439         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
8440
8441 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8442
8443         * config/vax/elf.opt: New.
8444         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
8445
8446 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8447
8448         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
8449
8450 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8451
8452         * config/gnu-user.opt: New.
8453         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
8454         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
8455         *-*-uclinux*): Use gnu-user.opt.
8456
8457 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
8458
8459         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
8460         * config/i386/gnu.h (CPP_SPEC): Likewise.
8461
8462 2011-02-08  Ian Lance Taylor  <iant@google.com>
8463
8464         * common.opt (fcx-limited-range): Add SetByCombined flag.
8465         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
8466         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
8467         (fassociative-math, freciprocal-math): Likewise.
8468         (funsafe-math-optimizations): Likewise.
8469         * opth-gen.awk: Handle SetByCombined.
8470         * optc-gen.awk: Likewise.
8471         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
8472         (set_unsafe_math_optimizations_flags): Likewise.
8473         * doc/options.texi (Option properties): Document SetByCombined.
8474
8475 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
8476
8477         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
8478         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
8479         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
8480         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
8481         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
8482
8483 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
8484
8485         PR tree-optimization/46834
8486         PR tree-optimization/46994
8487         PR tree-optimization/46995
8488         * graphite-sese-to-poly.c (used_outside_reduction): New.
8489         (detect_commutative_reduction): Call used_outside_reduction.
8490         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
8491         translate_scalar_reduction_to_array only when at least one
8492         loop-phi/close-phi tuple has been detected.
8493
8494 2011-02-08  Richard Guenther  <rguenther@suse.de>
8495
8496         PR middle-end/47639
8497         * tree-vect-generic.c (expand_vector_operations_1): Update
8498         stmts here ...
8499         (expand_vector_operations): ... not here.  Cleanup EH info
8500         and the CFG if required.
8501
8502 2011-02-08  Richard Guenther  <rguenther@suse.de>
8503
8504         PR tree-optimization/47641
8505         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
8506         require type compatibility.
8507
8508 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8509
8510         * gimple-low.c (lower_function_body): Don't remove the location of
8511         the return statement here.
8512         (lower_gimple_return): Do it here instead but only if the return
8513         statement is actually used twice.
8514
8515 2011-02-08  Richard Guenther  <rguenther@suse.de>
8516
8517         PR tree-optimization/47632
8518         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
8519         unused up_to_stmt parameter, return whether cfg-cleanup is
8520         necessary, remove EH info properly.
8521         (forward_propagate_into_gimple_cond): Adjust caller.
8522         (forward_propagate_into_cond): Likewise.
8523         (forward_propagate_comparison): Likewise.
8524         (tree_ssa_forward_propagate_single_use_vars): Make
8525         forward_propagate_comparison case similar to the two others.
8526
8527 2011-02-08  Nick Clifton  <nickc@redhat.com>
8528
8529         * config/mn10300/mn10300.opt (mliw): New command line option.
8530         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
8531         (liw_bundling): New automaton.
8532         (liw): New attribute.
8533         (liw_op): New attribute.
8534         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
8535         (movsi_internal): Add LIW attributes.
8536         (andsi3): Likewise.
8537         (iorsi3): Likewise.
8538         (xorsi3): Likewise.
8539         (addsi3): Separate register and immediate alternatives.
8540         Add LIW attributes.
8541         (subsi3): Likewise.
8542         (cmpsi): Likewise.
8543         (aslsi3): Likewise.
8544         (lshrsi3): Likewise.
8545         (ashrsi3): Likewise.
8546         (liw): New pattern.
8547         * config/mn10300/mn10300.c (liw_op_names): New
8548         (mn10300_print_operand): Handle 'W' operand descriptor.
8549         (extract_bundle): New function.
8550         (check_liw_constraints): New function.
8551         (liw_candidate): New function.
8552         (mn10300_bundle_liw): New function.
8553         (mn10300_reorg): New function.
8554         (TARGET_MACHINE_DEPENDENT_REORG): Define.
8555         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
8556         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
8557         __LIW__ or __NO_LIW__.
8558         * doc/invoke.texi: Describe the -mliw command line option.
8559
8560 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8561
8562         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
8563         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
8564         pthread_mutex_unlock): Remove.
8565         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
8566         * config/pa/t-pa64: Likewise.
8567         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
8568         shared libc if not linking against libpthread.
8569         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
8570
8571 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
8572
8573         PR target/47558
8574         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
8575         on 10.6 and later to ensure that we always use the unwinder from
8576         the system.  Only add -no_compact_unwind when tarteting darwin
8577         10.6 or later.
8578
8579 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
8580
8581         PR target/46997
8582         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
8583         (vec_interleave_lowv2sf): Ditto.
8584         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
8585         (vec_extract_oddv2sf): Ditto.
8586
8587 2011-02-07  Mike Stump  <mikestump@comcast.net>
8588
8589         PR target/42333
8590         Add __ieee_divdc3 entry point.
8591         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
8592         entry point.
8593         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
8594         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
8595         * config/darwin.c (darwin_rename_builtins): Add.
8596         * config/darwin-protos.h (darwin_rename_builtins): Add.
8597
8598 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
8599
8600         PR target/47636
8601         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
8602         for the condition.
8603
8604 2011-02-07  Mike Stump  <mikestump@comcast.net>
8605
8606         * config/darwin.opt (mmacosx-version-min): Update default OS version.
8607
8608 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
8609
8610         PR target/47534
8611         * config/avr/libgcc.S (exit): Move .endfunc
8612
8613 2011-02-07  Richard Guenther  <rguenther@suse.de>
8614
8615         PR tree-optimization/47615
8616         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
8617         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
8618         (run_scc_vn): Initialize it.
8619         (visit_reference_op_load): Use it.
8620         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
8621
8622 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8623
8624         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
8625         DImode trapping arithmetic libfuncs.
8626
8627 2011-02-07  Richard Guenther  <rguenther@suse.de>
8628
8629         PR tree-optimization/47621
8630         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
8631         two duplicates ...
8632         (execute_update_addresses_taken): ... here.  Make it more
8633         conservative in what we accept.
8634
8635 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8636
8637         * config/sparc/freebsd.h (ASM_SPEC): Define.
8638         * config/sparc/vxworks.h (ASM_SPEC): Define.
8639
8640 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
8641
8642         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
8643
8644 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
8645
8646         * doc/invoke.texi: Remove reference to compiler internals from
8647         user documentation.
8648
8649         * reg-notes.def: Remove REG_VALUE_PROFILE.
8650         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
8651
8652 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
8653
8654         PR middle-end/47610
8655         * varasm.c (default_section_type_flags): If decl is NULL,
8656         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
8657
8658 2011-02-05  Jie Zhang  <jie@codesourcery.com>
8659
8660         PR debug/42631
8661         * web.c (entry_register): Don't clobber the number of the
8662         first uninitialized reference in used[].
8663
8664 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
8665
8666         PR tree-optimization/46194
8667         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
8668         (build_classic_dist_vector_1): Do not represent classic distance
8669         vectors when the access functions are variating in different loops.
8670
8671 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8672
8673         * config/mips/iris6.opt: New.
8674         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
8675
8676 2011-02-04  Richard Henderson  <rth@redhat.com>
8677             Steve Ellcey  <sje@cup.hp.com>
8678
8679         PR target/46997
8680         * config/ia64/predicates.md (mux1_brcst_element): New.
8681         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
8682         * config/ia64/ia64.c (ia64_unpack_assemble): New.
8683         (ia64_unpack_sign): New.
8684         (ia64_expand_unpack): Rewrite using new routines.
8685         (ia64_expand_widen_sum): Ditto.
8686         (ia64_expand_dot_prod_v8qi): Ditto.
8687         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
8688         routines, add endian check.
8689         (pmpy2_even): Rename from pmpy2_r, add endian check.
8690         (pmpy2_odd): Rename from pmpy2_l, add endian check.
8691         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
8692         (vec_widen_smult_hi_v4hi): Ditto.
8693         (vec_widen_umult_lo_v4hi): Ditto.
8694         (vec_widen_umult_hi_v4hi): Ditto.
8695         (mulv2si3): Change endian checks.
8696         (sdot_prodv4hi): Rewrite with new calls.
8697         (udot_prodv4hi): New.
8698         (vec_pack_ssat_v4hi): Add endian check.
8699         (vec_pack_usat_v4hi): Ditto.
8700         (vec_pack_ssat_v2si): Ditto.
8701         (max1_even): Rename from max1_r, add endian check.
8702         (max1_odd): Rename from max1_l, add endian check.
8703         (*mux1_rev): Format change.
8704         (*mux1_mix): Ditto.
8705         (*mux1_shuf): Ditto.
8706         (*mux1_alt): Ditto.
8707         (*mux1_brcst_v8qi): Use new predicate.
8708         (vec_extract_evenv8qi): Remove endian check.
8709         (vec_extract_oddv8qi): Ditto.
8710         (vec_interleave_lowv4hi): Format change.
8711         (vec_interleave_highv4hi): Ditto.
8712         (mix2_even): Rename from mix2_r, add endian check.
8713         (mix2_odd): Rename from mux2_l, add endian check.
8714         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
8715         (vec_extract_evenodd_helper): Format change.
8716         (vec_extract_evenv4hi): Remove endian check.
8717         (vec_extract_oddv4hi): Remove endian check.
8718         (vec_interleave_lowv2si): Format change.
8719         (vec_interleave_highv2si): Format change.
8720         (vec_initv2si): Remove endian check.
8721         (vecinit_v2si): Add endian check.
8722         (reduc_splus_v2sf): Add endian check.
8723         (reduc_smax_v2sf): Ditto.
8724         (reduc_smin_v2sf): Ditto.
8725         (vec_initv2sf): Remove endian check.
8726         (fpack): Add endian check.
8727         (fswap): Add endian check.
8728         (vec_interleave_highv2sf): Add endian check.
8729         (vec_interleave_lowv2sf): Add endian check.
8730         (fmix_lr): Add endian check.
8731         (vec_setv2sf): Format change.
8732         (*vec_extractv2sf_0_be): Use shift to extract operand.
8733         (*vec_extractv2sf_1_be): New.
8734         (vec_pack_trunc_v4hi): Add endian check.
8735         (vec_pack_trunc_v2si): Format change.
8736
8737 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
8738
8739         PR inline-asm/23200
8740         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
8741         do bb, locus and block comparison and disallow loads if it is not set.
8742         (stmt_is_replaceable_p): New function.
8743         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
8744         callers.
8745         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
8746         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
8747         SSA_NAME_DEF_STMT.
8748         * tree-flow.h (stmt_is_replaceable_p): New prototype.
8749
8750 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8751
8752         * config/rs6000/xilinx.opt: New.
8753         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
8754
8755 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
8756
8757         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
8758
8759 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
8760
8761         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
8762         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
8763         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
8764         secondary_reload_info, xtensa_secondary_reload): Remove.
8765         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
8766         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
8767         (xtensa_preferred_reload_class): Make static. Change return and
8768         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
8769         Use CONST_DOUBLE_P predicate.
8770         (xtensa_preferred_output_reload_class): New function.
8771         (xtensa_secondary_reload): Make static.
8772
8773 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
8774
8775         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
8776         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
8777         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
8778
8779 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8780
8781         PR middle-end/31490
8782         * output.h (SECTION_RELRO): Define.
8783         (SECTION_MACH_DEP): Adjust.
8784         (get_variable_section): New prototype.
8785         * varpool.c (varpool_finalize_named_section_flags): New function.
8786         (varpool_assemble_pending_decls): Call it.
8787         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
8788         * cgraphunit.c (cgraph_output_in_order): Call
8789         varpool_finalize_named_section_flags.
8790         * varasm.c (get_section): Allow section flags conflicts between
8791         relro and read-only sections if the section hasn't been declared yet.
8792         Set SECTION_OVERRIDE after diagnosing section type conflict.
8793         (get_variable_section): No longer static.
8794         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
8795         readonly sections that need relocations.
8796         (decl_readonly_section_1): New function.
8797         (decl_readonly_section): Use it.
8798
8799         Revert:
8800         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
8801                     Steve Ellcey  <sje@cup.hp.com>
8802
8803         PR middle-end/31490
8804         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
8805         if section attribute used.
8806
8807 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8808
8809         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
8810         * config/darwin.c (SECTION_NO_ANCHOR): Define.
8811         (darwin_init_sections): Remove assertion.
8812
8813 2011-02-03  Nick Clifton  <nickc@redhat.com>
8814
8815         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
8816         lt and ge.
8817         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
8818         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
8819         instead of "n" and "pz".
8820         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
8821         CC_FLAG_S.
8822
8823 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
8824
8825         PR target/47312
8826         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
8827         fma, expand FMA_EXPR as fma{,f,l} call.
8828
8829         PR lto/47274
8830         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
8831         copy them into a unsigned char variable and pass address of it to
8832         lto_output_data_stream.
8833
8834         PR target/47564
8835         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
8836         around backend_init_target and lang_dependent_init_target calls.
8837         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
8838         (verify_cgraph_node): Don't call set_cfun here.  Use
8839         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
8840         Set error_found for incorrectly represented calls to thunks.
8841
8842 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8843
8844         PR debug/43092
8845         PR rtl-optimization/43494
8846         * rtl.h (for_each_inc_dec_fn): New type.
8847         (for_each_inc_dec): Declare.
8848         * rtlanal.c (struct for_each_inc_dec_ops): New type.
8849         (for_each_inc_dec_find_inc_dec): New fn.
8850         (for_each_inc_dec_find_mem): New fn.
8851         (for_each_inc_dec): New fn.
8852         * dse.c (struct insn_size): Remove.
8853         (replace_inc_dec, replace_inc_dec_mem): Remove.
8854         (emit_inc_dec_insn_before): New fn.
8855         (check_for_inc_dec): Use it, along with for_each_inc_dec.
8856         (canon_address): Pass mem modes to cselib_lookup.
8857         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
8858         (cselib_lookup_from_insn): Likewise.
8859         (cselib_subst_to_values): Likewise.
8860         * cselib.c (find_slot_memmode): New var.
8861         (cselib_find_slot): New fn.  Use it instead of
8862         htab_find_slot_with_hash everywhere.
8863         (entry_and_rtx_equal_p): Use find_slot_memmode.
8864         (autoinc_split): New fn.
8865         (rtx_equal_for_cselib_p): Rename and implement in terms of...
8866         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
8867         Deal with autoinc.  Special-case recursion into MEMs.
8868         (cselib_hash_rtx): Likewise.
8869         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
8870         address and MEM modes.
8871         (cselib_subst_to_values): Add memmode, pass it on.
8872         Deal with autoinc.
8873         (cselib_lookup): Add memmode argument, pass it on.
8874         (cselib_lookup_from_insn): Add memmode.
8875         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
8876         (struct cselib_record_autoinc_data): New.
8877         (cselib_record_autoinc_cb): New fn.
8878         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
8879         mode to cselib_lookup.  Reset autoinced REGs here instead of...
8880         (cselib_process_insn): ... here.
8881         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
8882         to cselib_lookup.
8883         (add_uses): Likewise, also to cselib_subst_to_values.
8884         (add_stores): Likewise.
8885         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
8886         cselib_subst_to_values.
8887         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
8888         * gcse.c (do_local_cprop): Adjusted.
8889         * postreload.c (reload_cse_simplify_set): Adjusted.
8890         (reload_cse_simplify_operands): Adjusted.
8891         * sel-sched-dump (debug_mem_addr_value): Pass mode.
8892
8893 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
8894
8895         PR tree-optimization/45122
8896         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
8897         unsafe assumptions when there's more than one loop exit.
8898
8899 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8900
8901         PR target/47272
8902         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
8903         Document using vector double with the load/store builtins, and
8904         that the load/store builtins always use Altivec instructions.
8905
8906         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
8907         to use altivec memory instructions, even on VSX.
8908         (vector_altivec_store_<mode>): Ditto.
8909
8910         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
8911         function.
8912
8913         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8914         V2DF, V2DI support to load/store overloaded builtins.
8915
8916         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
8917         altivec load/store builtins for V2DF/V2DI types.
8918
8919         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
8920         set avoid indexed addresses on power6 if -maltivec.
8921         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
8922         vector_altivec_load/vector_altivec_store builtins.
8923         (altivec_expand_st_builtin): Ditto.
8924         (altivec_expand_builtin): Add VSX memory builtins.
8925         (rs6000_init_builtins): Add V2DI types to internal types.
8926         (altivec_init_builtins): Add support for V2DF/V2DI altivec
8927         load/store builtins.
8928         (rs6000_address_for_altivec): Insure memory address is appropriate
8929         for Altivec.
8930
8931         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
8932         vec_vsx_ld and vec_vsx_st.
8933         (vsx_store_<mode>): Ditto.
8934
8935         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
8936         variables to hold long long types for VSX vector memory builtins.
8937         (RS6000_BTI_unsigned_long_long): Ditto.
8938         (long_long_integer_type_internal_node): Ditti.
8939         (long_long_unsigned_type_internal_node): Ditti.
8940
8941         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
8942         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
8943         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
8944
8945         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
8946         short cuts.
8947         (vec_vsx_st): Ditto.
8948
8949 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8950
8951         * config/pa/pa-hpux10.opt: New.
8952         * config/hpux11.opt (pthread): New Driver option.
8953         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
8954         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
8955
8956 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8957
8958         * config/ia64/vms.opt: New.
8959         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
8960
8961 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8962
8963         PR target/47580
8964         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
8965         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
8966         generator functions.
8967         (vsx_floatuns<VSi><mode>2): Ditto.
8968         (vsx_fix_trunc<mode><VSi>2): Ditto.
8969         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
8970
8971 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
8972
8973         * config/i386/djgpp.opt (posix): New Driver option.
8974
8975 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
8976
8977         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
8978         Move to the unsupported targets list.
8979
8980 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
8981
8982         PR rtl-optimization/47525
8983         * df-scan.c: Update copyright years.
8984         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
8985         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
8986
8987 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8988
8989         * config/i386/sysv4.h (TARGET_VERSION): Remove.
8990         (SUBTARGET_RETURN_IN_MEMORY): Remove.
8991         (ASM_OUTPUT_ASCII): Remove.
8992         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
8993
8994 2011-02-02  Jeff Law  <law@redhat.com>
8995
8996         PR middle-end/47543
8997         * reload.c (find_reloads_address): Handle reg+d address where both
8998         components are invalid by reloading the entire address.
8999
9000 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9001             Richard Guenther  <rguenther@suse.de>
9002
9003         PR tree-optimization/40979
9004         PR bootstrap/47044
9005         * passes.c (init_optimization_passes): After LIM call copy_prop
9006         and DCE to clean up.
9007         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
9008
9009 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
9010
9011         PR tree-optimization/47576
9012         PR tree-optimization/47555
9013         * doc/invoke.texi (scev-max-expr-complexity): Documented.
9014         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9015         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
9016         * tree-scalar-evolution.c (follow_ssa_edge): Use
9017         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
9018
9019 2011-02-02  Richard Guenther  <rguenther@suse.de>
9020
9021         PR tree-optimization/47566
9022         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
9023
9024 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9025
9026         PR debug/47106
9027         PR debug/47402
9028         * tree-inline.c (declare_return_variable): Remove unused caller
9029         variable.
9030
9031         PR debug/47106
9032         PR debug/47402
9033         * tree-flow-inline.h (clear_is_used, is_used_p): New.
9034         * cfgexpand.c (account_used_vars_for_block): Use them.
9035         * tree-nrv.c (tree_nrv): Likewise.
9036         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9037         (dump_scope_block): Likewise.
9038         (remove_unused_locals): Likewise.
9039
9040         PR debug/47106
9041         PR debug/47402
9042         * tree-inline.c (declare_return_variable): Add result decl to
9043         local decls only once.
9044         * gimple-low.c (record_vars_into): Mark newly-created variables
9045         as referenced.
9046
9047 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
9048
9049         PR debug/47498
9050         PR debug/47501
9051         PR debug/45136
9052         PR debug/45130
9053         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9054         debug insns.
9055         (no_real_insns_p, schedule_block, set_priorities): Drop special
9056         treatment of boundary debug insns.
9057         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9058         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
9059         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9060         (BOUNDARY_DEBUG_INSN_P): Likewise.
9061         (SCHEDULE_DEBUG_INSN_P): Likewise.
9062         * sched-rgn.c (init_ready_list): Drop special treatment of
9063         boundary debug insns.
9064         * final.c (rest_of_clean_state): Clear notes' BB.
9065
9066 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9067
9068         * config/openbsd.opt (assert=): New Driver option.
9069
9070 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9071
9072         * config/i386/nto.opt: New.
9073         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
9074
9075 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9076
9077         * config/i386/netware.opt: New.
9078         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
9079
9080 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9081
9082         * config/interix.opt (posix): New Driver option.
9083
9084 2011-02-01  DJ Delorie  <dj@redhat.com>
9085
9086         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
9087
9088         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
9089         class for A0/A1.
9090
9091 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
9092
9093         PR tree-optimization/47561
9094         * toplev.c (process_options): Print the Graphite flags.  Add
9095         flag_loop_flatten to the list of options requiring Graphite.
9096
9097 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9098
9099         * config/i386/cygming.opt (posix): New Driver option.
9100
9101 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9102
9103         * config/arm/vxworks.opt: New.
9104         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
9105
9106 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
9107
9108         * config/alpha/elf.opt: New.
9109         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
9110         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
9111
9112 2011-02-01  Richard Guenther  <rguenther@suse.de>
9113
9114         PR tree-optimization/47559
9115         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
9116         store-motion on references that can throw.
9117
9118 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
9119
9120         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
9121         * tree-pass.h (TDF_CSELIB): New macro.
9122         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
9123         cselib_lookup): Check for it rather than for TDF_DETAILS.
9124
9125 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
9126
9127         PR driver/47547
9128         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
9129         is HOST_BIT_BUCKET.
9130
9131         * opts.c (finish_options): Don't add x_aux_base_name if it is
9132         HOST_BIT_BUCKET.
9133
9134 2011-02-01  Richard Guenther  <rguenther@suse.de>
9135
9136         PR tree-optimization/47555
9137         Revert
9138         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
9139
9140         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
9141
9142 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
9143
9144         PR gcc/46692
9145         * config/lm32/t-lm32: Add multilib for all CPU options.
9146
9147 2011-02-01  Richard Guenther  <rguenther@suse.de>
9148
9149         PR tree-optimization/47541
9150         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
9151         sure to have a field at offset zero.
9152
9153 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9154
9155         * config/arc/arc.opt (EB, EL): New Driver options.
9156
9157 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9158
9159         * config/alpha/osf5.opt: New.
9160         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
9161
9162 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
9163
9164         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
9165
9166 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
9167
9168         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
9169         -floop-interchange.
9170         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
9171         is an alias of -floop-interchange and that it requires the
9172         Graphite infrastructure.
9173         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
9174         flag_loop_interchange based on the value of flag_tree_loop_linear.
9175
9176 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
9177             Richard Guenther  <rguenther@suse.de>
9178
9179         PR tree-optimization/47538
9180         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
9181         type instead of r1type, except for comparisons.  For right
9182         shifts and comparisons punt if there are mismatches in
9183         sizetype vs. non-sizetype types.
9184
9185 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9186
9187         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9188         avx_runtime.
9189
9190 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9191
9192         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
9193         version number.
9194         * configure: Regenerate.
9195
9196 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9197
9198         * configure.ac (gcc_cv_ld_static_option): Define.
9199         (gcc_cv_ld_dynamic_option): Define.
9200         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
9201         instead.
9202         (HAVE_LD_STATIC_DYNAMIC): Update message.
9203         (LD_STATIC_OPTION): Define.
9204         (LD_DYNAMIC_OPTION): Define.
9205         * configure: Regenerate.
9206         * config.in: Regenerate.
9207         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
9208         HAVE_LD_STATIC_DYNAMIC]: Use them.
9209
9210 2011-01-31  Nick Clifton  <nickc@redhat.com>
9211
9212         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
9213         registers inside interrupt handlers if the handler is not a leaf
9214         function.
9215
9216 2011-01-31  Nick Clifton  <nickc@redhat.com>
9217
9218         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
9219         reg_renumber returning an INVALID_REGNUM.
9220
9221 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9222
9223         PR libgcj/44341
9224         * doc/install.texi: Document host options discarded when cross
9225         configuring target libraries.
9226
9227 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
9228
9229         Reverted:
9230         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9231         PR debug/45136
9232         PR debug/45130
9233         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9234         debug insns.
9235         (no_real_insns_p, schedule_block, set_priorities): Drop special
9236         treatment of boundary debug insns.
9237         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9238         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9239         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9240         (BOUNDARY_DEBUG_INSN_P): Likewise.
9241         (SCHEDULE_DEBUG_INSN_P): Likewise.
9242         * sched-rgn.c (init_ready_list): Drop special treatment of
9243         boundary debug insns.
9244         * final.c (rest_of_clean-state): Clear notes' BB.
9245
9246 2011-01-31  Alan Modra  <amodra@gmail.com>
9247
9248         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
9249         toc relative expressions as we do in print_operand_address.
9250
9251 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
9252
9253         * doc/extend.texi: Follow spelling conventions.
9254         * doc/invoke.texi: Fix a typo.
9255
9256 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
9257
9258         * config/hpux11.opt: New.
9259         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
9260         ia64*-*-hpux*): Use hpux11.opt.
9261
9262 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
9263
9264         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
9265         to tmake_file.
9266
9267 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9268
9269         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
9270         support sites.
9271
9272 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9273
9274         * doc/install.texi (Binaries): Remove outdated reference for
9275         Motorola 68HC11/68HC12 downloads.
9276
9277 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
9278
9279         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
9280         Drepper's paper.
9281
9282 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
9283
9284         PR bootstrap/47147
9285         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
9286         used by NetBSD.
9287
9288 2011-01-28  Ahmad Sharif  <asharif@google.com>
9289
9290         * value-prof.c (check_counter): Corrected error message.
9291
9292 2011-01-29  Jie Zhang  <jie@codesourcery.com>
9293
9294         * config/arm/arm.c (arm_legitimize_reload_address): New.
9295         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
9296         arm_legitimize_reload_address.
9297         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
9298
9299 2011-01-28  Ian Lance Taylor  <iant@google.com>
9300
9301         * godump.c (go_define): Ignore macros whose definitions include
9302         two adjacent operands.
9303
9304 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
9305
9306         PR target/42894
9307         * varasm.c (force_const_mem): Store copy of x in desc->constant
9308         instead of x itself.
9309         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
9310         itself into REG_EQUAL note.
9311
9312 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
9313
9314         * config/freebsd.opt (posix, rdynamic): New Driver options.
9315
9316 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9317
9318         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
9319         -Bstatic/-Bdynamic.
9320         * configure: Regenerate.
9321
9322 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
9323
9324         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
9325         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
9326
9327 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
9328
9329         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
9330         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
9331         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9332         (s390_preferred_reload_class): Make static. Change return and
9333         'rclass' argument type to reg_class_t.
9334
9335 2011-01-27  Jan Hubicka  <jh@suse.cz>
9336
9337         PR middle-end/46949
9338         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
9339         (process_function_and_variable_attributes): Check defined weakrefs.
9340
9341 2011-01-27  Martin Jambor  <mjambor@suse.cz>
9342
9343         PR tree-optimization/47228
9344         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
9345         build_ref_for_offset.
9346
9347 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9348
9349         * config/spu/spu-elf.h (ASM_SPEC): Remove.
9350
9351 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
9352
9353         PR rtl-optimization/46856
9354         * postreload.c (reload_combine_recognize_const_pattern): Do not
9355         separate cc0 setter and user on cc0 targets.
9356
9357 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
9358
9359         PR c/43082
9360         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
9361         passed a VOID_TYPE expression, immediately emit an error and
9362         return error_mark_node.
9363
9364 2011-01-26  Jeff Law  <law@redhat.com>
9365
9366         PR rtl-optimization/47464
9367         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
9368         rather than may_trap_p as needed.
9369
9370 2011-01-26  DJ Delorie  <dj@redhat.com>
9371
9372         PR rtl-optimization/46878
9373         * combine.c (insn_a_feeds_b): Check for the implicit cc0
9374         setter/user dependency as well.
9375
9376 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
9377
9378         PR rtl-optimization/44469
9379         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
9380         after removing trivially dead basic blocks.
9381
9382 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9383
9384         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
9385         * config/frv/frv.h (LINK_SPEC): Likewise.
9386         * config/i386/netware.h (LINK_SPEC): Likewise.
9387         * config/m68k/linux.h (ASM_SPEC): Likewise.
9388         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
9389         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9390         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9391         * config/sparc/linux.h (ASM_SPEC): Likewise.
9392         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9393         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9394
9395 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9396
9397         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
9398         * config/frv/frv.h (ASM_SPEC): Likewise.
9399         * config/m68k/linux.h (ASM_SPEC): Likewise.
9400         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9401         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
9402         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9403         * config/sparc/linux.h (ASM_SPEC): Likewise.
9404         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9405         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9406
9407 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9408
9409         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
9410         * config/frv/frv.h (LINK_SPEC): Likewise.
9411         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9412
9413 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
9414
9415         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
9416         * config/frv/frv.h (ASM_SPEC): Likewise.
9417         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
9418         * config/m68k/linux.h (ASM_SPEC): Likewise.
9419         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
9420         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
9421         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
9422         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
9423         * config/sparc/linux.h (ASM_SPEC): Likewise.
9424         * config/sparc/linux64.h (ASM_SPEC): Likewise.
9425         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
9426         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
9427
9428 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
9429
9430         PR target/46997
9431         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
9432         (*mux2): Ditto.
9433         (vec_extract_evenodd_help): Ditto.
9434         (vec_extract_evenv4hi): Ditto.
9435         (vec_extract_oddv4hi): Ditto.
9436         (vec_interleave_lowv2si): Ditto.
9437         (vec_interleave_highv2si): Ditto.
9438         (vec_extract_evenv2si): Ditto.
9439         (vec_extract_oddv2si: Ditto.
9440         (vec_pack_trunc_v2si): Ditto.
9441
9442 2011-01-22  Jan Hubicka  <jh@suse.cz>
9443
9444         PR target/47237
9445         * cgraph.h (cgraph_local_info): New field can_change_signature.
9446         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
9447         signature can change.
9448         (ipcp_estimate_growth): Call sequence simplify only if calle signature
9449         can change.
9450         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
9451         (cgraph_function_versioning): We can not change signature of functions
9452         that don't allow that.
9453         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
9454         (lto_input_node): Likewise.
9455         * ipa-inline.c (compute_inline_parameters): Compute
9456         local.can_change_signature.
9457         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
9458         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
9459         functions that can not change signature.
9460         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
9461         init_cumulative_args): Do not use local calling conventions
9462         for functions that can not change signature.
9463
9464 2011-01-22  Jan Hubicka  <jh@suse.cz>
9465
9466         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
9467
9468 2011-01-26  Richard Guenther  <rguenther@suse.de>
9469
9470         PR tree-optimization/47190
9471         * cgraphunit.c (process_common_attributes): New function.
9472         (process_function_and_variable_attributes): Use it.
9473
9474 2011-01-26  Richard Guenther  <rguenther@suse.de>
9475
9476         PR lto/47423
9477         * cgraphbuild.c (record_eh_tables): Record reference to personality
9478         function.
9479
9480 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
9481
9482         PR debug/45454
9483         * sel-sched.c (moveup_expr): Don't let debug insns prevent
9484         non-debug insns from moving up.
9485
9486 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9487
9488         PR target/40125
9489         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
9490         t-dlldir{,-x} fragment for build and add it to tmake_file.
9491         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
9492         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
9493         * config/i386/t-dlldir: New file.
9494         (SHLIB_DLLDIR): Define.
9495         * config/i386/t-dlldir-x: New file.
9496         (SHLIB_DLLDIR): Define.
9497         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
9498         (SHLIB_INSTALL): Use it.
9499
9500 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
9501
9502         PR target/47246
9503         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
9504         lower bound of the allowed Thumb-2 coprocessor load/store
9505         index range to -256. Add explaining comment.
9506
9507 2011-01-25  Ian Lance Taylor  <iant@google.com>
9508
9509         * godump.c (go_define): Improve lexing of macro expansion to only
9510         accept expressions which match Go spec.
9511
9512 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
9513
9514         PR c++/43601
9515         * tree.c (handle_dll_attribute): Handle it.
9516         * doc/extend.texi (@item dllexport): Mention it.
9517         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
9518
9519 2011-01-25  Ian Lance Taylor  <iant@google.com>
9520
9521         PR tree-optimization/26854
9522         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
9523         (decl_jump_unsafe): Move higher in file, with no other change.
9524         (bind): Set has_jump_unsafe_decl if appropriate.
9525         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
9526         (check_earlier_gotos): Likewise.
9527         (c_check_switch_jump_warnings): Likewise.
9528
9529 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
9530
9531         * doc/invoke.texi (Warning Options): Add missing hyphen.
9532         (-fprofile-dir): Minor grammatical fixes.
9533         (-fbranch-probabilities): Likewise.
9534
9535 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
9536
9537         PR debug/45136
9538         PR debug/45130
9539         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
9540         debug insns.
9541         (no_real_insns_p, schedule_block, set_priorities): Drop special
9542         treatment of boundary debug insns.
9543         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9544         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
9545         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
9546         (BOUNDARY_DEBUG_INSN_P): Likewise.
9547         (SCHEDULE_DEBUG_INSN_P): Likewise.
9548         * sched-rgn.c (init_ready_list): Drop special treatment of
9549         boundary debug insns.
9550         * final.c (rest_of_clean-state): Clear notes' BB.
9551
9552 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9553
9554         * Makefile.in (LAMBDA_H): Removed.
9555         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
9556         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
9557         lambda-trans.o, and tree-loop-linear.o.
9558         (lto-symtab.o): Remove dependence on LAMBDA_H.
9559         (tree-loop-linear.o): Remove rule.
9560         (lambda-mat.o): Same.
9561         (lambda-trans.o): Same.
9562         (lambda-code.o): Same.
9563         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
9564         (tree-vect-slp.o): Same.
9565         * hwint.h (gcd): Moved here.
9566         (least_common_multiple): Same.
9567         * lambda-code.c: Removed.
9568         * lambda-mat.c: Removed.
9569         * lambda-trans.c: Removed.
9570         * lambda.h: Removed.
9571         * tree-loop-linear.c: Removed.
9572         * lto-symtab.c: Do not include lambda.h.
9573         * omega.c (gcd): Removed.
9574         * passes.c (init_optimization_passes): Remove pass_linear_transform.
9575         * tree-data-ref.c (print_lambda_vector): Moved here.
9576         (lambda_vector_copy): Same.
9577         (lambda_matrix_copy): Same.
9578         (lambda_matrix_id): Same.
9579         (lambda_vector_first_nz): Same.
9580         (lambda_matrix_row_add): Same.
9581         (lambda_matrix_row_exchange): Same.
9582         (lambda_vector_mult_const): Same.
9583         (lambda_vector_negate): Same.
9584         (lambda_matrix_row_negate): Same.
9585         (lambda_vector_equal): Same.
9586         (lambda_matrix_right_hermite): Same.
9587         * tree-data-ref.h: Do not include lambda.h.
9588         (lambda_vector): Moved here.
9589         (lambda_matrix): Same.
9590         (dependence_level): Same.
9591         (lambda_transform_legal_p): Removed declaration.
9592         (lambda_collect_parameters): Same.
9593         (lambda_compute_access_matrices): Same.
9594         (lambda_vector_gcd): Same.
9595         (lambda_vector_new): Same.
9596         (lambda_vector_clear): Same.
9597         (lambda_vector_lexico_pos): Same.
9598         (lambda_vector_zerop): Same.
9599         (lambda_matrix_new): Same.
9600         * tree-flow.h (least_common_multiple): Removed declaration.
9601         * tree-parloops.c (lambda_trans_matrix): Moved here.
9602         (LTM_MATRIX): Same.
9603         (LTM_ROWSIZE): Same.
9604         (LTM_COLSIZE): Same.
9605         (LTM_DENOMINATOR): Same.
9606         (lambda_trans_matrix_new): Same.
9607         (lambda_matrix_vector_mult): Same.
9608         (lambda_transform_legal_p): Same.
9609         * tree-pass.h (pass_linear_transform): Removed declaration.
9610         * tree-ssa-loop.c (tree_linear_transform): Removed.
9611         (gate_tree_linear_transform): Removed.
9612         (pass_linear_transform): Removed.
9613         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
9614         flag_loop_interchange.
9615
9616 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9617
9618         PR tree-optimization/47265
9619         PR tree-optimization/47443
9620         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
9621         if name still has some uses.
9622
9623 2011-01-25  Martin Jambor  <mjambor@suse.cz>
9624
9625         PR tree-optimization/47382
9626         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
9627         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
9628
9629 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
9630
9631         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
9632         sjlj_except_unwind_info.
9633
9634 2011-01-25  Richard Guenther  <rguenther@suse.de>
9635
9636         PR tree-optimization/47426
9637         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
9638         visible functions results escape.
9639
9640 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9641
9642         PR target/45701
9643         * config/arm/arm.c (any_sibcall_uses_r3): New function.
9644         (arm_get_frame_offsets): Use it.
9645
9646 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9647             Jakub Jelinek  <jakub@redhat.com>
9648
9649         PR tree-optimization/47271
9650         * tree-if-conv.c (bb_postdominates_preds): New.
9651         (if_convertible_bb_p): Call bb_postdominates_preds.
9652         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
9653         (predicate_scalar_phi): Call bb_postdominates_preds.
9654
9655 2011-01-25  Nick Clifton  <nickc@redhat.com>
9656
9657         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
9658         * config/rx/rx.c (rx_function_value): Likewise.
9659         (rx_promote_function_mode): Likewise.
9660         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
9661         in order to make it legitimate.
9662         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
9663         make sure that the first operand is the same as the result register.
9664         (addsi3_unspec): Delete.
9665         (subdi3): Do not accept immediate operands.
9666         (subdi3_internal): Likewise.
9667
9668 2011-01-25  Jeff Law  <law@redhat.com>
9669
9670         PR rtl-optimization/37273
9671         * ira-costs.c (scan_one_insn): Detect constants living in memory and
9672         handle them like argument loads from stack slots.  Do not double
9673         count memory for memory constants and argument loads from stack slots.
9674
9675 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
9676
9677         PR tree-optimization/47427
9678         PR tree-optimization/47428
9679         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9680         coalesce if the new root var would be TREE_READONLY.
9681
9682 2011-01-25  Richard Guenther  <rguenther@suse.de>
9683
9684         PR middle-end/47414
9685         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
9686         correct type for TBAA.
9687
9688 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9689
9690         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
9691         (close_phi_written_to_memory): Call for_each_index with
9692         dr_indices_valid_in_loop.
9693
9694 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9695
9696         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
9697         when it is initialized.
9698
9699 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9700
9701         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
9702         call to graphite_find_data_references_in_stmt.
9703         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
9704         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
9705         call to graphite_find_data_references_in_stmt.
9706         (analyze_drs_in_stmts): Same.
9707         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
9708         in which the scalar analysis of indices is performed.
9709         (create_data_ref): Same.  Update call to dr_analyze_indices.
9710         (find_data_references_in_stmt): Update call to create_data_ref.
9711         (graphite_find_data_references_in_stmt): Same.
9712         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
9713         declaration.
9714         (create_data_ref): Same.
9715         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
9716         call to create_data_ref.
9717
9718 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9719
9720         * graphite-sese-to-poly.c (build_poly_scop): Move
9721         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
9722
9723 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9724
9725         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
9726         VAR_DECL, PARM_DECL, and RESULT_DECL.
9727
9728 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9729
9730         * graphite-dependences.c (reduction_dr_1): Allow several reductions
9731         in a reduction PBB.
9732         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
9733         that have already been marked as PBB_IS_REDUCTION.
9734
9735 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9736
9737         * graphite-scop-detection.c (same_close_phi_node): New.
9738         (remove_duplicate_close_phi): New.
9739         (make_close_phi_nodes_unique): New.
9740         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
9741
9742 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9743
9744         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
9745         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
9746         of both data references to be the same.
9747
9748 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9749
9750         * graphite-dependences.c (build_lexicographical_constraint): Remove
9751         the gdim parameter.
9752         (build_lexicographical_constraint): Adjust call to
9753         ppl_powerset_is_empty.
9754         (dependence_polyhedron): Same.
9755         (graphite_legal_transform_dr): Same.
9756         (graphite_carried_dependence_level_k): Same.
9757         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
9758         parameter.
9759         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
9760
9761 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9762
9763         * graphite-sese-to-poly.c
9764         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
9765         (close_phi_written_to_memory): New.
9766         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
9767         and unshare_expr.
9768
9769 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9770
9771         * doc/install.texi: Update the expected version number of PPL to 0.11.
9772         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
9773         #if PPL_VERSION_MINOR < 11.
9774
9775 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9776
9777         * graphite-dependences.c: Include graphite-cloog-util.h.
9778         (new_poly_ddr): Inlined into dependence_polyhedron.
9779         (free_poly_ddr): Moved close by new_poly_ddr.
9780         (dependence_polyhedron_1): Renamed dependence_polyhedron.
9781         Early return NULL when ppl_powerset_is_empty returns true.
9782         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
9783         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
9784         (graphite_legal_transform_dr): Call new_poly_ddr.
9785         (graphite_carried_dependence_level_k): Same.
9786         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
9787         (dot_transformed_deps_stmt_1): Removed.
9788         (dot_deps_stmt_1): Call dot_deps_stmt_2.
9789         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
9790         (dot_deps_1): Call dot_deps_2.
9791         * Makefile.in (graphite-dependences.o): Add missing dependence on
9792         graphite-cloog-util.h.
9793
9794 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9795
9796         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
9797         (build_lexicographical_constraint): Same.
9798         (dependence_polyhedron_1): Same.
9799         (graphite_legal_transform_dr): Same.
9800         (graphite_carried_dependence_level_k): Same.
9801         * graphite-ppl.c (ppl_powerset_is_empty): New.
9802         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
9803         * tree-data-ref.c (dump_data_reference): Print the basic block index.
9804
9805 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9806
9807         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
9808         the "a followed by b" relation and document it.
9809
9810 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9811
9812         * graphite-dependences.c (build_lexicographical_constraint): Stop the
9813         iteration when the bag of constraints is empty.
9814
9815 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9816
9817         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
9818
9819 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9820
9821         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
9822         nest and two loop depths as parameters.
9823         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
9824         lst_perfect_nestify.
9825
9826 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9827
9828         * graphite-dependences.c (print_pddr): Call
9829         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
9830
9831 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
9832
9833         * graphite-ppl.c (debug_gmp_value): New.
9834         * graphite-ppl.h (debug_gmp_value): Declared.
9835
9836 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
9837
9838         * doc/install.texi: Document availability of cloog-0.16.
9839
9840 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
9841
9842         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
9843         invalid postdominance info.
9844
9845 2011-01-24  Jan Hubicka  <jh@suse.cz>
9846
9847         PR c/21659
9848         * doc/extend.texi (weak pragma): Drop claim that it must
9849         appear before definition.
9850         * varasm.c (merge_weak, declare_weak): Only sanity check
9851         that DECL is not output at a time it is declared weak.
9852
9853 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
9854
9855         * machmode.def: Fixed comments.
9856
9857 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
9858
9859         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
9860
9861 2011-01-24  Paul Koning  <ni1d@arrl.net>
9862
9863         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
9864         WORDS_BIG_ENDIAN.
9865
9866 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9867
9868         PR target/46519
9869         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
9870         (block_info): Add scanned and prev.
9871         (move_or_delete_vzeroupper_2): Return if the basic block
9872         has been scanned and the upper 128bit state is unchanged
9873         from the last scan.
9874         (move_or_delete_vzeroupper_1): Return true if the exit
9875         state is changed.
9876         (move_or_delete_vzeroupper): Visit basic blocks using the
9877         work-list based algorithm based on vt_find_locations in
9878         var-tracking.c.
9879
9880         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
9881
9882 2011-01-24  Nick Clifton  <nickc@redhat.com>
9883
9884         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
9885         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
9886         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
9887         then define __v850e1__.
9888         * doc/invoke.texi: Document -mv850es.
9889
9890 2011-01-24  Richard Henderson  <rth@redhat.com>
9891
9892         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
9893         compound unordered comparisons.
9894         * config/rx/rx.c (rx_split_fp_compare): Remove.
9895         * config/rx/rx-protos.h: Update.
9896         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
9897         (cbranchsf4): Don't call rx_split_fp_compare.
9898         (*cbranchsf4): Use rx_split_cbranch.
9899         (*cmpsf): Don't accept "i" constraint.
9900         (*conditional_branch): Only valid after reload.
9901         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
9902
9903 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
9904
9905         PR target/47385
9906         * config/rs6000/altivec.md (vector constant splitters): Add
9907         support for creating vector single precision constants if -mvsx is
9908         used and we would create the constant using Altivec primitives.
9909
9910 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
9911             Richard Sandiford  <rdsandiford@googlemail.com>
9912
9913         PR rtl-optimization/47166
9914         * reload1.c (emit_reload_insns): Disable the spill_reg_store
9915         mechanism for PRE_MODIFY and POST_MODIFY.
9916         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
9917         reloadreg.
9918
9919 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
9920
9921         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
9922
9923 2011-01-22  Jan Hubicka  <jh@suse.cz>
9924
9925         PR lto/47333
9926         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
9927
9928 2011-01-22  Jan Hubicka  <jh@suse.cz>
9929
9930         PR tree-optimization/43884
9931         PR lto/44334
9932         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
9933         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
9934
9935 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
9936
9937         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9938         * config/s390/s390.c (s390_register_move_cost,
9939         s390_memory_move_cost): New.
9940         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9941
9942 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9943
9944         PR middle-end/47401
9945         * except.c (sjlj_assign_call_site_values): Move setting the
9946         crtl->uses_eh_lsda flag to ...
9947         (sjlj_mark_call_sites): ... here.
9948         (sjlj_emit_function_enter): Support NULL dispatch label.
9949         (sjlj_build_landing_pads): In a function with no landing pads
9950         that still has must-not-throw regions, generate code to register
9951         a personality function with empty LSDA.
9952
9953 2011-01-21  Richard Henderson  <rth@redhat.com>
9954
9955         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
9956
9957         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
9958
9959         * compare-elim.c: New file.
9960         * Makefile.in (OBJS-common): Add it.
9961         (compare-elim.o): New.
9962         * common.opt (fcompare-elim): New.
9963         * opts.c (default_options_table): Add OPT_fcompare_elim.
9964         * tree-pass.h (pass_compare_elim_after_reload): New.
9965         * passes.c (init_optimization_passes): Add it.
9966         * recog.h: Protect against re-inclusion.
9967         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
9968         * doc/invoke.texi (-fcompare-elim): Document it.
9969         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
9970         * doc/tm.texi: Rebuild.
9971
9972 2011-01-22  Nick Clifton  <nickc@redhat.com>
9973
9974         * config/rx/rx.md (cstoresf4): Pass comparison operator to
9975         rx_split_fp_compare.
9976
9977 2011-01-22  Nick Clifton  <nickc@redhat.com>
9978
9979         * config/rx/rx.md (UNSPEC_CONST): New.
9980         (deallocate_and_return): Wrap the amount popped off the stack in
9981         an UNSPEC_CONST in order to stop it being rejected by
9982         -mmax-constant-size.
9983         (pop_and_return): Add a "(return)" rtx.
9984         (call): Drop the immediate operand.
9985         (call_internal): Likewise.
9986         (call_value): Likewise.
9987         (call_value_internal): Likewise.
9988         (sibcall_internal): Likewise.
9989         (sibcall_value_internal): Likewise.
9990         (sibcall): Likewise.  Generate an explicit call using
9991         sibcall_internal.
9992         (sibcall_value): Likewise.
9993         (mov<>): FAIL if a constant operand is not legitimate.
9994         (addsi3_unpsec): New pattern.
9995
9996         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
9997         (ok_for_max_constant): New function.
9998         (gen_safe_add): New function.
9999         (rx_expand_prologue): Use gen_safe_add.
10000         (rx_expand_epilogue): Likewise.
10001         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
10002         UNSPEC CONSTs.
10003
10004 2011-01-21  Jeff Law  <law@redhat.com>
10005
10006         PR tree-optimization/47053
10007         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
10008         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
10009         statements are deleted.
10010         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
10011         is nonempty, then purge dead edges and cleanup the CFG.
10012
10013 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10014
10015         PR debug/47402
10016         Temporarily revert:
10017         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10018         PR debug/47106
10019         * tree-dfa.c (create_var_ann): Mark variable as used.
10020
10021 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10022
10023         PR middle-end/45566
10024         * except.c (convert_to_eh_region_ranges): Emit queued no-region
10025         notes from other section in hot/cold partitioning even if
10026         last_action is -3.  Increment call_site_base.
10027
10028         PR rtl-optimization/47366
10029         * fwprop.c (forward_propagate_into): Return bool.  If
10030         any changes are made, -fnon-call-exceptions is used and
10031         REG_EH_REGION note is present, call purge_dead_edges
10032         and return true if it purged anything.
10033         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
10034         any EH edges were purged.
10035
10036 2011-01-21  Jeff Law  <law@redhat.com>
10037
10038         PR rtl-optimization/41619
10039         * caller-save.c (setup_save_areas): Break out code to determine
10040         which hard regs are live across calls by examining the reload chains
10041         so that it is always used.
10042         Eliminate code which checked REG_N_CALLS_CROSSED.
10043
10044 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10045
10046         PR tree-optimization/47355
10047         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
10048         NOP has non-debug uses beyond PHIs in new_bb.
10049
10050 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
10051
10052         PR debug/47106
10053         * cfgexpand.c (account_used_vars_for_block): Only account vars
10054         that are annotated as used.
10055         (estimated_stack_frame_size): Don't set TREE_USED.
10056         * tree-dfa.c (create_var_ann): Mark variable as used.
10057
10058 2011-01-21  Richard Guenther  <rguenther@suse.de>
10059
10060         PR middle-end/47395
10061         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
10062
10063 2011-01-21  Richard Guenther  <rguenther@suse.de>
10064
10065         PR tree-optimization/47365
10066         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
10067         (vn_reference_lookup_pieces): Adjust.
10068         (vn_reference_lookup): Likewise.
10069         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
10070         (vn_reference_lookup_3): Only look through kills if in
10071         VN_WALKREWRITE mode.
10072         (vn_reference_lookup_pieces): Adjust.
10073         (vn_reference_lookup): Likewise.
10074         (visit_reference_op_load): Likewise.
10075         (visit_reference_op_store): Likewise.
10076         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
10077         (compute_avail): Likewise.
10078         (eliminate): Likewise.
10079
10080 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
10081
10082         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
10083         DECL_IGNORED_P non-reg vars if they are used.
10084
10085         PR tree-optimization/47391
10086         * varpool.c (const_value_known_p): Return false if
10087         decl is volatile.
10088
10089 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
10090
10091         PR bootstrap/47215
10092         * config/i386/i386.c (ix86_local_alignment): Handle
10093         case for va_list_type_node is nil.
10094         (ix86_canonical_va_list_type): Likewise.
10095
10096 2011-01-21  Alan Modra  <amodra@gmail.com>
10097
10098         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
10099         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
10100
10101 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10102
10103         * config/arm/arm.md (define_attr type): Rename f_load
10104         and f_store to f_fpa_load and f_fpa_store. Update.
10105         (write_conflict): Deal with rename fallout.
10106         (*push_fp_multi): Likewise.
10107         * config/arm/fpa.md (f_load): Use f_fpa_load.
10108         (f_store): Use f_fpa_store.
10109         (*movsf_fpa): Likewise.
10110         (*movdf_fpa): Likewise.
10111         (*movxf_fpa): Likewise.
10112         (*thumb2_movsf_fpa): Likewise.
10113         (*thumb2_movdf_fpa): Likewise.
10114         (*thumb2_movxf_fpa): Likewise.
10115         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
10116         f_loadd and f_stored.
10117         (*thumb2_movdi_vfp): Likewise.
10118         (*thumb2_movsf_vfp): Fix attribute to f_loads.
10119         (*thumb2_movsi_vfp): Likewise.
10120         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
10121         Use f_loads instead of f_load.
10122         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
10123
10124 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
10125
10126         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10127         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
10128         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10129         (xtensa_mode_dependent_address_p): New function.
10130         (constantpool_address_p): Make static. Change return type to bool.
10131         Change argument type to const_rtx. Use CONST_INT_P predicate.
10132
10133 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
10134
10135         PR debug/46583
10136         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
10137
10138 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10139
10140         PR debug/47283
10141         * cfgexpand.c (expand_debug_expr): Instead of generating
10142         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
10143         etc. handling.
10144
10145 2011-01-20  Richard Guenther  <rguenther@suse.de>
10146
10147         PR middle-end/47370
10148         * tree-inline.c (remap_gimple_op_r): Recurse manually for
10149         the pointer operand of MEM_REFs.
10150
10151 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
10152
10153         PR tree-optimization/46130
10154         * ipa-split.c (consider_split): If return_bb contains non-virtual
10155         PHIs other than for retval or if split_function would not adjust it,
10156         refuse to split.
10157
10158 2011-01-20  Richard Guenther  <rguenther@suse.de>
10159
10160         PR tree-optimization/47167
10161         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10162         Revert previous change, only avoid enumeral type changes.
10163
10164 2011-01-19  Mike Stump  <mikestump@comcast.net>
10165
10166         * doc/tm.texi.in (BRANCH_COST): Englishify.
10167         * doc/tm.texi (BRANCH_COST): Likewise.
10168
10169 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
10170
10171         PR c++/47291
10172         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
10173         (gen_scheduled_generic_parms_dies): New functions.
10174         (gen_struct_or_union_type_die): Schedule template parameters DIEs
10175         generation for the end of CU compilation.
10176         (dwarf2out_finish): Generate template parameters DIEs here.
10177
10178 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10179
10180         PR debug/46240
10181         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
10182         debug bind stmt on merge edges.
10183
10184 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10185
10186         PR debug/47079
10187         PR debug/46724
10188         * function.c (instantiate_expr): Instantiate incoming rtl of
10189         implicit arguments, and recurse on VALUE_EXPRs.
10190         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
10191         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
10192
10193 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
10194
10195         * c-parser.c (c_parser_for_statement): Initialize
10196         collection_expression.
10197
10198 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10199
10200         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
10201
10202 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10203
10204         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
10205         (LINK_SHLIB_SPEC): Don't use %(link_path).
10206         (SUBTARGET_EXTRA_SPECS): Remove link_path.
10207
10208 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10209
10210         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
10211         (NO_SHARED_LIB_SUPPORT): Remove.
10212         (LINK_SHLIB_SPEC): Remove one conditional definition.
10213
10214 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
10215
10216         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
10217         %{call_shared}.
10218         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
10219         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
10220         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
10221         %{call_shared} and conditionals on these options not being passed.
10222         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
10223         %{call_shared}.
10224
10225 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10226
10227         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
10228         simplify.
10229
10230         * ipa-split.c: Spelling fixes.
10231
10232 2011-01-19  Richard Henderson  <rth@redhat.com>
10233
10234         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
10235         (*mulsi3): Likewise.
10236
10237         * longlong.h [__mn10300__] (count_leading_zeros): New.
10238         [__mn10300__] (umul_ppmm, smul_ppmm): New.
10239         [__mn10300__] (add_ssaaaa, subddmmss): New.
10240         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
10241         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
10242
10243 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10244
10245         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
10246
10247 2011-01-19  Richard Henderson  <rth@redhat.com>
10248
10249         * config/mn10300/mn10300.md (addsi3_flags): New.
10250         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
10251         (subsi3_flags, subc_internal, subdi3): New.
10252         (subdi3_internal, *subdi3_degenerate): New.
10253         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
10254
10255         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
10256         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
10257         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
10258         * config/mn10300/mn10300-protos.h: Update.
10259         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
10260         (return_ret): Likewise.  Rename from return_internal_regs.
10261         (return_internal): Remove.
10262
10263         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
10264         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
10265         (mn10300_legitimate_constant_p): Likewise.
10266         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
10267         (mn10300_frame_size): New.
10268         (mn10300_expand_prologue): Use it.
10269         (mn10300_expand_epilogue): Likewise.
10270         (mn10300_initial_offset): Likewise.
10271         * config/mn10300/mn10300-protos.h: Update.
10272         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
10273         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
10274         (prologue, epilogue, return_internal): Tidy output code.
10275         (mn10300_store_multiple_operation, return): Likewise.
10276         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
10277         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
10278         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
10279         (load_pic, am33_load_pic): New.
10280         (mn10300_load_pic0, mn10300_load_pic1): New.
10281
10282         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
10283         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
10284         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
10285         (cc_flags_for_mode, cc_flags_for_code): New.
10286         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
10287         overflow flag is not valid.  Validate that the flags we need
10288         for the comparison are valid.
10289         (mn10300_output_cmp): Remove.
10290         (mn10300_output_add): New.
10291         (mn10300_select_cc_mode): Use cc_flags_for_code.
10292         (mn10300_split_cbranch): New.
10293         (mn10300_match_ccmode): New.
10294         (mn10300_split_and_operand_count): New.
10295         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
10296         to the function.
10297         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
10298         (addsi3): ... here.  Use mn10300_output_add.
10299         (*addsi3_flags): New.
10300         (*am33_subsi3, *mn10300_subsi3): Merge...
10301         (subsi3): ... here.  Use attribute isa.
10302         (*subsi3_flags): New.
10303         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
10304         when possible.
10305         (*am33_andsi3, *mn10300_andsi3): Merge...
10306         (andsi3): ... here.
10307         (*andsi3_flags): New.
10308         (andsi3 splitters): New.
10309         (*am33_iorsi3, *mn10300_iorsi3): Merge...
10310         (iorsi3): ... here.
10311         (*iorsi3_flags): New.
10312         (*am33_xorsi3, *mn10300_xorsi3): Merge...
10313         (xorsi3): ... here.
10314         (*xorsi3_flags): New.
10315         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
10316         (one_cmplsi2): ... here.
10317         (*one_cmplsi2_flags): New.
10318         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
10319         instead of "dax" in constraints.  Use mn10300_split_cbranch.
10320         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
10321         use matching constraints to eliminate a self-comparison.
10322         (*integer_conditional_branch): Rename from integer_conditional_branch.
10323         Use int_mode_flags to match CC_REG.
10324         (*cbranchsi4_btst, *btstsi): New.
10325         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
10326         mn10300_split_cbranch.
10327         (*am33_cmpsf): Rename from am33_cmpsf.
10328         (*float_conditional_branch): Rename from float_conditional_branch.
10329         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
10330         (zero_extendqisi2): ... here.
10331         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
10332         (zero_extendhisi2): ... here.
10333         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
10334         (extendqisi2): ... here.
10335         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
10336         (extendhisi2): ... here.
10337         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
10338         (ashlsi3): ... here.
10339         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
10340         (lshrsi3): ... here.
10341         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
10342         (ashrsi3): ... here.
10343         (consecutive add peephole): Remove.
10344         * config/mn10300/predicates.md (label_ref_operand): New.
10345         (int_mode_flags): New.
10346         (CCZN_comparison_operator): New.
10347
10348         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
10349         (throughput_42_latency_43): New reservation.
10350         (mulsidi3, umulsidi3): New expanders.
10351         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
10352         the MDR register to allocation; separately allocate the low and
10353         high parts of the DImode result.
10354         (umulsidi3_internal): Similarly.
10355         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
10356         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
10357         (udivsi3, umodsi3): Remove.
10358         (udivmodsi4, divmodsi4): New expanders.
10359         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
10360         (*divmodsi4): Simiarly.
10361         (ext_internal): New.
10362
10363         * config/mn10300/constraints.md ("z"): New constraint.
10364         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
10365         (FIXED_REGISTERS): Don't fix MDR.
10366         (CALL_USED_REGSITERS): Reformat nicely.
10367         (REG_ALLOC_ORDER): Add MDR.
10368         (enum regclass): Add MDR_REGS.
10369         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
10370         (IRA_COVER_CLASSES): Add MDR_REGS.
10371         (REGNO_REG_CLASS): Handle MDR_REG.
10372         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
10373         (mn10300_register_move_cost): Likewise.
10374         * config/mn10300/mn10300.md (MDR_REG): New.
10375         (*movsi_internal): Handle moves to/from MDR_REGS.
10376
10377         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
10378         POST_MODIFY.
10379         (mn10300_secondary_reload): Tidy combination reload classes.
10380         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
10381         addresses for AM33.  Allow symbolic offsets for reg+imm.
10382         (mn10300_regno_in_class_p): New.
10383         (mn10300_legitimize_reload_address): New.
10384         * config/mn10300/mn10300.h (enum reg_class): Remove
10385         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
10386         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
10387         SP_OR_GENERAL_REGS.
10388         (REG_CLASS_NAMES): Update to match.
10389         (REG_CLASS_CONTENTS): Likewise.
10390         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
10391         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
10392         (REGNO_IN_RANGE_P): Remove.
10393         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
10394         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
10395         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
10396         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
10397         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
10398         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
10399         (REGNO_GENERAL_P): New.
10400         (HAVE_POST_MODIFY_DISP): New.
10401         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
10402         (LEGITIMIZE_RELOAD_ADDRESS): New.
10403         * config/mn10300/mn10300-protos.h: Update.
10404
10405         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
10406         DATA_REGS for AM33 stack-pointer destination.
10407         (mn10300_preferred_output_reload_class): Likewise.
10408         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
10409         into a form appropriate for ...
10410         (TARGET_SECONDARY_RELOAD): New.
10411         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
10412         * config/mn10300/mn10300-protos.h: Update.
10413         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
10414         reload_insi; use the "A" constraint for the scratch; handle AM33
10415         moves of sp to non-address registers.
10416
10417         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
10418         (*movqi_internal): ... here.
10419         (*am33_movhi, *mn10300_movhi): Merge into...
10420         (*movhi_internal): ... here.
10421         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
10422         as the source/destination of moves from/to SP.
10423         (movsf): Only allow for AM33-2.
10424         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
10425         any integer constant constraint.  Only allow for AM33-2.  Tidy
10426         all of the alternative outputs.
10427         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
10428         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
10429         for MN103.
10430         (udivsi3, umodsi3): New patterns for MN103 only.
10431
10432 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
10433
10434         * doc/tm.texi.in: Spell out that a lack of register class unions
10435         can lead to ICEs.
10436         * doc/tm.texi: Regenerate.
10437
10438 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
10439
10440         PR rtl-optimization/47337
10441         * dce.c (check_argument_store): New function.
10442         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
10443
10444         PR tree-optimization/47290
10445         * tree-eh.c (infinite_empty_loop_p): New function.
10446         (cleanup_empty_eh): Use it.
10447
10448 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
10449
10450         PR target/46997
10451         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
10452         (a64_expand_widen_sum): Ditto.
10453         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
10454         (vec_extract_evenodd_help): Ditto.
10455         (vec_extract_evenv4hi): Ditto.
10456         (vec_extract_oddv4hi): Ditto.
10457         (vec_extract_evenv2si): Ditto.
10458         (vec_extract_oddv2si): Ditto.
10459         (vec_extract_evenv2sf): Ditto.
10460         (vec_extract_oddv2sf): Ditto.
10461         (vec_pack_trunc_v4hi: Ditto.
10462         (vec_pack_trunc_v2si): Ditto.
10463         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
10464         (vec_interleave_highv8qi): Ditto.
10465         (mix1_r): Ditto.
10466         (vec_extract_oddv8qi): Ditto.
10467         (vec_interleave_lowv4hi): Ditto.
10468         (vec_interleave_highv4hi): Ditto.
10469         (vec_interleave_lowv2si): Ditto.
10470         (vec_interleave_highv2si): Ditto.
10471
10472 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10473
10474         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
10475         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
10476         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
10477         (pa_c_mode_for_suffix): New.
10478         (TARGET_EXPAND_BUILTIN): Define.
10479         (TARGET_C_MODE_FOR_SUFFIX): Define.
10480         (pa_builtins): Define.
10481         (pa_init_builtins): Register __float128 type and init new support
10482         builtins.
10483         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
10484         * config/pa/quadlib.c (_U_Qfcopysign): New.
10485
10486 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10487
10488         PR middle-end/46894
10489         * explow.c (allocate_dynamic_stack_space): Do not assume more than
10490         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
10491         are defined.
10492
10493 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10494
10495         PR tree-optimization/47179
10496         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
10497         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
10498
10499 2011-01-18  Richard Guenther  <rguenther@suse.de>
10500
10501         PR rtl-optimization/47216
10502         * emit-rtl.c: Include tree-flow.h.
10503         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
10504         of replicating it with different semantics.
10505         * Makefile.in (emit-rtl.o): Adjust.
10506
10507 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10508
10509         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
10510         (cortex_a9_dp): Handle neon types correctly.
10511
10512 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
10513
10514         PR rtl-optimization/47299
10515         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
10516         subtarget.  Use normal multiplication if both operands are constants.
10517         * expmed.c (expand_widening_mult): Don't try to optimize constant
10518         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
10519         before using it.
10520
10521 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10522
10523         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
10524         spacing after 'e.g.', typos, comma, hyphenation.
10525
10526 2011-01-17  Richard Henderson  <rth@redhat.com>
10527
10528         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
10529         (rx_restricted_mem_operand): New.
10530         (rx_shift_operand): Use register_operand.
10531         (rx_source_operand, rx_compare_operand): Likewise.
10532         * config/rx/rx.md (addsi3_flags): New expander.
10533         (adddi3): Rewrite as expander.
10534         (adc_internal, *adc_flags, adddi3_internal): New patterns.
10535         (subsi3_flags): New expander.
10536         (subdi3): Rewrite as expander.
10537         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
10538
10539         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
10540         (rx_init_builtins): Remove sat builtin.
10541         (rx_expand_builtin): Likewise.
10542         * config/rx/rx.md (ssaddsi3): New.
10543         (*sat): Rename from sat.  Represent the CC_REG input.
10544
10545         * config/rx/predicates.md (rshift_operator): New.
10546         * config/rx/rx.c (rx_expand_insv): Remove.
10547         * config/rx/rx-protos.h: Update.
10548         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
10549         operand to the canonical position.
10550         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
10551         (*bitclr, *bitclr_in_memory): Similarly.
10552         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
10553         (insv): Retain the zero_extract in the expansion.
10554
10555         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
10556         (bswaphi2, bitinvert, revw): Likewise.
10557
10558         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
10559         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
10560         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
10561         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
10562         (bitset, bitset_in_memory): Likewise.
10563         (bitinvert, bitinvert_in_memory): Likewise.
10564         (bitclr, bitclr_in_memory): Likewise.
10565         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
10566         (rx_strend, rx_cmpstrn): Likewise.
10567         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
10568         (bitop peep2 patterns): Remove.
10569
10570         * config/rx/rx.c (rx_match_ccmode): New.
10571         * config/rx/rx-protos.h: Update.
10572         * config/rx/rx.md (abssi2): Clobber, don't set flags.
10573         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
10574         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
10575         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
10576         (fix_truncsfsi2, floatsisf2): Likewise.
10577         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
10578         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
10579         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
10580         (*subsi3_flags, *xorsi3_flags): New.
10581
10582         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
10583
10584         * config/rx/rx.c (rx_print_operand): Remove workaround for
10585         unsplit comparison operations.
10586
10587         * config/rx/rx.md (movsicc): Split after reload.
10588         (*movsicc): Merge *movsieq and *movsine via match_operator.
10589         (*stcc): New pattern.
10590
10591         * config/rx/rx.c (rx_float_compare_mode): Remove.
10592         * config/rx/rx.h (rx_float_compare_mode): Remove.
10593         * config/rx/rx.md (cstoresi4): Split after reload.
10594         (*sccc): New pattern.
10595
10596         * config/rx/predicates.md (label_ref_operand): New.
10597         (rx_z_comparison_operator): New.
10598         (rx_zs_comparison_operator): New.
10599         (rx_fp_comparison_operator): New.
10600         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
10601         Validate that the flags are set properly for the comparison.
10602         (rx_gen_cond_branch_template): Remove.
10603         (rx_cc_modes_compatible): Remove.
10604         (mode_from_flags): New.
10605         (flags_from_code): Rename from flags_needed_for_conditional.
10606         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
10607         (rx_select_cc_mode): Likewise.
10608         (rx_split_fp_compare): New.
10609         (rx_split_cbranch): New.
10610         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
10611         (*cbranchsi4): Use match_operator and rx_split_cbranch.
10612         (*cbranchsf4): Similarly.
10613         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
10614         match_operator and rx_split_cbranch.
10615         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
10616         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
10617         (*cmpsi): Rename from cmpsi.
10618         (*tstsi): Rename from tstsi.
10619         (*cmpsf): Rename from cmpsf; use CC_Fmode.
10620         (*conditional_branch): Rename from conditional_branch.
10621         (*reveresed_conditional_branch): Remove.
10622         (b<code>): Remove expander.
10623         * config/rx/rx-protos.h: Update.
10624
10625         * config/rx/rx.c (rx_compare_redundant): Remove.
10626         * config/rx/rx.md (cmpsi): Don't use it.
10627         * config/rx/rx-protos.h: Update.
10628
10629         * config/rx/rx-modes.def (CC_F): New mode.
10630         * config/rx/rx.c (rx_select_cc_mode): New.
10631         * config/rx/rx.h (SELECT_CC_MODE): Use it.
10632         * config/rx/rx-protos.h: Update.
10633
10634 2011-01-17  Richard Henderson  <rth@redhat.com>
10635
10636         * except.c (dump_eh_tree): Fix stray ; after for statement.
10637
10638 2011-01-17  Richard Guenther  <rguenther@suse.de>
10639
10640         PR tree-optimization/47313
10641         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
10642         handling before copying the body.  Properly deal with
10643         by-reference result in SSA form.
10644
10645 2011-01-17  Ian Lance Taylor  <iant@google.com>
10646
10647         PR target/47219
10648         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
10649         (struct_value_alias_set): Don't define.
10650         (sparc_option_override): Don't set sparc_sr_alias_set and
10651         struct_value_alias_set.
10652         (save_or_restore_regs): Use gen_frame_mem rather than calling
10653         set_mem_alias_set.
10654         (sparc_struct_value_rtx): Likewise.
10655
10656 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10657
10658         PR target/47318
10659         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
10660         (_mm_maskstore_pd): Likewise.
10661         (_mm_maskload_ps): Likewise.
10662         (_mm_maskstore_ps): Likewise.
10663         (_mm256_maskload_pd): Change mask to __m256i.
10664         (_mm256_maskstore_pd): Likewise.
10665         (_mm256_maskload_ps): Likewise.
10666         (_mm256_maskstore_ps): Likewise.
10667
10668         * config/i386/i386-builtin-types.def: Updated.
10669         (ix86_expand_special_args_builtin): Likewise.
10670
10671         * config/i386/i386.c (bdesc_special_args): Update
10672         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
10673         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
10674         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
10675         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
10676
10677         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
10678         Use <avxpermvecmode> on mask register.
10679         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
10680
10681 2011-01-17  Olivier Hainque  <hainque@adacore.com>
10682             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
10683             Eric Botcazou  <ebotcazou@adacore.com>
10684
10685         PR target/46655
10686         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
10687         if <= USHRT_MAX in 32-bit mode.
10688
10689 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10690
10691         * doc/install.texi (Configuration, Specific): Wrap long
10692         lines in examples.  Allow line wrapping in long options
10693         and URLs where beneficial for PDF output.
10694
10695 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
10696
10697         * config/mips/mips.c (mips_classify_symbol): Don't return
10698         SYMBOL_PC_RELATIVE for nonlocal labels.
10699
10700 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
10701
10702         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
10703
10704 2011-01-15  Jan Hubicka  <jh@suse.cz>
10705
10706         PR tree-optimization/47276
10707         * ipa.c (function_and_variable_visibility): Do not try to mark alias
10708         declarations as needed.
10709
10710 2011-01-15  Martin Jambor  <mjambor@suse.cz>
10711
10712         * common.opt (fdevirtualize): New flag.
10713         * doc/invoke.texi (Option Summary): Document it.
10714         * opts.c (default_options_table): Add devirtualize flag.
10715         * ipa-prop.c (detect_type_change): Return immediately if
10716         devirtualize flag is not set.
10717         (detect_type_change_ssa): Likewise.
10718         (compute_known_type_jump_func): Likewise.
10719         (ipa_analyze_virtual_call_uses): Likewise.
10720
10721 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10722
10723         PR tree-optimization/45934
10724         PR tree-optimization/46302
10725         * ipa-prop.c (type_change_info): New type.
10726         (stmt_may_be_vtbl_ptr_store): New function.
10727         (check_stmt_for_type_change): Likewise.
10728         (detect_type_change): Likewise.
10729         (detect_type_change_ssa): Likewise.
10730         (compute_complex_assign_jump_func): Check for dynamic type change.
10731         (compute_complex_ancestor_jump_func): Likewise.
10732         (compute_known_type_jump_func): Likewise.
10733         (compute_scalar_jump_functions): Likewise.
10734         (ipa_analyze_virtual_call_uses): Likewise.
10735         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
10736
10737 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10738
10739         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
10740         * config/i386/i386.opt (msse5): New Alias.
10741
10742 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10743
10744         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10745         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10746         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10747         * config/sparc/sparc.h (CC1_SPEC): Likewise.
10748
10749 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10750
10751         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
10752         -mcpu options.
10753         * config/sparc/linux64.h (CC1_SPEC): Likewise.
10754         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
10755         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
10756         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
10757         Likewise.
10758         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
10759
10760 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10761
10762         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
10763
10764 2011-01-14  Mike Stump  <mikestump@comcast.net>
10765
10766         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
10767         * config/fr30/fr30.md: Likweise
10768         (movsi_push): Likewise.
10769         (movsi_pop): Likewise.
10770         (enter_func): Likewise.
10771         * config/moxie/moxie.md (movsi_push): Likewise.
10772         (movsi_pop): Likewise.
10773
10774 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10775
10776         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
10777         %{no_archive} %{exact_version}.
10778         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
10779         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
10780         %{no_archive} %{exact_version}.
10781         * config/mips/openbsd.h (LINK_SPEC): Likewise.
10782         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
10783         * config/mips/vxworks.h: Likewise.
10784
10785 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10786
10787         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
10788
10789 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10790
10791         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
10792         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
10793
10794 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10795
10796         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
10797         -nodefaultlib.
10798
10799 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10800
10801         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
10802         for mcpu not cpu.
10803         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
10804         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
10805         not cpu.
10806         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
10807         Don't handle -shlib.
10808
10809 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10810
10811         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
10812         (CC1_SPEC): Don't handle -profile.
10813
10814 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10815
10816         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
10817         * config/mips/mips.h (CC1_SPEC): Likewise.
10818
10819 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10820
10821         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
10822         * config/mips/mips.h (CC1_SPEC): Likewise.
10823
10824 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10825
10826         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
10827         * config/m32r/linux.h (LINK_SPEC): Likewise.
10828         * config/mips/linux.h (LINK_SPEC): Likewise.
10829         * config/mips/linux64.h (LINK_SPEC): Likewise.
10830         * config/sparc/linux.h (LINK_SPEC): Likewise.
10831         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
10832         LINK_SPEC): Likewise.
10833         * config/xtensa/linux.h (LINK_SPEC): Likewise.
10834
10835 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10836
10837         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
10838         %{version:-v}.
10839         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
10840
10841 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10842
10843         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
10844         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10845
10846 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
10847
10848         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
10849
10850 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10851
10852         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
10853         supports -Bstatic/-Bdynamic.
10854         * configure: Regenerate.
10855
10856 2011-01-14  Jan Hubicka  <jh@suse.cz>
10857             Jack Howarth  <howarth@bromo.med.uc.edu>
10858
10859         PR target/46037
10860         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
10861         when checking debug_info_level. Test write_symbols instead of
10862         debug_hooks->var_location when setting flag_var_tracking_uninit.
10863
10864 2011-01-14  Richard Guenther  <rguenther@suse.de>
10865
10866         PR tree-optimization/47179
10867         * target.def (ref_may_alias_errno): New target hook.
10868         * targhooks.h (default_ref_may_alias_errno): Declare.
10869         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
10870         (default_ref_may_alias_errno): New function.
10871         * target.h (struct ao_ref_s): Declare.
10872         * tree-ssa-alias.c: Include target.h.
10873         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
10874         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
10875         (targhooks.o): Likewise.
10876         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
10877         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
10878
10879 2011-01-14  Richard Guenther  <rguenther@suse.de>
10880
10881         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
10882
10883 2011-01-14  Richard Guenther  <rguenther@suse.de>
10884
10885         PR tree-optimization/47280
10886         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
10887         return CFG changes.
10888         (tree_ssa_forward_propagate_single_use_vars): Deal with
10889         CFG changes from associate_plusminus.
10890
10891 2011-01-14  Richard Guenther  <rguenther@suse.de>
10892
10893         PR middle-end/47281
10894         Revert
10895         2011-01-11  Richard Guenther  <rguenther@suse.de>
10896
10897         PR tree-optimization/46076
10898         * tree-ssa.c (useless_type_conversion_p): Conversions from
10899         unprototyped to empty argument list function types are useless.
10900
10901 2011-01-14  Richard Guenther  <rguenther@suse.de>
10902
10903         PR tree-optimization/47286
10904         * tree-ssa-structalias.c (new_var_info): Register variables are global.
10905
10906 2011-01-14  Martin Jambor  <mjambor@suse.cz>
10907
10908         PR middle-end/46823
10909         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
10910
10911 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
10912
10913         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
10914         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
10915         * config/xtensa/xtensa.c (xtensa_libcall_value,
10916         xtensa_function_value_regno_p): New functions.
10917         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10918
10919 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
10920
10921         PR c++/47213
10922         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
10923         PE specific hook.
10924         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
10925         New function prototype.
10926         * config/i386/winnt.c (i386_pe_assemble_visibility):
10927         Warn only if attribute was specified by user.
10928
10929 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10930
10931         PR target/47251
10932         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
10933         floating point.
10934         (floatunsdidf2_fcfidu): Ditto.
10935
10936 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10937
10938         * config/s390/s390.c (print_operand_address): Replace 'error' with
10939         'output_operand_lossage'.
10940         (print_operand): Likewise.
10941
10942 2011-01-13  Jeff Law  <law@redhat.com>
10943
10944         PR rtl-optimization/39077
10945         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
10946         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
10947         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
10948         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
10949         * gcse.c (prune_insertions_deletions): New function.
10950         (compute_pre_data): Use it.
10951
10952 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
10953
10954         PR debug/PR46973
10955         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
10956         static function.
10957         (prune_unused_types_mark): Use it.
10958
10959 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
10960
10961         PR rtl-optimization/45352
10962         * sel-sched.c: Update copyright years.
10963         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
10964         in the advancing loop when we have issued issue_rate insns.
10965
10966 2011-01-12  Richard Henderson  <rth@redhat.com>
10967
10968         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
10969         (TARGET_MD_ASM_CLOBBERS): New.
10970
10971         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
10972         (TARGET_DELEGITIMIZE_ADDRESS): New.
10973
10974         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
10975         (clzsi2, *bsch): New patterns.
10976
10977         * config/mn10300/mn10300.md (INT): New mode iterator.
10978         (*mov<INT>_clr): New pattern, and peep2 to generate it.
10979
10980         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
10981         flag_split_wide_types.
10982
10983         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
10984         (mn10300_trampoline_init): Rewrite without a template, an immediate
10985         load and a direct branch.
10986         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
10987
10988 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
10989
10990         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10991         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
10992         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
10993         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10994
10995 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
10996
10997         PR debug/47209
10998         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
10999         of type.
11000
11001 2011-01-12  Jan Hubicka  <jh@suse.cz>
11002
11003         PR driver/47244
11004         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
11005         (PLUGIN_COND_CLOSE): New macro.
11006         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
11007
11008 2011-01-12  Richard Guenther  <rguenther@suse.de>
11009
11010         PR lto/47259
11011         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
11012         register variables in a MEM_REF.
11013
11014 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
11015
11016         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
11017         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
11018         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
11019         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
11020         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
11021         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
11022         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
11023         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
11024         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
11025         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
11026         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
11027         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
11028         * config/gnu-user.h: New.  Copied from linux.h.
11029         (LINUX_TARGET_STARTFILE_SPEC): Rename to
11030         GNU_USER_TARGET_STARTFILE_SPEC.
11031         (LINUX_TARGET_ENDFILE_SPEC): Rename to
11032         GNU_USER_TARGET_ENDFILE_SPEC.
11033         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
11034         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
11035         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
11036         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
11037         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
11038         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
11039         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
11040         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
11041         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
11042         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
11043         * config/arm/linux-eabi.h (CC1_SPEC): Use
11044         GNU_USER_TARGET_CC1_SPEC.
11045         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
11046         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
11047         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
11048         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
11049         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
11050         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
11051         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
11052         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
11053
11054 2011-01-12  Richard Guenther  <rguenther@suse.de>
11055
11056         PR other/46946
11057         * doc/invoke.texi (ffast-math): Document it is turned on
11058         with -Ofast.
11059
11060 2011-01-12  Jan Hubicka  <jh@suse.cz>
11061
11062         PR tree-optimization/47233
11063         * opts.c (common_handle_option): Disable ipa-reference with profile
11064         feedback.
11065
11066 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11067
11068         * c-parser.c (c_parser_objc_at_property_declaration): Improved
11069         error message.
11070
11071 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
11072
11073         * c-parser.c (c_lex_one_token): Updated and reindented some
11074         comments.  No changes in code.
11075
11076 2011-01-11  Ian Lance Taylor  <iant@google.com>
11077
11078         * godump.c (go_output_var): Don't output the variable if there is
11079         already a type with the same name.
11080
11081 2011-01-11  Ian Lance Taylor  <iant@google.com>
11082
11083         * godump.c (go_format_type): Don't generate float80.
11084
11085 2011-01-11  Richard Henderson  <rth@redhat.com>
11086
11087         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
11088         declaration.  Rewrite for both speed and size.
11089         (mn10300_address_cost_1): Remove.
11090         (mn10300_register_move_cost): New.
11091         (mn10300_memory_move_cost): New.
11092         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
11093         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
11094         extensions, shifts, BSWAP, CLZ.
11095         (mn10300_wide_const_load_uses_clr): Remove.
11096         (TARGET_REGISTER_MOVE_COST): New.
11097         (TARGET_MEMORY_MOVE_COST): New.
11098         * config/mn10300/mn10300-protos.h: Update.
11099         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
11100
11101         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
11102         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
11103         * config/mn10300/mn10300-protos.h: Update.
11104         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
11105         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
11106         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
11107         (*test_int_bitfield, *test_byte_bitfield): Remove.
11108         (*bit_test, *subreg_bit_test): Remove.
11109         * config/mn10300/predicates.md (const_8bit_operand): Remove.
11110
11111         * config/mn10300/constraints.md ("c"): Rename from "A".
11112         ("A", "D"): New constraint letters.
11113         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
11114         (fmssf4, fnmasf4, fnmssf4): Likewise.
11115
11116         * config/mn10300/mn10300.md (isa): New attribute.
11117         (enabled): New attribute.
11118
11119         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
11120         (abssf2, negsf2): Define only for hardware fp.
11121         (sqrtsf2): Reformat.
11122         (addsf3, subsf3, mulsf3): Merge expander and insn.
11123
11124         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
11125         (DEBUGGER_AUTO_OFFSET): Remove.
11126         (DEBUGGER_ARG_OFFSET): Remove.
11127
11128         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
11129         Emit register stores with the same offsets as the hardware.
11130         (mn10300_store_multiple_operation): Don't check that the register
11131         save offsets are monotonic.
11132         * config/mn10300/mn10300-protos.h: Update.
11133
11134         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
11135
11136         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
11137         in terms of the value on the stack, not the MDR register.
11138
11139 2011-01-11  Jan Hubicka  <jh@suse.cz>
11140
11141         PR lto/45721
11142         PR lto/45375
11143         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
11144         (symbol_alias_set_destroy, symbol_alias_set_contains,
11145         propagate_aliases_backward): Declare.
11146         * lto-streamer-out.c (struct sets): New sturcture.
11147         (trivally_defined_alias): New function.
11148         (output_alias_pair_p): Rewrite.
11149         (output_unreferenced_globals): Fix output of alias pairs.
11150         (produce_symtab): Likewise.
11151         * ipa.c (function_and_variable_visibility): Set weak alias destination
11152         as needed in lto.
11153         * varasm.c (symbol_alias_set_t): Remove.
11154         (symbol_alias_set_destroy): Export.
11155         (propagate_aliases_forward, propagate_aliases_backward): New functions
11156         based on ...
11157         (compute_visible_aliases): ... this one; remove.
11158         (trivially_visible_alias): New
11159         (trivially_defined_alias): New.
11160         (remove_unreachable_alias_pairs): Rewrite.
11161         (finish_aliases_1): Reorganize code checking if alias is defined.
11162         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
11163         in LTO mode.
11164
11165 2011-01-11  Richard Guenther  <rguenther@suse.de>
11166
11167         PR tree-optimization/46076
11168         * tree-ssa.c (useless_type_conversion_p): Conversions from
11169         unprototyped to empty argument list function types are useless.
11170
11171 2011-01-11  Richard Guenther  <rguenther@suse.de>
11172
11173         PR middle-end/45235
11174         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
11175         volatile MEMs as MEM_READONLY_P.
11176
11177 2011-01-11  Richard Guenther  <rguenther@suse.de>
11178
11179         PR tree-optimization/47239
11180         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
11181
11182 2011-01-11  Jeff Law  <law@redhat.com>
11183
11184         PR tree-optimization/47086
11185         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
11186         IVs from statements that might throw.
11187
11188 2011-01-10  Jan Hubicka  <jh@suse.cz>
11189
11190         PR lto/45375
11191         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
11192
11193 2011-01-10  Jan Hubicka  <jh@suse.cz>
11194
11195         PR lto/45375
11196         * profile.c (read_profile_edge_counts): Ignore profile inconistency
11197         when correcting profile.
11198
11199 2011-01-10  Jan Hubicka  <jh@suse.cz>
11200
11201         PR lto/46083
11202         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
11203         DECL_FINI_PRIORITY.
11204         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
11205         Restore DECL_FINI_PRIORITY.
11206
11207 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11208
11209         * doc/gimple.texi: Fix quoting of multi-word return values in
11210         @deftypefn statements.  Ensure presence of return value.  Wrap
11211         overlong @deftypefn lines.
11212         (is_gimple_operand, is_gimple_min_invariant_address): Remove
11213         descriptions of removed functions.
11214         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
11215         of multi-word return value in @deftypefn statement.
11216
11217 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11218
11219         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
11220         (Conditional Expressions, Logical Operators)
11221         (Statement and operand traversals): Do not indent smallexample
11222         code.  Fix duplicate function argument in example.
11223
11224 2011-01-10  Jeff Law  <law@redhat.com>
11225
11226         PR tree-optimization/47141
11227         * ipa-split.c (split_function): Handle case where we are
11228         returning a value and the return block has a virtual operand phi.
11229
11230 2011-01-10  Jan Hubicka  <jh@suse.cz>
11231
11232         PR tree-optimization/47234
11233         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
11234         (pass_feedback_split_functions): Declare.
11235         * passes.c (init_optimization_passes): Add ipa-split as subpass of
11236         tree-profile.
11237         * ipa-split.c (gate_split_functions): Update comments; disable
11238         split-functions for profile_arc_flag and branch_probabilities.
11239         (gate_feedback_split_functions): New function.
11240         (execute_feedback_split_functions): New function.
11241         (pass_feedback_split_functions): New global var.
11242
11243 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11244
11245         PR lto/46760
11246         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
11247         calling gimple_call_set_cannot_inline.
11248
11249 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
11250
11251         * config/darwin-sections.def: Remove unused section.
11252
11253 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
11254
11255         PR c++/47218
11256         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
11257
11258 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
11259
11260         PR objc/47232
11261         * c-parser.c (c_parser_declaration_or_fndef): Improved
11262         error message.
11263
11264 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
11265
11266         * config/i386/winnt.c (i386_pe_start_function): Make sure
11267         to switch back to function's section.
11268
11269 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
11270
11271         PR gcc/46902
11272         PR testsuite/46912
11273         * plugin.c: Move include of dlfcn.h from here...
11274         * system.h: ... to here.
11275
11276 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11277
11278         * doc/cpp.texi (C++ Named Operators): Fix markup for header
11279         file name.
11280         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
11281         two extra empty pages in PDF output.
11282
11283 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
11284
11285         PR objc/47078
11286         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
11287         for error recovery purposes behave as if it was not specified so
11288         that the default type is usd.
11289
11290 2011-01-07  Jan Hubicka  <jh@suse.cz>
11291
11292         PR tree-optmization/46469
11293         * ipa.c (function_and_variable_visibility): Clear needed flags on
11294         nodes with external decls; handle weakrefs merging correctly.
11295
11296 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
11297
11298         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
11299         not false.
11300
11301 2011-01-07  Jan Hubicka  <jh@suse.cz>
11302
11303         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
11304         and no longer claim that gold is required for linker plugin.
11305         * configure: Regenerate.
11306         * gcc.c (PLUGIN_COND): New macro.
11307         (LINK_COMMAND_SPEC): Use it.
11308         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
11309         * config.in (HAVE_LTO_PLUGIN): New.
11310         * configure.ac (--with-lto-plugin): New parameter; autodetect
11311         HAVE_LTO_PLUGIN.
11312
11313 2011-01-07  Jan Hubicka  <jh@suse.cz>
11314
11315         PR tree-optimization/46367
11316         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
11317         when we can update original.
11318         (cgraph_mark_inline_edge): Sanity check.
11319         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
11320
11321 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11322
11323         * config/spu/spu.h (ASM_COMMENT_START): Define.
11324
11325 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11326
11327         PR driver/42445
11328         * gcc.c (%>S): New.
11329         (SWITCH_KEEP_FOR_GCC): Likewise.
11330         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
11331         (do_spec_1): Handle "%>".
11332
11333         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
11334
11335 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
11336
11337         PR target/47201
11338         * config/i386/i386.c (ix86_delegitimize_address): If
11339         simplify_gen_subreg fails, return orig_x.
11340
11341         PR bootstrap/47187
11342         * value-prof.c (gimple_stringop_fixed_value): Handle
11343         lhs of the call properly.
11344
11345 2011-01-07  Jan Hubicka  <jh@suse.cz>
11346
11347         PR lto/45375
11348         * lto-opt.c (lto_reissue_options): Set flag_shlib.
11349
11350 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11351
11352         * target.def (function_switched_text_sections): New hook.
11353         * doc/tm.texi: Regenerated.
11354         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11355         * final.c (default_function_switched_text_sections): New.
11356         (final_scan_insn): Call function_switched_text_sections when a
11357         mid-function section change occurs.
11358         * output.h (default_function_switched_text_sections): Declare.
11359         * config/darwin-protos.h (darwin_function_switched_text_sections):
11360         Likewise.
11361         * config/darwin.c (darwin_function_switched_text_sections): New.
11362         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
11363
11364 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
11365
11366         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
11367         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
11368         the secondary code fragment when outputting for DWARF == 2.
11369
11370 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
11371
11372         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11373         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
11374         Remove.
11375         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
11376         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11377
11378 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
11379
11380         PR debug/46704
11381         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
11382         when it is not empty.
11383
11384 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
11385
11386         Bobcat Enablement
11387         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
11388         (case ${target}): Add btver1.
11389         * config/i386/driver-i386.c (host_detect_local_cpu): Let
11390         -march=native recognize btver1 processors.
11391         * config/i386/i386-c.c (ix86_target_macros_internal): Add
11392         btver1 def_and_undef
11393         * config/i386/i386.c (struct processor_costs btver1_cost): New
11394         btver1 cost table.
11395         (m_BTVER1): New definition.
11396         (m_AMD_MULTIPLE): Includes m_BTVER1.
11397         (initial_ix86_tune_features): Add btver1 tune.
11398         (processor_target_table): Add btver1 entry.
11399         (static const char *const cpu_names): Add btver1 entry.
11400         (software_prefetching_beneficial_p): Add btver1.
11401         (ix86_option_override_internal): Add btver1 instruction sets.
11402         (ix86_issue_rate): Add btver1.
11403         (ix86_adjust_cost): Add btver1.
11404         * config/i386/i386.h (TARGET_BTVER1): New definition.
11405         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
11406         (enum processor_type): Add PROCESSOR_BTVER1.
11407         * config/i386/i386.md (define_attr "cpu"): Add btver1.
11408
11409 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11410
11411         PR target/43309
11412         * config/i386/i386.c (legitimize_tls_address)
11413         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
11414         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
11415         (tls_initial_exec_64_sun): New pattern.
11416
11417 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11418
11419         * doc/invoke.texi (Overall Options): Improve wording and markup
11420         of the description of -wrapper.
11421
11422 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11423
11424         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
11425         rdynamic, threads): New Driver options.
11426
11427 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11428
11429         PR target/38118
11430         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
11431         if coming from .tdata.
11432         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
11433
11434 2011-01-06  Jan Hubicka  <jh@suse.cz>
11435
11436         PR lto/47188
11437         * collect2.c (main): Do not enable LTOmode when plugin is active.
11438
11439 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11440
11441         PR other/45915
11442         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
11443         --version output if supported.
11444         * configure: Regenerate.
11445
11446 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
11447
11448         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
11449         Driver options.
11450
11451 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
11452
11453         PR c/47150
11454         * c-convert.c (convert): When converting a complex expression
11455         other than COMPLEX_EXPR to a different complex type, ensure
11456         c_save_expr is called instead of save_expr, unless in_late_binary_op.
11457         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
11458         when converting COMPLEX_TYPE.
11459
11460 2011-01-06  Ira Rosen  <irar@il.ibm.com>
11461
11462         PR tree-optimization/47139
11463         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
11464         only the last reduction value is used outside the loop.  Update
11465         documentation.
11466
11467 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
11468
11469         * config/rtems.opt: New.
11470         * config.gcc (*-*-rtems*): Use rtems.opt.
11471
11472 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
11473
11474         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
11475         processors do not support 3DNow instructions.
11476
11477 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11478
11479         * config/spu/spu.c (spu_option_override): Set parameter
11480         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
11481
11482 2011-01-05  Jan Hubicka  <jh@suse.cz>
11483
11484         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
11485         at the command line.
11486
11487 2011-01-05  Martin Jambor  <mjambor@suse.cz>
11488
11489         PR lto/47162
11490         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
11491         deltas on streamed outgoing edges.
11492         (output_node_opt_summary): Output info for outgoing edges only when
11493         the node is in new parameter set.
11494         (output_cgraph_opt_summary): New parameter set, passed to the two
11495         aforementioned functions.  Update its forward declaration and its
11496         callee too.
11497
11498 2011-01-05  Tom Tromey  <tromey@redhat.com>
11499
11500         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
11501         operator to c_finish_omp_atomic.
11502         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
11503         (build_unary_op): Update.
11504         (build_modify_expr): Update.
11505         (build_asm_expr): Update.
11506
11507 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11508
11509         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
11510         newly inserted insns.
11511         (pad_bb): Likewise.
11512         (spu_emit_branch_hint): Likewise.
11513         (insert_hbrp_for_ilb_runout): Likewise.
11514         (spu_machine_dependent_reorg): Call df_finish_pass after
11515         schedule_insns returns.
11516
11517 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11518
11519         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
11520
11521 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
11522
11523         PR tree-optimization/47005
11524         * tree-sra.c (struct access): Add 'non_addressable' bit.
11525         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
11526         (decide_one_param_reduction): Return 0 if the parameter is passed by
11527         reference and one of the accesses in the group is non_addressable.
11528
11529 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11530
11531         PR tree-optimization/47056
11532         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
11533         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
11534         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
11535
11536 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
11537
11538         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
11539         initializer.  Skip view conversions from aggregate types.
11540
11541 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
11542
11543         PR bootstrap/47055
11544         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
11545
11546 2011-01-04  Philipp Thomas  <pth@suse.de>
11547
11548         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
11549         obvious typo.
11550
11551 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11552
11553         * function.c (thread_prologue_and_epilogue_insns): Do not crash
11554         on empty epilogue sequences.
11555
11556 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
11557
11558         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
11559         non-static): New Driver options.
11560
11561 2011-01-04  Jie Zhang  <jie@codesourcery.com>
11562
11563         PR driver/47137
11564         * gcc.c (default_compilers[]): Set combinable field to 0
11565         for all assembly languages.
11566
11567 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
11568
11569         * config/mips/loongson3a.md: New file.
11570         * config/mips/mips.md: Include loongson3a.md.
11571         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
11572         TUNE_LOONGSON_3A.
11573
11574 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
11575
11576         PR middle-end/47017
11577         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
11578         instead of convert_memory_address_addr_space on the base expression.
11579
11580 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11581
11582         * config/spu/spu.c (spu_option_override): Update error text
11583         for bad -march= / -mtune= values.
11584
11585 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11586
11587         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
11588         if branch-hint optimization will be performed.
11589
11590 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11591
11592         PR tree-optimization/47148
11593         * ipa-split.c (split_function): Convert arguments to
11594         DECL_ARG_TYPE if possible.
11595
11596         PR tree-optimization/47155
11597         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
11598         when computing uns.
11599
11600         PR rtl-optimization/47157
11601         * combine.c (try_combine): If undobuf.other_insn becomes
11602         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
11603         and set *new_direct_jump_p too.
11604
11605 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
11606
11607         PR tree-optimization/47021
11608         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
11609
11610 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
11611
11612         * gcc.c (process_command): Update copyright notice dates.
11613         * gcov.c (print_version): Likewise.
11614         * gcov-dump.c (print_version): Likewise.
11615         * mips-tfile.c (main): Likewise.
11616         * mips-tdump.c (main): Likewise.
11617
11618 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11619
11620         PR tree-optimization/46801
11621         * tree-sra.c (type_internals_preclude_sra_p): Check whether
11622         aggregate fields start at byte boundary instead of the bit-field flag.
11623
11624 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11625
11626         PR driver/47137
11627         * gcc.c (main): Revert revision 168407.
11628
11629 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11630
11631         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
11632
11633 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11634
11635         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
11636         vector optab to expand vector/scalar shift, update gimple to vector.
11637
11638 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11639
11640         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
11641         a thunk.
11642
11643 2011-01-03  Martin Jambor  <mjambor@suse.cz>
11644
11645         PR tree-optimization/46984
11646         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
11647         HOST_WIDE_INT.
11648         (cgraph_create_indirect_edge): Fixed line length.
11649         (cgraph_indirect_call_info): Declare.
11650         (cgraph_make_edge_direct) Update declaration.
11651         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
11652         (cgraph_create_indirect_edge): Use it.
11653         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
11654         callees.
11655         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
11656         the new thunk_delta representation.
11657         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
11658         HOST_WIDE_INT.
11659         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
11660         (ipa_read_indirect_edge_info): Likewise.
11661         * lto-cgraph.c (output_edge_opt_summary): New function.
11662         (output_node_opt_summary): Call it on all outgoing edges.
11663         (input_edge_opt_summary): New function.
11664         (input_node_opt_summary): Call it on all outgoing edges.
11665
11666 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
11667
11668         PR driver/47137
11669         * gcc.c (main): Don't check have_o when settting combine_inputs.
11670
11671 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
11672
11673         * regrename.c: Add general comment describing the pass.
11674         (struct du_head): Remove 'length' field.
11675         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
11676         (regrename_optimize): Do not sort chains.  Rework comments, add others.
11677         Force renaming to the preferred class (if any) in the first pass and do
11678         not consider registers that belong to it in the second pass.
11679         (create_new_chain): Do not set 'length' field.
11680         (scan_rtx_reg): Likewise.
11681
11682 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
11683
11684         PR tree-optimization/47140
11685         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
11686         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
11687         to bit_value_binop.
11688
11689         PR rtl-optimization/47028
11690         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
11691         parm_birth_insn instead of at the beginning of first bb.
11692
11693 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
11694
11695         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
11696         Remove the word "see" before "@pxref".
11697         * doc/rtl.texi: Remove the word "see" before "@pxref".
11698
11699 2011-01-01  Jan Hubicka  <jh@suse.cz>
11700
11701         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
11702         memory.
11703
11704 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
11705
11706         PR target/38662
11707         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
11708
11709 \f
11710 Copyright (C) 2011 Free Software Foundation, Inc.
11711
11712 Copying and distribution of this file, with or without modification,
11713 are permitted in any medium without royalty provided the copyright
11714 notice and this notice are preserved.