]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR middle-end/50145 (FAIL: gcc.dg/torture/pr50067-*.c -O* execution test on powerp...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
fbddb81d
MP
12011-08-22 Mikael Pettersson <mikpe@it.uu.se>
2
3 PR bootstrap/50146
4 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
5 to #ifndef HONOR_REG_ALLOC_ORDER block.
6
8f06d483
RH
72011-08-21 Richard Henderson <rth@redhat.com>
8
9 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
10 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
11 * resource.c (next_insn_no_annul): Likewise.
12 (mark_set_resources): Likewise.
13 * reorg.c (delete_from_delay_slot): Likewise.
14 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
15 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
16
38acd291
UB
172011-08-21 Uros Bizjak <ubizjak@gmail.com>
18
19 * config/i386/i386.md (any_div): Remove.
20 (sgnprefix): Update for removal.
21 (u): Ditto.
22
51935358
VM
232011-08-20 Vladimir Makarov <vmakarov@redhat.com>
24
25 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
26 for ira_reg_class_max_nregs. Increase pressure by 1.
27 (mark_pseudo_regno_subword_dead): Use allocno class
28 for ira_reg_class_max_nregs.
29
2b28ecea
RH
302011-08-20 Richard Henderson <rth@redhat.com>
31
32 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
38acd291 33 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2b28ecea
RH
34 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
35 config/c6x/ltf.c: Adjust include path for soft-fp.
36
9ce7ad7f
L
372011-08-20 H.J. Lu <hongjiu.lu@intel.com>
38
39 PR other/46770
40 * config.gcc (tm_file): Add initfini-array.h if
41 .init_arrary/.fini_array are supported.
42
43 * crtstuff.c: Don't generate .ctors nor .dtors sections if
44 USE_INITFINI_ARRAY is defined.
45
46 * output.h (default_elf_init_array_asm_out_constructor): New.
47 (default_elf_fini_array_asm_out_destructor): Likewise.
48 * varasm.c (elf_init_array_section): Likewise.
49 (elf_fini_array_section): Likewise.
50 (get_elf_initfini_array_priority_section): Likewise.
51 (default_elf_init_array_asm_out_constructor): Likewise.
52 (default_elf_fini_array_asm_out_destructor): Likewise.
53
54 * config/initfini-array.h: New.
55
894113c3
RS
562011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
57
58 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
59 OK for ST_REGS and FP_REGS before taking those classes into account.
60
9e187b31
RS
612011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
62
63 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
64 before checking for annulled branches.
65
f0cac80b
UB
662011-08-20 Uros Bizjak <ubizjak@gmail.com>
67
68 * config/i386/i386.c (ix86_binary_operator_ok): Use
69 satisfies_constraint_L.
70
198cb166
UB
712011-08-20 Uros Bizjak <ubizjak@gmail.com>
72 Michael Matz <matz@suse.de>
73
74 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
75 trunc (a + copysign (nextafter (0.5, 0.0), a)).
76
f47a61f3
AS
772011-08-20 Anatoly Sokolov <aesok@post.ru>
78
79 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
80 * doc/tm.texi: Regenerate.
81 * targhooks.c (default_preferred_output_reload_class): Don't use
82 PREFERRED_OUTPUT_RELOAD_CLASS macro.
83 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
84
94e3faf6
JJ
852011-08-20 Jakub Jelinek <jakub@redhat.com>
86
87 PR tree-optimization/48739
88 * tree-ssa.c: Include cfgloop.h.
198cb166
UB
89 (execute_update_addresses_taken): When updating ssa, if in loop closed
90 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
94e3faf6
JJ
91 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
92
3bb19a90
VM
932011-08-19 Vladimir Makarov <vmakarov@redhat.com>
94
95 PR rtl-optimization/49936
96 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
97 for calculation of max register move costs.
98
02ee3d31
JM
992011-08-19 Joseph Myers <joseph@codesourcery.com>
100
101 * c-parser.c (c_parser_postfix_expression): Convert operands of
102 __builtin_complex to their semantic types.
103
54f6892e
L
1042011-08-19 H.J. Lu <hongjiu.lu@intel.com>
105
106 PR middle-end/49721
107 * explow.c (convert_memory_address_addr_space): Also permute the
108 conversion and addition of constant for zero-extend.
109
d4a83c10
JM
1102011-08-19 Joseph Myers <joseph@codesourcery.com>
111
198cb166 112 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
d4a83c10
JM
113 * doc/extend.texi (__builtin_complex): Document.
114
a6f969f4
AS
1152011-08-19 Andrew Stubbs <ams@codesourcery.com>
116
117 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
118 beyond conversions.
119 (convert_mult_to_widen): Convert constant inputs to the right type.
120 (convert_plusminus_to_widen): Don't automatically reject inputs that
121 are not an SSA_NAME.
122 Convert constant inputs to the right type.
123
75161d2c
AS
1242011-08-19 Andrew Stubbs <ams@codesourcery.com>
125
126 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
127 to the correct type.
128
6a228c2c
AS
1292011-08-19 Andrew Stubbs <ams@codesourcery.com>
130
131 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
132 unsigned inputs of different modes.
133 (convert_plusminus_to_widen): Likewise.
134
26a855d7
AS
1352011-08-19 Andrew Stubbs <ams@codesourcery.com>
136
137 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
138 'type'.
139 Use 'type' from caller, not inferred from 'rhs'.
140 Don't reject non-conversion statements. Do return lhs in this case.
141 (is_widening_mult_p): Add new argument 'type'.
142 Use 'type' from caller, not inferred from 'stmt'.
143 Pass type to is_widening_mult_rhs_p.
144 (convert_mult_to_widen): Pass type to is_widening_mult_p.
145 (convert_plusminus_to_widen): Likewise.
146
ff63d754
AS
1472011-08-19 Andrew Stubbs <ams@codesourcery.com>
148
149 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
150 Ensure the the larger type is the first operand.
151
db719f50
AS
1522011-08-19 Andrew Stubbs <ams@codesourcery.com>
153
154 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
155 unsupported unsigned multiplies to signed.
156 (convert_plusminus_to_widen): Likewise.
157
cefb4d4f
AS
1582011-08-19 Andrew Stubbs <ams@codesourcery.com>
159
160 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
161 conversion statement separating multiply-and-accumulate.
162
2946bd34
RG
1632011-08-19 Richard Guenther <rguenther@suse.de>
164
165 PR tree-optimization/50067
166 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
167 offset only if we accounted for it.
168
5dfe80ba
AS
1692011-08-19 Andrew Stubbs <ams@codesourcery.com>
170
171 * config/arm/arm.md (maddhidi4): Remove '*' from name.
172 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
173 * optabs.c (find_widening_optab_handler_and_mode): New function.
174 (expand_widen_pattern_expr): Use find_widening_optab_handler.
175 (expand_binop_directly): Likewise.
176 (expand_binop): Likewise.
177 * optabs.h (find_widening_optab_handler): New macro define.
178 (find_widening_optab_handler_and_mode): New prototype.
179 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
180 type precision rules.
181 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
182 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
183 (is_widening_mult_rhs_p): Allow widening by more than one mode.
184 Explicitly disallow mis-matched input types.
185 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
186 input types to fit the new handler.
187 (convert_plusminus_to_widen): Likewise.
188
a484f6ba
AS
1892011-08-19 Andrew Stubbs <ams@codesourcery.com>
190
191 * expr.c (expand_expr_real_2): Use widening_optab_handler.
192 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
193 (gen_insn): $N now means $a must be wider than $b, not consecutive.
194 * optabs.c (widened_mode): New function.
195 (expand_widen_pattern_expr): Use widening_optab_handler.
196 (expand_binop_directly): Likewise.
197 (expand_binop): Likewise.
198 * optabs.h (widening_optab_handlers): New struct.
199 (optab_d): New member, 'widening'.
200 (widening_optab_handler): New function.
201 (set_widening_optab_handler): New function.
202 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
203 widening_optab_handler.
204 (convert_plusminus_to_widen): Likewise.
205
c4b3a0a0
JM
2062011-08-19 Joseph Myers <joseph@codesourcery.com>
207
208 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
209 pedantic.
198cb166 210 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
c4b3a0a0
JM
211 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
212
f6d08ab2
JM
2132011-08-19 Joseph Myers <joseph@codesourcery.com>
214
215 * opth-gen.awk: Do not declare target save/restore structures and
216 functions if IN_RTS defined.
217
a3f94870
JY
2182011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
219
220 PR target/49437
221 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
222 when stack was realigned in interrupt handler prologue.
223
bbceee64
JM
2242011-08-18 Joseph Myers <joseph@codesourcery.com>
225
226 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
227 (quals_from_declspecs): Assert _Noreturn not present.
228 (grokdeclarator): Handle _Noreturn.
229 (build_null_declspecs): Initialize noreturn_p.
230 (declspecs_add_scspec): Handle RID_NORETURN.
231 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
232 (c_parser_attributes): Handle RID_NORETURN.
233 * c-tree.h (struct c_declspecs): Add noreturn_p.
234 * ginclude/stdnoreturn.h: New.
235 * Makefile.in (USER_H): Add stdnoreturn.h.
236
7afac110
KY
2372011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
238
239 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
240 (OPTION_MASK_ISA_AVX_UNSET): Update.
241 (OPTION_MASK_ISA_AVX2_UNSET): New.
242 (ix86_handle_option): Handle OPT_mavx2 case.
243 * config/i386/cpuid.h (bit_AVX2): New.
244 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
245 AVX2 feature.
246 * config/i386/i386-c.c (ix86_target_macros_internal):
247 Conditionally define __AVX2__.
198cb166
UB
248 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
249 Define "core-avx2" processor alias. Handle avx2 option.
7afac110
KY
250 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
251 * config/i386/i386.h (TARGET_AVX2): New.
252 * config/i386/i386.opt (mavx2): New.
253 * doc/invoke.texi: Document -mavx2.
254
6277a710
VM
2552011-08-18 Vladimir Makarov <vmakarov@redhat.com>
256
257 PR rtl-optimization/49890
258 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
259 subclasses of class which is superset of a pressure class.
260
df385b9c
L
2612011-08-18 H.J. Lu <hongjiu.lu@intel.com>
262 Igor Zamyatin <igor.zamyatin@intel.com>
263
264 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
265 with HOST_WIDE_INT for isa_flag.
266 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
267 isa variables.
268
269 * config/i386/i386.c (ix86_target_string): Replace int with
270 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
271 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
272 (pta_flags): Removed.
273 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
274 (pta): Use HOST_WIDE_INT on flags.
275 (builtin_isa): Use HOST_WIDE_INT on isa.
276 (ix86_add_new_builtins): Likewise.
277 (def_builtin): Use HOST_WIDE_INT on mask.
278 (def_builtin_const): Likewise.
279 (builtin_description): Likewise.
280
281 * config/i386/i386.opt (ix86_isa_flags): Replace int with
282 HOST_WIDE_INT.
283 (ix86_isa_flags_explicit): Likewise.
284 (x_ix86_isa_flags_explicit): Likewise.
285
9181a6e5
VM
2862011-08-17 Vladimir Makarov <vmakarov@redhat.com>
287
288 PR rtl-optimization/50107
289 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
290 (ira_hard_reg_in_set_p): New.
291
292 * ira-color.c (calculate_saved_nregs): New.
293 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
294 hard regs.
295 (allocno_reload_assign, fast_allocation): Use
296 ira_hard_reg_set_intersection_p instead of
297 ira_hard_reg_not_in_set_p.
298
299 * ira.c (setup_reg_renumber): Use
300 ira_hard_reg_set_intersection_p instead of
301 ira_hard_reg_not_in_set_p.
302 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
303 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
304
305 * ira-costs.c (ira_tune_allocno_costs): Use
306 ira_hard_reg_set_intersection_p instead of
307 ira_hard_reg_not_in_set_p.
308
99114bbf
L
3092011-08-18 H.J. Lu <hongjiu.lu@intel.com>
310 Igor Zamyatin <igor.zamyatin@intel.com>
311
312 * hwint.h (HOST_WIDE_INT_1): New.
313
314 * opt-functions.awk (switch_bit_fields): Initialize the
315 host_wide_int field.
316 (host_wide_int_var_name): New.
317 (var_type_struct): Check and return HOST_WIDE_INT.
318
319 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
320
321 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
322
323 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
324 check masks for HOST_WIDE_INT.
325
326 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
327 (option_enabled): Likewise.
328 (get_option_state): Likewise.
329
330 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
331 to HOST_WIDE_INT.
332
5b880ea6
RO
3332011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
334 Marc Glisse <marc.glisse@normalesup.org>
335
336 PR libstdc++-v3/1773
337 * target.def (decl_mangling_context): New C++ hook.
338 * doc/tm.texi: Regenerate.
339 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
340 * config/sol2-protos.h: Group by source file.
341 (solaris_cxx_decl_mangling_context): Declare.
342 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
343 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
344 Use $<.
345 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
346 Add sol2-stubs.o to extra_objs.
347
4dee9718
JJ
3482011-08-18 Jakub Jelinek <jakub@redhat.com>
349
f44157f8
JJ
350 PR target/50009
351 * stor-layout.c (update_alignment_for_field): Don't ICE on
352 packed flexible array members if ms_bitfield_layout_p.
353
2a63286d
JJ
354 PR target/50092
355 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
356 on the result before returning it.
357
4dee9718
JJ
358 PR debug/50017
359 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
360 is a debug stmt, use location of the first non-debug stmt after it.
361
b28e37f1
RS
3622011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
363
364 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
365 (arm_size_rtx_costs): Likewise.
366
6b8045e1
RG
3672011-08-18 Richard Guenther <rguenther@suse.de>
368
369 * tree.h (tree_int_cst_msb): Remove.
370 * tree.c (tree_int_cst_msb): Likewise.
371 (tree_int_cst_sign_bit): Move from ...
372 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
373
68f932c4
RS
3742011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
375
376 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
377 * doc/tm.texi: Regenerate.
378 * target.def (rtx_costs): Add an opno parameter.
379 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
380 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
381 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
382 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
383 * cse.c (COST_IN): Add an opno parameter.
384 (notreg_cost): Likewise. Update call to rtx_cost.
385 (COST, fold_rtx): Update accordingly.
386 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
387 * expmed.c (emit_store_flag): Likewise.
388 * optabs.c (avoid_expensive_constant): Add an opno parameter.
389 Update call to rtx_cost.
390 (expand_binop_directly, expand_binop): Likewise.
391 (expand_twoval_binop, prepare_cmp_insn): Likewise.
392 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
393 (set_src_cost, get_full_set_src_cost): Update accordingly.
394 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
395 to target hook.
396 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
397 (default_adress_cost): Update calls to rtx_cost.
398
399 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
400 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
401 (arm_rtx_costs): Add an opno parameter.
402 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
403 adjust any recursive rtx-cost calls.
404 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
405 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
406 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
407 * config/cris/cris.c (cris_rtx_costs): Likewise.
408 * config/frv/frv.c (frv_rtx_costs): Likewise.
409 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
410 * config/i386/i386.c (ix86_rtx_costs): Likewise.
411 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
412 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
413 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
414 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
415 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
416 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
417 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
418 * config/mep/mep.c (mep_rtx_cost): Likewise.
419 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
420 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
421 (mips_zero_extend_cost): Add an opno parameter.
422 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
423 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
424 to rtx_cost.
425 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
426 rtx-cost calls.
427 * config/pa/pa.c (hppa_rtx_costs): Likewise.
428 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
429 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
430 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
431 (rs6000_debug_rtx_costs): Likewise.
432 * config/s390/s390.c (s390_rtx_costs): Likewise.
433 * config/score/score-protos.h (score_rtx_costs): Likewise.
434 * config/score/score.c (score_rtx_costs): Likewise.
435 * config/sh/sh.c (andcosts): Update call to rtx_cost.
436 (sh_rtx_costs): Add an opno parameter.
437 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
438 * config/spu/spu.c (spu_rtx_costs): Likewise.
439 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
440 * config/v850/v850.c (v850_rtx_costs): Likewise.
441 * config/vax/vax.c (vax_rtx_costs): Likewise.
442 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
443
5e8f01f4
RS
4442011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
445
446 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
447 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
448 rtx_cost.
449 * calls.c (precompute_register_parameters): Likewise.
450 * combine.c (expand_compound_operation, make_extraction): Likewise.
451 (force_to_mode, distribute_and_simplify_rtx): Likewise.
452 * dse.c (find_shift_sequence): Likewise.
453 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
454 * expr.c (compress_float_constant): Likewise.
455 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
456 * gcse.c (want_to_gcse_p): Likewise.
457 * ifcvt.c (noce_try_sign_mask): Likewise.
458 * loop-doloop.c (doloop_optimize): Likewise.
459 * loop-invariant.c (create_new_invariant): Likewise.
460 * optabs.c (avoid_expensive_constant): Likewise.
461 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
462 (try_replace_in_use, reload_cse_move2add): Likewise.
463 * reload1.c (calculate_elim_costs_all_insns): Likewise.
464 (note_reg_elim_costly): Likewise.
465 * rtlanal.c (insn_rtx_cost): Likewise.
466 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
467 * stmt.c (lshift_cheap_p): Likewise.
468 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
469 * config/avr/avr.c (final_prescan_insn): Likewise.
470 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
471 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
472
d51102f3
RS
4732011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
474
475 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
476 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
477 * cfgloopanal.c (seq_cost): Likewise.
478 * loop-invariant.c (create_new_invariant): Likewise.
479 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
480 (reload_cse_move2add): Use get_full_set_rtx_cost.
481
fdb4f315
RG
4822011-08-18 Richard Guenther <rguenther@suse.de>
483
484 * expr.c (get_inner_reference): Fix typo in last change.
485
4c9cf7af
PC
4862011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
487 Joseph Myers <joseph@codesourcery.com>
488
489 PR tree-optimization/49963
490 * hwint.c (absu_hwi): Define.
491 * hwint.h (absu_hwi): Declare.
492 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
493 of abs_hwi.
494 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
495 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
496
97919ae7
RG
4972011-08-18 Richard Guenther <rguenther@suse.de>
498
499 * expr.c (get_inner_reference): Sign-extend the constant
500 twos-complement offset before doing arbitrary precision
501 arithmetic on it.
502 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
503 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
504 to get_constraint_for_ptr_offset.
505
b566132b
KK
5062011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
507
508 PR target/50068
509 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
510
0d82a1c8
RG
5112011-08-17 Richard Guenther <rguenther@suse.de>
512
513 * tree.h (convert_to_ptrofftype_loc): New function.
514 (convert_to_ptrofftype): Define.
515 * builtins.c (expand_builtin_bzero): Use size_type_node.
516 (fold_builtin_bzero): Likewise.
517 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
518 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
519 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
520 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
521 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
198cb166 522 * fold-const.c (build_range_check): Negate using the original type.
0d82a1c8
RG
523 (fold_unary_loc): Use fold_build_pointer_plus_loc.
524 * gimple-fold.c (gimple_adjust_this_by_delta): Use
525 convert_to_ptrofftype.
526 * gimplify.c (gimplify_self_mod_expr): Likewise.
527 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
528 (graphite_create_new_loop_guard): Likewise.
529 * graphite-sese-to-poly.c (my_long_long): Remove.
530 (scop_ivs_can_be_represented): Adjust.
531 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
532 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
533 * tree-loop-distribution.c (build_size_arg_loc): Use
534 size_type_node.
535 (generate_memset_zero): Simplify.
536 * tree-mudflap.c: Use fold_convert, not convert.
537 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
538 its own type.
539 (determine_offset): Likewise for DR_STEP.
540 (valid_initializer_p): Likewise.
541 * tree-profile.c (prepare_instrumented_value): Convert the pointer
542 to an integer type of same size.
543 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
544 to sizetype without need.
545 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
546 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
547 * tree-ssa-loop-manip.c (create_iv): Likewise.
548 (determine_exit_conditions): Adjust comment.
549 * tree-ssa-pre.c (create_expression_by_pieces): Use
550 convert_to_ptrofftype.
551 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
552 * varasm.c (array_size_for_constructor): Compute using double_ints.
553
0b01f619
UW
5542011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
555
556 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
557 when generating an integer result where possible. Short-cut
558 comparison against 0 also for QImode.
559
2ea0be59
UW
5602011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
561
562 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
563 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
564 prototype.
565 * config/spu/spu.c (spu_legitimize_reload_address): New function.
566 (spu_legitimate_address_p): Do not check displacement if the base
567 is an eliminable stack register.
568
b05933f5
AS
5692011-08-16 Anatoly Sokolov <aesok@post.ru>
570
571 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
572 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
573 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
574 m32c_preferred_output_reload_class): Remove.
575 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
576 Change rclass argument and return types to reg_class_t. Use
577 reg_class_subset_p instead of class_sizes.
578 (m32c_preferred_output_reload_class): Make static. Change rclass
579 argument and return types to reg_class_t.
580 (TARGET_PREFERRED_RELOAD_CLASS,
581 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
582
c9c8f2e8
KT
5832011-08-16 Kai Tietz <ktietz@redhat.com>
584
585 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
586
e8dbf8b5
RG
5872011-08-16 Richard GUenther <rguenther@suse.de>
588
589 PR tree-optimization/50082
590 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
591 warnings here, instead of ...
592 (ssa_forward_propagate_and_combine): ... here.
593 (forward_propagate_into_comparison_1): Adjust.
594 (forward_propagate_into_comparison): Likewise.
595 (forward_propagate_into_gimple_cond): Likewise.
596 (forward_propagate_into_cond): Likewise.
597
870d0521
AS
5982011-08-16 Andreas Schwab <schwab@redhat.com>
599
600 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
601 instead of ggc_alloc_zone_vec_rtvec_def.
602
370f4759
RG
6032011-08-16 Richard Guenther <rguenther@suse.de>
604
605 * tree.h (ptrofftype_p): New helper function.
606 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
607 offset verification.
608 (verify_gimple_assign_binary): Likewise.
609 * tree.c (build2_stat): Likewise.
610 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
611 (reset_evolution_in_loop): Likewise.
612 * tree-chrec.h (build_polynomial_chrec): Likewise.
613
c5058418
LW
6142011-08-16 Liang Wang <lwang1@marvell.com>
615
616 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
617 ggc_alloc_zone_vec_rtvec_def.
618
a1bc7628
RG
6192011-08-16 Richard Guenther <rguenther@suse.de>
620
621 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
622 helper factored out from ...
623 (extract_range_from_binary_expr_1): ... here. Re-structure
624 to not glob handling too different tree codes.
625
efec771a
RH
6262011-08-15 Richard Henderson <rth@redhat.com>
627
628 PR middle-end/50006
629 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
630 setting out to include allocate_stack named pattern as well.
631 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
632 * stmt.c (expand_stack_restore): Likewise.
633
d510820a
RG
6342011-08-15 Richard Guenther <rguenther@suse.de>
635
636 PR middle-end/50082
637 * fold-const.c (maybe_canonicalize_comparison_1): Properly
638 convert the modified operand to the other operand type.
639 (fold_comparison): Call maybe_canonicalize_comparison_1 with
640 useless conversions stripped from comparison operands.
641
1a0fcfa9
RG
6422011-08-15 Richard Guenther <rguenther@suse.de>
643
644 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
645 (extract_range_from_unary_expr_1): Restructure.
646
4f9dbaaa
RG
6472011-08-15 Richard Guenther <rguenther@suse.de>
648
649 PR tree-optimization/50058
650 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
651 copy matching.
652
3598da80
RR
6532011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
654
655 PR target/50022
656 * config/arm/arm.c (output_move_double): Add 2 parameters
657 to count the number of insns emitted and whether to emit or not.
658 Use the flag to decide when to emit and count number of instructions
659 that will be emitted.
660 Handle case where output_move_double might be called for calculating
661 lengths with an invalid constant.
662 (arm_count_output_move_double_insns): Define.
663 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
664 (output_move_double): Adjust prototype.
665 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
666 output_move_double.
667 ("*movdi_vfp_cortexa8"): Likewise and add attribute
668 for ce_count.
669 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
670 ("*movdf_soft_insn"): Likewise.
671 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
672 ("*cirrus_thumb2_movdi"): Likewise.
673 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
674 ("*cirrus_movdf_hard_insn"): Likewise.
675 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
676 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
677 ("mov<mode>_internal VMMX"): Likewise.
678 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
679
f4ab7b99
UB
6802011-08-14 Uros Bizjak <ubizjak@gmail.com>
681
682 * config/i386/i386.c (ix86_expand_round_sse4): New function.
683 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
684 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
685 for TARGET_ROUND.
686
687 (rint<mode>2): Simplify TARGET_ROUND check.
688 (floor<mode>2): Ditto.
689 (ceil<mode>2): Ditto.
690 (btrunc<mode>2): Ditto.
691
12e502c6
AS
6922011-08-14 Anatoly Sokolov <aesok@post.ru>
693
694 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
695 as mmix_preferred_output_reload_class.
696
f3713778 6972011-08-14 Georg-Johann Lay <avr@gjlay.de>
f4ab7b99 698
f3713778
GJL
699 * PR target/49903
700 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
701 (branch_unspec): New insn.
702 (branch): Beauty farm.
703 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
704 to be IF_THEN_ELSE.
705 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
706 New static functions.
707 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
708 Use CONST_INT_P. Beauty.
709
7b4ef662
RH
7102011-08-12 Richard Henderson <rth@redhat.com>
711
712 PR rtl-opt/49994
713 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
714 * sched-deps.c (init_deps): Clear it.
715 (deps_analyze_insn): Consume it.
716 (sched_analyze_insn): Fill it.
717
10c241af
RR
7182011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
719
198cb166 720 PR target/48328
10c241af
RR
721 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
722 for tbh instructions.
723
198cb166 7242011-08-12 Diego Novillo <dnovillo@google.com>
412288f1
DN
725
726 * data-streamer.h (streamer_write_zero): Rename from output_zero.
f4ab7b99
UB
727 (streamer_write_uhwi): Rename from lto_output_uleb128.
728 (streamer_write_hwi): Rename from output_sleb128.
729 (streamer_write_string): Rename from lto_output_string.
730 (streamer_string_index): Rename from lto_string_index.
731 (streamer_write_string_with_length): Rename from
732 lto_output_string_with_length.
733 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
734 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
735 (streamer_read_string): Rename from lto_input_string.
736 (streamer_read_indexed_string): Rename from input_string_internal.
737 (streamer_read_uhwi): Rename from lto_input_uleb128.
738 (streamer_read_hwi): Rename from lto_input_sleb128.
739 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
740 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
741 (streamer_write_enum): Rename from lto_output_enum.
742 (streamer_read_enum): Rename from lto_input_enum.
743 (streamer_write_record_start): Rename from output_record_start.
744 (streamer_read_record_start): Rename from input_record_start.
745 (streamer_write_bitpack): Rename from lto_output_bitpack.
746 (streamer_read_bitpack): Rename from lto_input_bitpack.
747 (streamer_write_char_stream): Rename from lto_output_1_stream.
748 (streamer_read_uchar): Rename from lto_input_1_unsigned.
749 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
750 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
751 (streamer_read_string_cst): Rename from input_string_cst.
752 (streamer_read_chain): Rename from lto_input_chain.
753 (streamer_alloc_tree): Rename from lto_materialize_tree.
754 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
755 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
756 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
757 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
758 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
759 (streamer_write_chain): Rename from lto_output_chain.
760 (streamer_write_tree_header): Rename from lto_output_tree_header.
761 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
762 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
763 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
764 (streamer_write_builtin): Rename from lto_output_builtin_tree.
765 (streamer_check_handled_ts_structures): Rename from
766 check_handled_ts_structures.
767 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
768 (streamer_tree_cache_insert_at): Rename from
769 lto_streamer_cache_insert_at.
770 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
771 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
772 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
773 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
774 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
775 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
776 (write_identifier): Rename from output_identifier.
777 (write_ts_common_tree_pointers): Rename from
778 lto_output_ts_common_tree_pointers.
779 (write_ts_vector_tree_pointers): Rename from
780 lto_output_ts_vector_tree_pointers.
781 (write_ts_complex_tree_pointers): Rename from
782 lto_output_ts_complex_tree_pointers.
783 (write_ts_decl_minimal_tree_pointers): Rename from
784 lto_output_ts_decl_minimal_tree_pointers.
785 (write_ts_decl_common_tree_pointers): Rename from
786 lto_output_ts_decl_common_tree_pointers.
787 (write_ts_decl_non_common_tree_pointers): Rename from
788 lto_output_ts_decl_non_common_tree_pointers.
789 (write_ts_decl_with_vis_tree_pointers): Rename from
790 lto_output_ts_decl_with_vis_tree_pointers.
791 (write_ts_field_decl_tree_pointers): Rename from
792 lto_output_ts_field_decl_tree_pointers.
793 (write_ts_function_decl_tree_pointers): Rename from
794 lto_output_ts_function_decl_tree_pointers.
795 (write_ts_type_common_tree_pointers): Rename from
796 lto_output_ts_type_common_tree_pointers.
797 (write_ts_type_non_common_tree_pointers): Rename from
798 lto_output_ts_type_non_common_tree_pointers.
799 (write_ts_list_tree_pointers): Rename from
800 lto_output_ts_list_tree_pointers.
801 (write_ts_vec_tree_pointers): Rename from
802 lto_output_ts_vec_tree_pointers.
803 (write_ts_exp_tree_pointers): Rename from
804 lto_output_ts_exp_tree_pointers.
805 (write_ts_block_tree_pointers): Rename from
806 lto_output_ts_block_tree_pointers.
807 (write_ts_binfo_tree_pointers): Rename from
808 lto_output_ts_binfo_tree_pointers.
809 (write_ts_constructor_tree_pointers): Rename from
810 lto_output_ts_constructor_tree_pointers.
811 (write_ts_target_option): Rename from lto_output_ts_target_option.
812 (write_ts_translation_unit_decl_tree_pointers): Rename from
813 lto_output_ts_translation_unit_decl_tree_pointers.
814 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
815 Rename from lto_streamer_cache_add_to_node_array.
816 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
817 (record_common_node): Rename from lto_record_common_node.
412288f1
DN
818
819 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
820 declarations.
821 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
822 function.
823 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
824 unused function.
825 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
826 (ipa-reference.o): Likewise.
827 * lto-section-out.c: Include data-streamer.h.
828 * ipa-reference.c: Include data-streamer.h.
829
9b0f6f5e
NC
8302011-08-12 Nick Clifton <nickc@redhat.com>
831
f4ab7b99 832 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
9b0f6f5e
NC
833 * doc/md.texi (cmpstrn): Note that the comparison stops if both
834 fetched bytes are zero.
835 (cmpstr): Likewise.
836 (cmpmem): Note that the comparison does not stop if both of the
837 fetched bytes are zero.
838
6c32ee74
UB
8392011-08-12 Uros Bizjak <ubizjak@gmail.com>
840
841 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
842 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
843 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
844 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
845 to integer_type_node.
846 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
847 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
848 * builtins.c (expand_builtin_in): Ditto.
849 (mathfn_built_in_1): Ditto.
850 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
851 BUILT_IN_IFLOOR.
852 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
853 BUILT_IN_IROUND.
854 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
855 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
856 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
857
d9fbc86e
RB
8582011-08-12 Richard Guenther <rguenther@suse.de>
859
198cb166 860 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
d9fbc86e
RB
861
8622011-08-12 Romain Geissler <romain.geissler@gmail.com>
f895fc2a
RG
863
864 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
865
20fe71c2
RS
8662011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
867
868 * config/arm/arm.c (get_label_padding): New function.
c789cb77 869 (create_fix_barrier, arm_reorg): Use it.
20fe71c2 870
88b590c5
UB
8712011-08-11 Uros Bizjak <ubizjak@gmail.com>
872
873 PR target/49781
874 * config/i386/i386.md (*lea_5_zext): New.
875 (*lea_6_zext): Ditto.
876 * config/i386/predicates.md (const_32bit_mask): New predicate.
877 (lea_address_operand): Reject AND.
878 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
879 const_32bit_mask immediate.
880 (ix86_print_operand_address): Handle AND.
881 (memory_address_length): Ditto.
882
4309e92c 8832011-08-11 Romain Geissler <romain.geissler@gmail.com>
88b590c5 884 Brian Hackett <bhackett1024@gmail.com>
4309e92c
RG
885
886 * plugin.def: Add event for finish_decl.
887 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
888 * c-decl.c (finish_decl): Invoke callbacks on above event.
889 * doc/plugins.texi: Document above event.
890
25aa059e
RG
8912011-08-11 Richard Guenther <rguenther@suse.de>
892
893 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
894 lookups, make looking through aggregate copies stronger.
895
6bfd73a6
RH
8962011-08-11 Richard Henderson <rth@redhat.com>
897
898 PR bootstrap/50018
899 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
900
022676dc
RG
9012011-08-11 Richard Guenther <rguenther@suse.de>
902
903 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
904 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
905 (vrp_visit_stmt): Likewise.
906
8d2b0410
RG
9072011-08-11 Richard Guenther <rguenther@suse.de>
908
909 PR middle-end/50040
910 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
911 load of the other piece with TREE_NO_WARNING.
912 * tree-flow.h (warn_uninit): Adjust prototype.
913 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
914 the base variable and the expression that is used separately.
915 Properly query all TREE_NO_WARNING flags.
916 (struct walk_data): Remove.
917 (warn_uninitialized_var): Likewise.
918 (warn_uninitialized_vars): Do not walk gimple pieces but simply
919 look at all SSA uses of the statement. Handle unused memory
920 separately.
921 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
922
78926be1
KI
9232011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
924
88b590c5 925 * config/rx/rx.md (movsicc): Allow register to register transfers.
78926be1
KI
926 (*movsicc): Likewise.
927 (*stcc): Restrict this pattern to EQ and NE compares.
928 (*stcc_reg): New pattern. Works for any comparison but only for
929 register transfers.
930
b9393656
DN
9312011-08-11 Diego Novillo <dnovillo@google.com>
932
933 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
934 Call stream_write_tree instead of output_record_start.
935 (lto_output_ts_binfo_tree_pointers): Likewise.
936
937 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
938 Convert it to a macro.
939 (stream_read_tree): Likewise.
940
941 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
942 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
943
944 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
945 and tree_read_bitfields.
946 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
947 (lto_write_tree): Call it.
948 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
949 * streamer-hooks.h (struct streamer_hooks): Remove fields
950 name, is_streamable and alloc_tree. Update all users.
951 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
952 (lto_materialize_tree): ... here.
953 Handle CALL_EXPR codes.
954 Remove call to lto_streamer_cache_append.
88b590c5 955 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
b9393656
DN
956 * tree-streamer.h (tree_read_bitfields): Declare.
957
958 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
959 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
960 * tree-streamer.h (stream_read_tree): New. Replace all calls
961 to lto_input_tree with it.
962 (stream_write_tree): New. Replace all calls to lto_output_tree,
963 lto_output_tree_ref and lto_output_tree_or_ref with it.
964 * lto-streamer-in.c (lto_read_tree): Inline code from
965 lto_streamer_read_tree.
966 (lto_input_tree): Move from tree-streamer-in.c.
967 * lto-streamer-out.c (lto_output_tree_ref): Make static.
968 Remove handling of NULL values for EXPR.
969 Do not handle EXPRs that are not indexable.
970 (lto_write_tree): Move from tree-streamer-out.c.
971 Inline lto_streamer_write_tree.
972 (lto_output_tree): Move from tree-streamer-out.c.
973 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
974 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
975 (lto_preload_common_nodes): Likewise.
976 Remove assertions and adjustments for nodes
977 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
978 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
88b590c5 979 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
b9393656
DN
980 * lto-streamer.h (lto_input_tree): Declare.
981 (lto_output_tree_ref): Remove.
982 * streamer-hooks.h (struct streamer_hooks): Remove fields
983 preload_common_nodes, indexable_with_decls_p,
984 pack_value_fields, unpack_value_fields and output_tree_header.
985 Update all users.
986 * tree-streamer-in.c (lto_materialize_tree): Make extern.
987 (lto_input_tree_pointers): Likewise.
988 (lto_read_tree): Move to lto-streamer-in.c.
989 (lto_input_integer_cst): Make extern.
990 (lto_get_pickled_tree): Likewise.
991 (lto_get_builtin_tree): Likewise.
992 (lto_input_tree): Move to lto-streamer-in.c.
993 * tree-streamer-out.c (pack_value_fields): Make extern.
994 (lto_output_tree_or_ref): Remove. Replace all callers with
995 calls to stream_write_tree.
996 (lto_output_builtin_tree): Make extern.
997 (lto_streamer_write_tree): Inline into lto_write_tree.
998 (lto_output_tree_pointers): Make extern.
999 (lto_output_tree_header): Likewise.
1000 (lto_output_integer_cst): Likewise.
1001 (lto_write_tree): Move to lto-streamer-out.c.
1002 (lto_output_tree): Likewise.
88b590c5 1003 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
b9393656
DN
1004 (preload_common_nodes): Likewise.
1005 (lto_streamer_cache_create): Call it.
1006 * tree-streamer.h: Include streamer-hooks.h.
1007 (stream_write_tree): New.
1008 (stream_read_tree): New.
1009 (lto_input_tree): Remove.
1010 (lto_materialize_tree): Declare.
1011 (lto_input_tree_pointers): Declare.
1012 (lto_get_pickled_tree): Declare.
1013 (lto_get_builtin_tree): Declare.
1014 (lto_input_integer_cst): Declare.
1015 (lto_output_tree_header): Declare.
1016 (pack_value_fields): Declare.
1017 (lto_output_tree_pointers): Declare.
1018 (lto_output_integer_cst): Declare.
1019 (lto_output_builtin_tree): Declare.
1020
ca31ca94
SG
10212011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1022
1023 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
1024 only if producer writes to the register given by regno.
1025
f0898307
SG
10262011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1027 Alexander Monakov <amonakov@ispras.ru>
1028
1029 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
1030 (sched_get_condition_with_rev_uncached): ... this. Factor out
1031 condition caching logic into ...
1032 (sched_get_condition_with_rev): ... this. Reimplement. Do not
1033 attempt to use cache for instructions with zero luid.
1034 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
1035 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
1036
0d9439b0
SG
10372011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1038
1039 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
1040 get_seqno_for_a_jump. Update the caller.
1041 (get_seqno_by_succs): New. Use it ...
1042 (get_seqno_for_a_jump): ... here to find a seqno if looking at
1043 predecessors was not sufficient.
1044 (get_seqno_by_preds): Include head in iteration range, exclude insn.
1045
5c416724
DM
10462011-08-11 Dmitry Melnik <dm@ispras.ru>
1047
1048 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
1049
cf3d5824
SG
10502011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1051
1052 * sel-sched-ir.h (register_unavailable_p): Declare.
1053 * sel-sched-ir.c (register_unavailable_p): New. Use it...
1054 (set_unavailable_target_for_expr): ... here to properly test
1055 availability of a register.
1056 (speculate_expr): Ditto.
1057 * sel-sched.c (substitute_reg_in_expr): Ditto.
1058 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
1059
944499ed
SG
10602011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1061
1062 * sel-sched.c (verify_target_availability): Fix usage of
1063 hard_regno_nregs.
1064
6bf2d156
DM
10652011-08-11 Dmitry Melnik <dm@ispras.ru>
1066
1067 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
1068 recognized by cannot_copy_insn_p hook and volatile instructions.
1069
bf3a40e9
DM
10702011-08-11 Dmitry Melnik <dm@ispras.ru>
1071
1072 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
1073
f9bf5a8e
RS
10742011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
1075
1076 * doc/md.texi (define_bypass): Say that the instruction names can
1077 be filename-style globs.
1078 * Makefile.in (FNMATCH_H): Define.
1079 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
1080 * genattrtab.c: Include fnmatch.h.
1081 (bypass_list): Change field name from "insn" to "pattern".
1082 (gen_bypass_1): Update accordingly.
1083 (process_bypasses): Use fnmatch to check for matches between
1084 insn reservations and define_bypasses.
1085 * genautomata.c: Include fnmatch.h.
1086 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
1087 and out_pattern respectively.
1088 (gen_bypass, insert_bypass): Update accordingly.
1089 (for_each_matching_insn, process_bypass_2, process_bypass_1)
1090 (process_bypass): New functions.
1091 (process_decls): Use process_bypass. Update after field name changes.
1092
7ece3881 10932011-08-11 Georg-Johann Lay <avr@gjlay.de>
78926be1 1094
7ece3881
GJL
1095 PR target/49687
1096 * config/avr/avr.md (smulqi3_highpart): New insn.
1097 (umulqi3_highpart): New insn.
1098 (*subqi3.ashiftrt7): New insn.
1099 (smulhi3_highpart): New expander.
1100 (umulhi3_highpart): Nex expander.
1101 (*smulhi3_highpart_call): New insn.
1102 (*umulhi3_highpart_call): New insn.
1103 (extend_u): New code attribute.
1104 (extend_prefix): Rename code attribute to extend_su.
1105 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
1106 widening QI/HI multiply.
1107
fb2c2b16
IR
11082011-08-11 Ira Rosen <ira.rosen@linaro.org>
1109
1110 PR tree-optimization/50039
1111 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
1112 that DEF_STMT has a stmt_vec_info.
1113
b126811e
RG
11142011-08-10 Richard Guenther <rguenther@suse.de>
1115
1116 * tree.h (can_trust_pointer_alignment): Remove.
1117 * builtins.c (can_trust_pointer_alignment): Remove.
1118
0e3a99ae
AS
11192011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1120
1121 * c-typeck.c (scalar_to_vector): New function. Try scalar to
1122 vector conversion.
1123 (stv_conv): New enum for scalar_to_vector return type.
1124 (build_binary_op): Adjust.
1125 * doc/extend.texi: Description of scalar to vector expansion.
1126
0eb77834
RG
11272011-08-10 Richard Guenther <rguenther@suse.de>
1128
1129 * tree.h (get_pointer_alignment): Remove max-align argument.
1130 (get_object_alignment): Likewise.
1131 * builtins.c (get_object_alignment_1): Adjust.
1132 (get_object_alignment): Remove max-align argument.
1133 (get_pointer_alignment): Likewise.
1134 (expand_builtin_strlen): Adjust.
1135 (expand_builtin_memcpy): Likewise.
1136 (expand_builtin_mempcpy_args): Likewise.
1137 (expand_builtin_strncpy): Likewise.
1138 (expand_builtin_memset_args): Likewise.
1139 (expand_builtin_memcmp): Likewise.
1140 (expand_builtin_strcmp): Likewise.
1141 (expand_builtin_strncmp): Likewise.
1142 (get_builtin_sync_mem): Likewise.
1143 (fold_builtin_memset): Likewise.
1144 (fold_builtin_memory_op): Likewise.
1145 (expand_builtin_memory_chk): Likewise.
1146 * emit-rtl.c (get_mem_align_offset): Likewise.
1147 (set_mem_attributes_minus_bitpos): Likewise.
1148 * expr.c (expand_assignment): Likewise.
1149 (expand_expr_real_1): Likewise.
1150 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
1151 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1152 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
1153 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1154 * value-prof.c (gimple_stringops_transform): Likewise.
1155
1c7836f0
PM
11562011-08-10 Paulo J. Matos <paulo.matos@csr.com>
1157
1158 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
1159 * doc/tm.texi: Regenerate.
1160
4ada410b 11612011-08-10 Georg-Johann Lay <avr@gjlay.de>
88b590c5 1162
4ada410b
GJL
1163 PR target/29560
1164 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
1165 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
1166 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
1167 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
1168 shift target is unused.
1169
d1f4e15f
RG
11702011-08-10 Richard Guenther <rguenther@suse.de>
1171
1172 PR tree-optimization/49937
1173 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
1174 using get_object_alignment_1.
1175
2813f1b1
UB
11762011-08-09 Uros Bizjak <ubizjak@gmail.com>
1177
1178 * config/i386/i386.c (ix86_emit_i387_round): New function.
1179 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
1180 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
1181 Use ix86_emit_i387_round to expand round function for i387 math.
1182 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
1183 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
1184
c6412d86
RO
11852011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1186
1187 * config/sync.c: Move to ../libgcc.
2813f1b1 1188 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
c6412d86
RO
1189 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
1190 Remove.
1191
6e9ee54c
AS
11922011-08-09 Anatoly Sokolov <aesok@post.ru>
1193
1194 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
1195 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
1196 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
1197 Change 'from' and 'to' arguments type to reg_class_t.
1198 (TARGET_REGISTER_MOVE_COST): Define.
1199
394b1520
VM
12002011-08-09 Vladimir Makarov <vmakarov@redhat.com>
1201
1202 PR target/50026
1203 Revert:
1204 PR rtl-optimization/49990
1205 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1206 ignore classes which can not change mode.
1207 (find_costs_and_classes): Ditto.
1208
4001900f
RG
12092011-08-09 Richard Guenther <rguenther@suse.de>
1210
1211 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
1212 information for ranges with only negative values.
1213 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
1214 BIT_AND_EXPR handling to handle ranges with negative values.
1215
6cf9eb27
KY
12162011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
1217
88b590c5
UB
1218 * config/i386/i386.c: Remove traling spaces.
1219 * config/i386/sse.md: Likewise.
1220 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
1221 (*fma_fmsub_<mode>): Likewise.
1222 (*fma_fnmadd_<mode>): Likewise.
1223 (*fma_fnmsub_<mode>): Likewise.
6cf9eb27 1224
d6257cf0
NC
12252011-08-09 Nick Clifton <nickc@redhat.com>
1226
1227 * config/rx/rx.md: Disable extender peepholes at -O3.
1228
3968b050
UB
12292011-08-09 Uros Bizjak <ubizjak@gmail.com>
1230
1231 PR target/49781
1232 * config/i386/i386.md (reload_noff_load): New.
1233 (reload_noff_store): Ditto.
1234 * config/i386/i386.c (ix86_secondary_reload): Use
1235 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
1236 double-word moves from/to non-offsetable addresses instead of
1237 generating XMM temporary.
1238
2292df60
AS
12392011-08-09 Anatoly Sokolov <aesok@post.ru>
1240
1241 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1242
1684ca6b
IR
12432011-08-09 Ira Rosen <ira.rosen@linaro.org>
1244
1245 PR tree-optimization/50014
1246 * tree-vect-loop.c (vectorizable_reduction): Get def type before
1247 calling vect_get_vec_def_for_stmt_copy ().
1248
40118062
VM
12492011-08-08 Vladimir Makarov <vmakarov@redhat.com>
1250
1251 PR rtl-optimization/49990
1252 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1253 ignore classes which can not change mode.
1254 (find_costs_and_classes): Ditto.
1255
8714c21f
RH
12562011-08-08 Richard Henderson <rth@redhat.com>
1257
1258 PR middle-end/49990
1259 * config/i386/i386.c (ix86_expand_prologue): Call
1260 for SEH target gen_prologue_use instead of gen_blockage
1261 at prologue's end.
1262
1ad663a8
MJ
12632011-08-08 Martin Jambor <mjambor@suse.cz>
1264
1265 PR middle-end/49923
1266 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1267 memory alignment.
1268
f0efc7aa
DN
12692011-08-08 Diego Novillo <dnovillo@google.com>
1270
1271 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
1272 (DATA_STREAMER_H): New.
1273 (GIMPLE_STREAMER_H): New.
1274 (TREE_STREAMER_H): New.
1275 (STREAMER_HOOKS_H): New.
1276 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
1277 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
1278 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
1279 (data-streamer.o): New.
1280 (data-streamer-in.o): New.
1281 (data-streamer-out.o): New.
1282 (gimple-streamer-in.o): New.
1283 (gimple-streamer-out.o): New.
1284 (streamer-hooks.o): New.
1285 (tree-streamer.o): New.
1286 (tree-streamer-in.o): New.
1287 (tree-streamer-out.o): New.
3968b050 1288 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
1289 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
1290 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1291 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
1292 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1293 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3968b050 1294 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
1295 (ipa-inline-analysis.o): Likewise.
1296 (ipa-pure-const.o): Likewise.
1297 * data-streamer-in.c: New.
1298 * data-streamer-out.c: New.
1299 * data-streamer.c: New.
1300 * data-streamer.h: New.
1301 * gimple-streamer-in.c: New.
1302 * gimple-streamer-out.c: New.
1303 * gimple-streamer.h: New.
1304 * ipa-inline-analysis.c: Include data-streamer.h.
1305 * ipa-prop.c: Include data-streamer.h.
1306 * ipa-pure-const.c: Include data-streamer.h.
1307 * lto-cgraph.c: Include data-streamer.h.
1308 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
1309 (lto_input_widest_uint_uleb128): Likewise.
1310 (lto_input_sleb128): Likewise.
1311 (bp_unpack_var_len_unsigned): Likewise.
1312 (bp_unpack_var_len_int): Likewise.
1313 * lto-section-out.c (lto_output_uleb128_stream): Move to
1314 data-streamer-out.c.
1315 (lto_output_widest_uint_uleb128_stream): Likewise.
1316 (lto_output_sleb128_stream): Likewise.
1317 (bp_pack_var_len_unsigned): Likewise.
1318 (bp_pack_var_len_int): Likewise.
3968b050 1319 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
f0efc7aa
DN
1320 (struct string_slot): Remove. Update all users.
1321 (lto_tag_check_set): Make extern.
1322 (lto_tag_check_range): Move to lto-streamer.h.
1323 (lto_tag_check): Likewise.
1324 (hash_string_slot_node): Remove. Update all users.
1325 (eq_string_slot_node): Remove. Update all users.
1326 (string_for_index): Move to data-streamer-in.c
1327 (input_string_internal): Likewise.
1328 (input_string_cst): Move to tree-streamer-in.c.
1329 (input_identifier): Likewise.
1330 (lto_input_string): Move to data-streamer-in.c
1331 (input_record_start): Move to data-streamer.h
1332 (canon_file_name): Use new definition of struct string_slot
3968b050 1333 from data-streamer.h. Set S_SLOT.LEN.
f0efc7aa
DN
1334 (lto_input_location): Make extern.
1335 (lto_input_chain): Move to tree-streamer-in.c.
1336 (lto_init_eh): Make extern.
1337 (input_phi): Move to gimple-streamer-in.c.
1338 (input_gimple_stmt): Likewise.
1339 (input_bb): Likewise.
1340 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
1341 (unpack_ts_real_cst_value_fields): Likewise.
1342 (unpack_ts_fixed_cst_value_fields): Likewise.
1343 (unpack_ts_decl_common_value_fields): Likewise.
1344 (unpack_ts_decl_wrtl_value_fields): Likewise.
1345 (unpack_ts_decl_with_vis_value_fields): Likewise.
1346 (unpack_ts_function_decl_value_fields): Likewise.
1347 (unpack_ts_type_common_value_fields): Likewise.
1348 (unpack_ts_block_value_fields): Likewise.
1349 (unpack_ts_translation_unit_decl_value_fields): Likewise.
1350 (unpack_value_fields): Likewise.
1351 (lto_materialize_tree): Likewise.
1352 (lto_input_ts_common_tree_pointers): Likewise.
1353 (lto_input_ts_vector_tree_pointers): Likewise.
1354 (lto_input_ts_complex_tree_pointers): Likewise.
1355 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
1356 (lto_input_ts_decl_common_tree_pointers): Likewise.
1357 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
1358 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
1359 (lto_input_ts_field_decl_tree_pointers): Likewise.
1360 (lto_input_ts_function_decl_tree_pointers): Likewise.
1361 (lto_input_ts_type_common_tree_pointers): Likewise.
1362 (lto_input_ts_type_non_common_tree_pointers): Likewise.
1363 (lto_input_ts_list_tree_pointers): Likewise.
1364 (lto_input_ts_vec_tree_pointers): Likewise.
1365 (lto_input_ts_exp_tree_pointers): Likewise.
1366 (lto_input_ts_block_tree_pointers): Likewise.
1367 (lto_input_ts_binfo_tree_pointers): Likewise.
1368 (lto_input_ts_constructor_tree_pointers): Likewise.
1369 (lto_input_ts_target_option): Likewise.
1370 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
1371 (lto_input_tree_pointers): Likewise.
1372 (lto_get_pickled_tree): Likewise.
1373 (lto_get_builtin_tree): Likewise.
1374 (lto_read_tree): Likewise.
1375 (lto_input_integer_cst): Likewise.
1376 (lto_input_tree): Likewise.
1377 * lto-streamer-out.c: Include data-streamer.h,
1378 gimple-streamer.h and streamer-hooks.h.
1379 (struct string_slot): Move to data-streamer.h.
1380 (hash_string_slot_node): Likewise.
1381 (eq_string_slot_node): Likewise.
1382 (lto_string_index): Move to data-streamer-out.c.
1383 (lto_output_string_with_length): Likewise.
1384 (lto_output_string): Likewise.
1385 (output_string_cst): Move to tree-streamer-out.c.
1386 (output_identifier): Likewise.
1387 (output_zero): Move to data-streamer-out.c
1388 (output_uleb128): Likewise.
1389 (output_sleb128): Likewise.
1390 (output_record_start): Move to data-streamer.h
1391 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
1392 (pack_ts_real_cst_value_fields): Likewise.
1393 (pack_ts_fixed_cst_value_fields): Likewise.
1394 (pack_ts_decl_common_value_fields): Likewise.
1395 (pack_ts_decl_wrtl_value_fields): Likewise.
1396 (pack_ts_decl_with_vis_value_fields): Likewise.
1397 (pack_ts_function_decl_value_fields): Likewise.
1398 (pack_ts_type_common_value_fields): Likewise.
1399 (pack_ts_block_value_fields): Likewise.
1400 (pack_ts_translation_unit_decl_value_fields): Likewise.
1401 (pack_value_fields): Likewise.
1402 (lto_output_chain): Likewise.
1403 (lto_output_ts_common_tree_pointers): Likewise.
1404 (lto_output_ts_vector_tree_pointers): Likewise.
1405 (lto_output_ts_complex_tree_pointers): Likewise.
1406 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
1407 (lto_output_ts_decl_common_tree_pointers): Likewise.
1408 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
1409 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
1410 (lto_output_ts_field_decl_tree_pointers): Likewise.
1411 (lto_output_ts_function_decl_tree_pointers): Likewise.
1412 (lto_output_ts_type_common_tree_pointers): Likewise.
1413 (lto_output_ts_type_non_common_tree_pointers): Likewise.
1414 (lto_output_ts_list_tree_pointers): Likewise.
1415 (lto_output_ts_vec_tree_pointers): Likewise.
1416 (lto_output_ts_exp_tree_pointers): Likewise.
1417 (lto_output_ts_block_tree_pointers): Likewise.
1418 (lto_output_ts_binfo_tree_pointers): Likewise.
1419 (lto_output_ts_constructor_tree_pointers): Likewise.
1420 (lto_output_ts_target_option): Likewise.
1421 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
1422 (lto_output_tree_pointers): Likewise.
1423 (lto_output_tree_header): Likewise.
1424 (lto_output_builtin_tree): Likewise.
1425 (lto_write_tree): Likewise.
1426 (lto_output_integer_cst): Likewise.
1427 (lto_output_tree): Likewise.
1428 (output_phi): Move to gimple-streamer-out.c.
1429 (output_gimple_stmt): Likewise.
1430 (output_bb): Likewise.
1431 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
1432 (streamer_hooks): Move to streamer-hooks.c.
1433 (check_handled_ts_structures): Move to tree-streamer.c
1434 (lto_streamer_cache_add_to_node_array): Likewise.
1435 (lto_streamer_cache_insert_1): Likewise.
1436 (lto_streamer_cache_insert): Likewise.
1437 (lto_streamer_cache_insert_at): Likewise.
1438 (lto_streamer_cache_append): Likewise.
1439 (lto_streamer_cache_lookup): Likewise.
1440 (lto_streamer_cache_get): Likewise.
1441 (lto_record_common_node): Likewise.
1442 (lto_preload_common_nodes): Likewise.
1443 (lto_streamer_cache_create): Likewise.
1444 (lto_streamer_cache_delete): Likewise.
1445 (streamer_hooks_init): Move to streamer-hooks.c.
1446 * lto-streamer.h: Include diagnostic.h
1447 (struct output_block, struct lto_input_block,
3968b050 1448 struct data_in, struct bitpack_d): Remove forward declarations.
f0efc7aa
DN
1449 (struct bitpack_d): Move to data-streamer.h.
1450 (struct lto_streamer_cache_d): Move to tree-streamer.h.
1451 (struct streamer_hooks): Move to streamer-hooks.h.
1452 (bp_pack_var_len_unsigned): Move to data-streamer.h.
1453 (bp_pack_var_len_int): Likewise.
1454 (bp_unpack_var_len_unsigned): Likewise.
1455 (bp_unpack_var_len_int): Likewise.
1456 (lto_input_location): Declare.
1457 (lto_tag_check_set): Declare.
1458 (lto_init_eh): Declare.
1459 (lto_output_tree_ref): Declare.
1460 (lto_output_location): Declare.
1461 (bitpack_create): Move to data-streamer.h.
1462 (bp_pack_value): Likewise.
1463 (lto_output_bitpack): Likewise.
1464 (lto_input_bitpack): Likewise.
1465 (bp_unpack_value): Likewise.
1466 (lto_output_1_stream): Likewise.
1467 (lto_input_1_unsigned): Likewise.
1468 (lto_output_int_in_range): Likewise.
1469 (lto_input_int_in_range): Likewise.
1470 (bp_pack_int_in_range): Likewise.
1471 (bp_unpack_int_in_range): Likewise.
1472 (lto_output_enum): Likewise.
1473 (lto_input_enum): Likewise.
1474 (bp_pack_enum): Likewise.
1475 (bp_unpack_enum): Likewise.
1476 * streamer-hooks.c: New.
1477 * streamer-hooks.h: New.
1478 * tree-streamer-in.c: New.
1479 * tree-streamer-out.c: New.
1480 * tree-streamer.c: New.
1481 * tree-streamer.h: New.
1482
ddaad3c8
RO
14832011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1484
1485 * gthr-posix95.h: Remove.
1486 * gthr.h [_PTHREADS95]: Remove.
1487 * configure.ac (enable_threads): Remove posix95.
1488 * configure: Regenerate.
3968b050 1489 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
ddaad3c8 1490
3968b050 14912011-08-08 Uros Bizjak <ubizjak@gmail.com>
473b30ce
UB
1492
1493 PR target/49781
1494 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
1495 SImode addresses.
1496 (ix86_print_operand_address): Handle zero-extended addresses.
1497 (memory_address_length): Add length of addr32 prefix for
1498 zero-extended addresses.
1499 (ix86_secondary_reload): Handle moves to/from double-word general
1500 registers from/to zero-extended addresses.
1501 * config/i386/predicates.md (lea_address_operand): Reject
1502 zero-extended operands.
1503
cca2207a
L
15042011-08-08 H.J. Lu <hongjiu.lu@intel.com>
1505
1506 PR other/48007
473b30ce 1507 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
cca2207a
L
1508
1509 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
1510 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
1511
1512 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
1513 (_Unwind_Context_Reg_Val): Likewise.
1514 (_Unwind_Get_Unwind_Word): Likewise.
1515 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
1516 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
1517 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
1518 for EXTENDED_CONTEXT_BIT.
1519 (__frame_state_for): Likewise.
1520 (uw_init_context_1): Likewise.
1521 (_Unwind_GetGR): Updated.
1522 (_Unwind_SetGR): Likewise.
1523 (_Unwind_GetGRPtr): Likewise.
1524 (_Unwind_SetGRPtr): Likewise.
1525 (_Unwind_SetGRValue): Likewise.
1526 (_Unwind_GRByValue): Likewise.
1527 (uw_install_context_1): Likewise.
1528
1529 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
1530 ASSUME_EXTENDED_UNWIND_CONTEXT.
1531 * doc/tm.texi: Regenerated.
1532
b6ee5bef
RO
15332011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1534
1535 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
1536
46135ba7
RO
15372011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1538
1539 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
1540 Linux/GNU-specific.
1541 (DEC Alpha Options, -mtune): Likewise.
1542 (MIPS Options, -march): native is supported on IRIX.
1543
e3b3fa45
RO
15442011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1545
1546 * config/sparc/driver-sparc.c: New file.
1547 * config/sparc/x-sparc: New file.
473b30ce
UB
1548 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
1549 * config/sparc/sparc.opt (native): New value for enum processor_type.
e3b3fa45
RO
1550 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
1551 * config/sparc/sparc.c (sparc_option_override): Abort if
1552 PROCESSOR_NATIVE gets here.
1553 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
1554 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
1555 DRIVER_SELF_SPECS): Define.
1556 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
1557 (SPARC Options, -mtune): Likewise.
1558 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
1559 Substitute result.
1560 * configure: Regenerate.
1561 * Makefile.in (EXTRA_GCC_LIBS): Set.
1562 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
1563 (cpp$(exeext)): Likewise.
1564
ce6bfa50
RG
15652011-08-08 Richard Guenther <rguenther@suse.de>
1566
1567 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
1568 split out from ...
1569 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
1570 by composition.
1571
daae4650
MP
15722011-08-08 Mikael Pettersson <mikpe@it.uu.se>
1573
1574 PR tree-optimization/50005
1575 * ipa-inline-analysis (remap_predicate): Add cast to
1576 silence signed/unsigned comparison warning.
1577
3e762578
RS
15782011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
1579
1580 * modulo-sched.c (get_sched_window): Use a table for the debug output.
1581 Print the current ii.
1582 (sms_schedule_by_order): Reduce whitespace in dump line.
1583
fe43febc
RS
15842011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
1585
1586 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
1587 and one loop for successors. Fix upper bound of memory range.
1588
1e46eb2a
UB
15892011-08-06 Uros Bizjak <ubizjak@gmail.com>
1590
1591 PR target/50001
1592 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
1593 (TARGET_INSTANTIATE_DECLS): New define.
1594
cc3801b0 15952011-08-06 Paolo Bonzini <bonzini@gnu.org>
473b30ce 1596 Mikael Morin <mikael.morin@sfr.fr>
cc3801b0
PB
1597
1598 * Makefile.in (INCLUDES_FOR_TARGET): New.
1599 (LIBGCC2_CFLAGS): Use it.
1e46eb2a 1600 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
cc3801b0 1601
f68c9aa8
UB
16022011-08-06 Uros Bizjak <ubizjak@gmail.com>
1603
1604 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
1605 frame->save_regs_using_mov calculation.
1606
cd7c6bc5
UB
16072011-08-06 Uros Bizjak <ubizjak@gmail.com>
1608
1609 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
1610 * config/i386/sse.md (castmode): New mode attribute.
1611 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
1612 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
1613
9911e25a
JH
16142011-08-05 Jan Hubicka <jh@suse.cz>
1615
1616 PR middle-end/49494
1617 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
1618
75d3e6e3
JH
16192011-08-05 Jan Hubicka <jh@suse.cz>
1620
1621 PR middle-end/49500
1622 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
1623 handle aliases.
1624 (create_emultls_var):New function.
1625 (ipa_lower_emutls): Handle aliases correctly.
1626
f791d333
JH
16272011-08-05 Jan Hubicka <jh@suse.cz>
1628
1629 PR middle-end/49735
1630 * ipa-inline.c (recursive_inlining): Look through aliases.
1631
f93b21e2
JM
16322011-08-05 Jason Merrill <jason@redhat.com>
1633
1634 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
1635 declarations to beginning of function.
1636
2c331232
BS
16372011-08-05 Bernd Schmidt <bernds@codesourcery.com>
1638
1639 PR rtl-optimization/49900
1640 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
1641 ensure basic blocks stay in the same order.
1642
44e95206
AH
16432011-08-05 Aldy Hernandez <aldyh@redhat.com>
1644
1645 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
1646 store_bit_field.
1647 (s390_expand_atomic): Same.
1648
6fe818aa
RH
16492011-08-05 Richard Henderson <rth@redhat.com>
1650
1651 PR rtl-opt/49977
1652 * dwarf2cfi.c (scan_insn_after): Split out of ...
1653 (scan_trace): ... here. Correctly place notes wrt sequences.
1654
7ac17442
KK
16552011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
1656 Richard Henderson <rth@redhat.com>
1657
1658 PR rtl-opt/49982
1659 * expr.c (fixup_args_size_notes): Look through no-op moves.
1660
24911a50
UB
16612011-08-05 Uros Bizjak <ubizjak@gmail.com>
1662
1663 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
1664 of "m" for operand 0. Add type and mode attribute.
1665 (*pushxf_nointeger"): Use "<" constraint for operand 0.
1666 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
1667 constraint instead of "o" for opreand 1.
1668 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
42443bdb
UB
1669 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
1670 operand 0, alternative 4.
1671 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
24911a50
UB
1672
16732011-08-05 Uros Bizjak <ubizjak@gmail.com>
1674
1675 * config/i386/predicates.md (lea_address_operand): Rename from
1676 no_seg_address_operand.
1677 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
1678 (*lea_1_zext): Ditto.
1679 (*lea_2): Ditto.
1680 (*lea_2_zext): Ditto.
1681
16822011-08-05 Uros Bizjak <ubizjak@gmail.com>
1683
1684 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
1685 parts.base and parts.index.
1686 * config/i386/predicates.md (aligned_operand): Ditto.
1687 (cmpxchg8b_pic_memory_operand): Ditto.
1688
aca0b0b3
RO
16892011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1690
1691 * config/soft-fp: Move to ../libgcc.
1692 * Makefile.in (SFP_MACHINE): Remove.
1693 (libgcc-support): Remove $(SFP_MACHINE) dependency.
1694 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
1695 * config/arm/t-arm-softfp: Move to
1696 ../libgcc/config/arm/t-softfp.
1697 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
1698 * config/c6x/t-c6x-softfp: Remove.
1699 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
1700 * config/i386/t-fprules-softfp: Move to
1701 ../libgcc/config/t-softfp-tf.
1702 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
1703 * config/ia64/t-fprules-softfp: Remove.
1704 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
1705 * config/lm32/t-fprules-softfp: Remove.
1706 * config/moxie/sfp-machine.h: Remove.
1707 * config/moxie/t-moxie-softfp: Remove.
1708 * config/rs6000/darwin-ldouble-format: Move to
1709 ../libgcc/config/rs6000/ibm-ldouble-format.
1710 * config/rs6000/darwin-ldouble.c: Move to
1711 ../libgcc/config/rs6000/ibm-ldouble.c
1712 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
1713 * config/rs6000/libgcc-ppc64.ver: Likewise.
1714 * config/rs6000/sfp-machine.h: Likewise.
1715 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
1716 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
1717 (LIB2FUNCS_EXTRA): Remove.
1718 (TARGET_LIBGCC2_CFLAGS): Remove.
1719 * config/rs6000/t-aix52: Likewise
1720 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1721 $(srcdir)/config/rs6000/darwin-ldouble.c.
1722 (SHLIB_MAPFILES): Remove.
1723 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
1724 $(srcdir)/config/rs6000/darwin-ldouble.c.
1725 * config/rs6000/t-fprules-softfp: Move to
1726 ../libgcc/config/t-softfp-sfdf.
1727 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
1728 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
1729 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
1730 $(srcdir)/config/rs6000/darwin-ldouble.c.
1731 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
1732 * config/score/t-score-softfp: Remove.
1733 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
1734 soft-fp/t-softfp from tmake_file.
1735 (arm*-*-uclinux*): Likewise.
1736 (arm*-*-ecos-elf): Likewise.
1737 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
1738 (arm*-*-rtems*): Likewise.
1739 (arm*-*-elf): Likewise.
1740 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
1741 tmake_file.
1742 (moxie-*-uclinux*): Likewise.
1743 (moxie-*-rtems*): Likewise.
1744 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
1745 tmake_file.
1746 (lm32-*-rtems*): Likewise.
1747 (lm32-*-uclinux*): Likewise.
1748 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
1749 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1750 (powerpc-*-linux*, powerpc64-*-linux*): Remove
1751 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1752 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
1753 tmake_file.
1754 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
1755 tmake_file.
1756 (tic6x-*-uclinux): Likewise.
1757 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
1758 soft-fp/t-softfp from tmake_file.
1759 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
1760 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
1761 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
24911a50 1762 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
aca0b0b3
RO
1763 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
1764
569dc494
RO
17652011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1766
1767 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
24911a50 1768 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
569dc494
RO
1769 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
1770 TPBIT, TPBIT_FUNCS.
1771 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
1772 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
1773 Remove.
1774 * config/arm/t-vxworks: Likewise.
1775 * config/arm/t-wince-pe: Likewise.
1776 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
1777 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1778 * config/bfin/t-bfin-elf: Likewise.
1779 * config/bfin/t-bfin-linux: Likewise.
1780 * config/bfin/t-bfin-uclinux: Likewise.
1781 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
1782 Remove.
1783 * config/fr30/t-fr30: Likewise.
1784 * config/frv/t-frv: Likewise.
1785 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
1786 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1787 * config/m32c/t-m32c: Likewise.
1788 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
1789 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1790 * config/mcore/t-mcore: Likewise.
1791 * config/mep/t-mep: Likewise.
1792 * config/microblaze/t-microblaze: Likewise.
1793 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
1794 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1795 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
1796 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1797 * config/mn10300/t-linux: Remove.
1798 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1799 * config/pdp11/t-pdp11: Likewise.
1800 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
1801 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
1802 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1803 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
1804 * config/rs6000/t-aix52: Likewise.
1805 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1806 $(srcdir)/config/rs6000/ppc64-fp.c.
1807 * config/rs6000/t-fprules-fpbit: Remove.
1808 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
1809 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1810 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
1811 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1812 * config/sparc/t-elf: Likewise.
1813 * config/sparc/t-leon: Likewise.
1814 * config/sparc/t-leon3: Likewise.
1815 * config/spu/t-spu-elf: Likewise.
1816 (DPBIT_FUNCS): Remove.
1817 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1818 * config/v850/t-v850: Likewise.
1819 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
1820 (avr-*-*): Likewise.
1821 (h8300-*-rtems*): Set libgcc_tm_file.
1822 (h8300-*-elf*): Likewise.
1823 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
1824 tmake_file.
1825 (powerpc-*-eabisim*): Likewise.
1826 (powerpc-*-elf*): Likewise.
1827 (powerpc-*-eabialtivec*): Likewise.
1828 (powerpc-xilinx-eabi*): Likewise.
1829 (powerpc-*-eabi*): Likewise.
1830 (powerpc-*-rtems*): Likewise.
1831 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
1832 (powerpcle-*-elf*): Likewise.
1833 (powerpcle-*-eabisim*): Likewise.
1834 (powerpcle-*-eabi*): Likewise.
1835 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
1836 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
1837 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
1838 Remove.
1839
201cdb74
RO
18402011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1841
1842 * Makefile.in (UNWIND_H): Remove.
1843 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
1844 ../libgcc/Makefile.in.
1845 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
1846 (LIBUNWINDDEP): Remove.
1847 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
1848 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
1849 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
1850 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
1851 Don't copy $(UNWIND_H).
24911a50 1852 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
201cdb74
RO
1853 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
1854 * aclocal.m4: Regenerate.
1855 * configure: Regenerate.
1856 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
1857 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
1858 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
1859 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
1860 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
1861 * config/arm/libunwind.S, config/arm/pr-support.c,
1862 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
1863 ../libgcc/config/arm.
1864 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
1865 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
1866 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
1867 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
1868 ($(T)frvend$(objext)): Likewise.
1869 * config/ia64/t-glibc (LIB2ADDEH): Remove.
1870 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
1871 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
1872 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
1873 ../libgcc/config/ia64.
1874 * config/ia64/t-hpux (LIB2ADDEH): Remove.
1875 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
1876 * config/ia64/t-vms (LIB2ADDEH): Remove.
1877 * config/ia64/vms.h (UNW_IVMS_MODE,
1878 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
1879 * config/picochip/t-picochip (LIB2ADDEH): Remove.
1880 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
1881 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
1882 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
1883 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
1884 $(srcdir)/../libgcc to refer to unwinder sources.
1885 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
1886 * config/t-darwin (LIB2ADDEH): Remove.
1887 * config/t-freebsd (LIB2ADDEH): Remove.
1888 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
1889 * config/t-libunwind-elf: Move to ../libgcc/config.
1890 * config/t-linux (LIB2ADDEH): Remove.
1891 * config/t-sol2 (LIB2ADDEH): Remove.
1892 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
1893 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
1894
cee0d6d2
L
18952011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1896
1897 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1898
1899 * doc/invoke.texi: Document core-avx-i.
1900
96c891b3
RO
19012011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1902
1903 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
1904
2aacf3c3
IR
19052011-08-05 Ira Rosen <ira.rosen@linaro.org>
1906
1907 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
1908 result of multiple results reduction when extracting the final
1909 value using scalar code.
1910
0f36b2da
RG
19112011-08-05 Richard Guenther <rguenther@suse.de>
1912
1913 PR tree-optimization/49984
1914 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
1915
8b201bc5
RG
19162011-08-05 Richard Guenther <rguenther@suse.de>
1917
1918 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
1919 return true for constant integer ranges.
1920 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
1921 BIT_IOR_EXPR handling.
1922
c1ea7f07
KT
19232011-08-04 Kai Tietz <ktietz@redhat.com>
1924
1925 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
1926 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
1927
1107f3ae
IR
19282011-08-04 Ira Rosen <ira.rosen@linaro.org>
1929
1930 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
1931 pattern def statement, and its access macro.
1932 (NUM_PATTERNS): Set to 5.
1933 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1934 pattern def statement.
1935 (vect_transform_loop): Likewise.
1936 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
1937 function vect_recog_over_widening_pattern ().
1938 (vect_operation_fits_smaller_type): New function.
1939 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
1940 Likewise.
1941 (vect_pattern_recog_1): Move the code that marks pattern
1942 statements to vect_mark_pattern_stmts (), and call it. Update
1943 documentation.
1944 * tree-vect-stmts.c (vect_supportable_shift): New function.
1945 (vect_analyze_stmt): Handle pattern def statement.
1946 (new_stmt_vec_info): Initialize pattern def statement.
1947
6394830f
RH
19482011-08-04 Richard Henderson <rth@redhat.com>
1949
1950 PR target/49964
1951 * config/i386/i386.c (ix86_expand_call): Don't create nested
1952 PARALLELs for TARGET_VZEROUPPER.
1953 (ix86_split_call_vzeroupper): Fix extraction of the original call.
1954 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
1955 recognize nested PARALLELs.
1956 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
1957 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
1958 *sibcall_value_pop_vzeroupper): Likewise.
1959
faf7a23d
RH
19602011-08-04 Richard Henderson <rth@redhat.com>
1961
1962 PR middle-end/49968
1963 * calls.c (expand_call): Use fixup_args_size_notes for
1964 emit_stack_restore.
1965 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
1966 in non-standard modes.
1967
84f405a1
JJ
19682011-08-04 Jakub Jelinek <jakub@redhat.com>
1969
1970 * gcc.c (self_spec): New variable.
1971 (static_specs): Add self_spec.
1972 (main): Call do_self_spec on "self_spec" specs after reading
1973 user specs files. Move compare_debug handling right after that.
1974
4d320da4
RG
19752011-08-04 Richard Guenther <rguenther@suse.de>
1976
1977 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
1978 (value_range_nonnegative_p): New function.
1979 (ssa_name_nonnegative_p): Use it.
1980 (value_range_constant_singleton): New function.
1981 (op_with_constant_singleton_value_range): Use it.
1982 (extract_range_from_binary_expr_1): New function, split out from ...
1983 (extract_range_from_binary_expr): ... this. Remove fallback
1984 constant folding done here.
1985
7e29ba60
RG
19862011-08-04 Richard Guenther <rguenther@suse.de>
1987
1988 PR tree-optimization/49806
1989 * tree-vrp.c (op_with_boolean_value_range_p): New function.
1990 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
1991 a new statement for a final conversion to bool.
1992
f142b5bc
RG
19932011-08-04 Romain Geissler <romain.geissler@gmail.com>
1994
1995 * gengtype-state.c: Include "bconfig.h" if
1996 GENERATOR_FILE is defined, "config.h" otherwise.
1997 * gengtype.c: Likewise.
1998 * gengtype-lex.l: Likewise.
1999 * gengtype-parse.c: Likewise.
2000 * Makefile.in (gengtype-lex.o-warn): New variable.
2001 (plugin_resourcesdir): Likewise.
2002 (plugin_bindir): Likewise.
2003 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
2004 (MOSTLYCLEANFILES): Add gengtype$(exeext).
2005 (native): Depend on gengtype$(exeext) is $enable_plugin
2006 is set to "yes".
2007 (gtype.state): Depend on s-gtype. Use temporary file.
2008 (gengtype-lex.o): New rule.
2009 (gengtype-parse.o): Likewise.
2010 (gengtype-state.o): Likewise.
2011 (gengtype$(exeext)): Likewise.
2012 (install-gengtype): Likewise.
2013 (gengtype.o): Likewise.
2014 (build/gengtype.o): Depend on version.h.
2015 (build/gengtype-state): Depend on double-int.h, version.h,
2016 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
2017 (install-plugin): Depend on install-gengtype.
2018
8dd00781
JJ
20192011-08-04 Jakub Jelinek <jakub@redhat.com>
2020
2021 PR middle-end/49905
2022 * tree.h (init_attributes): New prototype.
2023 * attribs.c (init_attributes): No longer static.
2024
6eb9142a
RR
20252011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2026
2027 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
2028 maybe_suffix.
2029
63a73071
DL
20302011-08-03 David Li <davidxl@google.com>
2031
2032 * tree-optimize.c (execute_fixup_cfg): Fix up entry
2033 outgoing edge counts after inlining.
2034
90037898
DL
20352011-08-03 David Li <davidxl@google.com>
2036
2037 * profile.c (compute_branch_probabilities): Compute
2038 function frequency after profile annotation.
2039
ea6c2b0e
AM
20402011-08-04 Alan Modra <amodra@gmail.com>
2041
2042 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
2043 use_backchain_to_restore_sp initialisation.
2044 (rs6000_legitimate_offset_address_p): Simplify offset test.
2045
4b39813a
RH
20462011-08-03 Richard Henderson <rth@redhat.com>
2047
2048 * config/spu/spu.md: Use define_c_enum instead of define_constants.
2049 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
2050 (UNSPECV_NOP): New.
2051
a6365e99
RH
20522011-08-03 Richard Henderson <rth@redhat.com>
2053
2054 PR target/34888
2055 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
2056
cb3d2e33
JJ
20572011-08-03 Jakub Jelinek <jakub@redhat.com>
2058
2059 PR tree-optimization/49948
2060 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
2061
35bdbc69
AS
20622011-08-03 Anatoly Sokolov <aesok@post.ru>
2063
2064 * config/m32c/m32c.c (class_sizes): Remove.
2065 (reduce_class): Change arguments and return type to reg_class_t.
2066 Change type cc var to HARD_REG_SET. Change type best var to
2067 reg_class_t. Change type best_size var to unsigned int. Remove
2068 initialization class_sizes var. Use reg_class_size array instead
2069 of class_sizes. Use reg_class_contents array instead
2070 of class_contents.
2071
a130fb24
RG
20722011-08-03 Richard Guenther <rguenther@suse.de>
2073
2074 PR middle-end/49958
2075 * fold-const.c (fold_binary_loc): Only associate
2076 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
2077 overflow wraps.
2078
276e0224
AM
20792011-08-03 Alan Modra <amodra@gmail.com>
2080
2081 PR rtl-optimization/49941
2082 * jump.c (mark_jump_label): Comment.
2083 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
2084 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
2085 (mark_used_flags): Don't mark RETURN.
2086
eb723fa3
RG
20872011-08-03 Richard Guenther <rguenther@suse.de>
2088
2089 PR tree-optimization/49938
2090 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
2091 deal with a POLYNOMIAL_CHREC.
2092
edc429ff
RE
20932011-08-03 Revital Eres <revital.eres@linaro.org>
2094
2095 * modulo-sched.c (calculate_stage_count,
2096 calculate_must_precede_follow, get_sched_window,
2097 try_scheduling_node_in_cycle, remove_node_from_ps): Add
2098 declaration.
2099 (update_node_sched_params, set_must_precede_follow, optimize_sc):
2100 New functions.
2101 (reset_sched_times): Call update_node_sched_params.
2102 (sms_schedule): Call optimize_sc.
2103 (get_sched_window): Change function arguments.
2104 (sms_schedule_by_order): Update call to get_sched_window.
2105 Call set_must_precede_follow.
2106 (calculate_stage_count): Add function argument.
2107
9a08d230
RH
21082011-08-02 Richard Henderson <rth@redhat.com>
2109
2110 PR target/49864
a3fef928 2111 PR target/49879
9a08d230
RH
2112 * reg-notes.def (REG_ARGS_SIZE): New.
2113 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
2114 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
2115 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
2116 different stack levels.
2117 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
2118 (maybe_move_args_size_note): New.
2119 (combine_stack_adjustments_for_block): Use it.
2120 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
2121 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
2122 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
2123 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
2124 (cur_cfa): New.
2125 (queued_args_size): Remove.
2126 (add_cfi_args_size): Assert size is non-negative.
2127 (stack_adjust_offset, dwarf2out_args_size): Remove.
2128 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
2129 (notice_args_size, notice_eh_throw): New.
2130 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
2131 (dwarf2out_frame_debug_adjust_cfa): Likewise.
2132 (dwarf2out_frame_debug_cfa_offset): Likewise.
2133 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
2134 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
2135 (change_cfi_row): Don't emit args_size.
2136 (maybe_record_trace_start_abnormal): Split out from ...
2137 (maybe_record_trace_start): Here. Set args_size_undefined.
2138 (create_trace_edges): Update to match.
2139 (scan_trace): Handle REG_ARGS_SIZE.
2140 (connect_traces): Connect args_size between EH insns.
2141 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
2142 * explow.c (suppress_reg_args_size): New.
2143 (adjust_stack_1): Split out from ...
2144 (adjust_stack): ... here.
2145 (anti_adjust_stack): Use it.
2146 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
2147 * expr.c (mem_autoinc_base): New.
2148 (fixup_args_size_notes): New.
2149 (emit_single_push_insn_1): Rename from emit_single_push_insn.
2150 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
2151 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
2152 * reload1.c (reload_as_needed): Likewise.
2153 * rtl.h (fixup_args_size_notes): Declare.
2154
9f813990
PC
21552011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
2156
2157 PR bootstrap/49914
2158 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
2159 of abs.
2160 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2161 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2162
8f1594b2
RH
21632011-08-02 Richard Henderson <rth@redhat.com>
2164
2165 * config/h8300/h8300.c (push, pop): Return the insn.
2166 (h8300_swap_into_er6): Generate correct unwind info.
2167 (h8300_swap_out_of_er6): Likewise.
cde7b553
RH
2168 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
2169 complex cfa expression.
2170 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8f1594b2 2171
3ed2c643
L
21722011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2173
2174 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2175
f9b4f8c1
RH
21762011-08-02 Richard Henderson <rth@redhat.com>
2177
2178 PR target/49878
2179 * config/h8300/h8300.c (h8300_move_ok): New.
2180 * config/h8300/h8300-protos.h: Declare it.
2181 * config/h8300/h8300.md (P): New mode iterator.
2182 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
2183 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
2184 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
2185 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
2186 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
2187 and pushqi1_h8300hs_normal; use PRE_MODIFY and
2188 register_no_sp_elim_operand.
2189 (*pushhi1_h8300hs_<P>): Similarly.
2190 (pushqi1, pushhi1, pushhi1_h8300): Remove.
2191 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
2192
b7cef595
RH
21932011-08-02 Richard Henderson <rth@redhat.com>
2194
2195 PR target/49881
2196 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
2197
20906c66
JJ
21982011-08-02 Jakub Jelinek <jakub@redhat.com>
2199
2200 * c-parser.c (enum c_parser_prec): New enum, moved from within
2201 c_parser_binary_expression.
2202 (c_parser_binary_expression): Add PREC argument. Stop parsing
2203 if operator has lower or equal precedence than PREC.
2204 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
2205 callers.
2206 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
2207 Adjust c_finish_omp_atomic caller.
2208 (c_parser_omp_taskyield): New function.
2209 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
2210 (c_parser_omp_clause_name): Handle final and mergeable clauses.
2211 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
2212 functions.
2213 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
2214 and PRAGMA_OMP_CLAUSE_MERGEABLE.
2215 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
2216 (c_parser_omp_clause_reduction): Handle min and max.
2217 * c-typeck.c (c_finish_omp_clauses): Don't complain about
2218 const qualified predetermined vars in firstprivate clause.
2219 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2220 Handle MIN_EXPR and MAX_EXPR.
2221 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
2222 and OMP_CLAUSE_MERGEABLE.
2223 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
2224 and OMP_ATOMIC_CAPTURE_NEW.
2225 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
2226 OMP_CLAUSE_MERGEABLE.
2227 (omp_clause_code_name): Likewise.
2228 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2229 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
2230 and OMP_CLAUSE_MERGEABLE.
2231 (OMP_CLAUSE_FINAL_EXPR): Define.
2232 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
2233 OMP_CLAUSE_MERGEABLE.
2234 (expand_task_call): Likewise.
2235 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
2236 (expand_omp_atomic_fetch_op): Handle cases where old or new
2237 value is needed afterwards.
2238 (expand_omp_atomic): Call expand_omp_atomic_load resp.
2239 expand_omp_atomic_store.
2240 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
2241 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
2242 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2243 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2244 * tree-nested.c (convert_nonlocal_omp_clauses,
2245 convert_local_omp_clauses): Likewise.
2246 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
2247 OMP_ATOMIC_CAPTURE_NEW): New.
2248 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
2249 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
2250 New inlines.
2251 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
2252 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
2253 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2254
9b80d091
KT
22552011-08-02 Kai Tietz <ktietz@redhat.com>
2256
2257 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
2258 boolean-type.
2259 (ssa_forward_propagate_and_combine): Interprete result of
2260 forward_propagate_comparison.
2261 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
2262 boolean-typed operands for comparisons.
2263
7ea56b23 22642011-08-02 Georg-Johann Lay <avr@gjlay.de>
276e0224 2265
7ea56b23
GJL
2266 * config/avr/libgcc.S: Gather related function in the
2267 same input section.
276e0224 2268 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7ea56b23
GJL
2269 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
2270 references.
2271 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
2272 __udivmodsi4, __divmodsi4, __prologue_saves__,
2273 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
2274 __do_copy_data, __do_clear_bss, __do_global_ctors,
2275 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
2276
643e867f
UB
22772011-08-02 Uros Bizjak <ubizjak@gmail.com>
2278
2279 PR target/47766
2280 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
2281 (stack_protect_test): The pattern compares ptr_mode value.
2282
390fa588
AM
22832011-08-02 Alan Modra <amodra@gmail.com>
2284
2285 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
2286 note for save_LR_around_toc_setup sequence.
2287
d4be16f6
L
22882011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2289
643e867f 2290 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
d4be16f6 2291
3c67fd9c
SP
22922011-08-01 Sebastian Pop <sebastian.pop@amd.com>
2293 Joseph Myers <joseph@codesourcery.com>
2294
2295 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
2296 * hwint.c: Include diagnostic-core.h.
2297 (abs_hwi): New.
2298 (gcd): Moved here...
2299 (pos_mul_hwi): New.
2300 (mul_hwi): New.
2301 (least_common_multiple): Moved here...
2302 * hwint.h (gcd): ... from here.
2303 (least_common_multiple): ... from here.
2304 (HOST_WIDE_INT_MIN): New.
2305 (HOST_WIDE_INT_MAX): New.
2306 (abs_hwi): Declared.
2307 (gcd): Declared.
2308 (pos_mul_hwi): Declared.
2309 (mul_hwi): Declared.
2310 (least_common_multiple): Declared.
2311 * omega.c (check_pos_mul): Removed.
2312 (check_mul): Removed.
2313 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
2314 mul_hwi instead of check_mul.
2315
172c08a5
RH
23162011-08-01 Richard Henderson <rth@redhat.com>
2317
2318 PR target/49881
2319 * config/avr/avr.h (PUSH_ROUNDING): New.
2320 * config/avr/avr.md (pushqi1): Rename from *pushqi.
2321 (*pushhi, *pushsi, *pushsf): Remove.
2322 (MPUSH): New mode iterator.
2323 (push<MPUSH>1): New expander.
2324
0d5e496f
AS
23252011-08-01 Anatoly Sokolov <aesok@post.ru>
2326
2327 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
2328 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2329 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
2330 mmix_preferred_output_reload_class): Remove.
2331 * config/mmix/mmix.c (mmix_preferred_reload_class,
2332 mmix_preferred_output_reload_class): Make static. Change rclass
2333 argument and return type to reg_class_t.
2334 (TARGET_PREFERRED_RELOAD_CLASS,
2335 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2336
a44250f4
JR
23372011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
2338
2339 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
2340 handling.
2341
efd7630c
L
23422011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2343
2344 PR target/47766
2345 * config/i386/i386.md (PTR): New.
2346 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
2347 (stack_protect_test): Likewise.
2348 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
2349 (stack_tls_protect_set_<mode>): Likewise.
2350 (stack_tls_protect_test_<mode>): Likewise.
2351
03acddfe
UB
23522011-08-01 Uros Bizjak <ubizjak@gmail.com>
2353
2354 PR target/49927
2355 * config/i386/i386.c (ix86_address_subreg_operand): New.
2356 (ix86_decompose_address): Use ix86_address_subreg_operand.
2357 (ix86_legitimate_address_p): Do not assert that subregs satisfy
2358 register_no_elim_operand in DImode.
2359
67f2d54f
IR
23602011-08-01 Ira Rosen <ira.rosen@linaro.org>
2361
2362 PR tree-optimization/49926
2363 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
2364 in a chain doesn't have uses both inside and outside the loop.
2365
f2c308fa 23662011-08-01 Georg-Johann Lay <avr@gjlay.de>
03acddfe 2367
f2c308fa
GJL
2368 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
2369 * config/avr/avr-devices.c (avr_mcu_types): Use it.
2370 * config/avr/avr-mcus.def (AVR_MCU): Use it.
2371 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
2372 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
2373 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
2374 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
2375 to detect if XJMP must not be skipped.
2376
bd15e32c
AM
23772011-08-02 Alan Modra <amodra@gmail.com>
2378
03acddfe
UB
2379 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
2380 Delete.
bd15e32c
AM
2381 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
2382 (rs6000_emit_prologue): Don't prematurely return when
2383 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
2384 save_toc_in_prologue case.
2385 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
2386 calls_alloca.
2387
d80de9e1 23882011-08-01 Georg-Johann Lay <avr@gjlay.de>
bd15e32c 2389
d80de9e1
GJL
2390 * config/avr/avr-devices.c: Delete SVN property svn:executable.
2391 * config/avr/predicates.md: Ditto.
2392 * config/avr/driver-avr.c: Ditto.
2393 * config/avr/genopt.sh: Set SVN property svn:executable to *.
2394
ee222ce0
L
23952011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2396
2397 * calls.c (emit_library_call_value_1): Declare size only if
2398 BLOCK_REG_PADDING is defined.
2399
5fcafa60
KY
24002011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
2401
2402 PR target/49547
03acddfe 2403 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
5fcafa60
KY
2404 (x86_64-*-*): Likewise.
2405 * config/i386/i386.opt (mlzcnt): New.
2406 * config/i386/abmintrin.h: File removed.
2407 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
03acddfe 2408 * config/i386/lzcntintrin.h: ... here. New file.
5fcafa60
KY
2409 (__lzcnt): Rename to ...
2410 (__lzcnt32): ... this.
2411 * config/i386/bmiintrin.h (head): Update copyright year.
2412 (__lzcnt_u16): Removed.
2413 (__lzcnt_u32): Likewise.
2414 (__lzcnt_u64): Likewise.
2415 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
2416 is defined, remove abmintrin.h.
2417 * config/i386/cpuid.h (bit_LZCNT): New.
2418 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2419 LZCNT feature.
2420 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2421 __LZCNT__ if needed.
2422 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
2423 (ix86_option_override_internal): Handle LZCNT option.
2424 (ix86_valid_target_attribute_inner_p): Likewise.
2425 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
2426 * config/i386/i386.h (TARGET_LZCNT): New.
2427 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
2428 * config/i386/i386.md (clz<mode>2): Update insn constraint.
2429 (clz<mode>2_lzcnt): Likewise.
2430 * doc/invoke.texi: Mention -mlzcnt option.
2431 * doc/extend.texi: Likewise.
2432
655b30bf
JB
24332011-08-01 Julian Brown <julian@codesourcery.com>
2434
2435 * configure.ac (fixed-point): Add ARM support.
2436 * configure: Regenerate.
2437 * config/arm/arm.c (arm_fixed_mode_set): New struct.
2438 (arm_set_fixed_optab_libfunc): New.
2439 (arm_set_fixed_conv_libfunc): New.
2440 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
2441 ARM-specific names.
2442 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
2443 return values in SImode.
2444 (arm_return_in_msb): Return fixed-point types in the msb.
2445 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
2446 upwards.
2447 (arm_scalar_mode_supported_p): Support fixed-point modes.
2448 (arm_vector_mode_supported_p): Support vector fixed-point modes.
2449 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
2450 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
2451 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
2452 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
2453 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
2454 New mode iterators.
2455 (qaddsub_suf): New mode attribute.
2456 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
2457 vector modes.
2458 * config/arm/predicates.md (sat_shift_operator): New predicate.
2459 * config/arm/arm-fixed.md: New.
2460 * config/arm/arm.md: Include arm-fixed.md.
2461 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
2462
460b171d
JB
24632011-08-01 Julian Brown <julian@codesourcery.com>
2464
2465 * calls.c (emit_library_call_value_1): Support padding for libcall
2466 arguments and return values.
2467 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
2468 downwards in big-endian mode.
2469
b6193c94
RO
24702011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2471
2472 PR debug/49887
2473 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
2474 * config/sol2-protos.h: Likewise.
2475 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
2476 solaris_code_end.
2477 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
2478 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
2479 solaris_file_end.
2480 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
2481
0747aae4
JB
24822011-08-01 Julian Brown <julian@codesourcery.com>
2483
2484 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
2485
848fac28
JB
24862011-08-01 Julian Brown <julian@codesourcery.com>
2487
2488 * final.c (output_addr_const): Print fixed-point constants as
2489 decimal not hex.
2490
e62a2b6e
RG
24912011-08-01 Richard Guenther <rguenther@suse.de>
2492
2493 * stor-layout.c (initialize_sizetypes): Properly sign-extend
2494 bitsiztype TYPE_MAX_VALUE.
2495
f64398b5
JB
24962011-08-01 Julian Brown <julian@codesourcery.com>
2497
2498 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
2499 comparison helpers.
2500
c469244e
RH
25012011-07-31 Richard Henderson <rth@redhat.com>
2502
2503 * config/h8300/crti.asm: Add flags to .section directive.
2504 * config/h8300/crtn.asm: Likewise.
2505
b87ac615
RH
25062011-07-31 Richard Henderson <rth@redhat.com>
2507
2508 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
2509 * tree.c (build_common_tree_nodes): Likewise.
2510
05eb5cc3
KK
25112011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
2512
2513 PR target/49880
2514 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
2515 (divsi3_i1): Likewise.
2516
a3059635
BS
25172011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2518
2519 PR tree-optimization/49749
2520 * tree-ssa-reassoc.c (get_rank): New forward declaration.
2521 (PHI_LOOP_BIAS): New macro.
2522 (phi_rank): New function.
2523 (loop_carried_phi): Likewise.
2524 (propagate_rank): Likewise.
2525 (get_rank): Add calls to phi_rank and propagate_rank.
bd15e32c 2526
3ee7be4c
L
25272011-07-31 H.J. Lu <hongjiu.lu@intel.com>
2528
2529 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
2530 of TARGET_64BIT.
2531 (PTRDIFF_TYPE): Likewise.
2532
deb1f617
UB
25332011-07-31 Uros Bizjak <ubizjak@gmail.com>
2534
2535 PR target/49920
2536 * config/i386/i386.md (strset): Do not expand strset_singleop
2537 when %eax or $edi are fixed.
2538 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
2539 (*strsetsi_1): Ditto.
2540 (*strsethi_1): Ditto.
2541 (*strsetqi_1): Ditto.
2542 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
2543 (*rep_stossi): Ditto.
2544 (*rep_stosqi): Ditto.
03acddfe 2545 (*strlenqi_1): Ditto.
deb1f617
UB
2546 (cmpstrnsi): Also fail when %ecx is fixed.
2547 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
2548 (*cmpstrnqi_1): Ditto.
deb1f617
UB
2549 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
2550 (*strmovsi_1): Ditto.
2551 (*strmovhi_1): Ditto.
2552 (*strmovqi_1): Ditto.
2553 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
2554 (*rep_movsi): Ditto.
2555 (*rep_movqi): Ditto.
2556
03e69b12
MP
25572011-07-31 Mikael Pettersson <mikpe@it.uu.se>
2558
2559 PR target/47908
2560 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
2561 Disable instruction scheduling for non-ColdFire targets.
2562 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2563
dcaac07d
RE
25642011-07-31 Revital Eres <revital.eres@linaro.org>
2565
2566 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
2567 of anti-dep edge from a branch.
2568 (add_cross_iteration_register_deps): Create anti-dep edge from
2569 a branch.
2570
413e50a2
RE
25712011-07-31 Revital Eres <revital.eres@linaro.org>
2572
2573 * modulo-sched.c: Change comment.
2574 (reset_sched_times): Fix print message.
2575 (print_partial_schedule): Add print info.
2576
f047e518
TV
25772011-07-31 Tom de Vries <tom@codesourcery.com>
2578
2579 PR middle-end/43513
2580 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
2581 get_object_alignment and TYPE_ALIGN.
2582
b3421a06
TV
25832011-07-30 Tom de Vries <tom@codesourcery.com>
2584
2585 PR middle-end/43513
2586 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
2587 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
2588
cc822cc1
RO
25892011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2590
2591 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
2592 <sys/sbd.h>.
2593 (cpu_types): New array.
2594 (cputype): New function.
2595 (host_detect_local_cpu): Only define buf, f if !__sgi__.
2596 Use scaninvent instead of /proc/cpuinfo if __sgi__.
2597 * config.host: Also use driver-native.o, mips/x-native on
2598 mips-sgi-irix*.
deb1f617 2599 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
cc822cc1
RO
2600 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
2601 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
2602
25142650
JJ
26032011-07-29 Jakub Jelinek <jakub@redhat.com>
2604
2605 PR middle-end/49897
2606 PR middle-end/49898
2607 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
2608 in nested parallel and outer is a gimple_reg, mark it as addressable
2609 and set its bit in task_shared_vars bitmap too.
2610
89840058
UB
26112011-07-29 Uros Bizjak <ubizjak@gmail.com>
2612
2613 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
2614
d2da41f5
RO
26152011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2616
2617 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
2618 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
2619 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
2620 AMASK_LOCKPFTCHOK): Define.
2621 (host_detect_local_cpu): Remove buf, f, cpu_names.
2622 Define cpu_types, implver, amask.
2623 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
2624 native CPU.
2625 * config.host: Also use driver-alpha.o, alpha/x-alpha on
2626 alpha*-dec-osf*.
2627 * config/alpha/osf5.h [__alpha__ || __alpha]
2628 (host_detect_local_cpu): Declare.
2629 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
2630 (DRIVER_SELF_SPECS): Define.
2631
dadecee2
UB
26322011-07-29 Uros Bizjak <ubizjak@gmail.com>
2633
2634 PR target/47715
2635 * config/i386/i386.md (*load_tp_x32): New.
2636 (*load_tp_x32_zext): Ditto.
2637 (*add_tp_x32): Ditto.
2638 (*add_tp_x32_zext): Ditto.
2639 (*load_tp_<mode>): Disable for TARGET_X32 targets.
2640 (*add_tp_<mode>): Ditto.
2641 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
2642 ptr_mode and convert to Pmode if needed.
2643
db7ccee2 26442011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 2645
db7ccee2
GJL
2646 PR target/49687
2647 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
2648 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
2649 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
2650 Add X to register footprint: Clobber r26/r27.
2651
96d03496
RG
26522011-07-29 Richard Guenther <rguenther@suse.de>
2653
2654 * builtins.c (fold_builtin_signbit): Build the comparison
2655 with a proper type.
2656
64fb0d3a
RG
26572011-07-29 Richard Guenther <rguenther@suse.de>
2658
2659 PR tree-optimization/49893
2660 * tree-predcom.c (suitable_reference_p): Volatile references
2661 are not suitable.
2662
6130646b 26632011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 2664
6130646b
GJL
2665 PR target/49313
2666 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2667 (__ctzsi2): Result for 0 may be undefined.
2668 (__ctzhi2): Result for 0 may be undefined.
2669 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2670 (__popcountsi2): Ditto. And don't clobber r26.
2671 (__popcountdi2): Ditto. And don't clobber r27.
2672 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2673 (parityhi2): New expand.
2674 (paritysi2): New expand.
2675 (popcounthi2): New expand.
2676 (popcountsi2): New expand.
2677 (clzhi2): New expand.
2678 (clzsi2): New expand.
2679 (ctzhi2): New expand.
2680 (ctzsi2): New expand.
2681 (ffshi2): New expand.
2682 (ffssi2): New expand.
2683 (copysignsf3): New insn.
2684 (bswapsi2): New expand.
2685 (*parityhi2.libgcc): New insn.
2686 (*parityqihi2.libgcc): New insn.
2687 (*paritysihi2.libgcc): New insn.
2688 (*popcounthi2.libgcc): New insn.
2689 (*popcountsi2.libgcc): New insn.
2690 (*popcountqi2.libgcc): New insn.
2691 (*popcountqihi2.libgcc): New insn-and-split.
2692 (*clzhi2.libgcc): New insn.
2693 (*clzsihi2.libgcc): New insn.
2694 (*ctzhi2.libgcc): New insn.
2695 (*ctzsihi2.libgcc): New insn.
2696 (*ffshi2.libgcc): New insn.
2697 (*ffssihi2.libgcc): New insn.
2698 (*bswapsi2.libgcc): New insn.
2699
a9b332d4
RG
27002011-07-29 Richard Guenther <rguenther@suse.de>
2701
2702 * tree-vrp.c (get_value_range): Only set parameter default
2703 definitions to varying, leave others at undefined.
2704 (extract_range_from_binary_expr): Fix undefined handling.
2705 (vrp_visit_phi_node): Handle merged undefined state.
2706
154516d9
WG
27072011-07-29 Wei Guozhi <carrot@google.com>
2708
2709 PR rtl-optimization/49799
2710 * combine.c (make_compound_operation): Check if the bit field is valid
2711 before change it to bit field extraction.
2712
e40a0b69
BS
27132011-07-29 Bernd Schmidt <bernds@codesourcery.com>
2714
2715 PR rtl-optimization/49891
2716 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
2717 newly created returnjumps.
2718
13a23442
DD
27192011-07-28 DJ Delorie <dj@redhat.com>
2720
69135c94
DD
2721 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
2722 local frame in a naked function, and produce a suitable error for
2723 that specific case.
2724
13a23442
DD
2725 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
2726 registers to be reloaded in HI classes when the target is HI.
2727
6c6c79a9
SP
27282011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2729
2730 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
2731 bound_one, bound_two.
2732
0c43dbaf
SP
27332011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2734
2735 PR middle-end/48648
2736 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
2737 CLAST assignments.
2738 (translate_clast): Same.
2739 (translate_clast_assignment): New.
2740
60cf26cc
SP
27412011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2742
2743 PR tree-optimization/49876
2744 * sese.c (rename_uses): Do not return false on gloog_error: set
2745 the new_expr to integer_zero_node and continue code generation.
2746 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
2747
4fe249e7
JJ
27482011-07-28 Jakub Jelinek <jakub@redhat.com>
2749
2750 PR debug/49846
2751 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
2752 arguments also check if they aren't initialized with a MODE_INT
2753 mode of the same size.
2754
86f98641
AH
27552011-07-28 Aldy Hernandez <aldyh@redhat.com>
2756
2757 * expr.c (get_bit_range): Handle *MEM_REF's.
2758
dc0ff1c8
BS
27592011-07-28 Bernd Schmidt <bernds@codesourcery.com>
2760
2761 * rtlanal.c (tablejump_p): False for returns.
2762 * reorg.c (first_active_target_insn): New static function.
2763 (find_end_label): Set JUMP_LABEL for a new returnjump.
2764 (optimize_skip, get_jump_flags, rare_destination,
2765 mostly_true_jump, get_branch_condition,
2766 steal_delay_list_from_target, own_thread_p,
2767 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
2768 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
2769 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
2770 * jump.c (delete_related_insns): Likewise.
2771 (jump_to_label_p): New function.
2772 (redirect_target): New static function.
2773 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
2774 (redirect_jump_1): Assert that the new label is nonnull.
2775 (redirect_jump): Likewise.
2776 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
2777 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
2778 exit block.
2779 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
2780 changed. Ensure that the right label is passed to redirect_jump.
2781 * function.c (emit_return_into_block,
2782 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
2783 ret_rtx in their JUMP_LABEL.
2784 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
2785 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
2786 pass ret_rtx as label.
2787 * cfglayout.c (fixup_reorder_chain): Use
2788 force_nonfallthru_and_redirect rather than force_nonfallthru.
2789 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
2790 * rtl.h (ANY_RETURN_P): New macro.
2791 (jump_to_label_p): Declare.
2792 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
2793 JUMP_LABELs.
2794 (mark_target_live_regs): Likewise.
2795 * basic-block.h (force_nonfallthru_and_redirect): Declare.
2796 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
2797 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
2798 alpha_tablejump_best_label): Remove functions.
2799 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
2800 alpha_tablejump_best_label): Remove declarations.
2801 * config/sh/sh.c (barrier_align, split_branches): Adjust for
2802 ret_rtx in JUMP_LABELs.
2803 * config/arm/arm.c (is_jump_table): Likewise.
2804
a2e49bb2
UB
28052011-07-28 Uros Bizjak <ubizjak@gmail.com>
2806
2807 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
2808 special predicate. Remove explicit mode checks.
2809
64153cce
JJ
28102011-07-28 Jakub Jelinek <jakub@redhat.com>
2811
a2e49bb2
UB
2812 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
2813 DW_AT_data_member_location containing just DW_OP_plus_uconst.
b3882148 2814
64153cce
JJ
2815 PR debug/49871
2816 * dwarf2out.c (size_of_die, value_format, output_die): Use
2817 DW_FORM_udata instead of DW_FORM_data[48] for
2818 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
2819
0465f4f8
L
28202011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2821
844bf05b
UB
2822 * config/i386/i386.md (*tls_global_dynamic_64): Update
2823 length attribute.
0465f4f8 2824
f51c4a8a
UB
28252011-07-28 Uros Bizjak <ubizjak@gmail.com>
2826
2827 PR target/47715
2828 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
2829 tls_symbolic_operand check. Update code sequence for TARGET_X32.
2830 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
2831 (tls_dynamic_gnu2_64): Ditto.
2832 (*tls_dynamic_gnu2_lea_64): Ditto.
2833 (*tls_dynamic_gnu2_call_64): Ditto.
2834 (*tls_dynamic_gnu2_combine_64): Ditto.
2835
5e9627ca
L
28362011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2837
2838 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
2839
40b9321d
L
28402011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2841
2842 PR target/47364
2843 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
2844
95f89bb3
RR
28452011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2846
2847 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
2848 before the core constraints. Adjust attributes.
a2e49bb2 2849 ("*thumb2_movdf_vfp"): Likewise.
95f89bb3 2850
98958241
KT
28512011-07-28 Kai Tietz <ktietz@redhat.com>
2852
f51c4a8a 2853 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
98958241
KT
2854 (simplify_truth_ops_using_ranges): Likewise.
2855 (build_assert_expr_for): Likewise.
2856 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
2857 and handle BIT_NOT_EXPR for truth-operation.
2858
f627fef2 28592011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 2860
f627fef2
GJL
2861 PR target/49313
2862 Undo r176835 from trunk
2863 2011-07-27 Georg-Johann Lay
2864
296799ba 28652011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 2866
296799ba
GJL
2867 PR target/49687
2868 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
2869 Add _muluhisi3, _mulshisi3, _usmulhisi3.
2870 * config/avr/libgcc.S (__mulsi3): Rewrite.
2871 (__mulhisi3): Rewrite.
2872 (__umulhisi3): Rewrite.
2873 (__usmulhisi3): New.
2874 (__muluhisi3): New.
2875 (__mulshisi3): New.
2876 (__mulohisi3): New.
2877 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
2878 declare.
2879 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
2880 (pseudo_register_or_const_int_operand): New.
2881 (combine_pseudo_register_operand): New.
2882 (u16_operand): New.
2883 (s16_operand): New.
2884 (o16_operand): New.
2885 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
2886 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
2887 (any_extend, any_extend2): New code iterators.
2888 (extend_prefix): New code attribute.
2889 (mulsi3): Rewrite. Turn insn to expander.
2890 (mulhisi3): Ditto.
2891 (umulhisi3): Ditto.
2892 (usmulhisi3): New expander.
2893 (*mulsi3): New insn-and-split.
2894 (mulu<mode>si3): New insn-and-split.
2895 (muls<mode>si3): New insn-and-split.
2896 (mulohisi3): New insn-and-split.
2897 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
2898 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
2899 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
2900 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
2901 insn-and-split.
2902 (*mulsi3_call): Rewrite.
2903 (*mulhisi3_call): Rewrite.
2904 (*umulhisi3_call): Rewrite.
2905 (*usmulhisi3_call): New insn.
2906 (*muluhisi3_call): New insn.
2907 (*mulshisi3_call): New insn.
2908 (*mulohisi3_call): New insn.
2909 (extendqihi2): Use combine_pseudo_register_operand as predicate
2910 for operand 1.
2911 (extendqisi2): Ditto.
2912 (zero_extendqihi2): Ditto.
2913 (zero_extendqisi2): Ditto.
2914 (zero_extendhisi2): Ditto.
2915 (extendhisi2): Ditto. Don't early-clobber operand 0.
2916
d8fa1b73
UB
29172011-07-28 Uros Bizjak <ubizjak@gmail.com>
2918
2919 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
2920
3689198d
SP
29212011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2922
2923 PR tree-optimization/49471
2924 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
2925 iv only when the largest type is unsigned. Do not call
2926 lang_hooks.types.type_for_size.
2927
27165edd
SP
29282011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2929
2930 PR middle-end/45450
2931 * graphite-poly.c (apply_poly_transforms): Disable legality check
2932 after an openscop read.
2933
bd4a54da
SP
29342011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2935
2936 PR middle-end/47691
2937 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
2938 copy_bb_and_scalar_dependences.
2939 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
2940 (graphite_copy_stmts_from_block): Update call to rename_uses.
2941 (copy_bb_and_scalar_dependences): Update call to
2942 graphite_copy_stmts_from_block.
2943 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
2944
04c9ea12 29452011-07-27 Georg-Johann Lay <avr@gjlay.de>
bd4a54da 2946
04c9ea12
GJL
2947 PR target/49313
2948 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2949 (__ctzsi2): Result for 0 may be undefined.
2950 (__ctzhi2): Result for 0 may be undefined.
2951 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2952 (__popcountsi2): Ditto. And don't clobber r26.
2953 (__popcountdi2): Ditto. And don't clobber r27.
2954 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2955 (parityhi2): New expand.
2956 (paritysi2): New expand.
2957 (popcounthi2): New expand.
2958 (popcountsi2): New expand.
2959 (clzhi2): New expand.
2960 (clzsi2): New expand.
2961 (ctzhi2): New expand.
2962 (ctzsi2): New expand.
2963 (ffshi2): New expand.
2964 (ffssi2): New expand.
2965 (copysignsf3): New insn.
2966 (bswapsi2): New expand.
2967 (*parityhi2.libgcc): New insn.
2968 (*parityqihi2.libgcc): New insn.
2969 (*paritysihi2.libgcc): New insn.
2970 (*popcounthi2.libgcc): New insn.
2971 (*popcountsi2.libgcc): New insn.
2972 (*popcountqi2.libgcc): New insn.
2973 (*popcountqihi2.libgcc): New insn-and-split.
2974 (*clzhi2.libgcc): New insn.
2975 (*clzsihi2.libgcc): New insn.
2976 (*ctzhi2.libgcc): New insn.
2977 (*ctzsihi2.libgcc): New insn.
2978 (*ffshi2.libgcc): New insn.
2979 (*ffssihi2.libgcc): New insn.
2980 (*bswapsi2.libgcc): New insn.
2981
479a4921
UB
29822011-07-27 Uros Bizjak <ubizjak@gmail.com>
2983
2984 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
2985 the mode of symbolic_opreand RTXes.
2986
7aecd4e8
UB
29872011-07-27 Uros Bizjak <ubizjak@gmail.com>
2988
a2e49bb2
UB
2989 * config/i386/predicates.md (x86_64_movabs_operand): Return false
2990 for pic_32bit_operand RTXes.
7aecd4e8
UB
2991 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
2992 in DImode.
2993
eb9820c0
KT
29942011-07-27 Kai Tietz <ktietz@redhat.com>
2995
2fe83a0c
KT
2996 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
2997 for 32-bit, too.
2998 (ix86_handle_abi_attribute): Allow function attributes
2999 ms_abi/sysv_abi in 32-bit mode, too.
3000 * doc/extend.texi: Adjust attribute documentation.
3001
eb9820c0
KT
3002 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
3003 expression handling.
3004 (and_var_with_comparison_1): Likewise.
3005
1169e45d
AH
30062011-07-27 Aldy Hernandez <aldyh@redhat.com>
3007
3008 * params.h (ALLOW_STORE_DATA_RACES): New.
3009 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
3010 * Makefile.in (expr.o): Depend on PARAMS_H.
3011 * machmode.h (get_best_mode): Add argument.
3012 * fold-const.c (optimize_bit_field_compare): Add argument to
3013 get_best_mode.
3014 (fold_truthop): Same.
3015 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
3016 * expr.c (emit_group_store): Same.
3017 (copy_blkmode_from_reg): Same.
3018 (write_complex_part): Same.
3019 (optimize_bitfield_assignment_op): Add argument.
3020 Add argument to get_best_mode.
3021 (get_bit_range): New.
7aecd4e8 3022 (expand_assignment): Calculate maxbits and pass it down accordingly.
1169e45d 3023 (store_field): New argument.
7aecd4e8 3024 (expand_expr_real_2): New argument to store_field. Include params.h.
1169e45d
AH
3025 * expr.h (store_bit_field): New argument.
3026 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
3027 into account maxbits.
3028 * calls.c (store_unaligned_arguments_into_pseudos): New argument
3029 to store_bit_field.
3030 * expmed.c (store_bit_field_1): New argument. Use it.
3031 (store_bit_field): Same.
3032 (store_fixed_bit_field): Same.
3033 (store_split_bit_field): Same.
3034 (extract_bit_field_1): Pass new argument to get_best_mode.
3035 (extract_bit_field): Same.
3036 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
3037 * doc/invoke.texi: Document parameter allow-store-data-races.
3038
7bbdd4e9
JJ
30392011-07-27 Jakub Jelinek <jakub@redhat.com>
3040
7aecd4e8 3041 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7bbdd4e9 3042
aebf4828
KT
30432011-07-27 Kai Tietz <ktietz@redhat.com>
3044
3045 * tree-vrp.c (extract_range_from_binary_expr): Remove
3046 TRUTH-binary cases and add new bitwise-cases.
3047 (extract_range_from_assignment): Likewise.
3048 (register_edge_assert_for_1): Likeiwise.
3049 (register_edge_assert_for): Likewise.
3050 (simplify_truth_ops_using_ranges): Likewise.
3051 (simplify_stmt_using_ranges): Likewise.
3052
65ceed36
L
30532011-07-26 H.J. Lu <hongjiu.lu@intel.com>
3054
3055 PR target/47372
3056 * config/i386/i386.c (ix86_delegitimize_address): Call
3057 simplify_gen_subreg for PIC with mode of x only if modes of
3058 x and orig_x are different.
3059
b56bc05b
JJ
30602011-07-26 Jakub Jelinek <jakub@redhat.com>
3061
3062 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
3063 to GC allocated copy of the string.
3064 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
3065 before .debug_line, not after it.
3066
bce26def
SP
30672011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3068
3069 PR middle-end/47046
3070 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
3071 evolution_function_is_affine_p on CHREC_RIGHT.
3072
5f72e02d
SP
30732011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3074
3075 * tree-data-ref.c (max_stmt_executions_tree): Do not call
3076 lang_hooks.types.type_for_size.
3077
cbc1994b
SP
30782011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3079
3080 PR middle-end/47653
3081 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
3082 loops using wrapping semantics.
3083
4c7d6755
SP
30842011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3085
3086 PR middle-end/48805
3087 * tree-scalar-evolution.c (instantiate_scev_r): Return
3088 chrec_dont_know for ADDR_EXPR.
3089
e207e41f
UB
30902011-07-26 Uros Bizjak <ubizjak@gmail.com>
3091 H.J. Lu <hongjiu.lu@intel.com>
3092
3093 PR target/47369
3094 PR target/49853
3095 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
3096 if legitimize_tls_address returned operand in wrong mode. Allow
3097 SImode and DImode symbolic operand for PIC. Call convert_to_mode
3098 if legitimize_pic_address returned operand in wrong mode.
3099
842eeb9b
MJ
31002011-07-26 Martin Jambor <mjambor@suse.cz>
3101
3102 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
3103 return false for invariants.
3104
98d2c0ad
UB
31052011-07-26 Uros Bizjak <ubizjak@gmail.com>
3106
3107 * config/i386/i386.md (add->lea splitter): Implement using SWI
3108 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
3109 (add->lea zext splitter): Change operand 2 predicate to
3110 x86_64_nonmemory_operand.
3111
c21510a9
RG
31122011-07-26 Richard Guenther <rguenther@suse.de>
3113
3114 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
3115 frequency makes everything hot.
3116
9f61fd17
RG
31172011-07-26 Richard Guenther <rguenther@suse.de>
3118
3119 PR tree-optimization/49840
3120 * tree-vrp.c (range_fits_type_p): Properly handle full
3121 double-int precision.
3122
5bf3d50d
MJ
31232011-07-26 Martin Jambor <mjambor@suse.cz>
3124
3125 PR bootstrap/49786
3126 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
3127 counts.
3128 (update_specialized_profile): Likewise.
3129
536e3f49
UB
31302011-07-26 Uros Bizjak <ubizjak@gmail.com>
3131 H.J. Lu <hongjiu.lu@intel.com>
3132
3133 PR target/47381
3134 PR target/49832
3135 PR target/49833
3136 * config/i386/i386.md (i): Change SImode attribute to "e".
3137 (g): Change SImode attribute to "rme".
3138 (di): Change SImode attribute to "nF".
3139 (general_operand): Change SImode attribute to x86_64_general_operand.
3140 (general_szext_operand): Change SImode attribute to
3141 x86_64_szext_general_operand.
3142 (immediate_operand): Change SImode attribute to
3143 x86_64_immediate_operand.
3144 (nonmemory_operand): Change SImode attribute to
3145 x86_64_nonmemory_operand.
3146 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
3147 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
3148 (*lea_1): Use SWI48 mode iterator.
3149 (*lea_1_zext): New insn pattern.
3150 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
3151 (*bt<mode>): Ditto.
3152 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
3153 Update operand constraints.
3154 (addsi_1_zext): Ditto.
3155 (*add<mode>2): Ditto.
3156 (*addsi_3_zext): Ditto.
3157 (*subsi_1_zext): Ditto.
3158 (*subsi_2_zext): Ditto.
3159 (*subsi_3_zext): Ditto.
3160 (*addsi3_carry_zext): Ditto.
3161 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
3162 (*mulsi3_1_zext): Ditto.
3163 (*andsi_1): Ditto.
3164 (*andsi_1_zext): Ditto.
3165 (*andsi_2_zext): Ditto.
3166 (*<any_or:code>si_1_zext): Ditto.
3167 (*<any_or:code>si_2_zext): Ditto.
3168 (*test<mode>_1): Use <general_operand> predicate for operand 1.
3169 (*and<mode>_2): Ditto.
3170 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
3171 (add->lea splitter): Check operand modes in insn constraint. Extend
3172 operands less than SImode wide to SImode.
3173 (add->lea zext splitter): Do not extend input operands to DImode.
3174 (*lea_general_1): Handle only QImode and HImode operands.
3175 (*lea_general_2): Ditto.
3176 (*lea_general_3): Ditto.
3177 (*lea_general_1_zext): Remove.
3178 (*lea_general_2_zext): Ditto.
3179 (*lea_general_3_zext): Ditto.
3180 (*lea_general_4): Check operand modes in insn constraint. Extend
3181 operands less than SImode wide to SImode.
3182 (ashift->lea splitter): Ditto.
3183 * config/i386/i386.c (ix86_print_operand_address): Print address
3184 registers with 'q' modifier on 64bit targets.
3185 * config/i386/predicates.md (pic_32bit_opreand): Define as special
3186 predicate. Reject non-SI and non-DI modes.
3187
0de204de
AP
31882011-07-25 Andrew Pinski <apinski@cavium.com>
3189
3190 PR tree-opt/49671
3191 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
3192 TREE_THIS_NOTRAP into the inner most MEM_REF.
3193 Always copy TREE_THIS_VOLATILE.
3194 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
3195 arguments are not volatile references.
3196
104fcc7a
RH
31972011-07-25 Richard Henderson <rth@redhat.com>
3198
3199 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
3200 * final.c (final_scan_insn): Don't test for it.
3201 (rest_of_clean_state): Likewise.
3202
c24a6738
RH
32032011-07-25 Richard Henderson <rth@redhat.com>
3204
3205 PR debug/49841
3206 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
3207 (emit_frame_save): Likewise.
3208 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
3209 insn onto a dummy blockage insn after the join label.
3210
200e10dc
RH
32112011-07-25 Richard Henderson <rth@redhat.com>
3212
3213 * dwarf2cfi.c (dw_trace_info): Add ID member.
3214 (get_trace_index): Remove. Change users to use ID member.
3215 (before_next_cfi_note): New.
3216 (connect_traces): Remove unreachable traces before the main loop.
3217 Look across one trace and generate remember/restore_state if needed.
3218
a5d0ce89
RH
32192011-07-25 Richard Henderson <rth@redhat.com>
3220
3221 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
3222
c344a866
JR
32232011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
3224
3225 * genattr.c (write_upcase, gen_attr <enum definition writing>):
3226 Move to ...
3227 * genattr-common.c ... here.
3228 (main): Call gen_attr.
3229 * optc-gen.awk: Make generated program include insn-attr-common.h .
3230 * Makefile.in (oprions.o): Depend on insn-attr-common.h
3231
4645179e
AS
32322011-07-25 Anatoly Sokolov <aesok@post.ru>
3233
3234 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3235 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3236 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
3237 m32c_print_operand, m32c_print_operand_address): Remove.
3238 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
3239 Change return type to bool. Change argument type to bool.
3240 (m32c_print_operand, m32c_print_operand_address): Make static.
3241 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3242 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3243
8175c19c
RO
32442011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3245
3246 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3247 attributes): Document mmap.
3248
5057fa13
AS
32492011-07-25 Anatoly Sokolov <aesok@post.ru>
3250
3251 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3252 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3253 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
3254 mmix_print_operand, mmix_print_operand_address): Remove.
3255 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
3256 Change return type to bool. Change argument type to bool.
3257 (mmix_print_operand, mmix_print_operand_address): Make static.
536e3f49 3258 (mmix_intval, mmix_output_condition): Change 'x' argument type
5057fa13
AS
3259 to const_rtx.
3260 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3261 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3262
f4da258f 32632011-07-25 Georg-Johann Lay <avr@gjlay.de>
536e3f49 3264
f4da258f
GJL
3265 PR target/39386
3266 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
3267 shift counter for x << x and x >> x shifts.
3268
1500b428
RO
32692011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3270
3271 PR target/47124
3272 * config.gcc: Reject *-*-solaris2 configuration.
3273
59daeef4
RS
32742011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
3275
3276 PR tree-optimization/49809
3277 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
3278 gimple_get_lhs instead of gimple_assign_lhs.
3279
4d1c7421
RO
32802011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3281
3282 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
3283
7fdab8d4
RG
32842011-07-25 Richard Guenther <rguenther@suse.de>
3285
3286 PR tree-optimization/49822
3287 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3288 more. Make sure to preserve stmts with side-effects. Properly
3289 handle virtual defs, follow a longer def chain.
3290
1baae426
RG
32912011-07-22 Romain Geissler <romain.geissler@gmail.com>
3292
3293 PR plugins/45348
3294 PR plugins/48425
3295 PR plugins/46577
3296 * Makefile.in: Do not flatten c-family directory when installing
3297 plugin headers.
3298
264b47b0
EB
32992011-07-25 Eric Botcazou <ebotcazou@adacore.com>
3300
3301 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
3302 original nodes if we are dealing with virtual clones.
3303
3d02ae65
BS
33042011-07-25 Bernd Schmidt <bernds@codesourcery.com>
3305
3306 * common/config/c6x/c6x-common.c: New file.
3307
2eaa698b
RZ
33082011-07-25 Roman Zhuykov <zhroma@ispras.ru>
3309
3310 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
3311
ebeadd91
RG
33122011-07-25 Richard Guenther <rguenther@suse.de>
3313
3314 PR tree-optimization/49715
3315 * tree-vrp.c: Include expr.h and optabs.h.
3316 (range_fits_type_): New function.
3317 (simplify_float_conversion_using_ranges): Likewise.
3318 (simplify_stmt_using_ranges): Call it.
3319 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
3320 * optabs.c (can_float_p): Export.
3321 * optabs.h (can_float_p): Declare.
3322
d9256277
RG
33232011-07-25 Richard Guenther <rguenther@suse.de>
3324
3325 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
3326 (get_value_range): For out-of-range SSA names or names created
3327 after propagation return a read-only varying range.
3328 (dump_all_value_ranges): Adjust.
3329 (vrp_initialize): Likewise.
3330 (vrp_finalize): Likewise.
3331
149e741d
RH
33322011-07-24 Richard Henderson <rth@redhat.com>
3333
3334 PR debug/49831
3335 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
3336 them entirely.
3337
981dc735
RH
33382011-07-24 Richard Henderson <rth@redhat.com>
3339
3340 PR debug/49825
3341 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
3342 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
3343
3382318a
RH
33442011-07-24 Richard Henderson <rth@redhat.com>
3345
3346 PR debug/49827
3347 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
3348
2f23f97a
RH
33492011-07-24 Richard Henderson <rth@redhat.com>
3350
3351 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
3352 Zero args_size for abnormal edges. Adjust all callers.
3353
2edb462e
RH
33542011-07-24 Richard Henderson <rth@redhat.com>
3355
3356 PR debug/49825
3357 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
3358
96d5384b
L
33592011-07-24 H.J. Lu <hongjiu.lu@intel.com>
3360
3361 PR bootstrap/49835
3362 * collect2.c (demangle_flag): Removed.
3363
df45fc34
SL
33642011-07-24 Sandra Loosemore <sandra@codesourcery.com>
3365
3366 * configure.ac (demangler_in_ld): Default to yes.
3367 * configure: Regenerated.
3368 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
3369 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
3370 --no-demangle options straight through to ld. When
3371 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
3372 way that has the intended effect on Windows.
3373
829bdd4b
RH
33742011-07-23 Richard Henderson <rth@redhat.com>
3375
3376 * dwarf2cfi.c: Include basic-block.h.
3377 (dw_label_info): Remove.
3378 (trace_work_list, trace_index): New.
3379 (remember_row, emit_cfa_remember): Remove.
3380 (dw_trace_info_hash, dw_trace_info_eq): New.
3381 (get_trace_index, get_trace_info): New.
3382 (save_point_p): New.
3383 (free_cfi_row): Remove.
3384 (add_cfi): Do not emit DW_CFA_remember_state.
3385 (cfa_row_equal_p): New.
3386 (barrier_args_size): Remove.
3387 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
3388 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
3389 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
3390 (dwarf2out_cfi_begin_epilogue): Remove.
3391 (dwarf2out_frame_debug_restore_state): Remove.
3392 (connect_traces, create_pseudo_cfg): New.
3393 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
3394 * Makefile.in (dwarf2cfi.o): Update.
3395
43215a89
RH
33962011-07-23 Richard Henderson <rth@redhat.com>
3397
3398 * dwarf2cfi.c (dw_trace_info): New.
3399 (dw_label_info): New.
3400 (cie_return_save): New.
3401 (cur_trace): New.
3402 (queued_args_size): Rename from args_size. Update all users.
3403 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
3404 (def_cfa_1): Use cur_trace instead of cfa_*.
3405 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
3406 (clobbers_queued_reg_save, reg_saved_in): Likewise.
3407 (dwarf2out_frame_debug_expr): Likewise.
3408 (create_cie_data): Split out from ...
3409 (execute_dwarf2_frame): ... here. Initialize cur_trace.
3410
6ffc63e1
RH
34112011-07-23 Richard Henderson <rth@redhat.com>
3412
3413 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
3414 Update all users to match.
3415 (execute_dwarf2_frame): Free reg_saved_in_data.
3416
999646c1
RH
34172011-07-23 Richard Henderson <rth@redhat.com>
3418
3419 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
3420 (queued_reg_saves): Don't GTY. Change to a VEC.
3421 (queue_reg_save): Update to match.
3422 (dwarf2out_flush_queued_reg_saves): Likewise.
3423 (clobbers_queued_reg_save): Likewise.
3424 (reg_saved_in): Likewise.
3425 (execute_dwarf2_frame): Free queued_reg_saves.
3426
ce363ef2
RH
34272011-07-23 Richard Henderson <rth@redhat.com>
3428
3429 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
3430
57e16c96
RH
34312011-07-23 Richard Henderson <rth@redhat.com>
3432
3433 * dwarf2cfi.c (add_cfi_args_size): Split out from...
3434 (dwarf2out_args_size): ... here.
3435 (add_cfi_restore): Split out from ...
3436 (dwarf2out_frame_debug_cfa_restore): ... here.
3437 (def_cfa_0): Split out from ...
3438 (def_cfa_1): ... here.
3439 (cfi_oprnd_equal_p, cfi_equal_p): New.
3440 (change_cfi_row): New.
3441 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
3442 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
3443 (output_cfis): Remove.
3444 * dwarf2out.c (output_fde): Simplify output_cfi loop.
3445 (dwarf2out_switch_text_section): Don't call output_cfis.
3446 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
3447 * dwarf2out.h: Update decls.
3448 (enum dw_val_class): Add dw_val_class_none.
3449
f1a0e830
RH
34502011-07-23 Richard Henderson <rth@redhat.com>
3451
3452 * dwarf2cfi.c (update_row_reg_save): New.
3453 (dwarf2out_frame_debug_cfa_expression): Use it.
3454 (dwarf2out_frame_debug_cfa_restore): Likewise.
3455 (reg_save): Likewise. Do not emit DW_CFA_same_value.
3456
141618e2
RH
34572011-07-23 Richard Henderson <rth@redhat.com>
3458
3459 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
3460
f17d3401
RH
34612011-07-23 Richard Henderson <rth@redhat.com>
3462
3463 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
3464 (cie_cfi_row): New.
3465 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
3466 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
3467 (cur_row, remember_row): New.
3468 (def_cfa_1): Use cur_row instead of the old_* variables.
3469 (dwarf2out_frame_debug_restore_state): Similarly.
3470 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
3471 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
3472 (dwarf2out_frame_debug_adjust_cfa): Likewise.
3473 (dwarf2out_frame_debug_cfa_offset): Likewise.
3474 (dwarf2out_frame_debug_expr): Likewise.
3475 (execute_dwarf2_frame): Set up cur_row.
3476 * dwarf2out.h (struct cfa_loc): Mark for GTY.
3477
0be7e7a6
RH
34782011-07-23 Richard Henderson <rth@redhat.com>
3479
3480 * basic-block.h (EDGE_PRESERVE): New.
3481 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
3482 * bb-reorder.c: Include except.h.
3483 (fix_up_crossing_landing_pad): New.
536e3f49 3484 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
0be7e7a6
RH
3485 landing pads in the right partition. Duplicate as necessary.
3486 (partition_hot_cold_basic_blocks): Fix up DF info after
3487 duplicating landing pads.
3488 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
3489 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
3490 is set properly. Validate that EH edges are not CROSSING.
3491 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
3492 (dw2_build_landing_pads): ... here.
3493 (convert_to_eh_region_ranges): Remove code to fixup crossing
3494 landing pads.
3495 * except.h (expand_dw2_landing_pad_for_region): Declare.
3496 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
3497
e0170551
RE
34982011-07-23 Richard Earnshaw <rearnsha@arm.com>
3499
3500 PR target/49816
3501 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
3502
15c2ccba
JM
35032011-07-22 Jason Merrill <jason@redhat.com>
3504
3505 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
3506
295331a4
RH
35072011-07-22 Richard Henderson <rth@redhat.com>
3508
3509 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
3510
5f93b30a
RH
35112011-07-22 Richard Henderson <rth@redhat.com>
3512
3513 * jump.c (maybe_propagate_label_ref): Split out of...
3514 (mark_all_labels): ... here. Do not attempt label_ref
3515 propagation while in cfglayout mode.
3516
e967adf4
JJ
35172011-07-22 Jakub Jelinek <jakub@redhat.com>
3518
520cda8c
JJ
3519 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
3520 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
3521 (dwarf_attr_name): Handle DW_AT_GNU_macros.
3522 (dwarf2out_define): If the vector is empty and
3523 lineno is 0, emit a dummy entry first.
3524 (dwarf2out_undef): Likewise. Remove redundant semicolon.
3525 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
3526 optimize_macinfo_range): New functions.
3527 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
3528 mergeable, optimize longer strings using
3529 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
3530 optimize longer sequences of define/undef ops from headers
3531 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
3532 emit a section headers.
3533 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
3534 and macinfo_section_label to DEBUG_MACRO_SECTION
3535 resp. DEBUG_MACRO_SECTION_LABEL.
3536 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
3537 instead of DW_AT_macro_info.
3538
e967adf4
JJ
3539 PR other/32998
3540 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
3541 options.
3542 * dwarf2out.c: Include opts.h.
3543 (dchar_p): New typedef. Define heap VEC for it.
3544 (producer_string): New variable.
3545 (gen_producer_string): New function.
3546 (gen_compile_unit_die): Use it.
536e3f49 3547 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
e967adf4
JJ
3548 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
3549 * doc/invoke.texi: Document -grecord-gcc-switches and
3550 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
3551 to -frecord-gcc-switches description.
3552
3a636414
JM
35532011-07-22 Jason Merrill <jason@redhat.com>
3554
3555 PR c++/30112
3556 * c-decl.c (c_linkage_bindings): Define.
3557
8b9b2275
EB
35582011-07-22 Eric Botcazou <ebotcazou@adacore.com>
3559
3560 PR debug/49815
3561 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
3562
3de69514
L
35632011-07-22 H.J. Lu <hongjiu.lu@intel.com>
3564
3565 * config/i386/i386.c (ix86_option_override_internal): Disallow
3566 MS ABI in x32 mode.
3567 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
3568 only for TARGET_LP64.
536e3f49 3569 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
3de69514 3570
49f6f4f7 35712011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
e56fa6bb
MM
3572
3573 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
3574 avoid warnings when GCC is built with a C++ compiler.
3575
b75d1e21
MJ
35762011-07-22 Martin Jambor <mjambor@suse.cz>
3577
3578 PR lto/49796
3579 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
536e3f49 3580 if decl node is in another partition, call cgraph_get_node only once.
b75d1e21 3581
63708bf5
UB
35822011-07-22 Uros Bizjak <ubizjak@gmail.com>
3583
e3c666fd 3584 * config.gcc (x86_64-*-linux*): Set
63708bf5
UB
3585 default_gnu_indirect_function to yes.
3586
27315aa6
RG
35872011-07-22 Richard Guenther <rguenther@suse.de>
3588
3589 PR tree-optimization/45819
3590 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
3591 preserve volatile and notrap flags.
3592
5b6d595b
RO
35932011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3594 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3595
3596 PR bootstrap/49794
3597 * configure.ac: Test AM_ICONV with CXX.
3598 * configure: Regenerate.
3599 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
3600
7e2fe488
RO
36012011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3602
3603 PR bootstrap/49797
3604 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
3605 (set_cloog_options): Use it.
3606
d423df48
JJ
36072011-07-22 Jakub Jelinek <jakub@redhat.com>
3608
3609 PR c++/49756
3610 * gcc.c (main): Call stack_limit_increase (64MB).
3611 * toplev.c (toplev_main): Likewise.
3612
7fd72c6f
L
36132011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3614
3615 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
3616 instead of force_reg.
3617
96f0b772
L
36182011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3619
3620 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
3621 needed and use force_reg after convert.
3622 (ix86_expand_call): Likewise.
3623 (ix86_expand_special_args_builtin): Likewise.
3624 (ix86_expand_builtin): Likewise.
3625
ef74e2ba
SP
36262011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3627
3628 PR middle-end/47654
3629 PR middle-end/49649
3630 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
3631 in parameter. Initialize v1 and v2 based on the values returned
3632 by clast_name_to_lb_ub.
3633 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
3634 values.
3635 (type_for_clast_bin): Same.
3636 (type_for_clast_expr): Same.
3637 (type_for_clast_eq): Update calls to type_for_clast_expr.
3638 (type_for_clast_for): Same.
3639 (build_iv_mapping): Same.
3640 * graphite-ppl.h (value_min): New.
3641
84f2ffea
SP
36422011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3643
3644 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
3645 types whenever possible.
3646
3d9784cb
SP
36472011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3648
3649 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
3650 and ub fields.
3651 (new_clast_name_index): Add lb and ub parameters.
3652 (free_clast_name_index): New.
3653 (clast_name_to_lb_ub): New.
3654 (save_clast_name_index): Add lb and ub parameters.
3655 (compute_bounds_for_param): New.
3656 (type_for_level): Removed.
3657 (type_for_clast_for): Removed level parameter. Do not call
3658 type_for_level.
3659 (graphite_create_new_loop): Store the lb and ub for the clast_name
3660 of the iterator of the loop that has been generated.
3661 (graphite_create_new_loop_guard): Remove parameter level.
3662 (create_params_index): Store the lb and ub of each parameter.
3663 (gloog): Use free_clast_name_index. Pass to create_params_index
3664 the current scop.
3665
12b30e6d
SP
36662011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3667
3668 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
3669 (max_precision_type): Inline max_signed_precision_type.
3670 (type_for_clast_red): Use max_precision_type.
3671 (type_for_clast_bin): Same.
3672 (type_for_clast_for): Same.
3673
0cdd9dcf
SP
36742011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3675
3676 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
3677 type_for_interval.
3678 (gcc_type_for_value): Renamed type_for_value.
3679 (gcc_type_for_clast_term): Renamed type_for_clast_term.
3680 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
3681 (gcc_type_for_clast_red): Renamed type_for_clast_red.
3682 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
3683 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
3684 (graphite_translate_clast_equation): Update calls.
3685 (compute_type_for_level): Renamed type_for_level.
3686 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
3687 (build_iv_mapping): Update calls.
3688 (graphite_create_new_loop_guard): Same.
3689
8aab43a0
SP
36902011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3691
3692 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
3693 comment.
3694
cf7eab7d
SP
36952011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3696
3697 * graphite-clast-to-gimple.c (struct ivs_params): New.
3698 (clast_name_to_gcc): Use ivs_params to pass around parameters.
3699 (clast_to_gcc_expression): Same.
3700 (clast_to_gcc_expression_red): Same.
3701 (gcc_type_for_clast_term): Same.
3702 (gcc_type_for_clast_expr): Same.
3703 (gcc_type_for_clast_red): Same.
3704 (gcc_type_for_clast_bin): Same.
3705 (gcc_type_for_clast_eq): Same.
3706 (graphite_translate_clast_equation): Same.
3707 (graphite_create_guard_cond_expr): Same.
3708 (graphite_create_new_guard): Same.
3709 (graphite_create_new_loop): Same.
3710 (build_iv_mapping): Same.
3711 (translate_clast_user): Same.
3712 (graphite_create_new_loop_guard): Same.
3713 (translate_clast): Same.
3714 (translate_clast_for_loop): Same.
3715 (translate_clast_for): Same.
3716 (translate_clast_guard): Same.
3717 (initialize_cloog_names): Fix typo.
3718 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
3719
7b1e9596
SP
37202011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3721
3722 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
3723 (new_clast_name_index): Add level parameter.
3724 (clast_name_to_level): New.
3725 (save_clast_name_index): Add level parameter.
3726 (newivs_to_depth_to_newiv): Removed.
3727 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
3728 (graphite_create_new_loop): Add level parameter. Pass level to
3729 save_clast_name_index.
3730 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
3731 (create_params_index): Pass level to save_clast_name_index.
3732
6e6568db
SP
37332011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3734
3735 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
3736 recompute type, lb, and ub. Get them from...
3737 (graphite_create_new_loop_guard): ...here. Pass in parameter
3738 pointers to type, lb, and ub.
3739 (translate_clast_for_loop): Update function calls.
3740 (translate_clast_for): Same.
3741
dff62090
SP
37422011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3743
3744 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
3745 psct_dynamic_dim.
3746 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
3747 (gcc_type_for_iv_of_clast_loop): Update use of level.
3748 (gloog): Start counting nesting level from 0.
3749 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
3750 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
3751 psct_dynamic_dim on level.
3752
628c1ac9
L
37532011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3754
3755 * config/i386/i386.c (ix86_legitimize_address): Convert to
3756 Pmode if needed.
3757
08a8923e
L
37582011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3759
3760 * config/i386/i386.c (function_value_64): Always return pointers
3761 in Pmode.
3762 (ix86_promote_function_mode): New.
3763 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
3764
777a4e9a
BS
37652011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3766
3767 PR tree-optimization/49749
3768 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
3769 remove no-longer-used maxrank variable.
63708bf5 3770
e9514725 37712011-07-21 Georg-Johann Lay <avr@gjlay.de>
63708bf5 3772
e9514725
GJL
3773 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
3774
9ca1483b
JM
37752011-07-21 Jason Merrill <jason@redhat.com>
3776
3777 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
3778 * recog.h (struct insn_data_d): Check it instead of
3779 HAVE_DESIGNATED_INITIALIZERS.
3780 * genoutput.c (output_insn_data): Likewise.
3781
3ceaf2f5
RG
37822011-07-21 Richard Guenther <rguenther@suse.de>
3783
3784 PR tree-optimization/49770
3785 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
3786 valueized any operand. Renamed from ...
3787 (valueize_refs): ... this. New wrapper around valueize_refs_1.
3788 (valueize_shared_reference_ops_from_ref): Return whether we
3789 valueized any operand.
3790 (vn_reference_lookup): Only when we valueized any operand
3791 use the valueized reference for alias analysis. Do not preserve
3792 the original reference tree in this case.
3793
7c53a140
UB
37942011-07-21 Uros Bizjak <ubizjak@gmail.com>
3795
3796 * config/i386/i386.c (ix86_decompose_address): Reject all but
a4235495 3797 register operands and subregs of DImode hard registers in index.
7c53a140 3798
7f3ff782
KT
37992011-07-21 Kai Tietz <ktietz@redhat.com>
3800
3801 * fold-const.c (fold_unary_loc): Preserve indirect
3802 comparison cast to none-boolean type.
3803 * tree-ssa.c (useless_type_conversion_p): Preserve cast
3804 from/to boolean-type.
7c53a140
UB
3805 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
3806 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7f3ff782
KT
3807 * tree-cfg.c (verify_gimple_comparison): Check result
3808 type of comparison expression.
7c53a140
UB
3809 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
3810 of condition result and disallow type-cast sinking into comparison.
7f3ff782 3811
91bc6112
RG
38122011-07-21 Richard Guenther <rguenther@suse.de>
3813
3814 * tree-ssa-forwprop.c (combine_conversions): Return whether
3815 we have to run cfg-cleanup. Properly remove dead stmts.
3816 (ssa_forward_propagate_and_combine): Adjust.
3817
d6f23738
RS
38182011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
3819
3820 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
3821
fec3cad3
KT
38222011-07-21 Kai Tietz <ktietz@redhat.com>
3823
3824 * tree-ssa-propagate.c (substitute_and_fold): Use
3825 do_dce flag to deside, if BB's statements are scanned
3826 in last to first, or first to last order.
3827
21f3ae2f 38282011-07-21 Georg-Johann Lay <avr@gjlay.de>
7c53a140 3829
21f3ae2f
GJL
3830 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
3831
6025b127
L
38322011-07-20 H.J. Lu <hongjiu.lu@intel.com>
3833 Uros Bizjak <ubizjak@gmail.com>
3834 Richard Henderson <rth@redhat.com>
3835
3836 * config/i386/constraints.md (w): New.
3837
3838 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
3839 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
3840
3841 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
3842 instead of TARGET_64BIT.
3843
3844 * config/i386/i386.md (indirect_jump): Replace
3845 nonimmediate_operand with indirect_branch_operand.
3846 (*indirect_jump): Likewise. Replace constraint "m" with "w".
a4235495
UB
3847 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
3848 Convert operand 0 to Pmode for x32 if not PIC.
6025b127
L
3849 (*tablejump_1): Replace nonimmediate_operand with
3850 indirect_branch_operand. Replace constraint "m" with "w".
3851 (*call_vzeroupper): Replace constraint "m" with "w".
3852 (*call): Likewise.
3853 (*call_rex64_ms_sysv_vzeroupper): Likewise.
3854 (*call_rex64_ms_sysv): Likewise.
3855 (*call_value_vzeroupper): Likewise.
3856 (*call_value): Likewise.
3857 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
3858 (*call_value_rex64_ms_sysv): Likewise.
a4235495 3859 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6025b127
L
3860
3861 * config/i386/predicates.md (indirect_branch_operand): New.
3862 (call_insn_operand): Support x32.
3863
7f8925a1
ME
38642011-07-20 Michael Eager <eager@eagercon.com>
3865
3866 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
3867
510a442a
RH
38682011-07-20 Richard Henderson <rth@redhat.com>
3869
3870 * cfg.c (dump_bb_info): Dump basic_block->flags.
3871 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
3872
00b40d0d
UB
38732011-07-20 Uros Bizjak <ubizjak@gmail.com>
3874
3875 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3876 of DImode hard registers in index.
3877 (ix86_legitimate_address_p): Allow subregs of base and index to span
3878 more than a word. Assert that subregs of base and index satisfy
3879 register_no_elim_operand predicates. Reject addresses where
3880 base and index have different modes.
3881
87f53554
RM
38822011-07-20 Robert Millan <rmh@gnu.org>
3883
3884 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
3885
742f29ab
UW
38862011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3887
3888 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
3889 removing now-unnecessary assignment.
3890
d05f3564
UW
38912011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3892
3893 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
3894 memory address space to the type's address space.
3895
8c352fa8 38962011-07-20 Georg-Johann Lay <avr@gjlay.de>
00b40d0d 3897
8c352fa8
GJL
3898 PR target/36467
3899 PR target/49687
00b40d0d
UB
3900 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
3901 and expand appropriately if there is a CONST_INT in operand2.
8c352fa8
GJL
3902 (usmulqihi3): New insn.
3903 (*sumulqihi3): New insn.
3904 (*osmulqihi3): New insn.
3905 (*oumulqihi3): New insn.
3906 (*muluqihi3.uconst): New insn_and_split.
3907 (*muluqihi3.sconst): New insn_and_split.
3908 (*mulsqihi3.sconst): New insn_and_split.
3909 (*mulsqihi3.uconst): New insn_and_split.
3910 (*mulsqihi3.oconst): New insn_and_split.
3911 (*ashifthi3.signx.const): New insn_and_split.
3912 (*ashifthi3.signx.const7): New insn_and_split.
3913 (*ashifthi3.zerox.const): New insn_and_split.
3914 (mulsqihi3): New insn.
3915 (muluqihi3): New insn.
3916 (muloqihi3): New insn.
3917 * config/avr/predicates.md (const_2_to_7_operand): New.
3918 (const_2_to_6_operand): New.
3919 (u8_operand): New.
3920 (s8_operand): New.
3921 (o8_operand): New.
3922 (s9_operand): New.
3923 (register_or_s9_operand): New.
3924
be31603a
KT
39252011-07-20 Kai Tietz <ktietz@redhat.com>
3926
3927 * builtins.c (fold_builtin_expect): See through the cast
3928 from truthvalue_type_node to long.
3929
c36193c6
MM
39302011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3931
3932 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
3933 where we can use them from the standard and altivec instruction
3934 sets, instead of always using the 3 operand VSX forms that require
3935 the destination to overlap one of the inputs.
3936 (vsx_fms*): Ditto.
3937 (vsx_fnma*): Ditto.
3938 (vsx_fnms*): Ditto.
3939
3940 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
3941 for DF types.
3942 (fmsdf4_fpr): Ditto.
3943 (nfmadf4_fpr): Ditto.
3944 (nfmsdf4_fpr): Ditto.
3945
02aec184
SL
39462011-07-20 Sandra Loosemore <sandra@codesourcery.com>
3947
3948 * genrecog.c (make_insn_sequence): Correct position numbering
3949 when filtering out match_scratch and match_dup.
3950
f8ecf734
RG
39512011-07-20 Richard Guenther <rguenther@suse.de>
3952
3953 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3954 against already removed statements.
3955 (forward_propagate_into_comparison): Remove dead defining stmts.
3956 (forward_propagate_into_gimple_cond): Likewise.
3957 (forward_propagate_into_cond): Simplify.
3958 (ssa_forward_propagate_and_combine): Handle changed cfg from
3959 forward_propagate_into_comparison.
3960 * tree-ssa-phiopt.c (conditional_replacement): Use proper
3961 locations for newly built statements.
3962
73451ae7
GJL
39632011-07-20 Georg-Johann Lay <avr@gjlay.de>
3964
3965 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
3966
c4100a35
AK
39672011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3968
3969 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
3970 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
3971
dca412a1
RG
39722011-07-20 Richard Guenther <rguenther@suse.de>
3973
3974 PR middle-end/18908
3975 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
3976 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
3977 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
3978
73d7e266
VM
39792011-07-20 Vladimir Makarov <vmakarov@redhat.com>
3980
3981 * config/frv/frv.c (frv_register_move_cost): Define explicitly
3982 costs for subclasses of GR_REGS.
3983
5e27a6d4
UB
39842011-07-20 Uros Bizjak <ubizjak@gmail.com>
3985
3986 PR target/49780
3987 * config/i386/predicates.md (no_seg_addres_operand): No more special.
3988 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3989 of DImode hard registers in base.
3990 (ix86_legitimate_address_p): Allow SImode and DImode base and index
3991 registers.
3992
74d8fa44
RG
39932011-07-20 Richard Guenther <rguenther@suse.de>
3994
5e27a6d4 3995 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
74d8fa44
RG
3996 (unify_nodes): Deal with that.
3997 (solve_graph): Likewise.
3998
b0e43da8
CLT
39992011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
4000
4001 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
4002 canonicalize left operand from ZERO_EXTEND to AND.
4003
a8c44c52
AS
40042011-07-20 Anatoly Sokolov <aesok@post.ru>
4005
4006 * target.def (class_max_nregs): New hook.
4007 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
4008 * doc/tm.texi: Regenerate.
4009 * targhooks.c (default_class_max_nregs): New function.
4010 * targhooks.h (default_class_max_nregs): Declare.
4011 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
4012 x_ira_reg_class_min_nregs arrays to unsigned char.
4013 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
4014 hook instead of CLASS_MAX_NREGS macro.
4015 * reginfo.c (restore_register_info): Ditto.
4016 * ira-conflicts.c (process_regs_for_copy): Use
4017 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
4018 Change type rclass and aclass vars to reg_class_t.
4019 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
4020 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
4021 reg_class_t.
4022 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
4023 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
4024
4025 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
4026 * config/i386/i386.c (ix86_class_max_nregs): New function.
4027 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
4028 instead of CLASS_MAX_NREGS macro.
4029 (TARGET_CLASS_MAX_NREGS): Define.
4030 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
4031 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
4032 * config/avr/avr.c (class_max_nregs): Remove function.
4033 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
4034 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
4035 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
4036 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
4037 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
4038 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
4039 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
4040 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
4041 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
4042 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
4043 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
4044 * config/score/score.h (CLASS_MAX_NREGS): Remove.
4045 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
4046 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
4047 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
4048
fd811f03
EB
40492011-07-19 Eric Botcazou <ebotcazou@adacore.com>
4050
4051 * cif-code.def (OVERWRITABLE): Fix typo and move around.
4052 (TARGET_OPTIMIZATION_MISMATCH): Delete.
4053 (EH_PERSONALITY): Fix typo.
4054 (NON_CALL_EXCEPTIONS): Fix message.
4055 (OPTIMIZATION_MISMATCH): Adjust message.
4056 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
4057
78767fd9
ILT
40582011-07-19 Ian Lance Taylor <iant@google.com>
4059
4060 * doc/install.texi (Configuration): Document
4061 --enable-build-poststage1-with-cxx.
4062
0baeec1b
RM
40632011-07-19 Robert Millan <rmh@gnu.org>
4064
4065 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
4066 (GLIBC_DYNAMIC_LINKER): Remove.
4067
4068 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
4069 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4070 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4071 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
4072 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
4073 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
4074
4075 * config/mips/linux.h: Remove everything except for ...
4076 (GLIBC_DYNAMIC_LINKER): ... this macro.
4077
4078 * config/mips/linux64.h: Remove everything except for ...
4079 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4080 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4081 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
4082 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
4083 (GNU_USER_LINK_EMULATIONN32): New macros.
4084
5e27a6d4
UB
4085 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
4086 Use the new headers.
0baeec1b 4087
754c3d5d
RS
40882011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4089
4090 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
4091 Add offset_known_p and size_known_p fields.
4092 (MEM_OFFSET_KNOWN_P): Update accordingly.
4093 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
4094 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
4095 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
4096 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
4097 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
4098 (init_emit_regs): Likewise.
4099
527210c4
RS
41002011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4101
4102 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
4103 (MEM_OFFSET): Change from returning an rtx to returning a
4104 HOST_WIDE_INT.
4105 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
4106 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
4107 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4108 (clear_mem_offset): Declare.
4109 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
4110 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
4111 MEM_OFFSET to get a HOST_WIDE_INT offset.
4112 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
4113 (adjust_offset_for_component_ref): Take a bool "known_p"
4114 parameter and a HOST_WIDE_INT "offset" parameter.
4115 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
4116 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
4117 than an rtx. Use clear_mem_offset to clear the offset.
4118 * cfgcleanup.c (merge_memattrs): Likewise.
4119 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
4120 * function.c (assign_parm_find_stack_rtl): Likewise.
4121 (assign_parm_setup_stack): Likewise.
4122 * print-rtl.c (print_rtx): Likewise.
4123 * reload.c (find_reloads_subreg_address): Likewise.
4124 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4125 * var-tracking.c (INT_MEM_OFFSET): Likewise.
4126 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
4127 (get_mem_align_offset): Likewise.
4128 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4129 (clear_mem_offset): New function.
4130 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
4131 offset rather than an rtx. Assume both the expressio and offset
4132 are available.
4133 (r10k_needs_protection_p_1): Update accordingly, checking the
4134 expression and offset availability here instead.
4135
f5541398
RS
41362011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4137
4138 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
4139 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
4140 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
4141 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
4142 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4143 (clear_mem_size): Declare.
4144 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4145 (clear_mem_size): New function.
4146 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
4147 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
4148 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
4149 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
4150 to clear the size.
4151 (nonoverlapping_memrefs_p): Likewise.
4152 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
4153 (expand_builtin_init_trampoline): Likewise.
4154 * calls.c (compute_argument_addresses): Likewise.
4155 * cfgcleanup.c (merge_memattrs): Likewise.
4156 * dce.c (find_call_stack_args): Likewise.
4157 * dse.c (record_store, scan_insn): Likewise.
4158 * dwarf2out.c (dw_sra_loc_expr): Likewise.
4159 * expr.c (emit_block_move_hints): Likewise.
4160 * function.c (assign_parm_find_stack_rtl): Likewise.
4161 * print-rtl.c (print_rtx): Likewise.
4162 * reload.c (find_reloads_subreg_address): Likewise.
4163 * rtlanal.c (may_trap_p_1): Likewise.
4164 * var-tracking.c (track_expr_p): Likewise.
4165 * varasm.c (assemble_trampoline_template): Likewise.
4166 * config/arm/arm.c (arm_print_operand): Likewise.
4167 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
4168 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
4169 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
4170 (expand_constant_setmem_prologue): Likewise.
4171 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
4172 * config/rs6000/rs6000.c (expand_block_move): Likewise.
4173 (adjacent_mem_locations): Likewise.
4174 * config/s390/s390.c (s390_expand_setmem): Likewise.
4175 (s390_expand_insv): Likewise.
4176 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
4177 (*extendqi<mode>2_short_displ): Likewise.
4178 * config/sh/sh.c (expand_block_move): Likewise.
4179 * config/sh/sh.md (extv, extzv): Likewise.
4180
f12144dd
RS
41812011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4182
4183 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
4184 (mem_attrs_htab_eq): ...here.
4185 (find_mem_attrs): Replace with...
4186 (set_mem_attrs): ...this function. Take a mem_attrs structure
4187 rather than individual fields.
4188 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4189 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4190 (set_mem_size, change_address, adjust_address_1, offset_address)
4191 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4192 Update accordingly.
4193
1c3f523e
RS
41942011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4195
4196 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
4197 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
4198 Provide a dummy definition of MEM_ADDR_SPACE for generators.
4199 (target_rtl): Add x_mode_mem_attrs.
4200 (mode_mem_attrs): New macro.
4201 (get_mem_attrs): New function.
4202 * emit-rtl.c (get_mem_attrs): Rename to...
4203 (find_mem_attrs): ...this.
4204 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4205 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4206 (set_mem_size, change_address, adjust_address_1, offset_address)
4207 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4208 Update accordingly.
4209 (init_emit_regs): Initialize mode_mem_attrs.
4210
3046b1a9
RG
42112011-07-19 Richard Guenther <rguenther@suse.de>
4212
4213 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
4214 TRUTH_*_EXPR handling.
4215 * tree-ssa-operands.c (get_expr_operands): Likewise.
4216 * tree-ssa-pre.c (fully_constant_expression): Likewise.
4217 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
4218 Likewise.
4219 (is_and_or_or): Likewise.
4220 (is_norm_cond_subset_of): Likewise.
4221
5d49b6a7
RG
42222011-07-19 Richard Guenther <rguenther@suse.de>
4223
4224 * tree.h (fold_build_pointer_plus_loc): New helper function.
4225 (fold_build_pointer_plus_hwi_loc): Likewise.
4226 (fold_build_pointer_plus): Define.
4227 (fold_build_pointer_plus_hwi): Likewise.
4228 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
4229 (fold_builtin_memory_op): Likewise.
4230 (fold_builtin_stpcpy): Likewise.
4231 (fold_builtin_memchr): Likewise.
4232 (fold_builtin_strstr): Likewise.
4233 (fold_builtin_strchr): Likewise.
4234 (fold_builtin_strrchr): Likewise.
4235 (fold_builtin_strpbrk): Likewise.
4236 (fold_builtin_strcat): Likewise.
4237 (expand_builtin_memory_chk): Likewise.
4238 (fold_builtin_memory_chk): Likewise.
4239 * c-typeck.c (build_unary_op): Likewise.
4240 * cgraphunit.c (thunk_adjust): Likewise.
4241 * fold-const.c (build_range_check): Likewise.
4242 (fold_binary_loc): Likewise.
4243 * omp-low.c (extract_omp_for_data): Likewise.
4244 (expand_omp_for_generic): Likewise.
4245 (expand_omp_for_static_nochunk): Likewise.
4246 (expand_omp_for_static_chunk): Likewise.
4247 * tree-affine.c (add_elt_to_tree): Likewise.
4248 * tree-data-ref.c (split_constant_offset_1): Likewise.
4249 * tree-loop-distribution.c (generate_memset_zero): Likewise.
4250 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
4251 * tree-predcom.c (ref_at_iteration): Likewise.
4252 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4253 (add_to_parts): Likewise.
4254 (create_mem_ref): Likewise.
4255 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4256 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
4257 (number_of_iterations_le): Likewise.
4258 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
4259 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4260 (vect_create_addr_base_for_vector_ref): Likewise.
4261 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
4262 (vect_create_cond_for_alias_checks): Likewise.
4263 * tree-vrp.c (extract_range_from_assert): Likewise.
4264 * config/alpha/alpha.c (alpha_va_start): Likewise.
4265 (alpha_gimplify_va_arg_1): Likewise.
4266 * config/i386/i386.c (ix86_va_start): Likewise.
4267 (ix86_gimplify_va_arg): Likewise.
4268 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4269 * config/mep/mep.c (mep_expand_va_start): Likewise.
4270 (mep_gimplify_va_arg_expr): Likewise.
4271 * config/mips/mips.c (mips_va_start): Likewise.
4272 (mips_gimplify_va_arg_expr): Likewise.
4273 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4274 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
4275 (rs6000_gimplify_va_arg): Likewise.
4276 * config/s390/s390.c (s390_va_start): Likewise.
4277 (s390_gimplify_va_arg): Likewise.
4278 * config/sh/sh.c (sh_va_start): Likewise.
4279 (sh_gimplify_va_arg_expr): Likewise.
4280 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4281 * config/spu/spu.c (spu_va_start): Likewise.
4282 (spu_gimplify_va_arg_expr): Likewise.
4283 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4284 Likewise.
4285 (xstormy16_gimplify_va_arg_expr): Likewise.
4286 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
4287 (xtensa_gimplify_va_arg_expr): Likewise.
4288
d906fd7f
RG
42892011-07-19 Richard Guenther <rguenther@suse.de>
4290
4291 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
4292 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
4293 handling.
4294
4295 PR middle-end/18908
4296 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
4297 result of BIT_*_EXPR to bitfield precision.
4298
1b14d815
RS
42992011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
4300
4301 PR tree-optimization/49742
4302 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
4303 as a potential write.
4304
d906fd7f
RG
43052011-07-19 Richard Guenther <rguenther@suse.de>
4306
4307 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
4308 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
4309 (forward_propagate_comparison): Simplify, remove obsolete code.
4310
53020648
RG
43112011-07-19 Richard Guenther <rguenther@suse.de>
4312
4313 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
4314 BIT_XOR_EXPR, same as the RTL expander does.
4315 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
4316 (verify_gimple_assign_unary): Likewise.
4317 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
4318 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
4319 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
4320
b8b2b009
JJ
43212011-07-19 Jakub Jelinek <jakub@redhat.com>
4322
4323 PR tree-optimization/49768
4324 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
4325 if offset is smaller than bitoffset, but offset+size is bigger
4326 than bitoffset.
4327
338f655d
IR
43282011-07-19 Ira Rosen <ira.rosen@linaro.org>
4329
4330 PR tree-optimization/49771
4331 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
4332 zero step, set segment length to the size of the data-ref's type.
4333
310bc633
MJ
43342011-07-18 Martin Jambor <mjambor@suse.cz>
4335
4336 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
4337 comments.
4338 (ipcp_values_pool): Declare.
4339 (ipcp_sources_pool): Likewise.
4340 (ipcp_lattice): Changed to forward declaration.
4341 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
4342 cannot_devirtualize.
4343 (ipa_node_params): New fields descriptors, lattices, known_vals,
4344 clone_for_all_contexts and node dead, removed fields params and
4345 count_scale.
4346 (ipa_set_param_count): Removed.
4347 (ipa_get_param_count): Made to work with descriptors vector.
4348 (ipa_get_param): Updated.
4349 (ipa_param_cannot_devirtualize_p): Removed.
4350 (ipa_param_types_vec_empty): Likewise.
4351 (ipa_set_param_used): New function.
4352 (ipa_get_param_used): Updated to use descriptors vector.
4353 (ipa_func_list): Removed.
4354 (ipa_init_func_list): Removed declaration.
4355 (ipa_push_func_to_list_1): Likewise.
4356 (ipa_pop_func_from_list): Likewise.
4357 (ipa_push_func_to_list): Removed.
4358 (ipa_lattice_from_jfunc): Remove declaration.
4359 (ipa_get_jf_pass_through_result): Declare.
4360 (ipa_get_jf_ancestor_result): Likewise.
4361 (ipa_value_from_jfunc): Likewise.
4362 (ipa_get_lattice): Update.
4363 (ipa_lat_is_single_const): New function.
4364 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
4365 (ipa_init_func_list): Likewise.
4366 (ipa_pop_func_from_list): Likewise.
4367 (ipa_get_param_decl_index): Fix coding style.
4368 (count_formal_params): Removed.
4369 (count_formal_params_1): Renamed to count_formal_params.
4370 (ipa_populate_param_decls): Update to use descriptors vector.
4371 (ipa_initialize_node_params): Likewise.
4372 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
4373 (ipa_analyze_params_uses): Likewise.
4374 (ipa_free_node_params_substructures): Likewise and free also lattices
4375 and known values.
4376 (duplicate_array): Removed.
4377 (ipa_edge_duplication_hook): Add the new edge to the list of edge
4378 clones.
4379 (ipa_node_duplication_hook): Update to use new lattices.
4380 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
4381 (ipa_free_all_structures_after_iinln): Likewise.
4382 (ipa_write_node_info): Update to use new lattices.
4383 (ipa_read_node_info): Likewise.
4384 (ipa_get_jf_pass_through_result): New function.
4385 (ipa_get_jf_ancestor_result): Likewise.
4386 (ipa_value_from_jfunc): Likewise.
4387 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
4388 * ipa-cp.c: Reimplemented.
4389 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
4390 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
4391 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
4392 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
4393 * doc/invoke.texi (devirt-type-list-size): Removed description.
4394 (ipa-cp-value-list-size): Added description.
4395
6774a66f
RH
43962011-07-18 Richard Henderson <rth@redhat.com>
4397
4398 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
4399 before calling create_basic_block.
4400
8b316874
JJ
44012011-07-18 Jakub Jelinek <jakub@redhat.com>
4402
4403 PR middle-end/49675
4404 * tree.c (build_common_builtin_nodes): Register
4405 __builtin_return_address, __cyg_profile_func_enter
4406 and __cyg_profile_func_exit.
4407
9f68560b
RH
44082011-07-18 Richard Henderson <rth@redhat.com>
4409
4410 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
4411 (add_labels_and_missing_jumps): ... here.
4412 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
4413
03126412
UB
44142011-07-18 Uros Bizjak <ubizjak@gmail.com>
4415
4416 PR target/47744
4417 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4418 of DImode hard registers in PLUS address chains.
4419
fbf80ef7
RO
44202011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4421
4422 PR bootstrap/49769
4423 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
4424 (alpha*-*-freebsd*): Likewise.
4425 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4426 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4427 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
4428 crtprec80.o, crtfastmath.o to extra_parts for all targets.
4429 (ia64*-*-elf*): Remove extra_parts.
4430 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
4431 (sparc64-*-linux*): Likewise.
4432 (sparc64-*-freebsd*): Likewise.
4433
4434 Revert:
4435 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
4436 (ia64*-*-linux*): Likewise.
4437 (mips64*-*-linux*): Likewise.
4438 (mips*-*-linux*): Likewise.
4439
daf633ba
DE
44402011-07-18 David Edelsohn <dje.gcc@gmail.com>
4441
4442 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
4443
4b4455e5
RG
44442011-07-18 Richard Guenther <rguenther@suse.de>
4445
4446 * gimplify.c (gimplify_expr): Use input_location, not saved_location
4447 when building new trees.
4448
e002c7cb
RG
44492011-07-18 Richard Guenther <rguenther@suse.de>
4450
4451 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
4452 expansion result to bitfield precision if required.
4453
e44dbbe1
RO
44542011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4455
4456 * config.gcc (i[3456x]86-*-netware*): Remove.
4457
4458 * gthr-nks.h: Remove.
4459 * configure.ac (enable_threads): Remove nks.
4460 * configure: Regenerate.
4461
4462 * config/i386/i386.c (ix86_encode_section_info): Remove netware
4463 reference.
4464 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
4465 <netware.h> reference.
4466
4467 * config/i386/netware-libgcc.c,
4468 gcc/config/i386/netware-libgcc.def,
4469 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
4470 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
4471 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
4472 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
4473
4474 * doc/extend.texi (Function Attributes,
4475 callee_pop_aggregate_return): Remove i?86-netware reference.
4476 * doc/install.texi (Configuration, --enable-threads): Remove nks.
4477
fd862017
JDA
44782011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4479
4480 PR target/49746
4481 Revert:
4482 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4483
4484 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
4485 patterns.
4486
1ff24749
EB
44872011-07-17 Eric Botcazou <ebotcazou@adacore.com>
4488
4489 PR middle-end/49732
4490 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
4491
a4a2c37d
MK
44922011-07-16 Matthias Klose <doko@ubuntu.com>
4493
4494 * doc/install.texi: Document --enable-static-libjava.
4495
ea6136a2
RH
44962011-07-15 Richard Henderson <rth@redhat.com>
4497
4498 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4499 Replace all three arguments by returning a VEC of edges.
4500 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
4501 pointers and counts.
4502 (fix_edges_for_rarely_executed_code): Merge ...
4503 (rest_of_handle_partition_blocks): ... into...
4504 (partition_hot_cold_basic_blocks): ... here. Return todo items if
4505 any work was performed.
4506 (pass_partition_blocks): Clear todo_flags_finish.
4507
6545e33e
PC
45082011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
4509 Jakub Jelinek <jakub@redhat.com>
4510 Jonathan Wakely <jwakely.gcc@gmail.com>
4511
4512 PR libstdc++/49745
4513 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
4514 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
4515
6feeed06
JM
45162011-07-15 Jason Merrill <jason@redhat.com>
4517
4518 PR testsuite/49741
4519 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
4520 rather than --tool_opts.
4521
44762055
BS
45222011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
4523
4524 * doc/plugins.texi (Building GCC plugins): gengtype needs its
0fa71447 4525 corresponding gtype.state.
44762055 4526
1be0310c
JDA
45272011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4528
4529 PR target/49723
4530 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
4531
12c5ffe5
EB
45322011-07-15 Eric Botcazou <ebotcazou@adacore.com>
4533
4534 PR target/48220
4535 * doc/md.texi (Standard Names): Document window_save.
4536 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
4537 expand_debug_expr and expand_debug_source_expr. If the target has
4538 a window_save instruction, adjust the ENTRY_VALUE_EXP.
4539 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
4540 SSA_NAME_VAR is a parameter.
4541 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
4542 * var-tracking.c (parm_reg_t): New type and associated vector type.
4543 (windowed_parm_regs): New variable.
4544 (adjust_insn): If the target has a window_save instruction and this
4545 is the instruction, make its effect on parameter registers explicit.
4546 (next_non_note_insn_var_location): New function.
4547 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
4548 (vt_add_function_parameter): If the target has a window_save insn,
4549 adjust the incoming RTL and record that in windowed_parm_regs.
4550 (vt_finalize): Free windowed_parm_regs.
4551
bcead286
BS
45522011-07-15 Bernd Schmidt <bernds@codesourcery.com>
4553
4554 * doc/invoke.texi (C6X Options): New section.
4555 * doc/md.texi (TI C6X family): New section.
4556 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
4557 tic6x-*-uclinux.
4558 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
4559 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
4560 Provide C6X definitions.
4561 * config/c6x/c6x.md: New file.
4562 * config/c6x/constraints.md: New file.
4563 * config/c6x/predicates.md: New file.
4564 * config/c6x/c6x-sched.md.in: New file.
4565 * config/c6x/c6x-sched.md: New file.
4566 * config/c6x/gensched.sh: New file.
4567 * config/c6x/c6x-mult.md.in: New file.
4568 * config/c6x/genmult.sh: New file.
4569 * config/c6x/c6x-mult.md: New file.
4570 * config/c6x/sync.md: New file.
4571 * config/c6x/c6x-protos.h: New file.
4572 * config/c6x/sfp-machine.h: New file.
4573 * config/c6x/c6x.c: New file.
4574 * config/c6x/c6x.h: New file.
4575 * config/c6x/crti.s: New file.
4576 * config/c6x/crtn.s: New file.
4577 * config/c6x/lib1funcs.asm: New file.
4578 * config/c6x/c6x-modes.def: New file.
4579 * config/c6x/genopt.sh: New file.
4580 * config/c6x/c6x.opt: New file.
4581 * config/c6x/c6x-tables.opt: New file.
4582 * config/c6x/c6x-opts.h: New file.
4583 * config/c6x/c6x-isas.def: New file.
4584 * config/c6x/elf.h: New file.
4585 * config/c6x/elf-common.h: New file.
4586 * config/c6x/uclinux-elf.h: New file.
4587 * config/c6x/t-c6x: New file.
4588 * config/c6x/t-c6x-elf: New file.
4589 * config/c6x/t-c6x-uclinux: New file.
4590 * config/c6x/t-c6x-softfp: New file.
4591 * config/c6x/gtd.c: New file.
4592 * config/c6x/gtf.c: New file.
4593 * config/c6x/ltd.c: New file.
4594 * config/c6x/ltf.c: New file.
4595 * config/c6x/ged.c: New file.
4596 * config/c6x/gef.c: New file.
4597 * config/c6x/led.c: New file.
4598 * config/c6x/lef.c: New file.
4599 * config/c6x/eqd.c: New file.
4600 * config/c6x/eqf.c: New file.
4601 * config/c6x/libgcc-c6xeabi.ver: New file.
4602
aef0e7a8
BS
4603 Revert
4604 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4605 PR rtl-optimization/11320
4606 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
4607 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
4608 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
4609 current_sched_info->compute_jump_reg_dependencies. Record which
4610 registers are used and which registers are set by the jump.
4611 Clear deps->reg_conditional_sets after a barrier.
4612 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
4613 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
4614 (init_deps): Initialize reg_conditional_sets.
4615 (free_deps): Clear reg_conditional_sets.
4616 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
4617 Mark registers live on entry of the fallthrough block and conditionally
4618 set as set by the jump. Mark registers live on entry of non-fallthrough
4619 blocks as used by the jump.
4620 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
4621 Mark new parameters as unused.
4622
9bed2f0d
AP
46232011-07-14 Andrew Pinski <pinskia@gmail.com>
4624
4625 PR tree-opt/49309
4626 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
4627 Use fold_build2_loc instead of build2.
4628 Use the correct type for the new tree.
4629
1f88caaa
BS
46302011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4631
4632 PR rtl-optimization/11320
4633 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
4634 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
4635
d772f97c 46362011-07-14 Georg-Johann Lay <avr@gjlay.de>
1f88caaa 4637
d772f97c
GJL
4638 PR target/49487
4639 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
4640 of REG.
4641 (*rotw<mode>): Use const_int_operand for operand2.
4642 Use match_scatch for operand3.
4643 (*rotb<mode>): Ditto
4644 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
4645
1a5d20a4
RG
46462011-07-14 Richard Guenther <rguenther@suse.de>
4647
4648 PR tree-optimization/49651
4649 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4650 handle dereferences with subvariables.
4651
5fbcc0ed
RG
46522011-07-14 Richard Guenther <rguenther@suse.de>
4653
4654 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
4655 (fold_stmt_1): Do it here directly on gimple and as a first thing.
4656
fbf3fee2
RG
46572011-07-14 Richard Guenther <rguenther@suse.de>
4658
4659 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
4660 not bool_var when folding bool_var != 1 or bool_var == 0.
4661
b953c2b8
BS
46622011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4663
4664 * haifa-sched.c (schedule_insns): Remove outdated comment.
4665 (schedule_block): When computing a known value for TODO_SPEC,
4666 just set it rather than using logical operations.
4667 (try_ready): Likewise. Use a local variable rather than a
4668 pointer to TODO_SPEC. Reorder an if statement to move the
4669 easy case to the then block.
4670 * sched-deps.c (dep_spec_p): New static function.
4671 (update_dep): Use it to decide whether to call
4672 change_spec_dep_to_hard.
4673 (get_back_and_forw_lists): Use it.
4674 (sd_resolve_dep): Likewise.
4675 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
4676 (haifa_note_mem_dep): Likewise.
4677 (check_dep): Likewise.
4678 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
4679 (sched_free_deps): Free in two passes.
4680
1f098f07
RS
46812011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
4682
4683 PR middle-end/49736
4684 * expr.c (all_zeros_p): Undo bogus part of last change.
4685
73059910
MK
46862011-07-14 Matthias Klose <doko@ubuntu.com>
4687
4688 * doc/extend.texi (optimize attribute): Fix typo.
4689
bd5d002e
RG
46902011-07-14 Richard Guenther <rguenther@suse.de>
4691
4692 * gimplify.c (gimplify_expr): Only do required conversions.
4693
eb1dcdff
GJL
46942011-07-14 Georg-Johann Lay <avr@gjlay.de>
4695
4696 PR target/43746
4697 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
4698 i.e. use default_elf_select_section.
4699 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
4700 (READONLY_DATA_SECTION_ASM_OP): Remove.
4701 (TARGET_ASM_NAMED_SECTION): Move from here...
4702 * config/avr/avr.c: ...to here.
03126412 4703 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
eb1dcdff
GJL
4704 (avr_asm_named_section): Make static.
4705
d31fb329
RO
47062011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4707
4708 PR bootstrap/49739
03126412
UB
4709 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
4710 and crtfastmath.o for Linux/x86.
d31fb329 4711
26965010
BS
47122011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4713
4714 * haifa-sched.c: Include "hashtab.h"
4715 (sched_no_dce): New global variable.
4716 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
4717 SHADOW_P): New macros.
4718 (last_clock_var, cycle_issued_insns): Move declarations.
4719 (must_backtrack): New static variable.
4720 (struct delay_pair): New structure.
4721 (delay_htab, delay_htab_i2): New static variables.
4722 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
4723 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
4724 functions.
4725 (dep_cost_1): If delay pairs exist, try to look up the insns and
4726 use the correct pair delay if we find them.
4727 (rank-for_schedule): Tweak priority for insns that must be scheduled
4728 soon to avoid backtracking.
4729 (queue_insn): Detect conditions which force backtracking.
4730 (ready_add): Likewise.
4731 (struct sched_block_state): Add member shadows_only_p.
4732 (struct haifa_save_data): New structure.
4733 (backtrack_queue): New static variable.
4734 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
4735 unschedule_insns_until, restore_last_backtrack_point,
4736 free_topmost_backtrack_point, free_backtrack_queue,
4737 estimate_insn_tick, estimate_shadow_tick): New functions.
4738 (prune_ready_list): New arg shadows_only_p. All callers changed.
4739 If true, remove everything that isn't SHADOW_P. Look up delay
03126412 4740 pairs and estimate ticks to avoid scheduling the first insn too early.
26965010
BS
4741 (verify_shadows): New function.
4742 (schedule_block): Add machinery to enable backtracking.
4743 (sched_init): Take sched_no_dce into account when setting
4744 DF_LR_RUN_DCE.
4745 (free_delay_pairs): New function.
4746 (init_h_i_d): Initialize INSN_EXACT_TICK.
4747 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
4748 * sched-deps.c (sd_unresolve_dep): New function.
4749 * sched-int. (struct haifa_sched_info): New fields save_state
4750 and restore_state.
4751 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
4752 feeds_backtrack_insn and shadow_p.
4753 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
4754 (sched_no_dce): Declare variable.
4755 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
4756 sd_unresolve_dep): Declare functions.
4757 * modulo-sched.c (sms_sched_info): Clear the two new fields.
4758 * sched-rgn.c (rgn_const_sched_info): Likewise.
4759 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4760 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
4761 (ebb_sched_info): Add them for the two new fields.
4762 (add_deps_for_risky_insns): Call add_delay_dependencies.
4763
1db75f6c
MM
47642011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
4765
4766 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
4767 Rename -mr11.
4768 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
4769 (rs6000_call_indirect_aix): Ditto.
4770 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
4771 (call_indirect_aix<ptrsize>_internal): Ditto.
4772 (call_indirect_aix<ptrsize>_nor11): Ditto.
4773 (call_indirect_aix<ptrsize>_internal2): Ditto.
4774 (call_value_indirect_aix<ptrsize>): Ditto.
4775 (call_value_indirect_aix<ptrsize>_internal): Ditto.
4776 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4777 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4778 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
4779
e2995714
JM
47802011-07-13 Jason Merrill <jason@redhat.com>
4781
4782 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
4783
4dfe3ad5
UW
47842011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4785
4786 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
4787 * config/spu/spu.md ("clrsb<mode>2"): New expander.
4788
dddc6762
TS
47892011-07-13 Thomas Schwinge <thomas@schwinge.name>
4790
4791 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
4792 * configure: Regenerate.
4793
b4d80e56
UW
47942011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4795
4796 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
4797 (asm_file_start): Remove.
4798 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
4799 free_bb_for_insn around code that modifies insns before
4800 restarting df analysis.
4801
9e34e53f
RO
48022011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4803
4804 PR target/49541
03126412 4805 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9e34e53f
RO
4806 (LINK_SPEC): ... here.
4807
51564684
BS
48082011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4809
4810 * haifa-sched.c (struct sched_block_state): New.
4811 (schedule_block): Move some local variables into such a structure.
4812
b3fe1584
RO
48132011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4814
4815 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
4816 * config/i386/t-crtpc: Remove.
4817 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4818 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
4819 tmake_file.
4820 (x86_64-*-darwin*): Likewise.
4821 (i[34567]86-*-linux*): Likewise.
4822 (x86_64-*-linux*): Likewise.
4823
4824 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
4825 Handle -mpc32, -mpc64, -mpc80.
4826
35d8090d
RO
48272011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4828
4829 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
4830 * config/alpha/t-crtfm: Remove.
4831 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
4832 * config/i386/t-crtfm: Remove.
4833 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
4834 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
4835 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
4836 * config/sparc/t-crtfm: Remove.
4837
4838 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
4839 (alpha*-*-freebsd*): Likewise.
4840 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
4841 (x86_64-*-darwin*): Likewise.
4842 (i[34567]86-*-linux*): Likewise.
4843 (x86_64-*-linux*): Likewise.
4844 (x86_64-*-mingw*): Likewise.
4845 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
4846 (ia64*-*-freebsd*): Likewise.
4847 (ia64*-*-linux*): Likewise.
4848 (mips64*-*-linux*): Likewise.
4849 (mips*-*-linux*): Likewise.
4850 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
4851 (sparc64-*-linux*): Likewise.
4852 (sparc64-*-freebsd*): Likewise.
4853
e141542e
RO
48542011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4855
4856 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
4857 * config/darwin-crt3.c: Move to ../libgcc/config.
4858 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4859 ($(T)crt3$(objext)): Remove.
4860 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
4861 ($(T)crt2$(objext)): Remove.
4862 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
4863 (powerpc64-*-darwin*): Likewise.
4864
72fbc381
L
48652011-07-13 H.J. Lu <hongjiu.lu@intel.com>
4866
03126412 4867 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
72fbc381
L
4868
4869 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
4870 (addsi_1_zext): This.
4871
727a65e6
BS
48722011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4873
4874 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
4875 * doc/tm.texi: Regenerate.
73451ae7 4876 * target.def (mergeable_rodata_prefix): New defhookpod.
727a65e6
BS
4877 * varasm.c (mergeable_string_section, mergeable_constant_section):
4878 Use it. Allocate name with alloca.
4879
cb77b6cf
L
48802011-07-13 H.J. Lu <hongjiu.lu@intel.com>
4881
4882 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
4883
36fc3799
RS
48842011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
4885
4886 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
4887 overlap check.
4888
953d0c90
RS
48892011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
4890
4891 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
4892 (count_type_elements): Delete.
4893 (complete_ctor_at_level_p): Declare.
4894 * expr.c (flexible_array_member_p): New function, split out from...
4895 (count_type_elements): ...here. Make static. Replace allow_flexarr
4896 parameter with for_ctor_p. When for_ctor_p is true, return the
4897 number of elements that should appear in the top-level constructor,
4898 otherwise return an estimate of the number of scalars.
4899 (categorize_ctor_elements): Replace p_must_clear with p_complete.
4900 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
4901 (complete_ctor_at_level_p): New function, borrowing union logic
4902 from old categorize_ctor_elements_1.
4903 (mostly_zeros_p): Return true if the constructor is not complete.
4904 (all_zeros_p): Update call to categorize_ctor_elements.
4905 * gimplify.c (gimplify_init_constructor): Update call to
4906 categorize_ctor_elements. Don't call count_type_elements.
4907 Unconditionally prevent clearing for variable-sized types,
4908 otherwise rely on categorize_ctor_elements to detect
4909 incomplete initializers.
4910
9111c715
RG
49112011-07-13 Richard Guenther <rguenther@suse.de>
4912
4913 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
4914 the final type is integral.
4915
a19af9c4
BS
49162011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4917
4918 * sched-int.h (struct _dep): Add member cost.
4919 (DEP_COST, UNKNOWN_DEP_COST): New macros.
4920 * sched-deps.c (init_dep_1): Initialize DEP_COST.
4921 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
4922 (sched_change_pattern): Reset it for dependent insns.
4923
2d1efe2d
RO
49242011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4925
4926 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
4927 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
4928 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
4929 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
4930 (CRT0_S, MCRT0_S): Remove.
4931 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
4932 Remove.
4933 (s-crt0): Remove.
4934 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
4935
e84a58ff
EB
49362011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4937
4938 * cse.c (insert_with_costs): Put semi-colon after empty loop body
4939 on the next line.
4940 * emit-rtl.c (push_to_sequence): Likewise.
4941 * haifa-sched.c (max_issue): Likewise.
4942 * matrix-reorg.c (add_allocation_site): Likewise.
4943 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4944 * reload.c (alternative_allows_const_pool_ref): Likewise.
4945 * sched-rgn.c (rgn_add_block): Likewise.
4946 (rgn_fix_recovery_cfg): Likewise.
4947 * tree.c (attribute_list_contained): Likewise.
4948
3a4ffde6
UB
49492011-07-12 Uros Bizjak <ubizjak@gmail.com>
4950
4951 * config/i386/i386.c: Tidy processor feature bitmasks.
4952 (m_P4_NOCONA): New.
4953
10b75750
AP
49542011-07-12 Andrew Pinski <pinskia@gmail.com>
4955
4956 PR rtl-opt/49474
4957 * cprop.c (find_implicit_sets): Correct the condition.
4958
4f42d714
RH
49592011-07-12 Richard Henderson <rth@redhat.com>
4960
4961 PR target/49713
4962 * dwarf2out.h (dwarf_frame_regnum): Remove.
4963 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
4964 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
4965 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
4966 (execute_dwarf2_frame): Initialize them.
4967 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
4968 users of the macros with the variables.
4969 (expand_builtin_dwarf_sp_column): Revert last change.
4970 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
4971 result of DWARF_FRAME_REGNUM into a local variable.
4972
3a5e4ad6
RH
49732011-07-12 Richard Henderson <rth@redhat.com>
4974
4975 PR target/49714
4976 * config/i386/i386.c (x86_output_mi_thunk): Use
4977 machopic_indirect_call_target instead of machopic_indirection_name
4978 directly.
4979
9e9bd455
LG
49802011-07-12 Laurent GUERBY <laurent@guerby.net>
4981 Eric Botcazou <ebotcazou@adacore.com>
4982
4983 * prefix.h: Wrap up in extern "C" block.
4984
4d652a18
HJ
49852011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
4986
4987 AMD bdver2 Enablement
4988 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
4989 (case ${target}): Add bdver2.
4990 * config/i386/driver-i386.c (host_detect_local_cpu): Let
4991 -march=native recognize bdver2 processors.
4992 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4993 bdver2 def_and_undef
4994 * config/i386/i386.c (struct processor_costs bdver2_cost): New
4995 bdver2 cost table.
4996 (m_BDVER2): New definition.
4997 (m_AMD_MULTIPLE): Includes m_BDVER2.
4998 (initial_ix86_tune_features): Add bdver2 tuning.
4999 (processor_target_table): Add bdver2 entry.
5000 (static const char *const cpu_names): Add bdver2 entry.
5001 (ix86_option_override_internal): Add bdver2 instruction sets.
5002 (ix86_issue_rate): Add bdver2.
5003 (ix86_adjust_cost): Add bdver2.
5004 (has_dispatch): Add bdver2.
5005 * config/i386/i386.h (TARGET_BDVER2): New definition.
5006 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
5007 (enum processor_type): Add PROCESSOR_BDVER2.
5008 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
5009 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
5010 description.
5011
5756d08c
RH
50122011-07-12 Richard Henderson <rth@redhat.com>
5013
5014 PR target/49714
5015 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
5016 destination address in memory on some paths.
5017
123148b5
BS
50182011-07-12 Bernd Schmidt <bernds@codesourcery.com>
5019
5020 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
5021 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
5022 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
5023 * function.c (locate_and_pad_parm): Take it into account.
5024 * target.def (function_arg_round_boundary): New hook.
5025 * targhooks.c (default_function_arg_round_boundary): New function.
5026 * targhooks.h (default_function_arg_round_boundary): Declare.
5027 * doc/tm.texi: Regenerate.
5028
b7a83ad8
RG
50292011-07-12 Richard Guenther <rguenther@suse.de>
5030
5031 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
5032 Do not perform no-op changes.
5033
12c4ecb1
RS
50342011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
5035
5036 * config/arm/predicates.md (neon_struct_operand): Make a normal
5037 predicate.
5038 (neon_struct_or_register_operand): New predicate.
5039 * config/arm/neon.md (movmisalign<mode>): Replace predicates
5040 with neon_struct_or_register_operand.
5041 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
5042 neon_struct_operand instead of memory_operand.
5043
ab079773
MJ
50442011-07-12 Martin Jambor <mjambor@suse.cz>
5045
5046 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
5047 * cgraph.c (cgraph_get_node_or_alias): Removed.
5048 (change_decl_assembler_name): Changed all calls to
5049 cgraph_get_node_or_alias to a call to cgraph_get_node.
5050 (cgraph_make_decl_local): Likewise.
5051 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
5052 * varasm.c (default_binds_local_p_1): Likewise.
5053 (decl_binds_to_current_def_p): Likewise.
5054
d5fed62d
JJ
50552011-07-12 Jakub Jelinek <jakub@redhat.com>
5056
5057 PR tree-optimization/49712
5058 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
5059
c0b6224a
BS
50602011-07-11 Bernd Schmidt <bernds@codesourcery.com>
5061
5062 * genautomata.c (add_arc): Return void. All callers changed.
5063 (make_automaton): Remove dead code.
5064
7263c6d7
RH
50652011-07-11 Richard Henderson <rth@redhat.com>
5066
5067 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
5068 (DW_FRAME_POINTER_REGNUM): New.
5069 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
5070 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
5071 (dwf_regno): New.
5072 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
5073 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
5074 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
5075 Use it.
5076 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
5077 * dwarf2out.h (dwarf_frame_regnum): New.
5078 (struct cfa_loc): Document the domain of the reg member.
5079
f9610d20
UB
50802011-07-11 Uros Bizjak <ubizjak@gmail.com>
5081
5082 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
5083 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
5084
96ae7458
JJ
50852011-07-11 Jakub Jelinek <jakub@redhat.com>
5086
5087 PR debug/49676
5088 * dwarf2out.c (int_shift_loc_descriptor): New function.
5089 (int_loc_descriptor): If shorter, emit i as
5090 (i >> shift), shift, DW_OP_shl for suitable shift value.
5091 Similarly, try to optimize large negative values using
5092 DW_OP_neg of a positive value if shorter.
5093 (size_of_int_shift_loc_descriptor): New function.
5094 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
5095 changes.
5096 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
5097 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
5098 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
5099 is shorter.
5100 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
5101 addend as added DW_OP_plus if it is shorter.
5102
feffaec4
RO
51032011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5104
5105 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
5106 (DTORS_SECTION_ASM_OP): Define.
5107
2d8d5935
RO
51082011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5109
5110 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
5111 * config/t-dfprules: Move to ../libgcc/config.
5112 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5113 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5114 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
5115 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
5116 Likewise.
5117 (i[34567]86-*-cygwin*): Likewise.
5118 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5119 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
5120 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
5121 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
5122 D64PBIT_FUNCS, D128PBIT_FUNCS.
5123
dcc95c20
RG
51242011-07-11 Richard Guenther <rguenther@suse.de>
5125
5126 * tree-vrp.c (simplify_conversion_using_ranges): Manually
5127 translate the source value-range through the conversion chain.
5128
28164eed
RS
51292011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
5130
5131 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
5132
f3054223
AL
51332011-07-11 Arthur Loiret <aloiret@debian.org>
5134
5135 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
5136 a bi-arch compiler defaulting to 31-bit. In this case:
5137 (tmake_file): Add s390/t-linux64.
5138 * doc/install.texi: Add s390-linux to the list of targets supporting
5139 --enable-targets=all.
5140
bd5ab709
AL
51412011-07-11 Arthur Loiret <aloiret@debian.org>
5142 Matthias Klose <doko@debian.org>
5143
5144 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
5145 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
5146 (tm_file): Add mips/linux64.h.
5147 (tmake_file): Add mips/t-linux64.
5148 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5149 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
5150 instead of hardcoded mabi=n32.
5151 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5152 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5153 convention.
5154
d3b7e946
AK
51552011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5156
5157 * passes.c (init_optimization_passes): Add invariant motion pass
5158 after induction variable optimization.
5159
7e4ec472 51602011-07-11 Georg-Johann Lay <avr@gjlay.de>
f9610d20 5161
7e4ec472
GJL
5162 PR target/39633
5163 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
5164 offsets 1..5 set cc0 in a usable way.
5165
0e65e631
RG
51662011-07-11 Romain Geissler <romain.geissler@gmail.com>
5167
5168 * tree.h (call_expr_arg): Remove.
5169 (call_expr_argp): Likewise.
5170
18970372
EB
51712011-07-11 Eric Botcazou <ebotcazou@adacore.com>
5172
5173 * config/sparc/sparc.md (save_register_window_1): Rename to...
5174 (window_save): ...this.
5175 * config/sparc/sparc.c (emit_save_register_window): Rename to...
5176 (emit_window_save): ...this.
5177 (sparc_expand_prologue): Adjust to above renaming.
5178
9e419e38
L
51792011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5180
5181 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
5182 of movabs for x32.
5183
3db72de3
RH
51842011-07-10 Richard Henderson <rth@redhat.com>
5185
5186 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
5187 run final, instead of emitting text directly.
5188
a1f91bca
L
51892011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5190
5191 * config/i386/i386.c (ix86_option_override_internal): Turn on
5192 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
5193 small PIC models for TARGET_X32.
5194
a50023f9
HPN
51952011-07-10 Hans-Peter Nilsson <hp@axis.com>
5196
9a0b29f0
HPN
5197 PR target/49684
5198 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
5199 $(LIBGCC2_CFLAGS).
5200
a50023f9
HPN
5201 PR bootstrap/49680
5202 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
5203 stray notes and debug insns by using prev_nonnote_nondebug_insn
5204 instead of PREV_INSN.
5205
948d330e
RH
52062011-07-09 Richard Henderson <rth@redhat.com>
5207
5208 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
5209 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
5210 * dwarf2out.c: ... here.
5211 (output_all_cfis): Remove.
5212 (dwarf2out_switch_text_section): Use output_cfis directly.
5213 (size_of_locs): Export.
5214 (output_loc_sequence, output_loc_sequence_raw): Export.
5215 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
5216 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
5217 output_cfa_loc_raw): Move to ...
5218 * dwarfcfi.c: ... here.
5219 * dwarf2out.h: Update decls.
5220
db42e39d
RH
52212011-07-09 Richard Henderson <rth@redhat.com>
5222
5223 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
5224 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
5225 * dwarf2cfi.c: ... here.
5226 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
5227 (DWARF_ROUND, DWARF_CIE_ID): Remove.
5228 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
5229 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
5230 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
5231
a8e5c0e7
RH
52322011-07-09 Richard Henderson <rth@redhat.com>
5233
5234 * dwarf2cfi.c (cie_return_save): New.
5235 (queue_reg_save): Use compare_reg_or_pc.
5236 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
5237 (dwarf2out_frame_debug_expr): Likewise.
5238 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
5239 (initial_return_save): Likewise.
5240 (execute_dwarf2_frame): Save and restore initial return save from
5241 the cie to the fde.
5242 * config/mips/mips.c (mips_frame_set): Remove special case for
5243 DWARF_FRAME_RETURN_COLUMN.
5244
4a8ee122
RH
52452011-07-09 Richard Henderson <rth@redhat.com>
5246
5247 * dwarf2cfi.c (lookup_cfa): Remove.
5248 (execute_dwarf2_frame): Assert queues are empty on entry.
5249 Setup initial cfa directly, not via lookup_cfa.
5250 Don't clear args_size state here.
5251
3edb53aa
RH
52522011-07-09 Richard Henderson <rth@redhat.com>
5253
5254 * dwarf2cfi.c (add_cfi_vec): New.
5255 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
5256 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
5257 (execute_dwarf2_frame): Set add_cfi_vec.
5258
ded49a7f
RH
52592011-07-09 Richard Henderson <rth@redhat.com>
5260
5261 * defaults.h (ASM_COMMENT_START): Move here...
5262 * dwarf2asm.c: ... from here.
5263 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
5264 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
5265 * varasm.c: Likewise.
5266
45fba6d1
RH
52672011-07-09 Richard Henderson <rth@redhat.com>
5268
5269 PR debug/49686
5270 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
5271 (create_cfi_notes): ... do it here instead.
5272
5b696ba2
JJ
52732011-07-09 Jakub Jelinek <jakub@redhat.com>
5274
5275 PR debug/49676
5276 * dwarf2out.c (size_of_int_loc_descriptor): New function.
5277 (address_of_int_loc_descriptor): Use it.
f9610d20 5278 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5b696ba2 5279
8662b2ba
RH
52802011-07-09 Richard Henderson <rth@redhat.com>
5281
5282 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
5283 (prologue, epilogue): New.
5284 (return, *rts): New.
5285 (blockage, setd, seti): New.
5286 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
5287 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
5288 (pdp11_saved_regno): New.
5289 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
5290 generate rtl instead of text.
5291 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
5292 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
5293 * config/pdp11/pdp11-protos.h: Update.
5294
28b21ebb
RH
52952011-07-09 Richard Henderson <rth@redhat.com>
5296
5297 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
5298 try to insert an rtl prologue here.
5299 (rs6000_output_function_epilogue): Similarly.
5300 * config/rs6000/rs6000.md (prologue): Emit a barrier to
5301 satisfy !TARGET_SCHED_PROLOG.
5302 (epilogue, sibcall_epilogue): Likewise.
5303
0a222ba7
EB
53042011-07-09 Eric Botcazou <ebotcazou@adacore.com>
5305
5306 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
5307 (FP_REG_P): Delete.
5308 (IN_OR_GLOBAL_P): Likewise.
5309
2fda8e14
JM
53102011-07-08 Jason Merrill <jason@redhat.com>
5311
4063e61b
JM
5312 PR c++/45437
5313 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
5314 compound assignment.
5315
2fda8e14
JM
5316 * cgraph.c (cgraph_add_to_same_comdat_group): New.
5317 * cgraph.h: Declare it.
5318 * ipa.c (function_and_variable_visibility): Make sure thunks
5319 have the right visibility.
5320
830f11fe
RH
53212011-07-08 Richard Henderson <rth@redhat.com>
5322
5323 PR bootstrap/49680
5324 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
5325 any tablejump vector.
5326
965b2557
RH
5327 PR bootstrap/49680
5328 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
5329 end of the prologue.
5330
70db9095
JJ
53312011-07-08 Jakub Jelinek <jakub@redhat.com>
5332
5333 PR target/49621
5334 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
f9610d20 5335 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
70db9095
JJ
5336 * config/rs6000/vector.md (vector_select_<mode>,
5337 vector_select_<mode>_uns): Change second operand of NE to
5338 CONST0_RTX (<MODE>mode) instead of const0_rtx.
5339 * config/rs6000/altivec.md (*altivec_vsel<mode>,
5340 *altivec_vsel<mode>_uns): Expect second operand of NE to be
5341 zero_constant of the corresponding vector mode.
5342 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
5343 Likewise.
5344
e92c5020
SP
53452011-07-08 Sebastian Pop <sebastian.pop@amd.com>
5346
5347 * graphite-dependences.c (build_alias_set_powerset): Remove
5348 continue from loop, add one more assert.
5349
3e4f8484 53502011-07-08 Georg-Johann Lay <avr@gjlay.de>
f9610d20 5351
3e4f8484
GJL
5352 PR target/46779
5353 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
5354 In particular, allow 8-bit values in r28 and r29.
5355 (avr_hard_regno_scratch_ok): Disallow any register that might be
5356 part of the frame pointer.
5357 (avr_hard_regno_rename_ok): Same.
5358 (avr_legitimate_address_p): Don't allow SUBREGs.
5359
0094f21b
JB
53602011-07-08 Julian Brown <julian@codesourcery.com>
5361
5362 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
5363 big-endian mode.
5364 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
5365 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
5366 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
5367 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
5368 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
5369 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
5370 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
5371 registers in big-endian mode.
5372
9ae60101
BS
53732011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5374
5375 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
5376 in terms of another.
5377 (write_attr_value): Write a cast if necessary.
5378
c0a6a1ef
BS
5379 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
5380 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
5381 (REG_WORDS_BIG_ENDIAN): Document.
5382 * doc/tm.texi: Regenerate.
5383 * reload.c (operands_match_p): Take it into account.
5384 (reload_adjust_reg_for_mode): Likewise.
5385 * rtlanal.c (subreg_get_info): Likewise.
5386
b862187a
RG
53872011-07-08 Richard Guenther <rguenther@suse.de>
5388
5389 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
5390 folding.
5391
e8e8c74b
KT
53922011-07-08 Kai Tietz <ktietz@redhat.com>
5393
5394 * fold-const.c (fold_truth_andor): Factored out truth_andor
5395 label from fold_binary as function.
5396 (fold_binary_loc): Replace truth_andor lable
5397 by function fold_truth_andor.
5398
6c3cb698
KY
53992011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
5400
5401 PR middle-end/49519
5402 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
5403 check if address is stored in register. If so - give up.
5404 (check_sibcall_argument_overlap_1): Do not perform check of
5405 overlapping when it is call to address.
5406
7d8d6d73 54072011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 5408
7d8d6d73
GJL
5409 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
5410 of magic '31'.
5411
69660a70
BS
54122011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5413
5414 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
5415 GET_MODE_BITSIZE where appropriate.
5416 (widen_leading, expand_parity, expand_ctz, expand_ffs,
5417 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
5418 expand_float, expand_fix): Likewise.
5419 * expr.c (convert_move, convert_modes, expand_expr_real_2,
5420 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
5421 * stor-layout.c (get_mode_bounds): Likewise.
5422 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
5423 Likewise.
5424 * convert.c (convert_to_integer): Likewise.
5425 * expmed.c (expand_shift_1): Likewise.
5426
86cdf393
BS
5427 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
5428 a bitsize.
5429
0d44736e
BS
5430 * optabs.c (expand_binop): Tighten conditions for doubleword
5431 expansions.
f9610d20 5432 (widen_bswap): Assert that mode bitsize and precision are the same.
0d44736e
BS
5433 * stor-layout.c (get_best_mode): Skip modes that have lower
5434 precision than bitsize.
5435 * recog.c (simplify_while_replacing): Assert that bitsize and
5436 precision are the same.
5437
2c50b2c3
RO
54382011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5439
5440 * Makefile.in (LIBGCOV): Remove.
5441 (libgcc.mvars): Remove LIBGCOV.
5442 * libgov.c: Move to ../libgcc.
5443
a039d7c2
RO
54442011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5445
5446 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
5447
e923ef41
MJ
54482011-07-08 Martin Jambor <mjambor@suse.cz>
5449
5450 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
5451 is too big for total scalarization.
5452
b709e189
RH
54532011-07-07 Richard Henderson <rth@redhat.com>
5454
5455 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
5456 (DBX_DEBUGGING_INFO): Undef.
5457
2867fa7c
RH
54582011-07-07 Richard Henderson <rth@redhat.com>
5459
5460 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
5461 Handle some opcodes specially for debugging.
5462 * print-rtl.c: Include dwarf2out.h
5463 (print_rtx): Handle NOTE_INSN_CFI.
5464 * Makefile.in (print-rtl.o): Update.
5465
7644b3c7
RH
54662011-07-07 Richard Henderson <rth@redhat.com>
5467
5468 * tree-pass.h (pass_dwarf2_frame): Declare.
5469 * passes.c (init_optimization_passes): Add it.
5470 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
5471 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
5472 make static, do not call add_cfis_to_fde.
5473 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
5474 dwarf2out_frame_init): Merge into...
5475 (execute_dwarf2_frame): ... here. New function.
5476 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
5477 saved_do_cfi_asm to a tri-state variable.
5478 (gate_dwarf2_frame, pass_dwarf2_frame): New.
5479 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
5480 if it has yet to be done. Don't call dwarf2cfi_function_init.
5481 * dwarf2out.h, debug.h: Update decls.
5482 * final.c (final_start_function): Don't call
5483 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
5484 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
5485 * toplev.c (lang_dependent_init): Likewise.
5486
a518b996
RH
54872011-07-07 Richard Henderson <rth@redhat.com>
5488
5489 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
5490 FDE_TABLE_INCREMENT): Replace with...
5491 (fde_vec): ... this, a new vector.
5492 (current_fde): Remove. Replace all users with cfun->fde.
5493 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
5494 (size_of_aranges, dwarf2out_finish): Likewise.
5495 (dwarf2out_alloc_current_fde): Break out from ...
5496 (dwarf2out_begin_prologue): ... here.
5497 (dwarf2out_frame_init): Remove.
5498 * dwarf2cfi.c: Update all users of current_fde.
5499 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
5500 * dwarf2out.h: Update decls.
5501 (dw_fde_node): Add fde_index member.
5502 * function.h (struct function): Add fde member.
5503
89e25f95
BS
55042011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5505 Richard Henderson <rth@redhat.com>
5506
5507 * dwarf2cfi.c (add_cfi): Remove.
5508 (dwarf2out_cfi_label): Remove force argument. Only generate the
5509 label name.
5510 (add_fde_cfi): Simplify the different code paths.
5511 (add_cie_cfi): New.
5512 (old_cfa, old_cfa_remember): New.
5513 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
5514 (last_reg_save_label): Remove.
5515 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
5516 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5517 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5518 dwarf2out_frame_debug_cfa_expression,
5519 dwarf2out_frame_debug_cfa_restore,
5520 dwarf2out_frame_debug_cfa_window_save,
5521 dwarf2out_frame_debug_expr): Remove label parameter.
5522 (cfi_label_required_p, add_cfis_to_fde): New.
5523 (dwarf2out_frame_debug_after_prologue): New.
5524 (dwarf2cfi_frame_init): Initialize old_cfa.
5525 (dwarf2out_frame_debug_restore_state): Likewise.
5526 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
5527 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
5528 * final.c (final_start_function): Call
5529 dwarf2out_frame_debug_after_prologue.
5530
bc5612ed
BS
55312011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5532 Richard Henderson <rth@redhat.com>
5533
5534 * dwarf2cfi.c (cfi_insn): New.
5535 (dwarf2out_cfi_label): Don't emit cfi label here.
5536 (add_fde_cfi): Create a NOTE_INSN_CFI.
5537 (dwarf2out_frame_debug): Setup cfi_insn.
5538 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
5539 (dwarf2out_cfi_begin_epilogue): Make static.
5540 (dwarf2out_frame_debug_restore_state): Make static.
5541 * dwarf2out.c (output_cfi_directive): Make static.
5542 (dwarf2out_emit_cfi): New.
5543 * dwarf2out.h: Update.
5544 * final.c (final): Remove CFI notes.
5545 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
5546 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
5547 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
5548 * insn-notes.def (NOTE_INSN_CFI): New.
5549 (NOTE_INSN_CFI_LABEL): New.
5550 * rtl.h (union rtunion_def): Add rt_cfi member.
5551 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
5552
647a1567
RH
55532011-07-07 Richard Henderson <rth@redhat.com>
5554
5555 * dwarf2cfi.c: New file.
5556 * Makefile.in (OBJS): Add it.
5557 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
5558 * gengtype.c (open_base_files): Include dwarf2out.h.
5559 * coretypes.h (enum var_init_status): Move from ...
5560 * rtl.h: ... here.
5561 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
5562 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
5563 expand_builtin_dwarf_sp_column, init_return_column_size,
5564 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
5565 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
5566 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
5567 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
5568 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
5569 compute_barrier_args_size, dwarf2out_args_size,
5570 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
5571 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
5572 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
5573 queue_reg_save, dwarf2out_flush_queued_reg_saves,
5574 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
5575 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5576 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5577 dwarf2out_frame_debug_cfa_expression,
5578 dwarf2out_frame_debug_cfa_restore,
5579 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
5580 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
5581 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
5582 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
5583 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
5584 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
5585 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
5586 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
5587 dw_loc_descr_node): Move to dwarf2out.h.
5588 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
5589 mem_loc_descriptor): Export.
5590 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
5591 (dwarf2out_frame_init): Extract CIE generation code to
5592 dwarf2cfi_frame_init.
5593
b286d9ed
EB
55942011-07-07 Eric Botcazou <ebotcazou@adacore.com>
5595
5596 PR target/49660
5597 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
5598 MASK_V8PLUS, remove commented out flag and reorder.
5599
c4603e7c
JJ
56002011-07-07 Jakub Jelinek <jakub@redhat.com>
5601
5602 PR c/49644
5603 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
5604 one non-complex and one complex argument, call c_save_expr on both
5605 operands.
5606
81361831
MJ
56072011-07-07 Martin Jambor <mjambor@suse.cz>
5608
5609 PR middle-end/49495
5610 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
5611 (verify_cgraph_node): Some functinality moved to
5612 verify_edge_corresponds_to_fndecl, call it.
5613
1e4b2746
JM
56142011-07-07 Joseph Myers <joseph@codesourcery.com>
5615
5616 * config.gcc (*local*): Remove.
5617 * doc/install-old.texi: Don't mention local configurations.
5618
d7ff1e11
JJ
56192011-07-07 Jakub Jelinek <jakub@redhat.com>
5620
5621 PR debug/49522
5622 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
5623 referencing debug insns that have been reset.
5624 (dead_debug_insert_before): Don't assert reg is non-NULL,
5625 instead return immediately if it is NULL.
5626
2492731a
JM
56272011-07-07 Joseph Myers <joseph@codesourcery.com>
5628
f9610d20 5629 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2492731a 5630
9d9c740d
BS
56312011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5632
5633 * hw-doloop.c: New file.
5634 * hw-doloop.h: New file.
5635 * Makefile.in (OBJS): Add hw-doloop.o.
5636 (hw-doloop.o): New rule.
5637 ($(obj_out_file)): Add hw-doloop.h dependency.
5638 * config/bfin/bfin.c: Include "hw-doloop.h".
5639 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
5640 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
5641 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
5642 type changed to hwloop_info. Return bool, true if the loop was
5643 successfully optimized. Remove code that was moved to
5644 hw-doloop.c, and adjust other parts.
5645 (hwloop_fail): New static function, containing parts that used
5646 to be in bfin_optimize_loop.
5647 (bfin_discover_loop, bfin_discover_loops, free_loops,
5648 bfin_reorder_loops): Remove.
5649 (hwloop_pattern_reg): New static function.
5650 (bfin_doloop_hooks): New variable.
5651 (bfin_reorg_loops): Remove most code, call reorg_loops.
5652 * config/bfin/bfin.md (doloop_end splitter): Also enable if
5653 loop counter is a memory_operand.
5654
f0ea7581
L
56552011-07-07 H.J. Lu <hongjiu.lu@intel.com>
5656
f9610d20 5657 * config.gcc: Support --with-multilib-list for x86 Linux targets.
f0ea7581
L
5658
5659 * configure.ac: Mention x86-64 for --with-multilib-list.
5660 * configure: Regenerated.
5661
5662 * config/i386/gnu-user64.h (SPEC_64): Support x32.
5663 (SPEC_32): Likewise.
5664 (ASM_SPEC): Likewise.
5665 (LINK_SPEC): Likewise.
5666 (TARGET_THREAD_SSP_OFFSET): Likewise.
5667 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
5668 (SPEC_X32): New.
5669
5670 * config/i386/i386.h (TARGET_X32): New.
5671 (TARGET_LP64): New.
5672 (LONG_TYPE_SIZE): Likewise.
5673 (POINTER_SIZE): Likewise.
5674 (POINTERS_EXTEND_UNSIGNED): Likewise.
5675 (OPT_ARCH64): Support x32.
5676 (OPT_ARCH32): Likewise.
5677
5678 * config/i386/i386.opt (mx32): New.
5679
5680 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
5681 (GLIBC_DYNAMIC_LINKERX32): Likewise.
5682 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
5683 (GLIBC_DYNAMIC_LINKERX32): Likewise.
5684
5685 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
5686 (BIONIC_DYNAMIC_LINKERX32): Likewise.
5687 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
5688
5689 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
5690
f9610d20 5691 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
f0ea7581
L
5692
5693 * doc/invoke.texi: Document -mx32.
5694
38460025
RS
56952011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
5696
5697 * doc/invoke.texi (mwords-little-endian): Deprecate.
5698 * config/arm/arm.opt (mwords-little-endian): Likewise.
5699 * config/arm/arm.c (arm_option_override): Warn about the deprecation
5700 of -mwords-little-endian.
5701
3f125532
RS
57022011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
5703
5704 * reload1.c (choose_reload_regs): Use mode sizes to check whether
5705 an old reload register completely defines the required value.
5706
bbc210ab
RG
57072011-07-07 Richard Guenther <rguenther@suse.de>
5708
5709 * fold-const.c (fold_unary_loc): Do not strip sign-changes
5710 for NEGATE_EXPR.
5711
29c5134a
RG
57122011-07-07 Richard Guenther <rguenther@suse.de>
5713
5714 * tree-vrp.c (simplify_conversion_using_ranges): New function.
5715 (simplify_stmt_using_ranges): Call it.
5716
0816a42a
KT
57172011-07-07 Kai Tietz <ktietz@redhat.com>
5718
5719 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
5720 (lookup_logical_inverted_value): Likewise.
5721 (simplify_bitwise_binary_1): Likewise.
5722 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
5723
3ce9f090
JM
57242011-07-07 Joseph Myers <joseph@codesourcery.com>
5725
5726 * gcc.c (%[Spec]): Don't document.
5727 (struct spec_list): Update comment.
5728 (do_spec_1): Don't handle %[Spec].
5729 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
5730
41dfca87
JM
57312011-07-07 Joseph Myers <joseph@codesourcery.com>
5732
5733 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
5734 default based on TARGET_ASM_NAMED_SECTION.
5735 * common/common-target.def (have_named_sections): Default to true.
5736 * common/config/default-common.c: Don't include tm.h.
5737 * common/config/picochip/picochip-common.c
5738 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
5739 * common/config/m32c/m32c-common.c: Remove.
5740 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
f9610d20
UB
5741 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5742 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5743 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 5744 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
f9610d20
UB
5745 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5746 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 5747
19c44640
JJ
57482011-07-07 Jakub Jelinek <jakub@redhat.com>
5749
5750 PR middle-end/49640
f9610d20
UB
5751 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
5752 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19c44640 5753
891a2e42
RO
57542011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5755
5756 PR libmudflap/49550
5757 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
5758
fbdd5d87
RO
57592011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5760
5761 PR target/39150
5762 * configure.ac (gcc_cv_as_hidden): Also accept
5763 x86_64-*-solaris2.1[0-9]*.
5764 (gcc_cv_as_cfi_directive): Likewise.
5765 (gcc_cv_as_comdat_group_group): Likewise.
5766 (set_have_as_tls): Likewise.
5767 * configure: Regenerate.
5768 * config.gcc (i[34567]86-*-solaris2*): Also handle
5769 x86_64-*-solaris2.1[0-9]*.
5770 * config.host (i[34567]86-*-solaris2*): Likewise.
5771 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
5772 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
5773 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
5774 (TARGET_LD_EMULATION): Use it.
5775 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
5776 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
5777 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
5778 (ASM_CPU64_DEFAULT_SPEC): Define.
5779 (ASM_CPU_SPEC): Use %(asm_cpu_default).
5780 (ASM_SPEC): Redefine.
5781 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
5782 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
f9610d20 5783 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
fbdd5d87
RO
5784 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
5785 configuration.
5786 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
5787
fcf7471a
RO
57882011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5789
5790 * config/sol2.h (ASM_SPEC): Split into ...
5791 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
5792 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
5793 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
5794 (ASM_SPEC): Use ASM_SPEC_BASE.
5795 * config/sparc/sol2.h (ASM_SPEC): Redefine.
5796
1e6a67d1 57972011-07-07 Georg-Johann Lay <avr@gjlay.de>
f9610d20 5798
1e6a67d1
GJL
5799 * config/avr/avr.md (*reload_insi): Change predicate #1 to
5800 const_int_operand. Ditto for peep2 producing this insn.
5801 Add argument to output_reload_insisf call.
5802 (*movsi,*movsf): Add argument to output_movsisf call.
5803 (*reload_insf): New insn and new peep2 to produce it.
5804 * config/avr/avr-protos.h (output_movsisf): Change prototype.
5805 (output_reload_insisf): Change prototype.
5806 * config/avr/avr.c (avr_asm_len): New function.
5807 (output_reload_insisf): Rewrite.
5808 (output_movsisf): Change prototype. output_reload_insisf for
5809 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
5810 (adjust_insn_length): Add argument to output_movsisf and
5811 output_reload_insisf call.
5812
6a4bdc79
BS
58132011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5814
5815 * emit-rtl.c (paradoxical_subreg_p): New function.
5816 * rtl.h (paradoxical_subreg_p): Declare.
5817 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
5818 apply_distributive_law, simplify_comparison, simplify_set): Use it.
5819 * cse.c (record_jump_cond, cse_insn): Likewise.
5820 * expr.c (force_operand): Likewise.
5821 * rtlanal.c (num_sign_bit_copies1): Likewise.
5822 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
5823 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
5824 (push_reload): Use precision to check for paradoxical subregs.
5825 * expmed.c (extract_bit_field_1): Likewise.
5826
46c9550f
BS
5827 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
5828 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
5829 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
5830 simplify_set, simplify_logical, expand_compound_operation,
5831 make_extraction, force_to_mode, if_then_else_cond, extended_count,
5832 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
5833 record_value_for_reg): Likewise.
5834 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
5835 * simplify-rtx. c (simplify_unary_operation_1,
5836 simplify_binary_operation_1, simplify_const_relational_operation):
5837 Likewise.
5838
5511bc5a
BS
5839 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
5840 instead of GET_MODE_BITSIZE where appropriate.
5841 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
5842 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
5843 init_num_sign_bit_copies_in_rep): Likewise.
5844 * cse.c (fold_rtx, cse_insn): Likewise.
5845 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
5846 * simplify-rtx.c (simplify_unary_operation_1,
5847 simplify_const_unary_operation, simplify_binary_operation_1,
5848 simplify_const_binary_operation, simplify_ternary_operation,
5849 simplify_const_relational_operation, simplify_subreg): Likewise.
5850 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
5851 simplify_if_then_else, simplify_set, expand_compound_operation,
5852 expand_field_assignment, make_extraction, if_then_else_cond,
5853 make_compound_operation, force_to_mode, make_field_assignment,
5854 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
5855 extended_count, try_widen_shift_mode, simplify_shift_const_1,
5856 simplify_comparison, record_promoted_value, simplify_compare_const,
5857 record_dead_and_set_regs_1): Likewise.
5858
d58c1a38
BS
5859 Revert:
5860 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
5861 shift_truncation_mask hook instead of performing modulo by width.
5862 Compare against mode precision, not bitsize.
d58c1a38 5863 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 5864 Use shift_truncation_mask instead of constructing the value manually.
d58c1a38 5865
76594d53
MM
58662011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5867
5868 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
5869 declaration.
5870 (rs6000_save_toc_in_prologue_p): Ditto.
5871
5872 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
5873 up the static chain (r11) during indirect function calls.
5874 (-msave-toc-indirect): New undocumented debug switch.
5875
5876 * config/rs6000/rs6000.c (struct machine_function): Add
5877 save_toc_in_prologue field to note whether the prologue needs to
5878 save the TOC value in the reserved stack location.
5879 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
5880 to save the TOC in the prologue, do so.
5881 (rs6000_trampoline_init): Don't allow creating AIX style
5882 trampolines if -mno-r11 is in effect.
5883 (rs6000_call_indirect_aix): New function to create AIX style
5884 indirect calls, adding support for -mno-r11 to suppress loading
5885 the static chain, and saving the TOC in the prologue instead of
5886 the call body.
5887 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
5888 TOC in the prologue.
5889
5890 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
5891 register numbers.
5892 (TOC_REGNUM): Ditto.
5893 (STATIC_CHAIN_REGNUM): Ditto.
5894 (ARG_POINTER_REGNUM): Ditto.
5895 (SFP_REGNO): Delete, unused.
5896 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
5897 function descriptor offsets.
5898 (TOC_SAVE_OFFSET_64BIT): Ditto.
5899 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
5900 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
5901 (AIX_FUNC_DESC_SC_32BIT): Ditto.
5902 (AIX_FUNC_DESC_SC_64BIT): Ditto.
f9610d20
UB
5903 (ptrload): New mode attribute for the appropriate load of a pointer.
5904 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
76594d53
MM
5905 (call_indirect_aix64): Ditto.
5906 (call_value_indirect_aix32): Ditto.
5907 (call_value_indirect_aix64): Ditto.
5908 (call_indirect_nonlocal_aix32_internal): Ditto.
5909 (call_indirect_nonlocal_aix32): Ditto.
5910 (call_indirect_nonlocal_aix64_internal): Ditto.
5911 (call_indirect_nonlocal_aix64): Ditto.
5912 (call): Rewrite AIX indirect function calls. Add support for
5913 eliminating the static chain, and for moving the save of the TOC
5914 to the function prologue.
5915 (call_value): Ditto.
5916 (call_indirect_aix<ptrsize>): Ditto.
5917 (call_indirect_aix<ptrsize>_internal): Ditto.
5918 (call_indirect_aix<ptrsize>_internal2): Ditto.
5919 (call_indirect_aix<ptrsize>_nor11): Ditto.
5920 (call_value_indirect_aix<ptrsize>): Ditto.
5921 (call_value_indirect_aix<ptrsize>_internal): Ditto.
5922 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5923 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5924 (call_nonlocal_aix32): Relocate in the rs6000.md file.
5925 (call_nonlocal_aix64): Ditto.
5926
5927 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
5928 -mno-r11 documentation.
5929
49d6830d
JW
59302011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5931
5932 PR other/49658
5933 * doc/extend.texi (Compound Literals): Fix typo.
5934
c884924f
JG
59352011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
5936
f9610d20 5937 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
c884924f 5938
bf588455
BS
59392011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
5940
5941 * configure.ac (plugin-version.h): Generate
5942 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
5943 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
5944 macros.
5945
5946 * configure: Regenerate.
5947
5948 * doc/plugins.texi (Building GCC plugins): Mention
5949 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
5950
d0edd768
BS
59512011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5952
5953 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
5954 * combine.c (make_extraction, gen_lowpart_or_truncate,
5955 apply_distributive_law, simplify_comparison,
5956 reg_truncated_to_mode, record_truncated_value): Use it.
5957 * cse.c (notreg_cost): Likewise.
5958 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
5959 * expr.c (convert_move, convert_modes): Likewise.
5960 * optabs.c (expand_binop, expand_unop): Likewise.
5961 * postreload.c (move2add_last_label): Likewise.
5962 * regmove.c (optimize_reg_copy_3): Likewise.
5963 * rtlhooks.c (gen_lowpart_general): Likewise.
5964 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5965
e5cabdfb
JM
59662011-07-06 Joseph Myers <joseph@codesourcery.com>
5967
5968 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
5969
2d0c270f
BS
59702011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5971
5972 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
5973 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
5974 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
5975 (simplify_const_unary_operation, simplify_binary_operation_1,
f9610d20
UB
5976 simplify_const_binary_operation, simplify_const_relational_operation):
5977 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2d0c270f
BS
5978 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
5979 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
5980 simplify_shift_const_1, simplify_comparison): Likewise.
5981 * expr.c (convert_modes): Likewise.
5982 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
f9610d20 5983 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2d0c270f
BS
5984 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
5985
f9c08345
BS
5986 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
5987
6d6c9525
RG
59882011-07-06 Richard Guenther <rguenther@suse.de>
5989
5990 PR tree-optimization/49645
5991 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
5992 register variables.
5993 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
5994 in type qualification here ...
5995 (copy_reference_ops_from_ref): ... not here.
5996 (vn_reference_lookup_3): ... or here.
5997 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
5998 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
5999
d1a6ec10
ILT
60002011-07-06 Ian Lance Taylor <iant@google.com>
6001
6002 * doc/install.texi (Configuration): It's
6003 --enable-gnu-indirect-function, not --enable-indirect-function.
6004
ff3e08af
BS
60052011-07-06 Bernd Schmidt <bernds@codesourcery.com>
6006
6007 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
6008 shift_truncation_mask hook instead of performing modulo by width.
6009 Compare against mode precision, not bitsize.
ff3e08af 6010 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 6011 Use shift_truncation_mask instead of constructing the value manually.
ff3e08af 6012
a369b639
L
60132011-07-06 H.J. Lu <hongjiu.lu@intel.com>
6014
6015 PR middle-end/47383
6016 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
6017 address computation and convert to address_mode if needed.
6018
1a072294
RG
60192011-07-06 Richard Guenther <rguenther@suse.de>
6020
6021 * tree.c (build_common_tree_nodes_2): Merge with
6022 build_common_tree_nodes.
6023 * tree.h (build_common_tree_nodes): Adjust prototype.
6024 (build_common_tree_nodes_2): Remove.
6025 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
6026 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
6027
f2c3a8ce
JJ
60282011-07-05 Jakub Jelinek <jakub@redhat.com>
6029
6030 PR tree-optimization/49618
6031 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
6032 t recurse on the decl.
6033 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
6034 return true if expr isn't known to be defined in current
6035 TU or some other LTO partition.
6036
3aa439ed
MM
60372011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6038
6039 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
6040 override CASE_VALUES_THRESHOLD.
6041
6042 * stmt.c (toplevel): Include params.h.
6043 (case_values_threshold): Use the --param case-values-threshold
6044 value if non-zero, otherwise use machine dependent value.
6045 (expand_case): Use case_values_threshold.
6046
6047 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
6048
6049 * doc/invoke.texi (--param case-values-threshold): Document.
6050
49956667
RH
60512011-07-05 Richard Henderson <rth@redhat.com>
6052
6053 * dwarf2out.c (dwarf2out_cfi_label): Make static.
6054 (dwarf2out_flush_queued_reg_saves): Make static.
6055 (dwarf2out_reg_save): Remove.
6056 (dwarf2out_return_save): Remove.
6057 (dwarf2out_return_reg): Remove.
6058 (dwarf2out_reg_save_reg): Remove.
6059 (dwarf2out_def_cfa): Merge into ...
6060 (dwarf2out_frame_init): ... here.
6061 * dwarf2out.h, tree.h: Remove declarations as necessary.
6062
9f2ff8e5
RH
60632011-07-05 Richard Henderson <rth@redhat.com>
6064
c2b40eba
RH
6065 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
6066 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6067 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
6068 the alloc insn.
6069
7d3c6cd8
RH
6070 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
6071 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
6072 (process_epilogue): Don't call dwarf2out_def_cfa.
6073
5f740973
RH
6074 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
6075 indicate the return address save.
6076 (process_cfa_register): Likewise.
6077
a1880147
RH
6078 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
6079 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
6080
9f2ff8e5
RH
6081 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
6082 for ar.pfs save at alloc insn.
6083
ddc6e7d6
RH
60842011-07-05 Richard Henderson <rth@redhat.com>
6085
6086 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
6087 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6088 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
6089 stack pointer save.
6090 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
6091 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
6092 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
6093 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
6094
a3515605
RH
60952011-07-05 Richard Henderson <rth@redhat.com>
6096
6097 * config/vax/vax.md (define_c_enum unspecv): New. Define the
6098 VUNSPEC_* constants here instead of via define_constants.
6099 (VUNSPEC_PEM): New constant.
6100 (procedure_entry_mask): New insn.
6101 (prologue): New expander.
6102 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
6103 (vax_expand_prologue): Rename from vax_output_function_prologue;
6104 emit rtl instead of text.
6105 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6106 (print_operand): Add 'x' prefix.
6107
a7adbbcb
L
61082011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6109
6110 PR middle-end/47715
6111 * calls.c (precompute_register_parameters): Promote the function
6112 argument before checking non-legitimate constant.
6113
cec11ec4
SP
61142011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6115
6116 PR tree-optimization/47654
6117 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
6118 (lst_do_strip_mine_loop): Return an int.
6119 (lst_do_strip_mine): Same.
6120 (scop_do_strip_mine): Same.
6121 (scop_do_block): Loop blocking should strip-mine at least two loops.
6122 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
6123 (scop_do_interchange): Same.
6124 * graphite-poly.h (scop_do_interchange): Update declaration.
6125 (scop_do_strip_mine): Same.
6126
9b0d314a
SP
61272011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6128
6129 * graphite-clast-to-gimple.c (precision_for_value): Removed.
6130 (precision_for_interval): Removed.
6131 (gcc_type_for_interval): Use mpz_sizeinbase.
6132
81d6d080
SP
61332011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6134
6135 * graphite-ppl.h (value_max): Correct computation of max.
6136
369e3430
SP
61372011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6138
6139 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
6140
fce5dddd
RG
61412011-07-05 Richard Guenther <rguenther@suse.de>
6142
6143 * c-decl.c (c_init_decl_processing): Defer building common
6144 tree nodes to c_common_nodes_and_builtins.
6145
12037899
RL
61462011-07-05 Razya Ladelsky <razya@il.ibm.com>
6147
6148 PR tree-optimization/49580
f9610d20 6149 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12037899 6150 the loop's number of iterations.
f9610d20
UB
6151 * tree-parloops.c (transform_to_exit_first_loop): Add the
6152 handling of the loop's number of iterations before the call
12037899 6153 to gimple_duplicate_sese_tail.
28b21ebb 6154 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
6155 condition stmt to the preheader instead of iters_bb.
6156
509a31f8
L
61572011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6158
6159 PR rtl-optimization/47449
6160 * fwprop.c (forward_propagate_subreg): Don't propagate hard
6161 register nor zero/sign extended hard register.
6162
39becbac
RG
61632011-07-05 Richard Guenther <rguenther@suse.de>
6164
6165 PR tree-optimization/49518
6166 PR tree-optimization/49628
6167 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
6168 irrelevant and invariant data-references.
6169 (vect_analyze_data_ref_access): For invariant loads clear the
6170 group association.
6171
15923c25
JJ
61722011-07-04 Jakub Jelinek <jakub@redhat.com>
6173
af421d9c
JJ
6174 PR rtl-optimization/49619
6175 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
6176 pass VOIDmode as op0_mode to recursive call, and return temp even
6177 when different from tor, just if it is not IOR of the original
6178 PLUS arguments.
6179
707f9919
JJ
6180 PR rtl-optimization/49472
6181 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
6182 negating MULT, negate the second operand instead of first.
6183 (simplify_binary_operation_1) <case MULT>: If one operand is
f9610d20
UB
6184 a NEG and the other is MULT, don't attempt to optimize by negation
6185 of the MULT operand if it only moves the NEG operation around.
707f9919 6186
15923c25
JJ
6187 PR debug/49602
6188 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
6189 get_current_def return value if it can't be trusted to be
6190 the current value of the variable in the current bb.
6191
0d5e0c1b
UB
61922011-07-04 Uros Bizjak <ubizjak@gmail.com>
6193
6194 PR target/49600
6195 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
6196 general register to memory for !TARGET_INTER_UNIT_MOVES.
6197
db297e20
GJL
61982011-07-04 Georg-Johann Lay <avr@gjlay.de>
6199
6200 PR target/44643
6201 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
6202 instead of TREE_READONLY.
6203
f451d14d
GJL
62042011-07-04 Georg-Johann Lay <avr@gjlay.de>
6205
6206 * doc/extend.texi (AVR Built-in Functions): Update documentation
6207 of __builtin_avr_fmul*.
0d5e0c1b 6208 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
6209 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
6210 * config/avr/avr.md (fmul): Rename to fmul_insn.
6211 (fmuls): Rename to fmuls_insn.
6212 (fmulsu): Rename to fmulsu_insn.
6213 (fmul,fmuls,fmulsu): New expander.
6214 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
6215 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
6216 * config/avr/libgcc.S (__fmul): New function.
6217 (__fmuls): New function.
6218 (__fmulsu,__fmulsu_exit): New function.
6219
30f1e6de
RG
62202011-07-04 Richard Guenther <rguenther@suse.de>
6221
6222 PR tree-optimization/49615
6223 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
6224 basic-block index check.
6225
6dab9931
GJL
62262011-07-04 Georg-Johann Lay <avr@gjlay.de>
6227
6228 * longlong.h (count_leading_zeros, count_trailing_zeros,
6229 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
6230 resp. 64.
6231
b5066d8b
IR
62322011-07-03 Ira Rosen <ira.rosen@linaro.org>
6233
6234 PR tree-optimization/49610
6235 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
6236 a basic block.
6237
bc712852
EB
62382011-07-02 Eric Botcazou <ebotcazou@adacore.com>
6239 Olivier Hainque <hainque@adacore.com>
6240 Nicolas Setton <setton@adacore.com>
6241
6242 * tree.h (TYPE_ARTIFICIAL): New flag.
6243 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
6244 the DIE of the type if it is artificial.
6245 (gen_array_type_die): Likewise.
6246 (gen_enumeration_type_die): Likewise.
6247 (gen_struct_or_union_type_die): Likewise.
6248 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
6249 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
6250
8b1bdcc5
JJ
62512011-07-01 Jakub Jelinek <jakub@redhat.com>
6252
6253 * tree-object-size.c (pass_through_call): Handle
6254 BUILT_IN_ASSUME_ALIGNED.
6255
06e88d73
MJ
62562011-07-01 Martin Jambor <mjambor@suse.cz>
6257
6258 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
6259
6bbec3e1
L
62602011-07-01 H.J. Lu <hongjiu.lu@intel.com>
6261
6262 PR middle-end/48016
6263 * explow.c (update_nonlocal_goto_save_area): Use proper mode
6264 for stack save area.
6265 * function.c (expand_function_start): Likewise.
6266
e8fdf1cd
RG
62672011-07-01 Richard Guenther <rguenther@suse.de>
6268
6269 PR middle-end/49596
6270 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
6271 may have unknown refs.
6272
80d3dd38
KT
62732011-07-01 Kai Tietz <ktietz@redhat.com>
6274
6275 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
6276
179fc656
RO
62772011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6278
6279 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
6280 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
6281 (Specific, mips-sgi-irix6): Likewise.
6282
14a393a3
RO
62832011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6284
6285 PR libmudflap/49549
6286 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
6287
3aecd443
JJ
62882011-07-01 Jakub Jelinek <jakub@redhat.com>
6289
6290 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
6291 [idx]= and [idx1 ... idx2]= before initializers if needed for
6292 array initializers.
6293
7474f719
CL
62942011-07-01 Chen Liqin <liqin.gcc@gmail.com>
6295
6296 * config.gcc (score-*-elf): Remove score7.o.
6297 * config/score/t-score-elf: Likewise.
6298 * config/score/score.c: Merge score7 to score.c and
6299 remove forwarding functions.
6300 * config/score/score7.c: Deleted.
6301 * config/score/score7.h: Deleted.
6302
ab70d825
RG
63032011-07-01 Richard Guenther <rguenther@suse.de>
6304
6305 PR tree-optimization/49603
0d5e0c1b 6306 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 6307
1ac93f10
MJ
63082011-06-30 Martin Jambor <mjambor@suse.cz>
6309
6310 * tree-sra.c (struct access): Rename total_scalarization to
6311 grp_total_scalarization
6312 (completely_scalarize_var): New function.
6313 (sort_and_splice_var_accesses): Set total_scalarization in the
6314 representative access.
6315 (analyze_access_subtree): Propagate total scalarization accross the
6316 tree, no holes in totally scalarized trees, simplify coverage
6317 computation.
6318 (analyze_all_variable_accesses): Call completely_scalarize_var instead
6319 of completely_scalarize_record.
6320
97f309c3
RH
63212011-06-30 Richard Henderson <rth@redhat.com>
6322
6323 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
6324 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
6325 * config/i386/i386.c: Don't include dwarf2out.h.
6326 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
6327 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
6328 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
6329 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
6330 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
6331
ef284364
RH
63322011-06-30 Richard Henderson <rth@redhat.com>
6333
6334 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
6335 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6336 * final.c (final_scan_insn): Look for it, and invoke
6337 dwarf2out_frame_debug before the insn if found.
6338
c8412f97
RH
63392011-06-30 Richard Henderson <rth@redhat.com>
6340
6341 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
6342 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
6343
e3f903d8
RH
63442011-06-30 Richard Henderson <rth@redhat.com>
6345
6346 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
6347 Define a vector of this type.
6348 (regs_saved_in_regs): Use a VEC.
6349 (num_regs_saved_in_regs): Remove.
6350 (compare_reg_or_pc): New.
6351 (record_reg_saved_in_reg): Split out from...
6352 (dwarf2out_flush_queued_reg_saves): ... here.
6353 (clobbers_queued_reg_save): Update for VEC.
6354 (reg_saved_in): Likewise.
6355 (dwarf2out_frame_debug_init): Likewise.
6356 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
6357 (dwarf2out_frame_debug_cfa_register): Likewise.
6358
e2c9010a
EB
63592011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6360
6361 PR tree-optimization/49572
6362 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
6363 type of the RHS instead of that of the LHS for the expression type.
6364
dbb07bbc
EB
63652011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6366
6367 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
6368 unconditionally.
6369
1565af08
RG
63702011-06-30 Richard Guenther <rguenther@suse.de>
6371
6372 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
6373 * tree-ssa-structalias.c (create_variable_info_for): Do not
6374 add initial constraints for non-var-decls. Properly handle
6375 globals in other ltrans partitions.
6376 (intra_create_variable_infos): Manually create constraints for
6377 the fake no-alias parameter.
6378 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
6379 and assert there are no clones.
6380
42373e0b
RG
63812011-06-30 Richard Guenther <rguenther@suse.de>
6382
6383 PR tree-optimization/46787
6384 * tree-data-ref.c (dr_address_invariant_p): Remove.
6385 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 6386 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
6387 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6388 invariant loads.
6389
7aa62ea1
MJ
63902011-06-30 Martin Jambor <mjambor@suse.cz>
6391
6392 PR tree-optimization/49094
6393 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
6394 (build_accesses_from_assign): Use it.
6395
f60f32b3
JJ
63962011-06-30 Jakub Jelinek <jakub@redhat.com>
6397
d9048d16
JJ
6398 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6399 handling of BUILT_IN_ASSUME_ALIGNED.
6400
f60f32b3
JJ
6401 PR debug/49364
6402 * dwarf2out.c (output_abbrev_section): Don't return early
6403 if abbrev_die_table_in_use is 1.
6404 (dwarf2out_finish): Instead don't call output_abbrev_section
6405 nor emit abbrev_section_label in that case.
6406
7cce15d4
NC
64072011-06-30 Nick Clifton <nickc@redhat.com>
6408
6409 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
6410 for the V850E.
6411
ce7e54ff
JJ
64122011-06-30 Jakub Jelinek <jakub@redhat.com>
6413
6414 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6415 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
6416
83197f37
IR
64172011-06-30 Ira Rosen <ira.rosen@linaro.org>
6418
6419 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6420 both pattern and original statements if necessary.
6421 (vect_transform_loop): Likewise.
6422 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
6423 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
6424 Mark the pattern statement only if the original statement doesn't
6425 have its own uses.
6426 (process_use): Call vect_mark_relevant with additional parameter.
6427 (vect_mark_stmts_to_be_vectorized): Likewise.
6428 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
6429 (vect_analyze_stmt): Handle both pattern and original statements
6430 if necessary.
6431 (vect_transform_stmt): Don't store vectorized pattern statement
6432 in the original statement.
6433 (vect_is_simple_use_1): Use related pattern statement only if the
6434 original statement is irrelevant.
6435 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6436
dbb07bbc 64372011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 6438
dbb07bbc
EB
6439 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
6440 option.
6441 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
6442 entry.
5c0d88e6
CF
6443 (TARGET_AVX128_OPTIMAL): New definition.
6444 * config/i386/i386.c (initial_ix86_tune_features): Initialize
6445 X86_TUNE_AVX128_OPTIMAL entry.
6446 (ix86_option_override_internal): Enable the generation
6447 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
6448 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
6449 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
6450
931050d0
EB
64512011-06-29 Eric Botcazou <ebotcazou@adacore.com>
6452
6453 PR tree-optimization/49539
6454 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
6455 names by means of stmt_references_abnormal_ssa_name.
6456 (associate_plusminus): Call can_propagate_from before propagating
6457 from definition statements.
6458 (ssa_forward_propagate_and_combine): Remove superfluous newline.
6459
dfedbe40
RG
64602011-06-29 Richard Guenther <rguenther@suse.de>
6461
6462 * doc/invoke.texi: Document -scev dump modifier.
6463 * tree-pass.h (TDF_SCEV): New dump flag.
6464 * tree-dump.c (dump_option_value_in): Add scev.
6465 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
6466 * tree-scalar-evolution.c: Likewise.
6467
3a86cfeb
NS
64682011-06-29 Nathan Sidwell <nathan@codesourcery.com>
6469
6470 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
6471 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
6472 (__gnu_unwind_pr_common): Reconstruct additional indirection
6473 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 6474
f3678bfb
UW
64752011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6476
6477 PR rtl-optimization/49114
6478 * reload.c (struct replacement): Remove SUBREG_LOC member.
6479 (push_reload): Do not set it.
6480 (push_replacement): Likewise.
6481 (subst_reload): Remove dead code.
6482 (copy_replacements): Remove assertion.
6483 (copy_replacements_1): Do not handle SUBREG_LOC.
6484 (move_replacements): Likewise.
6485 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
6486 Detect subregs via recursive descent instead of via SUBREG_LOC.
6487
433ba0a5 64882011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 6489
433ba0a5
GJL
6490 * config/avr/avr.c (avr_encode_section_info): Dispatch to
6491 default_encode_section_info.
6492
73f6eabc
RS
64932011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
6494
6495 PR tree-optimization/49545
6496 * builtins.c (get_object_alignment_1): Update function comment.
6497 Do not use DECL_ALIGN for functions, but test
6498 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
6499 * fold-const.c (get_pointer_modulus_and_residue): Don't check
6500 for functions here.
6501 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6502
a0f33d3a
JJ
65032011-06-29 Jakub Jelinek <jakub@redhat.com>
6504
6505 PR debug/49567
0d5e0c1b
UB
6506 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
6507 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 6508
946c8b23 65092011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 6510
946c8b23 6511 PR target/34734
0d5e0c1b 6512 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
6513 about uninitialized data attributed 'progmem' from here...
6514 (avr_encode_section_info): ...to this new function.
6515 (TARGET_ENCODE_SECTION_INFO): New define.
6516 (avr_section_type_flags): For data in ".progmem.data", remove
6517 section flag SECTION_WRITE.
6518
9a63dee4 65192011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 6520
9a63dee4
GJL
6521 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
6522 _xmulhisi3_exit.
6523 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
6524 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
6525 (__umulhisi3): Ditto.
6526 * config/avr/avr.md (mulhisi3): New insn expender.
6527 (umulhisi3): New insn expender.
6528 (*mulhisi3_call): New insn.
6529 (*umulhisi3_call): New insn.
6530
4374ce45
JM
65312011-06-28 Joseph Myers <joseph@codesourcery.com>
6532
6533 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
6534
94759030
RH
65352011-06-28 Richard Henderson <rth@redhat.com>
6536
6537 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
6538 all code and arguments that handled pushes. Update all callers.
6539
d018b46e
RH
65402011-06-28 Richard Henderson <rth@redhat.com>
6541
6542 * config/arm/arm.c (arm_output_function_prologue): Don't call
6543 thumb1_output_function_prologue.
6544 (arm_expand_prologue): Avoid dead store.
6545 (number_of_first_bit_set): Use ctz_hwi.
6546 (thumb1_emit_multi_reg_push): New.
6547 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
6548 to emit the entire prologue as rtl.
6549 (thumb1_output_interwork): Split out from
6550 thumb1_output_function_prologue.
6551 (thumb1_output_function_prologue): Remove.
6552 (arm_attr_length_push_multi): Handle thumb1.
6553 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
6554 (prologue_thumb1_interwork): New.
6555 (*push_multi): Allow thumb1; use push_mult_memory_operand.
6556 * config/arm/predicates.md (push_mult_memory_operand): New.
6557
97269a23
EB
65582011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6559
6560 * config/sparc/sync.md (*stbar): Delete.
6561 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
6562
4a9206ce
EB
65632011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6564
6565 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
6566
6138f9bd
RO
65672011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6568
6569 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
6570 (TARGET_64BIT_DEFAULT): Define.
6571 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
6572 of tm_file.
6573 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
6574
a7d0d30f
JM
65752011-06-28 Joseph Myers <joseph@codesourcery.com>
6576
6577 * common.opt (in_lto_p): New Variable entry.
6578 * flags.h (in_lto_p): Move to common.opt.
6579 * gcc.c: Include params.h.
6580 (set_option_handlers): Also use common_handle_option and
6581 target_handle_option.
0d5e0c1b 6582 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
6583 * opts.c (debug_type_names): Move from toplev.c.
6584 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
6585 (common_handle_option): Return early in the driver for some options.
6586 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
6587 opts pointer.
a7d0d30f
JM
6588 * toplev.c (in_lto_p): Move to common.opt.
6589 (debug_type_names): Move to opts.c.
6590 * Makefile.in (OBJS): Remove opts.o.
6591 (OBJS-libcommon-target): Add opts.o.
6592 (gcc.o): Update dependencies.
6593
420863a9
KT
65942011-06-28 Kai Tietz <ktietz@redhat.com>
6595
0d5e0c1b 6596 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 6597
0498a2be
RR
65982011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6599
6600 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
6601 with '=' constraint modifier.
6602 (*divdf3_vfp): Likewise.
6603 ("*mulsf3_vfp"): Likewise.
6604 ("*muldf3_vfp"): Likewise.
6605 ("*mulsf3negsf_vfp"): Likewise.
6606 ("*muldf3negdf_vfp"): Likewise.
6607
4a68b724
NC
66082011-06-28 Nick Clifton <nickc@redhat.com>
6609
6610 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
6611 relaxation when performing an incremental link.
6612
72a32729
KT
66132011-06-28 Kai Tietz <ktietz@redhat.com>
6614
6615 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
6616 within BB from last to first.
6617
88a00ef7
JM
66182011-06-28 Joseph Myers <joseph@codesourcery.com>
6619
6620 * genattr-common.c: New. Based on genattr.c.
6621 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
6622 (MOSTLYCLEANFILES): Add insn-attr-common.h.
6623 (opts.o): Update dependencies.
6624 (.PRECIOUS): Add insn-attr-common.h.
6625 (simple_rtl_generated_h): Add insn-attr-common.h.
6626 (build/genattr-common.o): New.
6627 (genprogrtl): Add attr-common.
6628 * genattr.c (main): Include insn-attr-common.h. Don't generate
6629 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 6630 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 6631
880962ac
GJL
66322011-06-28 Georg-Johann Lay <avr@gjlay.de>
6633
4a68b724 6634 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 6635 avr-*-* and avr-*-rtems* targets.
4a68b724 6636
880962ac
GJL
6637 * config/avr/elf.h: New file.
6638 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
6639 (TARGET_ASM_SELECT_SECTION): Define.
6640 (INIT_SECTION_ASM_OP): Undefine.
6641 (FINI_SECTION_ASM_OP): Undefine.
6642 (READONLY_DATA_SECTION_ASM_OP): Undefine.
6643 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
6644 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
6645 * config/avr/avr.h:
6646 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
6647 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
6648 (MAX_OFILE_ALIGNMENT): Move to elf.h.
6649 (STRING_LIMIT): Move to elf.h.
6650 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
6651 (ASM_DECLARE_OBJECT_NAME): Remove.
6652 (ESCAPES): Remove.
6653 (ASM_OUTPUT_SKIP): Remove.
6654 (DWARF2_DEBUGGING_INFO): Remove.
6655 (OBJECT_FORMAT_ELF): Remove.
6656 (USER_LABEL_PREFIX): Remove.
6657 (ASM_OUTPUT_EXTERNAL): Remove.
6658 (ASM_OUTPUT_ASCII): Remove.
6659 (TYPE_ASM_OP): Remove.
6660 (SIZE_ASM_OP): Remove.
6661 (WEAK_ASM_OP): Remove.
6662 (STRING_ASM_OP): Remove.
6663 (SET_ASM_OP): Remove.
6664 (ASM_WEAKEN_LABEL): Remove.
6665 (TYPE_OPERAND_FMT): Remove.
6666 (ASM_DECLARE_FUNCTION_SIZE): Remove.
6667 (ASM_FINISH_DECLARE_OBJECT): Remove.
6668 (NO_DOLLAR_IN_LABEL): Remove.
6669 (ASM_GENERATE_INTERNAL_LABEL): Remove.
6670 (ASM_OUTPUT_CASE_LABEL): Remove.
6671 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
6672 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
6673 (gas_output_ascii): Remove.
6674 (gas_output_limited_string): Remove.
6675 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
6676 * config/avr/avr-protos.h
6677 (gas_output_ascii): Remove prototye.
6678 (gas_output_limited_string): Remove prototype.
6679
a1b5eb93
RE
66802011-06-27 Richard Earnshaw <rearnsha@arm.com>
6681
6682 PR target/48637
6683 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
6684 asm operands.
6685
310e71a8
JH
66862011-06-27 Jan Hubicka <jh@suse.cz>
6687
4a9206ce
EB
6688 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
6689 node instead of references in node.
310e71a8 6690
171da07a
RH
66912011-06-27 Richard Henderson <rth@redhat.com>
6692
6693 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
6694 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
6695 inside ifdef.
6696
dc2a58da
JJ
66972011-06-27 Jakub Jelinek <jakub@redhat.com>
6698
56300785
JJ
6699 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
6700
45d439ac
JJ
6701 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
6702 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
6703 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
6704 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
6705 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
6706 (evaluate_stmt, execute_fold_all_builtins): Handle
6707 BUILT_IN_ASSUME_ALIGNED.
6708 * tree-ssa-dce.c (propagate_necessity): Likewise.
6709 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6710 call_may_clobber_ref_p_1): Likewise.
6711 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
6712 (expand_builtin_assume_aligned): New function.
6713 * doc/extend.texi (__builtin_assume_aligned): Document.
6714
dc2a58da
JJ
6715 PR debug/49544
6716 * cselib.c (promote_debug_loc): If cselib_preserve_constants
6717 and l has two DEBUG_INSN owned locs instead of just one, adjust
6718 the second location's setting_insn too.
6719
0d72f628
RO
67202011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6721
6722 PR libmudflap/38738
6723 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
6724
bebd619e
NC
67252011-06-27 Nick Clifton <nickc@redhat.com>
6726
0d5e0c1b
UB
6727 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
6728 bit position of highest bit set into a count of the high zero bits.
bebd619e 6729
353b39fa
EB
67302011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6731
6732 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
6733
a7af037b
EB
67342011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6735
6736 PR lto/48492
6737 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
6738 to a NULL parent.
6739
1c86160a
RG
67402011-06-27 Richard Guenther <rguenther@suse.de>
6741
6742 PR tree-optimization/49394
6743 * passes.c (execute_one_pass): Restore current_pass after
6744 applying IPA transforms.
6745
5da49a9d
KT
67462011-06-27 Kai Tietz <ktietz@redhat.com>
6747
6748 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
6749 out of type precision after operation.
0d5e0c1b
UB
6750 (find_bswap): Take for limit value the integer auto-promotion
6751 into account.
5da49a9d 6752
9242213f
EB
67532011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6754
6755 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
6756 forward scan as well.
6757
db8b22ef
TG
67582011-06-27 Tristan Gingold <gingold@adacore.com>
6759
6760 PR target/44241
6761 * config/vms/vms-protos.h: New file.
6762 * config/vms/vms-crtlmap.map: New file.
6763 * config/vms/vms.c: New file.
6764 * config/vms/make-crtlmap.awk: New file.
6765 * config/vms/vms-crtl.h: File removed.
6766 * config/vms/vms-crtl-64.h: File removed.
6767 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
6768 * config/alpha/vms64.h: Do not include vms-crtl-64.h
6769 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
6770 clear some builtins on VMS. Calls vms_patch_builtins.
6771 (avms_asm_output_external): Remove.
6772 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
6773 (struct crtl_name_spec): Remove
6774 (DO_CTRL_NAMES): Remove.
6775 * config/ia64/vms.h (struct crtl_name_spec): Remove
6776 (DO_CTRL_NAMES): Remove.
6777 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
6778 clear some builtins on VMS. Calls vms_patch_builtins.
6779 (ia64_asm_output_external): Remove DO_CRTL_NAME.
6780 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 6781 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 6782
b213221d
TG
67832011-06-27 Tristan Gingold <gingold@adacore.com>
6784
6785 * config/alpha/alpha.c (alpha_end_function): Always generate .end
6786 directive on VMS.
6787
157b9300
EB
67882011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6789
6790 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
6791 the function receives nonlocal gotos.
6792
ccbf5bb4
RG
67932011-06-27 Richard Guenther <rguenther@suse.de>
6794
6795 PR tree-optimization/49536
6796 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6797 For non-scalar inner types use a scalar type according to
6798 the scalar inner mode.
6799
fe4cd14b
RG
68002011-06-27 Richard Guenther <rguenther@suse.de>
6801
6802 PR tree-optimization/49365
6803 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
6804
afc3f22f
RS
68052011-06-27 Richard Guenther <rguenther@suse.de>
6806
6807 PR tree-optimization/49169
6808 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
6809 the alignment of function decls.
6810
92590751 68112011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
6812
6813 PR target/47997
6814 * config/darwin.c (darwin_mergeable_string_section): Place string
6815 constants in '.cstring' rather than '.const' when CF/NSStrings are
6816 active.
6817
605354f3
EB
68182011-06-26 Eric Botcazou <ebotcazou@adacore.com>
6819
6820 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
6821 (emit_save_register_window): Likewise.
6822 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
6823 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
6824 Swap back %o7/%i7 in register naming.
6825
0e9197f5
IS
68262011-06-25 Iain Sandoe <iains@gcc.gnu.org>
6827
6828 PR driver/49371
6829 * config/darwin.c (darwin_override_options): Improve warning when
6830 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
6831 is given with fpie/fPIE.
6832 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
6833 * config/darwin9.h (PIE_SPEC): New.
53461199 6834
605354f3 68352011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
6836
6837 * timevar.c (timevar_print): Increase width for display of timevar
6838 name.
6839
f796c438
JJ
68402011-06-24 Jakub Jelinek <jakub@redhat.com>
6841
6842 PR c++/46400
6843 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
6844 instead of TYPE_CHAIN for chain_next for types.
6845
a7289eaf
RH
68462011-06-24 Richard Henderson <rth@redhat.com>
6847
6848 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
6849 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
6850 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
6851 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
6852 (sparc_flat_expand_prologue): Emit individual instructions
6853 instead of one of the above.
6854
c4b9a87e
ER
68552011-06-24 Easwaran Raman <eraman@google.com>
6856
6857 PR rtl-optimization/49429
6858 PR target/49454
6859 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
6860 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
6861 used to copy y into x.
6862 * calls.c (initialize_argument_information): Mark
6863 an argument addressable if it is passed by invisible reference.
6864 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
6865 if it is passed by reference.
6866
5ac6c59e
L
68672011-06-24 H.J. Lu <hongjiu.lu@intel.com>
6868
6869 PR rtl-optimization/49504
6870 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
6871 subtraction of a pointer in Pmode if pointers extend unsigned.
6872 (num_sign_bit_copies1): Likewise.
5ac6c59e 6873
b807e627
MJ
68742011-06-24 Martin Jambor <mjambor@suse.cz>
6875
6876 PR tree-optimizations/49516
6877 * tree-sra.c (sra_modify_assign): Choose the safe path for
6878 aggregate copies if we also did scalar replacements.
6879
9a1ea4b9
RR
68802011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6881
6882 PR target/49335
6883 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 6884 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 6885
949cfd0a
AK
68862011-06-24 Andi Kleen <ak@linux.intel.com>
6887
6888 * tree-sra.c (type_internals_preclude_sra_p): Add msg
6889 parameter. Split up ifs and report reason in *msg.
6890 (reject): Add.
6891 (find_var_candiate): Add msg variable.
6892 Split up ifs and report reason to reject.
6893 (find_param_candidates): Add msg variable.
6894 Pass msg to type_internals_preclude_sra_p.
6895
49e9c661 68962011-06-23 Jeff Law <law@redhat.com>
ad3577df 6897
b0c11403
JL
6898 PR middle-end/48770
6899 * reload.h (reload): Change to return a bool.
6900 * ira.c (ira): If requested by reload, run a fast DCE pass after
6901 reload has completed. Fix comment typo.
6902 * reload1.c (need_dce): New file scoped static.
6903 (reload): Set reload_completed here. Return whether or not a DCE
6904 pass after reload is needed.
6905 (delete_dead_insn): Set need_dce as needed.
6906
ad3577df
JL
6907 PR middle-end/49465
6908 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
6909 to detect threading through joiner block. If there was already
6910 an edge to the new target, then do not change the PHI nodes.
6911
7cf64710
JJ
69122011-06-23 Jakub Jelinek <jakub@redhat.com>
6913
6914 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
6915 get_pointer_alignment to see if base isn't sufficiently aligned.
6916
febb1302
JH
69172011-06-23 Jan Hubicka <jh@suse.cz>
6918
6919 PR tree-optimize/49373
6920 * tree-pass.h (all_late_ipa_passes): Declare.
6921 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
6922 (cgraph_optimize): Execute late passes; remove unreachable funcions
6923 after materialization.
6924 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
6925 LTOing.
febb1302
JH
6926 * passes.c (all_late_ipa_passes): Declare.
6927 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
6928 (init_optimization_passes): Move ipa_pta to late passes; schedule
6929 fixup_cfg at beggining of all_passes.
febb1302
JH
6930 (apply_ipa_transforms): New function.
6931 (execute_one_pass): When doing simple ipa pass, apply all transforms.
6932
4c77620d
JM
69332011-06-23 Joseph Myers <joseph@codesourcery.com>
6934
6935 * params.c: Include common/common-target.h. Don't include tm.h.
6936 (lang_independent_params): Move from toplev.c.
6937 (global_init_params): New.
6938 * params.h (global_init_params): Declare.
6939 * target.def (default_params): Move to common-target.def.
6940 * toplev.c (lang_independent_options): Remove.
6941 (lang_independent_params): Move to params.c.
6942 (general_init): Use global_init_params.
6943 * common/common-target.def (option_default_params): Move from
6944 target.def.
6945 * common/config/ia64/ia64-common.c: Include params.h.
6946 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6947 from ia64.c.
6948 * common/config/rs6000/rs6000-common.c: Include params.h.
6949 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6950 from rs6000.c.
6951 * common/config/sh/sh-common.c: Include params.h.
6952 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6953 from sh.c.
6954 * common/config/spu/spu-common.c: Include params.h.
6955 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6956 from spu.c.
6957 * config/ia64/ia64.c (ia64_option_default_params,
6958 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
6959 * config/rs6000/rs6000.c (rs6000_option_default_params,
6960 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
6961 * config/sh/sh.c (sh_option_default_params,
6962 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
6963 * config/spu/spu.c (spu_option_default_params,
6964 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
6965 * Makefile.in (OBJS): Remove params.o.
6966 (OBJS-libcommon-target): Add params.o.
6967 (params.o, $(common_out_object_file)): Update dependencies.
6968 * doc/tm.texi: Regenerate.
6969
6aad1e38
AM
69702011-06-23 Alan Modra <amodra@gmail.com>
6971
6972 PR bootstrap/49383
6973 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
6974 invocation for 2011-06-09 changes.
6975
4fb489e7
JJ
69762011-06-22 Jakub Jelinek <jakub@redhat.com>
6977
fb79f500
JJ
6978 PR libgomp/49490
6979 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
6980 use n ceil/ nthreads size for the first n % nthreads threads in the
6981 team instead of all threads except for the last few ones which
fb79f500
JJ
6982 get less work or none at all.
6983
4fb489e7
JJ
6984 PR debug/49496
6985 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
6986 uses.
6987
9c7c9f10
RG
69882011-06-22 Richard Guenther <rguenther@suse.de>
6989
6990 PR tree-optimization/49493
6991 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
6992 Refer to the alias target of variables.
6993 (associate_varinfo_to_alias_1): Remove.
6994 (ipa_pta_execute): Do not associate aliases with anything.
6995 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
6996 (cgraph_function_node): Likewise.
6997 (cgraph_function_or_thunk_node): Likewise.
6998 (varpool_variable_node): Likewise.
6999
7cf13d1f
NS
70002011-06-22 Nathan Sidwell <nathan@codesourcery.com>
7001
0d5e0c1b 7002 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
7003 * config.gcc (arm*-*-linux*): Default to gnu tls.
7004 (arm*-*-*): Add --with-tls option.
7005 (all_defaults): Add 'tls'.
7006
78a8eb4e
RH
70072011-06-22 Richard Henderson <rth@redhat.com>
7008
7009 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
7010 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7011 (dwarf2out_frame_debug_cfa_window_save): Rename from
7012 dwarf2out_window_save; make static.
7013 * tree.h (dwarf2out_window_save): Don't declare.
7014
7015 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
7016 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
7017 (emit_save_register_window): Rename from gen_save_register_window;
7018 emit the insn and add REG_CFA_* notes.
7019 (sparc_expand_prologue): Update to match.
7020 * config/sparc/sparc.md (save_register_window_1): Simplify from
7021 save_register_window<P:mode>.
7022
3b4c46d7
L
70232011-06-22 H.J. Lu <hongjiu.lu@intel.com>
7024
7025 PR target/49497
7026 * config/i386/i386.md (*lea_general_2): Always allow SImode.
7027 (*lea_general_2_zext): Likewise.
7028 (imul to lea peepholes): Use const359_operand and check
7029 TARGET_PARTIAL_REG_STALL.
7030
7031 * config/i386/predicates.md (const359_operand): New.
7032
4399cf59
MM
70332011-06-22 Michael Matz <matz@suse.de>
7034
7035 * cgraphunit.c (assemble_thunk): Use correct return type.
7036
31a0c825 70372011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 7038 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
7039
7040 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
7041 (neon_output_shift_immediate): Ditto.
7042 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
7043 prototype.
7044 (neon_output_shift_immediate): Ditto.
7045 * config/arm/neon.md (vashl<mode>3): Modified constraint.
7046 (vashr<mode>3_imm): New insn pattern.
7047 (vlshr<mode>3_imm): Ditto.
7048 (vashr<mode>3): Modified constraint.
7049 (vlshr<mode>3): Ditto.
7050 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
7051 predicate.
7052 (imm_for_neon_rshift_operand): Ditto.
7053 (imm_lshift_or_reg_neon): Ditto.
7054 (imm_rshift_or_reg_neon): Ditto.
7055
7056 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
7057
ddb555ed
JJ
70582011-06-22 Jakub Jelinek <jakub@redhat.com>
7059
36dc1a88
JJ
7060 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
7061 builtin calls even if likelyvalue is not CONSTANT.
7062 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
7063 Return get_value_for_expr of first operand
7064 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
7065 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7066 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
7067 their non-checking counterparts.
7068 (call_may_clobber_ref_p_1): Likewise.
7069 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
7070 like their non-checking counterparts.
7071 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7072 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
7073 like their non-checking counterparts.
7074 (find_func_clobbers): Likewise.
7075 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
7076 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
7077
41cd4957
JJ
7078 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
7079 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
7080 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
7081 of base type reference as argument.
7082 (resolve_addr_in_expr): Likewise. Fix keep computation.
7083 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
7084 (convert_descriptor_to_mode): ... this. For wider types convert to
7085 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
7086 (typed_binop): New function.
7087 (scompare_loc_descriptor, ucompare_loc_descriptor,
7088 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
7089 default to unsigned type instead of signed.
7090
ddb555ed
JJ
7091 PR debug/47858
7092 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
7093 (gimple_build_debug_source_bind_stat): New prototype.
7094 (gimple_build_debug_source_bind): Define.
7095 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
7096 gimple_debug_source_bind_get_value,
7097 gimple_debug_source_bind_get_value_ptr,
7098 gimple_debug_source_bind_set_var,
7099 gimple_debug_source_bind_set_value): New inlines.
7100 * gimple.c (gimple_build_debug_source_bind_stat): New function.
7101 * gimple-pretty-print.c (dump_gimple_debug): Handle
7102 GIMPLE_DEBUG_SOURCE_BIND.
7103 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
7104 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7105 * tree-parloops.c (eliminate_local_variables,
7106 separate_decls_in_region): Likewise.
7107 (separate_decls_in_region_debug): Renamed from
7108 separate_decls_in_region_debug_bind. Handle
7109 gimple_debug_source_bind_p.
7110 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
7111 prototypes.
7112 (DECL_HAS_DEBUG_ARGS_P): Define.
7113 (struct tree_function_decl): Add has_debug_args_flag field.
7114 * tree.c (debug_args_for_decl): New variable.
7115 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
7116 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
7117 (rewrite_debug_stmt_uses): New function.
7118 (rewrite_stmt): Use it to rewrite debug stmt uses.
7119 * rtl.def (DEBUG_PARAMETER_REF): New.
7120 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
7121 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
7122 DEBUG_PARAMETER_REF.
7123 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
7124 * print-rtl.c (print_rtx): Likewise.
7125 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
7126 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
7127 debug stmts in the first bb.
7128 * tree-inline.c (remap_ssa_name): If remapping default def
7129 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
7130 a source bind debug stmt.
7131 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
7132 (maybe_move_debug_stmts_to_successors): Likewise.
7133 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
7134 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
7135 debug args vector from old_decl to new_decl.
7136 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
7137 or modified parameters, add debug bind stmts before call
0d5e0c1b 7138 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
7139 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
7140 on DECL_DEBUG_EXPRs from debug args vector.
7141 (expand_debug_source_expr): New function.
7142 (expand_debug_locations): Use it for source bind insns.
7143 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
7144 * var-tracking.c (prepare_call_arguments): Add debug args
7145 to call_arguments if any.
7146 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
7147 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
7148 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
7149 (get_ref_die_offset, parameter_ref_descriptor): New functions.
7150 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
7151 (gen_subprogram_die): Handle parameters identified by
7152 DEBUG_PARAMETER_REF.
7153
ccdc2164
NS
71542011-06-22 Nathan Sidwell <nathan@codesourcery.com>
7155
7156 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
7157 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
7158 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
7159 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
7160 (arm_tls_descseq_addr): New.
7161 (legitimize_tls_address): Add tlsdesc support.
7162 (arm_cannot_copy_insn_p): Check for tlscall.
7163 (arm_emit_tls_decoration): Likewise.
7164 * config/arm/arm.h (TARGET_GNU2_TLS): New.
7165 (OPTION_DEFAULT_SPECS): Add with-tls support.
7166 * config/arm/arm.md (R1_REGNUM): Define.
7167 (tlscall): New.
7168 * config/arm/arm.opt (tls_type): New enumeration type and values.
7169 (mtls-dialect): New switch.
7170 * config/arm/arm-opts.h (enum tls_type): New.
7171
70e41a6a
NP
71722011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
7173
7174 * attribs.c (register_attribute): Added assert to check that all
7175 attribute specs are registered with a name that is not empty and
7176 does not start with '_'.
7177 (decl_attributes): Avoid the lookup of the "naked" attribute spec
7178 if the function has no attributes.
7179 * tree.c (is_attribute_with_length_p): Removed.
7180 (is_attribute_p): Removed.
0d5e0c1b 7181 (private_is_attribute_p): New.
70e41a6a
NP
7182 (private_lookup_attribute): New.
7183 (lookup_attribute): Removed.
7184 (lookup_ident_attribute): New.
7185 (remove_attribute): Require the first argument to be in the form
7186 'text', not '__text__'. Updated asserts.
7187 (merge_attributes): Use lookup_ident_attributes instead of
7188 lookup_attribute.
7189 (merge_dllimport_decl_attributes): Use remove_attribute.
7190 (attribute_list_contained): Likewise.
7191 (attribute_list_equal): Immediately return 1 if the arguments are
7192 identical pointers.
7193 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
7194 'int'. Require the first argument to be in the form 'text', not
7195 '__text__'. Require the second argument to be an identifier.
7196 (lookup_attribute): Made inline. Require the first argument to be
7197 in the form 'text', not '__text__'.
7198 (private_is_attribute_p, private_lookup_attribute): New.
7199 Updated comments.
0d5e0c1b 7200
e0a8ecf2
AM
72012011-06-21 Andrew MacLeod <amacleod@redhat.com>
7202
7203 * builtins.c: Add sync_ or SYNC__ to builtin names.
7204 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
7205 * omp-low.c: Add sync_ or SYNC__ to builtin names.
7206
663827d3 72072011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 7208
663827d3
GJL
7209 PR target/33049
7210 * config/avr/avr.md (extzv): New expander.
7211 (*extzv): New insn.
7212 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
7213 * config/avr/constraints.md (C04): New constraint.
7214 * doc/md.texi (Machine Constraints): Document it.
7215
146aef0b
JJ
72162011-06-21 Jakub Jelinek <jakub@redhat.com>
7217
7218 PR middle-end/49489
7219 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
7220 unsignedp argument instead of 1 for clrsb_optab.
7221 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
7222 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
7223 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
7224 * optabs.c (widen_leading): Call widen_operand and expand_unop
7225 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 7226 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 7227
c0503294
GJL
72282011-06-21 Georg-Johann Lay <avr@gjlay.de>
7229
7230 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
7231
3801c801
BS
72322011-06-21 Bernd Schmidt <bernds@codesourcery.com>
7233
0bddee8e
BS
7234 * gensupport.c (add_define_attr): New static function.
7235 (is_predicable): Allow multi-alternative lists for the "predicable"
7236 attribute.
7237 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
7238 (process_one_cond_exec): Call alter_attrs_for_insn.
7239 * doc/md.texi (Defining Attributes): Mention some standard names.
7240 (Conditional Execution): Update documentation for "predicable".
7241
3801c801
BS
7242 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
7243 __builtin_clrsbll): Document.
7244 * doc/rtl.texi (clrsb): New entry.
7245 * optabs.c (widen_leading): Renamed from widen_clz. New argument
7246 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
7247 (expand_unop): Handle clrsb_optab.
7248 (init_optabs): Initialize it.
7249 * optabs.h (enum optab_index): New entry OTI_clrsb.
7250 (clrsb_optab): Define.
7251 * genopinit.c (optabs): Add an entry for it.
7252 * builtins.c (expand_builtin): Handle clrsb builtin functions.
7253 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
7254 BUILT_IN_CLRSBLL): New.
7255 * rtl.def (CLRSB): New code.
7256 * dwarf2out.c (mem_loc_descriptor): Handle it.
7257 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7258 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
7259 and popcount.
7260 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
7261 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
7262 (__ctzDI2): Move declaration.
7263 * config/bfin/bfin.md (clrsbsi2): New expander.
7264 (signbitssi2): Use the CLRSB rtx.
7265 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
7266 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
7267
55f01229
RG
72682011-06-21 Richard Guenther <rguenther@suse.de>
7269
637c11bd 7270 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 7271
5181cd6a
IR
72722011-06-21 Ira Rosen <ira.rosen@linaro.org>
7273
7274 PR tree-optimization/49478
7275 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
7276 with constant operand.
7277
e4ee3d70
RG
72782011-06-21 Richard Guenther <rguenther@suse.de>
7279
7280 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 7281
7b7ec6c5
RG
72822011-06-21 Richard Guenther <rguenther@suse.de>
7283
7284 PR tree-optimization/49483
7285 * tree-vect-stmts.c (vectorizable_assignment): Also handle
7286 VIEW_CONVERT_EXPR conversions.
7287
1b916ca6
JM
72882011-06-21 Joseph Myers <joseph@codesourcery.com>
7289
7290 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
7291 * config/avr/avr-tables.opt: New file (generated).
7292 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
7293 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
7294 avr-mcus.def.
7295 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
7296 (avr_option_override): Don't process -mmcu= argument here. Set
7297 avr_current_device using avr_mcu_index.
637c11bd 7298 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
7299 * config/avr/avr.opt (mmcu=): Use Enum.
7300 * config/avr/t-avr (avr-devices.o): Update dependencies.
7301 ($(srcdir)/config/avr/avr-tables.opt): New.
7302 * target.def (help): Remove.
7303 * doc/tm.texi.in (TARGET_HELP): Remove.
7304 * doc/tm.texi: Regenerate.
7305 * opts.c: Don't include target.h.
7306 (common_handle_option): Don't call targetm.help.
7307 * system.h (TARGET_HELP): Poison.
7308 * Makefile.in (opts.o): Update dependencies.
7309
7ecfa34f
RO
73102011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7311
7312 * config/usegld.h: New file.
7313 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
7314 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 7315 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
7316 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
7317 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
7318 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
7319 Define.
7ecfa34f
RO
7320 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
7321 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
7322 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
7323 (STACK_CHECK_STATIC_BUILTIN): Define.
7324 * config/sol2.opt (compat-bsd): Remove.
7325 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
7326 * config/sol2-bi.h: New file.
7327 * config/sol2-gld.h: Remove.
7328 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
7329 (NO_DBX_BNSYM_ENSYM): Remove.
7330 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7331 (STACK_CHECK_STATIC_BUILTIN): Remove.
7332 Test USE_GLD instead of TARGET_GNU_LD.
7333 * config/i386/sol2-10.h: Rename to ...
7334 * config/i386/sol2-bi.h .. this.
7335 (SUBTARGET_EXTRA_SPECS): Redefine.
7336 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
7337 (MULTILIB_DEFAULTS): Remove.
7338 (DEFAULT_ARCH32_P): Define.
7339 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
7340 (ARCH64_SUBDIR): Define.
7341 Test USE_GLD instead of TARGET_GNU_LD.
7342 (I386_EMULATION): Rename to ...
7343 (ARCH32_EMULATION): ... this.
7344 (X86_64_EMULATION): Rename to ...
7345 (ARCH64_EMULATION): ... this.
7346 (TARGET_LD_EMULATION): Remove.
7347 (LINK_ARCH_SPEC): Remove.
7348 * config/i386/sol2-gas.h: Remove.
7349 * config/i386/t-sol2-10: Rename to ...
7350 * config/i386/t-sol2-64: ... this.
7351 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
7352 (AS_SPARC64_FLAG): Define.
7353 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
7354 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
7355 depending on TARGET_CPU_DEFAULT.
7356 (CPP_CPU_SPEC): Redefine.
7357 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
7358 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
7359 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
7360 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
7361 ASM_ARCH_DEFAULT_SPEC): Redefine.
7362 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7363 LINK_ARCH_DEFAULT_SPEC.
7364 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
7365 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
7366 (ARCH64_SUBDIR): Define.
7367 (LINK_ARCH64_SPEC): Redefine.
7368 (CC1_SPEC): Redefine.
7369 (OPTION_DEFAULT_SPECS): Redefine.
7370 (MULTILIB_DEFAULTS): Define.
7371 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
7372 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
7373 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
7374 (NO_DBX_BNSYM_ENSYM): Remove.
7375 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7376 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
7377 (TARGET_ASM_NAMED_SECTION): Likewise.
7378 (STACK_CHECK_STATIC_BUILTIN): Remove.
7379 * config/sparc/sol2-bi.h: Remove.
7380 * config/sparc/sol2-gas-bi.h: Remove.
7381 * config/sparc/sol2-gas.h: Remove.
7382 * config/sparc/sol2-gld-bi.h: Remove.
7383 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
7384 common parts ...
7385 (*-*-solaris2*): ... here.
7386
4b583c43 73872011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 7388
4b583c43 7389 PR other/43564
637c11bd
UB
7390 * ipa-inline.c (can_inline_edge_p): Check
7391 !DECL_DISREGARD_INLINE_LIMITS.
7392
3bb556ad 73932011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 7394
3bb556ad
CB
7395 PR middle-end/49139
7396 * cgraphunit.c (process_function_and_variable_attributes): warn when
7397 always_inline functions that are not inline.
637c11bd
UB
7398 * ipa-inline-transform.c (inline_transform): Always call
7399 optimize_inline.
7400 * tree-inline.c (tree_inlinable_function_p): Use error instead
7401 of sorry.
3bb556ad 7402 (expand_call_inline): Likewise.
637c11bd 7403
f1ee724c
JJ
74042011-06-21 Jakub Jelinek <jakub@redhat.com>
7405
7406 * Makefile.in (dg_target_exps): Set.
7407 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
7408 instead of 7, try to divide it more evenly.
7409
74102011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 7411
931050d0 7412 PR target/49089
97ef5ae6
CF
7413 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
7414 (avx256_split_unaligned_store): New definition.
7415 (ix86_option_override_internal): Enable avx256 unaligned load/store
7416 splitting only when avx256_split_unaligned_load/store is set.
7417
998c75b6
BS
74182011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7419
7420 * regrename.c (scan_rtx_reg): Handle the case where we write to an
7421 open chain in a smaller mode without failing the entire block.
7422
3a769784
AM
74232011-06-21 Alan Modra <amodra@gmail.com>
7424
7425 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
7426 CONST high part large-toc address.
7427 (rs6000_tls_referenced_p): Make static.
7428 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
7429
c2954af9
RR
74302011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7431
7432 PR target/49385
7433 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
7434 one of the operands is a register.
7435
a95015b6
KT
74362011-06-20 Kai Tietz <ktietz@redhat.com>
7437
637c11bd
UB
7438 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
7439 operations in combination with binary and.
a95015b6 7440
49a30d00
BS
74412011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7442
7443 * regrename.c (do_replace): Don't update notes.
7444
3bae1d98
AM
74452011-06-20 Alan Modra <amodra@gmail.com>
7446
7447 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
7448 of toc-relative address in CONST.
7449 (rs6000_delegitimize_address): Recognize changed address.
7450 (rs6000_legitimize_reload_address): Likewise.
7451 (rs6000_emit_move): Don't force these constants to memory.
7452 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
7453 toc-relative address in CONST.
7454 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
7455 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
7456
10937b0c
L
74572011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7458
637c11bd 7459 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
7460 (count_trailing_zeros): Likewise.
7461
0c587260
L
74622011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7463
7464 PR other/49325
7465 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
7466 .init_array can be used with .ctors on targets.
7467 * configure: Regenerated.
7468
c020c92b
EB
74692011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7470
7471 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
7472 if the element type is volatile.
7473
cd35bcf7
JH
74742011-06-18 Jan Hubicka <jh@suse.cz>
7475
7476 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
7477 extra name aliases.
7478 (lto_symtab_resolve_can_prevail_p): Likewise.
7479 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
7480 * cgraphbuild.c (record_reference): Remove extra body alias code.
7481 (mark_load): Likewise.
7482 (mark_store): Likewise.
7483 * cgraph.h (varpool_node): Remove extra_name filed;
7484 add alias_of and extraname_alias.
7485 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
7486 (varpool_alias_aliased_node): New inline function.
7487 (varpool_variable_node): New function.
7488 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
7489 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
7490 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
7491 (input_varpool_node): Likewise.
7492 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
7493 (varpool_externally_visible_p): Remove extra body alias code.
7494 (function_and_variable_visibility): Likewise.
7495 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
7496 (ipa_pta_execute): Use it.
7497 * varpool.c (varpool_remove_node): Remove extra name alias code.
7498 (varpool_mark_needed_node): Likewise.
7499 (varpool_analyze_pending_decls): Analyze aliases.
7500 (assemble_aliases): New functoin.
7501 (varpool_assemble_decl): Use it.
7502 (varpool_create_variable_alias): New function.
7503 (varpool_extra_name_alias): Rewrite.
7504 (varpool_for_node_and_aliases): New function.
7505
c96b4102
JJ
75062011-06-18 Jakub Jelinek <jakub@redhat.com>
7507
7508 PR target/49411
7509 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
7510 last_arg_constant and last argument doesn't match its predicate,
7511 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
7512 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
7513 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
7514 spelling of error message.
7515 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
7516 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
7517 const_0_to_255_operand instead of const_int_operand.
7518
7519 Revert:
7520 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7521
7522 * config/i386/sse.md (blendbits): Remove mode attribute.
7523 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7524 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7525 Check integer value of operand 3 in insn constraint.
7526
9a2091cd
HPN
75272011-06-17 Hans-Peter Nilsson <hp@axis.com>
7528
7529 PR rtl-optimization/48542
7530 * reload.c (find_equiv_reg): Stop looking when finding a
7531 setjmp-type call.
7532 * reload1.c (reload_as_needed): Invalidate all reload
7533 registers when crossing a setjmp-type call.
7534
361b51c0
JL
75352011-06-16 Jeff Law <law@redhat.com>
7536
7537 * tree-ssa-threadupdate.c (struct redirection_data): New field
7538 intermediate_edge.
7539 (THREAD_TARGET2): Define.
637c11bd 7540 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
7541 (lookup_redirection_data): Drop useless argument. Extract the
7542 outgoing_edge and intermediate edge from E. Callers updated.
7543 (copy_phi_args, update_destination_phis): New functions.
7544 (fix_duplicate_block_edges): Likewise.
7545 (create_edge_and_update_destination_phis): Duplicate all the edges
7546 hung off e->aux. Use copy_phi_args.
7547 (create_duplicates): Use fix_duplicate_block_edges.
7548 (fixup_template_block): Likewise.
7549 (redirect_edges): If necessary, redirect the joiner block's incoming
7550 edge to the duplicate of the joiner block.
7551 (thread_block): Don't muck up loops when threading through a joiner
7552 block.
637c11bd 7553 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
7554 (mark_threaded_blocks, register_jump_thread): Likewise.
7555 * tree-flow.h (register_jump_thread): Add new argument. Callers
7556 updated.
7557 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
7558 (thread_across_edge): Handle threading through a joiner block.
637c11bd 7559
ee460e75
MJ
75602011-06-16 Martin Jambor <mjambor@suse.cz>
7561
7562 PR tree-optimization/49343
7563 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
7564 calculate offset, provide 2nd operand for the new COMPONENT_REF.
7565
a285ba2e
IS
75662011-06-16 Iain Sandoe <iains@gcc.gnu.org>
7567
7568 * config/darwin-protos.h (machopic_select_rtx_section): Move to
7569 inside RTX_CODE ifdef.
7570
0703f020
TV
75712011-06-16 Tom de Vries <tom@codesourcery.com>
7572
7573 PR target/45098
637c11bd
UB
7574 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
7575 Disallow NULL pointer for pointer arithmetic.
0703f020 7576
900c07da
RR
75772011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7578
7579 PR target/49398
7580 Revert.
7581 2011-06-10 Wei Guozhi <carrot@google.com>
7582
7583 PR target/45335
7584 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
7585 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
7586 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
7587 related peephole2.
7588 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
7589 related peephole2.
7590 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
7591 (arm_legitimate_ldrd_p): New prototype.
7592 (arm_output_ldrd): New prototype.
7593 * config/arm/arm.c (arm_check_ldrd_operands): New function.
7594 (arm_legitimate_ldrd_p): New function.
7595 (arm_output_ldrd): New function.
7596
c020c92b 75972011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
7598
7599 PR middle-end/46500
7600 * doc/tm.texi.in: Update Copyright date.
7601 * doc/tm.texi: Regenerate.
7602 * targhooks.c (default_setup_incoming_varargs): Replace
7603 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7604 (default_pretend_outgoing_varargs_named): Likewise.
7605 (hook_pass_by_reference_must_pass_in_stack): Likewise.
7606 (hook_callee_copies_named): Likewise.
7607 (default_function_arg_advance): Likewise.
7608 (default_function_arg): Likewise.
7609 (default_function_incoming_arg): Likewise.
7610 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7611 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7612 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7613 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7614 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7615 * targhooks.h (default_setup_incoming_varargs): Likewise.
7616 (default_pretend_outgoing_varargs_named): Likewise.
7617 (hook_pass_by_reference_must_pass_in_stack): Likewise.
7618 (hook_callee_copies_named): Likewise.
7619 (default_function_arg_advance): Likewise.
7620 (default_function_arg): Likewise.
7621 (default_function_incoming_arg): Likewise.
7622 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7623 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7624 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7625 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7626 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7627 * target.def (pass_by_reference): Likewise.
7628 (setup_incoming_varargs, strict_argument_naming): Likewise.
7629 (pretend_outgoing_varargs_named, callee_copies): Likewise.
7630 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
7631 (function_incoming_arg): Likewise.
7632 * target.h: Don't include "tm.h" .
7633 (cumulative_args_t): New typedef.
7634 [GCC_TM_H] (get_cumulative_args): New static inline function.
7635 [GCC_TM_H] (pack_cumulative_args): Likewise.
7636 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
7637 argument type with cumulative_args_t.
7638 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
7639 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
7640 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7641 (frv_arg_partial_bytes, frv_function_arg): Likewise.
7642 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
7643 (frv_function_arg_1): Likewise.
7644 * config/s390/s390.c (s390_pass_by_reference): Likewise.
7645 (s390_function_arg_advance, s390_function_arg): Likewise.
7646 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7647 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
7648 (m32c_strict_argument_naming): Likewise.
7649 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
7650 (spu_function_arg_advance): Likewise.
7651 (spu_setup_incoming_varargs): Likewise. Make static.
7652 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
7653 Remove prototype.
7654 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
7655 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7656 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
7657 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
7658 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
7659 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
7660 (mep_pass_by_reference, mep_function_arg): Likewise.
7661 (mep_function_arg_advance): Likewise.
7662 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7663 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
7664 (m32r_function_arg, m32r_function_arg_advance): Likewise.
7665 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
7666 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7667 (ix86_function_arg, ix86_pass_by_reference): Likewise.
7668 (ix86_setup_incoming_varargs): Likewise.
7669 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7670 (sh_strict_argument_naming): Likewise.
7671 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
7672 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
7673 (sh_function_arg_advance, sh_function_arg): Likewise.
7674 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7675 (pdp11_function_arg_advance): Likewise.
7676 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7677 Likewise.
7678 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
7679 * config/avr/avr.c (avr_function_arg): Likewise.
7680 (avr_function_arg_advance): Likewise.
7681 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7682 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
7683 (xtensa_function_arg_1): Likewise.
637c11bd
UB
7684 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
7685 Likewise.
d5cc9181
JR
7686 (xstormy16_function_arg): Likewise.
7687 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7688 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7689 (fr30_function_arg_advance): Likewise.
7690 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7691 (lm32_function_arg, lm32_function_arg_advance): Likewise.
7692 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7693 (moxie_function_arg, moxie_function_arg_advance): Likewise.
7694 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
7695 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7696 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
7697 (cris_function_arg, cris_function_incoming_arg): Likewise.
7698 (cris_function_arg_advance, cris_function_arg_1): Likewise.
7699 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7700 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
7701 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
7702 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7703 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
7704 (mn10300_arg_partial_bytes): Likewise.
7705 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7706 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
7707 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
7708 (ia64_function_arg_1): Likewise.
7709 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7710 (m68k_function_arg): Likewise.
7711 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
7712 (rs6000_function_arg, setup_incoming_varargs): Likewise.
7713 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
7714 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
7715 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
7716 (picochip_arg_advance): Likewise.
7717 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7718 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
7719 (mcore_function_arg_advance): Likewise.
7720 * config/score/score.c (score_pass_by_reference): Likewise.
7721 (score_function_arg_advance): Likewise.
7722 (score_arg_partial_bytes): Likewise. Make static.
7723 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
7724 * config/arm/arm.c (arm_arg_partial_bytes): Replace
7725 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7726 (arm_function_arg, arm_function_arg_advance): Likewise.
7727 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
7728 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7729 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
7730 (pa_function_arg): Likewise.
7731 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
7732 (mips_function_arg, mips_function_arg_advance): Likewise.
7733 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
7734 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
7735 * config/vax/vax.c (vax_function_arg): Likewise.
7736 (vax_function_arg_advance): Likewise.
7737 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7738 (h8300_function_arg_advance): Likewise.
7739 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7740 (v850_strict_argument_naming, v850_function_arg): Likewise.
7741 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
7742 (v850_setup_incoming_varargs): Likewise.
7743 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7744 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
7745 (mmix_function_arg, mmix_pass_by_reference): Likewise.
7746 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
7747 with const void *.
7748 * config/bfin/bfin.c (setup_incoming_varargs): Replace
7749 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7750 (bfin_function_arg_advance, bfin_function_arg): Likewise.
7751 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
7752 * calls.c (emit_call_1): Change type of args_so_far to
7753 cumulative_args_t. Changed all callers.
7754 (initialize_argument_information): Likewise.
7755 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
7756 * dse.c (get_call_args): Likewise.
7757 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7758 * function.c (pass_by_reference, reference_callee_copied): Likewise.
7759 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
7760 New member args_so_far_v. Changed all users.
7761 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
7762 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7763 * config/mips/mips.c (mips_output_args_xfer): Likewise.
7764 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7765 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
7766 * config/microblaze/microblaze.c (microblaze_expand_prologue):
7767 Likewise.
d5cc9181
JR
7768 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
7769 m32r_pass_by_reference.
7770
51312233
IR
77712011-06-16 Ira Rosen <ira.rosen@linaro.org>
7772
7773 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
7774 argument to be a VEC of statements.
637c11bd
UB
7775 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
7776 assert that pattern statements have to have their vector type set.
51312233
IR
7777 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
7778 Change the first argument to be a VEC of statements. Update
7779 documentation.
7780 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
7781 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
7782 (vect_recog_widen_mult_pattern): Change the first argument to be a
7783 VEC of statements. Update documentation. Check that the constant is
7784 INTEGER_CST. Support multiplication by a constant that fits an
7785 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
7786 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
7787 call. Handle additional pattern statements if necessary.
7788
fd4df33d
NC
77892011-06-16 Nick Clifton <nickc@redhat.com>
7790
7791 PR target/49427
7792 * config.gcc: Set cpu_type to v850 for any V850 architecture.
7793 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
7794 md_file, extra_modes, out_file and extra_options are these are all
7795 deduced from cpu_type.
7796
fbd05da0
GJL
77972011-06-16 Georg-Johann Lay <avr@gjlay.de>
7798
7799 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
7800 truncation mask to 63.
7801
0ad8bb3b
GJL
78022011-06-16 Georg-Johann Lay <avr@gjlay.de>
7803
7804 PR target/49313
7805 PR target/29524
7806 * longlong.h: Add AVR support:
7807 (count_leading_zeros): New macro.
7808 (count_trailing_zeros): New macro.
7809 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
7810 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
7811 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
7812 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
7813 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
7814 (LIB2FUNCS_EXCLUDE): Add _clz.
7815 * config/avr/libgcc.S (XCALL): Move up in file.
7816 (XJMP): New C Macro.
7817 (DEFUN): New asm macro.
7818 (ENDF): New asm macro.
7819 (__ffssi2): New function.
7820 (__ffshi2): New function.
7821 (__loop_ffsqi2): New function.
7822 (__ctzsi2): New function.
7823 (__ctzhi2): New function.
7824 (__clzdi2): New function.
7825 (__clzsi2): New function.
7826 (__clzhi2): New function.
7827 (__paritydi2): New function.
7828 (__paritysi2): New function.
7829 (__parityhi2): New function.
59c1e10b 7830 (__parityqi2): New function.
0ad8bb3b
GJL
7831 (__popcounthi2): New function.
7832 (__popcountsi2): New function.
7833 (__popcountdi2): New function.
7834 (__popcountqi2): New function.
7835 (__bswapsi2): New function.
7836 (__bswapdi2): New function.
7837 (__ashldi3): New function.
7838 (__ashrdi3): New function.
7839 (__lshrdi3): New function.
7840 Fix suspicous lines.
7841
12430896
RG
78422011-06-16 Richard Guenther <rguenther@suse.de>
7843
7844 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
7845 the same as x != 0.
637c11bd
UB
7846 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
7847 to (bool) X & 1.
12430896
RG
7848 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
7849 equality compares against zero for the lower bit.
7850
09302442
JJ
78512011-06-16 Jakub Jelinek <jakub@redhat.com>
7852
7853 PR tree-optimization/49419
7854 * tree-vrp.c (execute_vrp): Call init_range_assertions
7855 before estimate_numbers_of_iterations, call
7856 free_number_of_iterations_estimates before calling
7857 remove_range_assertions.
7858
81c41166
RE
78592011-06-16 Revital Eres <revital.eres@linaro.org>
7860
7861 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
7862 (struct partial_schedule): Add rows_length field.
7863 (verify_partial_schedule): Check rows_length.
7864 (ps_insert_empty_row): Handle rows_length.
7865 (create_partial_schedule): Likewise.
7866 (free_partial_schedule): Likewise.
7867 (reset_partial_schedule): Likewise.
7868 (create_ps_insn): Remove rest_count argument.
7869 (remove_node_from_ps): Update rows_length.
7870 (add_node_to_ps): Update rows_length and call create_ps_insn
7871 without passing row_rest_count.
7872 (rotate_partial_schedule): Update rows_length.
7873
d24dc7b3
RE
78742011-06-16 Revital Eres <revital.eres@linaro.org>
7875
7876 * ddg.c (add_intra_loop_mem_dep): New function.
7877 (build_intra_loop_deps): Call it.
7878
361b51c0 78792011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
7880
7881 * df-problems.c (df_lr_local_compute): Manually CSE
7882 PIC_OFFSET_TABLE_REGNUM.
7883 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
7884 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
7885
85ce9375
JH
78862011-06-13 Jan Hubicka <jh@suse.cz>
7887
7888 * cgraphunit.c (handle_alias_pairs): New function.
7889 (cgraph_finalize_compilation_unit): Use it.
7890 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
7891 as externally visible.
7892
a577c405
RG
78932011-06-15 Richard Guenther <rguenther@suse.de>
7894
7895 * expr.c (expand_expr_real_2): Reduce all integral types to
7896 bitfield precision.
7897 (expand_expr_real_1): Likewise.
7898
93536c97
MJ
78992011-06-15 Martin Jambor <mjambor@suse.cz>
7900
7901 PR tree-optimization/48613
7902 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
7903 ipa_node_params_vector is NULL.
fd4df33d 7904
ba45cfc4
JJ
79052011-06-15 Jakub Jelinek <jakub@redhat.com>
7906
7907 PR debug/49382
7908 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
7909 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
7910 location in the list, even if it is modified before first real insn.
ba45cfc4 7911 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 7912 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 7913
6fc5966f
AM
79142011-06-15 Alexander Monakov <amonakov@ispras.ru>
7915
7916 PR target/49349
7917 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
7918 (fence_to_rewind). Use it to notice when bookkeeping will be placed
7919 above a fence. Update comments.
7920 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
7921 placed just above it. Do not allow NULL place_to_insert.
7922
9d5e7640
IR
79232011-06-15 Ira Rosen <ira.rosen@linaro.org>
7924
7925 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
7926 (slpeel_tree_peel_loop_to_edge): Don't call
7927 remove_dead_stmts_from_loop.
7928 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7929 remove irrelevant pattern statements. For irrelevant statements
7930 check if it is the last statement of a detected pattern, use
7931 corresponding pattern statement instead.
7932 (destroy_loop_vec_info): No need to remove pattern statements,
7933 only free stmt_vec_info.
7934 (vect_transform_loop): For irrelevant statements check if it is
7935 the last statement of a detected pattern, use corresponding
7936 pattern statement instead.
7937 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
7938 pattern statements. Set basic block for the new statement.
7939 (vect_pattern_recog): Update documentation.
7940 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
7941 operands of pattern statements.
7942 (vectorizable_call): Fix printing. In case of a pattern statement
7943 use the lhs of the original statement when creating a dummy
7944 statement to replace the original call.
7945 (vect_analyze_stmt): For irrelevant statements check if it is
7946 the last statement of a detected pattern, use corresponding
7947 pattern statement instead.
7948 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
7949 statements use gsi of the original statement.
7950
677f3fa8
JM
79512011-06-14 Joseph Myers <joseph@codesourcery.com>
7952
7953 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
7954 common/common-target-def.h.
7955 * target.def (default_target_flags, handle_option,
7956 supports_split_stack, optimization_table, init_struct,
7957 except_unwind_info, unwind_tables_default, have_named_sections):
7958 Move to common/common-target.def.
7959 * target.h (enum opt_levels, struct default_options): Move to
7960 common/common-target.h.
7961 * targhooks.c (default_except_unwind_info,
7962 dwarf2_except_unwind_info, sjlj_except_unwind_info,
7963 default_target_handle_option, empty_optimization_table): Move to
7964 common/common-targhooks.c.
7965 * targhooks.h (default_except_unwind_info,
7966 dwarf2_except_unwind_info, sjlj_except_unwind_info,
7967 default_target_handle_option, empty_optimization_table): Move to
7968 common/common-targhooks.h.
7969 * common/common-target-def.h: Include common/common-targhooks.h.
7970 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
7971 defined.
7972 * common/common-target.def (handle_option, option_init_struct,
7973 option_optimization_table, default_target_flags,
7974 except_unwind_info, supports_split_stack, unwind_tables_default,
7975 have_named_sections): Move from target.def.
7976 (HOOK_PREFIX): Undefine at end of file.
7977 * common/common-target.h: Include input.h.
7978 (enum opt_levels, struct default_options): Move from target.h.
7979 * common/common-targhooks.c, common/common-targhooks.h: New.
7980 * config.gcc (target_has_targetm_common): Default to yes.
7981 (moxie*): Set target_has_targetm_common=no.
7982 (hppa*-*-*): Don't set target_has_targetm_common=yes.
7983 * doc/tm.texi: Regenerate.
7984 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
7985 (C_TARGET_DEF_H): Add common/common-targhooks.h.
7986 (GCC_OBJS): Remove vec.o.
7987 (OBJS): Remove hooks.o and vec.o.
7988 (OBJS-libcommon-target): Add vec.o, hooks.o and
7989 common/common-targhooks.o.
7990 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
7991 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
7992 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
7993 cfglayout.o, $(out_object_file), $(common_out_object_file)):
7994 Update dependencies.
7995 (common/common-targhooks.o): New.
637c11bd 7996 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
7997 * common/config/pa/pa-common.c: Include more headers. Take
7998 copyright dates from pa.c.
7999 (pa_option_optimization_table, pa_handle_option,
8000 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
8001 TARGET_HANDLE_OPTION): Move from pa.c.
8002 * common/config/alpha/alpha-common.c,
8003 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
8004 common/config/bfin/bfin-common.c,
8005 common/config/cris/cris-common.c,
8006 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
8007 common/config/h8300/h8300-common.c,
8008 common/config/i386/i386-common.c,
8009 common/config/ia64/ia64-common.c,
8010 common/config/iq2000/iq2000-common.c,
8011 common/config/lm32/lm32-common.c,
8012 common/config/m32c/m32c-common.c,
8013 common/config/m32r/m32r-common.c,
8014 common/config/m68k/m68k-common.c,
8015 common/config/mcore/mcore-common.c,
8016 common/config/mep/mep-common.c,
8017 common/config/microblaze/microblaze-common.c,
8018 common/config/mips/mips-common.c,
8019 common/config/mmix/mmix-common.c,
8020 common/config/mn10300/mn10300-common.c,
8021 common/config/pdp11/pdp11-common.c,
8022 common/config/picochip/picochip-common.c,
8023 common/config/rs6000/rs6000-common.c,
8024 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
8025 common/config/score/score-common.c, common/config/sh/sh-common.c,
8026 common/config/sparc/sparc-common.c,
8027 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
8028 common/config/vax/vax-common.c,
8029 common/config/xstormy16/xstormy16-common.c,
8030 common/config/xtensa/xtensa-common.c: New.
8031 * config/alpha/alpha.c: Include common/common-target.h.
8032 (alpha_option_optimization_table, alpha_handle_option,
8033 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8034 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
8035 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
8036 * config/arm/arm.c (arm_option_optimization_table,
8037 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8038 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
8039 arm-common.c.
8040 * config/avr/avr.c (avr_option_optimization_table,
8041 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8042 to avr-common.c.
8043 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
8044 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
8045 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
8046 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
8047 * config/cris/cris.c (cris_option_optimization_table,
8048 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8049 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
8050 cris-common.c.
8051 * config/fr30/fr30.c (fr30_option_optimization_table,
8052 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
8053 to fr30-common.c.
8054 * config/frv/frv.c (frv_option_optimization_table,
8055 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
8056 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
8057 * config/h8300/h8300.c (h8300_option_optimization_table,
8058 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8059 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
8060 * config/i386/i386-protos.h (ix86_handle_option): Declare.
8061 * config/i386/i386.c: Include common/common-target.h.
8062 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
8063 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
8064 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
8065 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
8066 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
8067 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
8068 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
8069 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
8070 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
8071 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
8072 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
8073 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
8074 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
8075 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
8076 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
8077 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
8078 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
8079 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
8080 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
8081 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
8082 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
8083 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
8084 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
8085 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
8086 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
8087 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
8088 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
8089 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
8090 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
8091 ix86_option_optimization_table, ix86_option_init_struct,
8092 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
8093 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8094 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
8095 i386-common.c.
8096 * config/i386/t-i386 (i386.o): Update dependencies.
8097 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
8098 * config/ia64/ia64.c (ia64_option_optimization_table,
8099 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8100 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8101 ia64_handle_option): Move to ia64-common.c.
8102 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
8103 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
8104 * config/lm32/lm32.c (lm32_option_optimization_table,
8105 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8106 to lm32-common.c.
8107 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
8108 m32c-common.c.
8109 * config/m32r/m32r.c (m32r_option_optimization_table,
8110 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8111 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8112 m32r_handle_option): Move to m32r-common.c.
8113 (m32r_memory_move_cost): Remove comment referring to
8114 TARGET_HANDLE_OPTION.
8115 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
8116 Move to m68k-common.c.
8117 * config/mcore/mcore.c (mcore_option_optimization_table,
8118 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8119 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
8120 * config/mep/mep.c (mep_option_optimization_table,
8121 mep_handle_option, TARGET_HANDLE_OPTION,
8122 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
8123 Move to mep-common.c.
8124 * config/microblaze/microblaze.c
8125 (microblaze_option_optimization_table,
8126 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8127 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
8128 * config/mips/mips.c (mips_handle_option,
8129 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8130 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
8131 mips-common.c.
8132 * config/mmix/mmix.c (mmix_option_optimization_table,
8133 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8134 Move to mmix-common.c.
8135 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8136 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
8137 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8138 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
8139 * config/pa/pa.c: Include common/common-target.h.
8140 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8141 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8142 pa_handle_option): Move to pa-common.c.
8143 (pa_option_override): Use targetm_common.except_unwind_info.
8144 (pa_asm_output_mi_thunk, pa_function_section): Use
8145 targetm_common.have_named_sections.
8146 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
8147 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8148 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8149 pdp11_handle_option, pdp11_option_init_struct): Move to
8150 pdp11-common.c.
8151 * config/picochip/picochip.c (picochip_option_optimization_table,
8152 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
8153 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
8154 * config/rs6000/rs6000.c: Include common/common-target.h.
8155 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
8156 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
8157 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
8158 rs6000_handle_option): Move to rs6000-common.c.
8159 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8160 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
8161 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8162 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
8163 * config/s390/s390.c (processor_flags_table,
8164 s390_option_optimization_table, s390_option_init_struct,
8165 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
8166 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8167 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
8168 * config/s390/s390.h (processor_flags_table): Declare.
8169 * config/score/score.c (score_option_optimization_table,
8170 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8171 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
8172 score_handle_option): Move to score-common.c.
8173 * config/sh/sh.c (sh_option_optimization_table,
8174 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8175 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8176 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
8177 * config/sparc/sparc.c: Include common/common-target.h.
8178 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8179 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
8180 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
8181 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
8182 spu_option_init_struct): Move to spu-common.c.
8183 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8184 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
8185 * config/v850/v850.c (small_memory_physical_max,
8186 v850_handle_memory_optionn v850_handle_option,
8187 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8188 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
8189 v850-common.c.
637c11bd 8190 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
8191 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
8192 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8193 Move to xtensa-common.c.
8194 * cfglayout.c: Include common/common-target.h.
8195 (fixup_reorder_chain): Use targetm_common.have_named_sections.
8196 * cfgrtl.c: Include common/common-target.h.
8197 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
8198 targetm_common.have_named_sections.
8199 * dbxout.c: Include common/common-target.h.
8200 (dbxout_function_end): Use targetm_common.have_named_sections.
8201 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
8202 targetm_common.except_unwind_info.
8203 * dwarf2out.c: Include common/common-target.h.
8204 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
8205 dwarf2out_begin_prologue, dwarf2out_frame_init,
8206 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
8207 targetm_common.except_unwind_info.
8208 * except.c: Include common/common-target.h.
8209 (init_eh, finish_eh_generation,
8210 output_one_function_exception_table): Use
8211 targetm_common.except_unwind_info.
637c11bd 8212 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
8213 * explow.c: Include common/common-target.h.
8214 * expr.c: Include common/common-target.h.
637c11bd 8215 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
8216 * function.c: Include common/common-target.h.
8217 (expand_function_end): Use targetm_common.except_unwind_info.
8218 * haifa-sched.c: Include common/common-target.h.
637c11bd 8219 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
8220 * lto-opts.c: Include common/common-target.h instead of target.h.
8221 (lto_reissue_options): Use targetm_common.handle_option.
8222 * opts.c: Include common/common-target.h.
8223 (target_handle_option): Use targetm_common.handle_option.
8224 (init_options_struct): Update comment referring to
8225 targetm.target_option.optimization. Use
8226 targetm_common.default_target_flags,
8227 targetm_common.unwind_tables_default and
8228 targetm_common.option_init_struct.
8229 (default_options_optimization): Use
8230 targetm_common.option_optimization_table.
8231 (finish_options): Use targetm_common.except_unwind_info,
8232 targetm_common.unwind_tables_default,
8233 targetm_common.have_named_sections and
8234 targetm_common.supports_split_stack.
8235 * toplev.c: Include common/common-target.h.
8236 (process_options): Use targetm_common.have_named_sections.
8237 * tree-tailcall.c: Include common/common-target.h.
637c11bd 8238 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 8239 * tree.c: Include common/common-target.h.
637c11bd 8240 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
8241 * varasm.c: Include common/common-target.h.
8242 (resolve_unique_section, hot_function_section,
8243 default_function_section): Use targetm_common.have_named_sections.
8244
d26c7090
ER
82452011-06-14 Easwaran Raman <eraman@google.com>
8246
8247 PR rtl-optimization/44194
8248 * dse.c: Include tree-flow.h
8249 (insn_info): Add new field non_frame_wild_read.
8250 (group_info): Add new fields escaped_n and escaped_p.
8251 (kill_on_calls): New variable.
8252 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
8253 (dse_step0): Initialize kill_on_calls.
8254 (can_escape): New function.
8255 (set_usage_bits): Add additional parameter; record information
8256 about escaped locations.
637c11bd 8257 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
8258 (dse_step2_nospill): Set kill_on_calls based on
8259 group->escaped_n and group->escaped_n.
8260 (add_wild_read): Refactor into...
8261 (reset_active_stores): ... New function, and
8262 (free_read_records): ... New function.
8263 (add_non_frame_wild_read): New function.
8264 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 8265 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
8266 (dse_step5_nospill): Call scan_reads_nospill for instructions
8267 marked as non_frame_wild_read.
637c11bd 8268 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 8269
c49a6962
JM
82702011-06-14 Joseph Myers <joseph@codesourcery.com>
8271
8272 * common/common-target-def.h, common/common-target.def,
8273 common/common-target.h, common/config/default-common.c,
8274 common/config/pa/pa-common.c: New files.
8275 * Makefile.in (common_out_file, common_out_object_file,
8276 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
8277 (OBJS-libcommon-target): Include $(common_out_object_file).
8278 (prefix.o): Update dependencies.
8279 ($(common_out_object_file), common/common-target-hooks-def.h,
8280 s-common-target-hooks-def-h): New.
8281 (s-tm-texi): Also check timestamp on common-target.def.
8282 (build/genhooks.o): Update dependencies.
8283 * config.gcc (common_out_file, target_has_targetm_common): Define.
8284 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
8285 TARGET_ALWAYS_STRIP_DOTDOT.
8286 * configure.ac (common_out_object_file): Define.
8287 (common_out_file, common_out_object_file): Substitute.
8288 (common): Create directory.
8289 * configure: Regenerate.
8290 * doc/tm.texi.in (targetm_common): Document.
8291 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
8292 * doc/tm.texi: Regenerate.
8293 * genhooks.c (hook_array): Also include common/common-target.def.
8294 * prefix.c (tm.h): Don't include.
8295 (common/common-target.h): Include.
8296 (ALWAYS_STRIP_DOTDOT): Don't define.
8297 (update_path): Use targetm_common.always_strip_dotdot instead of
8298 ALWAYS_STRIP_DOTDOT.
8299 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
8300
22c5fa5f
DL
83012011-06-14 David Li <davidxl@google.com>
8302
8303 * passes.c (execute_function_todo): Remove TODO_dump_func.
8304 (execute_one_pass): Remove TODO_dump_func.
8305 (execute_function_dump): New function.
8306 * tree-vrp.c: Remove TODO_dump_func.
8307 * regrename.c: Remove TODO_dump_func.
8308 * fwprop.c: Remove TODO_dump_func.
8309 * tree-into-ssa.c: Remove TODO_dump_func.
8310 * tree-complex.c: Remove TODO_dump_func.
8311 * tracer.c: Remove TODO_dump_func.
8312 * tree-loop-distribution.c: Remove TODO_dump_func.
8313 * postreload-gcse.c: Remove TODO_dump_func.
8314 * postreload.c: Remove TODO_dump_func.
8315 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
8316 * tree-tailcall.c: Remove TODO_dump_func.
8317 * ipa-cp.c: Remove TODO_dump_func.
8318 * final.c: Remove TODO_dump_func.
8319 * tree-emutls.c: Remove TODO_dump_func.
8320 * omp-low.c: Remove TODO_dump_func.
8321 * tree-ssa-dse.c: Remove TODO_dump_func.
8322 * tree-ssa-uncprop.c: Remove TODO_dump_func.
8323 * auto-inc-dec.c: Remove TODO_dump_func.
8324 * reorg.c: Remove TODO_dump_func.
8325 * tree-ssa-copyrename.c: Remove TODO_dump_func.
8326 * tree-ssa-ccp.c: Remove TODO_dump_func.
8327 * compare-elim.c: Remove TODO_dump_func.
8328 * mode-switching.c: Remove TODO_dump_func.
8329 * modulo-sched.c: Remove TODO_dump_func.
8330 * tree-call-cdce.c: Remove TODO_dump_func.
8331 * cse.c: Remove TODO_dump_func.
8332 * web.c: Remove TODO_dump_func.
8333 * tree-stdarg.c: Remove TODO_dump_func.
8334 * lto-streamer-out.c: Remove TODO_dump_func.
8335 * tree-ssa-math-opts.c: Remove TODO_dump_func.
8336 * tree-ssa-dom.c: Remove TODO_dump_func.
8337 * tree-nrv.c: Remove TODO_dump_func.
8338 * loop-init.c: Remove TODO_dump_func.
8339 * gimple-low.c: Remove TODO_dump_func.
8340 * ipa-inline.c: Remove TODO_dump_func.
8341 * tree-ssa-sink.c: Remove TODO_dump_func.
8342 * jump.c: Remove TODO_dump_func.
8343 * ifcvt.c: Remove TODO_dump_func.
8344 * tree-ssa-loop.c: Remove TODO_dump_func.
8345 * recog.c: Remove TODO_dump_func.
8346 * dse.c: Remove TODO_dump_func.
8347 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
8348 * matrix-reorg.c: Remove TODO_dump_func.
8349 * tree-eh.c: Remove TODO_dump_func.
8350 * regmove.c: Remove TODO_dump_func.
8351 * function.c: Remove TODO_dump_func.
8352 * tree-vectorizer.c: Remove TODO_dump_func.
8353 * ipa-split.c: Remove TODO_dump_func.
8354 * gcse.c: Remove TODO_dump_func.
8355 * tree-if-conv.c: Remove TODO_dump_func.
8356 * init-regs.c: Remove TODO_dump_func.
8357 * tree-ssa-phiopt.c: Remove TODO_dump_func.
8358 * implicit-zee.c: Remove TODO_dump_func.
8359 * lower-subreg.c: Remove TODO_dump_func.
8360 * bt-load.c: Remove TODO_dump_func.
8361 * tree-dfa.c: Remove TODO_dump_func.
8362 * except.c: Remove TODO_dump_func.
8363 * emit-rtl.c: Remove TODO_dump_func.
8364 * store-motion.c: Remove TODO_dump_func.
8365 * cfgexpand.c: Remove TODO_dump_func.
8366 * tree-cfgcleanup.c: Remove TODO_dump_func.
8367 * cfgcleanup.c: Remove TODO_dump_func.
8368 * tree-ssa-pre.c: Remove TODO_dump_func.
8369 * tree-sra.c: Remove TODO_dump_func.
8370 * tree-mudflap.c: Remove TODO_dump_func.
8371 * tree-ssa-copy.c: Remove TODO_dump_func.
8372 * cfglayout.c: Remove TODO_dump_func.
8373 * tree-ssa-forwprop.c: Remove TODO_dump_func.
8374 * tree-ssa-dce.c: Remove TODO_dump_func.
8375 * ira.c: Remove TODO_dump_func.
8376 * tree-ssa.c: Remove TODO_dump_func.
8377 * integrate.c: Remove TODO_dump_func.
8378 * tree-optimize.c: Remove TODO_dump_func.
8379 * tree-ssa-phiprop.c: Remove TODO_dump_func.
8380 * tree-object-size.c: Remove TODO_dump_func.
8381 * combine.c: Remove TODO_dump_func.
8382 * bb-reorder.c: Remove TODO_dump_func.
8383 * cprop.c: Remove TODO_dump_func.
8384 * var-tracking.c: Remove TODO_dump_func.
8385 * tree-profile.c: Remove TODO_dump_func.
8386 * tree-vect-generic.c: Remove TODO_dump_func.
8387 * reg-stack.c: Remove TODO_dump_func.
8388 * sched-rgn.c: Remove TODO_dump_func.
8389 * tree-ssa-structalias.c: Remove TODO_dump_func.
8390 * tree-switch-conversion.c: Remove TODO_dump_func.
8391 * tree-cfg.c: Remove TODO_dump_func.
8392 * tree-ssa-reassoc.c: Remove TODO_dump_func.
8393 * combine-stack-adj.c: Remove TODO_dump_func.
8394 * dce.c: Remove TODO_dump_func.
8395 * tree-ssanames.c: Remove TODO_dump_func.
8396 * regcprop.c: Remove TODO_dump_func.
8397
fa465762
L
83982011-06-14 H.J. Lu <hongjiu.lu@intel.com>
8399
8400 PR middle-end/47364
8401 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
8402 and properly handle result not in Pmode.
8403
7d8d16c3
RM
84042011-06-14 Robert Millan <rmh@gnu.org>
8405
8406 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
8407 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
8408 `config/linux.h'.
8409
8410 * config/i386/kfreebsd-gnu64.h: New file.
8411 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
8412 with `i386/kfreebsd-gnu64.h'.
8413
8414 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
8415 (GNU_USER_LINK_EMULATION64): New macros.
8416 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
8417 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
8418 of hardcoding `elf_i386' and `elf_x86_64'.
8419
0ccef3d2
NC
84202011-06-14 Nick Clifton <nickc@redhat.com>
8421
8422 PR target/49403
8423 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
8424
8425 PR target/49402
8426 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
8427
8a76c4a0
JJ
84282011-06-14 Jakub Jelinek <jakub@redhat.com>
8429
1ace6185
JJ
8430 PR fortran/49103
8431 * tree.h (DECL_NONSHAREABLE): Define.
8432 (struct tree_decl_common): Change decl_common_unused to
8433 decl_nonshareable_flag.
8434 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
8435 Ignore vars with DECL_NONSHAREABLE bit set.
8436 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
8437 on stores to automatic aggregate vars.
8438
8a76c4a0
JJ
8439 PR rtl-optimization/49390
8440 Revert:
8441 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
8442
8443 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8444 MEM_ALIAS_SET.
8445
b4a9343c
ZD
84462011-06-14 Zdenek Dvorak <ook@ucw.cz>
8447 Tom de Vries <tom@codesourcery.com>
8448
8449 PR target/45098
8450 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
8451 Document changed semantics.
8452 (max_stmt_executions, max_stmt_executions_int): Declare.
8453 * tree-data-ref.c (estimated_loop_iterations)
8454 (estimated_loop_iterations_int): Move functions...
8455 * tree-ssa-loop-niter.c (estimated_loop_iterations)
8456 (estimated_loop_iterations_int): here.
8457 (record_estimate): Change nb_iterations_upper_bound and
8458 nb_iterations_estimate semantics.
8459 (max_stmt_executions, max_stmt_executions_int): New function.
8460 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
8461 (max_stmt_executions_tree): this.
8462 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
8463 estimated_loop_iterations_tree.
8464 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
8465 max_stmt_executions_int instead of estimated_loop_iterations_int.
8466 * predict.c (predict_loops): Idem.
8467 * tree-parloops.c (parallelize_loops): Idem.
8468 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
8469 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
8470 (init_omega_for_ddr_1): Idem.
8471 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
8472 (loop_prefetch_arrays): Idem
8473 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
8474 max_stmt_executions instead of estimated_loop_iterations.
8475 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
8476 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
8477 instead of nb_iterations_upper_bound.
8478
d2640c43
JH
84792011-06-13 Jan Hubicka <jh@suse.cz>
8480
8481 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
8482
40873cdd
RH
84832011-06-14 Richard Henderson <rth@redhat.com>
8484
8485 PR debug/48459
8486 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
8487 (based_loc_descr): Assert it's true.
8488 (compute_frame_pointer_to_fb_displacement): Set it, rather than
8489 aborting immediately.
8490
73e8cb24
SL
84912011-06-14 Sanjin Liu <scliu@faraday-tech.com>
8492 Mingfeng Wu <mingfeng@faraday-tech.com>
8493
8494 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
8495
f835f0a7
JH
84962011-06-13 Jan Hubicka <jh@suse.cz>
8497
8498 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
8499
ee6f1177
JH
85002011-06-13 Jan Hubicka <jh@suse.cz>
8501
8502 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
8503 similarly to DECL_COMDAT.
8504 * cgraphunit.c (cgraph_analyze_function): Likewise.
8505 * ipa.c (function_and_variable_visibility): Likewise.
8506
618abf9a
JH
85072011-06-13 Jan Hubicka <jh@suse.cz>
8508
8509 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
8510 BINFO_VIRTUALS when streaming for ltrans unit.
8511
a45fe02f
DE
85122011-06-13 David Edelsohn <dje.gcc@gmail.com>
8513
8514 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
8515 (movdi_internal64): Same.
8516
85172011-06-13 Edmar Wienskoski <edmar@freescale.com>
8518
e641e495 8519 PR target/44618
7d8d16c3
RM
8520 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
8521 a set of similar patterns, where the MATCH_OPERAND for the function
8522 argument is replaced with individual references to hardware registers.
a45fe02f
DE
8523 (save_fpregs_<mode>): Ditto
8524 (restore_gpregs_<mode>): Ditto
8525 (return_and_restore_gpregs_<mode>): Ditto
8526 (return_and_restore_fpregs_<mode>): Ditto
8527 (return_and_restore_fpregs_aix_<mode>): Ditto
8528
8775a18b
JH
85292011-06-13 Jan Hubicka <jh@suse.cz>
8530
8531 * ipa-utils.c (postorder_stack): New structure.
8532 (ipa_reverse_postorder): Handle aliases.
8533
85342011-06-13 Jan Hubicka <jh@suse.cz>
8535
8536 * ipa-inline.c (reset_edge_caches): Walk aliases.
8537 (update_caller_keys): Do not test inlinability of aliases.
8538 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
8539 (do_estimate_growth): Fix typo.
8540
6c69a029
JH
85412011-06-13 Jan Hubicka <jh@suse.cz>
8542
8543 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
8544 (can_remove_node_now_p): ... here; handle same comdat groups.
8545 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
8546 (inline_call): Update use of can_remove_node_now_p.
8547
10c63ba4 85482011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 8549
10c63ba4 8550 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
8551 condition to disallow non-identical memory locations.
8552 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
8553 preference to bit manipulation instructions.
495f8c14 8554
9aa3f5c5
JH
85552011-06-13 Jan Hubicka <jh@suse.cz>
8556
8557 * cgraph.c (cgraph_for_node_thunks_and_aliases,
8558 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
8559 (nonremovable_p): New function.
8560 (cgraph_can_remove_if_no_direct_calls_p): New function.
8561 (used_from_object_file_p): New functoin.
10c63ba4
EB
8562 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
8563 references from aliases.
9aa3f5c5
JH
8564 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
8565 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
8566 (want_inline_function_called_once_p): Use it; accept aliases called
8567 once, too.
9aa3f5c5
JH
8568 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
8569
30cecf17
RR
85702011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8571
8572 PR target/48454
8573 * config/arm/neon.md (vec_pack_trunc): Set the lengths
8574 correctly for the case with Quad vectors.
8575
29f85237
JJ
85762011-06-13 Jakub Jelinek <jakub@redhat.com>
8577 Ira Rosen <ira.rosen@linaro.org>
8578
8579 PR tree-optimization/49352
8580 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
8581 all, make sure loop_use_stmt after the loop is a def stmt of a used
8582 SSA_NAME that is the only one defined inside of the loop. Don't
8583 check for COND_EXPR and GIMPLE_BINARY_RHS.
8584 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
8585 check_reduction is true.
8586
c3e3f090
JH
85872011-06-11 Jan Hubicka <jh@suse.cz>
8588
8589 PR middle-end/49373
8590 * ipa.c (cgraph_externally_visible_p): Check resolution info.
8591
516e0768
JH
85922011-06-11 Jan Hubicka <jh@suse.cz>
8593
8594 PR middle-end/48836
8595 * ipa-inline-transform.c: Include tree-pass.h
8596 (inline_transform): Set TODO_update_ssa_only_virtuals.
8597 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
8598
903b0a8b
JH
85992011-06-11 Jan Hubicka <jh@suse.cz>
8600
8601 PR middle-end/49378
8602 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
8603 aliases and thunks.
8604
44542f8e
IR
86052011-06-12 Ira Rosen <ira.rosen@linaro.org>
8606
8607 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
8608 Take number of iterations to peel into account for equally frequent
8609 misalignment values.
8610
ea89702b
JH
86112011-06-11 Jan Hubicka <jh@suse.cz>
8612
637c11bd
UB
8613 * lto-streamer-out.c (produce_symtab): Stream out the newly
8614 represented aliases.
ea89702b 8615
380ed5ed
JH
86162011-06-11 Jan Hubicka <jh@suse.cz>
8617
637c11bd
UB
8618 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
8619 varying args.
380ed5ed
JH
8620 (ipa_update_after_lto_read): Likewise.
8621 (ipa_write_node_info): Do not sream call_with_var_arguments.
8622 (ipa_read_node_info): Likewise.
8623
00cfc363
JH
86242011-06-11 Jan Hubicka <jh@suse.cz>
8625
8626 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
8627
39e2db00
JH
86282011-06-11 Jan Hubicka <jh@suse.cz>
8629
8630 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
8631 (lto_symtab_resolve_can_prevail_p): Likewise.
8632 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
8633 * cgraph.c (same_body_aliases_done): New global var.
8634 (cgraph_same_body_alias_1): Rename to ...
8635 (cgraph_create_function_alias): ... this one; reorg to new
8636 representation.
8637 (cgraph_same_body_alias): Use cgraph_create_function_alias;
8638 record references when asked to.
8639 (cgraph_add_thunk): Fix formating.
8640 (cgraph_get_node): Kill same body alias code.
8641 (cgraph_node_for_asm): Likewise.
8642 (cgraph_remove_same_body_alias): Remove.
8643 (cgraph_remove_node): Kill same body alias code.
8644 (cgraph_mark_address_taken_node): Mark also the aliased function
8645 as having address taken.
8646 (dump_cgraph_node): Dump same body aliases.
8647 (cgraph_for_node_thunks_and_aliases): Update for new alias
8648 representation.
8649 (cgraph_for_node_and_aliases): Likewise.
8650 * cgraph.h (same_body): Kll pointer.
8651 (same_body_alias): Update comment.
8652 (same_body_aliases_done): Declare.
8653 (cgraph_remove_same_body_alias): Remove declaration.
8654 (cgraph_create_function_alias): Declare.
8655 (cgraph_process_same_body_aliases): Declare.
8656 (cgraph_function_with_gimple_body_p): Check for alias.
8657 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
8658 (cgraph_alias_aliased_node): New function.
8659 (cgraph_function_node): Update for new aliases.
8660 (cgraph_function_or_thunk_node): Likewise.
8661 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
8662 (inline_call): Remove dead aliases.
10c63ba4
EB
8663 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
8664 name hack for same body aliases.
39e2db00
JH
8665 (clone_of_p): Look through aliases.
8666 (verify_cgraph_node): Verify aliases.
8667 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
8668 (cgraph_process_same_body_aliases): New function.
8669 (process_function_and_variable_attributes): Disable weakref warning on
8670 alias.
8671 (cgraph_analyze_functions): Handle aliases.
8672 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
8673 (assemble_thunks): Rename to ...
8674 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
8675 (cgraph_expand_function): Remove alias output code.
8676 (cgraph_output_in_order): Skip aliases.
8677 (cgraph_preserve_function_body_p): Aliases don't need preserving.
8678 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
8679 (ipa_record_reference): Do not assert on alias references.
8680 (ipa_ref_has_aliases_p): New function.
8681 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
8682 (ipa_ref_has_aliases_p): Declare.
8683 * lto-cgraph.c (lto_output_node): Handle aliases.
8684 (input_node): Likewise.
8685 * lto-streamer-out.c (lto_output): Skip aliases.
8686 (produce_symtab): Kill same_body_alias code.
8687 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
8688 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
8689 * ipa-inline.c (update_caller_keys): Walk aliases.
8690 (inline_small_functions): Fix thinko in previous patch.
8691 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
8692 (function_and_variable_visibility): Do not walk same body aliases.
8693 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
8694 (ipa_pta_execute): Use it.
8695
9ee65b55
UB
86962011-06-11 Uros Bizjak <ubizjak@gmail.com>
8697
8698 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
8699 (*vec_dupv2df): Rename from vec_dupv2df.
8700 (vec_dupv2df): New expander.
8701
87022011-06-11 Uros Bizjak <ubizjak@gmail.com>
8703
8704 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
8705
87062011-06-11 Uros Bizjak <ubizjak@gmail.com>
8707
8708 * config/i386/i386.md: Use default value in "isa" attribute.
8709 * config/i386/sse.md: Ditto.
8710 * config/i386/mmx.md: Ditto.
8711
ba68a139
WG
87122011-06-10 Wei Guozhi <carrot@google.com>
8713
8714 PR target/45335
8715 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8716 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8717 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8718 related peephole2.
8719 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8720 related peephole2.
8721 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8722 (arm_legitimate_ldrd_p): New prototype.
8723 (arm_output_ldrd): New prototype.
8724 * config/arm/arm.c (arm_check_ldrd_operands): New function.
8725 (arm_legitimate_ldrd_p): New function.
8726 (arm_output_ldrd): New function.
8727
deced1e2
XDL
87282011-06-10 David Li <davidxl@google.com>
8729
8730 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
8731 * passes.c (passr_eq): New function.
8732 (create_pass_tab): New function.
8733 (pass_traverse): New function.
8734 (dump_one_pass): New function.
8735 (dump_pass_list): New function.
8736 (dump_passes): New function.
8737
71fb4f92
JH
87382011-06-10 Jan Hubicka <jh@suse.cz>
8739
8740 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
8741 setting the nothrow flag.
8742 * ipa-reference.c (propagate): Skip aliases.
8743 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
8744 (propagate_nothrow): Skip aliases; do not update cgraph.
8745 (local_pure_const): Do not update cgraph.
8746 * tree-profile.c (tree_profiling): Do fixup_cfg.
8747
41817394
JH
87482011-06-10 Jan Hubicka <jh@suse.cz>
8749
8750 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
8751 (cgraph_local_node_p): ... here; handle aliases.
8752 (has_addr_references_p): Break out from ...;
8753 (cgraph_remove_unreachable_nodes) ... here.
8754
fb37c1de
JH
87552011-06-10 Jan Hubicka <jh@suse.cz>
8756
8757 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
8758 * common.opt (flag_inline_functions_called_once): Do not
8759 initialize to 1.
fb37c1de 8760
0818c24c
JH
87612011-06-10 Jan Hubicka <jh@suse.cz>
8762
8763 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
8764 (ipcp_initialize_node_lattices): Do not deal with aliases;
8765 Do not try to propagate through thunks.
0818c24c
JH
8766 (ipcp_change_tops_to_bottom): Do not deal with aliases.
8767
c8246dbe
JH
87682011-06-10 Jan Hubicka <jh@suse.cz>
8769
9ee65b55
UB
8770 * ipa-prop.c (ipa_write_node_info): Stream jump functions
8771 for indirect calls.
c8246dbe
JH
8772 (ipa_read_node_info): Likewise.
8773
d7e2a1c1
BS
87742011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8775
8776 PR lto/49302
8777 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
8778 (build_and_insert_call): Likewise.
8779 (build_and_insert_ref): New.
8780 (gimple_expand_builtin_pow): Minor cleanup.
8781 (gimple_expand_builtin_cabs): New.
8782 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 8783
749f25d8
JH
87842011-06-10 Jan Hubicka <jh@suse.cz>
8785
8786 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
8787 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
8788 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
8789 (ipcp_propagate_stage): Skip aliases when propagating.
8790 (ipcp_need_redirect_p): Skip aliases.
8791 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
8792 collect_callers_of_node.
8793 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
8794 for aliases.
8795 (ipa_compute_jump_functions): Look through aliases.
8796
8340fbd7
RO
87972011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8798
8799 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
8800
9aaa7e47
HPN
88012011-06-10 Hans-Peter Nilsson <hp@axis.com>
8802
8803 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
8804 Adjust comments.
8805 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
8806
f1724940
JH
88072011-06-10 Jan Hubicka <jh@suse.cz>
8808
8809 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
8810 Update call of gimple_get_virt_method_for_binfo.
8811 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
8812 refuse_thunks parameter.
8813 (gimple_fold_call): Update.
8814 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
8815
a6f834c5
JH
88162011-06-10 Jan Hubicka <jh@suse.cz>
8817
8818 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
8819 (not_all_callers_have_enough_arguments_p): ... this one; turn into
8820 worker for cgraph_for_node_and_aliases.
8821 (convert_callers_for_node): Break out from ...
8822 (convert_callers): ... here.
8823 (modify_function): Use collect_callers_of_node.
8824 (ipa_early_sra): Use cgraph_for_node_and_aliases.
8825
7871eee3
RG
88262011-06-10 Richard Guenther <rguenther@suse.de>
8827
8828 PR tree-optimization/49361
8829 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
8830 when not already in gimple form.
8831
dae957ae
RG
88322011-06-10 Richard Guenther <rguenther@suse.de>
8833
8834 PR bootstrap/49344
8835 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
8836 FOR_EACH_PHI_OR_STMT_USE.
8837
a5b1779f
JH
88382011-06-10 Jan Hubicka <jh@suse.cz>
8839
8840 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
8841 (clone_inlined_nodes): ... here.
8842 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
8843 to real destination prior inlining.
8844 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
8845 can_early_inline_edge_p, want_early_inline_function_p,
8846 want_early_inline_function_p, want_inline_small_function_p,
8847 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
8848 edge_badness, update_all_callee_keys, lookup_recursive_calls,
8849 add_new_edges_to_heap, inline_small_functions, flatten_function,
8850 inline_always_inline_functions, early_inline_small_functions): Use
8851 cgraph_function_or_thunk_node.
8852 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
8853 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
8854 (do_estimate_edge_growth_1): Break out from ...
8855 (do_estimate_growth) ... here; walk aliases.
8856 (inline_generate_summary): Skip aliases.
8857
c1ae3ca5
RG
88582011-06-10 Richard Guenther <rguenther@suse.de>
8859
9ee65b55
UB
8860 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
8861 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 8862
b504a918
PC
88632011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
8864
8865 * tree.h (error_operand_p): Add.
8866 * dbxout.c (dbxout_type_fields): Use the latter.
8867 * c-decl.c (add_stmt): Likewise.
8868 * gimplify.c (omp_add_variable, omp_notice_variable,
8869 gimplify_scan_omp_clauses): Likewise.
8870
3f5ea9dc 88712011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 8872
3f5ea9dc
GJL
8873 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
8874 when a value is actually passed in regs.
8875
b11b0904 88762011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 8877 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
8878
8879 * doc/invoke.texi (SPARC options): Add -mflat.
8880 * config/sparc/sparc.opt: Likewise.
8881 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
8882 (sparc_flat_expand_prologue): Declare.
8883 (sparc_flat_expand_epilogue): Likewise.
8884 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
8885 (CPP_ENDIAN_SPEC): Replace with...
8886 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
8887 (CPP_SPEC): Adjust to above change.
8888 (EXTRA_SPECS): Likewise.
8889 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
8890 (INCOMING_REGNO): Likewise.
8891 (OUTGOING_REGNO): Likewise.
8892 (LOCAL_REGNO): Likewise.
8893 (SETUP_FRAME_ADDRESSES): Likewise.
8894 (FIXED_REGISTERS): Set 0 for %fp.
8895 (CALL_USED_REGISTERS): Likewise.
8896 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
8897 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
8898 (RETURN_ADDR_REGNUM): Define.
8899 (RETURN_ADDR_RTX): Use it.
8900 (INCOMING_RETURN_ADDR_REGNUM): Define.
8901 (INCOMING_RETURN_ADDR_RTX): Use it.
8902 (DWARF_FRAME_RETURN_COLUMN): Likewise.
8903 (EH_RETURN_REGNUM): Define.
8904 (EH_RETURN_STACKADJ_RTX): Use it.
8905 (EH_RETURN_HANDLER_RTX): Delete.
8906 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
8907 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
8908 Delete.
8909 (struct machine_function): Add frame_size, apparent_frame_size,
8910 frame_base_reg, frame_base_offset, n_global_fp_regs and
8911 save_local_in_regs_p fields.
8912 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
8913 sparc_frame_base_offset, sparc_n_global_fp_regs,
8914 sparc_save_local_in_regs_p): New macros.
8915 (sparc_option_override): Error out if -fcall-saved-REG is specified
8916 for Out registers.
8917 (eligible_for_restore_insn): Fix formatting.
8918 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
8919 (eligible_for_sibcall_delay): Likewise.
8920 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
8921 (sparc_legitimate_address_p): Adjust to above change.
8922 (save_global_or_fp_reg_p): New predicate.
8923 (return_addr_reg_needed_p): Likewise.
8924 (save_local_or_in_reg_p): Likewise.
8925 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
8926 (SORR_SAVE, SORR_RESTORE): Delete.
8927 (sorr_pred_t): New typedef.
8928 (sorr_act_t): New enum.
8929 (save_or_restore_regs): Rename to...
8930 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
8931 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
8932 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
8933 mechanism. Add CFI information for double-word saves in 32-bit mode.
8934 (emit_adjust_base_to_offset): New function extracted from...
8935 (emit_save_or_restore_regs): ...this. Rename the rest to...
8936 (emit_save_or_restore_regs_global_fp_regs): ...this.
8937 (emit_save_or_restore_regs_local_in_regs): New function.
8938 (gen_create_flat_frame_[123]): New functions.
8939 (sparc_expand_prologue): Use SIZE local variable. Adjust.
8940 (sparc_flat_expand_prologue): New function.
8941 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
8942 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
8943 (sparc_flat_expand_epilogue): New function.
8944 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
8945 (output_return): Likewise.
8946 (output_sibcall): Likewise.
8947 (sparc_output_mi_thunk): Likewise.
8948 (sparc_frame_pointer_required): Likewise.
8949 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
8950 function optimization.
8951 * config/sparc/sparc.md (flat): New attribute.
8952 (prologue): Add TARGET_FLAT handling.
8953 (save_register_window): Disable if TARGET_FLAT.
8954 (create_flat_frame_[123]): New patterns.
8955 (epilogue): Add TARGET_FLAT handling.
8956 (sibcall_epilogue): Likewise.
8957 (eh_return): New expander.
8958 (eh_return_internal): New insn and splitter.
8959 (return_internal): Add TARGET_FLAT handling.
8960 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
8961 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
8962 (nonlocal_goto): Add TARGET_FLAT handling.
8963 * config/sparc/t-elf: Add -mflat multilib.
8964 * config/sparc/t-leon: Likewise.
8965
fede8efa
JH
89662011-06-10 Jan Hubicka <jh@suse.cz>
8967
8968 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
8969 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
8970 (self_recursive_p): Use cgraph_function_node.
8971 (propagate_pure_const): Likewise.
8972 (propagate_nothrow): Likewise.
8973 * ipa-reference.c (ipa_reference_get_not_read_global): Use
8974 cgraph_function_node.
8975 (propagate_bits): Likewise.
8976 (propagate): Likewise.
8977
0127c76f
RR
89782011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8979 Richard Earnshaw <rearnsha@arm.com>
8980
9ee65b55 8981 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
8982 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
8983 (*thumb2_movdi_vfp): Delete.
8984 (*arm_movdi_vfp_cortexa8): Delete.
8985 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
8986 (*movdi_vfp_cortexa8): Likewise.
8987
f93fe5a0
RG
89882011-06-10 Richard Guenther <rguenther@suse.de>
8989
8990 * stor-layout.c (initialize_sizetypes): Give names to all
8991 sizetype kinds.
8992
f2164f87
IR
89932011-06-10 Ira Rosen <ira.rosen@linaro.org>
8994
8995 PR tree-optimization/49318
8996 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
8997 irrelevant pattern statements.
8998
3f91c962
HPN
89992011-06-10 Hans-Peter Nilsson <hp@axis.com>
9000
3d223145
HPN
9001 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
9002
3f91c962
HPN
9003 PR bootstrap/49354
9004 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
9005 to last assignment.
9006
b125ad45
JH
90072011-06-09 Jan Hubicka <jh@suse.cz>
9008
9009 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
9010 do not recompute reachable flag.
9011 (cgraph_finalize_function, cgraph_analyze_functions): Set
9012 redefined_extern_inline here.
9013
be330ed4
JH
90142011-06-09 Jan Hubicka <jh@suse.cz>
9015
9016 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
9017 (cgraph_only_called_directly_p): ... this one; bring offline.
9018 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
9019 varpool_used_from_object_file_p): Drop names from the declaratoin.
9020 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
9021 collect_callers_of_node): New.
9022 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
9023 (cgraph_edge_recursive_p): Use cgraph_function_node.
9024 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
9025 (cgraph_node_cannot_be_local_p_1): Break out from ...
9026 (cgraph_node_can_be_local_p): ... here; walk aliases.
9027 (cgraph_for_node_thunks_and_aliases): New function.
9028 (cgraph_for_node_and_aliases): New function.
9029 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
9030 (cgraph_make_node_local) ... here; use
9031 cgraph_for_node_thunks_and_aliases.
be330ed4 9032 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
9033 (cgraph_set_nothrow_flag) ... here;
9034 use cgraph_for_node_thunks_and_aliases.
be330ed4 9035 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
9036 (cgraph_set_const_flag) ... here;
9037 use cgraph_for_node_thunks_and_aliases.
be330ed4 9038 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
9039 (cgraph_set_pure_flag) ... here;
9040 use cgraph_for_node_thunks_and_aliases.
be330ed4 9041 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
9042 (cgraph_propagate_frequency) ... here; use
9043 cgraph_for_node_thunks_and_aliases.
be330ed4 9044 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
9045 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
9046 New functions.
be330ed4
JH
9047 (collect_callers_of_node_1, collect_callers_of_node): New functions.
9048
2ea91d6b
HPN
90492011-06-10 Hans-Peter Nilsson <hp@axis.com>
9050
9051 PR rtl-optimization/49154
9052 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
9053 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
9054 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
9055 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
9056 * config/cris/cris.h (cris_register_move_cost): Remove
9057 !TARGET_V32 code. Tweak comments.
9058
9cf4fb5a
JH
90592011-06-09 Jan Hubicka <jh@suse.cz>
9060
9061 * cgraphbuild.c (record_eh_tables): Mark personality function as having
9062 address taken.
9063
6049a4c8
HPN
90642011-06-10 Hans-Peter Nilsson <hp@axis.com>
9065
c577822e 9066 PR rtl-optimization/49154
9ee65b55
UB
9067 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
9068 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 9069
54e1e4f7 9070 PR rtl-optimization/49154
6049a4c8
HPN
9071 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
9072 register classes.
9073 * doc/tm.texi: Regenerate.
9074
3be68b64
KK
90752011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
9076
9077 PR target/49307
9078 * config/sh/sh.md (UNSPEC_CHKADD): New.
9079 (chk_guard_add): New define_insn_and_split.
9080 (symGOT_load): Use chk_guard_add instead of blockage.
9081
bf806a90
KT
90822011-06-09 Kai Tietz <ktietz@redhat.com>
9083
9084 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
9085
d5a9738b
EB
90862011-06-09 Eric Botcazou <ebotcazou@adacore.com>
9087
9088 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
9089
527e82c2
WG
90902011-06-09 Wei Guozhi <carrot@google.com>
9091
9092 PR target/46975
9093 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
9094 (peephole2 for conditional move): Generate 16 bit instructions.
9095
b8bc3a43
UB
90962011-06-09 Uros Bizjak <ubizjak@gmail.com>
9097
9098 * config/i386/i386.md (*movdi_internal_rex64): Merge
9099 alternatives 6 and 8.
9100
4745da6e
DL
91012011-06-09 David Li <davidxl@google.com>
9102
9103 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9104 * passes.c (passr_eq): New function.
9105 (create_pass_tab): New function.
9106 (pass_traverse): New function.
9107 (dump_one_pass): New function.
9108 (dump_pass_list): New function.
9109 (dump_passes): New function.
9110
bdf67bcb
DL
91112011-06-09 David Li <davidxl@google.com>
9112
9113 * tree-complex.c (tree_lower_complex): Gate cleanup.
9114 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
9115 (execute_optimize_stdarg): Ditto.
9116 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
9117 (execute_cleanup_eh_1): Ditto.
9118 (execute_cleanup_eh): Ditto.
9119 * gcse.c (gate_rtl_pre): Ditto.
9120 (execute_rtl_pre): Ditto.
9121 * except.c (finish_eh_generation): Ditto.
9122 (convert_to_eh_region_ranges): Ditto.
9123 * cprop.c (one_cprop_pass): Ditto.
9124
547fdef8
BS
91252011-06-09 Bernd Schmidt <bernds@codesourcery.com>
9126
9127 PR target/48673
9128 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
9129 in all basic blocks.
9130
10e48e39
RO
91312011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9132
9133 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
9134 (HAVE_ENABLE_EXECUTE_STACK): Define.
9135 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
9136 (HAVE_ENABLE_EXECUTE_STACK): Define.
9137 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
9138 (HAVE_ENABLE_EXECUTE_STACK): Define.
9139 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
9140 (ENABLE_EXECUTE_STACK): Remove.
9141 (HAVE_ENABLE_EXECUTE_STACK): Define.
9142 [IN_LIBGCC2]: Don't include <windows.h>.
9143 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9144 (HAVE_ENABLE_EXECUTE_STACK): Define.
9145 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
9146 (HAVE_ENABLE_EXECUTE_STACK): Define.
9147 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
9148 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
9149 (HAVE_ENABLE_EXECUTE_STACK): Define.
9150 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
9151 (HAVE_ENABLE_EXECUTE_STACK): Define.
9152 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
9153 (HAVE_ENABLE_EXECUTE_STACK): Define.
9154 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9155 (HAVE_ENABLE_EXECUTE_STACK): Define.
9156 * config/alpha/alpha.c (alpha_trampoline_init): Test
9157 HAVE_ENABLE_EXECUTE_STACK.
9158 * config/i386/i386.c (ix86_trampoline_init): Likewise.
9159 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9160 (sparc64_initialize_trampoline): Likewise.
9161 * libgcc2.c [L_enable_execute_stack]: Remove.
9162 * system.h (ENABLE_EXECUTE_STACK): Poison.
9163 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
9164 * doc/tm.texi: Regenerate.
9165 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
9166
8ced31fe
JJ
91672011-06-09 Jakub Jelinek <jakub@redhat.com>
9168
9169 PR middle-end/49308
9170 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
9171 variable. After resetting and rescanning insn continue with previous
9172 statement.
9173
ee610fcd
RO
91742011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9175
9176 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
9177 (gcc_cv_ld_hidden): Likewise.
9178 * configure: Regenerate.
9179 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
9180 (ix86_stack_protect_fail): Mark unused.
9181 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
9182 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
9183 [TARGET_MACHO]: Don't define.
9184 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
9185 (TARGET_STACK_PROTECT_FAIL): Likewise.
9186 (rs6000_stack_protect_fail): Mark unused.
9187 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 9188 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 9189
8f2e22ff
AK
91902011-06-08 Andi Kleen <ak@linux.intel.com>
9191
9192 * varasm.c (get_section): Print location of other conflict
9193 for section conflicts.
9194
815cecbe
AK
91952011-06-08 Andi Kleen <ak@linux.intel.com>
9196
9197 * config/i386/driver-i386.c (host_detect_local_cpu):
9198 Add model 0x2d Intel CPU.
9199
1460ec5c
AK
92002011-06-08 Andi Kleen <ak@linux.intel.com>
9201
9202 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
9203 (globalize_reg): Add decl parameter. Compute location. Pass location
9204 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
9205 * rtl.h (globalize_reg): Update prototype.
9206 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
9207
df17530a
MX
92082011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
9209
9210 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
9211
409fed48
KK
92122011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9213
9214 PR target/49305
9215 * config/sh/predicates.md (general_movsrc_operand): Check
9216 mode for memory with indexed address for QI and HImode.
9217 (general_movdst_operand): Likewise.
9218
87c16a45
NP
92192011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
9220
b8bc3a43 9221 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 9222
49931fcb
AO
92232011-06-08 Alexandre Oliva <aoliva@redhat.com>
9224
9225 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
9226 (num_ssa_operands): Likewise.
9227 (op_iter_init_phiuse): Forward-declare.
9228 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
9229
29494d1f
NC
92302011-06-08 Nick Clifton <nickc@redhat.com>
9231
9232 * doc/invoke.texi (ARM Options): Update description of
9233 -mthumb-interwork.
9234
4ffae7ff
L
92352011-06-08 H.J. Lu <hongjiu.lu@intel.com>
9236
9237 * config/i386/driver-i386.c (host_detect_local_cpu): Support
9238 unknown Intel family 0x6 CPUs.
9239
d9c77712
MJ
92402011-06-08 Martin Jambor <mjambor@suse.cz>
9241
9242 * tree-sra.c (mark_rw_status): Removed.
9243 (analyze_access_subtree): New parameter parent instead of
9244 mark_read and mark_write, propagate from that.
9245
b1def36c
JB
92462011-06-08 Julian Brown <julian@codesourcery.com>
9247
9248 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
9249 for double-precision helper functions in hard-float mode if only
9250 single-precision arithmetic is supported in hardware.
9251
6c8e9fc9
AM
92522011-06-08 Alexander Monakov <amonakov@ispras.ru>
9253
9254 PR rtl-optimization/49303
9255 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
9256 code_motion_path_driver returned 0 or 1.
9257 (sel_region_finish): Clear h_d_i_d.
9258
c2bbcb0d
KK
92592011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9260
9261 * config/sh/sh.c (prepare_move_operands): Set pic register
9262 appropriately for global and local dynamic tls models even
9263 if flag_pic is unset.
9264
6976ae51
JM
92652011-06-07 Jason Merrill <jason@redhat.com>
9266
9267 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
9268
bb5b1f5e
XDL
92692011-06-07 Xinliang David Li <davidxl@google.com>
9270 * passes.c (enable_disable_pass): Handle assembler name.
9271 (is_pass_explicitly_enabled_or_disabled): Ditto.
9272
91ffe356
RO
92732011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9274
9275 PR tree-optimization/48497
9276 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
9277
06bc3ec7
BS
92782011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9279
9280 PR tree-optimization/46728
9281 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
9282 to use gimple_val_nonnegative_real_p.
9283 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
9284 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 9285
c074d740
L
92862011-06-07 H.J. Lu <hongjiu.lu@intel.com>
9287
9288 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
9289
8973b112
SG
92902011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
9291
9292 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
9293 constant vectors.
9294
67b88453
RG
92952011-06-07 Richard Guenther <rguenther@suse.de>
9296
9297 * stor-layout.c (initialize_sizetypes): Initialize all
9298 sizetypes based on target definitions.
9299 (set_sizetype): Remove.
9300 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
9301 * tree.h (set_sizetype): Remove.
9302
1dcad079
NC
93032011-06-07 Nick Clifton <nickc@redhat.com>
9304
9305 * config.gcc: Unify V850 architecture options and add support for
9306 newer V850 architectures.
9307 * config/v850/t-v850e: Delete.
9308
009db074
RG
93092011-06-07 Richard Guenther <rguenther@suse.de>
9310
9311 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
9312 Call set_sizetype from here.
9313
f373314f
AS
93142011-06-07 Andrew Stubbs <ams@codesourcery.com>
9315
9316 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
9317 (*maddhisi4tb, *maddhisi4tt): New define_insns.
9318
c536876e
AS
93192011-06-07 Bernd Schmidt <bernds@codesourcery.com>
9320 Andrew Stubbs <ams@codesourcery.com>
9321
9322 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
9323 multiplies.
9324 * doc/md.texi (Canonicalization of Instructions): Document widening
9325 multiply canonicalization.
9326
308dc890
JJ
93272011-06-07 Jakub Jelinek <jakub@redhat.com>
9328
9329 PR gcov-profile/49299
b8bc3a43 9330 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 9331
383d9c83
IR
93322011-06-07 Ira Rosen <ira.rosen@linaro.org>
9333
9334 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
9335 a pointer.
9336 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
9337 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
9338 vect_recog_pow_pattern): Likewise.
9339 (vect_pattern_recog_1): Remove declaration.
9340 (widened_name_p): Remove declaration. Add new argument to specify
9341 whether to check that both types are either signed or unsigned.
9342 (vect_recog_widen_mult_pattern): Update documentation. Handle
9343 unsigned patterns and multiplication by constants.
9344 (vect_pattern_recog_1): Update vect_recog_func references. Use
9345 statement information from the statement returned from pattern
9346 detection functions.
9347 (vect_pattern_recog): Update vect_recog_func reference.
9348 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
9349 multiplication by a constant use the type of the other operand.
9350
4de4b0f2
RS
93512011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
9352
9353 PR rtl-optimization/49145
9354 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
9355
a9d24544
JJ
93562011-06-06 Jakub Jelinek <jakub@redhat.com>
9357
99a5e049
JJ
9358 PR debug/49262
9359 * dwarf2out.c (native_encode_initializer): Decrement count in each
9360 iteration.
9361
04902d4c
JJ
9362 PR debug/49294
9363 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
9364 non-MODE_INT modes.
9365
a9d24544
JJ
9366 PR c++/49264
9367 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
9368 if stmt folded into nothing.
b8bc3a43
UB
9369 * tree-inline.c (fold_marked_statements): If a builtin at the end of
9370 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
9371 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
9372 to be NULL. Don't compute count and frequency if new_call is NULL.
9373
47c79d56
DN
93742011-06-04 Diego Novillo <dnovillo@google.com>
9375
9376 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
9377 (cgraph.o): Likewise.
9378 (cgraphunit.o): Likewise.
9379 * cgraphunit.c: Include lto-streamer.h
9380 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
9381 if LTO is enabled.
9382 * lto-streamer-in.c (unpack_value_fields): Call
9383 streamer_hooks.unpack_value_fields if set.
9384 (lto_materialize_tree): For unhandled nodes, first try to
9385 call lto_streamer_hooks.alloc_tree, if it exists.
9386 (lto_input_ts_decl_common_tree_pointers): Move reading of
9387 DECL_INITIAL to lto_streamer_read_tree.
9388 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
9389 (lto_streamer_read_tree): New.
9390 (lto_reader_init): Rename from lto_init_reader.
9391 Move initialization code to lto/lto.c.
9392 * lto-streamer-out.c (pack_value_fields): Call
9393 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
9394 (lto_output_tree_ref): For tree nodes that are not normally indexable,
9395 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 9396 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
9397 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
9398 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
9399 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
9400 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
9401 (lto_streamer_write_tree): New.
9402 (lto_output): Call lto_streamer_init directly.
9403 (lto_writer_init): Remove.
9404 * lto-streamer.c (streamer_hooks): New.
9405 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
9406 instead of lto_preload_common_nodes.
9407 (lto_is_streamable): Move from lto-streamer.h
9408 (lto_streamer_hooks_init): New.
9409 (streamer_hooks): New.
9410 (streamer_hooks_init): New.
9411 * lto-streamer.h (struct output_block): Forward declare.
9412 (struct lto_input_block): Likewise.
9413 (struct data_in): Likewise.
9414 (struct bitpack_d): Likewise.
9415 (struct streamer_hooks): Declare.
9416 (streamer_hooks): Declare.
9417 (lto_streamer_hooks_init): Declare.
9418 (lto_streamer_write_tree): Declare.
9419 (lto_streamer_read_tree): Declare.
9420 (streamer_hooks_init): Declare.
9421 (lto_is_streamable): Move to lto-streamer.c
9422
22afe143
AK
94232011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9424
9425 * longlong.h (smul_ppmm): The resulting register pair contains the
9426 higher order word first.
9427
3906ea1b
BS
94282011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9429
9430 PR tree-optimization/46728
9431 * builtins.c (powi_table): Remove.
9432 (powi_lookup_cost): Remove.
9433 (powi_cost): Remove.
9434 (expand_powi_1): Remove.
9435 (expand_powi): Remove.
9436 (expand_builtin_pow_root): Remove.
9437 (expand_builtin_pow): Remove.
9438 (expand_builtin_powi): Eliminate handling of constant exponent.
9439 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 9440
3598cabd
AO
94412011-06-06 Alexandre Oliva <aoliva@redhat.com>
9442
9443 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
9444
a7a110bb
AO
94452011-06-06 Alexandre Oliva <aoliva@redhat.com>
9446
9447 * dce.c (reset_unmarked_insns_debug_uses): New.
9448 (delete_unmarked_insns): Skip debug insns.
9449 (prescan_insns_for_dce): Likewise.
9450 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
9451 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
9452 active reg can be found.
9453 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
9454 (convert_regs_1): Use it.
9455
6d8402ac
AO
94562011-06-06 Alexandre Oliva <aoliva@redhat.com>
9457
9458 * tree-pretty-print.c (dump_function_header): Add flags.
9459 Don't dump decl_uid with nouid.
9460 * tree-pretty-print.h (dump_function_header): Adjust.
9461 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
9462 * passes.c (pass_init_dump_file): Pass dump_flags on.
9463 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
9464
f75e1f1e
AO
94652011-06-06 Alexandre Oliva <aoliva@redhat.com>
9466
9467 PR bootstrap/49270
9468 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
9469
275311c4
MP
94702011-06-06 Mikael Pettersson <mikpe@it.uu.se>
9471
9472 PR tree-optimization/49243
9473 * calls.c (setjmp_call_p): Also check if fndecl has the
9474 returns_twice attribute.
9475
aa4203e7
RO
94762011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9477
9478 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
9479 -ffast-math etc.
9480
48f9d59a
RH
94812011-06-06 Richard Henderson <rth@redhat.com>
9482 Georg-Johann Lay <avr@gjlay.de>
9483
9484 PR target/42210
9485 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
9486 New predicates.
9487 * config/avr/avr.md ("insv"): New insn expander.
9488 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
9489 "*insv.not.io", "*insv.reg"): New insns.
9490
11494830
HPN
94912011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
9492
9493 PR target/49285
b8bc3a43
UB
9494 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
9495 to nonimmediate_operand from memory_operand for the operand that is to
9496 be forced to memory by the expander. Lose the constraints.
11494830 9497
679e70df
EB
94982011-06-05 Eric Botcazou <ebotcazou@adacore.com>
9499
9500 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
9501 EH return when delayed branches are disabled.
9502
4d3d7f15
UB
95032011-06-05 Uros Bizjak <ubizjak@gmail.com>
9504
9505 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
9506 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
9507 calculation.
9508 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
9509 Simplify MODE_V1DF and MODE_V2SF handling.
9510 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
9511 Simplify MODE_SF handling.
9512
a45c0557
JH
95132011-06-04 Jan Hubicka <jh@suse.cz>
9514
9515 PR tree-optimization/48893
9516 PR tree-optimization/49091
9517 PR tree-optimization/49179
9518 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
9519 Bounds check.
9520
26740835
JH
95212011-06-04 Jan Hubicka <jh@suse.cz>
9522
9523 PR lto/48954
b8bc3a43
UB
9524 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
9525 bitmaps.
26740835 9526
014ab419
JW
95272011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
9528
9529 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
9530
407bcba7
JJ
95312011-06-04 Jakub Jelinek <jakub@redhat.com>
9532
9533 PR target/49281
9534 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
9535 to be strictly smaller than 1 << shiftcount.
9536
e3195c52
JH
95372011-06-04 Jan Hubicka <jh@suse.cz>
9538
9539 PR tree-optimize/48929
9540 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
9541 of empty predicate.
9542
047d33a0
AO
95432011-06-04 Alexandre Oliva <aoliva@redhat.com>
9544
9545 PR debug/48333
9546 * calls.c (emit_call_1): Prefer the __builtin declaration of
9547 builtin functions.
9548
dc587809
DN
95492011-06-03 Diego Novillo <dnovillo@google.com>
9550
9551 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
9552 (lto_input_tree_pointers): Likewise.
9553 * lto-streamer-out.c (pack_value_fields): Likewise.
9554 (lto_output_tree_pointers): Likewise.
9555 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
9556 and OPTIMIZATION_NODE.
9557
58cd1d70
RO
95582011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9559
9560 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
9561 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
9562 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
9563 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
9564 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
9565 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
9566 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
9567 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
9568 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
9569 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
9570 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
9571 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
9572 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
9573 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
9574 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
9575 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
9576 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
9577 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
9578 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
9579 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
9580 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
9581 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
9582 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
9583 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
9584 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
9585 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
9586 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
9587 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
9588 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
9589 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
9590 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
9591 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
9592 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
9593 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
9594 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
9595 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
9596 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
9597 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
9598 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
9599 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
9600 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
9601 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
9602 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
9603 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
9604 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
9605 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
9606 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
9607 * system.h (MD_UNWIND_SUPPORT): Poison.
9608 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
9609 * doc/tm.texi: Regenerate.
9610 * unwind-dw2.c: Include md-unwind-support.h instead of
9611 MD_UNWIND_SUPPORT.
9612 * config/ia64/unwind-ia64.c: Likewise.
9613 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
9614
10c63ba4 96152011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
9616
9617 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
9618
1b7a0148
RH
96192011-06-03 Richard Henderson <rth@redhat.com>
9620 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9621
9622 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
9623 (sigill_hdlr): Correct insn, insn size.
9624 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
9625
737346fa
RO
96262011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9627
9628 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
9629 t-slibgcc-dummy.
9630 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
9631 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
9632 * config/mips/t-iris: Remove.
9633 * config/mips/t-irix6: New file.
9634 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
9635
c192cee6
RO
96362011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9637
9638 * Makefile.in (LIB2ADDEHDEP): Remove.
9639 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
9640 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
9641 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
9642 * config/t-darwin (LIB2ADDEHDEP): Remove.
9643 * config/t-freebsd (LIB2ADDEHDEP): Remove.
9644 * config/t-linux (LIB2ADDEHDEP): Remove.
9645
d5828cc7
DN
96462011-06-03 Diego Novillo <dnovillo@google.com>
9647
9648 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
9649 (lto_register_var_decl_in_symtab): Likewise.
9650 (lto_register_function_decl_in_symtab): Likewise.
9651 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 9652 logic to uniquify_nodes.
d5828cc7 9653
ee33b5f0
RO
96542011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9655
9656 * config/alpha/t-osf5: Remove.
9657 * config/alpha/t-osf-pthread: Remove.
9658 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
9659 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
9660
16868d84
JB
96612011-06-03 Julian Brown <julian@codesourcery.com>
9662
9663 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
9664 (strongarm1110): Use strongarm tuning.
4d3d7f15 9665 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
9666 * config/arm/arm.c (arm_strongarm_tune): New.
9667 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9668 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
9669 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
9670 setting, using previous defaults or 1 for Cortex-A5.
9671 (arm_option_override): Set max_insns_skipped from current tuning.
9672
1cec1285
NS
96732011-06-03 Nathan Sidwell <nathan@codesourcery.com>
9674
9675 * doc/install.texi (Options specification): Document --with-specs.
9676
eed55426
RR
96772011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9678
9679 * config/arm/neon.md (orndi3_neon): Actually split it.
9680
d5b6cc25
AO
96812011-06-02 Alexandre Oliva <aoliva@redhat.com>
9682
9683 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
9684 * var-tracking.c (reverse_op): Limite recurse depth to 5.
9685
2ba42841
AO
96862011-06-02 Alexandre Oliva <aoliva@redhat.com>
9687
9688 PR debug/47590
9689 * target.def (delay_sched2, delay_vartrack): New.
9690 * doc/tm.texi.in: Update.
9691 * doc/tm.texi: Rebuild.
9692 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
9693 * var-tracking.c (gate_handle_var_tracking): Likewise.
9694 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
9695 (bfin_flag_var_tracking): Drop.
9696 (output_file_start): Don't save and override flag_var_tracking.
9697 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
9698 (bfin_reorg): Test original variables.
9699 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9700 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
9701 (ia64_flag_var_tracking): Drop.
9702 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9703 (ia64_file_start): Don't save and override flag_var_tracking.
9704 (ia64_override_options_after_change): Ditto
9705 flag_schedule_insns_after_reload.
9706 (ia64_reorg): Test original variables.
9707 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
9708 (picochip_flag_var_tracking): Drop.
9709 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9710 (picochip_option_override): Don't save and override
9711 flag_schedule_insns_after_reload.
9712 (picochip_asm_file_start): Ditto flag_var_tracking.
9713 (picochip_reorg): Test original variables.
9714 * config/spu/spu.c (spu_flag_var_tracking): Drop.
9715 (TARGET_DELAY_VARTRACK): Define.
9716 (spu_var_tracking): New.
9717 (spu_machine_dependent_reorg): Call it.
9718 (asm_file_start): Don't save and override flag_var_tracking.
9719
a700b5f0
KK
97202011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
9721
9722 PR target/49163
9723 * config/sh/predicates.md (general_movsrc_operand): Return 0
9724 for memory and memory subreg of which address is an invalid
9725 indexed address for QI and HImode.
9726 (general_movdst_operand): Likewise.
9727
76015c34
EB
97282011-06-02 Eric Botcazou <ebotcazou@adacore.com>
9729
9730 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
9731 edges only, when there is a non-local label in the function.
9732 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
9733
4e76acd2
UB
97342011-06-02 Uros Bizjak <ubizjak@gmail.com>
9735
9736 * config/i386/constraints.md (Y3): New register constraint.
9737 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
9738 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
9739 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
9740 *sse2_interleave_lowv2df.
9741
288f605f
JB
97422011-06-02 Julian Brown <julian@codesourcery.com>
9743
9744 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
9745 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
9746 (arm_cortex_a5_tune): New.
9747
7ec70105
JB
97482011-06-02 Julian Brown <julian@codesourcery.com>
9749
153668ec
JB
9750 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
9751 * config/arm/arm.c (arm_default_branch_cost): New.
9752 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9753 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
9754 (arm_fa726_tune): Set branch_cost field using
9755 arm_default_branch_cost.
9756 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
9757 current_tune structure.
9758 * dojump.c (tm_p.h): Include file.
9759
97602011-06-02 Julian Brown <julian@codesourcery.com>
9761
9762 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
9763 tuning.
7ec70105
JB
9764 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
9765 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
9766 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
9767 field.
9768 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
9769 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
9770 (arm_fa726te_tune): Add prefer_constant_pool setting.
9771 (arm_v6t2_tune, arm_cortex_tune): New.
9772 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
9773 prefer_constant_pool setting.
9774
aad61732
UB
97752011-06-02 Uros Bizjak <ubizjak@gmail.com>
9776
4e76acd2
UB
9777 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
9778 switch statement.
aad61732
UB
9779 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
9780 (*movdf_internal) <case 6,7,8>: Ditto.
9781
4e76acd2 9782 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
9783 * config/i386/sse.md (vec_set<mode>_0): Merge with
9784 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
9785 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
9786 *vec_extractv2di_1_sse.
9787 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
9788 and *vec_concatv2di_rex64_sse.
9789
6e588138
SH
97902011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
9791
9792 PR target/48807
9793 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
9794 of cgraph_local_info for null before attempting to use it.
9795
bc6d3f91
EB
97962011-06-02 Eric Botcazou <ebotcazou@adacore.com>
9797
9798 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
9799 (current_function_dynamic_alloc_count): Delete.
9800 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
9801 (expand_builtin_nonlocal_goto): Remove obsolete comment.
9802 (expand_builtin_update_setjmp_buf): Remove dead code.
9803 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
9804 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
9805 support.
9806 * function.c (instantiate_virtual_regs): Likewise.
9807 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
9808 for a block with a single abnormal incoming edge.
9809 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 9810 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
9811 * config/sparc/sparc-protos.h (load_got_register): Declare.
9812 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
9813 (load_got_register): Make global.
9814 (sparc_frame_pointer_required): Add 'static'.
9815 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
9816 (sparc_builtin_setjmp_frame_value): New function.
9817 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
9818 (save_stack_nonlocal): New expander.
9819 (restore_stack_nonlocal): Likewise.
9820 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
9821 (nonlocal_goto_internal): New insn.
9822 (goto_handler_and_restore): Delete.
9823 (builtin_setjmp_setup): Likewise.
9824 (do_builtin_setjmp_setup): Likewise.
9825 (setjmp): Likewise.
9826 (builtin_setjmp_receiver): New expander.
9827
69282fee
DL
98282011-06-01 David Li <davidxl@google.com>
9829
9830 PR middle-end/49261
9831 * tree-pretty-print.c (dump_function_header): Format cleanup.
9832
e95873dd
KK
98332011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
9834
9835 PR target/49238
9836 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
9837 needed when original operands are used for msw_skip comparison.
9838
88c15821
JJ
98392011-06-01 Jakub Jelinek <jakub@redhat.com>
9840
9841 PR debug/49250
9842 * var-tracking.c (add_uses, add_stores): Don't call
9843 cselib_subst_to_values on ENTRY_VALUE.
9844
07233947
DN
98452011-06-01 Diego Novillo <dnovillo@google.com>
9846
9847 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
9848 output_record_start with LTO_null instead of output_zero.
9849 (lto_output_ts_binfo_tree_pointers): Likewise.
9850 (lto_output_tree): Likewise.
9851 (output_eh_try_list): Likewise.
9852 (output_eh_region): Likewise.
9853 (output_eh_lp): Likewise.
9854 (output_eh_regions): Likewise.
9855 (output_bb): Likewise.
9856 (output_function): Likewise.
9857 (output_unreferenced_globals): Likewise.
9858 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
9859 instead of NUM_TREE_CODES.
9860 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
9861 (lto_output_int_in_range): Change << to >> when shifting VAL.
9862
4ee3537a
DN
98632011-06-01 Diego Novillo <dnovillo@google.com>
9864
9865 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
9866 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
9867
02972eaf
RS
98682011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
9869
9870 PR target/45074
9871 * optabs.h (valid_multiword_target_p): Declare.
9872 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
9873 doing multi-word operations.
9874 * optabs.c (expand_binop): Likewise.
9875 (expand_doubleword_bswap): Likewise.
9876 (expand_absneg_bit): Likewise.
9877 (expand_unop): Likewise.
9878 (expand_copysign_bit): Likewise.
9879 (multiword_target_p): New function.
9880
4d41c2d1
RS
98812011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
9882
9883 PR rtl-optimization/48830
9884 PR rtl-optimization/48808
9885 PR rtl-optimization/48792
9886 * reload.c (push_reload): Check contains_reg_of_mode.
9887 * reload1.c (strip_paradoxical_subreg): New function.
9888 (gen_reload_chain_without_interm_reg_p): Use it to handle
9889 paradoxical subregs.
9890 (emit_output_reload_insns, gen_reload): Likewise.
9891
5f57dccb
DL
98922011-06-01 David Li <davidxl@google.com>
9893
9894 * predict.c : Change pass name
9895 * ipa.c: Ditto.
9896 * dce.c: Ditto.
9897 * tree-profile.c: Ditto.
9898 * except.c: Ditto.
9899
ea6cf778
DL
99002011-06-01 David Li <davidxl@google.com>
9901
9902 * tree-pretty-print.c (dump_function_header): New function.
9903 * final.c (rest_of_clean_state): Use header dumper.
9904 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
9905 * passes.c (pass_init_dump_file): Use header dumper.
9906
ebdc0d4b
JJ
99072011-06-01 Jakub Jelinek <jakub@redhat.com>
9908
eeeb9b49
JJ
9909 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
9910 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
9911 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
9912 New functions.
9913 (mem_loc_descriptor): Use them.
9914
ebdc0d4b
JJ
9915 * var-tracking.c (create_entry_value): New function.
9916 (vt_add_function_parameter): Use it.
9917
0699e415
RO
99182011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9919
9920 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
9921 Include <signal.h>, <ucontext.h>.
9922 (sigill_caught): Define.
9923 (sigill_hdlr): New function.
9924 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
9925 insns can be executed.
aad61732 9926 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
9927 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
9928
ca24c5ad
RO
99292011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9930
9931 * config/t-slibgcc-darwin: Move to ...
aad61732 9932 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
9933 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
9934 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
9935 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 9936 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
9937 Remove i386/t-crtstuff from tmake_file.
9938 (i[34567]86-*-solaris2*): Remove t-svr4,
9939 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
9940 t-slibgcc-dummy.
9941 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
9942 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
9943 sparc/t-crtfm from tmake_file.
9944 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
9945 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
9946 Remove extra_parts.
9947 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
9948 * config/i386/t-nwld (SHLIB_LINK): Remove.
9949 * config/i386/t-rtems-i386: Rename to ...
9950 * config/i386/t-rtems: ... this.
9951 ($(T)crti.o, $(T)crtn.o): Remove.
9952 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
9953 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
9954 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
9955 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
9956 EXTRA_MULTILIB_PARTS): Remove.
9957 * config/sparc/t-sol2-64: Likewise.
9958 * config/sparc/t-sol2: Remove.
9959 * config/sparc/t-crtin: Remove.
9960 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
9961 * config/i386/gmon-sol2.c: Remove.
9962 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
9963 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
9964 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
9965 * config/i386/sol2-gc1.asm: Remove.
9966 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
9967 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
9968 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
9969 * config/t-slibgcc-sld: Remove.
9970
a78d13c3
JJ
99712011-06-01 Jakub Jelinek <jakub@redhat.com>
9972
9973 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
9974 base_type_for_mode with op_mode instead of mode.
9975
572070ef
PB
99762011-06-01 Paul Brook <paul@cpodesourcery.com>
9977
9978 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
9979 Cortex-A15.
9980 * config/arm/arm-tune.md: Regenerate.
9981 * config/arm/arm-tables.opt: Regenerate.
9982 * config/arm/arm.c (FL_DIV): Rename...
9983 (FL_THUMB_DIV): ... to this.
9984 (FL_ARM_DIV): Define.
9985 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
9986 (arm_arch_hwdiv): Remove.
9987 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
9988 (arm_issue_rate): Add cortexr5.
9989 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
9990 __ARM_ARCH_EXT_IDIV__.
9991 (TARGET_IDIV): Define.
9992 (arm_arch_hwdiv): Remove.
9993 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
9994 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
9995 (divsi3, udivsi3): New patterns.
9996 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
9997 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
9998
11026b51
MJ
99992011-06-01 Martin Jambor <mjambor@suse.cz>
10000
10001 * ipa-utils.c (ipa_dfs_info): New field scc_no.
10002 * ipa-utils.c (searchc): Set scc_no.
10003
b6156cf2
MJ
100042011-06-01 Martin Jambor <mjambor@suse.cz>
10005
10006 * ipa-utils.c (searchc_env): New field allow_overwritable.
10007 (searchc): do not ignore edges to overwritable nodes if indicated
10008 by env->allow_overwritable.
10009 (ipa_reduced_postorder): Set env.allow_overwritable.
10010
6807da97
RG
100112011-06-01 Richard Guenther <rguenther@suse.de>
10012
10013 * tree.c (free_lang_data): Do not reset boolean_type_node nor
10014 char_type_node.
10015 * lto-streamer.c (lto_record_common_node): Take node pointer,
10016 do not register types.
10017 (lto_preload_common_nodes): Explicitly skip preloading nodes
10018 that differ between frontends.
10019
66bd20e7 100202011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
10021
10022 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
10023 NON_FLOAT_REGS.
10024
66bd20e7 100252011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
10026
10027 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
10028 parameter value for dump. Dump cost on outermost call only.
10029 (rs6000_memory_move_cost): Dump cost on outermost call only.
10030
7351d8da
JJ
100312011-05-31 Jakub Jelinek <jakub@redhat.com>
10032
ead7c399
JJ
10033 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
10034 DW_OP_GNU_convert ops.
10035
509f4495
JJ
10036 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
10037 cselib_preserve_constants.
10038 (cselib_lookup_1): If cselib_preserve_constants,
10039 a new VALUE is being created for REG and there is a VALUE for the
10040 same register in wider mode, add another loc with lowpart SUBREG of
10041 the wider VALUE.
10042 (cselib_subst_to_values): Handle ENTRY_VALUE.
10043 * var-tracking.c (replace_expr_with_values): Return NULL for
10044 ENTRY_VALUE too.
10045 * dwarf2out.c (convert_descriptor_to_signed): New function.
10046 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
10047 instead of two shifts.
10048 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
10049 the right mode if needed.
10050 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
10051 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
10052 convert_descriptor_to_signed.
10053 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
10054 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
10055
7351d8da
JJ
10056 PR target/48688
10057 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
10058
5cc93ee0
UB
100592011-05-31 Uros Bizjak <ubizjak@gmail.com>
10060
10061 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
10062 of X87MODEI12 and SWI48x instead of SSEMODEI24.
10063 (SWI248x): New mode iterator, rename from X87MODEI.
10064 (X87MODEI): Remove mode iterator.
10065 (X87MODEI12): Ditto.
10066 (SSEMODEI24): Ditto.
10067
f0686e78
AO
100682011-05-31 Alexandre Oliva <aoliva@redhat.com>
10069
10070 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
10071 * doc/invoke.texi: Document max-vartrack-expr-depth.
10072 * var-tracking.c (EXPR_DEPTH): New.
10073 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
10074
f3308413
AO
100752011-05-31 Alexandre Oliva <aoliva@redhat.com>
10076
10077 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
10078 * config/i386/sse.md: Add n to negated FMA pattern names.
10079
28c14a04
AO
100802011-05-31 Alexandre Oliva <aoliva@redhat.com>
10081
10082 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
10083
70efc82d
AO
100842011-05-31 Alexandre Oliva <aoliva@redhat.com>
10085
5cc93ee0 10086 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 10087
6ba5d856
UB
100882011-05-31 Uros Bizjak <ubizjak@gmail.com>
10089
10090 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
10091 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
10092
100932011-05-31 Uros Bizjak <ubizjak@gmail.com>
10094
10095 * config/i386/i386.md (*movtf_internal): Avoid allocating general
10096 registers. Penalize F*r->o alternative to prevent partial memory
10097 stalls. Slightly penalize *roF->*r alternative. Generate SSE
10098 CONST_DOUBLE immediates when optimizing function for size. Do not move
10099 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10100 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
10101 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
10102 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
10103 alternatives.
10104 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
10105
10106 (fp_register_operand splitters): Use fp_register_operand
10107 constraint. Do not use FP_REG_P in insn condition.
10108 (any_fp_register_operand splitters): Use any_fp_register_operand
10109 constraint. Do not use ANY_FP_REG_P in insn condition.
10110
533c07c5
JH
101112011-05-31 Jan Hubicka <jh@suse.cz>
10112
10113 * cgraph.h (cgraph_inline_failed_t): Give enum a name
10114 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
10115 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
10116 (lto_output_edge): Use output_enum and var_len_unsigned.
10117 (lto_output_varpool_node): Likewise.
10118 (input_overwrite_node): Do not take resolution parameter;
10119 extract it from a bitpack.
10120 (input_node): Do not read resolution; use input_enum and
10121 var_len_unsigned.
10122 (input_varpool_node): Likewise.
10123 (input_edge): Likewise.
10124 (input_cgraph_1): Likewise.
10125
2611db71
RG
101262011-05-31 Richard Guenther <rguenther@suse.de>
10127
10128 * gimple.c (gimple_register_canonical_type): Do not register
10129 any types via gimple_register_type.
10130
b9e57365
JH
101312011-05-31 Jan Hubicka <jh@suse.cz>
10132
10133 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
10134 of thunks.
10135
35979cc2
JJ
101362011-05-31 Jakub Jelinek <jakub@redhat.com>
10137
10138 PR rtl-optimization/49235
10139 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
10140 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
10141
8f7de592
IR
101422011-05-31 Ira Rosen <ira.rosen@linaro.org>
10143
10144 PR tree-optimization/49093
10145 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
10146 data references.
10147
8d8a3bda
DS
101482011-05-31 Dodji Seketeli <dodji@redhat.com>
10149
10150 PR debug/49047
10151 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 10152 for concrete functions containing the code of cloned functions.
8d8a3bda 10153
2e87621c
RG
101542011-05-31 Richard Guenther <rguenther@suse.de>
10155
10156 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
10157 to ...
10158 (forward_propagate_into_comparison_1): ... this.
10159 (forward_propagate_comparison): Rename to ...
10160 (forward_propagate_into_comparison): ... this. Split out
10161 real forward propagation code to ...
10162 (forward_propagate_comparison): ... this.
10163 (forward_propagate_into_gimple_cond): Remove looping.
10164 (forward_propagate_into_cond): Likewise.
10165 (simplify_not_neg_expr): Return whether we have done something.
10166 (simplify_gimple_switch): Likewise.
10167 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
10168 (ssa_forward_propagate_and_combine): ... this. Re-structure
10169 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 10170 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
10171 (pass_forwprop): Adjust.
10172
5a880d5d
ILT
101732011-05-30 Ian Lance Taylor <iant@google.com>
10174
10175 * godump.c (go_format_type): Correct length of name added to
10176 obstack for anonymous field.
10177
5f133038
KK
101782011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
10179
10180 PR target/49186
10181 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
10182 part of the second operand is 0.
10183
b17d5426
UB
101842011-05-30 Uros Bizjak <ubizjak@gmail.com>
10185
10186 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
10187 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
10188 to memory for !TARGET_MEMORY_MISMATCH_STALL.
10189 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 10190 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
10191 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
10192 when optimizing function for size. Do not move CONST_DOUBLEs
10193 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
10194 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
10195 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
10196 check for ANY_FP_REGNO_P instead.
10197 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
10198 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
10199 function for speed.
10200 * config/i386/i386.c (ix86_option_override_internal): Do not
10201 set TARGET_INTEGER_DFMODE_MOVES here.
10202
a0cd843f
L
102032011-05-30 H.J. Lu <hongjiu.lu@intel.com>
10204
10205 PR target/49168
aad61732 10206 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 10207
006a5f38
JJ
102082011-05-30 Jakub Jelinek <jakub@redhat.com>
10209
10210 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
10211 DW_TAG_rvalue_reference_type even for
10212 -gdwarf-4 -fno-debug-types-section.
10213
6e96f98a
BS
102142011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10215
10216 PR tree-optimization/46728
10217 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
10218 (build_and_insert_binop): New.
10219 (gimple_expand_builtin_pow): Reorder args for
10220 build_and_insert_call; use build_and_insert_binop; add more
10221 optimizations for fractional exponents.
b17d5426 10222
4f60111f
NF
102232011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
10224
10225 PR bootstrap/49190
10226
10227 Revert:
10228 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10229
10230 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10231 tree_common.
10232 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10233 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10234 TS_BASE instead of TS_COMMON.
10235 * varasm.c (assemble_name): Remove assert.
10236
3fd7879d
RS
102372011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
10238
10239 * config.gcc: Keep obselete list sorted.
10240
80060f7a
JJ
102412011-05-30 Jakub Jelinek <jakub@redhat.com>
10242 Eric Botcazou <ebotcazou@adacore.com>
10243
10244 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
10245 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
10246 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
10247 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
10248 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
10249
17e99cdb
RG
102502011-05-30 Richard Guenther <rguenther@suse.de>
10251
10252 * gimple.c (gimple_types_compatible_p_1): Compare record
10253 and union type members properly.
10254
42b05b6e
RG
102552011-05-30 Richard Guenther <rguenther@suse.de>
10256
10257 PR tree-optimization/49210
6ba5d856
UB
10258 * ipa-split.c (split_function): Care for the case where the call
10259 result is not trivially convertible to the result holding variable.
42b05b6e 10260
f3321158
RG
102612011-05-30 Richard Guenther <rguenther@suse.de>
10262
10263 PR tree-optimization/49218
10264 * tree-vrp.c (adjust_range_with_scev): Properly check whether
10265 overflow occured.
10266
d12d8efe
RG
102672011-05-30 Richard Guenther <rguenther@suse.de>
10268
10269 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
10270 New function split out from ...
10271 (forward_propagate_into_gimple_cond): ... here. Adjust.
10272 (forward_propagate_into_cond): Likewise.
10273 (forward_propagate_comparison): Also propagate into
10274 comparisons on assignment RHS. Change return value to
10275 behave similar to forward_propagate_into_cond.
10276 (tree_ssa_forward_propagate_single_use_vars): Handle
10277 strict-overflow warnings properly for forward_propagate_comparison.
10278
df33b41f
RO
102792011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10280
10281 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
10282 from plugin linker.
10283 * configure: Regenerate.
10284
69940d4d
IR
102852011-05-30 Ira Rosen <ira.rosen@linaro.org>
10286
10287 PR tree-optimization/49199
10288 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 10289 non-reduction operands are either defined in the loop or by induction.
69940d4d 10290
226c52aa
XDL
102912011-05-29 Xinliang David Li <davidxl@google.com>
10292
10293 * opts-global.c (handle_common_deferred_options): Handle new options.
10294 * passes.c (register_one_dump_file): Call register_pass_name.
10295 (execute_one_pass): Check explicit enable/disable flag.
10296 (passr_hash): New function.
10297 (passr_eq): Ditto.
10298 (register_pass_name): Ditto.
10299 (get_pass_by_name): Ditto.
10300 (pass_hash): Ditto.
10301 (pass_eq): Ditto.
10302 (enable_pass): Ditto.
10303 (disable_pass): Ditto.
10304 (is_pass_explicitly_enabled_or_disabled): Ditto.
10305
491d8eed
UB
103062011-05-29 Uros Bizjak <ubizjak@gmail.com>
10307
10308 * config/i386/i386.md (*movoi_internal_avx): Use
10309 standard_sse_constant_opcode for alternative 0.
10310 (*movti_internal_sse): Ditto.
10311 (*movti_internal_rex64): Use standard_sse_constant_opcode for
10312 alternative 2.
10313 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
10314 sselog1 type moves.
10315 (*movsi_internal): Ditto.
10316 (*movdi_internal): Ditto. Add ssecvt type moves.
10317
eb93b31f
EB
103182011-05-29 Eric Botcazou <ebotcazou@adacore.com>
10319
10320 PR target/48830
10321 * rtlanal.c (simplify_subreg_regno): Adjust comment.
10322
3f831b7d
JJ
103232011-05-29 Jakub Jelinek <jakub@redhat.com>
10324
10325 PR rtl-optimization/49095
10326 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
10327 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
10328
ee3ee488
RS
103292011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10330
10331 PR target/43995
10332 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
10333 recurse_p argument. Only follow register copies if it is set,
10334 and prevent mips_find_pic_call_symbol from recursing.
10335 (mips_find_pic_call_symbol): Add a recurse_p argument.
10336 Pass it to mips_pic_call_symbol_from_set.
10337 (mips_annotate_pic_calls): Update accordingly.
10338
65f3dedb
RS
103392011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10340
10341 * emit-rtl.c (try_split): Use a loop to search for
10342 NOTE_INSN_CALL_ARG_LOCATIONs.
10343
61e374ab
RG
103442011-05-29 Richard Guenther <rguenther@suse.de>
10345
10346 PR tree-optimization/49217
10347 * ipa-pure-const.c (propagate_pure_const): Fix typos.
10348
fac009a8
JH
103492011-05-28 Jan Hubicka <jh@suse.cz>
10350
10351 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
10352 length.
10353 (string_slot_free): Remove
10354 (create_output_block): Initialize obstack.
10355 (destroy_output_block): Free obstack.
10356 (lto_string_index): Add PERSISTENT parameter; do not duplicate
10357 the string unless it needs to be added into the hash.
10358 (lto_output_string_with_length): Add persistent attribute;
10359 handle NULL strings.
10360 (lto_output_string): Add PERSISTENT parameter.
10361 (output_string_cst, output_identifier): Simplify.
10362 (lto_output_location_bitpack): Update.
10363 (lto_output_builtin_tree): Update.
10364 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
10365 (lto_output_string, lto_output_string_with_length): Remove
10366 declarations; functions are static now.
fac009a8 10367
fa766006
JH
103682011-05-28 Jan Hubicka <jh@suse.cz>
10369
10370 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
10371 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
10372 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
10373 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
10374 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
10375 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
10376 unpack_ts_decl_with_vis_value_fields,
10377 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
10378 lto_get_builtin_tree): Use enum and variable length i/o.
10379 * basic-block.h (profile_status_d): Add PROFILE_LAST.
10380 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
10381 New functions.
10382 (bp_pack_enum, bp_unpack_enum): New macros.
10383
e092158b
RS
103842011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10385
10386 * genrecog.c: Remove redundant forward declarations.
10387
7ca2afa0
RS
103882011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10389
10390 * config.gcc: Deprecate mips*-*-openbsd*.
10391
a601a53a
RS
103922011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10393
10394 PR bootstrap/49195
10395 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
10396 for match_op_dup.
10397
fc64b448
AP
103982011-05-27 Andrew Pinski <pinskia@gmail.com>
10399
10400 PR middle-end/48981
10401 * gengtype.c (vec_prefix_type): New function.
10402 (note_def_vec): Use vec_prefix_type and change the length
10403 attribute to be based on the prefix.
10404 * vec.c: Include coretypes.h before vec.h.
10405 (struct vec_prefix): Remove.
10406 (vec_gc_p_reserve): Change the offsetof to sizeof.
10407 (vec_gc_p_reserve_exact): Likewise.
10408 (vec_heap_p_reserve): Likewise.
10409 (vec_heap_p_reserve_exact): Likewise.
10410 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
10411 (vec_stack_p_reserve): Change the offsetof to sizeof.
10412 (vec_stack_p_reserve_exact): Likewise.
10413 * vec.h (struct vec_prefix): New struct definition.
10414 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
10415 (VEC_T_GTY(T,B)): Likewise.
10416 (DEF_VEC_FUNC_P(T)): Use prefix field.
10417 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
10418 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
10419
ba869341
BS
104202011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10421
10422 PR tree-optimization/46728
10423 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
10424 (powi_as_mults): Add gimple_set_location.
10425 (build_and_insert_call): New.
10426 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
10427 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 10428
d296760d
AM
104292011-05-27 Alexander Monakov <amonakov@ispras.ru>
10430
10431 * doc/contrib.texi: Update copyright years.
10432 (Contributors): Add Zdenek Sojka.
10433
38e01f9e
NF
104342011-05-27 Nathan Froyd <froydnj@codesourcery.com>
10435
10436 * c-decl.c (c_push_function_context): Copy the current statement
10437 list stack.
10438 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
10439 (finish_struct): Call building_stmt_list_p instead of checking
10440 cur_stmt_list.
10441 * c-parser.c (c_parser_postfix_expression): Likewise.
10442 * c-typeck.c (c_end_compound_stmt): Likewise.
10443 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
10444 * tree-iterator.c (stmt_list_cache): Change to a VEC.
10445 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
10446 (free_stmt_list): Likewise.
10447 * tree.h (struct tree_statement_list): Include typed_tree instead
10448 of tree_common.
10449 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
10450 as TS_TYPED instead of TS_COMMON.
10451
8950516e 104522011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 10453 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
10454
10455 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
10456 (HAVE_AS_IX86_TLSGDPTL): Define.
10457 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
10458 (HAVE_AS_IX86_TLSLDMPLT): Define.
10459 * configure: Regenerate.
10460 * config.in: Regenerate.
10461 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
10462 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
10463 TARGET_SUN_TLS, use @tlsgdplt or @plt.
10464 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
10465 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
10466 @tlsldmplt or @plt.
10467 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
10468
b0bd15f7
BS
104692011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10470
10471 * sched-int.h (struct _haifa_deps_insn_data): New members cond
10472 and reverse_cond.
10473 (INSN_COND, INSN_REVERSE_COND): New macros.
10474 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
10475 once.
10476 (sched_get_condition_with_rev): Cache the results, and look them up
10477 if possible.
10478 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
10479 are clobbered by the current insn.
10480 * target.def (exposed_pipline): New sched data hook.
10481 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
10482 * doc/tm.texi: Regenerate.
10483
fa65a9cf
BS
104842011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10485
10486 PR tree-optimization/49170
10487 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
10488 sincos or cexp.
b0bd15f7 10489
c2299dfe
RG
104902011-05-27 Richard Guenther <rguenther@suse.de>
10491
10492 PR middle-end/49189
10493 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
10494 of comparisons.
10495
a95b23b4
BS
104962011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10497
10498 * haifa-sched.c (sched_scan_info): Remove.
10499 (schedule_block): Call sched_extend_luids rather than sched_init_luids
10500 with NULL args.
10501 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
10502 Remove functions.
10503 (sched_scan): Remove.
10504 (sched_extend_luids): Renamed from luids_extend_insn and no longer
10505 static. All callers changed.
10506 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
10507 static. All callers changed.
10508 (sched_init_luids): Remove all arguments except the first. All
10509 callers changed. Don't use sched_scan.
10510 (haifa_init_h_i_d): Likewise.
10511 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
10512 manually rather than using sched_init_luids. Likewise with
10513 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
10514 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
10515 rather than sched_init_luids with NULL args.
10516 * sel-sched-ir.c (new_insns): Remove variable.
10517 (sched_scan): New static function, previously in haifa-sched.c. Remove
10518 all arguments but the first two; all callers changed.
10519 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
10520 rather than sched_init_luids.
10521 (sel_init_bbs): Remove second argument. All callers changed.
10522 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
10523 with NULL arguments.
10524 (create_insn_rtx_from_pattern): Likewise.
10525 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
10526 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
10527 (sched_init_insn_luid, sched_extend_luids): Declare.
10528 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
10529 declarations.
10530
f8f972fc
RB
105312011-05-27 Richard Guenther <rguenther@suse.de>
10532
10533 PR middle-end/49177
10534 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
10535 A CMP B ? (T) true : (T) false for non-integral types T again.
10536
51a9ed47
JH
105372011-05-27 Jan Hubicka <jh@suse.cz>
10538
10539 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
10540 so 0 means NULL string.
10541 (lto_output_string_with_length): ... here.
f8f972fc
RB
10542 (lto_output_string, output_string_cst, output_identifier): Update
10543 handling of NULL strings.
51a9ed47
JH
10544 (lto_output_location_bitpack): New function.
10545 (lto_output_location): Use it.
10546 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
10547 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
10548 len values.
10549 * lto-streamer-in.c (string_for_index): Break out from ...; offset
10550 values by 1.
491d8eed 10551 (input_string_internal): ... here;
f8f972fc
RB
10552 (input_string_cst, input_identifier, lto_input_string): Update handling
10553 of NULL strings.
51a9ed47
JH
10554 (lto_input_location_bitpack): New function
10555 (lto_input_location): Use it.
f8f972fc
RB
10556 (unpack_ts_type_common_value_fields): Pack align & alias in var len
10557 values.
51a9ed47
JH
10558 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
10559 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
10560 (bp_pack_value): Sanity check the value range.
10561 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
10562 New functions.
10563 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
10564 New functions.
10565
66bd20e7 105662011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
10567
10568 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
10569 call_arg_location instructions down the floor.
10570
574e418a
VM
105712011-05-26 Vladimir Makarov <vmakarov@redhat.com>
10572
10573 PR rtl-optimization/49154
10574 * ira.c (setup_pressure_classes): Process class without sublcasses
10575 as a candidate for pressure classes.
10576
6a1a787e
RS
105772011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
10578
10579 PR rtl-optimization/48575
10580 * genrecog.c (position_type): New enum.
10581 (position): New structure.
10582 (decision): Use position structure instead of a string.
10583 (root_pos, peep2_insn_pos_list): New variables.
10584 (next_position, compare_positions): New functions.
10585 (new_decision): Use position structures instead of strings.
10586 (maybe_both_true): Likewise.
10587 (change_state): Likewise.
10588 (write_tree): Likewise.
10589 (make_insn_sequence): Likewise.
10590
92e948a8
NF
105912011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10592
10593 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
10594 TS_BASE instead of TS_COMMON.
10595 (find_decls_types_r): Check for TS_TYPED structure before looking at
10596 TREE_TYPE.
10597 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
10598 Add chain field.
10599 (BLOCK_CHAIN): Use new chain field.
10600
66bd20e7 106012011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
10602
10603 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
10604 moves expensive on Power7 also.
10605
1f498652
RG
106062011-05-26 Richard Guenther <rguenther@suse.de>
10607
10608 * fold-const.c (fold_unary_loc): Remove bogus code.
10609
a2fc3e63
NF
106102011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10611
10612 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10613 tree_common.
10614 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10615 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10616 TS_BASE instead of TS_COMMON.
10617 * varasm.c (assemble_name): Remove assert.
10618
d11bf18f
BS
106192011-05-26 Bernd Schmidt <bernds@codesourcery.com>
10620
10621 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
10622 substituted first.
10623 * libgcc-std.ver: Delete file.
10624
ac8e1875
RG
106252011-05-26 Richard Guenther <rguenther@suse.de>
10626
10627 PR tree-optimization/48702
10628 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
10629 only when we know the base address is within bounds.
10630 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
10631 assume the base address of TARGET_MEM_REFs is in bounds.
10632
7e32e652
RO
106332011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10634
10635 PR target/49099
10636 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
10637 declaration in TARGET_SOLARIS.
10638
66bd20e7 106392011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
10640
10641 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 10642 The instruction is then expanded explicitly.
43660e0b
HS
10643 (supported_compare): Callable instruction.
10644 (compare): Likewise.
10645
1537737f
JJ
106462011-05-26 Jakub Jelinek <jakub@redhat.com>
10647
10648 PR c++/49165
10649 * gimplify.c (shortcut_cond_r): Don't special case
10650 COND_EXPRs if they have void type on one of their arms.
10651
7b1ac803
BS
106522011-05-26 Bernd Schmidt <bernds@codesourcery.com>
10653
10654 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
10655 to reduce duplication, and to achieve a slightly more logical order
10656 of operations.
10657
1aa9438f
JJ
106582011-05-26 Jakub Jelinek <jakub@redhat.com>
10659
10660 PR tree-optimization/49161
10661 * tree-vrp.c (struct case_info): New type.
10662 (compare_case_labels): Sort case_info structs instead of
10663 trees, and not primarily by CASE_LABEL uids but by
10664 label_for_block indexes.
10665 (find_switch_asserts): Put case labels into struct case_info
10666 array instead of TREE_VEC, adjust sorting, compare label_for_block
10667 values instead of CASE_LABELs.
10668
50fed7bf
RR
106692011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10670
10671 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
10672 ("orndi3_neon"): Likewise.
10673 ("bic<mode>3_neon"): Likewise.
10674
48df3fa6
IR
106752011-05-26 Ira Rosen <ira.rosen@linaro.org>
10676
10677 PR tree-optimization/49038
10678 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
10679 Ensure at least one epilogue iteration if required by data
10680 accesses with gaps.
10681 * tree-vectorizer.h (struct _loop_vec_info): Add new field
10682 to mark loops that require peeling for gaps.
10683 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
10684 (vect_get_known_peeling_cost): Take peeling for gaps into
10685 account.
10686 (vect_transform_loop): Generate epilogue if required by data
10687 access with gaps.
10688 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
10689 loop as requiring an epilogue if there are gaps in the end of
10690 the strided group.
10691
53febcba
ILT
106922011-05-25 Ian Lance Taylor <iant@google.com>
10693
10694 * godump.c (go_format_type): Output the first field with a usable
10695 Go type, if any.
10696
dbbc4d4c
ILT
106972011-05-25 Ian Lance Taylor <iant@google.com>
10698
10699 * godump.c (go_format_type): Check for invalid type names, pointer
10700 target types, and struct field types.
10701
f03a5402
JM
107022011-05-25 Jason Merrill <jason@redhat.com>
10703
10704 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
10705
c497c412
UB
107062011-05-25 Uros Bizjak <ubizjak@gmail.com>
10707
10708 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
10709
e470affe
L
107102011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10711
10712 * config/i386/i386.md (*movqi_extv_1)): Put back
10713 "register_operand" check in "type" calculation.
10714 (*movqi_extzv_2): Likewise.
10715
6c81b2bc
L
107162011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10717
c497c412 10718 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 10719
0c007eb2
BS
107202011-05-25 Bernd Schmidt <bernds@codesourcery.com>
10721
10722 PR bootstrap/49160
10723 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
10724 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
10725 __divxc3, __divtc3): Wrap definitions in #ifndef.
10726
521ca78e
L
107272011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10728
10729 PR target/49142
10730 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
10731 "register_operand" check and replace q_regs_operand with
10732 QIreg_operand in "type" calculation.
10733 (*movqi_extv_1): Likewise.
10734 (*movqi_extzv_2_rex64): Likewise.
10735 (*movqi_extzv_2): Likewise.
10736
10737 * config/i386/predicates.md (QIreg_operand): New.
10738
29f8b844
RG
107392011-05-25 Richard Guenther <rguenther@suse.de>
10740
10741 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10742 type-based offset disambiguation, streamline MEM_REF and
10743 TARGET_MEM_REF handling.
10744
74838de3
L
107452011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10746
10747 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
10748 (bdesc_special_args): Add pause intrinsic.
10749
10750 * config/i386/i386.md (UNSPEC_PAUSE): New.
10751 (pause): Likewise.
10752 (*pause): Likewise.
10753 * config/i386/ia32intrin.h (__pause): Likewise.
10754
10755 * doc/extend.texi (X86 Built-in Functions): Add documentation for
10756 pause intrinsic.
10757
d24ad7d6
BS
107582011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10759
10760 PR tree-optimization/46728
10761 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
10762 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 10763
d9f8303f
NF
107642011-05-25 Nathan Froyd <froydnj@codesourcery.com>
10765
10766 * tree.h (struct tree_exp): Inherit from struct tree_typed.
10767 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
10768 instead of TS_COMMON.
10769
cdbf4541
BS
107702011-05-25 Bernd Schmidt <bernds@codesourcery.com>
10771
10772 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
10773 LIBGCC2_GNU_PREFIX is defined.
10774 (__N): New macro.
10775 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
10776 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
10777 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
10778 __clz_tab): Define using __N.
10779 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
10780 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
10781 * target.def (libfunc_gnu_prefix): New hook.
10782 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
10783 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
10784 * doc/tm.texi: Regenerate.
10785 * system.h (LIBGCC2_GNU_PREFIX): Poison.
10786 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
10787 account.
10788 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
10789 (init_optabs): Likewise for the bswap libfuncs.
10790 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
10791 and divide.
10792 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
10793 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
10794 * libgcc-std.ver: Remove.
10795 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
10796 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
10797 libgcc-std.ver.
10798 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10799 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
10800 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
10801 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
10802 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
10803 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10804 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10805 * config/fixed-bit.h (FIXED_OP): Define differently depending on
10806 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
10807 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
10808
f242c0a5
JH
108092011-05-25 Jan Hubicka <jh@suse.cz>
10810
10811 * lto-streamer-out.c (output_record_start): Use lto_output_enum
10812 (lto_output_tree): Use output_record_start.
10813 * lto-streamer-in.c (input_record_start): Use lto_input_enum
10814 (lto_get_pickled_tree): Use input_record_start.
10815 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
10816 (lto_value_range_error): New function.
10817 * lto-streamer.h (lto_value_range_error): Declare.
10818 (lto_output_int_in_range, lto_input_int_in_range): New functions.
10819 (lto_output_enum, lto_input_enum): New macros.
10820
a11e0df4
EB
108212011-05-25 Eric Botcazou <ebotcazou@adacore.com>
10822
10823 * common.opt (flag_stack_usage_info): New variable.
10824 (-Wstack-usage): New option.
10825 * doc/invoke.texi (Warning options): Document -Wstack-usage.
10826 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
10827 <OPT_fstack_usage>: Likewise.
10828 * toplev.c (output_stack_usage): Handle -Wstack-usage.
10829 * calls.c (expand_call): Test flag_stack_usage_info variable instead
10830 of flag_stack_usage.
10831 (emit_library_call_value_1): Likewise.
10832 * explow.c (allocate_dynamic_stack_space): Likewise.
10833 * function.c (instantiate_virtual_regs ): Likewise.
10834 (prepare_function_start): Likewise.
10835 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
10836 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
10837 * config/arm/arm.c (arm_expand_prologue): Likewise.
10838 (thumb1_expand_prologue): Likewise.
10839 * config/avr/avr.c (expand_prologue): Likewise.
10840 * config/i386/i386.c (ix86_expand_prologue): Likewise.
10841 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10842 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
10843 * config/mips/mips.c (mips_expand_prologue): Likewise.
10844 * config/pa/pa.c (hppa_expand_prologue): Likewise.
10845 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10846 * config/s390/s390.c (s390_emit_prologue): Likewise.
10847 * config/sh/sh.c (sh_expand_prologue): Likewise.
10848 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10849 * config/spu/spu.c (spu_expand_prologue): Likewise.
10850
e7cfe241
RG
108512011-05-25 Richard Guenther <rguenther@suse.de>
10852
10853 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
10854 (gimple_canonical_types_compatible_p): Likewise.
10855
c5235f4c
JH
108562011-05-25 Jan Hubicka <jh@suse.cz>
10857
10858 PR middle-end/49062
10859 * ipa.c (function_and_variable_visibility): Only add to same
10860 comdat group list if DECL_ONE_ONLY.
10861
8242a0f6
AB
108622011-05-25 Andrey Belevantsev <abel@ispras.ru>
10863
10864 PR rtl-optimization/49014
10865 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
10866
642a011d
JJ
108672011-05-25 Jakub Jelinek <jakub@redhat.com>
10868
10869 PR target/49128
10870 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
10871
30a435d8
VM
108722011-05-24 Vladimir Makarov <vmakarov@redhat.com>
10873
10874 PR rtl-optimization/48757
10875 * ira-build.c (loop_with_eh_edge_p): Rename to
10876 loop_with_complex_edge_p, check edges on complexity, make function
10877 conditional.
10878 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
10879 conditional.
10880
24d1bbc7
EB
108812011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10882
10883 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
10884 force flag_ira_share_save_slots to 0.
10885
65773087
EB
108862011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10887
10888 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
10889 (vt_initialize): Set PROLOGUE_BB unconditionally.
10890 Add block comment about CFA_BASE_RTX machinery.
10891 Reset FP_CFA_OFFSET to -1 on all invalid paths.
10892 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
10893
4e26ba90
NP
108942011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
10895
10896 PR objc/48187
10897 * c-parser.c (c_parser_objc_class_instance_variables): More robust
10898 parsing of syntax error in ObjC instance variable lists. In
10899 particular, avoid an infinite loop if there is a stray ']'.
10900 Updated error message.
10901
936fd13c
ILT
109022011-05-24 Ian Lance Taylor <iant@google.com>
10903
10904 * godump.c (go_define): Don't accept a string immediately after
10905 another operand.
10906
f17333e3
ILT
109072011-05-24 Ian Lance Taylor <iant@google.com>
10908
10909 * godump.c (struct godump_container): Add invalid_hash field.
10910 (go_format_type): Return false if type is found in invalid_hash.
10911 (go_output_typedef): Add invalid type to invalid_hash.
10912 (go_finish): Create and delete invalid_hash.
10913
d24ad7d6 109142011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 10915
78be79d5
BS
10916 PR tree-optimization/46728
10917 * tree-ssa-math-opts.c (powi_table): New.
10918 (powi_lookup_cost): New.
10919 (powi_cost): New.
10920 (powi_as_mults_1): New.
10921 (powi_as_mults): New.
10922 (gimple_expand_builtin_powi): New.
10923 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
10924 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 10925
caee412b
RO
109262011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10927
10928 PR target/3746
10929 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
10930 mips-tdump native.
10931 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
10932 * mips-tdump.c: Likewise.
10933
5eed4f27
L
109342011-05-24 H.J. Lu <hongjiu.lu@intel.com>
10935
10936 PR target/49128
10937 * config/i386/driver-i386.c (host_detect_local_cpu): Always
10938 add -mno-XXX. Handle FMA.
10939
8c5fdaae
VM
109402011-05-24 Vladimir Makarov <vmakarov@redhat.com>
10941
10942 PR rtl-optimization/48633
10943 * ira-build.c (loop_with_eh_edge_p): New function.
10944 (mark_loops_for_removal): Use it.
10945
109462011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
10947
10948 PR rtl-optimization/48971
10949 * ira.c (setup_pressure_classes): Don't check register move cost
10950 for classes with one registers. Don't add pressure class if there
10951 is a pressure class with the same available hard registers.
10952 Check contains_reg_of_mode. Fix a typo in collecting
10953 temp_hard_regset. Ignore hard registers not belonging to a class.
10954
df1f7315
UB
109552011-05-24 Uros Bizjak <ubizjak@gmail.com>
10956
10957 PR target/49133
10958 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
10959
ee0cb37c
EB
109602011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10961 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10962
10963 PR gcov-profile/48845
10964 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
10965
6a20ce76
RG
109662011-05-24 Richard Guenther <rguenther@suse.de>
10967
10968 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
10969 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
10970 (gimple_types_compatible_p_1): Adjust.
10971 (iterative_hash_canonical_type): Do not bother about complete vs.
10972 incomplete types.
10973 (gimple_canonical_types_compatible_p): Likewise.
10974
2fcb858c
RO
109752011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10976
10977 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
10978
96d91dcf
RG
109792011-05-24 Richard Guenther <rguenther@suse.de>
10980
10981 PR bootstrap/49078
10982 * gimple.c (gimple_register_canonical_type): Revert
10983 previous change.
10984 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
10985 does not for a tree for the case where it matters. Cache
10986 pointer-type alias-sets.
10987
1ed1641d
JM
109882011-05-24 Joseph Myers <joseph@codesourcery.com>
10989
10990 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
10991 (OBJS): Remove options.o, opts-common.o and prefix.o.
10992 (OBJS-libcommon-target): New.
10993 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
10994 (BACKEND): Include libcommon-target.a.
10995 (MOSTLYCLEANFILES): Include libcommon-target.a.
10996 (libcommon-target.a): New.
10997 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
10998 prefix.o.
10999
57dfdff0
JM
110002011-05-23 Joseph Myers <joseph@codesourcery.com>
11001
11002 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
11003 parts of output shared with the driver.
11004 * optc-gen.awk: Don't generate parts of output not shared with the
11005 driver.
11006 * opth-gen.awk: Remove GCC_DRIVER conditionals.
11007 * doc/options.texi (SourcerInclude): Mention options-save.c.
11008 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
11009 (OBJS): Add options-save.o.
11010 (options-save.c, options-save.o): New.
11011 (options.o): Update dependencies.
11012 (gcc-options.o): Remove.
11013 (mostlyclean): Remove options-save.c.
11014
0e0d82a7
JJ
110152011-05-23 Jakub Jelinek <jakub@redhat.com>
11016
9166988f
JJ
11017 PR debug/49032
11018 * dbxout.c: Include cgraph.h.
11019 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
11020 and without value expr, return NULL if no varpool node exists for
11021 it or if it is not needed.
11022 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
11023
0e0d82a7
JJ
11024 PR c/49120
11025 * c-decl.c (start_decl): Convert expr to void_type_node.
11026
65712d5c
RS
110272011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
11028
11029 PR rtl-optimization/48826
11030 * emit-rtl.c (try_split): When splitting a call that is followed
11031 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
11032
9025085e
JJ
110332011-05-23 Jakub Jelinek <jakub@redhat.com>
11034
11035 * cfgexpand.c (expand_debug_expr): For unused non-addressable
11036 parameters passed in memory prefer using DECL_INCOMING_RTL over
11037 the pseudos it will be copied into.
11038
34a061be
L
110392011-05-23 H.J. Lu <hongjiu.lu@intel.com>
11040
11041 PR target/47315
11042 * config/i386/i386.c (ix86_option_override_internal): Save the
11043 initial options after checking vzeroupper.
11044
c375a3a4
DL
110452011-05-23 David Li <davidxl@google.com>
11046
11047 PR tree-optimization/48988
11048 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
11049 Initialize has_valid_pred for each pred chain.
11050
e1caba18
RG
110512011-05-23 Richard Guenther <rguenther@suse.de>
11052
11053 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
11054 (iterative_hash_gimple_type): Always hash type names.
11055
dde05067
NF
110562011-05-23 Nathan Froyd <froydnj@codesourcery.com>
11057
11058 * c-typeck.c (build_function_call_vec): Tweak call to
11059 check_function_arguments.
11060
094f6ab3
RG
110612011-05-23 Richard Guenther <rguenther@suse.de>
11062
11063 PR tree-optimization/49115
11064 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
11065 is not necessarily carried out, do not claim it kills the ref.
11066 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
11067
9a9822e1
RG
110682011-05-23 Richard Guenther <rguenther@suse.de>
11069
11070 PR middle-end/15419
11071 * builtins.c (fold_builtin_memory_op): Be less restrictive about
11072 what pointer types we accept for folding.
11073
c8028650
RO
110742011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11075
11076 * gthr-gnat.c: Remove.
11077 * gthr-gnat.h: Remove.
11078 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
11079 * config/t-freebsd (LIB2ADDEH): Likewise.
11080 * config/t-linux (LIB2ADDEH): Likewise.
11081 * config/t-sol2 (LIB2ADDEH): Likewise.
11082 * config/ia64/t-vms (LIB2ADDEH): Likewise.
11083 * configure.ac (target_thread_file): Remove gnat handling.
11084 * configure: Regenerate.
11085 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
11086
15882fe9
TG
110872011-05-23 Tristan Gingold <gingold@adacore.com>
11088 Eric Botcazou <ebotcazou@adacore.com>
11089
11090 * gcov.c (create_file_names): If no object directory is specified,
11091 keep the directory of the file.
11092
da90c957
RO
110932011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11094
11095 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
11096 * configure: Regenerate.
11097
7bba408b
JJ
110982011-05-23 Jakub Jelinek <jakub@redhat.com>
11099
11100 PR middle-end/48973
11101 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
11102 failed and the comparison has a single bit signed type, use
11103 constm1_rtx instead of const1_rtx for true value.
11104 (do_store_flag): If ops->type is single bit signed type, disable
11105 signel bit test optimization and pass -1 instead of 1 as last
11106 parameter to emit_store_flag_force.
11107
bc69f7ff
TV
111082011-05-23 Tom de Vries <tom@codesourcery.com>
11109
11110 PR target/45098
11111 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
11112 function.
11113 (infer_loop_bounds_from_undefined): Use new function.
11114
29cedf8e
RS
111152011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11116
11117 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
11118 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
11119 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
11120 and -O0 otherwise.
11121 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
11122
afe8b6ec
EB
111232011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11124
11125 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
11126 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
11127 returns true.
11128
872dab53
RS
111292011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11130
11131 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
11132
145f6c5b
EB
111332011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11134
11135 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
11136 UNSPEC_MOVE_PIC pattern.
11137
8ac79835
EB
111382011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11139
11140 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
11141 (sparc-*-rtems*): Likewise.
11142 (sparc64-*-elf*): Likewise.
11143 (sparc64-*-rtems*): Likewise.
11144 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
11145 * config/sparc/t-crtin: New file.
11146 * config/sparc/t-sol2 (crti.o): Delete rule.
11147 (crtn.o): Likewise.
11148 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
11149 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
11150 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
11151 (ENDFILE_SPEC): Add crtn.o.
11152
5fb43dd8
TV
111532011-05-22 Tom de Vries <tom@codesourcery.com>
11154
11155 PR middle-end/48689
11156 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
11157 CODE_CONTAINS_STRUCT (TS_COMMON).
11158
ccb1b17b
JJ
111592011-05-22 Jakub Jelinek <jakub@redhat.com>
11160
11161 PR middle-end/49029
11162 * expmed.c (extract_fixed_bit_field): Test whether target can be used
11163 only after deciding which mode to use.
11164
50ad7db2
TV
111652011-05-22 Tom de Vries <tom@codesourcery.com>
11166
11167 PR target/45098
dc0a3366 11168 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
11169 for call to get_shiftadd_cost.
11170
ef230b38
UB
111712011-05-22 Uros Bizjak <ubizjak@gmail.com>
11172
11173 PR target/49104
11174 * config/i386/cpuid.h (bit_MMXEXT): New define.
11175
15f072f9
NC
111762011-05-22 Nick Clifton <nickc@redhat.com>
11177
11178 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
11179 initialisation of non-existant args[2] element. Use args[] array
11180 not arg[] array to pass arguments to build_function_type_list.
11181
e38fdc94
IR
111822011-05-22 Ira Rosen <ira.rosen@linaro.org>
11183
11184 PR tree-optimization/49087
ef230b38 11185 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 11186
5b018c65
JM
111872011-05-21 Jason Merrill <jason@redhat.com>
11188
11189 PR c++/49092
11190 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
11191 static storage duration.
11192
abd9a770
EB
111932011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11194
11195 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
11196 frame pointer.
11197
bd9a3248
EB
111982011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11199
11200 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
11201 false if there are call-saved registers here...
11202 (sparc_can_use_return_insn_p): ...but here instead.
11203 (save_or_restore_regs): Fix thinko.
11204 (sparc_expand_prologue): Use current_function_is_leaf.
11205 (sparc_frame_pointer_required): Likewise.
11206
a5dfec9a
NC
112072011-05-21 Nick Clifton <nickc@redhat.com>
11208
11209 PR target/49098
11210 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
11211
555c3771
NP
112122011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
11213
11214 * gengtype.c (walk_type): Implemented "atomic" GTY option.
11215 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
11216
86fa5de4
JM
112172011-05-21 Joseph Myers <joseph@codesourcery.com>
11218
11219 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
11220 * optc-gen.awk: Move common code to opt-read.awk.
11221 * opth-gen.awk: Likewise.
ef230b38 11222 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 11223
bce33ab2
NF
112242011-05-20 Nathan Froyd <froydnj@codesourcery.com>
11225
11226 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
11227
e6450c11
TV
112282011-05-20 Tom de Vries <tom@codesourcery.com>
11229
11230 PR target/45098
11231 * tree-ssa-loop-ivopts.c: Include expmed.h.
11232 (get_shiftadd_cost): New function.
11233 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
11234
0e8b84ec
JJ
112352011-05-20 Jakub Jelinek <jakub@redhat.com>
11236
11237 PR bootstrap/49086
11238 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
11239 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
11240
946bdf67
JM
112412011-05-20 Joseph Myers <joseph@codesourcery.com>
11242
11243 * Makefile.in: Update comment referring to $(OBJS-common).
11244
c53aafdf
ILT
112452011-05-20 Ian Lance Taylor <iant@google.com>
11246
11247 * godump.c (go_output_typedef): Put enum constants in the macro
11248 hash table to avoid duplicate Go const definitions.
11249
2691e6d7
JM
112502011-05-20 Joseph Myers <joseph@codesourcery.com>
11251
11252 * Makefile.in (LIBDEPS): Add libcommon.a.
11253 (LIBS): Likewise.
11254 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
11255 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
11256 pretty-print.o and version.o.
11257 (OBJS-libcommon): New.
11258 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
11259 (BACKEND): Add libcommon.a.
11260 (MOSTLYCLEANFILES): Likewise.
11261 (libcommon.a): New.
11262 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
11263 (cpp$(exeext)): Likewise.
11264 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
11265 pretty-print.o and input.o.
11266 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
11267 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
11268 (errors.o): Remove.
11269 (mips-tfile): Don't explicitly use version.o.
11270 (mips-tdump): Likewise.
11271 (gcov.o): Depend on $(DIAGNOSTIC_H).
11272 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
11273 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
11274 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
11275 * gcov-dump.c: Include intl.h and diagnostic.h.
11276 (main): Initialize diagnostics.
11277 * gcov.c: Include diagnostic.h.
11278 (fnotice): Remove.
11279 (main): Initialize diagnostics.
11280 * lto-wrapper.c: Include diagnostic.h.
11281 (main): Initialize diagnostics.
11282
252b3e8c
MM
112832011-05-20 Michael Matz <matz@suse.de>
11284
11285 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
11286
2ee36ba6
MM
112872011-05-20 Michael Matz <matz@suse.de>
11288 Richard Guenther <rguenther@suse.de>
11289
11290 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
11291 use lto_streamer_cache_append directly instead of returning a VEC.
11292 (preload_common_node): Remove.
11293 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
11294 track seen nodes.
11295 (lto_streamer_cache_create): Call lto_preload_common_nodes.
11296
90ff582f
RG
112972011-05-20 Richard Guenther <rguenther@suse.de>
11298
11299 PR tree-optimization/49079
11300 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
11301 MEM_REFs correctly for the trailing array access detection.
11302 Special case constants the same way as decls for overall size
11303 constraining.
11304
3cda91d8
UB
113052011-05-20 Uros Bizjak <ubizjak@gmail.com>
11306
11307 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
11308 argument expansion.
11309
6c66f733
JJ
113102011-05-20 Jakub Jelinek <jakub@redhat.com>
11311
11312 PR tree-optimization/49073
3cda91d8
UB
11313 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
11314 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
11315 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
11316
0ea80a16
RG
113172011-05-20 Richard Guenther <rguenther@suse.de>
11318
11319 PR middle-end/48849
11320 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
11321 of pointer types the same way the middle-end does.
11322
fb291a1e
RG
113232011-05-20 Richard Guenther <rguenther@suse.de>
11324
3cda91d8
UB
11325 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
11326 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 11327
37cb25ed
QN
113282011-05-19 Quentin Neill <quentin.neill@amd.com>
11329
11330 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
11331 (fma4_fmaddsub): Likewise
11332
a30726a4
JH
113332011-05-19 Jan Hubicka <jh@suse.cz>
11334
11335 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
11336 (GIMPLE_TYPE_PAIR_SIZE): New macro.
11337 (type_pair_cache): New static var.
11338 (lookup_type_pair): Use fixed sized custom hash; make inline.
11339 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
11340 calls of lookup_type_pair.
11341 (print_gimple_types_stats): Remove cache stats.
11342 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
11343 and gtc_ob.
11344
0955cf61
UB
113452011-05-19 Uros Bizjak <ubizjak@gmail.com>
11346
11347 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
11348 when TARGET_RDRND is active.
11349 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
11350 Generate dummy SImode target register when target is NULL.
11351
12d844c8
JM
113522011-05-19 Joseph Myers <joseph@codesourcery.com>
11353
11354 * config/arm/arm-fpus.def: New.
11355 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
11356 arm-fpus.def.
11357 * config/arm/arm-tables.opt: Regenerate.
11358 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
11359 (arm_option_override): Don't decode FPU name to string here.
11360 * config/arm/arm.opt (mfpu=): Use Enum.
11361 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
11362 Update dependencies.
11363
9e350e99
JM
113642011-05-19 Joseph Myers <joseph@codesourcery.com>
11365
11366 * collect2.c: Include diagnostic.h.
11367 (fatal_perror, fatal, error, fancy_abort): Remove.
11368 (main): Set progname. Call xmalloc_set_program_name and
11369 diagnostic_initialize.
11370 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
11371 scan_libraries, resolve_lib_name): Call fatal_error instead of
11372 fatal and fatal_perror.
11373 * collect2.h (error, fatal, fatal_perror): Don't declare.
11374 * tlink.c: Include diagnostic-core.h.
11375 (recompile_files): Call fatal_error instead of fatal_perror.
11376 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
11377 pretty-print.o and input.o.
11378 (collect2.o, tlink.o): Update dependencies.
11379
86ff4081
RO
113802011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11381
11382 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
11383
2ca48caa
RO
113842011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11385
11386 PR target/40483
11387 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
11388 COMDAT group syntax, both SPARC and x86 variants.
11389 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
11390 * configure: Regenerate.
11391 * config/sol2.h (TARGET_SOLARIS): Define.
11392 (PUSHSECTION_FORMAT): Remove.
11393 (SECTION_NAME_FORMAT): Define.
11394 * config/sol2.c: Include hashtab.h.
11395 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
11396 expansion, using SECTION_NAME_FORMAT.
11397 (solaris_comdat_htab): New variable.
11398 (struct comdat_entry): Define.
11399 (comdat_hash): New function.
11400 (comdat_eq): New function.
11401 (solaris_elf_asm_comdat_section): New function.
11402 (solaris_define_comdat_signature): New function.
11403 (solaris_code_end): New function.
11404 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
11405 (solaris_code_end): Declare.
11406 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
11407 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
11408 solaris_code_end.
11409 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
11410 Remove ATTRIBUTE_UNUSED.
11411 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
11412 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 11413 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
11414 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
11415 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
11416 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
11417 (PUSHSECTION_FORMAT): Remove.
11418 (SECTION_NAME_FORMAT): Redefine.
11419
da5fb469
KT
114202011-05-19 Kai Tietz <ktietz@redhat.com>
11421
11422 * tree-cfg.c (verify_gimple_assign_binary): Barf on
11423 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
11424 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
11425
1651e703 114262011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
11427 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11428
11429 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
11430
e497b9bd
RG
114312011-05-19 Richard Guenther <rguenther@suse.de>
11432
11433 PR middle-end/48985
11434 * tree-object-size.c (addr_object_size): If the pointed-to
11435 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
11436
31b3ca64
RG
114372011-05-19 Richard Guenther <rguenther@suse.de>
11438
11439 * gimple.c (gimple_types_compatible_p_1): Compare names of
11440 the types themselves.
11441 (iterative_hash_gimple_type): And hash them that way.
11442 (gimple_register_type_1): If we register a main variant properly
11443 initialize the leader to ourselves.
11444
bb8d292d
TV
114452011-05-19 Tom de Vries <tom@codesourcery.com>
11446
11447 PR target/45098
11448 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
11449 get_loop_invariant_expr_id.
11450 (get_loop_invariant_expr_id): Use get_expr_id.
11451 (parm_decl_cost): New function.
11452 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
11453 Improve bound cost estimation. Use different inv_expr_id for elim and
11454 express cases.
11455
a53c5024
TV
114562011-05-19 Tom de Vries <tom@codesourcery.com>
11457
11458 PR target/45098
11459 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
11460 cost_base.cost == 0.
11461
31f9eb59
L
114622011-05-18 H.J. Lu <hongjiu.lu@intel.com>
11463
11464 PR target/49002
66bd20e7
EB
11465 * config/i386/sse.md
11466 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
11467 load cast.
31f9eb59 11468
681056ae
JJ
114692011-05-18 Jakub Jelinek <jakub@redhat.com>
11470
11471 PR tree-optimization/49039
11472 * tree-vrp.c (extract_range_from_binary_expr): For
11473 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
11474 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
11475
b5ee6752
TV
114762011-05-18 Tom de Vries <tom@codesourcery.com>
11477
11478 PR target/45098
11479 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
11480
0bda47a3
UB
114812011-05-18 Uros Bizjak <ubizjak@gmail.com>
11482
11483 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
11484 (*tls_global_dynamic_64): Ditto.
11485 (*tls_local_dynamic_base_32_gnu): Ditto.
11486 (*tls_local_dynamic_base_64): Ditto.
11487 (tls_initial_exec_64_sun): Ditto.
11488
033b0805
SH
114892011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
11490
11491 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
11492 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
11493 bf592-none.
11494 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
11495 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
11496 * config/bfin/bfin.c (bfin_cpus): Add bf592.
11497 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 11498 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
11499 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
11500 * config/bfin/elf.h (LIB_SPEC): Add bf592.
11501
ba163417
JM
115022011-05-18 Joseph Myers <joseph@codesourcery.com>
11503
11504 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 11505 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
11506 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
11507 target_thread_pointer, arm_structure_size_boundary, struct
11508 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
11509 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
11510 (arm_option_override) Don't process most enumerated option values here.
11511 Don't process target_fpe_name here. Work with integer not string for
11512 structure size boundary; use separate diagnostics for each case.
ba163417
JM
11513 * config/arm/arm.h (enum float_abi_type, enum
11514 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
11515 to arm-opts.h.
11516 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
11517 arm_structure_size_boundary): Remove.
11518 * config/arm/arm.opt (mabi=): Use Enum and Init.
11519 (arm_abi_type): New Enum and EnumValue entries.
11520 (mfloat-abi=): Use Enum and Init.
11521 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 11522 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
11523 (mfp16-format=): Use Enum and Init.
11524 (arm_fp16_format_type): New Enum and EnumValue entries.
11525 (mstructure-size-boundary=): Use UInteger and Init.
11526 (mtp=): Use Enum and Init.
11527 (arm_tp_type): New Enum and EnumValue entries.
11528
179184e3
RG
115292011-05-18 Richard Guenther <rguenther@suse.de>
11530
11531 PR tree-optimization/49018
11532 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
11533 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
11534 gimple_has_side_effects.
11535
93b2a207
RG
115362011-05-18 Richard Guenther <rguenther@suse.de>
11537
11538 * gimple.c (gimple_register_type_1): New function, split out from ...
11539 (gimple_register_type): ... here. Avoid infinite recursion.
11540
b010117a
IR
115412011-05-18 Ira Rosen <ira.rosen@linaro.org>
11542
11543 PR tree-optimization/41881
11544 * tree-vectorizer.h (struct _loop_vec_info): Add new field
11545 reduction_chains along with a macro for its access.
11546 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
11547 (destroy_loop_vec_info): Free reduction chains.
11548 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
11549 (vect_is_slp_reduction): New function.
11550 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
11551 (vect_create_epilog_for_reduction): Support SLP reduction chains.
11552 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
11553 definition types for reduction chains.
11554 (vect_supported_load_permutation_p): Don't allow permutations for
11555 reduction chains.
11556 (vect_analyze_slp_instance): Support reduction chains.
11557 (vect_analyze_slp): Try to build SLP instance from reduction chains.
11558 (vect_get_constant_vectors): Handle reduction chains.
11559 (vect_schedule_slp_instance): Mark the first statement of the
11560 reduction chain as reduction.
11561
e14c1050
IR
115622011-05-18 Ira Rosen <ira.rosen@linaro.org>
11563
11564 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
11565 names for group elements access.
11566 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
11567 reduction chains as well. Remove data reference and interleaving
11568 related words from the fields names.
11569 * tree-vect-loop.c (vect_transform_loop): Use new names for group
11570 elements access.
11571 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
11572 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
11573 vect_update_interleaving_chain, vect_same_range_drs,
11574 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
11575 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
11576 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
11577 vect_analyze_group_access, vect_analyze_data_ref_access,
11578 vect_create_data_ref_ptr, vect_transform_strided_load,
11579 vect_record_strided_load_vectors): Likewise.
11580 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
11581 vect_model_load_cost, vectorizable_store, vectorizable_load,
11582 vect_remove_stores, new_stmt_vec_info): Likewise.
11583 * tree-vect-slp.c (vect_build_slp_tree,
11584 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
11585
51c213f7
RG
115862011-05-18 Richard Guenther <rguenther@suse.de>
11587
11588 PR middle-end/48989
11589 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
11590 operand verification.
11591 (verify_gimple_assign_binary): Likewise.
11592 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
11593 to non-1-precision BOOLEAN_TYPEs.
11594
8f5e5434
TV
115952011-05-18 Tom de Vries <tom@codesourcery.com>
11596
11597 PR target/45098
11598 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
11599
116bc3a4
JJ
116002011-05-18 Jakub Jelinek <jakub@redhat.com>
11601
11602 PR tree-optimization/49000
11603 * tree-ssa.c (execute_update_addresses_taken): Call
11604 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
11605 be rewritten and decl has been marked for renaming, reset
11606 the debug stmt.
11607
26a8964c
JM
116082011-05-17 Joseph Myers <joseph@codesourcery.com>
11609
11610 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
11611 enum_opts_set when testing if attributes have set -mfpmath=.
11612
82bd45d7
RS
116132011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11614
11615 * config/mips/mips.c (mips_handle_option): Remove unused variable.
11616
267ffce3
UB
116172011-05-17 Uros Bizjak <ubizjak@gmail.com>
11618
11619 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
11620 info->entry with 0
11621 * tree-inline.c (maybe_inline_call_in_expr): Initialize
11622 id.transform_lang_insert_block with NULL.
11623
116242011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
11625
11626 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
11627 (output_fp_compare): Change args 3 and 4 to bool.
11628 (ix86_expand_call): Change arg 6 to bool.
11629 (ix86_attr_length_immediate_default): Change arg 2 to bool.
11630 (ix86_attr_length_vex_default): Change arg 3 to bool.
11631 * config/i386/i386.md: Update all uses.
11632 * config/i386/i386.c: Ditto.
11633 (ix86_flags_dependent): Change return type to bool.
11634
5beaf664
RG
116352011-05-17 Richard Guenther <rguenther@suse.de>
11636
11637 * gimple.c (type_hash_pair_compare): Fix comparison.
11638
008bad7a
RG
116392011-05-17 Richard Guenther <rguenther@suse.de>
11640
11641 * gimple.c (iterative_hash_gimple_type): Simplify singleton
11642 case some more, fix final hash value of the non-singleton case.
11643
36461340
RG
116442011-05-17 Richard Guenther <rguenther@suse.de>
11645
11646 PR bootstrap/49013
11647 Revert
11648 2011-05-16 Richard Guenther <rguenther@suse.de>
11649
11650 * gimple.c (gimple_types_compatible_p_1): Use names of the
11651 type itself, not its main variant.
11652 (iterative_hash_gimple_type): Likewise.
11653
6b6a59f3
RG
116542011-05-17 Richard Guenther <rguenther@suse.de>
11655
11656 * gimple.c (gimple_register_canonical_type): Use the main-variant
11657 leader for computing the canonical type.
11658
4ffc4134
NC
116592011-05-17 Nick Clifton <nickc@redhat.com>
11660
a1d8754e
NC
11661 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
11662 moves.
11663
4ffc4134
NC
11664 * config/rx/rx.md: Add peephole to remove redundant extensions
11665 after loads.
39960f7a
NC
11666 (bitset_in_memory): Use rx_restricted_mem_operand.
11667 (bitinvert_in_memory): Likewise.
11668 (bitclr_in_memory): Likewise.
4ffc4134 11669
b3db92ac
KI
116702011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
11671 Nick Clifton <nickc@redhat.com>
11672
11673 * config/rx/rx.md: Add peepholes to match a register move followed
11674 by a comparison of the moved register. Replace these with an
11675 addition of zero that does both actions in one instruction.
11676
8637e32a
JJ
116772011-05-17 Jakub Jelinek <jakub@redhat.com>
11678
11679 PR target/48986
11680 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
11681 predicate to allow CONST_INT.
11682 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
11683
8023568e
JM
116842011-05-16 Joseph Myers <joseph@codesourcery.com>
11685
11686 * opts-common.c (opt_enum_arg_to_value): New.
11687 * opts.h (opt_enum_arg_to_value): Declare.
11688 * config/i386/i386.opt (fpmath): Remove.
11689 (mfpmath=): Use Enum, Init and Save.
11690 (fpmath_unit): New Enum and EnumValue entries.
11691 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
11692 name for function fpmath state.
11693 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
11694 * config/i386/i386.c: Include diagnostic.h.
11695 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 11696 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 11697 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 11698 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
11699 (x86_function_specific_save, ix86_function_specific_restore):
11700 Don't handle fpmath state specially.
11701 (ix86_function_specific_print): Pass fpmath state to
11702 ix86_target_string instead of printing in this function.
11703 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
11704 Handle enum attributes.
11705 (IX86_ATTR_ENUM, ix86_opt_enum): New.
11706 (ix86_valid_target_attribute_tree): Update option_strings
11707 handling. Handle fpmath as enum option.
11708 (ix86_can_inline_p): Update field names for function fpmath state.
11709 (ix86_expand_builtin): Update call to ix86_target_string.
11710 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
11711 (ix86_fpmath): Remove.
11712 * config/i386/t-i386 (i386.o): Update dependencies.
11713
9e8d926e
JM
117142011-05-16 Joseph Myers <joseph@codesourcery.com>
11715
11716 PR preprocessor/48677
11717 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
11718 from decoded_options[0], not from itself.
11719
f6449011
UB
117202011-05-16 Uros Bizjak <ubizjak@gmail.com>
11721
11722 * config/i386/constraints.md (z): New constraint.
11723 * config/i386/i386.c (c): New mode attribute.
11724 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
11725 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
11726 constraint for operand 0.
11727 (*call_vzeroupper): Ditto.
11728 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
11729 (*call_rex64_ms_sysv_vzeroupper): Ditto.
11730 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
11731 Use "lzm" constraint for operand 0.
11732 (*call_pop_vzeroupper): Ditto.
11733 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
11734 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
11735 constraint for operand 0.
11736 (*sibcall_vzeroupper): Ditto.
11737 (*sibcall_rex64_ms_sysv): Ditto.
11738 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
11739 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
11740 *sibcall_pop_1. Use "Uz" constraint for operand 0.
11741 (*sibcall_pop_vzeroupper): Ditto.
11742 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
11743 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
11744 mode iterator. Use "<c>zm" constraint for operand 1.
11745 (*call_value_vzeroupper): Ditto.
11746 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 11747 for operand 1.
f6449011
UB
11748 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
11749 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
11750 *call_value_pop_1. Use "lzm" constraint for operand 1.
11751 (*call_value_pop_vzeroupper): Ditto.
11752 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
11753 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
11754 mode iterator. Use "Uz" constraint for operand 1.
11755 (*sibcall_value_vzeroupper): Ditto.
11756 (*sibcall_value_rex64_ms_sysv): Ditto.
11757 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
11758 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
11759 constraint for operand 1.
11760 (*sibcall_value_pop_vzeroupper): Ditto.
11761 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
11762 and "z" constraint for operand 2.
11763 (*tls_global_dynamic_32_gnu): Ditto.
11764 (*tls_local_dynamic_base_32_gnu): Ditto.
11765 (*tls_local_dynamic_base_64): Ditto.
11766 (*tls_local_dynamic_32_once): Ditto.
11767 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
11768 Update all callers.
11769 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
11770
c11b6902
RG
117712011-05-16 Richard Guenther <rguenther@suse.de>
11772
11773 * gimple.c (gimple_types_compatible_p_1): Use names of the
11774 type itself, not its main variant.
11775 (iterative_hash_gimple_type): Likewise.
11776
1e83b5f1
RG
117772011-05-16 Richard Guenther <rguenther@suse.de>
11778
f6449011
UB
11779 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
11780 always visit pointer target and function result and argument types.
1e83b5f1 11781
62e36382
JM
117822011-05-16 Jason Merrill <jason@redhat.com>
11783
11784 PR c++/48999
11785 * tree-inline.c (copy_statement_list): Put back recursion.
11786
687027a4
GJL
117872011-05-16 Georg-Johann Lay <avr@gjlay.de>
11788
11789 PR target/27663
11790 PR target/41076
11791 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
11792 * config/avr/avr.md ("*ior<mode>qi.byte0",
11793 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
11794
f24a5190
GJL
117952011-05-16 Georg-Johann Lay <avr@gjlay.de>
11796
11797 PR target/45099
11798 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
11799 register is needed for a function argument.
11800
3066f593
RG
118012011-05-16 Richard Guenther <rguenther@suse.de>
11802
11803 * gimple.c (struct type_hash_pair): New type.
11804 (type_hash_pair_compare): New function.
f6449011 11805 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 11806
b2ab2cf4
RE
118072011-05-16 Revital Eres <revital.eres@linaro.org>
11808
f6449011 11809 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 11810
dfb737fc
UB
118112011-05-15 Uros Bizjak <ubizjak@gmail.com>
11812
11813 * config/i386/i386.md (floating point move splitters): Fix
11814 usage of standard_80387_constant_p.
f6449011 11815 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 11816
8caa1de0
UB
118172011-05-15 Uros Bizjak <ubizjak@gmail.com>
11818
11819 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
11820
8a519095
EB
118212011-05-14 Eric Botcazou <ebotcazou@adacore.com>
11822
11823 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
11824 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
11825 (tree_ssa_lim_finalize): Likewise.
11826
479fecd3
UB
118272011-05-14 Uros Bizjak <ubizjak@gmail.com>
11828
11829 * config/i386/constraint.md (Yd, Yx): New register constraints.
11830 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
11831 Yd conditional register constraint.
11832 (*movtf_internal): Use standard_sse_constant_opcode.
11833 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
11834 Yx conditional register constraint.
11835 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
11836 Yd conditional register constraint. Use standard_sse_constant_p to
11837 check for valid SSE constants and call standard_sse_constant_opcode to
11838 output SSE insn.
11839 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
11840 constants and call standard_sse_constant_opcode to output SSE insn.
11841 * config/i386/i386.c (ix86_option_ovverride_internal): Set
11842 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
11843 optimize_size is set.
11844 (standard_sse_constant_opcode): Output conditional AVX insn templates.
11845
2d8c9ad5
TB
118462011-05-14 Tobias Burnus <burnus@net-b.de>
11847
11848 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
11849
411a20d6
MJ
118502011-05-13 Martin Jambor <mjambor@suse.cz>
11851
11852 * ipa-prop.c (ipa_cst_from_jfunc): New function.
11853 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
11854 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
11855 (evaluate_conditions_for_ipcp_clone): Removed.
11856 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
11857 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
11858 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
11859
dc764d10
EB
118602011-05-13 Eric Botcazou <ebotcazou@adacore.com>
11861
11862 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
11863 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
11864 lieu of MAY_HAVE_DEBUG_STMTS.
11865 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
11866 debug statements if !MAY_HAVE_DEBUG_STMTS.
11867
9f47a24e
MT
118682011-05-13 Martin Thuresson <martint@google.com>
11869
11870 PR gcov-profile/47793
11871 * libgcov.c (gcov_exit): Support relative profile paths.
11872 * doc/invoke.texi (-fprofile-dir): Update for above change.
11873
b8a71aed
RG
118742011-05-13 Richard Guenther <rguenther@suse.de>
11875
11876 * gimple.c (gimple_canonical_types_compatible_p): Do not use
11877 type-pair caching, do not compare hashes.
11878
eb9f9259
NF
118792011-05-13 Nathan Froyd <froydnj@codesourcery.com>
11880
11881 PR middle-end/48965
11882 * tree-cfg.c (edge_to_cases_cleanup): Return true.
11883 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
11884
3c6cbf7a
KT
118852011-05-13 Kai Tietz <ktietz@redhat.com>
11886
11887 * gimplify.c (gimplify_expr): Make sure operand is boolified.
11888 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
11889 compatible type for TRUTH_NOT_EXPR.
11890
2e7f5dc0
L
118912011-05-13 H.J. Lu <hongjiu.lu@intel.com>
11892
dc764d10 11893 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
11894 (ix86_hard_regno_mode_ok): Change return value to bool. Use
11895 can_create_pseudo_p ().
11896
e834e95c
RG
118972011-05-13 Richard Guenther <rguenther@suse.de>
11898
11899 PR lto/48978
11900 * gimple.c (iterative_hash_gimple_type): Revert change in
11901 pointer target and function result and argument hashing.
11902
34203483
UB
119032011-05-13 Uros Bizjak <ubizjak@gmail.com>
11904
11905 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
11906 (*movxf_internal_nointeger): Ditto.
11907 (*movdf_internal_rex64): Ditto.
11908 (*movdf_internal): Ditto.
11909 (*movdf_internal_nointeger): Ditto.
11910 (*movsf_internal): Ditto.
11911 (sincos splitters): Use can_create_pseudo ().
11912
7eb68c06
JM
119132011-05-13 Joseph Myers <joseph@codesourcery.com>
11914
11915 * config/i386/i386-opts.h: New.
11916 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
11917 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
11918 ix86_section_threshold): Remove.
11919 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
11920 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
11921 OPT_mbranch_cost_.
11922 (ix86_option_override_internal): Don't decode strings for options
11923 other than -march=, -mtune= and -mfpmath=. Don't allow for
11924 __attribute__ uses in remaining diagnostics for options with
34203483 11925 string arguments. Don't check for integer arguments being negative.
7eb68c06 11926 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 11927 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
11928 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
11929 ix86_branch_cost, ix86_section_threshold): Remove.
11930 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
11931 HeaderInclude.
11932 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
11933 but not Var.
11934 (masm=): Use Enum and Init.
11935 (asm_dialect): New Enum and EnumValue entries.
11936 (mbranch-cost=): Use UInteger.
11937 (mlarge-data-threshold=): Use UInteger and Init.
11938 (mcmodel=): Use Enum and Init.
11939 (cmodel): New Enum and EnumValue entries.
11940 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
11941 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
11942 mregparm=): Use UInteger.
11943 (mstringop-strategy=): Use Enum and Init.
11944 (stringop_alg): New Enum and EnumValue entries.
11945 (mtls-dialect=): Use Enum and Init.
11946 (tls_dialect): New Enum and EnumValue entries.
11947 (mabi=): Use Enum and Init.
11948 (calling_abi): New Enum and EnumValue entries.
11949 (mveclibabi=): Use Enum and Init.
11950 (ix86_veclibabi): New Enum and EnumValue entries.
11951
f67e203c
NC
119522011-05-13 Nick Clifton <nickc@redhat.com>
11953
34203483
UB
11954 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
11955 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 11956
221df0b6
KT
119572011-05-13 Kai Tietz <ktietz@redhat.com>
11958
11959 PR middle-end/48984
11960 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
11961 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
11962 (gimple_boolify): Check for cast for boolean_type_node instead for
11963 BOOLEAN_TYPE.
11964
208cb8cb
RG
119652011-05-13 Richard Guenther <rguenther@suse.de>
11966
11967 PR tree-optimization/48172
11968 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
11969 multiplying by number of iterations for equal step.
11970 (vect_create_cond_for_alias_checks): Likewise.
11971
b88ecf55
AS
119722011-05-13 Andreas Schwab <schwab@redhat.com>
11973
11974 * configure.ac: Use AS_HELP_STRING throughout.
11975 * configure: Regenerate.
11976
569b527e
L
119772011-05-12 H.J. Lu <hongjiu.lu@intel.com>
11978
34203483 11979 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
11980 (ix86_emit_restore_regs_using_mov): Likewise.
11981 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11982
8b9a1428
AS
119832011-05-12 Anatoly Sokolov <aesok@post.ru>
11984
11985 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
11986 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
11987 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
11988 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
11989 RTX_OK_FOR_OLO10_P): ...here.
11990 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
11991 SYMBOLIC_CONST.
11992
1d15f620
KT
119932011-05-12 Kai Tietz <ktietz@redhat.com>
11994
11995 * gimplify.c (gimple_boolify): Re-boolify expression
11996 arguments even if expression type is of kind BOOLEAN_TYPE.
11997 (gimplify_boolean_expr): Removed.
11998 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
11999 and XOR. Additional take care that we keep expression's type.
12000 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
12001 of TRUTH_AND|OR|XOR_EXPR.
12002
c2b5fc8d
JJ
120032011-05-12 Jakub Jelinek <jakub@redhat.com>
12004
12005 PR tree-optimization/48975
12006 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
12007 on all bbs here and free and clear ifc_bbs at the end.
12008
61332f77
RG
120092011-05-12 Richard Guenther <rguenther@suse.de>
12010
12011 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
12012 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
12013 until after simple checks.
12014 (gimple_types_compatible_p): Likewise.
12015 (iterative_hash_gimple_type): Always hash pointer targets
12016 and function return and argument types.
12017 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
12018 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
12019 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
12020 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
12021 completely in the simple compare section.
12022 (gimple_register_canonical_type): Query the cache again after
12023 registering.
12024
e2a3a5f1
RG
120252011-05-12 Richard Guenther <rguenther@suse.de>
12026
12027 PR tree-optimization/48172
12028 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
12029 the number of iterations from the segment size calculation.
12030 (vect_create_cond_for_alias_checks): Adjust.
12031
2c703f3a
JJ
120322011-05-12 Jakub Jelinek <jakub@redhat.com>
12033
12034 PR debug/48967
12035 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
12036 if validate_subreg fails.
12037
120382011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
12039
12040 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
12041 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
12042 early.
12043
87e91fca
DD
120442011-05-12 DJ Delorie <dj@redhat.com>
12045
d53903d6 12046 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
12047 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
12048 created builtin into rx_builtins array.
12049 (rx_builtin_decl): New function.
34203483 12050 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 12051
5f2f13fd
DD
120522011-05-12 DJ Delorie <dj@redhat.com>
12053 Nick Clifton <nickc@redhat.com>
12054
12055 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
12056 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
12057 (rx_is_legitimate_address): Add pre-decrement and post-increment
12058 addressing in HImode and QImode. Fix test for out of range
12059 REG+INT addressing.
87e91fca 12060 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 12061 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 12062 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 12063 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 12064
57421f45
JM
120652011-05-11 Jason Merrill <jason@redhat.com>
12066
12067 * tree.c (type_hash_canon): Use struct tree_type_non_common.
12068
898c90c0
EB
120692011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12070
12071 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
12072 reindent the subsequent block.
12073
79bec923
ST
120742011-05-11 Satoru Takabayashi <satorux@google.com>
12075 Paul Pluzhnikov <ppluzhnikov@google.com>
12076
34203483 12077 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
12078 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
12079 * config.in: Add LINKER_HASH_STYLE.
12080 * configure.ac: Add --with-linker-hash-style.
12081 * configure: Regenerate.
79bec923 12082
d0340959
RG
120832011-05-11 Richard Guenther <rguenther@suse.de>
12084
12085 PR middle-end/48964
12086 * gimple.c (iterative_hash_canonical_type): Fix typo.
12087
cb032fee
UB
120882011-05-11 Uros Bizjak <ubizjak@gmail.com>
12089
12090 * config/i386/i386.c (legitimize_tls_address)
479fecd3 12091 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
12092 expanders directly for TARGET_GNU2_TLS. Determine pic and
12093 __tls_get_addr symbol reference here. Update call to
12094 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 12095 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
12096 expanders directly for TARGET_GNU2_TLS. Determine
12097 __tls_get_addr symbol reference here. Update call to
12098 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
12099 unique UNSPEC REG_EQUIV to libcall block.
12100 (ix86_tls_get_addr): Declare static.
12101 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
12102 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
12103 Do not determine pic and __tls_get_addr symbol reference here. Do not
12104 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
12105 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
12106 (tls_global_dynamic_64): Add operand 2. Do not determine
12107 __tls_get_addr symbol reference here. Do not call
12108 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
12109 (tls_local_dynamic_base64): Ditto for operand 1.
12110
6d3cc8f0
EB
121112011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12112
12113 * function.c (expand_function_start): Initialize stack_check_probe_note
12114 only if the generic stack checking mechanism is used.
12115
51e020fc
RG
121162011-05-11 Richard Guenther <rguenther@suse.de>
12117
12118 PR tree-optimization/15256
12119 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
12120 (A & B) | C, combine (A op CST1) op CST2.
12121 (tree_ssa_forward_propagate_single_use_vars): Only bother to
12122 visit assigns that have uses.
12123
51545682
NF
121242011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12125
cb032fee 12126 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
12127 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
12128 (unpack_ts_type_common_value_fields): ...this. Update comment.
12129 (unpack_value_fields): Adjust for renaming.
12130 (lto_input_ts_type_tree_pointers): Split into...
12131 (lto_input_ts_type_common_tree_pointer): ...this and...
12132 (lto_input_ts_type_non_common_tree_pointers): ...this.
12133 (lto_input_tree_pointers): Adjust for above split.
12134 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
12135 (pack_ts_type_common_value_fields): ...this. Update comment.
12136 (lto_output_ts_type_tree_pointers): Split into...
12137 (lto_output_ts_type_common_tree_pointers): ...this and...
12138 (lto_output_ts_type_non_common_tree_pointers): ...this.
12139 (lto_output_tree_pointers): Adjust for above split.
12140 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
12141 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
12142 * stor-layout.c (vector_type_mode): Adjust location of mode field.
12143 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
12144 Define.
12145 (struct tree_type): Split into...
12146 (struct tree_type_common: ...this and...
12147 (struct tree_type_with_lang_specific): ...this and...
12148 (struct tree_type_non_common): ...this. Adjust accessor macros
12149 accordingly.
12150 (TYPE_VALUES_RAW): Define.
12151 (union tree_node): Update for above changes.
12152 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
12153 TS_TYPE_NON_COMMON.
12154 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
12155 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
12156 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
12157 * treestructu.def (TS_TYPE): Remove.
12158 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
12159 Define.
12160
b03c3082
JJ
121612011-05-11 Jakub Jelinek <jakub@redhat.com>
12162
12163 PR debug/48159
12164 * tree-ssa.c (reset_debug_uses): New function.
12165 * tree-flow.h (reset_debug_uses): New prototype.
12166 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
12167 * tree-loop-distribution.c (generate_loops_for_partition): Call
12168 reset_debug_uses on the stmts that will be removed. Keep around
12169 all debug stmts, don't count them as bits in partition bitmap.
12170 (generate_builtin): Don't count debug stmts or labels as bits in
12171 partition bitmap.
12172
b5e04de5
RG
121732011-05-11 Richard Guenther <rguenther@suse.de>
12174
12175 * gimple.c (gimple_type_hash_1): Merge with ...
12176 (gimple_type_hash): ... this.
12177 (gtc_visit): Remove mode parameter and simplify accordingly.
12178 (gimple_types_compatible_p_1): Likewise.
12179 (gimple_types_compatible_p): Likewise.
12180 (iterative_hash_gimple_type): Likewise.
12181 (visit): Likewise.
12182 (gimple_type_eq): Adjust.
12183
fc6970e4
RE
121842011-05-11 Revital Eres <revital.eres@linaro.org>
12185
12186 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
12187 enters the branch create an anti edge in the opposite direction
12188 to prevent the creation of reg-moves.
12189 * modulo-sched.c: Adjust comment to reflect the fact we are
12190 scheduling closing branch.
12191 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
12192 (stage_count): New field in struct partial_schedule.
12193 (calculate_stage_count): New function.
12194 (normalize_sched_times): Rename to reset_sched_times and handle
12195 incrementing the sched time of the nodes by a constant value
12196 passed as parameter.
12197 (duplicate_insns_of_cycles): Skip closing branch.
12198 (sms_schedule_by_order): Schedule closing branch.
12199 (ps_insn_find_column): Handle closing branch.
12200 (sms_schedule): Call reset_sched_times and adjust the code to
12201 support scheduling of the closing branch.
12202 (ps_insert_empty_row): Update calls to normalize_sched_times
12203 and rotate_partial_schedule functions.
12204
41a58a92
RG
122052011-05-11 Richard Guenther <rguenther@suse.de>
12206
12207 PR middle-end/48953
12208 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
12209
e9f8dcf9
JM
122102011-05-11 Joseph Myers <joseph@codesourcery.com>
12211
cb032fee
UB
12212 * opts.c (finish_options): Move warning settings from process_options.
12213 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 12214
10c224a9
RG
122152011-05-11 Richard Guenther <rguenther@suse.de>
12216
12217 PR tree-optimization/18041
12218 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
12219 (simplify_bitwise_binary): ... this. Handle operand conversions
12220 by applying them to the result instead.
12221 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
12222
825b27de
RG
122232011-05-11 Richard Guenther <rguenther@suse.de>
12224
12225 * gimple.c (gimple_canonical_types_compatible_p): Split out
12226 from gimple_types_compatible_p and friends. Do not recurse
12227 to pointed-to types.
12228 (gimple_canonical_type_eq): Use it.
12229 (iterative_hash_canonical_type): Split out from
12230 iterative_hash_gimple_type and friends. Do not recurse
12231 to pointed-to types.
12232 (gimple_canonical_type_hash): Use it, allocate the hash here.
12233
ca756625
RE
122342011-05-11 Revital Eres <revital.eres@linaro.org>
12235
12236 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
12237 recognizing doloop.
12238
b8abece3
RE
122392011-05-11 Revital Eres <revital.eres@linaro.org>
12240
12241 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
12242 instead of PREV_INSN.
12243
ce7b3761
RE
122442011-05-11 Revital Eres <revital.eres@linaro.org>
12245
12246 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
12247 * loop-doloop.c (doloop_condition_get): Likewise.
12248 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
12249 (doloop_end): New.
12250 * config/arm/arm.md (*addsi3_compare0): Remove "*".
12251
a9dc9d37
NF
122522011-05-10 Nathan Froyd <froydnj@codesourcery.com>
12253
12254 * tree.def (CASE_LABEL_EXPR): Add an operand.
12255 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
12256
96703596
JM
122572011-05-10 Joseph Myers <joseph@codesourcery.com>
12258
12259 * c-decl.c (c_override_global_bindings_to_false): Remove.
12260 (global_bindings_p): Don't check
12261 c_override_global_bindings_to_false.
12262 * c-tree.h (c_override_global_bindings_to_false): Remove.
12263 * c-typeck.c (composite_type): Don't set
12264 c_override_global_bindings_to_false.
12265
dbcc9f08
MM
122662011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12267
12268 PR target/48857, 48495
12269 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
12270 (VSX_MODE): Ditto.
12271 (VSX_MOVE_MODE): Ditto.
12272 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
12273 VSX vector types. Add V2DImode.
12274 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
12275 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
12276 (MODES_TIEABLE_P): Ditto.
12277
12278 * config/rs6000/rs6000.c (rs6000_emit_move): Use
12279 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
12280 VSX_VECTOR_MODE.
12281 (init_cumulative_args): Ditto.
12282 (rs6000_function_arg_boundary): Ditto.
12283 (rs6000_function_arg_advance_1): Ditto.
12284 (rs6000_function_arg): Ditto.
12285 (rs6000_function_ok_for_sibcall): Ditto.
12286 (emit_frame_save): Ditto.
12287 (rs6000_function_value): Ditto.
12288 (rs6000_libcall_value): Ditto.
12289
4a68b4ca
JM
122902011-05-10 Joseph Myers <joseph@codesourcery.com>
12291
12292 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12293 i386/darwin-lib.h to $libgcc_tm_file.
12294 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
12295
bcb521e9
JM
122962011-05-10 Joseph Myers <joseph@codesourcery.com>
12297
12298 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
12299
f10d3ac9
JM
123002011-05-10 Joseph Myers <joseph@codesourcery.com>
12301
cb032fee 12302 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
12303 * config/rs6000/rs6000-tables.opt: New file (generated).
12304 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
12305 rs6000/rs6000-tables.opt to extra_options.
12306 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
12307 * config/rs6000/rs6000.c (rs6000_select): Remove.
12308 (processor_target_table): Move contents to rs6000-cpus.def.
12309 (darwin_rs6000_override_options): Check
12310 global_options_set.x_rs6000_cpu_index instead of
12311 rs6000_select[1].string.
12312 (rs6000_option_override_internal): Likewise.
12313 (rs6000_handle_option): Don't assert that global structures are in
12314 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
12315 (rs6000_default_cpu): New variable.
12316 (rs6000_file_start): Set it instead of local default_cpu. Check
12317 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
12318 global_options_set.x_rs6000_tune_index instead of rs6000_select.
12319 (rs6000_darwin_file_start): Check rs6000_default_cpu and
12320 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
12321 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
12322 rs6000_select): Remove.
12323 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
12324 Remove.
12325 (mcpu=, mtune=): Use Var, Init, Enum and Save.
12326 * config/rs6000/t-rs6000
12327 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
12328 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12329 global_options_set.x_rs6000_cpu_index instead of
12330 rs6000_select[1].string.
12331 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12332 global_options_set.x_rs6000_cpu_index instead of
12333 rs6000_select[1].string.
12334
80cf2e08
JM
123352011-05-10 Joseph Myers <joseph@codesourcery.com>
12336
12337 * config.gcc (libgcc_tm_file): Define instead of including files
12338 from ../../libgcc/config/ in tm_file.
cb032fee 12339 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
12340 * configure: Regenerate.
12341 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
12342 libgcc_tm.h, cs-libgcc_tm.h): New.
12343 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
12344 (clean): Remove libgcc_tm.h.
12345 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
12346 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
12347 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
12348
fd01a351
GJL
123492011-05-10 Georg-Johann Lay <avr@gjlay.de>
12350
12351 PR target/48896
12352 * config/avr/avr.c (avr_ret_register): Return unsigned int
12353 instead of int.
12354 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
12355 it to avr_libcall_value.
12356 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
12357 expand_expr.
12358 (avr_expand_binop_builtin): Ditto.
12359 (avr_expand_unop_builtin): Ditto.
12360
34cc3c86
DD
123612011-05-10 DJ Delorie <dj@redhat.com>
12362
12363 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
12364 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
12365 * config/rx/rx.c (rx_align_for_label): Add label and
12366 uses_threshold parameters. Do not align when the label is not
12367 used enough.
12368 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
12369
be173289
RG
123702011-05-10 Richard Guenther <rguenther@suse.de>
12371
12372 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
12373 a series of conversions and apply foldings similar to what
12374 fold-const does.
12375 (tree_ssa_forward_propagate_single_use_vars): Call it.
12376
e7f78021
JJ
123772011-05-10 Jakub Jelinek <jakub@redhat.com>
12378
6ae70ea2
JJ
12379 PR tree-optimization/48611
12380 PR tree-optimization/48794
12381 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
12382 referenced from RESX or EH_DISPATCH arguments.
12383
e7f78021
JJ
12384 PR debug/48928
12385 * dfp.c (decimal_to_decnumber): Handle conversion from
12386 dconst{1,2,m1,half}.
12387
fca132b9
UB
123882011-05-09 Uros Bizjak <ubizjak@gmail.com>
12389
12390 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
12391 for !flag_prefer_avx128.
12392 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
12393
e4c03378
EB
123942011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12395
12396 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
12397 (fold_ternary_loc): Use expr_location_or.
12398
805d6a75
L
123992011-05-09 H.J. Lu <hongjiu.lu@intel.com>
12400
12401 PR debug/48853
12402 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
12403 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
12404 Pmode and mem_mode is not VOIDmode.
12405
e4c03378 124062011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 12407
e4c03378
EB
12408 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
12409 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 12410
51e7f377
UB
124112011-05-09 Uros Bizjak <ubizjak@gmail.com>
12412
12413 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
12414 (const_pow2_1_to_8_operand): Ditto.
12415 (const_pow2_1_to_128_operand): Ditto.
12416 (const_pow2_1_to_32768_operand): Ditto.
12417 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
12418 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
12419 in insn constraint to check integer value of operand 3.
12420 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
12421
12422 (PINSR_MODE): New mode iterator.
12423 (sse2p4_1): New mode attribute.
12424 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
12425 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
12426 iterator. Use const_int_operand instead of
12427 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
12428 exact_log2 in insn constraint to check integer value of operand 3.
12429
124302011-05-09 Uros Bizjak <ubizjak@gmail.com>
12431
12432 * config/i386/sse.md (blendbits): Remove mode attribute.
12433 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12434 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12435 Check integer value of operand 3 in insn constraint.
12436
0ca8de87
RG
124372011-05-09 Richard Guenther <rguenther@suse.de>
12438
12439 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
12440 for diagnostics.
12441 (lto_symtab_merge): Likewise. Do not register types here.
12442 (lto_symtab_merge_decls_2): Likewise.
12443 (lto_symtab_merge_decls_1): Likewise.
12444 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
12445 * gimple.c (enum gtc_mode): Declare.
12446 (gimple_types_compatible_p): Make static.
12447
a9e6994a
AK
124482011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12449
12450 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
12451 temporary register to match Pmode.
12452
fb55d62e
UB
124532011-05-09 Uros Bizjak <ubizjak@gmail.com>
12454
12455 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
12456 and *vec_concatv4si_1_avx.
12457
eb1485a6
UB
124582011-05-09 Uros Bizjak <ubizjak@gmail.com>
12459
12460 PR rtl-optimization/48927
12461 * ira-conflicts.c (commutative_constraint_p): Use
12462 recog_data.alternative_enabled_p to disable alternatives where
12463 "enabled" attribute is false.
12464 (get_dup_num): Ditto.
12465 * ira-lives.c (single_reg_class): Ditto.
12466 (ira_implicitly_set_insn_hard_regs): Ditto.
12467
c46d001a
EB
124682011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12469
12470 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
12471 (dataflow_set_preserve_mem_locs): Likewise.
12472
124732011-05-09 Philipp Thomas <pth@suse.de>
12474
6d9e7c41
PT
12475 * config/mep/mep.c (mep_validate_vliw): Syntax description
12476 should not be translated.
12477
d371df6f
JM
124782011-05-09 Joseph Myers <joseph@codesourcery.com>
12479
12480 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
12481 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 12482 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
12483 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
12484 MIPS_ARCH_OPTION_NATIVE): Define.
12485 * config/mips/mips.c (mips_cpu_info_table): Move contents to
12486 mips-cpus.def.
12487 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
12488 mips_parse_cpu): Remove.
12489 (mips_cpu_info_from_opt, mips_default_arch): New.
12490 (mips_handle_option): Don't assert that global structures are in
12491 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
12492 (mips_option_override): Use new variables and functions to set
eb1485a6 12493 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
12494 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
12495 definition.
12496 * config/mips/mips.opt (march=): Use ToLower and Enum.
12497 (mips): Use ToLower, Enum and Var.
12498 (mtune=): Use ToLower and Enum.
12499 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
12500
4fc07af9
JH
125012011-05-08 Jan Hubicka <jh@suse.cz>
12502
12503 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
12504 Arrange type pairs to be UID ordered.
12505 (gimple_lookup_type_leader): Make inline.
12506
2cf320a8
NC
125072011-05-09 Nick Clifton <nickc@redhat.com>
12508
61d6def5
NC
12509 PR target/48899
12510 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
12511 PROCESSOR_DEFAULT.
12512
2cf320a8
NC
12513 PR target/48897
12514 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
12515 variable 's'.
12516
4f82319d
CLT
125172011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
12518
12519 * combine.c (simplify_comparison): Abstract out parts into...
12520 (simplify_compare_const): ... new function.
12521 (try_combine): Generalize parallel arithmetic/compare combining
12522 to call simplify_compare_const() and CANONICALIZE_COMPARE().
12523
74605a11
JH
125242011-05-08 Jan Hubicka <jh@suse.cz>
12525
12526 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
12527 (cgraph_create_virtual_clone): Call hooks once virtual clone
12528 is finished.
74605a11 12529 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
12530 * ipa-cp.c (ipcp_estimate_growth): Use
12531 estimate_ipcp_clone_size_and_time.
74605a11
JH
12532 * ipa-inline-transform.c (clone_inlined_nodes): Update.
12533 * lto-cgraph.c (input_node): Update.
12534 * ipa-inline.c (recursive_inlining): Update.
12535 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
12536 (evaluate_conditions_for_known_args): Break out from ...
12537 (evaluate_conditions_for_edge): ... here.
12538 (evaluate_conditions_for_ipcp_clone): New function.
12539 (inline_node_duplication_hook): Update clone summary based
12540 on parameter map.
12541 (estimate_callee_size_and_time): Rename to ...
12542 (estimate_node_size_and_time): take NODE instead of EDGE;
12543 take POSSIBLE_TRUTHS as argument.
12544 (estimate_callee_size_and_time): Update.
12545 (estimate_ipcp_clone_size_and_time): New function.
12546 (do_estimate_edge_time): Update.
12547
5c049507
RG
125482011-05-08 Richard Guenther <rguenther@suse.de>
12549
12550 PR middle-end/48908
12551 PR middle-end/48905
12552 * expmed.c (expand_shift_1): Compute adjusted constant shift
12553 amount manually.
12554
f64c36ba
EB
125552011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12556
12557 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
12558
c461a957
EB
125592011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12560
12561 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
12562
7c74e556
JW
125632011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
12564
12565 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
12566
b4c0a884
JH
125672011-05-07 Jan Hubicka <jh@suse.cz>
12568
a9bcb3f0
EB
12569 * ipa-inline-transform.c (inline_call): Account when program size
12570 decreases.
b4c0a884 12571 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
12572 (edge_badness): Reorganize to be power 2 based; fix thinko when
12573 computing badness for negative growth; update comments to match
12574 reality; better dumps.
b4c0a884 12575
c99c0026
EB
125762011-05-07 Eric Botcazou <ebotcazou@adacore.com>
12577
12578 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
12579 type to bool and adjust comment.
12580 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
12581 (fold_mathfn_compare): Remove calls to global_bindings_p.
12582 (fold_inf_compare): Likewise.
12583 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
12584 * c-tree.h (global_bindings_p): Adjust prototype.
12585 * c-decl.c (global_bindings_p): Return bool and simplify.
12586
1400c8e5
ZD
125872011-05-07 Zdenek Dvorak <ook@ucw.cz>
12588
12589 PR tree-optimization/48837
12590 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
12591 when accumulator transformation is performed.
12592
5d0878e7
JH
125932011-05-06 Jan Hubicka <jh@suse.cz>
12594
a9bcb3f0
EB
12595 * i386.h (ix86_tune_indices): Add
12596 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 12597 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
12598 * i386.c (initial_ix86_tune_features): Add
12599 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
12600 (software_prefetching_beneficial_p): Remove predicate.
12601 (ix86_option_override_internal): Use new macro.
12602
58696ce5
JH
126032011-05-06 Jan Hubicka <jh@suse.cz>
12604
12605 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
12606
c47d0034
JH
126072011-05-06 Jan Hubicka <jh@suse.cz>
12608
12609 * cgraph.c (cgraph_add_thunk): Create real function node instead
12610 of alias node; finalize it and mark needed/reachale; arrange visibility
12611 to be right and add it into the corresponding same comdat group list.
12612 (dump_cgraph_node): Dump thunks.
12613 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
12614 cgraph_function_with_gimple_body_p,
12615 cgraph_first_function_with_gimple_body,
c47d0034
JH
12616 cgraph_next_function_with_gimple_body): New functions.
12617 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
12618 New macros.
12619 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
12620 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12621 * cgraphunit.c (cgraph_finalize_function): Only look into possible
12622 devirtualization when optimizing.
12623 (verify_cgraph_node): Verify thunks.
12624 (cgraph_analyze_function): Analyze thunks.
12625 (cgraph_mark_functions_to_output): Output thunks only in combination
12626 with function they are assigned to.
12627 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
12628 alias into normal node.
12629 (assemble_thunks): New functoin.
12630 (cgraph_expand_function): Use it.
12631 * lto-cgraph.c (lto_output_node): Stream thunks.
12632 (input_overwrite_node): Stream in thunks.
12633 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
12634 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
12635 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
12636 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
12637 (inline_analyze_function): Do not care about thunk jump functions.
12638 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
12639 * ipa-prop.c (ipa_prop_write_jump_functions): Use
12640 cgraph_function_with_gimple_body_p.
12641 * passes.c (do_per_function_toporder): Use
12642 cgraph_function_with_gimple_body_p.
c47d0034
JH
12643 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12644 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
12645 (function_called_by_processed_nodes_p): Likewise.
12646
d8f426ec
JM
126472011-05-06 Joseph Myers <joseph@codesourcery.com>
12648
12649 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
12650 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
12651 entries.
12652 (mabi=): Replace with separate entries for mabi=altivec,
12653 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
12654 mabi=ieeelongdouble and mabi=ibmlongdouble.
12655 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
12656 check for -mabi=spe without SPE ABI support here.
12657 (rs6000_handle_option): Replace OPT_mabi_ handling with
12658 OPT_mabi_altivec and OPT_mabi_spe handling.
12659
80bde45b
CC
126602011-05-06 Cary Coutant <ccoutant@google.com>
12661
12662 * dwarf2out.c (contains_subprogram_definition): New function.
12663 (should_move_die_to_comdat): Call it.
12664
a91926b9
JL
126652011-05-06 Jeff Law <law@redhat.com>
12666
12667 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
12668 remove_ctrl_stmt_and_useless_edges.
12669 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
12670 (fixup_template_block, thread_single_edge): Likewise.
12671 (mark_threaded_blocks): Use THREAD_TARGET.
12672
1fc1b66d
AM
126732011-05-06 Alan Modra <amodra@gmail.com>
12674
12675 PR target/48900
12676 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12677 const0_rtx as the arg to the dummy __tls_get_addr libcall.
12678
e194de64
UB
126792011-05-06 Uros Bizjak <ubizjak@gmail.com>
12680
12681 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
12682 constraint modifier to "r".
12683
d740dc9e
JM
126842011-05-06 Joseph Myers <joseph@codesourcery.com>
12685
12686 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
12687 fall through for OPT_mcmodel_.
12688
cab78b15
AK
126892011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12690
12691 * config/s390/s390.c (s390_asm_trampoline_template): Comment
12692 instruction sizes.
e194de64 12693 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 12694
ee6824ae
RR
126952011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12696
eb1485a6
UB
12697 PR target/47930
12698 * config/arm/arm.opt (marm): Document it.
12699 (mthumb): Reject negative variant.
ee6824ae 12700
9ef58464
UB
127012011-05-06 Uros Bizjak <ubizjak@gmail.com>
12702
12703 PR target/48898
12704 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12705 Fix typo in "ccvt" variable name.
12706
155b6176
TG
127072011-05-06 Tristan Gingold <gingold@adacore.com>
12708
12709 PR target/48895
12710 * config/vms/vms-ar.c (main): Remove cwd variable.
12711
3becc47b
JJ
127122011-05-06 Jakub Jelinek <jakub@redhat.com>
12713
12714 PR debug/48902
12715 * var-tracking.c (prepare_call_arguments): Move else before #endif.
12716
3d528853
NF
127172011-05-05 Nathan Froyd <froydnj@codesourcery.com>
12718
12719 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
12720 * gimplify.c (gimplify_switch_expr): Likewise.
12721 * omp-low.c (expand_omp_sections): Likewise.
12722 * tree-eh.c (lower_try_finally_switch): Likewise.
12723 (lower_eh_dispatch): Likewise.
12724 * tree.h (build_case_label): Declare.
12725 * tree.c (build_case_label): Define.
12726
deb5046b
JM
127272011-05-05 Jason Merrill <jason@redhat.com>
12728
12729 PR c++/40975
12730 * tree-inline.c (copy_tree_r): Use copy_statement_list.
12731 (copy_statement_list): Don't recurse.
12732 * stor-layout.c (copy_self_referential_tree_r): Don't allow
12733 STATEMENT_LIST.
12734
013c0411
JM
127352011-05-05 Joseph Myers <joseph@codesourcery.com>
12736
12737 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
12738 through from -mfpu= handling.
12739 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
12740
a0905f8b
BS
127412011-05-05 Bernd Schmidt <bernds@codesourcery.com>
12742
12743 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
12744 POST_MODIFY.
12745
fc4538e4
SE
127462011-05-05 Steve Ellcey <sje@cup.hp.com>
12747
12748 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
12749 for 11.31.
12750 (hppa[12]*-*-hpux11*): Ditto.
12751 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
12752 * config/ia64/hpux-unix2003.h: New.
12753 * config/pa/pa-hpux1131.opt: New.
12754 * config/pa/pa-hpux1131.h: New.
12755 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
12756 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 12757 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 12758
1e30c578
JJ
127592011-05-05 Jakub Jelinek <jakub@redhat.com>
12760
12761 PR debug/48853
12762 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
12763 instead of mode as 3rd argument to recursive call.
12764 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
12765 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
12766 VOIDmode.
12767 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
12768 don't give up if mode is Pmode and mem_mode is not VOIDmode.
12769 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
12770 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
12771
d19eb620
JB
127722011-05-05 Julian Brown <julian@codesourcery.com>
12773
12774 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
12775 parenthesis in D-register case.
12776
c860fe8c
JM
127772011-05-05 Joseph Myers <joseph@codesourcery.com>
12778
12779 * opt-functions.awk (var_type_struct): Handle Enum options.
12780 * optc-gen.awk: Don't check range of variables of character type.
12781 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
12782 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
12783 rs6000_sdata_name, rs6000_explicit_options): Remove.
12784 (rs6000_option_override_internal): Check for -malign-power here.
12785 Use global_options_set instead of rs6000_explicit_options.
12786 (rs6000_parse_fpu_option): Remove.
12787 (rs6000_handle_option): Access variables via opts and opts_set
12788 pointers. Use error_at and warning_at. Add fall-through
12789 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
12790 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
12791 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
12792 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
12793 here. Don't use rs6000_parse_fpu_option.
12794 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
12795 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
12796 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
12797 (mrecip=): Use Var.
12798 (mspe): Use Var and Save.
12799 (mtraceback=): Use Enum and Var.
12800 (rs6000_traceback_type): New Enum and EnumValue entries.
12801 (mfloat-gprs=): Use Enum, Var and Save.
12802 (rs6000_float_gprs): New Enum and EnumValue entries.
12803 (mlong-double-): use Var and Save.
12804 (msched-costly-dep=, minsert-sched-nops=): Use Var.
12805 (malign-): Use Enum and Var.
12806 (rs6000_alignment_flags): New Enum and EnumValue entries.
12807 (mfpu=): Use Enum.
12808 (fpu_type_t): New Enum and EnumValue entries.
12809 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12810 global_options_set instead of rs6000_explicit_options.
12811 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12812 global_options_set instead of rs6000_explicit_options.
12813 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12814 global_options_set instead of rs6000_explicit_options.
12815 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12816 global_options_set instead of rs6000_explicit_options.
12817 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
12818 global_options_set instead of rs6000_explicit_options.
12819 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12820 global_options_set instead of rs6000_explicit_options.
12821 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
12822 definition.
12823 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12824 global_options_set instead of rs6000_explicit_options.
12825 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
12826 (rs6000_cmodel): New Enum and EnumValue entries.
12827 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12828 global_options_set instead of rs6000_explicit_options.
12829 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
12830 (mtls-size=): Use Enum and Var.
12831 (rs6000_tls_size): New Enum and EnumValue entries.
12832
0691dde9
MM
128332011-05-05 Michael Matz <matz@suse.de>
12834
12835 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
12836 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
12837 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
12838 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
12839 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
12840 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
12841 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
12842 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
12843 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
12844 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
12845 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
12846 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
12847 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
12848 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
12849 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
12850 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
12851
86529a49
RG
128522011-05-05 Richard Guenther <rguenther@suse.de>
12853
12854 * expmed.c (expand_variable_shift): Rename to ...
12855 (expand_shift_1): ... this. Take an expanded shift amount.
12856 For rotates recurse directly not building trees for the shift amount.
12857 (expand_variable_shift): Wrap around expand_shift_1.
12858 (expand_shift): Adjust.
12859
d0228c2e
JJ
128602011-05-05 Jakub Jelinek <jakub@redhat.com>
12861
12862 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
12863
907a08d9
EB
128642011-05-05 Eric Botcazou <ebotcazou@adacore.com>
12865
12866 * tree.h (get_pending_sizes): Remove prototype.
12867 (put_pending_size): Likewise.
12868 (put_pending_sizes): Likewise.
12869 * stor-layout.c (pending_sizes): Delete.
12870 (get_pending_sizes): Likewise.
12871 (put_pending_size): Likewise.
12872 (put_pending_sizes): Likewise.
12873 (variable_size): Do not call put_pending_size and tidy up.
12874 * function.h (struct function): Remove dont_save_pending_sizes_p.
12875 * lto-streamer-in.c (input_function): Do not stream it.
12876 * lto-streamer-out.c (output_function): Likewise.
12877 * tree-inline.c (initialize_cfun): Do not copy it.
12878 * c-decl.c (store_parm_decls): Do not set it.
12879 * omp-low.c (create_task_copyfn): Likewise.
12880 * tree-optimize.c (tree_rest_of_compilation): Likewise.
12881
386d9c57
UB
128822011-05-05 Uros Bizjak <ubizjak@gmail.com>
12883
12884 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
12885 conditions.
12886 (*movdf_internal): Ditto.
12887 (*movdf_internal_nointeger): Ditto.
12888 (*movsf_internal): Ditto.
12889
a04a722b
JM
128902011-05-05 Joseph Myers <joseph@codesourcery.com>
12891
12892 * c-decl.c (finish_decl): Don't call get_pending_sizes.
12893 (grokparm): Add parameter expr. Pass it to grokdeclarator.
12894 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
12895 (c_variable_size): Remove.
12896 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
12897 call put_pending_sizes.
12898 (get_parm_info): Add parameter expr. Use it to set
12899 arg_info->pending_sizes.
12900 (store_parm_decls): Use arg_info->pending_sizes instead or calling
12901 get_pending_sizes.
12902 * c-parser.c (c_parser_parms_declarator): Update call to
12903 c_parser_parms_list_declarator.
12904 (c_parser_parms_list_declarator): Take parameter expr. Update
12905 call to push_parm_decl. Update recursive call. Don't call
12906 get_pending_sizes. Update calls to get_parm_info.
12907 (c_parser_objc_method_definition): Update calls to
12908 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 12909 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
12910 (c_parser_objc_method_decl): Add parameter expr. Update call to
12911 grokparm.
386d9c57 12912 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
12913 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
12914 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
12915
c92a6f97
MH
129162011-05-05 Michael Hope <michael.hope@linaro.org>
12917
386d9c57
UB
12918 PR pch/45979
12919 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
12920 __ARM_EABI__ hosts.
c92a6f97 12921
07ea0048
UW
129222011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12923
12924 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
12925 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
12926 (spu_output_mi_thunk): New function.
12927
d634bfa1
RO
129282011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12929
12930 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
12931 targetm.asm_out.print_operand.
12932 * config/sol2.c: Include target.h.
12933
40fda55b
JH
129342011-05-04 Jan Hubicka <jh@suse.cz>
12935
12936 * ipa-inline.c (reset_edge_caches): New function.
12937 (update_caller_keys): Add check_inlinablity_for; do not
12938 reset edge caches; remove now unnecesary loop.
386d9c57 12939 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
12940 (update_all_callee_keys): Likewise.
12941 (inline_small_functions): Sanity check cache; update code
12942 recomputing it.
12943
0360f70d
BS
129442011-05-04 Bernd Schmidt <bernds@codesourcery.com>
12945
12946 PR rtl-optimization/47612
12947 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
12948 as the last insn of the sequence to be moved.
12949
7a994646
TB
129502011-05-04 Tobias Burnus <burnus@net-b.de>
12951
12952 PR fortran/48864
12953 * doc/invoke.texi (Ofast): Document that it
12954 enables Fortran's -fno-protect-parens.
12955
7a2f7208
UB
129562011-05-04 Uros Bizjak <ubizjak@gmail.com>
12957
12958 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
12959
a2d42931
EB
129602011-05-04 Eric Botcazou <ebotcazou@adacore.com>
12961
12962 * stor-layout.c (variable_size): Do not issue errors.
12963
f81b1a3d
RG
129642011-05-04 Richard Guenther <rguenther@suse.de>
12965
12966 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
12967 for array-ref indices.
12968 (tree_coverage_counter_addr): Likewise.
12969 (build_fn_info_type): Use size_int for index types.
12970 (build_gcov_info): Likewise.
12971
c62c040f
RG
129722011-05-04 Richard Guenther <rguenther@suse.de>
12973
12974 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
12975 to build_int_cst.
12976 * c-typeck.c (really_start_incremental_init): Use bitsize_int
12977 for constructor indices.
12978 (push_init_level): Likewise.
12979
1e3287d0
RG
129802011-05-04 Richard Guenther <rguenther@suse.de>
12981
12982 * explow.c (promote_mode): Move variable declarations before code.
12983
6c32445b
NF
129842011-05-04 Nathan Froyd <froydnj@codesourcery.com>
12985
12986 * tree.h (build_function_type_array): Declare.
12987 (build_varargs_function_type_array): Declare.
12988 (build_function_type_vec, build_varargs_function_type_vec): Define.
12989 * tree.c (build_function_type_array_1): New function.
12990 (build_function_type_array): New function.
12991 (build_varargs_function_type_array): New function.
12992
fdabf269
RS
129932011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
12994
12995 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
12996 before setting STMT_VINFO_TYPE.
12997
a207915a
UW
129982011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12999
13000 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
13001 instead of spu_pass_by_reference.
13002
5e617be8
AK
130032011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13004
13005 * calls.c (emit_library_call_value_1): Invoke
13006 promote_function_mode hook on libcall arguments.
13007 * explow.c (promote_function_mode, promote_mode): Handle TYPE
13008 argument being NULL.
13009 * targhooks.c (default_promote_function_mode): Lisewise.
13010 * config/s390/s390.c (s390_promote_function_mode): Likewise.
13011 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
13012
13013 * doc/tm.texi: Document that TYPE argument might be NULL.
13014
486d04be
SH
130152011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13016
13017 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
13018
9b19b026
SH
130192011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13020
13021 From Bernd Schmidt
13022 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
13023
502bc3df
RO
130242011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13025
13026 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
13027 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
13028 Move ...
13029 * mips-tfile.c: ... here.
13030 Don't include coretypes.h, tm.h, filenames.h.
13031 (saber_stop): Remove definition and all calls.
13032 [__SABER__]: Remove.
13033 (__LINE__): Remove default.
13034 (Size_t, Ptrdiff_t): Remove definitions.
13035 Replace by size_t, ptrdiff_t.
13036 [!MIPS_DEBUGGING_INFO]: Remove.
13037 (SHASH_SIZE, THASH_SIZE): Remove defaults.
13038 (progname): Add const.
13039 (STATIC): Remove.
13040 Replace all uses by static.
13041 (ALIGN_SYMTABLE_OFFSET): Remove default.
13042 * mips-tdump.c: Don't include coretypes.h, tm.h.
13043 Remove !MIPS_IS_STAB guard.
13044 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
13045 $(TM_H), filenames.h dependencies.
13046 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
13047
991eb6ef
SH
130482011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13049
13050 From Jie Zhang
13051 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
13052 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
13053
420ccc84
SH
130542011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13055
13056 From Bernd Schmidt
13057 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
13058 account and save/restore RETS.
13059 (PROFILE_BEFORE_PROLOGUE): Define.
13060 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
13061 the push insn to use predecrement.
13062
9f8d69ee
SH
130632011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13064
13065 From Jie Zhang
13066 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
13067
662c03f4
NC
130682011-05-04 Nick Clifton <nickc@redhat.com>
13069
13070 * config/mn10300/mn10300.c: Include cfgloop.h.
13071 (DUMP): New macro.
13072 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
13073 Lcc or a FLcc insn into the instruction stream.
13074 (mn10300_block_contains_call): New function. Returns true if the
13075 given basic block contains a CALL insn.
13076 (mn10300_loop_contains_call_insn): New function. Returns true if
13077 the given loop contains a CALL insn.
13078 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
13079 to use the SETLB and Lcc or FLcc insns.
13080 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
13081 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
13082 * config/mn10300/mn10300.opt (msetlb): New option. Used to
13083 disable the SETLB optimization.
13084 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
13085 __SETLB__ or __NO_SETLB__.
13086 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
13087 (movsf_internal): Handle MDR register.
13088 (cmpsi): Make visible.
13089 (setlb): New pattern.
13090 (Lcc): New pattern.
13091 (FLcc): New pattern.
13092
843b6915
UB
130932011-05-04 Uros Bizjak <ubizjak@gmail.com>
13094
13095 PR target/48860
13096 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
13097 for reg<->xmm moves.
13098 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
13099 (vec_concatv2di_rex64_sse): Ditto.
13100 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
13101 (*vec_extractv2di_1_rex64): Ditto.
13102
13103 Revert:
13104 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13105
13106 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13107 reg<->xmm moves.
13108 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
13109
d35936ab
RG
131102011-05-04 Richard Guenther <rguenther@suse.de>
13111
13112 * tree.h (int_const_binop): Remove notrunc argument.
13113 * fold-const.c (int_const_binop): Remove notrunc argument. Always
13114 create integer constants that are properly truncated.
13115 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
13116 (const_binop): Remove zero notrunc argument to int_const_binop.
13117 (size_binop_loc): Likewise.
13118 (fold_div_compare): Likewise.
13119 (maybe_canonicalize_comparison_1): Likewise.
13120 (fold_comparison): Likewise.
13121 (fold_binary_loc): Likewise.
13122 (multiple_of_p): Likewise.
13123 * expr.c (store_constructor): Likewise.
13124 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13125 (maybe_fold_stmt_addition): Likewise.
13126 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
13127 * stor-layout.c (layout_type): Likewise.
13128 * tree-data-ref.c (tree_fold_divides_p): Likewise.
13129 * tree-sra.c (build_ref_for_offset): Likewise.
13130 (build_user_friendly_ref_for_offset): Likewise.
13131 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
13132 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13133 * tree-ssa-loop-niter.c (inverse): Likewise.
13134 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13135 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
13136 * tree-switch-conversion.c (check_range): Likewise.
13137 (build_constructors): Likewise.
13138 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
13139 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
13140 (extract_range_from_assert): Likewise.
13141 (vrp_int_const_binop): Likewise.
13142 (extract_range_from_binary_expr): Likewise.
13143 (extract_range_from_unary_expr): Likewise.
13144 (check_array_ref): Likewise.
13145 (find_case_label_range): Likewise.
13146 (simplify_div_or_mod_using_ranges): Likewise.
13147 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
13148 comparing case labels for merging.
13149
8992c063
MW
131502011-05-03 Mark Wielaard <mjw@redhat.com>
13151
13152 * dwarf2out.c (debug_str_hash_forced): Removed.
13153 (gen_label_for_indirect_string): Removed.
13154 (get_debug_string_label): Removed.
13155 (AT_string_form): Generate label directly.
13156 (output_indirect_string): Test indirect_string_node for
13157 DW_FORM_strp instead of checking label and refcount.
13158 (prune_indirect_string): Removed.
13159 (prune_unused_types): Don't check debug_str_hash_forced or
13160 call prune_indirect_string.
13161
4868e6ea
AO
131622011-05-04 Alexandre Oliva <aoliva@redhat.com>
13163
13164 PR other/48093
13165 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
13166
01a5c0ab
AO
131672011-05-04 Alexandre Oliva <aoliva@redhat.com>
13168
13169 PR debug/47994
13170 PR debug/47919
13171 * combine.c (try_combine): Skip debug insns at m_split tests.
13172
6ac00218
MW
131732011-04-26 Mark Wielaard <mjw@redhat.com>
13174
13175 PR42288
13176 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
13177 when info_section_emitted.
13178
3af42a7b
JM
131792011-05-03 Joseph Myers <joseph@codesourcery.com>
13180
13181 * config/mips/mips-opts.h: New.
13182 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
13183 to mips-opts.h.
13184 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
13185 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
13186 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
13187 via opts pointer.
13188 * config/mips/mips.h (enum mips_code_readable_setting): Move to
13189 mips-opts.h.
13190 (mips_abi, mips_code_readable): Don't declare.
843b6915 13191 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
13192 (mabi=): Use Enum and Var.
13193 (mips_abi): New Enum and EnumValue entries.
13194 (mcode-readable=): Use Enum and Var.
13195 (mips_code_readable_setting): New Enum and EnumValue entries.
13196 (mr10k-cache-barrier=): Use Enum and Var.
13197 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
13198
1cb1a99f
JH
131992011-05-03 Jan Hubicka <jh@suse.cz>
13200
13201 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
13202 replace hash by pointer map.
13203 (cgraph_node_set_element_def, cgraph_node_set_element,
13204 const_cgraph_node_set_element, varpool_node_set_element_def,
13205 varpool_node_set_element, const_varpool_node_set_element): Remove.
13206 (free_cgraph_node_set, free_varpool_node_set): New function.
13207 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
13208 * tree-emutls.c: Free varpool node set.
13209 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
13210 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13211 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
13212 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13213 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
13214 Move here from ipa.c; implement using pointer_map
13215 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
13216 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13217 debug_cgraph_node_set, varpool_node_set_new,
13218 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13219 dump_varpool_node_set, debug_varpool_node_set):
13220 Move to ipa-uitls.c.
13221 * passes.c (ipa_write_summaries): Update.
13222
7f31f4db
SH
132232011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13224
7a2f7208
UB
13225 From Mike Frysinger:
13226 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
13227 bf542/bf544/bf547/bf548/bf549.
7f31f4db 13228
b70fce6d
UB
132292011-05-03 Uros Bizjak <ubizjak@gmail.com>
13230
13231 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
13232
265b1d82
SH
132332011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13234
13235 From Bernd Schmidt:
13236 * config/bfin/bfin.md (MOVCC): New mode_macro.
13237 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
13238 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
13239 comments from generated assembly.
13240
f0b568f3
SH
132412011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13242
13243 From Bernd Schmidt
13244 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
13245 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
13246 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
13247 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
13248 * config/bfin/lib1funcs.asm (___muldi3): New function.
13249
2c67cf6e
NF
132502011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13251
13252 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
13253 build_function_type_list instead of build_function_type.
13254 Rearrange initialization of `args' to do so.
13255
f9ac28ad
NF
132562011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13257
13258 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
13259 instead of build_function_type.
13260
22b8798c
NF
132612011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13262
13263 * config/rs6000/rs6000.c (spe_init_builtins): Call
13264 build_function_type_list instead of build_function_type.
13265 (paired_init_builtins, altivec_init_builtins): Likewise.
13266 (builtin_function_type): Likewise.
13267
4cb44528
NF
132682011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13269
13270 * config/sh/sh.c (sh_media_init_builtins): Call
13271 build_function_type_list instead of build_function_type.
13272
4c203a6a
NF
132732011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13274
13275 * config/sparc/sparc.c (sparc_file_end): Call
13276 build_function_type_list instead of build_function_type.
13277
d6a3d62b
NF
132782011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13279
13280 * config/alpha/alpha.c (alpha_init_builtins): Call
13281 build_function_type_list instead of build_function_type.
13282
de530b86
NF
132832011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13284
13285 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
13286 build_function_type_list instead of build_function_type.
13287
baeec5f2
NF
132882011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13289
13290 * config/iq2000/i2000.c (iq2000_init_builtins): Call
13291 build_function_type_list instead of build_function_type.
13292 Delete `endlink' variable.
13293
c19afe52
NF
132942011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13295
13296 * config/avr/avr.c (avr_init_builtins): Call
13297 build_function_type_list instead of build_function_type.
13298
a341df0a
NF
132992011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13300
13301 * config/picochip/picochip.c (picochip_init_builtins): Call
13302 build_function_type_list instead of build_function_type.
13303 Delete `endlink' variable.
13304
2102b1e1
NF
133052011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13306
13307 * config/bfin/bfin.c (bfin_init_builtins): Call
13308 build_function_type_list instead of build_function_type.
13309
9f111209
SH
133102011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13311
13312 From Bernd Schmidt
13313 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
13314 that's not CONST_INT. Seemingly redundant check is due to PR39768.
13315
7071d064
SH
133162011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13317
13318 From Jie Zhang:
13319 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
13320 libbffastfp overrides libgcc when -mfast-fp.
13321
748f7574 133222011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
13323
13324 Originally from Bernd Schmidt
13325 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
13326 * config/bfin/bfin.c (override_options): Test it and error if
13327 TARGET_FDPIC.
13328
1a3a9152
SH
133292011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13330
13331 Originally From Bernd Schmidt
13332 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
13333 FD-PIC.
13334
7134c090
JL
133352011-05-03 Jeff Law <law@redhat.com>
13336
13337 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
13338 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
13339 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
13340 than accessing AUX field directly. Free the AUX field before
13341 clearing it.
7134c090
JL
13342 (thread_block, thread_through_loop_header): Likewise.
13343 (thread_single_edge, mark_threaded_blocks): Likewise.
13344 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
13345 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 13346
2c7eebae
BS
133472011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13348
13349 * function.c (init_function_start): Call decide_function_section.
13350 * varasm.c (decide_function_section): New function.
13351 (assemble_start_function): When not using
13352 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
13353 or first_function_block_is_cold.
13354 * rtl.h (decide_function_section): Declare.
13355
17038fcf
JJ
133562011-05-03 Uros Bizjak <ubizjak@gmail.com>
13357 Jakub Jelinek <jakub@redhat.com>
13358
13359 PR target/48774
13360 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
13361 only succeed if req_mode is the same as set_mode.
13362
3810076b
BS
133632011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13364
13365 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
13366 * genemit.c (gen_exp): Handle RETURN.
13367 * emit-rtl.c (verify_rtx_sharing): Likewise.
13368 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
13369 * rtl.c (copy_rtx): RETURN is shared.
13370 * rtl.h (enum global_rtl_index): Add GR_RETURN.
13371 (ret_rtx): New.
13372 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
13373 * config/s390/s390.c (s390_emit_epilogue): Likewise.
13374 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
13375 * config/cris/cris.c (cris_expand_return): Likewise.
13376 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
13377 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
13378 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
13379 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
13380 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
13381 Likewise.
13382 * config/v850/v850.c (expand_epilogue): Likewise.
13383 * config/bfin/bfin.c (bfin_expand_call): Likewise.
13384 * config/arm/arm.md (epilogue): Likewise.
13385 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
13386 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
13387 variable to ret_reg.
13388
9efdb4ad
RG
133892011-05-03 Richard Guenther <rguenther@suse.de>
13390
13391 PR lto/48846
13392 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
13393 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
13394 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
13395
60a45536
RG
133962011-05-03 Richard Guenther <rguenther@suse.de>
13397
13398 * c-decl.c (grokdeclarator): Instead of looking at
13399 TREE_OVERFLOW check if the constant fits in the index type.
13400
3188ed59
RS
134012011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13402
13403 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
13404 (vec_store_lanes<mode><mode>): Likewise.
13405
272c6793
RS
134062011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13407
13408 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
13409 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
13410 convert_optab_index values.
13411 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
13412 * genopinit.c (optabs): Initialize the new optabs.
13413 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
13414 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
13415 (expand_STORE_LANES): New functions.
13416 * tree.h (build_array_type_nelts): Declare.
13417 * tree.c (build_array_type_nelts): New function.
13418 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
13419 (vect_model_load_cost): Likewise.
13420 (vect_store_lanes_supported, vect_load_lanes_supported)
13421 (vect_record_strided_load_vectors): Declare.
13422 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
13423 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
13424 (vect_transform_strided_load): Split out statement recording into...
13425 (vect_record_strided_load_vectors): ...this new function.
13426 * tree-vect-stmts.c (create_vector_array, read_vector_array)
13427 (write_vector_array, create_array_ref): New functions.
13428 (vect_model_store_cost): Add store_lanes_p argument.
13429 (vect_model_load_cost): Add load_lanes_p argument.
13430 (vectorizable_store): Try to use store-lanes functions for
13431 interleaved stores.
13432 (vectorizable_load): Likewise load-lanes and loads.
13433 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
13434 to vect_model_store_cost.
13435 (vect_build_slp_tree): Likewise vect_model_load_cost.
13436
0f6d54f7
RS
134372011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13438
13439 * hooks.h (hook_bool_mode_uhwi_false): Declare.
13440 * hooks.c (hook_bool_mode_uhwi_false): New function.
13441 * target.def (array_mode_supported_p): New hook.
13442 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
13443 * doc/tm.texi: Regenerate.
13444 * stor-layout.c (mode_for_array): New function.
13445 (layout_type): Use it.
13446 * config/arm/arm.c (arm_array_mode_supported_p): New function.
13447 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
13448
b15eacc7
EB
134492011-05-03 Eric Botcazou <ebotcazou@adacore.com>
13450
13451 PR target/48723
13452 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
13453 for -fstack-check if the size to allocate is negative.
13454
575bfb00
LC
134552011-05-02 Lawrence Crowl <crowl@google.com>
13456
13457 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
13458 (timevar_cond_start): New for starting a timer only when it is not
13459 already running.
13460 (timevar_cond_stop): New for stopping a timer when it was not already
13461 running.
13462
13463 * timevar.c (timevar_stop): Enable start/stop timers to start again.
13464 (timevar_cond_start): New as above.
13465 (timevar_cond_stop): New as above.
13466
13467 * timevar.def: Add start/stop timers for compiler phases,
13468 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
13469 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
13470 and TV_PHASE_FINALIZE.
13471 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
13472 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
13473 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
13474 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
13475 Make unused TV_OVERLOAD into a start/stop timer.
13476
13477 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
13478 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
13479 to indicate that they are start/stop timers.
13480
13481 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
13482 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
13483 Move initialization to do_compile.
13484 (do_compile): Add initialization from above.
13485 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
13486
13487 * c-decl.c (c_write_global_declarations): Add start/stop of
13488 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
13489
13490 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
13491 or TV_PARSE_INLINE, as appropriate.
13492 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
13493 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
13494
3533b943
JM
134952011-05-02 Jason Merrill <jason@redhat.com>
13496
13497 PR c++/40975
13498 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
13499
2609a0ce
SM
135002011-05-02 Simon Martin <simartin@users.sourceforge.net>
13501
13502 PR c/35445
13503 * c-decl.c (finish_decl): Only create a composite if the types are
13504 compatible.
13505
6b0e4cbb
JM
135062011-05-02 Joseph Myers <joseph@codesourcery.com>
13507
13508 * config/fr30/fr30-protos.h (Mmode): Don't define.
13509 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
13510 definition where used.
13511 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
13512 define. Expand definitions where used.
13513 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
13514 Expand definitions where used.
13515 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
13516 rx_function_arg, rx_function_arg_advance,
13517 rx_function_arg_boundary): Expand definitions of those macros.
13518 * config/v850/v850-protos.h (Mmode): Don't define. Expand
13519 definition where used.
13520
4e938ce6
UB
135212011-05-02 Uros Bizjak <ubizjak@gmail.com>
13522
13523 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13524 reg<->xmm moves.
13525 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
13526 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
13527 with *movv2sf_internal_rex64_avx.
13528 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
13529 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
13530 Use %v prefix in insn mnemonic to handle TARGET_AVX.
13531 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
13532 "vex" in "prefix" attribute calculation.
13533 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
13534
36019c19
SH
135352011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
13536
7a2f7208
UB
13537 PR target/47951
13538 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
13539 inputs match the output.
36019c19 13540
f69ea688
AS
135412011-05-02 Andreas Schwab <schwab@linux-m68k.org>
13542
13543 PR target/47955
13544 * config/m68k/m68k.c (m68k_expand_prologue): Set
13545 current_function_static_stack_size.
13546
c33406f5
JH
135472011-05-02 Jan Hubicka <jh@suse.cz>
13548
13549 * lto-streamer.c (lto_streamer_cache_insert_1,
13550 lto_streamer_cache_lookup, lto_streamer_cache_create,
13551 lto_streamer_cache_delete): Use pointer map instead of hashtable.
13552 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
13553
47c94d21
JM
135542011-05-02 Joseph Myers <joseph@codesourcery.com>
13555
13556 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
13557 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
13558 config/m68k/t-opts: New files.
13559 * config/m68k/m68k-tables.opt: New file (generated).
13560 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
13561 extra_options and m68k/t-opts to tmake_file.
13562 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
13563 (all_isas): Initialize using m68k-isas.def.
13564 (all_microarchs): Initialize using m68k-microarchs.def.
13565 (m68k_find_selection): Remove.
13566 (m68k_handle_option): Don't assert that global structures are in
13567 use. Use error_at. Access variables via opts pointer. Don't
13568 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
13569 directly for -m68020-40 and -m68020-60.
13570 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
13571 m68k_tune_entry here.
13572 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
13573 to m68k-opts.h.
13574 (m68k_library_id_string): Remove declaration.
4e938ce6 13575 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
13576 (m68k_library_id_string): New Variable.
13577 (march=, mcpu=, mtune=): Use Enum and Var.
13578
e562bf36
RG
135792011-05-02 Richard Guenther <rguenther@suse.de>
13580
13581 * varasm.c (output_constructor_regular_field): Compute zero-based
13582 index with double-ints. Make sure to ICE instead of producing
13583 wrong code.
13584 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
13585 in asserts. Properly use a signed type.
13586
6bec6c98
UB
135872011-05-02 Uros Bizjak <ubizjak@gmail.com>
13588
13589 * config/i386/sse.md (V): New mode iterator.
13590 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
13591 TARGET_SSE2.
13592 (V_256): Rename from AVX256MODE.
13593 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
13594 condition to all users.
13595 (VF1): Ditto.
13596 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
13597 condition to all users.
13598 (VF_128): Make V4SF mode unconditional.
13599 (VF_256): Rename from AVX256MODEF2P.
13600 (VI4F_128): Rename from SSEMODE4S.
13601 (VI8F_128): Rename from SSEMODE2D.
13602 (VI4F_256): Rename from AVX256MODE8P.
13603 (VI8F_256): Rename from AVX256MODE4P.
13604 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
13605 (ssescalarmodesuffix): Remove SF and DF modes.
13606 (SSEMODE124): Remove.
13607 (SSEMODE1248): Ditto.
13608 (SSEMODEF2P): Ditto.
13609 (AVXMODEF2P): Ditto.
13610 (AVXMODEFDP): Ditto.
13611 (AVXMODEFSP): Ditto.
13612 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
13613 unconditional.
13614 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
13615 unconditional.
13616 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
13617 xop_pcmov_<mode>256. Use V mode iterator.
13618
13619 Adjust RTX patterns globally for renamed mode attributes.
13620
2dfdcb4b
UW
136212011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13622
13623 * haifa-sched.c (sched_emit_insn): Emit insn before first
13624 non-scheduled insn. Inform back-end about new insn. Add
13625 new insn to scheduled_insns list.
13626
90bc4623
RG
136272011-05-02 Richard Guenther <rguenther@suse.de>
13628
13629 PR tree-optimization/48822
13630 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
13631 (process_scc): Indicate which iteration we start.
13632
bc0fe8cb
JH
136332011-05-02 Jan Hubicka <jh@suse.cz>
13634
13635 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
13636 (lto_section_overrun): New.
13637 * lto-section-out.c (append_block): Rename to ...
13638 (lto_append_block): ... this one; export.
13639 (lto_output_1_stream): Move lto lto-streamer.h
13640 (lto_output_data_stream): Update.
13641 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
13642 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
13643 functions.
13644
f070a9d1
RG
136452011-05-02 Richard Guenther <rguenther@suse.de>
13646
13647 * tree.c (tree_code_counts): New global array.
13648 (record_node_allocation_statistics): Count individual tree codes.
13649 (dump_tree_statistics): Dump individual code stats.
13650
09dfe187
JH
136512011-05-01 Jan Hubicka <jh@suse.cz>
13652
13653 * ipa-inline.c (caller_growth_limits): Fix thinko when
13654 looking for largest stack frame.
13655 * ipa-inline.h (dump_inline_summary): Declare.
13656 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
13657 on stack usage.
13658 (dump_inline_summary): Export.
13659 (debug_inline_summary): Declare as DEBUG_FUNCTION.
13660
6f76a878
AS
136612011-05-01 Anatoly Sokolov <aesok@post.ru>
13662
13663 * reginfo.c (memory_move_cost): Change rclass argument type form
13664 'enum reg_class' to reg_class_t.
13665 * reload.h (memory_move_cost): Update prototype.
13666 * postreload.c reload_cse_simplify_set): Change type dclass var to
13667 reg_class_t.
13668 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
13669 Update prototype.
13670 (ira_allocate_and_set_costs): Change aclass argument type form
13671 'enum reg_class' to reg_class_t.
6bec6c98 13672 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
13673 Change aclass argument type to reg_class_t.
13674 (update_conflict_hard_reg_costs): Change type aclass and pref vars
13675 to reg_class_t.
13676 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
13677 memory_move_cost call.
13678
13679 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
13680 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
13681 Change type tmp var to reg_class_t.
13682
9a4ac625
JH
136832011-04-30 Jan Hubicka <jh@suse.cz>
13684
13685 * ipa-inline.c (can_inline_edge_p): Disregard limits when
13686 inlining into function with flatten attribute.
13687 (want_inline_small_function_p): Be more realistic about inlining
13688 cold calls where callee size grows.
13689
dd8352ee
JH
136902011-04-30 Jan Hubicka <jh@suse.cz>
13691
13692 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
13693 flags.
13694
46e43d2b
AS
136952011-04-30 Anatoly Sokolov <aesok@post.ru>
13696
13697 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13698 PRINT_OPERAND_PUNCT_VALID_P): Remove.
13699 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
13700 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
13701 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13702 (print_operand): Rename to...
13703 (sparc_print_operand): ...this. Make static. Adjust
13704 sparc_print_operand function call.
13705 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
13706 functions.
13707
ecb62563
JH
137082011-04-30 Jan Hubicka <jh@suse.cz>
13709
6bec6c98 13710 PR middle-end/48752
ecb62563
JH
13711 * ipa-inline.c (early_inliner): Disable when doing late
13712 addition of function.
13713
edb9b69e
JJ
137142011-04-30 Jakub Jelinek <jakub@redhat.com>
13715
be80a87e
JJ
13716 * dwarf2out.c (get_address_mode): New inline.
13717 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
13718 if not dwarf_strict emit
13719 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
13720 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
13721 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
13722 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
13723 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
13724 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
13725 mem_loc_descriptor callers.
13726 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13727 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
13728 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
13729 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
13730 (base_types): New variable.
13731 (get_base_type_offset, calc_base_type_die_sizes,
13732 base_type_for_mode, mark_base_types, base_type_cmp,
13733 move_marked_base_types): New functions.
13734 (calc_die_sizes): Assert that die_offset is 0 or equal to
13735 next_die_offset.
13736 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
13737 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
13738 callers. If not dwarf_strict, call mem_loc_descriptor even for
13739 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
13740 (gen_subprogram_die): Don't give up on call site parameters
13741 with non-integral or large integral modes. Adjust
13742 mem_loc_descriptor callers.
13743 (prune_unused_types): Call prune_unused_types_mark on base_types
13744 vector entries.
13745 (resolve_addr): Call mark_base_types.
13746 (dwarf2out_finish): Call move_marked_base_types.
13747
edb9b69e
JJ
13748 PR tree-optimization/48809
13749 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
13750 type.
13751 (gen_inbound_check): Don't compute index_expr - range_min in utype
13752 again, instead reuse SSA_NAME initialized in build_arrays.
13753 Remove two useless gsi_for_stmt calls.
13754
a6545a3d
JL
137552011-04-29 Jeff Law <law@redhat.com>
13756
13757 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
13758
af8bca3c
MJ
137592011-04-29 Martin Jambor <mjambor@suse.cz>
13760
13761 * cgraph.h (cgraph_postorder): Remove declaration.
13762 * ipa-utils.h (ipa_free_postorder_info): Declare.
13763 (ipa_reverse_postorder): Likewise.
13764 * cgraphunit.c: Include ipa-utils.h.
13765 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
13766 * ipa-inline.c: Include ipa-utils.h.
13767 (ipa_inline): Update call to ipa_reverse_postorder.
13768 * ipa-pure-const.c (propagate_pure_const): Update call to
13769 ipa_reduced_postorder and ipa_print_order. Call
13770 ipa_free_postorder_info to clean up.
13771 (propagate_nothrow): Likewise.
13772 * ipa-reference.c (propagate): Removed a useless call to
13773 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
13774 and ipa_print_order. Call ipa_free_postorder_info to clean up.
13775 * ipa.c: Include ipa-utils.h.
13776 (ipa_profile): Update call to ipa_reverse_postorder.
13777 (cgraph_postorder): Moved to...
13778 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
13779 (ipa_utils_print_order): Renamed to ipa_print_order.
13780 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
13781 comments.
13782 (ipa_free_postorder_info): New function.
13783 * passes.c: Include ipa-utils.h.
13784 (do_per_function_toporder): Update call to ipa_reverse_postorder.
13785 (ipa_write_summaries): Likewise.
13786 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
13787 (cgraphunit.o): Likewise.
13788 (ipa.o): Likewise.
13789 (ipa-inline.o): Likewise.
13790
b15c64ee
JH
137912011-04-29 Jan Hubicka <jh@suse.cz>
13792
13793 * gcc.dg/tree-ssa/inline-10.c: New testcase.
13794 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
13795 * ipa-inline.h (clause_t): Turn into unsigned int.
13796 * ipa-inline-analysis.c (add_clause): Do more simplification.
13797 (and_predicates): Shortcut more cases.
13798 (predicates_equal_p): Move forward; check that clauses are properly
13799 ordered.
13800 (or_predicates): Shortcut more cases.
13801 (edge_execution_predicate): Rewrite as...
13802 (set_cond_stmt_execution_predicate): ... this function; handle
13803 __builtin_constant_p.
13804 (set_switch_stmt_execution_predicate): New .
13805 (compute_bb_predicates): New.
13806 (will_be_nonconstant_predicate): Update TODO.
13807 (estimate_function_body_sizes): Use compute_bb_predicates
13808 and free them later, always try to estimate if stmt is constant.
13809 (estimate_time_after_inlining, estimate_size_after_inlining):
13810 Gracefully handle optimized out edges.
13811 (read_predicate): Fix off by one error.
13812
a88fdc2a
NP
138132011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
13814
13815 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
13816
d984c8ef
XDL
138172011-04-27 Xinliang David Li <davidxl@google.com>
13818
13819 * tree-profile.c (init_ic_make_global_vars): Set
13820 tls attribute on ic vars.
13821 * coverage.c (coverage_end_function): Initialize
13822 function_list with zero.
13823
45a2c477
RG
138242011-04-29 Richard Guenther <rguenther@suse.de>
13825
13826 * builtins.c (fold_builtin_classify_type): Use integer_type_node
13827 for the type of the result.
13828 (fold_builtin_isascii): Likewise.
13829 (fold_builtin_toascii): Use integer_type_node where appropriate.
13830 (fold_builtin_logb): Likewise.
13831 (fold_builtin_frexp): Likewise.
13832 (fold_builtin_strstr): Likewise.
13833 (fold_builtin_strpbrk): Likewise.
13834 (fold_builtin_fputs): Likewise.
13835 (fold_builtin_sprintf): Likewise.
13836 (fold_builtin_snprintf): Likewise.
13837 (fold_builtin_printf): Likewise.
13838 (do_mpfr_remquo): Use a proper type for the assigned constant.
13839 (do_mpfr_lgamma_r): Likewise.
13840 * dwarf2out.c (resolve_one_addr): Use size_int.
13841 * except.c (init_eh): Likewise.
13842 (assign_filter_values): Use integer_type_node for filter values.
13843 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
13844 indices.
13845 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
13846 for EH region numbers.
13847 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
13848 for the shift amount.
13849
eb6c3df1
RG
138502011-04-29 Richard Guenther <rguenther@suse.de>
13851
13852 * expr.h (expand_shift): Rename to ...
13853 (expand_variable_shift): ... this.
13854 (expand_shift): Take a constant shift amount.
13855 * expmed.c (expand_shift): Rename to ...
13856 (expand_variable_shift): ... this.
13857 (expand_shift): New wrapper around expand_variable_shift.
13858 * expr.c (convert_move, emit_group_load_1, emit_group_store,
13859 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
13860 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
13861 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
13862 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
13863 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
13864 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
13865 emit_store_flag_1, emit_store_flag): Likewise.
13866 * builtins.c (expand_builtin_signbit): Likewise.
13867 * calls.c (load_register_parameters): Likewise.
13868 * function.c (assign_parm_setup_block): Likewise.
13869 * lower-subreg.c (resolve_shift_zext): Likewise.
13870 * optabs.c (widen_bswap, expand_abs_nojump,
13871 expand_one_cmpl_abs_nojump, expand_float): Likewise.
13872 * spu/spu.c (spu_expand_extv): Likewise.
13873 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13874
9f616812
RG
138752011-04-29 Richard Guenther <rguenther@suse.de>
13876
13877 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
13878 for the remapped region number.
13879 * predict.c (build_predict_expr): Use integer_type_node for the
13880 predict kind.
13881 * fold-const.c (fold_binary_loc): Use integer_type_node for
13882 the shift amount. Use a proper type for the PLUS_EXPR operand.
13883
b823cdfe
MM
138842011-04-29 Michael Matz <matz@suse.de>
13885
13886 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
13887 other trees that just builtins.
13888 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
13889
413581ba
RG
138902011-04-29 Richard Guenther <rguenther@suse.de>
13891
13892 * tree-nested.c (get_trampoline_type): Use size_int.
13893 (get_nl_goto_field): Likewise.
13894 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
13895 for all indexes.
13896 (lower_eh_constructs_2): Likewise.
13897 (lower_resx): Likewise.
13898 (lower_eh_dispatch): Likewise.
13899 * tree-mudflap.c (mf_build_string): Use size_int.
13900 (mudflap_register_call): Use integer_type_node for the flag.
13901 (mudflap_enqueue_constant): Use size_int.
13902 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
13903 instead of rebuilding it.
13904
5c04e9f4
RG
139052011-04-29 Richard Guenther <rguenther@suse.de>
13906
13907 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
13908 Handle OBJ_TYPE_REF.
13909 (find_func_aliases_for_call): Use it more consistently.
13910
5c24671b
AO
139112011-04-29 Alexandre Oliva <aoliva@redhat.com>
13912
13913 * haifa-sched.c (last_nondebug_scheduled_insn): New.
13914 (rank_for_schedule): Use it.
13915 (schedule_block): Set it.
13916
10adac51
XDL
139172011-04-28 David Li <davidxl@google.com>
13918
13919 * tree.c (crc32_string): Use crc32_byte.
13920 (crc32_byte): New function.
13921 * tree.h (crc32_byte): New function.
13922 * gcov.c (read_graph_file): Handle new cfg_cksum.
13923 (read_count_file): Ditto.
13924 * profile.c (instrument_values): Ditto.
13925 (get_exec_counts): Ditto.
13926 (read_profile_edge_counts): Ditto.
13927 (compute_branch_probabilities): Ditto.
13928 (compute_value_histograms): Ditto.
13929 (branch_prob): Ditto.
13930 (end_branch_prob): Ditto.
13931 * coverage.c (read_counts_file): Ditto.
13932 (get_coverage_counts): Ditto.
13933 (tree_coverage_counter_addr): Ditto.
13934 (coverage_checksum_string): Ditto.
13935 (coverage_begin_output): Ditto.
13936 (coverage_end_function): Ditto.
13937 (build_fn_info_type): Ditto.
13938 (build_fn_info_value): Ditto.
13939 * libgcov.c (gcov_exit): Ditto.
13940 * gcov-dump.c (tag_function): Ditto.
13941 (compute_checksum): Remove.
13942
5d6358a5
AM
139432011-04-29 Alan Modra <amodra@gmail.com>
13944
13945 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13946 unspec plus offset. Tidy macho code.
13947
85ad2ef5
MJ
139482011-04-29 Martin Jambor <mjambor@suse.cz>
13949
13950 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
13951 node instead of a decl. Update all callers.
13952 * cgraph.h: Update declaration.
13953
437f4a00
IR
139542011-04-28 Ira Rosen <ira.rosen@linaro.org>
13955
13956 PR tree-optimization/48765
13957 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
13958 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
13959 to indicate if loop aware SLP is being used. Scan the statements
13960 and update the vectorization factor according to the type of
13961 vectorization before statement analysis.
13962 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
13963 pass it to vect_analyze_loop_operations.
13964 (vectorizable_reduction): Set number of copies to 1 in case of pure
13965 SLP statement.
13966 * tree-vect-stmts.c (vectorizable_conversion,
13967 vectorizable_assignment, vectorizable_shift,
13968 vectorizable_operation, vectorizable_type_demotion,
13969 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
13970 Likewise.
13971 (vectorizable_condition): Move the check that it is not SLP
13972 vectorization before the number of copies check.
13973 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
13974 to vectorize the loop using SLP.
13975
c6fc44f3
JJ
139762011-04-28 Jakub Jelinek <jakub@redhat.com>
13977
13978 PR middle-end/48597
13979 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
13980 inline asm.
13981
6c0170ea
JM
139822011-04-28 Joseph Myers <joseph@codesourcery.com>
13983
13984 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
13985 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
13986 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13987 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13988 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
13989 linux*.h headers.
6bec6c98 13990 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
13991 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13992 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13993 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 13994 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
13995 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
13996 REG_NAME.
13997 * config/i386/linux.h (REG_NAME): Don't define.
13998 * config/i386/linux64.h (REG_NAME): Don't define.
13999 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
14000 Undefine before defining.
14001
970dabbd
JH
140022011-04-28 Jan Hubicka <jh@suse.cz>
14003
6bec6c98
UB
14004 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
14005 nonconstant_names array.
970dabbd
JH
14006 (estimate_function_body_sizes): Build nonconstant_names array; handle
14007 BUILT_IN_CONSTANT_P.
14008
8d3e3924
RG
140092011-04-28 Richard Guenther <rguenther@suse.de>
14010
14011 PR bootstrap/48804
14012 Revert
14013 2011-04-28 Richard Guenther <rguenther@suse.de>
14014
14015 * tree-ssa-structalias.c (solve_constraints): Build succ graph
14016 as late as possible.
6bec6c98 14017
8576f20a
RG
140182011-04-28 Richard Guenther <rguenther@suse.de>
14019
14020 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
14021 (debug_constraint): Do it here.
14022 (dump_constraints): And here.
14023 (rewrite_constraints): And here.
14024 (dump_constraint_edge): Remove.
14025 (dump_constraint_graph): Rewrite to produce DOT output.
14026 (solve_constraints): Build succ graph as late as possible.
14027 Dump constraint graphs before and after solving.
14028
e38811ce
RG
140292011-04-28 Richard Guenther <rguenther@suse.de>
14030
14031 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14032 New function split out from ...
14033 (find_func_aliases): ... here. Call it.
14034 (find_func_aliases_for_call): Likewise.
14035
fbaf0d0c
GDR
140362011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
14037
14038 * internal-fn.h (internal_fn_name_array): Declare.
14039 (internal_fn_flags_array): Likewise.
14040
cbb734aa
UB
140412011-04-27 Uros Bizjak <ubizjak@gmail.com>
14042
14043 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
14044 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
14045 Move from sse.md.
14046 (ssemodefsuffix): Remove.
14047 (ssevecmodesuffix): New mode attribute.
14048 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
14049 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
14050 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
14051 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
14052 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
14053 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
14054 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
14055 ssemodesuffix mode attribute.
14056 (float splitters): Use ssevecmodesuffix mode attribute.
14057 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
14058 (sseinsmode): Rename from avxvecmode.
14059 (avxsizesuffix): Rename from avxmodesuffix.
14060 (sseintvecmode): Rename from avxpermvecmode.
14061 (ssedoublevecmode): Rename from ssedoublesizemode.
14062 (ssehalfvecmode): Rename from avxhalfvecmode.
14063 (ssescalarmode): Rename from avxscalarmode.
14064 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
14065 templates for ssemodesuffix mode attribute.
14066 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
14067 mode attribute.
14068
14069 Adjust RTX patterns globally for renamed mode attributes.
14070
991278ab
JH
140712011-04-27 Jan Hubcika <jh@suse.cz>
14072
14073 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
14074 * ipa-inline-analysis.c: Include alloc-pool.h.
14075 (edge_predicate_pool): New.
14076 (trye_predicate_p): New function
14077 (false_predicate_p): New function.
14078 (add_clause): Sanity check that false clauses are "optimized";
14079 never add clauses to predicate that is already known to be false.
14080 (and_predicate): Use flase_predicate_p.
14081 (evaulate_predicate): Rename to ...
14082 (evaluate_predicate): ... this one; update all callers; assert
14083 that false is not listed among possible truths.
14084 (dump_predicate): Use true_predicate_p.
14085 (account_size_time): Use false_predicate_p.
14086 (evaulate_conditions_for_edge): Rename to ...
14087 (evaluate_conditions_for_edge) ... this one.
14088 (edge_set_predicate): New function.
14089 (inline_edge_duplication_hook): Duplicate edge predicates.
14090 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 14091 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
14092 (dump_inline_summary): Update.
14093 (estimate_function_body_sizes): Set edge predicates.
14094 (estimate_calls_size_and_time): Handle predicates.
14095 (estimate_callee_size_and_time): Update.
14096 (remap_predicate): Add toplev_predicate; update comment.
14097 (remap_edge_predicates): New function.
14098 (inline_merge_summary): Compute toplev predicate; update.
14099 (read_predicate): New function.
14100 (read_inline_edge_summary): Use it.
14101 (inline_read_section): Likewise.
14102 (write_predicate): New function.
14103 (write_inline_edge_summary): Use it.
14104 (inline_write_summary): Likewise.
14105 (inline_free_summary): Free alloc pool and edge summary vec.
14106
648b5f85
RG
141072011-04-27 Richard Guenther <rguenther@suse.de>
14108
14109 * tree-ssa-structalias.c (changed_count): Remove.
14110 (changed): Use a bitmap.
14111 (unify_nodes): Adjust.
14112 (do_sd_constraint): Likewise.
14113 (do_ds_constraint): Likewise.
14114 (do_complex_constraint): Likewise.
14115 (solve_graph): Likewise.
14116
4d5dcfb2
JH
141172011-04-27 Jan Hubicka <jh@suse.cz>
14118
14119 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
14120
200eb7d2
UB
141212011-04-27 Uros Bizjak <ubizjak@gmail.com>
14122
14123 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
14124 (avx_vperm2f128_*_operand): Ditto.
14125 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
14126 Use avx_vpermilp_parallel in insn condition.
14127 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
14128 Use avx_vperm2f128_parallel in insn condition.
14129
7d6e2521
RG
141302011-04-27 Richard Guenther <rguenther@suse.de>
14131
14132 * Makefile.in (tree-ssa-structalias.o): Remove
14133 gt-tree-ssa-structalias.h dependency.
14134 (GTFILES): Remove tree-ssa-structalias.c.
14135 * tree.c (allocate_decl_uid): New function.
14136 (make_node_stat): Use it.
14137 (copy_node_stat): Likewise.
14138 * tree.h (allocate_decl_uid): Declare.
14139 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
14140 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
14141 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 14142 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
14143 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
14144 (struct heapvar_map): Likewise.
14145 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
14146 heapvar_insert): Likewise.
14147 (make_heapvar_for): Rename to ...
14148 (make_heapvar): ... this. Simplify.
14149 (fake_var_decl_obstack): New global var.
14150 (build_fake_var_decl): New function.
14151 (make_constraint_from_heapvar): Adjust.
14152 (handle_lhs_call): Likewise.
14153 (create_function_info_for): Likewise.
14154 (intra_create_variable_infos): Likewise.
14155 (init_alias_vars): Allocate fake_var_decl_obstack.
14156 (init_alias_heapvars, delete_alias_heapvars): Remove.
14157 (compute_points_to_sets): Do not call init_alias_heapvars.
14158 (ipa_pta_execute): Likewise.
14159 (delete_points_to_sets): Free fake_var_decl_obstack.
14160
526ed6c2
UW
141612011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14162
14163 * config/spu/divmovti4.c (union qword_UTItype): New data type.
14164 (si_from_UTItype, si_to_UTItype): New functions.
14165 (__udivmodti4): Use them to implement type-punning.
14166 * config/spu/multi3.c (union qword_TItype): New data type.
14167 (si_from_TItype, si_to_TItype): New functions.
14168 (__multi3): Use them to implement type-punning.
14169
c187d33c
UW
141702011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14171
14172 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
14173
40982661
JH
141742011-04-27 Jan Hubicka <jh@suse.cz>
14175
14176 * ipa-prop.c (function_insertion_hook_holder): New holder.
14177 (ipa_add_new_function): New function.
200eb7d2
UB
14178 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
14179 Register/deregister holder.
40982661 14180
9aef53ee
RG
141812011-04-27 Richard Guenther <rguenther@suse.de>
14182
14183 PR tree-optimization/48772
200eb7d2 14184 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 14185
f63d806d
RG
141862011-04-27 Richard Guenther <rguenther@suse.de>
14187
14188 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
14189 TARGET_MEM_REF handling.
14190
e1ea7451
NC
141912011-04-27 Nick Clifton <nickc@redhat.com>
14192
9b5db25d
NC
14193 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
14194 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
14195 (REG_CLASS_NAMES): Likewise.
14196 (REG_CLASS_CONTENTS): Likewise.
14197 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14198 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14199 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
14200 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
14201 (EVEN_REGS): New macro. Alias for QUAD_REGS.
14202 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
14203 duplicate register classes.
97d20907 14204 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
14205 (frv_register_move_cost): Likewise.
14206
e1ea7451
NC
14207 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
14208 end of the regno_reg_class array.
14209
5c2f94b4
JJ
142102011-04-27 Jakub Jelinek <jakub@redhat.com>
14211
14212 PR c/48742
14213 * c-typeck.c (build_binary_op): Don't wrap arguments if
14214 int_operands is true.
14215
57a944d7
KK
142162011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
14217
14218 PR target/48767
14219 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
14220 targetm.calls.must_pass_in_stack for void type.
14221
898b8927
JH
142222011-04-26 Jan Hubicka <jh@suse.cz>
14223
14224 * cgraphbuild.c (build_cgraph_edges): Update call
14225 of cgraph_create_edge and cgraph_create_indirect_edge.
14226 * cgraph.c (cgraph_create_edge_including_clones,
14227 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
14228 cgraph_update_edges_for_call_stmt_node): Do not take nest
14229 argument; do not initialize call_stmt_size/time.
14230 (dump_cgraph_node): Do not dump nest.
14231 (cgraph_clone_edge): Do not take loop_nest argument;
14232 do not propagate it; do not clone call_stmt_size/time.
14233 (cgraph_clone_node): Likewise.
14234 (cgraph_create_virtual_clone): Update.
14235 * cgraph.h (struct cgraph_edge): Remove
14236 call_stmt_size/call_stmt_time/loop_nest.
14237 (cgraph_create_edge, cgraph_create_indirect_edge,
14238 cgraph_create_edge_including_clones, cgraph_clone_node): Update
14239 prototype.
14240 * tree-emutls.c (gen_emutls_addr): Update.
14241 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
14242 loop_nest; handle indirect calls, too.
14243 (clone_inlined_nodes): Do not care about updating inline summaries.
14244 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
14245 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
14246 stream call_stmt_size/call_stmt_time/loop_nest.
14247 * ipa-inline.c (edge_badness): Update.
14248 (ipa_inline): dump summaries after inlining.
14249 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 14250 New.
898b8927
JH
14251 (inline_edge_summary): New function.
14252 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
14253 (inline_edge_removal_hook): Handle edge summaries.
14254 (inline_edge_duplication_hook): New hook.
14255 (inline_summary_alloc): Alloc hooks.
14256 (initialize_growth_caches): Do not register removal hooks.
14257 (free_growth_caches); Do not free removal hook.
14258 (dump_inline_edge_summary): New function.
14259 (dump_inline_summary): Use it.
14260 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
14261 (inline_update_callee_summaries): New function.
14262 (inline_merge_summary): Use it.
14263 (do_estimate_edge_time, do_estimate_edge_growth): Update.
14264 (read_inline_edge_summary): New function.
14265 (inline_read_section): Use it.
14266 (write_inline_edge_summary): New function.
14267 (inline_write_summary): Use it.
14268 (inline_free_summary): Free edge new holders.
14269 * tree-inline.c (copy_bb): Update.
14270
ffa03772
JM
142712011-04-26 Jason Merrill <jason@redhat.com>
14272
14273 * tree-eh.c (lower_try_finally_switch): Create the label along with
14274 the CASE_LABEL_EXPR.
14275
6d7b45ad
DM
142762011-04-26 David S. Miller <davem@davemloft.net>
14277 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14278
14279 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
14280 * configure: Regenerate.
14281
df10b6d4
MM
142822011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14283
14284 PR target/48258
14285 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
14286 reduction.
14287 (VEC_reduc): New code iterator and splitters for vector reduction.
14288 (VEC_reduc_name): Ditto.
14289 (VEC_reduc_rtx): Ditto.
14290 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
14291 (reduc_<VEC_reduc_name>_v4sf): Ditto.
14292
14293 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14294 support for extracting SF on VSX.
14295
14296 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
14297 generating xscvspdp.
14298 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
14299 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
14300 double add, minimum, maximum vector reduction.
14301 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
14302 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
14303 optimize double vector reduction.
14304 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
14305
35a5db04
JM
143062011-04-26 Joseph Myers <joseph@codesourcery.com>
14307
14308 * config/fr30/fr30.h (inhibit_libc): Don't define.
14309 * config/m32r/m32r-protos.h: Correct comment.
14310 * config/v850/v850.h (GHS_default_section_names,
14311 GHS_current_section_names): Use tree, not union tree_node *.
14312
2f964ad6
XDL
143132011-04-26 Xinliang David Li <davidxl@google.com>
14314
200eb7d2 14315 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
14316 * c-family/c-opts.c (c_common_handle_option): Set
14317 warn_maybe_uninitialized.
14318 * opts.c (common_handle_option): Ditto.
14319 * common.opt: New option.
14320 * tree-ssa.c (warn_uninit): Add one more parameter.
14321 (warn_uninitialized_var): Pass warning code.
14322 * tree-flow.h: Interface change.
14323
9c7bd91a
RO
143242011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14325
200eb7d2 14326 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
14327 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
14328 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
14329
c2f36e21
RO
143302011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14331
14332 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
14333 * config/mips/mips.opt (mmips-tfile): Remove.
14334
14335 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
14336 mips-tdump reference to ...
200eb7d2 14337 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
14338 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
14339 reference by Tru64 UNIX.
14340
2c9da85b
JJ
143412011-04-26 Jakub Jelinek <jakub@redhat.com>
14342
0c5f6539
JJ
14343 PR debug/48768
14344 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
14345 is error_mark_node, set value to NULL.
14346
2c9da85b
JJ
14347 PR tree-optimization/48734
14348 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
14349 if return value from maybe_fold_*_comparsions isn't something
14350 the code is prepared to handle.
14351
77fa1d54
UB
143522011-04-26 Uros Bizjak <ubizjak@gmail.com>
14353
14354 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
14355 mode check.
14356 (ext_QIreg_nomode_operands): Remove.
14357 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
14358 (*andsi_1): Ditto.
14359 (*andhi_1): Ditto.
14360
0e2a6c2b
AS
143612011-04-26 Andrew Stubbs <ams@codesourcery.com>
14362
14363 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
14364
961562d8
RB
143652011-04-26 Richard Guenther <rguenther@suse.de>
14366
14367 * c-typeck.c (build_unary_op): Do not expand array-refs via
14368 pointer arithmetic. Only adjust qualifiers for function types.
14369
143702011-04-26 Richard Guenther <rguenther@suse.de>
14371
14372 PR middle-end/48694
14373 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
14374 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
14375 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
14376 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 14377
a0d260fc
PC
143782011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
14379
6bec6c98 14380 * doc/extend.texi: Document __underlying_type.
a0d260fc 14381
4d583bb9
SB
143822011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
14383
14384 * config/rs6000/titan.md (automata_option "progress"): Remove.
14385
1f3fcdc3
JL
143862011-04-25 Jeff Law <law@redhat.com>
14387
14388 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
14389
e5b0dad8
JK
143902011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14391
14392 * system.h (ENUM_BITFIELD): Remove.
14393
5157a881 143942011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 14395 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
14396
14397 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
14398 for STORE_FLAG_VALUE==-1 case.
14399
ed4c109e
RS
144002011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
14401
14402 PR target/43804
14403 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
14404 LEGITIMATE_PIC_OPERAND_P.
14405
f3181aa2
JH
144062011-04-24 Jan Hubicka <jh@suse.cz>
14407
14408 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
14409 WPA hack.
77fa1d54
UB
14410 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
14411 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
14412 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
14413 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
14414 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
14415 Sanity check predicate length.
14416 (remap_predicate): Likewise; sanity check jump functions.
14417 (inline_read_section, inline_write_summary): Sanity check
14418 predicate length.
14419
5307cbaa
PC
144202011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
14421
14422 PR other/48748
14423 * doc/extend.texi (Type Traits): Document __is_standard_layout,
14424 __is_literal_type, and __is_trivial; update throughout about
14425 possibly cv-qualified void types.
14426
bebd5f99
GP
144272011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
14428
14429 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
14430 testsuite and make it version agnostic.
14431
7ee28a74
JH
144322011-04-22 Jan Hubicka <jh@suse.cz>
14433
14434 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
14435
16997bc0
JJ
144362011-04-23 Jakub Jelinek <jakub@redhat.com>
14437
14438 PR c/48685
14439 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
14440 to VOID_TYPE even around MODIFY_EXPR.
14441
f94d4ab1
MS
144422011-04-22 Mike Stump <mikestump@comcast.net>
14443
1a84c183 14444 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
14445 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
14446 comment.
14447
632b4f8e
JH
144482011-04-22 Jan Hubicka <jh@suse.cz>
14449
14450 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
14451 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
14452 ipa-prop.c; update all uses.
632b4f8e 14453 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
14454 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
14455 merge summary of inlined function into former caller.
632b4f8e
JH
14456 * ipa-inline.c (max_benefit): Remove.
14457 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
14458 (update_caller_keys): Use
14459 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
14460 (update_callee_keys): Likewise.
14461 (update_all_callee_keys): Likewise.
77fa1d54
UB
14462 (inline_small_functions): Do not collect max_benefit; do not reset
14463 estimated_growth; call free_growth_caches and initialize_growth_caches.
14464 * ipa-inline.h (struct condition, type clause_t, struct predicate,
14465 struct size_time_entry): New structures.
632b4f8e 14466 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
14467 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
14468 and estimated_growth.
632b4f8e
JH
14469 (edge_growth_cache_entry): New structure.
14470 (node_growth_cache, edge_growth_cache): New global vars.
14471 (estimate_growth): Turn into inline.
14472 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
14473 initialize_growth_caches, free_growth_caches): Declare.
14474 (estimate_edge_growth): Rewrite.
14475 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
14476 (reset_node_growth_cache, reset_edge_growth_cache): New inline
14477 functions.
632b4f8e
JH
14478 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
14479 (NUM_CONDITIONS): New constant.
14480 (predicate_conditions): New enum.
14481 (IS_NOT_CONSTANT): New constant.
14482 (edge_removal_hook_holder): New var.
14483 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
14484 (true_predicate, single_cond_predicate, false_predicate,
14485 not_inlined_predicate, add_condition, add_clause, and_predicates,
14486 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
14487 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
14488 evaulate_conditions_for_edge): New functions.
14489 (inline_summary_alloc): Move to heap.
14490 (inline_node_removal_hook): Clear condition and entry vectors.
14491 (inline_edge_removal_hook): New function.
14492 (initialize_growth_caches, free_growth_caches): New function.
14493 (dump_inline_summary): Update.
14494 (edge_execution_predicate): New function.
14495 (will_be_nonconstant_predicate): New function.
14496 (estimate_function_body_sizes): Compute BB and constantness predicates.
14497 (compute_inline_parameters): Do not clear estimated_growth.
14498 (estimate_edge_size_and_time): New function.
14499 (estimate_calls_size_and_time): New function.
14500 (estimate_callee_size_and_time): New function.
14501 (remap_predicate): New function.
14502 (inline_merge_summary): New function.
14503 (do_estimate_edge_time): New function based on...
14504 (estimate_edge_time): ... this one.
14505 (do_estimate_edge_growth): New function.
14506 (do_estimate_growth): New function based on....
14507 (estimate_growth): ... this one.
14508 (inline_analyze_function): Analyze after deciding on jump functions.
14509 (inline_read_section): New function.
14510 (inline_read_summary): Use it.
14511 (inline_write_summary): Write all the new data.
14512 * ipa-prop.c (ipa_get_param_decl_index): Export.
14513 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
14514 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
14515 Declare.
14516 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
14517 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
14518 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
14519 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
14520 cgraph_edge_inlinable_p): Remove.
14521 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
14522 (cgraph_process_new_functions): Update call of
14523 compute_inline_parameters.
632b4f8e 14524
1df5b0db
RG
145252011-04-22 Richard Guenther <rguenther@suse.de>
14526
14527 * tree.c (build_int_cst): Properly create canonicalized integer
14528 constants.
14529 (build_int_cst_type): Remove scary comments.
14530
ae01169c
XDL
145312011-04-22 Xinliang David Li <davidxl@google.com>
14532
14533 * toplev.c (process_options): Enable -Werror=coverage-mismatch
14534 by default when -Wno-error is not specified.
14535 * opts-global.c (decode_options): Remove call to
14536 control_warning_options.
14537
93dfac24
JJ
145382011-04-22 Jakub Jelinek <jakub@redhat.com>
14539
14540 PR tree-optimization/48717
14541 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
14542 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
14543
1b5f5069
JM
145442011-04-22 Joseph Myers <joseph@codesourcery.com>
14545
14546 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
14547 definition where used.
14548
144f4153
JJ
145492011-04-22 Jakub Jelinek <jakub@redhat.com>
14550
14551 PR c/48716
14552 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
14553 TREE_STATIC variables declared inside of some OpenMP construct.
14554
f9fd305b
MJ
145552011-04-22 Martin Jambor <mjambor@suse.cz>
14556
14557 PR middle-end/48585
1d284ec5 14558 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 14559
49819fef
AM
145602011-04-22 Alexander Monakov <amonakov@ispras.ru>
14561
14562 PR c/36750
14563 * c-typeck.c (pop_init_level): Do not warn about initializing
14564 with ` = {0}'.
14565
401f6699
AM
145662011-04-22 Alan Modra <amodra@gmail.com>
14567
14568 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
14569 when returning call_cookie.
14570 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
14571 pointers, to functions with no more vector args than the current
14572 function, and some non-local calls for ABI_V4.
14573 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
14574 sibcall_nonlocal_aix64): Combine to ..
14575 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
14576 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
14577 (sibcall_value_nonlocal_aix<mode>): ..likewise.
14578 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
14579 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
14580 operand.
14581 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
14582 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
14583 sibcall_value_symbolic_64): Delete.
14584
903d1e67
XDL
145852011-04-21 Xinliang David Li <davidxl@google.com>
14586
14587 * cgraph.h: Remove pid.
14588 * cgraph.c: Remove pid.
14589 * value-prof.c (init_node_map): New function.
14590 (del_node_map): New function.
14591 (find_func_by_funcdef_no): New function.
14592 (gimple_ic_transform): Call new function.
14593 * cgraphunit.c (cgraph_finalize_function): Remove pid.
14594 * function.c (get_last_funcdef_no): New function.
14595 * function.h (get_last_funcdef_no): New function.
14596 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
14597 to libgcov function.
14598 (tree-profiling): Call node map init and delete function.
14599
7378e95f
ILT
146002011-04-21 Ian Lance Taylor <iant@google.com>
14601
14602 * godump.c (go_format_type): Use exported Go name for anonymous
14603 field name.
14604
e84a6fcf
NF
146052011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14606
14607 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
14608 Call builtin_function_type_list instead of builtin_function_type.
14609 (UNARY, BINARY, TRINARY, QUAD): Likewise.
14610
4fe058e2
NF
146112011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14612
14613 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
14614 build_function_type_list instead of build_function_type.
14615 Delete variable `endlink'.
14616
1ba0a2d2
NF
146172011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14618
14619 * config/s390/s390.c (s390_init_builtins): Call
14620 build_function_type_list instead of build_function_type.
14621
c0676219
NF
146222011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14623
14624 * config/ia64/ia64.c (ia64_init_builtins): Call
14625 build_function_type_list instead of builtin_function_type.
14626
6ddfda8a
ER
146272011-04-21 Easwaran Raman <eraman@google.com>
14628
3a6448ea 14629 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
14630 (add_stack_var): ...and its reference here...
14631 (expand_stack_vars): ...and here.
14632 (stack_var_cmp): Sort by descending order of size.
14633 (partition_stack_vars): Change heuristic.
1d284ec5 14634 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
14635 (dump_stack_var_partition): Add newline after each partition.
14636
23756963
DA
146372011-04-21 Dimitrios Apostolou <jimis@gmx.net>
14638 Jeff Law <law@redhat.com>
14639
77fa1d54 14640 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
14641 * gengtype.c (matching_file_name_substitute): Likewise.
14642
aa2a43d2
RG
146432011-04-21 Richard Guenther <rguenther@suse.de>
14644
14645 PR lto/48703
1d284ec5 14646 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 14647
4d931f41
EB
146482011-04-21 Eric Botcazou <ebotcazou@adacore.com>
14649
14650 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
14651
f103fa7a
RG
146522011-04-21 Richard Guenther <rguenther@suse.de>
14653
14654 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
14655 file name.
14656
e19f6650
RG
146572011-04-21 Richard Guenther <rguenther@suse.de>
14658
14659 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14660 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
14661 Use DECL_P, not SSA_VAR_P.
14662 (ptr_derefs_may_alias_p): Likewise.
14663 (ptr_deref_may_alias_ref_p_1): Likewise.
14664 (decl_refs_may_alias_p): Likewise.
14665 (refs_may_alias_p_1): Likewise.
14666 (ref_maybe_used_by_call_p_1): Likewise.
14667 (call_may_clobber_ref_p_1): Likewise.
14668 (indirect_ref_may_alias_decl_p): Assume indirect refrences
14669 are either MEM_REF or TARGET_MEM_REF.
14670 (indirect_refs_may_alias_p): Likewise.
14671 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
14672 for MEM_EXPR of indirect calls.
14673
9d1831bb
TG
146742011-04-21 Tristan Gingold <gingold@adacore.com>
14675
14676 * vmsdbgout.c (write_srccorr): Compute file length from the string.
14677 (dst_file_info_struct): Remove flen field.
14678 (lookup_filename): Remove code that set flen field.
14679
f199c029
TG
146802011-04-21 Tristan Gingold <gingold@adacore.com>
14681
14682 * config/ia64/ia64.c (ia64_start_function): Add a guard.
14683
2894086e
UB
146842011-04-21 Uros Bizjak <ubizjak@gmail.com>
14685
14686 PR target/48708
14687 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
14688 vec_extract and vec_concat for non-SSE4_1 targets.
14689
53f94a5c
RG
146902011-04-21 Richard Guenther <rguenther@suse.de>
14691
14692 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
14693 return statements.
14694
f0dca5ba
JM
146952011-04-21 Joseph Myers <joseph@codesourcery.com>
14696
14697 * config/i386/cygming.h (union tree_node, TREE): Don't define or
14698 undefine.
14699 (FILE): Don't undefine.
14700
984514ac
JM
147012011-04-21 Joseph Myers <joseph@codesourcery.com>
14702
14703 * config/alpha/alpha.c (struct machine_function): Use rtx, not
14704 struct rtx_def *.
14705 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
14706 struct rtx_def *.
14707 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 14708 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
14709 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
14710 rtx_def *.
14711 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
14712 definitions where used.
14713 * config/microblaze/microblaze.h (struct microblaze_args): Use
14714 rtx, not struct rtx_def *.
14715 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
14716 rtx_def *.
2894086e
UB
14717 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
14718 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
14719 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
14720 not struct rtx_def *.
14721 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
14722 struct rtx_def *.
14723 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
14724 rtx_def *.
2894086e 14725 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 14726
0b5a2724
RS
147272011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14728
14729 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
14730 operand_equal_p to compare DR_BASE_ADDRESSes.
14731 (vect_check_interleaving): Likewise.
14732
4b18d683
RS
147332011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14734
14735 PR target/46329
14736 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
14737 for all Neon struct constants.
14738
1a627b35
RS
147392011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14740
14741 * target.def (legitimate_constant_p): New hook.
14742 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
14743 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
14744 * doc/tm.texi: Regenerate.
14745 * hooks.h (hook_bool_mode_rtx_true): Declare.
14746 * hooks.c (hook_bool_mode_rtx_true): Define.
14747 * system.h (LEGITIMATE_CONSTANT_P): Poison.
14748 * calls.c (precompute_register_parameters): Replace uses of
14749 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
14750 (emit_library_call_value_1): Likewise.
14751 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
14752 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
14753 * ira-costs.c (scan_one_insn): Likewise.
14754 * recog.c (general_operand, immediate_operand): Likewise.
14755 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
14756 * reload1.c (init_eliminable_invariants): Likewise.
14757
14758 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
14759 mode argument.
14760 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
14761 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
14762 argument.
14763 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14764 * config/alpha/predicates.md (input_operand): Update call to
14765 alpha_legitimate_constant_p.
14766
14767 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
14768 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
14769 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
14770 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14771 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
14772 (arm_legitimate_constant_p): New functions.
14773 (arm_cannot_force_const_mem): Make static.
14774
14775 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
14776
14777 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
14778 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
14779 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
14780 instead of bfin_legitimate_constant_p.
14781 (bfin_legitimate_constant_p): Make static. Add a mode argument.
14782 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14783
14784 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
14785
14786 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
14787
14788 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
14789 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
14790 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14791 (frv_legitimate_constant_p): Make static. Add a mode argument.
14792
14793 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
14794 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
14795 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
14796
14797 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
14798 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
14799 * config/i386/i386.c (legitimate_constant_p): Rename to...
14800 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
14801 argument.
14802 (ix86_cannot_force_const_mem): Update accordingly.
14803 (ix86_legitimate_address_p): Likewise.
14804 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14805 * config/i386/i386.md: Update commentary.
14806
14807 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
14808 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
14809 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14810 (ia64_legitimate_constant_p): Make static. Add a mode argument.
14811
14812 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
14813
14814 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
14815 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
14816 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14817 (lm32_legitimate_constant_p): Make static. Add a mode argument.
14818
14819 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
14820 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
14821 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
14822
14823 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
14824 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14825 (m32r_legitimate_constant_p): New function.
14826
14827 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
14828 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
14829 LEGITIMATE_CONSTANT_P.
14830 (LEGITIMATE_CONSTANT_P): Delete.
14831 * config/m68k/m68k.c (m68k_expand_prologue): Call
14832 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
14833 (m68k_legitimate_constant_p): New function.
14834 * config/m68k/m68k.md: Update comments.
14835
14836 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
14837 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14838 (mcore_legitimate_constant_p): New function.
14839
14840 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
14841 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
14842 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
14843 Add a mode argument.
14844 (mep_legitimate_address): Update accordingly.
14845 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14846
14847 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
14848 Delete.
14849 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
14850 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
14851 static. Check OP's mode for VOIDmode.
14852 (microblaze_legitimate_constant_p): New function.
14853 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14854
14855 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
14856 * config/mips/mips.c (mips_legitimate_constant_p): New function.
14857 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
14858 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14859 * config/mips/predicates.md: Update comments.
14860
14861 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
14862 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
14863 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14864 (mmix_legitimate_constant_p): Make static, return a bool, and take
14865 a mode argument.
14866 (mmix_print_operand_address): Update accordingly.
14867
14868 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
14869 Delete.
14870 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
14871 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
14872 static. Add a mode argument.
1a627b35
RS
14873 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14874
14875 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
14876
14877 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
14878 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14879 (pa_legitimate_constant_p): New function.
14880
14881 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
14882
14883 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
14884 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14885 (pdp11_legitimate_constant_p): New function.
14886
14887 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
14888 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14889 (rs6000_legitimate_constant_p): New function.
14890
14891 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
14892 (rx_legitimate_constant_p): ...this.
14893 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
14894 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
14895 (rx_legitimate_constant_p): ...this.
14896 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14897 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
14898
14899 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
14900 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
14901 * config/s390/s390.c (legitimate_constant_p): Rename to...
14902 (s390_legitimate_constant_p): ...this. Make static, return a bool,
14903 and add a mode argument.
14904 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14905
14906 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
14907
14908 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
14909 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14910 (sh_legitimate_constant_p): New function.
14911
14912 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
14913 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
14914 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14915 (legitimate_constant_p): Rename to...
14916 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
14917 argument.
14918 (constant_address_p): Update accordingly.
14919
14920 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
14921 argument and return a bool.
14922 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
14923 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14924 (spu_legitimate_constant_p): Add a mode argument and return a bool.
14925 (spu_rtx_costs): Update accordingly.
14926 * config/spu/predicates.md (vec_imm_operand): Likewise.
14927
14928 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
14929
14930 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
14931 * config/v850/v850.c (v850_legitimate_constant_p): New function.
14932 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14933
14934 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
14935 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
14936 * config/vax/vax.c (legitimate_constant_p): Likewise.
14937
14938 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
14939 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14940 (xtensa_legitimate_constant_p): New function.
14941
fbbf66e7
RS
149422011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14943
14944 * target.def (cannot_force_const_mem): Add a mode argument.
14945 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
14946 * doc/tm.texi: Regenerate.
14947 * hooks.h (hook_bool_mode_rtx_false): Declare.
14948 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
14949 (hook_bool_mode_const_rtx_true): Likewise.
14950 (hook_bool_mode_rtx_false): New function.
14951 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
14952 to be non-VOID. Update call to cannot_force_const_mem.
14953 (find_reloads): Update accordingly.
14954 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
14955 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
14956 argument.
14957 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
14958 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
14959 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
14960 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
14961 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
14962 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
14963 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
14964 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14965 (m68k_cannot_force_const_mem): ...this new function.
14966 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
14967 argument.
14968 (mips_const_insns, mips_legitimize_const_move): Update calls.
14969 (mips_secondary_reload_class): Likewise.
14970 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14971 (pa_cannot_force_const_mem): ...this new function.
2894086e 14972 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
14973 (rs6000_cannot_force_const_mem): ...this new function.
14974 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
14975 argument.
14976 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
14977 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
14978 to...
14979 (xtensa_cannot_force_const_mem): ...this new function.
14980
b861891b
NF
149812011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14982
14983 * config/mips/mips.c (mips16_build_function_stub): Call
14984 build_function_type_list instead of build_function_type.
14985 (mips16_build_call_stub): Likewise.
14986
34149ed5
NF
149872011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14988
14989 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
14990 instead of build_function_type.
14991
12526412
NF
149922011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14993
14994 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
14995 instead of build_function_type.
14996
3b84d61f
UB
149972011-04-20 Uros Bizjak <ubizjak@gmail.com>
14998
14999 PR target/48678
15000 * config/i386/i386.md (insv): Change operand 0 constraint to
15001 "register_operand". Change operand 1 and 2 constraint to
15002 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
15003 * config/i386/sse.md (sse4_1_pinsrb): Export.
15004 (sse2_pinsrw): Ditto.
15005 (sse4_1_pinsrd): Ditto.
15006 (sse4_1_pinsrq): Ditto.
15007 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
15008 * config/i386/i386.c (ix86_expand_pinsr): New.
15009
4a25752b
ER
150102011-04-20 Easwaran Raman <eraman@google.com>
15011
15012 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
15013 containing union type only with -fstrict-aliasing.
15014
04695783
JM
150152011-04-20 Jim Meyering <meyering@redhat.com>
15016
15017 Remove useless if-before-free tests.
15018 * calls.c (expand_call, save_area): Likewise.
15019 * cfgcleanup.c (try_forward_edges): Likewise.
15020 * collect2.c (collect_execute): Likewise.
15021 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
15022 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
15023 * coverage.c (coverage_checksum_string): Likewise.
15024 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
15025 * cselib.c (cselib_init): Likewise.
15026 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
15027 (df_set_clean_cfg): Likewise.
15028 * function.c (free_after_compilation): Likewise.
15029 * gcc.c (do_spec_1, main): Likewise.
15030 * gcov.c (create_file_names): Likewise.
15031 * gensupport.c (identify_predicable_attribute): Likewise.
15032 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
15033 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
15034 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
15035 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
15036 * ipa-pure-const.c (local_pure_const): Likewise.
15037 * ipa-reference.c (propagate): Likewise.
15038 * ira-costs.c (free_ira_costs): Likewise.
15039 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
15040 * matrix-reorg.c (mat_free): Likewise.
15041 * prefix.c (get_key_value): Likewise.
15042 * profile.c (compute_value_histograms): Likewise.
15043 * reload1.c (free_reg_equiv): Likewise.
15044 * sched-deps.c (free_deps): Likewise.
15045 * sel-sched-ir.c (fence_clear): Likewise.
15046 * sese.c (set_rename, if_region_set_false_region): Likewise.
15047 * tree-data-ref.c (free_rdg): Likewise.
15048 * tree-eh.c (lower_try_finally): Likewise.
15049 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
15050 * tree-ssa-live.c (delete_var_map): Likewise.
15051 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
15052 * tree-ssa-pre.c (phi_trans_add): Likewise.
15053
6788475a
JJ
150542011-04-20 Jakub Jelinek <jakub@redhat.com>
15055
15056 PR tree-optimization/48611
15057 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
15058 beyond ERT_MUST_NOT_THROW region.
15059
0eda4033
CM
150602011-04-20 Catherine Moore <clm@codesourcery.com>
15061
15062 * config/mips/mips.opt (mfix-24k): New.
15063 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
15064 * config/mips/mips.md (length): Increase by 4 for stores if
15065 fixing 24K errata.
15066 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
15067 all noreorder if fixing 24K errata.
15068 * doc/invoke.texi: Document mfix-24k.
15069
01475747
CLT
150702011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
15071
15072 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 15073 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 15074
bc2c1a60
AS
150752011-04-20 Andrew Stubbs <ams@codesourcery.com>
15076
15077 * config/arm/arm.c (arm_gen_constant): Move movw support ....
15078 (const_ok_for_op): ... to here.
15079
583722ee
KT
150802011-04-20 Kai Tietz <ktietz@redhat.com>
15081
2894086e
UB
15082 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
15083 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 15084
422c0989
AS
150852011-04-20 Andrew Stubbs <ams@codesourcery.com>
15086
15087 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
15088
d7978bff
RG
150892011-04-20 Richard Guenther <rguenther@suse.de>
15090
15091 PR tree-optimization/47892
15092 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
15093 are if-convertible.
15094
818412ba
EB
150952011-04-20 Eric Botcazou <ebotcazou@adacore.com>
15096
15097 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
15098
b501ce4e
TG
150992011-04-20 Tristan Gingold <gingold@adacore.com>
15100
15101 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
15102
516edfdd
GJL
151032011-04-20 Georg-Johann Lay <avr@gjlay.de>
15104
15105 PR target/18145
15106
15107 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
15108 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
15109 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
15110 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
15111 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
15112
15113 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
15114 New prototype.
15115
15116 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
15117 (avr_asm_named_section, avr_asm_output_aligned_common,
15118 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
15119 New functions to update...
15120 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
15121 (avr_asm_init_sections): Overwrite section callbacks for
15122 data_section, bss_section.
15123 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
15124 from here to...
15125 (avr_file_end): ...here.
15126
dafc9511
RG
151272011-04-20 Richard Guenther <rguenther@suse.de>
15128
15129 PR middle-end/48695
15130 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 15131 objects and types here. Adjust for their offset before comparing.
dafc9511 15132
1da0876c
RS
151332011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15134
15135 * tree-vect-stmts.c (vectorizable_store): Only chain one related
15136 statement per copy.
15137
25583c4f
RS
151382011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15139
15140 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
15141 (GIMPLE_H): Include $(INTERNAL_FN_H).
15142 (OBJS-common): Add internal-fn.o.
15143 (internal-fn.o): New rule.
15144 * internal-fn.def: New file.
15145 * internal-fn.h: Likewise.
15146 * internal-fn.c: Likewise.
15147 * gimple.h: Include internal-fn.h.
15148 (GF_CALL_INTERNAL): New gf_mask.
15149 (gimple_statement_call): Put fntype into a union with a new
15150 internal_fn field.
15151 (gimple_build_call_internal): Declare.
15152 (gimple_build_call_internal_vec): Likewise.
15153 (gimple_call_same_target_p): Likewise.
15154 (gimple_call_internal_p): New function.
15155 (gimple_call_internal_fn): Likewise.
15156 (gimple_call_fntype): Return null for internal calls.
15157 (gimple_call_set_fntype): Assert that the function is not internal.
15158 (gimple_call_set_fn): Likewise.
15159 (gimple_call_set_fndecl): Likewise.
15160 (gimple_call_set_internal_fn): New function.
15161 (gimple_call_addr_fndecl): Handle null functions.
15162 (gimple_call_return_type): Likewise null types.
15163 * gimple.c (gimple_build_call_internal_1): New function.
15164 (gimple_build_call_internal): Likewise.
15165 (gimple_build_call_internal_vec): Likewise.
15166 (gimple_call_same_target_p): Likewise.
15167 (gimple_call_flags): Handle calls to internal functions.
15168 (gimple_call_fnspec): New function.
15169 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
15170 (gimple_has_side_effects): Handle null functions.
15171 (gimple_rhs_has_side_effects): Likewise.
15172 (gimple_call_copy_skip_args): Handle calls to internal functions.
15173 * cfgexpand.c (expand_call_stmt): Likewise.
15174 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
15175 * gimple-fold.c (gimple_fold_call): Handle null functions.
15176 (gimple_fold_stmt_to_constant_1): Don't fold
15177 calls to internal functions.
15178 * gimple-low.c (gimple_check_call_args): Handle calls to internal
15179 functions.
15180 * gimple-pretty-print.c (dump_gimple_call): Likewise.
15181 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
15182 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
15183 (do_warn_unused_result): Likewise.
15184 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
15185 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
15186 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
15187 the target of a call.
15188 (initialize_hash_element): Update accordingly.
15189 (hashable_expr_equal_p): Use gimple_call_same_target_p.
15190 (iterative_hash_hashable_expr): Handle calls to internal functions.
15191 (print_expr_hash_elt): Likewise.
15192 * tree-ssa-pre.c (can_value_number_call): Likewise.
15193 (eliminate): Handle null functions.
15194 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
15195 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
15196 (find_func_aliases): Likewise.
15197 * value-prof.c (gimple_ic_transform): Likewise.
15198 (gimple_indirect_call_to_profile): Likewise.
15199 * lto-streamer-in.c (input_gimple_stmt): Likewise.
15200 * lto-streamer-out.c (output_gimple_stmt): Likewise.
15201
1a3118e9
JH
152022011-04-19 Jan Hubicka <jh@suse.cz>
15203
15204 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
15205 * ipa-inline.c (inline_small_functions): Compute summaries first,
15206 populate heap later.
1a3118e9 15207
fee8b6da
JH
152082011-04-19 Jan Hubicka <jh@suse.cz>
15209
15210 * cgraph.h (save_inline_function_body): Remove.
15211 * ipa-inline-transform.c: New file, broke out of...
15212 * ipa-inline.c: ... this one; Update toplevel comment.
15213 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
15214 make global.
15215 (update_noncloned_frequencies): Move to ipa-inline-transform.c
15216 (cgraph_mark_inline_edge): Rename to inline_call; move to
15217 ipa-inline-transform.c.
15218 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
15219 move to ipa-inline-transform.c
15220 (recursive_inlining, inline_small_functions, flatten_function,
15221 ipa_inline, inline_always_inline_functions,
15222 early_inline_small_functions): Update.
15223 (inline_transform): Move to ipa-inline-transform.c.
15224 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
15225 Declare.
15226 * Makefile.in (ipa-inline-transform.o): New file.
15227 * cgraphunit.c (save_inline_function_body): Move to
15228 ipa-inline-transform.c
15229
f0679612
DD
152302011-04-19 DJ Delorie <dj@redhat.com>
15231
15232 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
15233 registers if we already know there aren't any.
15234 (m32c_emit_epilogue): Don't emit a barrier here.
15235 (m32c_emit_eh_epilogue): Likewise.
15236 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
15237 operands at expand time.
15238 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
15239 int" wchar type.
15240 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
15241 duplicates. Provide aliases instead.
15242 * config/m32c/prologue.md (eh_return): Emit a barrier here.
15243 (eh_epilogue): Add a "(return)" here as a hint to other parts of
15244 the compiler.
15245
32257ddc
AS
152462011-04-19 Anatoly Sokolov <aesok@post.ru>
15247
15248 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
15249 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
15250 (general_or_i64_p, sparc_register_move_cost): New function.
15251
60bea929
RO
152522011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15253
15254 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 15255 Add lynx, mipssde. Sort table.
60bea929 15256
444b3995 152572011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 15258
9d12f71a
EB
15259 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
15260 not negative.
444b3995 15261
d708ce50
JJ
152622011-04-19 Jakub Jelinek <jakub@redhat.com>
15263
15264 PR target/48678
15265 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
15266 is a SUBREG with non-MODE_INT mode inside of it.
15267
49c471e3
MJ
152682011-04-19 Martin Jambor <mjambor@suse.cz>
15269
15270 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
15271 also according to actual contants.
15272 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
15273 (gimple_fold_call): Use it.
15274 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
15275
0004f992
MJ
152762011-04-19 Martin Jambor <mjambor@suse.cz>
15277
15278 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
15279 non-pointer assignments.
15280
40591473
MJ
152812011-04-19 Martin Jambor <mjambor@suse.cz>
15282
15283 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
15284 account anc_offset and otr_type from the indirect edge info.
15285 * ipa-prop.c (get_ancestor_addr_info): New function.
15286 (compute_complex_ancestor_jump_func): Assignment analysis moved to
15287 get_ancestor_addr_info, call it.
15288 (ipa_note_param_call): Do not initialize information about polymorphic
15289 calls, return the indirect call graph edge. Remove the last
15290 parameter, adjust all callers.
15291 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
15292 parameters. Initialize polymorphic information in the indirect edge.
15293
abe36b81
EB
152942011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15295
15296 PR lto/48148
15297 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
15298 the types if they have different enumeration identifiers.
15299
e6416b30
JH
153002011-04-19 Jan Hubicka <jh@suse.cz>
15301
15302 * cgraph.h (cgraph_optimize_for_size_p): Declare.
15303 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
15304 * predict.c (cgraph_optimize_for_size_p): Break out from ...
15305 (optimize_function_for_size_p) ... here.
15306
d39132ea
RG
153072011-04-19 Richard Guenther <rguenther@suse.de>
15308
15309 PR lto/48207
15310 * tree.c (free_lang_data): Do not reset the decl-assembler-name
15311 langhook.
15312
ff7037dc
EB
153132011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15314
15315 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
15316 if DECL_NO_INLINE_WARNING_P is set on the function.
15317
c1ee2892
BS
153182011-04-19 Bernd Schmidt <bernds@codesourcery.com>
15319
15320 PR fortran/47976
15321 * reload1.c (inc_for_reload): Return void. All callers changed.
15322 (emit_input_reload_insns): Don't try to delete previous output
15323 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
15324
153252011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
15326
15327 * gengtype.h: Updated copyright year.
15328 (struct input_file_st): Add inpisplugin field.
15329 (type_fileloc): New function.
15330 * gengtype.c
15331 (write_typed_struct_alloc_def): Add gcc_assert.
15332 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
15333 (write_typed_alloc_defns): Don't output for plugin files.
15334 (input_file_by_name): Clear inpisplugin field.
15335 (main): Set inpisplugin field for plugin files.
15336
897e0a89
NP
153372011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
15338
15339 * gengtype-state.c (string_eq): New.
15340 (read_state): Use string_eq instead of strcmp when creating the
15341 state_ident_tab.
15342
363ee90e
WG
153432011-04-19 Wei Guozhi <carrot@google.com>
15344
15345 PR target/47855
15346 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
15347 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
15348 linkage.
15349 * config/arm/constraints.md (Uu): New constraint.
15350 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
15351
18a24fed
TG
153522011-04-19 Tristan Gingold <gingold@adacore.com>
15353
15354 * config.gcc (-*-*-*vms): Added.
15355 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
15356 definitions moved.
15357 * config/vms/vms-ld.c: New file.
15358 * config/vms/vms-ar.c: New file.
15359 * config/vms/t-vmsnative: New file.
15360
1c13f168
XDL
153612011-04-18 Xinliang David Li <davidxl@google.com>
15362
15363 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
15364
84825707
JJ
153652011-04-18 Jakub Jelinek <jakub@redhat.com>
15366
15367 PR middle-end/48661
15368 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
15369 if TREE_TYPE (v) is non-NULL.
15370
15371 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
15372 gimple_get_virt_mehtod_for_binfo.
15373 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
15374 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
15375 callers.
15376 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15377
7d4f8d02 153782011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
15379 Steve Ellcey <sje@cup.hp.com>
15380
7d4f8d02
EB
15381 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
15382 use its mode as source mode if it isn't VOIDmode.
7254cb57 15383
474e8e70
DCR
153842011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
15385
15386 * doc/passes.texi: Fill crossref nodes.
15387
cff41484
JM
153882011-04-18 Jim Meyering <meyering@redhat.com>
15389
7d4f8d02 15390 Fix doubled-word typos in comments and strings
cff41484
JM
15391 * config/alpha/vms-unwind.h: s/for for/for/
15392 * config/arm/unwind-arm.h: Likewise.
15393 * config/microblaze/microblaze.c: Likewise.
15394 * config/sh/constraints.md: s/in in/in/
15395 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
15396
f60c2554
UB
153972011-04-18 Uros Bizjak <ubizjak@gmail.com>
15398
15399 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
15400 (AVX_FLOAT_MODE_P): Ditto.
15401 (AVX128_VEC_FLOAT_MODE_P): Ditto.
15402 (AVX256_VEC_FLOAT_MODE_P): Ditto.
15403 (AVX_VEC_FLOAT_MODE_P): Ditto.
15404 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
15405 (UNSPEC_MASKSTORE): Ditto.
15406 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
15407 Merge from <sse>_movmsk<ssemodesuffix> and
15408 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
15409 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
15410 iterator.
15411 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
15412 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
15413 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
15414
09a2806f
JH
154152011-04-18 Jan Hubicka <jh@suse.cz>
15416
8a8dccb2
JH
15417 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
15418
09a2806f
JH
15419 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
15420 (want_inline_function_called_once_p): Break out the logic from
15421 ipa_inline.
15422 (edge_badness): Ensure that profile is not misupdated.
15423 (lookup_recursive_calls): Prioritize by call frequencies.
15424 (inline_small_functions): Move program size estimates here;
15425 actually process whole queue even when unit growth has been
15426 met. (to properly compute inline_failed reasons and for the
f60c2554 15427 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
15428 (ipa_inline): Remove unit summary code; first inline hot calls
15429 of functions called once, cold calls next.
15430 (order, nnodes): Remove unused variables.
15431 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
15432 (GTFILES): Remove ipa-inline.c
15433 * sel-sched.c (fill_insns): Silence uninitialized var warning.
15434
3eea52ef
EB
154352011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15436
15437 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
15438
229a1c59 154392011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 15440 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
15441
15442 * arm.c (neon_builtin_type_bits): Remove.
15443 (typedef enum neon_builtin_mode): New.
15444 (T_MAX): Don't define.
15445 (typedef enum neon_builtin_datum): Remove bits, codes[],
15446 num_vars and base_fcode. Add mode, code and fcode.
15447 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
15448 VAR10): Change accordingly.
15449 (neon_builtin_data[]): Change accordingly
15450 (arm_init_neon_builtins): Change accordingly.
15451 (neon_builtin_compare): Remove.
15452 (locate_neon_builtin_icode): Remove.
15453 (arm_expand_neon_builtin): Change accordingly.
15454
15455 * arm.h (enum arm_builtins): Move to ...
15456 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
15457
15458 * arm.c (arm_builtin_decl): Declare.
15459 (TARGET_BUILTIN_DECL): Define.
15460 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
15461 (arm_builtin_decls[]): New.
15462 (arm_init_neon_builtins): Store builtin declarations in
15463 arm_builtin_decls[].
15464 (arm_init_tls_builtins): Likewise.
15465 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
15466 (arm_builtin_decl): New.
15467
75e802cc
RG
154682011-04-18 Richard Guenther <rguenther@suse.de>
15469
15470 * tree.c (upper_bound_in_type): Build properly canonicalized
15471 INTEGER_CSTs.
15472 (lower_bound_in_type): Likewise.
15473
3b45a007
RG
154742011-04-18 Richard Guenther <rguenther@suse.de>
15475
15476 * gimple.h (gimple_call_addr_fndecl): New function.
15477 (gimple_call_fndecl): Use it.
15478 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
15479 for direct calls.
15480 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
15481 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
15482
d25a79ea
RG
154832011-04-18 Richard Guenther <rguenther@suse.de>
15484
15485 PR middle-end/48650
15486 * tree.c (build_string): STRING_CST is now derived from tree_typed.
15487
7d5fc814
EB
154882011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15489
15490 PR lto/48492
15491 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
15492 DECL_IN_CONSTANT_POOL without RTL.
15493
7e7cfcf6
UW
154942011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
15495 Ira Rosen <ira.rosen@linaro.org>
15496
15497 PR target/48252
15498 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
15499 to match neon_vzip/vuzp/vtrn_internal.
15500 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
15501 outputs explicitly dependent on both inputs.
15502 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
15503
49eab32e
JJ
155042011-04-18 Jakub Jelinek <jakub@redhat.com>
15505
15506 PR tree-optimization/48616
15507 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
15508 whether the shift is by scalar or vector based on whether all SLP
15509 scalar stmts have the same rhs.
15510
e54170f4
CLT
155112011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
15512
15513 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
15514 memory operands.
15515
b14ee6c9
RS
155162011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
15517
269e0e18 15518 PR target/43700
b14ee6c9
RS
15519 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
15520 registers.
15521
10158cd3
JH
155222011-04-17 Jan Hubicka <jh@suse.cz>
15523
15524 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
15525 * cgrpahunit.c (cgraph_finalize_function): Do not set
15526 finalized_by_frontend.
10158cd3
JH
15527 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15528 finalized_by_frontend.
15529
2e9bb6ba
JH
155302011-04-17 Jan Hubicka <jh@suse.cz>
15531
15532 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
15533 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
15534 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
15535 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
15536 method.
2e9bb6ba
JH
15537 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
15538 gimple-fold.c
15539 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
15540
beb628e1
EB
155412011-04-17 Eric Botcazou <ebotcazou@adacore.com>
15542
15543 PR lto/48538
15544 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
15545 is non-null before accessing it.
15546 (input_cgraph): Remove trailing spaces.
15547
3e2fdd24
RE
155482011-04-17 Revital Eres <revital.eres@linaro.org>
15549
15550 * params.def (sms-min-sc): New param flag.
15551 * modulo-sched.c (sms_schedule): Use it.
15552 * doc/invoke.texi (sms-min-sc): Document it.
15553
4c0f7679
JH
155542011-04-17 Jan Hubicka <jh@suse.cz>
15555
15556 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
15557 present, also set gimple_call_set_cannot_inline.
15558 * ipa-inline.c: Update toplevel comment.
15559 (MAX_TIME): Remove.
15560 (cgraph_clone_inlined_nodes): Fix linebreaks.
15561 (cgraph_check_inline_limits): Restructure to ...
15562 (caller_growth_limits): ... this one; be more tolerant
15563 on growth in nested inline chains; add explanatory comment;
15564 fix stack accounting thinko introduced by previous patch.
15565 (cgraph_default_inline_p): Remove.
15566 (report_inline_failed_reason): New function.
15567 (can_inline_edge_p): New function.
15568 (can_early_inline_edge_p): New function.
15569 (leaf_node_p): Move upwards in file.
15570 (want_early_inline_function_p): New function.
15571 (want_inline_small_function_p): New function.
15572 (want_inline_self_recursive_call_p): New function.
15573 (cgraph_edge_badness): Rename to ...
15574 (edge_badness) ... this one; fix linebreaks.
15575 (update_edge_key): Update call of edge_baddness; add
15576 detailed dump about queue updates.
15577 (update_caller_keys): Use can_inline_edge_p and
15578 want_inline_small_function_p.
15579 (cgraph_decide_recursive_inlining): Rename to...
15580 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
15581 want_inline_self_recursive_call_p; simplify and remove no longer
15582 valid FIXME.
4c0f7679
JH
15583 (cgraph_set_inline_failed): Remove.
15584 (add_new_edges_to_heap): Use can_inline_edge_p and
15585 want_inline_small_function_p.
15586 (cgraph_decide_inlining_of_small_functions): Rename to ...
15587 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
15588 can/want predicates; cleanup debug ouput; work edges till fibheap
15589 is exhausted and do not stop once unit growth is reached; remove
15590 later loop processing remaining edges.
4c0f7679
JH
15591 (cgraph_flatten): Rename to ...
15592 (flatten_function): ... this one; use can_inline_edge_p
15593 and can_early_inline_edge_p predicates.
15594 (cgraph_decide_inlining): Rename to ...
15595 (ipa_inline): ... this one; remove unreachable nodes before
15596 inlining functions called once; simplify the pass.
15597 (cgraph_perform_always_inlining): Rename to ...
15598 (inline_always_inline_functions): ... this one; use
f60c2554 15599 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
15600 (cgraph_decide_inlining_incrementally): Rename to ...
15601 (early_inline_small_functions): ... this one; simplify
15602 using new predicates; cleanup; make dumps prettier.
15603 (cgraph_early_inlining): Rename to ...
15604 (early_inliner): newer inline regular functions into always-inlines;
15605 fix updating of call stmt summaries.
15606 (pass_early_inline): Update for new names.
15607 (inline_transform): Fix formating.
15608 (gate_cgraph_decide_inlining): Rename to ...
15609 (pass_ipa_inline): ... this one.
15610 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
15611 * ipa-inline-analysis.c (dump_inline_summary): Update.
15612 (compute_inline_parameters): Do not compute disregard_inline_limits;
15613 look for mismatching arguments.
15614 (estimate_growth): Fix handlig of non-trivial self recursion.
15615 (inline_read_summary): Do not read info->disregard_inline_limits.
15616 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
15617 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
15618 and move all checks into can_inline_edge_p predicate; re-enable code
15619 comparing optimization levels.
4c0f7679
JH
15620 (expand_call_inline): Do not test inline_forbidden_into_p.
15621 * Makefile.in (ipa-inline.o): Update arguments.
15622
54333b7c
RE
156232011-04-17 Revital Eres <revital.eres@linaro.org>
15624
15625 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
15626
42c2bf92
RE
156272011-04-17 Revital Eres <revital.eres@linaro.org>
15628
15629 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
15630
b183e9e0
MM
156312011-04-17 Michael Matz <matz@suse.de>
15632
15633 PR tree-optimization/48622
15634 PR lto/48645
15635 * ipa-inline-analysis.c (inline_read_summary): Read size/time
15636 in same order as they're written.
15637
b8a17fa2
JDA
156382011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15639
15640 * config/pa/predicates.md: Reorganize and simplify predicates.
15641 Eliminate duplicate code checks.
15642 (arith_operand): Rename to arith14_operand
15643 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
15644 * config/pa/pa.md: Use renamed operands.
15645 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
15646 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
15647 arith11_operand, adddi3_operand, indexed_memory_operand,
15648 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
15649 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
15650 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
15651 move_dest_operand, move_src_operand, prefetch_cc_operand,
15652 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
15653 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
15654 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
15655 div_operand, int5_operand, movb_comparison_operator,
15656 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
15657 arith_double_operand, ireg_operand, lhs_lshift_operand,
15658 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
15659 integer_store_memory_operand): Likewise.
15660 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
15661 (integer_store_memory_operand, read_only_operand,
15662 function_label_operand, borx_reg_operand,
15663 non_hard_reg_operand): Likewise.
15664 (eq_neq_comparison_operator): Delete unused operator.
15665 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
15666 function_label_operand.
15667 (emit_move_sequence): Likewise.
15668
8dfb9f16
UB
156692011-04-16 Uros Bizjak <ubizjak@gmail.com>
15670
15671 * config/i386/sse.md (sseunpackmode): New mode attribute.
15672 (ssepackmode): Ditto.
15673 (vec_pack_trunc_<mode>): Macroize expander from
15674 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
15675 (vec_unpacks_lo_<mode>): Macroize expander from
15676 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15677 (vec_unpacks_hi_<mode>): Macroize expander from
15678 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15679 (vec_unpacku_lo_<mode>): Macroize expander from
15680 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15681 (vec_unpacku_hi_<mode>): Macroize expander from
15682 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15683 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
15684 ix86_expand_sse4_unpack.
15685 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
15686
e7f23018
JH
156872011-04-16 Jan Hubicka <jh@suse.cz>
15688
15689 * cgraphbuild.c: Include ipa-inline.h.
15690 (reset_inline_failed): Use initialize_inline_failed.
15691 * cgraph.c: Include ipa-inline.h.
15692 (cgraph_create_node_1): Do not initialize estimated_growth.
15693 (initialize_inline_failed): More to ipa-inline-analysis.c
15694 (dump_cgraph_node): Do not dump inline flags.
15695 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
15696 and disregard_inline_limits flags.
15697 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
15698 time, size, estimated_growth.
8dfb9f16
UB
15699 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
15700 Update.
e7f23018
JH
15701 * cgraphunit.c (cgraph_decide_is_function_needed): Use
15702 DECL_DISREGARD_INLINE_LIMITS.
15703 (cgraph_analyze_function): Do not initialize
15704 node->local.disregard_inline_limits.
15705 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15706 inlinable, versionable and disregard_inline_limits.
15707 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
15708 cgraph_check_inline_limits, cgraph_default_inline_p,
15709 cgraph_edge_badness, update_caller_keys, update_callee_keys,
15710 add_new_edges_to_heap): Update.
15711 (cgraph_decide_inlining_of_small_function): Update; set
15712 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
15713 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
15714 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
15715 * ipa-inline.h (inline_summary): Add inlinable, versionable,
15716 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
15717 time, size and estimated_growth parameters.
e7f23018
JH
15718 (estimate_edge_growth): Update.
15719 (initialize_inline_failed): Declare.
15720 * ipa-split.c: Include ipa-inline.h
15721 (execute_split_functions): Update.
15722 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
15723 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
15724 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
15725 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
15726 estimated_growth to INT_MIN.
15727 (inline_node_duplication_hook): Likewise.
15728 (dump_inline_summary): Dump new fields.
15729 (compute_inline_parameters): Update.
15730 (estimate_edge_time, estimate_time_after_inlining,
15731 estimate_size_after_inlining, estimate_growth, inline_read_summary,
15732 inline_write_summary):
15733 (initialize_inline_failed): Move here from cgraph.c.
15734 * tree-sra.c: Include ipa-inline.h.
15735 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
15736 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
15737 ipa-inline.h.
e7f23018 15738
e81b8564
UB
157392011-04-16 Uros Bizjak <ubizjak@gmail.com>
15740
15741 * config/i386/sse.md (V16): New mode iterator.
15742 (VI1, VI8): Ditto.
15743 (AVXMODEQI, AVXMODEDI): Remove.
15744 (sse2, sse3): New mode attribute.
15745 (mov<mode>): Use V16 mode iterator.
15746 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
15747 (push<mode>1): Use V16 mode iterator.
15748 (movmisalign<mode>): Ditto.
15749 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15750 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
15751 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15752 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
15753 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
15754 avx_movdqu<avxmodesuffix>.
15755 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
15756 *avx_movdqu<avxmodesuffix>.
15757 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
15758 avx_lddqu<avxmodesuffix>.
15759 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
15760 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
15761 avx_movnt<AVXMODEDI:mode>.
15762 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
15763 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
15764
4743d438
BS
157652011-04-16 Bernd Schmidt <bernds@codesourcery.com>
15766
15767 PR target/48629
15768 * haifa-sched.c (prune_ready_list, schedule_block): Use
15769 sched_pressure_p rather than flag_sched_pressure.
15770
748f7574 157712011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
15772
15773 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
15774 cgraph_get_node instead of cgraph_get_create_node.
15775
2ba172e0
JJ
157762011-04-15 Jakub Jelinek <jakub@redhat.com>
15777
15778 * cfgexpand.c (expand_debug_expr): Use
15779 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
15780
63d2a353
MM
157812011-04-15 Michael Matz <matz@suse.de>
15782
15783 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
15784 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
15785 * function.c (gimplify_parameters): Ditto.
15786 * gimplify.c (gimplify_vla_decl): Ditto.
15787
15788 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
15789 (gimple_call_set_alloca_for_var): New inline function.
15790 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
15791 * gimple.c (gimple_build_call_from_tree): Remember
15792 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
15793 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
15794
15795 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
15796 calls if they were for VLA objects.
15797
dee74c34
MJ
157982011-04-15 Martin Jambor <mjambor@suse.cz>
15799
15800 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
15801 of ADR_EXPRs.
15802
8e5837bc
MJ
158032011-04-15 Martin Jambor <mjambor@suse.cz>
15804
15805 PR middle-end/48601
15806 * tree-emutls.c (lower_emutls_function_body): Call
15807 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
15808 result is non-NULL.
15809
0dc33c3c
NP
158102011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
15811
15812 * c-decl.c (detect_field_duplicates): Call
15813 objc_detect_field_duplicates instead of objc_get_interface_ivars.
15814
edcdea5b
NF
158152011-04-15 Nathan Froyd <froydnj@codesourcery.com>
15816
15817 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
15818 * gimple.c (gimple_asm_clobbers_memory_p): Define.
15819 * ipa-pure-const.c (check_stmt): Call it.
15820 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
15821
8456558d
RG
158222011-04-15 Richard Guenther <rguenther@suse.de>
15823
15824 PR tree-optimization/48290
15825 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
15826 Properly decide inhibiting propagation based on the valueized
15827 operand. Do loop-closed SSA form preserving here ...
15828 (init_copy_prop): ... not here.
15829
266446be
L
158302011-04-15 H.J. Lu <hongjiu.lu@intel.com>
15831
15832 PR target/48612
15833 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
15834 (*ieee_smax<mode>3): Likewise.
15835
17465c6e
AK
158362011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15837
15838 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
15839 Replace match_operand with match_dup for the third operand in
15840 these expanders.
15841
bce204e5
MK
158422011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15843
15844 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
15845 to track processing of conditionals. Update all callers.
15846 (try_combine, simplify_if_then_else): Update.
15847
3162fdf4
MK
158482011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15849
15850 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
15851 -fsched-pressure.
15852
79002a57 158532011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 15854
79002a57
GJL
15855 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
15856 instead of match_operand for operand 3.
15857
4fd3a105
RS
158582011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
15859
15860 * recog.h (insn_operand_data): Add an "allows_mem" field.
15861 * genoutput.c (output_operand_data): Initialize it.
15862 * optabs.c (maybe_legitimize_operand_same_code): New function.
15863 (maybe_legitimize_operand): Use it when matching the original
15864 op->value.
15865
ad19c4be
EB
158662011-04-15 Eric Botcazou <ebotcazou@adacore.com>
15867
15868 * gimplify.c: Fix issues in comments throughout.
15869 (voidify_wrapper_expr): Fix long line.
15870 (build_stack_save_restore): Likewise.
15871 (gimplify_loop_expr): Likewise.
15872 (gimplify_compound_lval): Likewise.
15873 (gimplify_init_ctor_eval): Likewise.
15874 (gimplify_modify_expr_rhs): Likewise.
15875 (omp_notice_threadprivate_variable): Likewise.
15876
b25aa0e8 158772011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 15878
b25aa0e8
EB
15879 * cfgexpand.c (expand_call_stmt): Convert the function type to the
15880 original one if this is not a builtin function.
e7925582 15881
09db7afe
JJ
158822011-04-14 Jakub Jelinek <jakub@redhat.com>
15883
15884 PR target/48605
15885 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
15886 offset it as needed based on top 2 bits in operands[3], change
15887 MEM mode to SFmode and mask those 2 bits away from operands[3].
15888
c59633d9
NP
158892011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
15890
15891 * c-parser.c (c_parser_objc_protocol_definition): Updated for
15892 change from objc_declare_protocols() to objc_declare_protocol().
15893
5e60198b
UB
158942011-04-14 Uros Bizjak <ubizjak@gmail.com>
15895
15896 * config/i386/sse.md (sse4_1): New mode attribute.
15897 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
15898 avx_blend<ssemodesuffix><avxmodesuffix> and
15899 sse4_1_blend<ssemodesuffix> using VF mode iterator.
15900 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
15901 avx_blendv<ssemodesuffix><avxmodesuffix> and
15902 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
15903 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
15904 avx_dp<ssemodesuffix><avxmodesuffix> and
15905 sse4_1_dp<ssemodesuffix> using VF mode iterator.
15906 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
15907 (sse4_1_packusdw): Merge with *avx_packusdw.
15908 (sse4_1_pblendvb): Merge with *avx_pblendvb.
15909 (sse4_1_pblendw): Merge with *avx_pblendw.
15910 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
15911 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
15912 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
15913 VF mode iterator.
15914 (sse4_1_round<ssescalarmodesuffix>): Merge with
15915 *avx_round<ssescalarmodesuffix>.
15916 (aesenc): Merge with *avx_aesenc.
15917 (aesenclast): Merge with *avx_aesenclast.
15918 (aesdec): Merge with *avx_aesdec.
15919 (aesdeclast): Merge with *avx_aesdeclast.
15920 (pclmulqdq): Merge with *pclmulqdq.
15921 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
15922 New predicate.
15923 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
15924
6f197850
L
159252011-04-14 H.J. Lu <hongjiu.lu@intel.com>
15926
15927 PR middle-end/48608
15928 * cfgexpand.c (get_decl_align_unit): Renamed to ...
15929 (align_local_variable): This. Update DECL_ALIGN.
15930 (add_stack_var): Updated.
15931 (expand_one_stack_var): Likewise.
15932
4a5ba3ed
RG
159332011-04-14 Richard Guenther <rguenther@suse.de>
15934
15935 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
15936 Remove.
15937 (dse_initialize_block_local_data, dse_leave_block,
15938 record_voperand_set, get_stmt_uid): Likewise.
15939 (dse_possible_dead_store_p): Allow any kind of killing stmt.
15940 (dse_optimize_stmt): Remove voperand set handling code.
15941 Simplify and improve to handle any kind of killing stmt.
15942 (dse_record_phi): Remove.
15943 (dse_enter_block): Simplify.
15944 (tree_ssa_dse): Likewise.
15945 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
15946
10a5dd5d
JH
159472011-04-14 Jan Hubicka <jh@suse.cz>
15948
15949 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
15950 * cgraph.h (struct inline_summary): Move to ipa-inline.h
15951 (cgraph_local_info): Remove inline_summary.
15952 * ipa-cp.c: Include ipa-inline.h.
15953 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
15954 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
15955 accesor.
15956 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
15957 (input_overwrite_node): Do not set inline summary.
15958 (input_node): Do not stream inline summary.
15959 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
15960 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
15961 growth; we do not have inline parameters computed for that anyway.
15962 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
15963 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
15964 (inline_summary_t): New type and VECtor.
15965 (debug_inline_summary, dump_inline_summaries): Declare.
15966 (inline_summary): Use VOCtor.
15967 (estimate_edge_growth): Kill hack computing call stmt size directly.
15968 * lto-section-in.c (lto_section_name): Add inline section.
15969 * ipa-inline-analysis.c: Include lto-streamer.h
15970 (node_removal_hook_holder, node_duplication_hook_holder): New holders
15971 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
15972 (inline_summary_vec): Define.
15973 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
15974 dump_inline_summaries): New functions.
5e60198b
UB
15975 (estimate_function_body_sizes): Properly compute size/time of outgoing
15976 calls.
15977 (compute_inline_parameters): Alloc inline_summary; do not compute
15978 size/time of incomming calls.
10a5dd5d
JH
15979 (estimate_edge_time): Avoid missing time summary hack.
15980 (inline_read_summary): Read inline summary info.
15981 (inline_write_summary): Write inline summary info.
15982 (inline_free_summary): Free all hooks and inline summary vector.
15983 * lto-streamer.h: Add LTO_section_inline_summary section.
15984 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
15985 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
15986
b602d918
RS
159872011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15988
15989 * tree-vectorizer.h (vect_strided_store_supported): Add a
15990 HOST_WIDE_INT argument.
15991 (vect_strided_load_supported): Likewise.
15992 (vect_permute_store_chain): Return void.
15993 (vect_transform_strided_load): Likewise.
15994 (vect_permute_load_chain): Delete.
15995 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
15996 count argument. Check that the count is a power of two.
15997 (vect_strided_load_supported): Likewise.
15998 (vect_permute_store_chain): Return void. Update after above changes.
15999 Assert that the access is supported.
16000 (vect_permute_load_chain): Likewise.
16001 (vect_transform_strided_load): Return void.
16002 * tree-vect-stmts.c (vectorizable_store): Update calls after
16003 above interface changes.
16004 (vectorizable_load): Likewise.
16005 (vect_analyze_stmt): Don't check for strided powers of two here.
16006
ab4472fa
RG
160072011-04-14 Richard Guenther <rguenther@suse.de>
16008
16009 PR tree-optimization/48590
16010 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
16011 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
16012 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
16013 BUILT_IN_STACK_SAVE.
16014 * tree-ssa-dce.c (propagate_necessity): Handle
16015 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
16016
32dabdaf
NP
160172011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
16018
16019 * c-parser.c (c_parser_objc_class_declaration): Updated call to
16020 objc_declare_class.
16021
daade206
RG
160222011-04-14 Richard Guenther <rguenther@suse.de>
16023
16024 * tree.h (get_object_alignment_1): Declare.
16025 * builtins.c (get_object_alignment_1): Split out worker from ...
16026 (get_object_alignment): ... here.
16027 * fold-const.c (get_pointer_modulus_and_residue): Use
16028 get_object_alignment_1.
16029
920e8172
RS
160302011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16031
16032 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
16033 type parameter.
16034 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
16035 parameter. Generalise code to handle arrays as well as vectors.
16036 (vect_setup_realignment): Update accordingly.
16037 * tree-vect-stmts.c (vectorizable_store): Likewise.
16038 (vectorizable_load): Likewise.
16039
5ce1ee7f
RS
160402011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16041
16042 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
16043 within the per-copy loop.
16044
6438fe33 160452011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
16046
16047 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
16048 in the dump file.
16049
6438fe33 160502011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
16051
16052 * doc/options.texi (Negative): Explicitly mention that the
16053 Negative chain must be circular.
16054
61e46a7d
NF
160552011-04-14 Nathan Froyd <froydnj@codesourcery.com>
16056
16057 * function.h (block_chainon): Declare.
16058 * function.c (block_chainon): Define.
16059
43ea6502 160602011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 16061 Eric Weddington <eric.weddington@atmel.com>
748f7574 16062 Georg-Johann Lay <avr@gjlay.de>
5e60198b 16063
f60c2554 16064 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
16065 New Includes
16066 (avr_init_builtins, avr_expand_builtin,
16067 avr_expand_delay_cycles, avr_expand_unop_builtin,
16068 avr_expand_binop_builtin ): New functions.
16069 (avr_builtin_id): New enum
16070 (struct avr_builtin_description): New struct
16071 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
16072 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 16073
43ea6502 16074 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 16075 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
16076 UNSPECV_DELAY_CYCLES): new enumeration values
16077 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
16078 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
16079 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
16080 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
16081 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
16082 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
16083 "fmulsu"): New insns
5e60198b 16084
43ea6502
AS
16085 * config/avr/avr-c.c: fix line endings
16086 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
16087 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
16088 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
16089 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
16090 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 16091
43ea6502
AS
16092 * doc/extend.texi (AVR Built-in Functions): New node
16093 (Target Builtins): Add documentation of AVR
16094 built-in functions.
16095
8a9b55f3
GJL
160962011-04-14 Georg-Johann Lay <avr@gjlay.de>
16097
16098 PR target/44643
16099 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
16100 alone. Error if non-const data has attribute progmem.
16101
94bd1825
NF
161022011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16103
16104 * tree.h (struct tree_constructor): Include tree_typed instead of
16105 tree_common.
16106 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
16107 TS_TYPED instead of TS_COMMON.
16108
5e60198b 161092011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
16110
16111 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
16112 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
16113 (sse2_psadbw): Merge with *avx_psadbw.
16114 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
16115 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
16116 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
16117 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
16118 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
16119 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
16120 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
16121 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
16122 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
16123 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
16124 (ssse3_palignrti): Merge with *avx_palignrti.
16125
4b1a4694
NF
161262011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16127
16128 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
16129 * tree-ssanames.c (fini_ssanames): VEC_free it.
16130 (make_ssa_name_fn): Update for VECness of free_ssanames.
16131 (release_ssa_name, release_dead_ssa_names): Likewise.
16132 * tree.h (struct tree_ssa_name): Include tree_typed instead of
16133 tree_common.
16134 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
16135 TS_TYPED instead of TS_COMMON.
16136
4da3b811
NF
161372011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16138
16139 * postreload-gcse.c (gcse_after_reload_main): Add calls to
16140 statistics_counter_event.
16141 * tree-ssa-copyrename.c (stats): Define.
16142 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
16143 statistics_counter_event.
16144 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
16145 (bswap_stats, widen_mul_stats): Define.
16146 (insert_reciprocals): Increment rdivs_inserted.
16147 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
16148 rfuncs_inserted. Add calls to statistics_counter_event.
16149 (execute_cse_sincos_1): Increment inserted.
16150 (execute_cse_sincos): Zeroize sincos_stats. Add call to
16151 statistics_counter_event.
16152 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
16153 of bswap_stats. Add calls to statistics_counter_event.
16154 (convert_mult_to_widen): Increment widen_mults_inserted.
16155 (convert_plusminus_to_widen): Increment maccs_inserted.
16156 (convert_mult_to_fma): Increment fmas_inserted.
16157 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
16158 calls to statistics_counter_event.
16159
89fa552a
VM
161602011-04-13 Vladimir Makarov <vmakarov@redhat.com>
16161
16162 PR rtl-optimization/48455
16163 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
16164 `temp_costs->mem_cost'.
16165
03dfc36d
JH
161662011-04-13 Jan Hubicka <jh@suse.cz>
16167
16168 * ipa-inline.h: New file.
16169 * ipa-inline-analysis.c: New file. Broken out of ...
16170 * ipa-inline.c: ... this file; update toplevel comment;
16171 include ipa-inline.h
16172 (inline_summary): Move to ipa-inline.h
16173 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
16174 ipa-inline-analysis.c.
7d4f8d02
EB
16175 (cgraph_estimate_time_after_inlining): Rename to
16176 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
16177 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
16178 to estimate_edge_growth.
16179 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
16180 rename to estimate_size_after_inlining.
16181 (cgraph_mark_inline_edge): Update for new naming convention.
16182 (cgraph_check_inline_limits): Likewise.
16183 (cgraph_edge_badness): Likewise.
16184 (cgraph_decide_recursive_inlining): Likewise.
16185 (cgraph_decide_inlining_of_small_functions): Likewise.
16186 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
16187 (cgraph_estimate_growth): Rename to estimate_growth; move to
16188 ipa-inline-analysis.c.
03dfc36d
JH
16189 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
16190 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
16191 (compute_inline_parameters): Likewise.
16192 (compute_inline_parameters_for_current): Likewise.
16193 (pass_inline_parameters): Likewise.
16194 (inline_indirect_intraprocedural_analysis): Likewise.
16195 (analyze_function): Rename to inline_analyze_function; likewise.
16196 (add_new_function): Move to ipa-inline-analysis.c.
16197 (inline_generate_summary): Likewise.
16198 (inline_read_summary): Likewise.
16199 (inline_write_summary): Likewise.
16200 * Makefile.in (ipa-inline-analysis.c): New file.
16201
7673c962
RO
162022011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16203
16204 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
16205 * configure: Regenerate.
16206
9698252f
NF
162072011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16208
16209 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
16210 instead of tree_common.
16211 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
16212 Likewise.
16213 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
16214 TS_TYPED rather than TS_COMMON.
16215 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
16216
3a7bfdd5
GJL
162172011-04-01 Georg-Johann Lay <avr@gjlay.de>
16218
16219 PR target/45263
86d83530
GJL
16220 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
16221 r20 around calls of __tablejump_elpm__
3a7bfdd5 16222
20790697
JJ
162232011-04-13 Jakub Jelinek <jakub@redhat.com>
16224
16225 PR middle-end/48591
16226 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
16227 NULL.
16228 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
16229
094d7661
BS
162302011-04-13 Bernd Schmidt <bernds@codesourcery.com>
16231
16232 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
16233 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
16234 (cfi_vec): New typedef.
16235 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
16236 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
16237 (cie_cfi_vec): New static variable.
16238 (cie_cfi_head): Delete.
16239 (add_cfi): Accept a cfi_vec * as first argument. All callers and
16240 declaration changed. Use vector rather than list operations.
16241 (new_cfi): Don't initialize the dw_cfi_next field.
16242 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
16243 rather than list operations.
16244 (lookup_cfa): Use vector rather than list operations.
16245 (output_cfis): New argument upto. Accept a cfi_vec rather than
16246 a dw_cfi_ref list head as argument. All callers changed.
16247 Iterate over the vector using upto as a maximum index.
16248 (output_all_cfis): New static function.
16249 (output_fde): Use vector rather than list operations. Use the
16250 new upto argument for output_cfis rather than manipulating a
16251 list.
16252 (dwarf2out_begin_prologue): Change initializations to match
16253 new struct members.
16254 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
16255 from the vector length rather than searching for the end of a list.
16256 Use output_all_cfis.
16257 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
16258
673a5740
NC
162592011-04-13 Nick Clifton <nickc@redhat.com>
16260
16261 * config/rx/rx.md (movmemsi): Do not use this pattern when
16262 volatile pointers are involved.
16263
1ee8b298
UB
162642011-04-13 Uros Bizjak <ubizjak@gmail.com>
16265
16266 * config/i386/sse.md (pinsrbits): Remove.
16267 (sse2_packsswb): Merge with *avx_packsswb.
16268 (sse2_packssdw): Merge with *avx_packssdw.
16269 (sse2_packuswb): Merge with *avx_packuswb.
16270 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
16271 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
16272 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
16273 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
16274 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
16275 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
16276 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
16277 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
16278 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
16279 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
16280 (sse2_loadld): Merge with *avx_loadld.
16281 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
16282 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
16283 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
16284 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
16285 (vec_concatv2di): Merge with *vec_concatv2di_avx.
16286
81f653d6
NF
162872011-04-12 Nathan Froyd <froydnj@codesourcery.com>
16288
16289 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
16290 calling TREE_CHAIN.
16291 * print-tree.c (print_node): Likewise.
16292 * tree-inline.c (copy_tree_r): Likewise.
16293 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
16294 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
16295 instead of TS_COMMON.
16296 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
16297 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
16298 (copy_node_stat): Zero TREE_CHAIN only if necessary.
16299 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
16300 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
16301 ...and these...
16302 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
16303 * tree.h: ...here.
16304 (TREE_CHAIN): Check for a TS_COMMON structure.
16305 (TREE_TYPE): Check for a TS_TYPED structure.
16306
748f7574 163072011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
16308
16309 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16310 cgraph_get_create_node instead of cgraph_node.
16311
eb345401
NP
163122011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16313
16314 * c-parser.c (c_parser_initelt): Updated call to
16315 objc_build_message_expr.
16316 (c_parser_postfix_expression): Likewise.
16317
a6c46762
KT
163182011-04-12 Kai Tietz <ktietz@redhat.com>
16319
16320 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
16321 MASK_MS_BITFIELD_LAYOUT bit.
16322
b4ccfed9
JJ
163232011-04-12 Jakub Jelinek <jakub@redhat.com>
16324
16325 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
16326 assert it is always true.
16327 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
16328 moves.
16329
0d8a2528
NP
163302011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16331
16332 * c-parser.c (c_lex_one_token): Rewritten conditional used when
16333 compiling Objective-C to be more efficient.
16334
06bd234a
AF
163352011-04-12 Axel Freyn <axel-freyn@gmx.de>
16336
16337 * opts-common.c (decode_cmdline_options_to_array): Remove variable
16338 argv_copied.
16339
28569ac3
RS
163402011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16341
16342 * recog.h, genoutput.c, optabs.c: Revert last patch.
16343
ae59e00d
RR
163442011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16345
81b1e7eb
UB
16346 PR target/48090
16347 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 16348
cff1b7e0
RS
163492011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16350
16351 * recog.h (insn_operand_data): Add an "allows_mem" field.
16352 * genoutput.c (output_operand_data): Initialize it.
16353 * optabs.c (maybe_legitimize_operand_same_code): New function.
16354 (maybe_legitimize_operand): Use it when matching the original
16355 op->value.
16356
77059241
RS
163572011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16358
16359 * genpreds.c (process_define_predicate): Move most processing
16360 to gensupport.c. Continue to validate the expression.
16361 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
16362 (process_define_predicate): Move processing to gensupport.c.
16363 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
16364 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
16365 (compute_predicate_codes): Moved from genrecog.c. Add lineno
16366 argument.
16367 (valid_predicate_name_p): New function, split out from old
16368 genpreds.c:process_define_predicate.
16369 (process_define_predicate): New function, combining code from
16370 old genpreds.c and genrecog.c functions.
16371 (process_rtx): Call it for DEFINE_PREDICATE and
16372 DEFINE_SPECIAL_PREDICATE.
16373
6308e208
RS
163742011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16375
16376 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
16377 size of a '%A' memory reference.
16378 (T_DREG, T_QREG): New neon_builtin_type_bits.
16379 (arm_init_neon_builtins): Assert that the load and store operands
16380 are neon_struct_operands.
16381 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
16382 (NEON_ARG_MEMORY): New builtin_arg.
16383 (neon_dereference_pointer): New function.
16384 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
16385 Handle NEON_ARG_MEMORY.
16386 (arm_expand_neon_builtin): Update after above interface changes.
16387 Use NEON_ARG_MEMORY for loads and stores.
16388 * config/arm/predicates.md (neon_struct_operand): New predicate.
16389 * config/arm/iterators.md (V_two_elem): Tweak formatting.
16390 (V_three_elem): Use BLKmode for accesses that have no associated mode.
16391 (V_four_elem): Tweak formatting.
16392 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
16393 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
16394 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
16395 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
16396 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
16397 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
16398 (neon_vst4<mode>): Replace pointer operand with a memory operand.
16399 Use %A in the output template.
16400 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
16401 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
16402 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
16403 the width of the memory access. Remove post-increment.
16404 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
16405
e5db8f2f
NC
164062011-04-12 Nick Clifton <nickc@redhat.com>
16407
16408 * config/v850/v850.c (expand_prologue): Do not use the CALLT
16409 instruction for interrupt handlers if the target is the basic V850
16410 architecture.
16411 (expand_epilogue): Likewise.
16412
74f091d6
JJ
164132011-04-12 Jakub Jelinek <jakub@redhat.com>
16414
16415 PR rtl-optimization/48549
16416 * combine.c (propagate_for_debug): Also stop after BB_END of
16417 this_basic_block. Process LAST and just stop processing after it.
16418 (combine_instructions): If last_combined_insn has been deleted,
16419 set last_combined_insn to its PREV_INSN.
16420
f20ca725
RG
164212011-04-12 Richard Guenther <rguenther@suse.de>
16422
16423 PR tree-optimization/46076
16424 * gimple.h (struct gimple_statement_call): Add fntype field.
16425 (gimple_call_fntype): Adjust.
16426 (gimple_call_set_fntype): New function.
16427 * gimple.c (gimple_build_call_1): Set the call function type.
16428 * gimplify.c (gimplify_call_expr): Preserve the function
16429 type the frontend used for the call.
16430 (gimplify_modify_expr): Likewise.
16431 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
16432 function type.
16433 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
16434 function type.
16435 * tree-ssa.c (useless_type_conversion_p): Function pointer
16436 conversions are useless.
16437
a358e188
MJ
164382011-04-12 Martin Jambor <mjambor@suse.cz>
16439
16440 * cgraph.h (cgraph_node): Remove function declaration.
16441 (cgraph_create_node): Declare.
16442 (cgraph_get_create_node): Likewise.
16443 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
16444 Updated all callers.
16445 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
16446 the decl does not already exist. Call cgraph_get_create_node instead
16447 of cgraph_node.
16448 (cgraph_get_create_node): New function.
16449 (cgraph_same_body_alias): Update comment.
16450 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
16451 assert it does not return NULL.
16452 (cgraph_update_edges_for_call_stmt): Likewise.
16453 (cgraph_clone_edge): Likewise.
16454 (cgraph_create_virtual_clone): Likewise.
16455 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
16456 instead of cgraph_node.
16457 (cgraph_add_new_function): Call cgraph_create_node or
16458 cgraph_get_create_node instead of cgraph_node.
16459 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
16460 instead of cgraph_node.
16461 (record_eh_tables): Likewise.
16462 (mark_address): Likewise.
16463 (mark_load): Likewise.
16464 (build_cgraph_edges): Call cgraph_get_create_node instead
16465 of cgraph_node.
16466 (rebuild_cgraph_edges): Likewise.
16467 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
16468 instead of cgraph_node.
16469 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
16470 cgraph_node.
16471 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
16472 cgraph_create_node instead of cgraph_node.
16473 * c-decl.c (finish_function): Call cgraph_get_create_node instead
16474 of cgraph_node.
16475 * lto-cgraph.c (input_node): Likewise.
16476 * lto-streamer-in.c (input_function): Likewise.
16477 * varasm.c (mark_decl_referenced): Likewise.
16478 (assemble_alias): Likewise.
16479
fe660d7b
MJ
164802011-04-12 Martin Jambor <mjambor@suse.cz>
16481
16482 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
16483 instead of cgraph_node and assert it does not return NULL.
16484 * lto-streamer-in.c (lto_read_body): Likewise.
16485 * omp-low.c (new_omp_context): Likewise.
16486 (create_task_copyfn): Likewise.
16487 * tree-emutls.c (lower_emutls_function_body): Likewise.
16488 * matrix-reorg.c (transform_allocation_sites): Likewise.
16489
bae5cddf
JJ
164902011-04-12 Jakub Jelinek <jakub@redhat.com>
16491
16492 PR c/48552
16493 * c-typeck.c (build_asm_expr): Error out on attempts to use
16494 void type outputs or inputs for constraints that allow reg or
16495 don't allow memory.
16496
06eb52ca
CLT
164972011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
16498 Richard Earnshaw <rearnsha@arm.com>
16499
16500 PR target/48250
16501 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
16502 to use sign-magnitude offsets. Reject unsupported unaligned
16503 cases. Add detailed description in comments.
16504 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
16505 condition from TARGET_32BIT to TARGET_ARM.
16506
648a616b
NF
165072011-04-11 Nathan Froyd <froydnj@codesourcery.com>
16508
16509 * tree.h (struct typed_tree): New.
16510 (struct tree_common): Include it instead of tree_base.
16511 (TREE_TYPE): Update for new location of type field.
16512 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
16513 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
16514 (union tree_node): Add typed field.
16515 * treestruct.def (TS_TYPED): New.
16516 * lto-streamer.c (check_handled_ts_structures): Handle it.
16517 * tree.c (MARK_TS_TYPED): New macro.
16518 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
16519
1e6d1da0
EB
165202011-04-11 Eric Botcazou <ebotcazou@adacore.com>
16521
16522 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
16523 (force_nonfallthru): Do not alter the loop nest if no basic block
16524 was created.
16525
165262011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
16527
16528 * config/i386/sse.md (VI): New mode iterator.
16529 (SSEMODEI): Remove.
16530 (AVX256MODEI): Ditto.
16531 (AVXMODEF4P): Ditto.
16532 (avxvecpsmode): Ditto.
16533 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
16534 (sse2_andnot<mode>3): New expander.
16535 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
16536 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
16537 (<any_logic:code><mode>3): Use VI mode iterator.
16538 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
16539 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
16540 (*andnottf3): Handle AVX three-operand constraints.
16541 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
16542
b1372d5d 165432011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 16544 Robert Millan <rmh@gnu.org>
b1372d5d
JM
16545
16546 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
16547 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
16548 GNU_USER_DYNAMIC_LINKER64): Define.
16549 (REG_NAME): Don't undefine.
16550 (MD_UNWIND_SUPPORT): Undefine.
16551 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
16552 (REG_NAME): Don't undefine.
16553 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 16554 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 16555
761c0c6e
JM
165562011-04-11 Joseph Myers <joseph@codesourcery.com>
16557
16558 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
16559 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
16560
26e0228f
XDL
165612011-04-11 Xinliang David Li <davidxl@google.com>
16562
16563 * value-profile.c (check_ic_target): New function.
16564 (gimple_ic_transform): Sanity check indirect call target.
16565 * gimple-low.c (gimple_check_call_args): Interface change.
16566 (gimple_check_call_matching_types): New function.
16567 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
16568
165692011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
16570
16571 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
16572 tree-pretty-print.h & realmpfr.h.
16573
a58dfa49
VM
165742011-04-11 Vladimir Makarov <vmakarov@redhat.com>
16575
16576 PR middle-end/48464
16577 * ira.c (setup_pressure_classes): Fix typo in loop condition.
16578 (setup_allocno_and_important_classes): Ditto.
16579
107fd1c1
JM
165802011-04-11 Joseph Myers <joseph@codesourcery.com>
16581
16582 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
16583 GNU_USER_DYNAMIC_LINKER.
16584 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
16585 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16586 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
16587 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16588 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16589 GNU_USER_TARGET_OS_CPP_BUILTINS.
16590 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
16591 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16592 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16593 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16594 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
16595 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16596 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16597 GNU_USER_TARGET_OS_CPP_BUILTINS.
16598 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16599 GNU_USER_DYNAMIC_LINKER.
16600 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16601 GNU_USER_TARGET_OS_CPP_BUILTINS.
16602 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
16603 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16604 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
16605 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16606 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
16607 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
16608 GNU_USER_DYNAMIC_LINKER64): Remove.
16609 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
16610 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16611 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16612 GNU_USER_DYNAMIC_LINKER.
16613 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16614 GNU_USER_TARGET_OS_CPP_BUILTINS.
16615 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16616 GNU_USER_TARGET_OS_CPP_BUILTINS.
16617 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
16618 to GNU_USER_TARGET_OS_CPP_BUILTINS.
16619 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16620 GNU_USER_TARGET_OS_CPP_BUILTINS.
16621 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
16622 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
16623 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16624 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
16625 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16626 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16627 GNU_USER_DYNAMIC_LINKER.
16628 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16629 GNU_USER_TARGET_OS_CPP_BUILTINS.
16630 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
16631 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16632 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16633 GNU_USER_DYNAMIC_LINKER.
16634 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16635 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16636 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
16637 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16638 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16639 GNU_USER_DYNAMIC_LINKER.
16640 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
16641 GNU_USER_DYNAMIC_LINKERN32.
16642 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
16643 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
16644 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
16645 GNU_USER_DYNAMIC_LINKER32.
16646 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
16647 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16648 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16649 GNU_USER_DYNAMIC_LINKER.
16650 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16651 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16652 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
16653 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 16654 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
16655 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
16656 GNU_USER_DYNAMIC_LINKER32.
16657 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16658 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
16659 GNU_USER_DYNAMIC_LINKER.
16660 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
16661 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16662 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16663 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
16664 GNU_USER_DYNAMIC_LINKER64.
16665 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
16666 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16667 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16668 GNU_USER_DYNAMIC_LINKER.
16669 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
16670 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16671 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16672 GNU_USER_DYNAMIC_LINKER.
16673 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
16674 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16675 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16676 GNU_USER_DYNAMIC_LINKER32.
16677 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16678 GNU_USER_DYNAMIC_LINKER64.
16679 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16680 GNU_USER_DYNAMIC_LINKER64.
16681 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
16682 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16683 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
16684 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 16685 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 16686
e24609cf
JM
166872011-04-11 Joseph Myers <joseph@codesourcery.com>
16688
16689 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
16690 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
16691 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
16692 GNU_USER_DYNAMIC_LINKER.
16693 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16694 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
16695 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
16696 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
16697 GNU_USER_DYNAMIC_LINKER64.
16698 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16699 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
16700 GNU_USER_LINK_EMULATION.
16701 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
16702 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
16703 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
16704 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
16705 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
16706 CPP_SPEC, CC1_SPEC): Remove.
16707 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
16708 (GNU_USER_DYNAMIC_LINKER): Define.
16709 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
16710 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
16711 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
16712 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
16713 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
16714 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
16715 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16716 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
16717 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
16718 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
16719 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
16720 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
16721 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
16722 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
16723 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
16724 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16725 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16726 GNU_USER_DYNAMIC_LINKER.
16727 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16728 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16729 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16730 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16731 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16732 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16733 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
16734 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
16735 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 16736 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 16737
b8ce4e94
KT
167382011-04-11 Kai Tietz <ktietz@redhat.com>
16739
16740 PR target/9601
16741 PR target/11772
16742 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
16743 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
16744 comment.
16745 (ix86_is_msabi_thiscall): Removed.
16746 (ix86_is_type_thiscall): Likewise.
16747 (ix86_get_callcvt): New function.
16748 (ix86_comp_type_attributes): Simplify check.
16749 (ix86_function_regparm): Use ix86_get_callcvt for calling
16750 convention attribute checks.
16751 (ix86_return_pops_args): Likewise.
16752 (ix86_static_chain): Likewise.
16753 (x86_this_parameter): Likewise.
16754 (x86_output_mi_thunk): Likewise.
16755 (ix86_function_type_abi): Optimize check for types without attributes.
16756 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
16757 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
16758 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
16759 by flag-values.
16760 (IX86_BASE_CALLCVT): Helper macro.
16761 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16762 Use ix86_get_callcvt for calling convention attribute checks and avoid
16763 symbol-decoration for stdcall in TARGET_RTD case.
16764 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
16765 Likewise.
16766 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
16767 for declaration.
16768
798dd0ba
UB
167692011-04-11 Uros Bizjak <ubizjak@gmail.com>
16770
16771 * config/i386/sse.md (VI_128): New mode iterator.
16772 (VI12_128): Rename from SSEMODE12.
16773 (VI14_128): Rename from SSEMODE14.
16774 (VI124_128): New mode iterator.
16775 (VI24_128): Rename from SSEMODE248.
16776 (VI248_128): Rename from SSEMODE248.
16777 (SSEMODE124C8): Remove.
16778 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
16779 (*sse2_<plusminus_insn><mode>3): Merge with
16780 *avx_<plusminus_insn><mode>3.
16781 (*mulv8hi3): Merge with *avx_mulv8hi3.
16782 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
16783 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
16784 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
16785 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
16786 (ashr<mode>3): Merge with *avx_ashr<mode>3.
16787 (lshr<mode>3): Merge with *avx_lshr<mode>3.
16788 (ashl<mode>3): Merge with *avx_ashl<mode>3.
16789 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
16790 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
16791 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16792 (*<smaxmin:code>v8hi3): Ditto.
16793 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
16794 (*<smaxmin:code>v16qi3): Ditto.
16795 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
16796 (*sse2_eq<mode>3): Ditto.
16797 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
16798 (*sse2_gt<mode>3): Ditto.
16799 (vcondv2di): Split out of vcond<mode>.
16800 (vconduv2di): Split out of vcondu<mode>.
16801
956011be
RG
168022011-04-11 Richard Guenther <rguenther@suse.de>
16803
16804 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
16805 before calling tree_low_cst.
16806
e6313a78
RG
168072011-04-11 Richard Guenther <rguenther@suse.de>
16808
16809 * stor-layout.c (layout_type): Compute all array index size operations
16810 in the original type.
16811 (initialize_sizetypes): Add comment.
16812 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
16813
e69d7376
JM
168142011-04-11 Joseph Myers <joseph@codesourcery.com>
16815
16816 * common.opt (Tbss=, Tdata=, Ttext=): New options.
16817
9f9ebcdf
MJ
168182011-04-11 Martin Jambor <mjambor@suse.cz>
16819
16820 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
16821 of cgraph_node, handle NULL return value.
16822 (cgraph_global_info): Likewise.
16823 (cgraph_rtl_info): Likewise.
16824 * tree-inline.c (estimate_num_insns): Likewise.
16825 * gimplify.c (unshare_body): Likewise.
16826 (unvisit_body): Likewise.
16827 (gimplify_body): Likewise.
16828 * predict.c (optimize_function_for_size_p): Likewise.
16829 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
16830 (call_may_clobber_ref_p_1): Likewise.
16831 * varasm.c (function_section_1): Likewise.
16832 (assemble_start_function): Likewise.
16833
581985d7
MJ
168342011-04-11 Martin Jambor <mjambor@suse.cz>
16835
16836 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
16837 of cgraph_node.
16838 * final.c (rest_of_clean_state): Likewise.
16839 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
16840 * passes.c (pass_init_dump_file): Likewise.
16841 (execute_all_ipa_transforms): Likewise.
16842 (function_called_by_processed_nodes_p): Likewise.
16843 * predict.c (maybe_hot_frequency_p): Likewise.
16844 (probably_never_executed_bb_p): Likewise.
16845 (compute_function_frequency): Likewise.
16846 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
16847 (unnest_nesting_tree_1): Likewise.
16848 (lower_nested_functions): Likewise.
16849 * tree-optimize.c (execute_fixup_cfg): Likewise.
16850 (tree_rest_of_compilation): Likewise.
16851 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
16852 * tree-sra.c (ipa_early_sra): Likewise.
16853 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
16854 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
16855 * ipa.c (record_cdtor_fn): Likewise.
16856 * ipa-inline.c (cgraph_early_inlining): Likewise.
16857 (compute_inline_parameters_for_current): Likewise.
16858 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16859 * ipa-pure-const.c (local_pure_const): Likewise.
16860 * ipa-split.c (split_function): Likewise.
16861 (execute_split_functions): Likewise.
16862 * cgraphbuild.c (build_cgraph_edges): Likewise.
16863 (rebuild_cgraph_edges): Likewise.
16864 (cgraph_rebuild_references): Likewise.
16865 (remove_cgraph_callee_edges): Likewise.
16866 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
16867 (verify_cgraph_node): Likewise.
16868 (cgraph_analyze_functions): Likewise.
16869 (cgraph_preserve_function_body_p): Likewise.
16870 (save_inline_function_body): Likewise.
16871 (save_inline_function_body): Likewise.
16872 * tree-inline.c (copy_bb): Likewise.
16873 (optimize_inline_calls): Likewise.
16874
57dbdc5a
MJ
168752011-04-11 Martin Jambor <mjambor@suse.cz>
16876
16877 PR tree-optimization/48195
16878 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
16879 ipa_check_create_edge_args.
16880 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
16881 ipa_check_create_edge_args.
16882 * ipa-inline.c (inline_generate_summary): Do not call
16883 ipa_check_create_node_params and ipa_check_create_edge_args.
16884 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
16885 ipa_check_create_edge_args.
16886
d108e679
AS
168872011-04-09 Anatoly Sokolov <aesok@post.ru>
16888
16889 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
16890 instead of loop.
16891 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16892 * function.c (record_hard_reg_sets): Likewise.
16893 * ira.c (compute_regs_asm_clobbered): Likewise.
16894 * sched-deps.c (sched_analyze_1): Likewise.
16895 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
16896
3411bc59
XDL
168972011-04-09 Xinliang David Li <davidxl@google.com>
16898
16899 PR tree-optimization/PR48484
16900 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
16901 has_valid_pred lazily
16902
b365495a
DS
169032011-04-09 Duncan Sands <baldrick@free.fr>
16904
16905 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
16906
68bc509a
EB
169072011-04-08 Eric Botcazou <ebotcazou@adacore.com>
16908
16909 * combine.c (combine_validate_cost): Adjust comments. Set registered
16910 cost of I0 to zero at the end, if any.
16911
041e059f
XDL
169122011-04-08 Xinliang David Li <davidxl@google.com>
16913
68bc509a
EB
16914 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
16915 to insane profile data.
041e059f 16916
444b3995
XDL
169172011-04-08 Xinliang David Li <davidxl@google.com>
16918
16919 * ipa-cp.c (ipcp_update_profiling): Correct
16920 negative scale factor due to insane profile data.
16921
6a801cf2
XDL
169222011-04-08 Xinliang David Li <davidxl@google.com>
16923
16924 * final.c (dump_basic_block_info): New function.
16925 (final): Dump basic block.
16926 (final_scan_insn): Remove old dump.
16927
d5f3624e
SK
169282011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
16929
68bc509a
EB
16930 PR target/47829
16931 * config.gcc (i386-*-freebsd): Disable unwind table generation for
16932 crtbegin/crtend.
d5f3624e 16933
42821aff
MM
169342011-04-08 Michael Matz <matz@suse.de>
16935
16936 PR middle-end/48389
16937 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
16938 functions.
16939 (rebuild_jump_labels): Call rebuild_jump_labels_1.
16940 * rtl.h (rebuild_jump_labels_chain): Declare.
16941 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
16942 insns inserted on edges.
16943
ad7be009
JM
169442011-04-08 Joseph Myers <joseph@codesourcery.com>
16945
16946 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
16947 * config/arm/arm-arches.def: New.
16948 * config/arm/arm-opts.h: New.
16949 * config/arm/genopt.sh: New.
16950 * config/arm/arm-tables.opt: New (generated).
16951 * config/arm/arm.c (arm_handle_option, arm_target_help,
16952 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
16953 (all_architectures): Get most table contents from arm-arches.def.
16954 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
16955 arm_selected_tune here.
16956 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
16957 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
16958 (march=, mcpu=, mtune=): Use Enum and Var.
16959 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
16960 (arm.o): Update dependencies.
ecbb6fb7 16961
42821aff 169622011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
16963
16964 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
16965 of header_file.
16966 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
16967 (write_typed_alloc_defns): Likewise.
16968 (main): Calls write_typed_alloc_defns with output_header.
16969
8d189b3f
VM
169702011-04-08 Vladimir Makarov <vmakarov@redhat.com>
16971
68bc509a 16972 PR inline-asm/48435
8d189b3f
VM
16973 * ira-color.c (setup_profitable_hard_regs): Add comments.
16974 Don't take prohibited hard regs into account.
16975 (setup_conflict_profitable_regs): Rename to
16976 get_conflict_profitable_regs.
16977 (check_hard_reg_p): Check prohibited hard regs.
16978
44f370bf
NF
169792011-04-08 Nathan Froyd <froydnj@codesourcery.com>
16980
16981 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
16982 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
16983 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
16984
483d7ad3
JDA
169852011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16986
16987 PR target/48366
16988 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 16989 move from floating point to shift amount register.
483d7ad3
JDA
16990 (emit_move_sequence): Remove secondary reload support for floating
16991 point to shift amount amount register copies.
16992 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
16993 amount register copies.
16994 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
16995 register, return false if mode isn't a scalar integer mode.
16996 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
16997
97e03fa1
RG
169982011-04-08 Richard Guenther <rguenther@suse.de>
16999
17000 * gimple.c (gimple_call_flags): Remove kludge.
17001
9d40778b
AM
170022011-04-08 Alexander Monakov <amonakov@ispras.ru>
17003
17004 * sel-sched.c (sel_region_init): Move call to
17005 sel_setup_region_sched_flags after setup_current_loop_nest.
17006
19ac7892
AB
170072011-04-08 Andrey Belevantsev <abel@ispras.ru>
17008
17009 PR rtl-optimization/48272
19ac7892
AB
17010 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
17011 init_insn_reg_pressure_info. Adjust a caller.
17012 * sched-int.h (init_insn_reg_pressure_info): Declare.
17013 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
17014 when sched-pressure is enabled.
17015
0f8c63cc
RG
170162011-04-08 Richard Guenther <rguenther@suse.de>
17017
17018 * gimple.c (gimple_set_modified): Do not queue calls to
17019 MODIFIED_NORETURN_CALLS here ...
17020 * tree-ssa-operands.c (update_stmt_operands): ... but here.
17021
5e5a425e
RG
170222011-04-08 Richard Guenther <rguenther@suse.de>
17023
17024 PR lto/48467
17025 * toplev.c (lang_dependent_init): Do not open asm_out_file
17026 in WPA mode, nor perform debug machinery initialization.
17027 (finalize): Do not unlink asm_out_file in WPA mode.
17028
9bfc434b
RG
170292011-04-08 Richard Guenther <rguenther@suse.de>
17030
17031 * gimple.h (gimple_call_fntype): New function.
17032 (gimple_call_return_type): Use it.
17033 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
17034 * gimple-low.c (gimple_check_call_args): Likewise.
17035 * gimple.c (gimple_call_flags): Likewise.
17036 (gimple_call_arg_flags): Likewise.
17037 (gimple_call_return_flags): Likewise.
17038 * tree-cfg.c (verify_gimple_call): Likewise.
17039 (do_warn_unused_result): Likewise.
17040 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
17041 * value-prof.c (gimple_ic_transform): Fix fndecl check.
17042
7c1f0b40
DM
170432011-04-08 Dmitry Melnik <dm@ispras.ru>
17044
17045 PR rtl-optimization/48235
17046 * sel-sched.c (code_motion_process_successors): Recompute the last
17047 insn in basic block if control flow changed.
17048 (code_motion_path_driver): Ditto. Recompute the first insn as well.
17049 Update condition for ilist_remove.
17050
ea4d630f
AM
170512011-04-08 Alexander Monakov <amonakov@ispras.ru>
17052
17053 PR rtl-optimization/48302
17054 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
17055 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
17056 it to record added preheader blocks.
17057 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
17058 on to sel_add_loop_preheaders.
17059 (sel_region_init): Move call to setup_current_loop_nest after
17060 sel_init_bbs.
17061
07643d76
AM
170622011-04-08 Alexander Monakov <amonakov@ispras.ru>
17063
17064 PR target/48273
17065 * cfgloop.h (loop_has_exit_edges): New helper.
17066 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
17067 non-clonable.
17068 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
17069 that have no exit edges.
17070
1f3b2b4e
AM
170712011-04-08 Alexander Monakov <amonakov@ispras.ru>
17072
17073 PR rtl-optimization/48442
17074 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
17075 all callers. Adjust assert.
17076
554f1948
JJ
170772011-04-08 Jakub Jelinek <jakub@redhat.com>
17078
17079 PR tree-optimization/48377
17080 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
17081 is_packed to true even for types with smaller TYPE_ALIGN than
17082 TYPE_SIZE.
17083
ddf72388
RG
170842011-04-08 Richard Guenther <rguenther@suse.de>
17085
17086 PR bootstrap/48513
17087 * doc/tm.texi: Re-generate.
17088
0c27e2d8
WG
170892011-04-08 Wei Guozhi <carrot@google.com>
17090
17091 PR target/47855
17092 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
17093 * config/arm/arm.c (arm_attr_length_push_multi): New function.
17094 * config/arm/arm.md (*push_multi): Change the length computation to
17095 call a C function.
17096
07c5f94e
AS
170972011-04-08 Anatoly Sokolov <aesok@post.ru>
17098
17099 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
17100 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
17101 * doc/tm.texi: Regenerate.
17102 * system.h (ASM_OUTPUT_BSS): Poison.
17103 * varasm.c (asm_output_bss): Remove function.
17104 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 17105
07c5f94e
AS
17106 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
17107 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
17108 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
17109 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17110 Likewise.
17111 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17112 Likewise.
17113 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17114 Likewise.
17115 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17116
5f2c36e1
JM
171172011-04-07 Joseph Myers <joseph@codesourcery.com>
17118
17119 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
17120 EnumValue lines.
17121
39e7722b
JM
171222011-04-07 Joseph Myers <joseph@codesourcery.com>
17123
17124 * config/m68k/m68k.c (m68k_handle_option): Don't handle
17125 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
17126 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
17127 OPT_mcpu32.
17128 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17129 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
17130 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
17131 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
17132 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
17133 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
17134 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17135 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
17136 options. Don't map other m68k options manually. Don't handle
17137 old-style options as canonical.
17138 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 17139 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 17140
cf103ca4
EB
171412011-04-07 Eric Botcazou <ebotcazou@adacore.com>
17142
17143 * basic-block.h (force_nonfallthru): Move to...
17144 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
17145 (force_nonfallthru): ...here.
17146 * cfghooks.c (force_nonfallthru): New function.
17147 * cfgrtl.c (force_nonfallthru): Rename into...
17148 (rtl_force_nonfallthru): ...this.
17149 (commit_one_edge_insertion): Do not set AUX field.
17150 (commit_edge_insertions): Do not discover new basic blocks.
17151 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
17152 (cfg_layout_rtl_cfg_hooks): Likewise.
17153 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
17154 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
17155 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
17156
14431f58
AS
171572011-04-07 Anatoly Sokolov <aesok@post.ru>
17158
17159 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17160 Remove macros.
17161
3729983c
UB
171622011-04-07 Uros Bizjak <ubizjak@gmail.com>
17163
17164 * config/i386/sse.md: Update copyright year.
17165 (avxcvtvecmode): Remove.
17166 (sse_movhlps): Merge with *avx_movhlps.
17167 (sse_movlhps): Merge with *avx_movlhps.
17168 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
17169 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
17170 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
17171 (sse_loadhps): Merge with *avx_loadhps.
17172 (sse_storelps): Merge with *avx_storelps.
17173 (sse_loadlps): Merge with *avx_loadlps.
17174 (sse_movss): Merge with *avx_movss.
17175 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
17176 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
17177 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
17178 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
17179 (vec_set<mode>_0): Ditto.
17180 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
17181 (sse4_1_insertps): Merge with *avx_insertps.
17182 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
17183 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
17184 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
17185 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
17186 (sse2_storehpd): Merge with *avx_storehpd.
17187 (sse2_loadhpd): Merge with *avx_loadhpd.
17188 (sse2_loadlpd): Merge with *avx_loadlpd.
17189 (sse2_movsd): Merge with *avx_movsd.
17190 (*vec_concatv2df): Merge with *vec_concatv2df.
17191
4e626909
JJ
171922011-04-07 Jakub Jelinek <jakub@redhat.com>
17193
17194 PR debug/48343
17195 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 17196 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
17197 (try_combine): Add last_combined_insn parameter, pass it instead of
17198 i3 to propagate_for_debug.
17199
3729983c 172002011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
17201
17202 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
17203 to handle MDR <-> data register transfers.
17204 (movhi_internal): Likewise.
17205
20c03367
AM
172062011-04-07 Alan Modra <amodra@gmail.com>
17207
17208 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
17209 previous stack info.
17210
bf22920b
TV
172112011-04-07 Tom de Vries <tom@codesourcery.com>
17212
17213 PR target/43920
17214 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
17215 flow_find_cross_jump. Swap variables to implement backward replacement.
17216 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
17217
823918ae
TV
172182011-04-07 Tom de Vries <tom@codesourcery.com>
17219
17220 PR target/43920
17221 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
17222 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
17223 and bb2.
17224 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
17225 src1 or src2. Redirect edges to the last basic block. Update
17226 frequency and count on multiple basic blocks in case of fallthru.
823918ae 17227
472c95f5
TV
172282011-04-07 Tom de Vries <tom@codesourcery.com>
17229
17230 PR target/43920
17231 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
17232 function.
3729983c
UB
17233 (old_insns_match_p): Change return type. Replace return false/true
17234 with return dir_none/dir_both. Use can_replace_by.
17235 (flow_find_cross_jump): Add dir_p parameter. Init replacement
17236 direction from dir_p. Register replacement direction in dir, last_dir
17237 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
17238 merge_dir. Return replacement direction in dir_p.
17239 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
17240 return type of old_insns_match_p.
17241 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
17242 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
17243 flow_find_cross_jump.
17244 * basic-block.h (enum replace_direction): New type.
17245 (flow_find_cross_jump): Add parameter to declaration.
17246
a95d4000
UB
172472011-04-06 Uros Bizjak <ubizjak@gmail.com>
17248
17249 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
17250 (AVXMODEDCVTPS2DQ): Ditto.
17251 (VEC_FLOAT_MODE): Ditto.
17252 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
17253 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17254 (<any_logic:code><mode>3): Use VF mode iterator.
17255 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
17256 Use VF mode iterator.
17257 (copysign<mode>3): Use VF mode iterator.
17258 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
17259 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17260 (*<any_logic:code><MODEF:mode>3): Merge with
17261 *avx_<any_logic:code><MODEF:mode>3.
17262 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
17263 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
17264 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
17265 (avx_cvtdq2ps<avxmodesuffix>): Remove.
17266 (sse2_cvtdq2ps): Use %v modifier.
17267 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
17268 (avx_cvtps2dq<avxmodesuffix>): Remove.
17269 (sse2_cvtps2dq): Use %v modifier.
17270 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
17271 (avx_cvttps2dq<avxmodesuffix>): Remove.
17272 (sse2_cvttps2dq): Use %v modifier.
17273 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
17274 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
17275 (sse2_cvtsd2siq): Fix insn template.
17276 (sse2_cvtsd2siq_2): Ditto.
17277 (sse2_cvttsd2siq): Ditto.
17278 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
17279 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
17280
ad01c437
JM
172812011-04-06 Joseph Myers <joseph@codesourcery.com>
17282
17283 * gcov-io.c: Use GCC Runtime Library Exception.
17284
fe846284
JJ
172852011-04-06 Jakub Jelinek <jakub@redhat.com>
17286
17287 PR debug/48466
17288 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
17289 as base_reg whatever register reg has been eliminated to, instead
17290 of hardcoding STACK_POINTER_REGNUM.
17291
acce4e77
JM
172922011-04-06 Joseph Myers <joseph@codesourcery.com>
17293
17294 * doc/tm.texi.in: Document C target hooks as separate from general
17295 target hooks.
17296 * doc/tm.texi: Regenerate.
17297 * genhooks.c (struct hook_desc): Add docname field.
17298 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
17299 docname field.
17300 (hook_array): Include c-target.def.
17301 (emit_documentation): Use docname field in output.
17302 (emit_init_macros): Take docname argument. Only emit definitions
17303 for hooks matching docname.
17304 (main): Expect additional arguments in all cases. Pass argument
17305 to emit_init_macros.
17306 * target.def: Move initial macro definitions and comments to
17307 target-hooks-macros.h.
17308 (gcc_targetcm): Move to c-family/c-target.def.
17309 * target.h (targetcm): Move declaration to c-family/c-target.h.
17310 * targhooks.c (default_handle_c_option): Move to
17311 c-family/c-opts.c.
17312 * targhooks.h (default_handle_c_option): Move declaration to
17313 c-family/c-common.h.
17314 * target-hooks-macros.h: New file.
17315 * config.gcc (target_has_targetcm): Define and use to add to
17316 c_target_objs and cxx_target_objs.
17317 * config/default-c.c: New file.
17318 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
17319 of target.h and target-def.h.
17320 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
17321 (darwin_objc_construct_string, darwin_cfstring_ref_p,
17322 darwin_check_cfstring_format_arg): Make static.
17323 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17324 TARGET_STRING_OBJECT_REF_TYPE_P,
17325 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
17326 * config/darwin-protos.h (darwin_objc_construct_string,
17327 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
17328 declare.
17329 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17330 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 17331 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
17332 * config/t-darwin (darwin-c.o): Update dependencies.
17333 * system.h (TARGET_HAS_TARGETCM): Poison.
17334 * Makefile.in (TARGET_H): Update.
17335 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
17336 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
17337 (default-c.o): New target.
17338 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 17339 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
17340 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
17341 c-target.def.
17342 (build/genhooks.o): Update dependencies.
17343
275b4baa 173442011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 17345
275b4baa
RG
17346 * ipa-inline.c (enum inlining_mode): Remove.
17347 (cgraph_flatten): Use some other token.
17348 (cgraph_edge_early_inlinable_p): New function, split out from ...
17349 (cgraph_perform_always_inlining): New function, split out from ...
17350 (cgraph_decide_inlining_incrementally): ... here.
17351 (cgraph_mark_inline_edge): Adjust.
17352 (cgraph_early_inlining): Re-structure.
17353 (pass_early_inline): Require SSA form.
17354
f15b8bdf 173552011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
17356 Julian Brown <julian@codesourcery.com>
17357 Mark Shinwell <shinwell@codesourcery.com>
17358
17359 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
17360 LO_REGS only for Thumb-1.
17361 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
17362 be used in short instructions when optimising for size on Thumb-2.
17363
516426da
EB
173642011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17365
17366 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
17367 associated with user returns to be preserved.
17368
96621ebf
TG
173692011-04-06 Tristan Gingold <gingold@adacore.com>
17370
f15b8bdf
EB
17371 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
17372 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
17373 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
17374 if XCOFF_DEBUGGING_INFO.
17375
07c0852e
UB
173762011-04-06 Uros Bizjak <ubizjak@gmail.com>
17377
17378 * config/i386/i386.md (attribute isa): New.
17379 (attribute enabled): New.
17380 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
17381 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
17382 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
17383 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
17384 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
17385 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17386 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
17387 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
17388
17389 * config/i386/sse.md (VF): New mode iterator.
17390 (VF1): Ditto.
17391 (VF2): Ditto.
17392 (VF_128): Ditto.
17393 (SSEMODEF4): Remove.
17394 (attribute sse): Handle V8SF and V4DF modes.
17395 (<absneg:code><mode>2): Use VF mode iterator.
17396 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
17397 mode iterator.
17398 (<plusminus_insn><mode>3): Use VF mode iterator.
17399 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17400 Use VF mode iterator.
17401 (<sse>_vm<plusminus_insn><mode>3): Merge with
17402 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
17403 (mul<mode>3): Use VF mode iterator.
17404 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
17405 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
17406 mode iterator.
17407 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
17408 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
17409 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
17410 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
17411 mode iterator.
17412 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
17413 Use VF1 mode iterator.
17414 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
17415 (sqrt<VF2:mode>2): New expander.
17416 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
17417 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
17418 and sqrtv2df2. Use VF mode iterator.
17419 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
17420 mode iterator.
17421 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
17422 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
17423 Use VF1 mode iterator.
17424 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
17425 (<smaxmin:code><mode>3): Use VF mode iterator.
17426 (*<smaxmin:code><mode>3_finite): Merge with
17427 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
17428 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17429 (<sse>_vm<smaxmin:code><mode>2): Merge with
17430 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
17431 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
17432 mode iterator.
17433 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
17434 mode iterator.
17435 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
17436 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
17437 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
17438 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
17439 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
17440 VF mode iterator.
17441 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
17442 Use VF_128 mode iterator.
17443 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
17444 mode iterator.
17445 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
17446 VF_128 mode iterator.
17447 (vcond<mode>): Use VF mode iterator.
17448 * config/i386/predicates.md (sse_comparison_operator): Merge with
17449 avx_comparison_float_operator. Do not declare as special_predicate.
17450 * config/i386/i386.c (struct builtin_description): Update for renamed
17451 compare patterns.
17452 (ix86_expand_args_builtin): Ditto.
17453 (ix86_expand_sse_compare_mask): Ditto.
17454
ff5d142c
RG
174552011-04-06 Richard Guenther <rguenther@suse.de>
17456
17457 * tree-inline.c (estimate_num_insns): For calls simply account
17458 for all passed arguments and a used return value.
17459
d7d1d041 174602011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 17461
d7d1d041
RG
17462 PR tree-optimization/47663
17463 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
17464 call_stmt_time fields.
17465 (cgraph_edge_inlinable_p): Declare.
17466 (cgraph_edge_recursive_p): New inline function.
17467 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
17468 (cgraph_clone_edge): Copy it.
17469 * ipa-inline.c (cgraph_estimate_edge_time): New function.
17470 Account for call stmt time.
17471 (cgraph_estimate_time_after_inlining): Take edge argument.
17472 (cgraph_estimate_edge_growth): Account call stmt size.
17473 (cgraph_estimate_size_after_inlining): Take edge argument.
17474 (cgraph_mark_inline_edge): Adjust.
17475 (cgraph_check_inline_limits): Likewise.
17476 (cgraph_recursive_inlining_p): Remove.
17477 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
17478 (cgraph_decide_recursive_inlining): Take edge argument and
17479 adjust.
17480 (cgraph_decide_inlining_of_small_functions): Do not avoid
17481 diags for recursive inlining here.
17482 (cgraph_flatten): Adjust.
17483 (cgraph_decide_inlining_incrementally): Likewise.
17484 (estimate_function_body_sizes): Remove call cost handling.
17485 (compute_inline_parameters): Initialize caller edge call costs.
17486 (cgraph_estimate_edge_growth): New function.
17487 (cgraph_estimate_growth): Use it.
17488 (cgraph_edge_badness): Likewise.
17489 (cgraph_check_inline_limits): Take an edge argument.
17490 (cgraph_decide_inlining_of_small_functions): Adjust.
17491 (cgraph_decide_inlining): Likewise.
17492 * tree-inline.c (estimate_num_insns): Only account for call
17493 return value if it is used.
17494 (expand_call_inline): Avoid diagnostics on recursive inline
17495 functions here.
17496 * lto-cgraph.c (lto_output_edge): Output edge call costs.
17497 (input_edge): Input edge call costs.
17498
2feb95f7
RO
174992011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17500
17501 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
17502
26fbd9c2
JW
175032011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
17504
17505 * doc/invoke.texi (Spec Files): Fix typo.
17506
694dc0ca
EB
175072011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17508
17509 * profile.c (branch_prob): Move declaration of local variable. Remove
17510 obsolete ??? comment. Expand the location explicitly instead of using
17511 the LOCATION_FILE and LOCATION_LINE macros.
17512
4925d0d5
WG
175132011-04-06 Wei Guozhi <carrot@google.com>
17514
17515 PR target/47855
17516 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
17517 (arm_cond_branch): Likewise.
17518 (arm_cond_branch_reversed): Likewise.
17519 (arm_jump): Likewise.
17520 (push_multi): Likewise.
17521 * config/arm/constraints.md (Py): New constraint.
17522
f55dfa2f
NF
175232011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17524
17525 PR bootstrap/48471
17526 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
17527 Move these...
17528 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
17529 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
17530 #ifdef DBX_DEBUGGING_INFO.
17531
fca96842
BS
175322011-04-05 Bernd Schmidt <bernds@codesourcery.com>
17533
17534 PR bootstrap/48403
17535 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
17536 if old and new states differ.
17537
30b83e38
JM
175382011-04-05 Joseph Myers <joseph@codesourcery.com>
17539
17540 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
17541 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
17542 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17543 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
17544 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
17545 mcfv4e): Use Alias.
17546 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
17547 ColdFire options to -mcpu= options.
17548
277a9aa5
JL
175492011-04-05 Jeff Law <law@redhat.com>
17550
17551 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
17552 check if BB is a successor of LOOP->header and return
17553 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
17554
c1e2610e
SB
175552011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17556
17557 * cprop.c (struct reg_use): Remove.
17558 (reg_use_table): Make an array of RTX.
17559 (find_used_regs, constprop_register, local_cprop_pass,
17560 bypass_block): Simplify users of reg_use_table.
17561 (cprop_insn): Likewise. Iterate if copy propagation succeeded
17562 on one of the uses found by find_used_regs.
17563
e532f586
NF
175642011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17565
17566 PR bootstrap/48469
17567 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
17568 declaration.
17569
3fb7c055
NF
175702011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17571
17572 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
17573 as an rtx.
17574 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
17575
b71b43d9
SB
175762011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17577
17578 PR middle-end/48441
17579 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
17580
b405b274
NF
175812011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17582
17583 * combine.c: Include obstack.h.
17584 (struct insn_link): Define.
17585 (uid_log_links): Adjust type.
17586 (FOR_EACH_LOG_LINK): New macro.
17587 (insn_link_obstack): Declare.
17588 (alloc_insn_link): Define.
17589 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
17590 type of link variables.
17591 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
17592 (try_combine, record_promoted_values, distribute_notes): Likewise.
17593 (distribute_links): Likewise. Tweak prototype.
17594 (clear_log_links): Delete.
17595 (adjust_for_new_dest): Call alloc_insn_link.
17596 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
17597
6409abe3
NF
175982011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17599
17600 * gcse.c (modify_mem_list): Convert to an array of VECs.
17601 (canon_modify_mem_list, compute_transp): Tweak formatting.
17602 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
17603 (load_killed_in_block_p): Likewise.
17604 (record_last_mem_set_info): Likewise.
17605 (clear_modify_mem_tables): Likewise.
17606
170d8157
TV
176072011-04-05 Tom de Vries <tom@codesourcery.com>
17608
17609 PR middle-end/48461
17610 * function.c (emit_use_return_register_into_block): Only define if
17611 HAVE_return.
17612
c5911a55
EB
176132011-04-05 Eric Botcazou <ebotcazou@adacore.com>
17614
17615 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
17616
abd016e6
JM
176172011-04-05 Joseph Myers <joseph@codesourcery.com>
17618
17619 * config/rx/rx-opts.h: New.
17620 * config/rx/rx.c (rx_cpu_type): Remove.
17621 (rx_handle_option): Don't assert that global structures are in
17622 use. Access variables via opts pointer. Defer most handling of
17623 OPT_mint_register_. Use error_at.
17624 (rx_option_override): Handle deferred OPT_mint_register_ here.
17625 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
17626 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
17627 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
17628 (rx_cpu_types): New Enum and EnumValue entries.
17629 (mint-register=): Use Defer and use Var accordingly.
17630
1ed13f83
NF
176312011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17632
17633 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
17634 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
17635 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
17636 Move these...
17637 (debug_free_queue, debug_nesting, symbol_queue_index):
17638 ...and these...
17639 * dbxout.c: ...to here. Make static.
17640
6ce1edcf
NF
176412011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17642
17643 * gcse.c (modify_pair): Define. Define a VEC of it.
17644 (canon_modify_mem_list): Convert to an array of VECs.
17645 (free_insn_expr_list_list): Delete.
17646 (clear_modify_mem_tables): Call VEC_free instead.
17647 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
17648 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
17649 (canon_list_insert, compute_transp): Likewise.
17650
c201ac94
TV
176512011-04-05 Tom de Vries <tom@codesourcery.com>
17652
17653 PR target/43920
17654 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
17655 for size.
17656
4c029f40
TV
176572011-04-05 Tom de Vries <tom@codesourcery.com>
17658
17659 PR target/43920
17660 * function.c (emit_use_return_register_into_block): New function.
17661 (thread_prologue_and_epilogue_insns): Use
17662 emit_use_return_register_into_block.
17663
2a562b0a
TV
176642011-04-05 Tom de Vries <tom@codesourcery.com>
17665
17666 PR target/43920
17667 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
17668 insn.
17669
0248bceb
TV
176702011-04-05 Tom de Vries <tom@codesourcery.com>
17671
17672 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
17673
ffa94123
YZ
176742011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
17675
798dd0ba
UB
17676 * config/arm/arm.md (define_constants for unspec): Replace with
17677 define_c_enum.
17678 (define_constants for unspecv): Replace with define_c_enum.
17679 * config/arm/neon.md (define_constants for unspec): Replace with
17680 define_c_enum.
ffa94123 17681
3b8f9b46
RH
176822011-04-04 Richard Henderson <rth@redhat.com>
17683
720cf80f 17684 PR bootstrap/48400
3b8f9b46
RH
17685 * dwarf2out.c (output_line_info): Always emit line info from
17686 at least one section.
17687 (dwarf2out_init): Create text_section_line_info here ...
17688 (set_cur_line_info_table): ... not here.
17689
720cf80f 176902011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
17691
17692 PR target/48380
17693 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 17694 not called.
e5b0e1ca 17695
720cf80f 17696 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 17697
196565d4
SB
176982011-04-04 Steven Bosscher <steven@gcc.gnu.org>
17699
b77f9eab
SB
17700 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
17701 (expr_equiv_p): Remove.
17702 (insert_set_in_table): Look at <dest, src> pair instead of expr.
17703 (hash_scan_set): Update call to insert_set_in_table.
17704 (dump_hash_table): Dump <dest, src> pair.
17705 (lookup_set): Simplify. Lookup <dest, src> pair.
17706 (compute_transp): Remove, fold heavily simplified code into...
17707 (compute_local_properties): ...here. Expect COMP and TRANSP
17708 unconditionally.
17709 (find_avail_set): Take set directly from struct expr.
17710 (find_bypass-set): Likewise.
17711 (bypass_block): Likewise.
17712 (cprop_insn): Likewise. Remove redundant INSN_P test.
17713
384d7a55
SB
17714 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
17715 checks on form of COND from find_implicit_sets to here.
17716 (find_implicit_sets): Cleanup control flow. Split critical edges
17717 if it exposes implicit sets. Allocate/resize implicit_sets as
17718 necessary.
17719 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
17720 changed something. Run df_analyze after find_implicit_sets if any
17721 edges were split. Do not allocate implicit_sets here.
17722
3084ce69
SB
17723 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
17724 (gcse_obstack): Renamed to cprop_obstack.
17725 (GNEW, GNEWVEC, GNEWVAR): Remove.
17726 (gmalloc): Remove.
17727 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
17728 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
17729 (gcse_alloc): Likewise, and rename to cprop_alloc.
17730 (alloc_gcse_men, free_gcse_mem): Remove.
17731 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
17732 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
17733 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
17734
196565d4
SB
17735 * cprop.c (oprs_not_set_p): Remove.
17736 (mark_set, mark_clobber): Remove.
17737 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
17738 (reg_not_set_p): New function.
17739 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
17740 (cprop_insn): Likewise.
17741 (cprop_jump): Use FOR_EACH_EDGE.
17742
9b69cf83
BS
177432011-04-04 Bernd Schmidt <bernds@codesourcery.com>
17744
17745 PR bootstrap/48403
17746 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
17747 (rank_for_schedule): Use scheduled_insns vector instead of
17748 last_scheduled_insn.
17749 (ok_for_early_queue_removal): Likewise.
17750 (queue_to_ready): Search forward in nonscheduled_insns_begin if
17751 we have a dbg_cnt.
17752 (choose_ready): Likewise.
17753 (commit_schedule): Use VEC_iterate.
17754 (schedule_block): Initialize nonscheduled_insns_begin. If we have
17755 a dbg_cnt, use it and ensure the first insn is in the ready list.
17756 (haifa_sched_init): Allocate scheduled_insns.
17757 (sched_extend_ready_list): Don't allocate it; reserve space.
17758 (haifa_sched_finish): Free it.
17759
24f48c2f
JM
177602011-04-04 Joseph Myers <joseph@codesourcery.com>
17761
17762 * optc-gen.awk: Always remove type from Variable entry before
17763 recording in var_seen.
17764
8effe856
EB
177652011-04-04 Eric Botcazou <ebotcazou@adacore.com>
17766
17767 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
17768 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
17769 call to tidy_fallthru_edges.
17770
413519ae
JM
177712011-04-04 Joseph Myers <joseph@codesourcery.com>
17772
17773 * doc/options.texi (ToLower): Document.
3729983c 17774 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
17775 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
17776 * opts.h (cl_option): Add cl_tolower field.
17777 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
17778 arguments with lowercase strings.
17779 * config/rx/rx.opt (mcpu=): Add ToLower.
17780 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
17781 argument.
17782
7d34a1b0
RS
177832011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
17784
17785 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
17786
c30e7434
RS
177872011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
17788
17789 * config/vax/vax.c: Include reload.h.
17790
112a861d
AS
177912011-04-04 Anatoly Sokolov <aesok@post.ru>
17792
17793 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
17794 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17795 (sparc_preferred_reload_class): New function.
17796
e8c6bb74
JJ
177972011-04-04 Jakub Jelinek <jakub@redhat.com>
17798
2aeaa366 17799 PR debug/48401
e8c6bb74
JJ
17800 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
17801 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
17802
2c081caf
NF
178032011-04-03 Nathan Froyd <froydnj@codesourcery.com>
17804
17805 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
17806 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
17807
53802f27
AS
178082011-04-03 Anatoly Sokolov <aesok@post.ru>
17809
17810 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
17811 (ASM_OUTPUT_ALIGNED_BSS): Define.
17812
e89964e3
MM
178132011-04-03 Michael Matz <matz@suse.de>
17814
17815 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
17816 and next_slot members.
17817 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
17818 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
17819 (lto_streamer_cache_append): Declare.
17820 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
17821 unsigned index, remove offset parameter, ensure that we append
17822 or update existing entries.
17823 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
17824 parameter, update next_slot for append.
17825 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
17826 parameter.
17827 (lto_streamer_cache_insert_at): Likewise.
17828 (lto_streamer_cache_append): New function.
17829 (lto_streamer_cache_lookup): Use unsigned index.
17830 (lto_streamer_cache_get): Likewise.
17831 (lto_record_common_node): Don't test tree_node_can_be_shared.
17832 (preload_common_node): Adjust call to lto_streamer_cache_insert.
17833 (lto_streamer_cache_delete): Don't free offsets member.
17834 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
17835 (lto_output_string_with_length): Use lto_output_data_stream.
17836 (lto_output_tree_header): Remove ix parameter, don't write it.
17837 (lto_output_builtin_tree): Likewise.
17838 (lto_write_tree): Adjust callers to above, don't track and write
17839 offset, write unsigned index.
17840 (output_unreferenced_globals): Don't emit all global vars.
17841 (write_global_references): Use unsigned indices.
17842 (lto_output_decl_state_refs): Likewise.
17843 (write_symbol): Likewise.
17844 * lto-streamer-in.c (lto_input_chain): Move earlier.
17845 (input_function): Use unsigned index.
17846 (input_alias_pairs): Don't read and then ignore all global vars.
17847 (lto_materialize_tree): Remove ix_p parameter, don't read index,
17848 don't pass it back, use lto_streamer_cache_append.
17849 (lto_register_var_decl_in_symtab): Use unsigned index.
17850 (lto_register_function_decl_in_symtab): Likewise.
17851 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
17852 index.
17853 (lto_get_builtin_tree): Don't read index, use
17854 lto_streamer_cache_append.
17855 (lto_read_tree): Adjust call to lto_materialize_tree.
17856
17857 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
17858 don't use function calls in arguments to MIN.
17859
17860 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
17861 twice.
17862
17863 * gimple.c (gimple_type_leader_entry): Mark deletable.
17864
b9a5b5b2
AM
178652011-04-03 Alan Modra <amodra@gmail.com>
17866
17867 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
17868
ac6a641b
MM
178692011-04-03 Michael Matz <matz@suse.de>
17870
17871 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
17872 an integer.
17873 * tree.h (tree_decl_non_common.vindex): Adjust comment.
17874
0038d4e0
MM
178752011-04-03 Michael Matz <matz@suse.de>
17876
e9c18386 17877 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
17878 * gimple-fold.c (canonicalize_constructor_val): Accept being called
17879 without function context.
17880 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
17881 current_function_decl and cfun.
17882
91f2fae8
MM
178832011-04-03 Michael Matz <matz@suse.de>
17884
17885 * tree.c (decl_init_priority_insert): Don't create entry for
17886 default priority.
17887 (decl_fini_priority_insert): Ditto.
17888 (fields_compatible_p, find_compatible_field): Remove.
17889 * tree.h (fields_compatible_p, find_compatible_field): Remove.
17890 * gimple.c (gimple_compare_field_offset): Adjust block comment.
17891
da29e070
EB
178922011-04-03 Eric Botcazou <ebotcazou@adacore.com>
17893
17894 * combine.c (try_combine): Remove useless local variable.
17895
4979c28b 178962011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 17897 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
17898
17899 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
17900 non-variable offsets and compare the remaining bases of the two
17901 accesses instead of looking for exact same data-ref.
17902
b4ddcaee
KT
179032011-04-02 Kai Tietz <ktietz@redhat.com>
17904
f90298e1
KT
17905 PR target/48416
17906 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
17907
b4ddcaee
KT
17908 * i386.c (ix86_is_msabi_thiscall): New helper function.
17909 (ix86_is_type_thiscall): New helper function.
17910 (ix86_comp_type_attributes): Handle thiscall for method-functions
17911 special.
17912 (init_cumulative_args): Likewise.
17913 (find_drap_reg): Likewise.
17914 (ix86_static_chain): Likewise.
17915 (x86_this_parameter): Likewise.
17916 (x86_output_mi_thunk): Likewise.
17917
2a9d769a 179182011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
17919 Nicolas Setton <setton@adacore.com>
17920 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
17921
17922 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
17923 (add_gnat_descriptive_type_attribute): New function.
17924 (gen_array_type_die): Call it.
17925 (gen_enumeration_type_die): Likewise.
17926 (gen_struct_or_union_type_die): Likewise.
17927 (modified_type_die): Likewise.
17928 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
17929 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
17930 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
17931
15a03a11
JJ
179322011-04-01 Jakub Jelinek <jakub@redhat.com>
17933
17934 PR bootstrap/48148
17935 * dwarf2out.c (resolve_addr): Don't call force_decl_die
17936 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
17937
17938 Revert:
17939 2011-03-17 Richard Guenther <rguenther@suse.de>
17940
17941 PR bootstrap/48148
17942 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17943 origin for decls in other ltrans units.
17944 (input_varpool_node): Likewise.
17945
19228b93
JJ
179462011-04-01 Jakub Jelinek <jakub@redhat.com>
17947
17948 PR middle-end/48335
17949 * expr.c (expand_assignment): Handle all possibilities
17950 if TO_RTX is CONCAT.
e9c18386 17951 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
17952 (store_split_bit_field): If SUBREG_REG (op0) or
17953 op0 itself has smaller mode than word, return it
17954 for offset 0 and const0_rtx for out-of-bounds stores.
17955 If word is const0_rtx, skip it.
17956
88cb339e
N
179572011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
17958
17959 * config/h8300/h8300.c (print_operand_address): Rename to...
17960 (h8300_print_operand_address): ...this. Make static. Adjust comments.
17961 Call h8300_print_operand and h8300_print_operand_address instead of
17962 print_operand and print_operand_address. Declare.
17963 (print_operand): Renake to...
17964 (h8300_print_operand): ...this. Make static. Adjust comments.
17965 Call h8300_print_operand instead of print_operand. Declare.
17966 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
17967 (h8300_register_move_cost): Likewise.
17968 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
17969 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
17970 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
17971 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
17972 * config/h8300/h8300-protos.h (print_operand): Delete.
17973 (print_operand_address): Delete.
17974
756d6ee9
RH
179752011-04-01 Richard Henderson <rth@redhat.com>
17976
17977 PR 48400
17978 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
17979 in strict mode before dwarf4. Re-order tests to early out
17980 before switching sections.
17981
ceaaaeab
NF
179822011-04-01 Nathan Froyd <froydnj@codesourcery.com>
17983
17984 * config/h8300/constraints.md: New file.
17985 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
17986 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
17987 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
17988 * config/h8300/predicates.md (bit_operand): Likewise.
17989 (incdec_operand): Use satisfies_constraint_M and
17990 satisfies_constraint_O. Don't use C code block.
17991 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
17992 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
17993 (compute_mov_length): Use satisfies_constraint_G.
17994 (fix_bit_operand): Use satisfies_constraint_U.
17995 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
17996 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
17997 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
17998 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
17999 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
18000 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
18001 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18002 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
18003 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
18004 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
18005 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
18006 (EXTRA_MEMORY_CONSTRAINT): Delete.
18007
08ae38e0
AP
180082011-04-01 Andrew Pinski <pinskia@gmail.com>
18009 Michael Meissner <meissner@linux.vnet.ibm.com>
18010
18011 PR target/48262
18012 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
18013 operands, as per the specifications.
18014
18015 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
18016 (vec_extract_evenv4sf): Ditto.
18017 (vec_extract_evenv8hi): Ditto.
18018 (vec_extract_evenv16qi): Ditto.
18019 (vec_extract_oddv4si): Ditto.
18020
bdb0b0f6
MW
180212011-03-31 Mark Wielaard <mjw@redhat.com>
18022
18023 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
18024 high_pc attribute if the CU has no associated code. Only output
18025 DW_AT_entry_pc for CU if not generating strict dwarf and
18026 dwarf_version < 4.
18027
722279e4
BS
180282011-04-01 Bernd Schmidt <bernds@codesourcery.com>
18029
18030 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
18031 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
18032 out of ...
18033 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
18034 * final.c (final_start_function): Call the new function rather
18035 than using a NULL argument for dwarf2out_frame_debug.
18036
c5dd277d
BS
18037 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
18038 that contains the prologue.
18039
ec4efea9
BS
18040 * haifa-sched.c (queue_insn): New arg REASON. All callers
18041 changed. Print it in debugging output.
18042
2a6a0d80
BS
18043 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
18044
86014d07
BS
18045 * sched-ebb.c (begin_schedule_ready): Remove second argument.
18046 Split most of the code into...
18047 (begin_move_insn): ... here. New function.
18048 (ebb_sched_info): Add a pointer to it.
18049 * haifa-sched.c (scheduled_insns): New static variable.
18050 (sched_extend_ready_list): Allocate it.
18051 (schedule_block): Use it to record the order of scheduled insns.
18052 Perform RTL changes to move insns only after all scheduling
18053 decisions have been made.
18054 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
18055 begin_move_insn field.
18056 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
18057 * sched-int.h (struct haifa_sched_info): Remove second argument
18058 from begin_schedule_ready hook. Add new member begin_move_insn.
18059 * sched-rgn.c (begin_schedule_ready): Remove second argument.
18060 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
18061
9d701248
BS
18062 * haifa-sched.c (prune_ready_list): New function, broken out of
18063 schedule_block.
18064 (schedule_block): Use it.
18065
1ca1dad5
UW
180662011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18067
18068 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
18069
49568e45
KT
180702011-04-01 Kai Tietz <ktietz@redhat.com>
18071
18072 * config.gcc (*-*-mingw*): Allow as option the
18073 posix threading model.
07c0852e 18074 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
18075 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
18076 definition.
18077 (CPP_SPEC): Add pthread/no-pthread handling.
18078 (LIB_SPEC): Likewise.
18079 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
18080 (LIB_SPEC): Likewise.
18081 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
18082 flag to pass -pthread option for shared libgcc build.
18083 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
18084 for shared libgcc build.
18085 * config/i386/t-mingw-pthread: New file.
18086 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
18087 New define to enable use of library pthread by default.
18088 * config/i386/mingw.opt (pthread): New driver option.
18089 (no-pthread): New driver option.
e9c18386 18090 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
18091 * config/i386/mingw-w64.opt: Likewise.
18092
748f7574 180932011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
18094
18095 * c-decl.c (grokdeclarator): Fix formatting.
18096
f04713ee
RS
180972011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18098
18099 * expr.c (emit_block_move_via_movmem): Use n_generator_args
18100 instead of n_operands.
18101 (set_storage_via_setmem): Likewise.
18102 * optabs.c (maybe_gen_insn): Likewise.
18103 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
18104 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
18105 (mips_expand_builtin_direct): Likewise.
18106 * config/spu/spu.c (expand_builtin_args): Likewise.
18107
b29387ee
RS
181082011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18109
18110 * recog.h (insn_data_d): Add n_generator_args.
18111 * genoutput.c (data): Likewise.
18112 (output_insn_data): Print it.
18113 (max_opno, num_dups): Delete.
18114 (scan_operands): Just fill in "d->operand[...]".
18115 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
18116
e792559a
RS
181172011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18118
18119 * gensupport.h (pattern_stats): New structure.
18120 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
18121 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
18122 (max_operand_1, max_operand_vec): Delete.
18123 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
18124
e8110d6f
NF
181252011-03-31 Nathan Froyd <froydnj@codesourcery.com>
18126
18127 * emit-rtl.c (emit_pattern_after_setloc): New function.
18128 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
18129 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
18130 (emit_pattern_after): New function.
18131 (emit_insn_after, emit_jump_insn_after): Call it.
18132 (emit_call_insn_after, emit_debug_insn_after): Likewise.
18133 (emit_pattern_before_setloc): New function.
18134 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
18135 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
18136 Likewise.
18137 (emit_pattern_before): New function.
18138 (emit_insn_before, emit_jump_insn_before): Call it.
18139 (emit_call_insn_before, emit_debug_insn_before): Likewise.
18140
576f85f1
RH
181412011-03-31 Richard Henderson <rth@redhat.com>
18142
18143 * dwarf2out.c (dw_separate_line_info_ref): Remove.
18144 (dw_separate_line_info_entry): Remove.
18145 (enum dw_line_info_opcode): New.
18146 (dw_line_info_entry): Use it.
18147 (dw_line_info_table, dw_line_info_table_p): New.
18148 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
18149 (line_info_table, line_info_label_num): Remove.
18150 (line_info_table_in_use): Remove.
18151 (separate_line_info_table): Remove.
18152 (separate_line_info_table_allocated): Remove.
18153 (separate_line_info_table_in_use): Remove.
18154 (LINE_INFO_TABLE_INCREMENT): Remove.
18155 (line_info_label_num): New.
18156 (cur_line_info_table): New.
18157 (text_section_line_info, cold_text_section_line_info): New.
18158 (separate_line_info): New.
18159 (SEPARATE_LINE_CODE_LABEL): Remove.
18160 (print_dwarf_line_table): Remove.
18161 (debug_dwarf): Don't dump it.
18162 (output_one_line_info_table): New.
18163 (output_line_info): Use it.
18164 (new_line_info_table): New.
18165 (set_cur_line_info_table): New.
18166 (dwarf2out_switch_text_section): Use it.
18167 (dwarf2out_begin_function): Likewise.
18168 (push_dw_line_info_entry): New.
18169 (dwarf2out_source_line): Rewrite for new line info tables.
18170 (dwarf2out_init): Remove dead initailizations.
18171
300d83d9
JM
181722011-03-31 Joseph Myers <joseph@codesourcery.com>
18173
18174 * opts.h (cl_option): Add comments to fields. Add bit-fields for
18175 various flags.
18176 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
18177 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
18178 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
18179 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
18180 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
18181 * opt-functions.awk (flag_init, switch_bit_fields): New.
18182 (switch_flags): Don't handle flags moved to bit-fields. Don't
18183 generate CL_MISSING_OK or CL_SAVE.
18184 * optc-gen.awk: Update to generate bit-field output as well as
18185 flags field.
18186 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
18187 bit-field instead of CL_REJECT_DRIVER flag.
18188 * opts-common.c (generate_canonical_option,
18189 decode_cmdline_option): Use bit-fields instead of CL_* flags.
18190 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
18191 instead of CL_REJECT_NEGATIVE flag.
18192 * toplev.c (print_switch_values): Use cl_report bit-field instead
18193 of CL_REPORT flag.
18194
d4d73ce2
EB
181952011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18196
18197 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
18198 a zero minimum index only if it is redundant.
18199
b8faca75
VM
182002011-03-31 Vladimir Makarov <vmakarov@redhat.com>
18201
18202 PR rtl-optimization/48381
18203 * ira-color.c (assign_hard_reg): Use hard reg set intersection
18204 instead of ira_class_hard_reg_index for calculating conflicting
18205 hard registers.
18206
7d11cebe
SB
182072011-03-31 Steven Bosscher <steven@gcc.gnu.org>
18208
18209 * cprop.c: Clean up hash table building.
18210 (reg_avail_info): Remove.
18211 (oprs_available_p): Remove.
18212 (record_last_reg_set_info): Remove.
18213 (record_last_set_info): Remove.
18214 (reg_available_p): New function.
18215 (gcse_constant_p): Do not treat unfolded conditions as constants.
18216 (make_set_regs_unavailable): New function.
18217 (hash_scan_set): Simplify with new reg_available_p.
18218 (compute_hash_table_work): Traverse insns stream only once.
18219 Do not compute reg_avail_info. Traverse insns in reverse order.
18220 Record implicit sets after recording explicit sets from the block.
18221
98faf84f
MM
182222011-03-31 Michael Matz <matz@suse.de>
18223
e9c18386 18224 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 18225
f52d97da
AS
182262011-03-31 Anatoly Sokolov <aesok@post.ru>
18227
18228 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
18229 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
18230 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18231 (h8300_mode_dependent_address_p): New function.
18232 (h8300_get_index): Make static.
18233
e16b6fd0
JL
182342011-03-31 Jeff Law <law@redhat.com>
18235
10c51983
JL
18236 * reload1.c (elimination_effects): Fix typo in recent change.
18237
e9c18386 18238 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
18239 typo potentially leading to null pointer dereference.
18240
18241 * caller-save.c (new_saved_hard_reg): Eliminate return value.
18242 (setup_save_areas): Corresponding changes to avoid useless
18243 assignments.
18244
18245 * jump.c (reversed_comparison_code_parts): Avoid successive return
18246 statements when REVERSE_CONDITION is defined.
18247
18248 * expr.c (expand_assignment): Avoid useless assignments.
18249 (expand_expr_real_1): Likewise.
18250 (expand_expr_real_2): Avoid useless statements.
18251
18252 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
18253
18254 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18255
18256 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
18257 statements.
18258
18259 * stmt.c (expand_expr_stmt): Avoid useless assignment.
18260
eb1eb914
JM
182612011-03-31 Joseph Myers <joseph@codesourcery.com>
18262
18263 PR target/47109
18264 * doc/tm.texi.in (TARGET_VERSION): Remove.
18265 * doc/tm.texi: Regenerate.
18266 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
18267 * collect2.c (main): Don't use TARGET_VERSION.
18268 * mips-tdump.c (main): Don't use TARGET_VERSION.
18269 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 18270 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
18271 * config/rs6000/vxworksae.h: Remove.
18272 * config/alpha/alpha.h (TARGET_VERSION): Remove.
18273 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
18274 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
18275 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
18276 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18277 * config/arm/arm.h (TARGET_VERSION): Remove.
18278 * config/arm/coff.h (TARGET_VERSION): Remove.
18279 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
18280 * config/arm/elf.h (TARGET_VERSION): Remove.
18281 * config/arm/freebsd.h (TARGET_VERSION): Remove.
18282 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
18283 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
18284 * config/arm/pe.h (TARGET_VERSION): Remove.
18285 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
18286 * config/arm/semi.h (TARGET_VERSION): Remove.
18287 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
18288 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
18289 * config/arm/vxworks.h (TARGET_VERSION): Remove.
18290 * config/avr/avr.h (TARGET_VERSION): Remove.
18291 * config/bfin/bfin.h (TARGET_VERSION): Remove.
18292 * config/fr30/fr30.h (TARGET_VERSION): Remove.
18293 * config/frv/frv.h (TARGET_VERSION): Remove.
18294 * config/h8300/h8300.h (TARGET_VERSION): Remove.
18295 * config/i386/cygwin.h (TARGET_VERSION): Remove.
18296 * config/i386/darwin.h (TARGET_VERSION): Remove.
18297 * config/i386/darwin64.h (TARGET_VERSION): Remove.
18298 * config/i386/djgpp.h (TARGET_VERSION): Remove.
18299 * config/i386/freebsd.h (TARGET_VERSION): Remove.
18300 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
18301 * config/i386/gnu.h (TARGET_VERSION): Remove.
18302 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
18303 * config/i386/i386elf.h (TARGET_VERSION): Remove.
18304 * config/i386/linux.h (TARGET_VERSION): Remove.
18305 * config/i386/linux64.h (TARGET_VERSION): Remove.
18306 * config/i386/lynx.h (TARGET_VERSION): Remove.
18307 * config/i386/mingw32.h (TARGET_VERSION): Remove.
18308 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
18309 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
18310 * config/i386/netware.h (TARGET_VERSION): Remove.
18311 * config/i386/nto.h (TARGET_VERSION): Remove.
18312 * config/i386/openbsd.h (TARGET_VERSION): Remove.
18313 * config/i386/vxworks.h (TARGET_VERSION): Remove.
18314 * config/ia64/elf.h (TARGET_VERSION): Remove.
18315 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
18316 * config/ia64/hpux.h (TARGET_VERSION): Remove.
18317 * config/ia64/linux.h (TARGET_VERSION): Remove.
18318 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18319 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
18320 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18321 * config/lm32/lm32.h (TARGET_VERSION): Remove.
18322 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
18323 * config/m32c/m32c.h (TARGET_VERSION): Remove.
18324 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
18325 * config/m32r/m32r.h (TARGET_VERSION): Remove.
18326 * config/m68k/linux.h (TARGET_VERSION): Remove.
18327 * config/m68k/m68k.h (TARGET_VERSION): Remove.
18328 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
18329 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
18330 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
18331 * config/mep/mep.h (TARGET_VERSION): Remove.
18332 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
18333 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18334 * config/mips/iris6.h (MACHINE_TYPE): Remove.
18335 * config/mips/linux.h (TARGET_VERSION): Remove.
18336 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
18337 * config/mips/vxworks.h (TARGET_VERSION): Remove.
18338 * config/mmix/mmix.h (TARGET_VERSION): Remove.
18339 * config/mn10300/linux.h (TARGET_VERSION): Remove.
18340 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
18341 * config/pa/pa.h (TARGET_VERSION): Remove.
18342 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
18343 * config/picochip/picochip.h (TARGET_VERSION): Remove.
18344 * config/rs6000/aix.h (TARGET_VERSION): Remove.
18345 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
18346 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
18347 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
18348 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
18349 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
18350 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
18351 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
18352 * config/rs6000/linux.h (TARGET_VERSION): Remove.
18353 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
18354 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
18355 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
18356 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
18357 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
18358 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
18359 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
18360 * config/s390/linux.h (TARGET_VERSION): Remove.
18361 * config/s390/s390.h (TARGET_VERSION): Remove.
18362 * config/s390/tpf.h (TARGET_VERSION): Remove.
18363 * config/score/score.h (TARGET_VERSION): Remove.
18364 * config/sh/linux.h (TARGET_VERSION): Remove.
18365 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
18366 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
18367 * config/sh/sh.h (TARGET_VERSION): Remove.
18368 * config/sh/sh64.h (TARGET_VERSION): Remove.
18369 * config/sh/superh.h (TARGET_VERSION): Remove.
18370 * config/sh/vxworks.h (TARGET_VERSION): Remove.
18371 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
18372 * config/sparc/linux.h (TARGET_VERSION): Remove.
18373 * config/sparc/linux64.h (TARGET_VERSION): Remove.
18374 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
18375 TARGET_NAME32, TARGET_NAME): Remove.
18376 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
18377 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
18378 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
18379 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
18380 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
18381 * config/spu/spu.h (TARGET_VERSION): Remove.
18382 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
18383 * config/v850/v850.h (TARGET_VERSION): Remove.
18384 * config/vax/linux.h (TARGET_VERSION): Remove.
18385 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
18386 * config/xtensa/elf.h (TARGET_VERSION): Remove.
18387 * config/xtensa/linux.h (TARGET_VERSION): Remove.
18388
ace31bca
EB
183892011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18390
18391 PR target/48142
18392 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
18393 frame-related from frame-unrelated adjustments to the stack pointer.
18394
76f9db36
JJ
183952011-03-31 Jakub Jelinek <jakub@redhat.com>
18396
18397 * common.opt (fdebug-types-section): Move earlier.
18398 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
18399
b7826465
AT
184002011-03-31 Andreas Tobler <andreast@fgznet.ch>
18401
18402 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
18403 var.
18404
1290e54c
NF
184052011-03-30 Nathan Froyd <froydnj@codesourcery.com>
18406
18407 * tree.h (CASE_CHAIN): Define.
18408 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
18409 (gimple_redirect_edge_and_branch): Likewise.
18410
bddc98e1
VM
184112011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18412
18413 PR middle-end/48367
18414 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
18415 calculation.
18416
c865e437
JL
184172011-03-30 Jeff Law <law@redhat.com>
18418
b3750213 18419 * PR bootstrap/48371
c865e437
JL
18420 * reload1.c (reload): Fix botch in last change.
18421
18422 * reload.h (struct reload): Fix typo introduced in last change.
18423
2cdf9574
JM
184242011-03-30 Joseph Myers <joseph@codesourcery.com>
18425
18426 * config/arm/arm.opt (mhard-float, msoft-float): Mark
18427 Undocumented. Remove help text.
18428 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
18429 -mhard-float.
18430
666a21a2
JM
184312011-03-30 Joseph Myers <joseph@codesourcery.com>
18432
18433 * doc/options.texi (NegativeAlias): Document.
18434 (Alias): Mention NegativeAlias.
18435 * opt-functions.awk: Handle NegativeAlias.
e9c18386 18436 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
18437 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
18438 * opts.h (CL_NEGATIVE_ALIAS): Define.
18439 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
18440 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
18441 OPT_mspe_.
18442 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
18443 Alias entries.
18444 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
18445 mno-spe and mno-isel instead of mspe=no and -misel=no.
18446
0fa4e351
MW
184472011-03-29 Mark Wielaard <mjw@redhat.com>
18448
18449 * common.opt (fdebug-types-section): New flag.
18450 * doc/invoke.texi: Document new -fno-debug-types-section flag.
18451 * dwarf2out.c (use_debug_types): New define.
18452 (struct die_struct): Mark die_id with GTY desc use_debug_types.
18453 (print_die): Guard output of type unit signatures using
18454 use_debug_types.
18455 (build_abbrev_table): Replace assert of dwarf_version >= 4
18456 with assert on use_debug_types.
18457 (size_of_die): Likewise.
18458 (unmark_dies): Likewise.
18459 (value_format): Decide AT_ref_external form on use_debug_types.
18460 (output_die): Replace dwarf_version version check guard with
18461 use_debug_types where appropriate.
18462 (modified_type_die): Likewise.
18463 (gen_reference_type_die): Likewise.
18464 (dwarf2out_start_source_file): Likewise.
18465 (dwarf2out_end_source_file): Likewise.
18466 (prune_unused_types_walk_attribs): Likewise.
18467 (dwarf2out_finish): Likewise.
18468
4648deb4
VM
184692011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18470
18471 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
18472
4f431835
RS
184732011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18474
18475 PR rtl-optimization/48332
18476 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
18477 mode of input operand N and modeN to its actual mode.
18478
f2034d06
JL
184792011-03-30 Jeff Law <law@redhat.com>
18480
18481 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
18482 define accessor macro.
18483 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
18484 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
18485 (reg_equiv_init): Likewise.
18486 (reg_equivs_size): New variable.
18487 (reg_equiv_init_size): Remove.
18488 (allocate_initial_values): Move prototype to here from....
18489 * integrate.h (allocate_initial_values): Remove prototype.
18490 * integrate.c: Include reload.h.
18491 (allocate_initial_values): Corresponding changes.
18492 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
18493 (fix_reg_equiv_init, no_equiv): Corresponding changes.
18494 (update_equiv_regs): Corresponding changes.
18495 (ira): Corresponding changes.
18496 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
18497 (push_secondary_reload): Corresponding changes.
18498 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
18499 (make_memloc, find_reloads_address): Corresponding changes.
18500 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
18501 (find_reloads_address_1): Corresponding changes.
18502 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
18503 (refers_to_regno_for_reload_p): Corresponding changes.
18504 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
18505 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
18506 * reload1.c: Include ggc.h.
18507 (grow_reg_equivs): New function.
18508 (replace_pseudos_in, reload): Corresponding changes.
18509 (calculate_needs_all_insns, alter_regs): Corresponding changes.
18510 (eliminate_regs_1, elimination_effects): Corresponding changes.
18511 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
18512 (delete_output_reload): Likewise.
18513 * caller-save.c (mark_referenced_regs): Corresponding changes.
18514 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
18515 * frv/predicates.md (frv_load_operand): Corresponding changes.
18516 * microblaze/microblaze.c (double_memory_operand): Corresponding
18517 changes.
18518 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
18519 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 18520 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
18521 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
18522 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
18523 changes.
18524 * pa/pa.c (emit_move_sequence): Corresponding changes.
18525 * vax/vax.c (nonindexed_address_p): Corresponding changes.
18526
159b81b0
RS
185272011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18528
18529 PR target/47551
18530 * config/arm/arm.c (coproc_secondary_reload_class): Handle
18531 structure modes. Don't check neon_vector_mem_operand for
18532 vector or structure modes.
18533
a6217191
RS
185342011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18535 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18536
18537 PR target/43590
18538 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
18539 operand 1 and reshuffle the operands to match.
18540 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
18541
bd837408
CS
185422011-03-30 Christian Schüler <cschueler@gmx.de>
18543
6955d771 18544 PR driver/48208
bd837408 18545 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 18546
6955d771 18547 PR driver/48260
bd837408
CS
18548 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
18549 handler function.
18550 * config/darwin.opt: Added '-arch' option.
18551
e9c0470a
NC
185522011-03-30 Nick Clifton <nickc@redhat.com>
18553
18554 * config/rx/rx.md: Add peepholes and patterns to combine
18555 extending loads and simple arithmetic instructions.
18556 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
18557 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
18558 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 18559 modes to use pre-decrement and post-increment addressing.
e9c18386 18560 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 18561 addresses.
e9c18386
UB
18562 (rx_print_operand): Add support for %Q. Fix handling of %Q.
18563 (rx_memory_move_cost): Adjust cost of stores.
18564 (rx_adjust_insn_length): New function.
e9c0470a 18565
8a87e7ab
JJ
185662011-03-30 Jakub Jelinek <jakub@redhat.com>
18567
18568 PR c/48305
18569 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18570 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
18571 matching arg00/arg01 types.
18572
12486e03
EB
185732011-03-30 Eric Botcazou <ebotcazou@adacore.com>
18574
18575 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
18576 last_location to UNKNOWN_LOCATION.
18577
0b99eef6
L
185782011-03-30 H.J. Lu <hongjiu.lu@intel.com>
18579
18580 PR target/48349
18581 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
18582 FLOAT_SSE_REGS.
18583
023592aa
JM
185842011-03-30 Joseph Myers <joseph@codesourcery.com>
18585 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18586
18587 PR bootstrap/48337
18588 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
18589 Init(PROCESSOR_V7).
18590 (sparc_cpu): Likewise.
18591 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
18592 PROCESSOR_V7.
18593
ad3b266b
VM
185942011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18595
18596 PR target/48336
18597 PR middle-end/48342
18598 PR rtl-optimization/48345
18599 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
18600 hard regs for given mode from profitable regs when doing secondary
18601 allocation.
18602
633c9126
JL
186032011-03-29 Jeff Law <law@redhat.com>
18604
18605 PR bootstrap/48327
18606 * tree-ssa-threadupdate.c (struct redirection_data): Remove
18607 do_not_duplicate field.
18608 (lookup_redirection_data): Corresponding changes.
18609 (create_duplicates): Always create a template block.
18610 (redirect_edges): Remove code which reused the original block
18611 when it was going to become unreachable code.
18612 (thread_block): Don't set do_not_duplicate field.
18613
eb50f63a
JM
186142011-03-29 Joseph Myers <joseph@codesourcery.com>
18615
18616 * lto-opts.c (register_user_option_p, lto_register_user_option):
18617 Make type argument unsigned.
18618 * lto-streamer.h (lto_register_user_option): Make type argument
18619 unsigned.
18620 * opth-gen.awk: Make CL_* macros unsigned.
18621 * opts-common.c (find_opt): Make lang_mask argument unsigned.
18622 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
18623 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
18624 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
18625 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
18626 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
18627 (find_opt): Make lang_mask argument unsigned.
18628
76763a6d
VM
186292011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18630
18631 PR rtl-optimization/48331
18632 PR rtl-optimization/48334
18633 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
18634 for any used algorithm.
18635
5c82436e
VM
186362011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18637
18638 * ira-conflicts.c (build_object_conflicts): Add unused attribute
18639 to parent_max.
18640
7a81008b
UB
186412011-03-29 Uros Bizjak <ubizjak@gmail.com>
18642
18643 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
18644 (alpha_option_override): Don't set alpha_sr_alias_set.
18645 (emit_frame_store_1): Use gen_frame_mem rather than calling
18646 set_mem_alias_set.
18647 (alpha_expand_epilogue): Ditto.
18648
86c8d1f6
IR
186492011-03-29 Ira Rosen <ira.rosen@linaro.org>
18650
18651 PR tree-optimization/48290
18652 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
18653 vectorization, check that relevant phis in the basic block after
18654 the inner loop are really inner loop's exit phis.
18655
0d12220f
RS
186562011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
18657
e8cf17e7 18658 PR debug/48190
0d12220f
RS
18659 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
18660 (cached_dw_loc_list_def): New structure.
18661 (cached_dw_loc_list): New typedef.
18662 (cached_dw_loc_list_table): New variable.
18663 (cached_dw_loc_list_table_hash): New function.
18664 (cached_dw_loc_list_table_eq): Likewise.
18665 (add_location_or_const_value_attribute): Take a bool cache_p.
18666 Cache the list when the parameter is true.
18667 (gen_formal_parameter_die): Update caller.
18668 (gen_variable_die): Likewise.
18669 (dwarf2out_finish): Likewise.
18670 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
18671 while generating debug info for the decl.
18672 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
18673 (dwarf2out_init): Initialize cached_dw_loc_list_table.
18674 (resolve_addr): Cache the result of resolving a chain of
18675 location lists.
18676
1756cb66
VM
186772011-03-28 Vladimir Makarov <vmakarov@redhat.com>
18678
18679 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
18680 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 18681
1756cb66
VM
18682 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
18683 after regstat_init_n_sets_and_refs.
18684
18685 * ira.c: Add more comments at the top.
18686 (setup_stack_reg_pressure_class, setup_pressure_classes):
18687 Add comments how we compute the register pressure classes.
18688 (setup_allocno_and_important_classes): Add more comments.
18689 (setup_class_translate_array, reorder_important_classes)
18690 (setup_reg_class_relations): Add comments.
18691
18692 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
18693 start of the file.
18694
18695 * ira-color.c: Add 2011 to the Copyright line.
18696 (assign_hard_reg): Add more comments.
18697 (improve_allocation): Ditto.
18698
18699 * ira-costs.c: Add 2011 to the Copyright line.
18700 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
18701 comments.
18702 (setup_regno_cost_classes_by_mode): Ditto.
18703
18704 Initial patches from ira-improv branch:
18705
18706 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
18707
f60c2554 18708 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
18709 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
18710 (ira_create_allocno): Remove initialization of
18711 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
18712 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
18713 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18714 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
18715 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
18716 Initialize ALLOCNO_ADD_DATA.
18717 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
18718 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
18719 ALLOCNO_REG.
18720 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
18721 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
18722
18723 * ira.c (ira_reallocate): Remove.
18724 (setup_pressure_classes): Call
18725 ira_init_register_move_cost_if_necessary. Use
18726 ira_register_move_cost instead of ira_get_register_move_cost.
18727 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
18728 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
18729
18730 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
18731 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18732 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
18733 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
18734 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
18735 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
18736 Fix formatting.
7a81008b 18737 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
18738 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
18739 (struct allocno_color_data): New.
18740 (allocno_color_data_t): New typedef.
18741 (allocno_color_data): New definition.
18742 (ALLOCNO_COLOR_DATA): New macro.
18743 (struct object_color_data): New.
18744 (object_color_data_t): New typedef.
18745 (object_color_data): New definition.
18746 (OBJECT_COLOR_DATA): New macro.
18747 (update_copy_costs, calculate_allocno_spill_cost): Call
18748 ira_init_register_move_cost_if_necessary. Use
18749 ira_register_move_cost instead of ira_get_register_move_cost.
18750 (move_spill_restore, update_curr_costs): Ditto.
18751 (allocno_spill_priority): Make it inline.
7a81008b 18752 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
18753 (struct coalesce_data, coalesce_data_t): New.
18754 (allocno_coalesce_data): New definition.
18755 (ALLOCNO_COALESCE_DATA): New macro.
18756 (merge_allocnos, coalesced_allocno_conflict_p): Use
18757 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
18758 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
18759 (coalesce_allocnos): Ditto.
18760 (setup_coalesced_allocno_costs_and_nums): Ditto.
18761 (collect_spilled_coalesced_allocnos): Ditto.
18762 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
18763 (setup_slot_coalesced_allocno_live_ranges): Ditto.
18764 (coalesce_spill_slots): Ditto.
18765 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
18766 free allocno_coalesce_data.
18767
18768 * ira-conflicts.c: Fix formatting.
18769 (process_regs_for_copy): Call
18770 ira_init_register_move_cost_if_necessary. Use
18771 ira_register_move_cost instead of ira_get_register_move_cost.
18772 (build_object_conflicts): Optimize.
18773
18774 * ira-costs.c (record_reg_classes): Optimize. Call
18775 ira_init_register_move_cost_if_necessary. Use
18776 ira_register_move_cost, ira_may_move_in_cost, and
18777 ira_may_move_out_cost instead of ira_get_register_move_cost and
18778 ira_get_may_move_cost.
18779 (record_address_regs): Ditto.
18780 (scan_one_insn): Optimize.
18781 (find_costs_and_classes): Optimize.
18782 (process_bb_node_for_hard_reg_moves): Call
18783 ira_init_register_move_cost_if_necessary. Use
18784 ira_register_move_cost instead of ira_get_register_move_cost.
18785
18786 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
18787 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
18788 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
18789 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
18790 definitions.
18791 (ira_initiate_emit_data, ira_finish_emit_data)
18792 (create_new_allocno): New functions.
7a81008b 18793 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
18794 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
18795 Use ira_register_move_cost instead of ira_get_register_move_cost.
18796
18797 * ira-int.h: Fix some comments.
7a81008b
UB
18798 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
18799 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
18800 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
18801 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
18802 add_data.
18803 (struct ira_allocno): Make mode and aclass a bitfield. Move other
18804 bitfield after mode. Make hard_regno a short int. Make
18805 hard_regno short. Remove first_coalesced_allocno and
18806 next_coalesced_allocno. Move mem_optimized_dest_p,
18807 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
18808 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
18809 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
18810 temp, colorable_p. Add new member add_data.
18811 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
18812 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
18813 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
18814 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
18815 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
18816 (ALLOCNO_ADD_DATA): New macro.
18817 (ira_emit_data_t): New typedef.
18818 (struct ira_emit_data): New. Move mem_optimized_dest_p,
18819 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
18820 from struct ira_allocno.
18821 (ALLOCNO_EMIT_DATA): New macro.
18822 (ira_allocno_emit_data, allocno_emit_reg): New.
18823 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 18824 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
18825 (OBJECT_ADD_DATA): New macro.
18826 (ira_reallocate): Remove.
18827 (ira_initiate_emit_data, ira_finish_emit_data): New.
18828 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
18829 (ira_init_register_move_cost_if_necessary): New.
18830 (ira_object_conflict_iter_next): Merge into
18831 ira_object_conflict_iter_cond.
7a81008b 18832 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 18833
f60c2554 18834 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
18835 ira_init_register_move_cost_if_necessary. Use
18836 ira_register_move_cost instead of ira_get_register_move_cost.
18837
18838 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
18839
18840 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
18841
18842 * ira-costs.c: Fix formatting.
18843 (cost_classes, cost_classes_num): Remove.
18844 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
18845 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
18846 (cost_classes_del, cost_classes_htab): New.
18847 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
18848 (initiate_regno_cost_classes, setup_cost_classes): New.
18849 (setup_regno_cost_classes_by_aclass): New.
7a81008b 18850 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
18851 (record_reg_classes): Use regno_cost_classes instead of
18852 cost_classes. Move checking opposite operand up.
18853 (record_address_regs): Use regno_cost_classes
18854 instead of cost_classes.
18855 (scan_one_insn): Ditto. Use always general register.
18856 (print_allocno_costs): Use regno_cost_classes instead of
18857 cost_classes.
18858 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
18859 (find_costs_and_classes): Set up cost classes for each registers.
18860 Use also their mode for this. Use regno_cost_classes instead of
18861 cost_classes.
18862 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
18863 cost_classes.
18864 (free_ira_costs, ira_init_costs): Don't use cost_classes.
18865 (ira_costs, ira_set_pseudo_classes): Call
18866 initiate_regno_cost_classes and finish_regno_cost_classes.
18867
18868 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
18869
18870 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
18871
18872 * target.def (ira_cover_classes): Remove.
18873
7a81008b 18874 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
18875
18876 * doc/tm.texi.in: Ditto.
18877
18878 * ira-conflicts.c: Remove mentioning cover classes from the file.
18879 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 18880 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
18881
18882 * targhooks.c (default_ira_cover_classes): Remove.
18883
18884 * targhooks.h (default_ira_cover_classes): Ditto.
18885
18886 * haifa-sched.c: Remove mentioning cover classes from the file.
18887 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
18888 ira_pressure_classes and ira_pressure_classes_num instead of
18889 ira_reg_class_cover_size and ira_reg_class_cover. Use
18890 sched_regno_pressure_class instead of sched_regno_cover_class.
18891 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
18892 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18893
18894 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
18895 classes from the file.
18896 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
18897 (struct object_hard_regs, struct object_hard_regs_node): New.
18898 (struct ira_object): New members profitable_hard_regs,
18899 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
18900 (struct ira_allocno): Rename cover_class to aclass. Rename
18901 cover_class_cost and updated_cover_class_cost to class_cost and
18902 updated_class_cost. Remove splay_removed_p and
18903 left_conflict_size. Add new members colorable_p.
18904 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
18905 (ALLOCNO_COLORABLE_P): New macro.
18906 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
18907 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
18908 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
18909 (OBJECT_...): Rename parameter C to O.
18910 (OBJECT_PROFITABLE_HARD_REGS): New macro.
18911 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
18912 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
18913 (struct target_ira_int): New members x_ira_max_memory_move_cost,
18914 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
18915 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
18916 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
18917 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
18918 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
18919 x_ira_reg_class_subunion.
18920 (ira_max_memory_move_cost, ira_max_register_move_cost)
18921 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
18922 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
18923 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 18924 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
18925 (ira_reg_class_union): Rename to ira_reg_class_subunion.
18926 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
18927 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18928 (ira_tune_allocno_costs_and_cover_classes): Rename to
18929 ira_tune_allocno_costs.
18930 (ira_debug_hard_regs_forest): New.
18931 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
18932 (ira_object_conflict_iter_next): Fix comments.
7a81008b 18933 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
18934 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
18935 cover_class to aclass.
18936 (ira_allocate_and_accumulate_costs): Ditto.
18937 (ira_allocate_and_set_or_copy_costs): Ditto.
18938
18939 * opts.c (decode_options): Remove ira_cover_class check.
18940
18941 * ira-color.c: Remove mentioning cover classes from the file. Use
18942 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
18943 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
18944 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
18945 (splay-tree.h): Remove include.
18946 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
18947 before copy_freq_compare_func.
18948 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
18949 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
18950 New definitions.
18951 (hard_regs_roots, hard_regs_node_vec): Ditto.
18952 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
18953 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
18954 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
18955 (create_new_object_hard_regs_node): Ditto.
18956 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 18957 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
18958 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
18959 Ditto.
18960 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
18961 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
18962 (remove_unused_object_hard_regs_nodes): Ditto.
18963 (enumerate_object_hard_regs_nodes): Ditto.
18964 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
18965 (object_hard_regs_subnode_t): Ditto.
18966 (struct object_hard_regs_subnode): Ditto.
18967 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
18968 (setup_object_hard_regs_subnode_index): Ditto.
18969 (get_object_hard_regs_subnodes_num): Ditto.
18970 (form_object_hard_regs_nodes_forest): Ditto.
18971 (finish_object_hard_regs_nodes_tree): Ditto.
18972 (finish_object_hard_regs_nodes_forest): Ditto.
18973 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 18974 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
18975 (pseudos_have_intersected_live_ranges_p): Rename to
18976 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
18977 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
18978 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
18979 (update_copy_costs): Remove assert. Skip cost update if the hard
18980 reg does not belong the class.
18981 (assign_hard_reg): Process only profitable hard regs.
18982 (uncolorable_allocnos_num): Make it scalar.
18983 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18984 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
18985 and ira_reg_class_max_nregs.
18986 (bucket_allocno_compare_func): Check frequency first.
18987 (sort_bucket): Add compare function as a parameter.
18988 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
18989 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
18990 (push_allocno_to_stack): Rewrite for checking new allocno
18991 colorability.
7a81008b 18992 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
18993 (push_only_colorable): Pass new parameter to sort_bucket.
18994 (push_allocno_to_spill): Remove.
18995 (allocno_spill_priority_compare): Make it inline and rewrite.
18996 (splay_tree_allocate, splay_tree_free): Remove.
18997 (allocno_spill_sort_compare): New function.
18998 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
18999 build and use splay tree. Choose first allocno in uncolorable
19000 allocno bucket to spill. Remove setting spill cost.
19001 (all_conflicting_hard_regs): Remove.
19002 (setup_allocno_available_regs_num): Check only profitable hard
19003 regs. Print info about hard regs nodes.
19004 (setup_allocno_left_conflicts_size): Remove.
19005 (put_allocno_into_bucket): Don't call
7a81008b 19006 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
19007 (improve_allocation): New.
19008 (color_allocnos): Call setup_profitable_hard_regs,
19009 form_object_hard_regs_nodes_forest, improve_allocation,
19010 finish_object_hard_regs_nodes_forest. Setup spill cost.
19011 (print_loop_title): Use pressure classes.
19012 (color_allocnso): Ditto.
19013 (do_coloring): Remove allocation and freeing splay_tree_node_pool
19014 and allocnos_for_spilling.
19015 (ira_sort_regnos_for_alter_reg): Don't setup members
19016 {first,next}_coalesced_allocno.
19017 (color): Remove allocating and freeing removed_splay_allocno_vec.
19018 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
19019 prohibited_class_mode_regs.
19020
19021 * ira-lives.c: Remove mentioning cover classes from the file. Fix
19022 formatting.
19023 (update_allocno_pressure_excess_length): Use pressure classes.
19024 (inc_register_pressure, dec_register_pressure): Check for pressure
19025 class.
19026 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
19027 pressure class. Use ira_reg_class_nregs instead of
19028 ira_reg_class_max_nregs.
19029 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
19030 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
19031 (single_reg_class): Use ira_reg_class_nregs instead of
19032 ira_reg_class_max_nregs.
19033 (process_bb_node_lives): Use pressure classes.
19034
19035 * ira-emit.c: Remove mentioning cover classes from the file. Use
19036 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
19037 (change_loop): Use pressure classes.
19038 (modify_move_list): Call ira_set_allocno_class instead of
19039 ira_set_allocno_cover_class.
19040
19041 * ira-build.c: Remove mentioning cover classes from the file. Use
19042 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
19043 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
19044 ALLOCNO_UPDATED_CLASS_COST instead of
19045 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
19046 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
19047 (ira_create_allocno): Remove initialization of
19048 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
19049 ALLOCNO_COLORABLE_P.
19050 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
19051 Update conflict regs for the objects.
19052 (create_cap_allocno): Remove assert. Don't propagate
19053 ALLOCNO_AVAILABLE_REGS_NUM.
19054 (ira_free_allocno_costs): New function.
19055 (finish_allocno): Change a part of code into call of
19056 ira_free_allocno_costs.
19057 (low_pressure_loop_node_p): Use pressure classes.
19058 (object_range_compare_func): Don't compare classes.
19059 (setup_min_max_conflict_allocno_ids): Ditto.
19060
19061 * loop-invariant.c: Remove mentioning cover classes from the file.
19062 Use ira_pressure_classes and ira_pressure_classes_num instead of
19063 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
19064 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
19065 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19066 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
19067 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
19068 STACK_REG_COVER_CLASS.
19069 (get_regno_cover_class): Rename to get_regno_pressure_class.
19070 (move_loop_invariants): Initialize and finalize regstat.
19071
19072 * ira.c: Remove mentioning cover classes from the file. Add
19073 comments about coloring without cover classes. Use ALLOCNO_CLASS
19074 instead of ALLOCNO_COVER_CLASS. Fix formatting.
19075 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
19076 setup_class_subset_and_memory_move_costs.
19077 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
19078 (setup_cover_and_important_classes): Rename to
19079 setup_allocno_and_important_classes.
19080 (setup_class_translate_array): New.
19081 (setup_class_translate): Call it for allocno and pressure classes.
19082 (cover_class_order): Rename to allocno_class_order.
19083 (comp_reg_classes_func): Use ira_allocno_class_translate instead
19084 of ira_class_translate.
19085 (reorder_important_classes): Set up ira_important_class_nums.
19086 (setup_reg_class_relations): Set up ira_reg_class_superunion.
19087 (print_class_cover): Rename to print_classes. Add parameter.
19088 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
19089 Print pressure classes too.
19090 (find_reg_class_closure): Rename to find_reg_classes. Don't call
19091 setup_reg_subclasses.
7a81008b 19092 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
19093 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19094 (setup_prohibited_class_mode_regs): Use
7a81008b 19095 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
19096 (clarify_prohibited_class_mode_regs): New function.
19097 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
19098 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
19099 (ira_init_once): Initialize them.
19100 (free_register_move_costs): Process them.
19101 (ira_init): Move calls of find_reg_classes and
19102 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
19103 Call clarify_prohibited_class_mode_regs.
19104 (ira_no_alloc_reg): Remove.
19105 (too_high_register_pressure_p): Use pressure classes.
19106
19107 * sched-deps.c: Remove mentioning cover classes from the file.
19108 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
19109 ira_pressure_classes and ira_pressure_classes_num instead of
19110 ira_reg_class_cover_size and ira_reg_class_cover.
19111 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
19112 sched_regno_pressure_class instead of sched_regno_cover_class.
19113 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
19114 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19115
19116 * ira.h: Add 2010 to Copyright.
19117 (ira_no_alloc_reg): Remove external.
19118 (struct target_ira): Rename x_ira_hard_regno_cover_class,
19119 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
19120 x_ira_class_translate to x_ira_hard_regno_allocno_class,
19121 x_ira_allocno_classes_num, x_ira_allocno_classes, and
19122 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
19123 x_ira_pressure_classes, x_ira_pressure_class_translate, and
19124 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
19125 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
19126 x_ira_no_alloc_regs.
7a81008b 19127 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
19128 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
19129 ira_allocno_classes_num and ira_allocno_classes.
19130 (ira_class_translate): Rename to ira_allocno_class_translate.
19131 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
19132 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
19133 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19134 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
19135 (ira_no_alloc_regs): New.
19136
19137 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
19138 classes from the file. Use ALLOCNO_CLASS instead of
19139 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
19140 ALLOCNO_COVER_CLASS_COST.
19141 (regno_cover_class): Rename to regno_aclass.
19142 (record_reg_classes): Use ira_reg_class_subunion instead of
19143 ira_reg_class_union.
19144 (record_address_regs): Check overflow.
19145 (scan_one_insn): Ditto.
7a81008b 19146 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
19147 (print_pseudo_costs): Use REG_N_REFS.
19148 (find_costs_and_classes): Use classes intersected with them on the
19149 1st pass. Check overflow. Use ira_reg_class_subunion instead of
19150 ira_reg_class_union. Use ira_allocno_class_translate and
19151 regno_aclass instead of ira_class_translate and regno_cover_class.
19152 Modify code for finding regno_aclass. Setup preferred classes for
19153 the next pass.
19154 (setup_allocno_cover_class_and_costs): Rename to
19155 setup_allocno_class_and_costs. Use regno_aclass instead of
19156 regno_cover_class. Use ira_set_allocno_class instead of
19157 ira_set_allocno_cover_class.
19158 (init_costs, finish_costs): Use regno_aclass instead of
19159 regno_cover_class.
19160 (ira_costs): Use setup_allocno_class_and_costs instead of
19161 setup_allocno_cover_class_and_costs.
19162 (ira_tune_allocno_costs_and_cover_classes): Rename to
19163 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
19164 by processing objects. Use ira_reg_class_max_nregs instead of
19165 ira_reg_class_nregs.
19166
19167 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
19168
19169 * sched-int.h: Remove mentioning cover classes from the file.
19170 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
19171
19172 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
19173 classes from the file.
19174 (struct reg_pref): Rename coverclass into allocnoclass.
19175 (reg_cover_class): Rename to reg_allocno_class.
19176
7a81008b 19177 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
19178
19179 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
19180
19181 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
19182
19183 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
19184
19185 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
19186
19187 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
19188
19189 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
19190
19191 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
19192
19193 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
19194
19195 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
19196
19197 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
19198 (i386_ira_cover_classes): Ditto.
19199
19200 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
19201
19202 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
19203
19204 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
19205
19206 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
19207
19208 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
19209
19210 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
19211
19212 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
19213 (mips_ira_cover_classes): Ditto.
19214
19215 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
19216
19217 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
19218
19219 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
19220
19221 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
19222
19223 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
19224
19225 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
19226 (IRA_COVER_CLASSES_VSX): Ditto.
19227
19228 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
19229 (rs6000_ira_cover_classes): Ditto.
19230
19231 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
19232
19233 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
19234
19235 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
19236
19237 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
19238
19239 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
19240
19241 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
19242
19243 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
19244
19245 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
19246
19247 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
19248
19249 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
19250
2b80199f
JJ
192512011-03-29 Jakub Jelinek <jakub@redhat.com>
19252
71dae1fe
JJ
19253 PR debug/48253
19254 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
19255 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
19256 dw_fde_unlikely_section_end_label, cold_in_std_section,
19257 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
19258 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
19259 fields.
19260 (output_fde): Use dw_fde_second_{begin,end} if second is
19261 true, otherwise dw_fde_{begin,end}.
19262 (output_call_frame_info): Test dw_fde_second_begin != NULL
19263 instead of dw_fde_switched_sections.
19264 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
19265 fields, initialize new fields. Initialize in_std_section
19266 unconditionally from the first partition.
19267 (dwarf2out_end_epilogue): Don't override dw_fde_end when
19268 dw_fde_second_begin is non-NULL.
19269 (dwarf2out_switch_text_section): Stop initializing removed
19270 dw_fde_struct fields, initialize new fields, initialize
19271 also dw_fde_end here. Set dw_fde_switch_cfi even when
19272 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
19273 (struct var_loc_list_def): Add last_before_switch field.
19274 (arange_table, arange_table_allocated, arange_table_in_use,
19275 ARANGE_TABLE_INCREMENT, add_arange): Removed.
19276 (size_of_aranges): Count !in_std_section and !second_in_std_section
19277 hunks in fdes, instead of looking at arange_table_in_use.
19278 (output_aranges): Add aranges_length argument, don't call
19279 size_of_aranges here. Instead of using aranges_table*
19280 emit ranges for fdes when !in_std_section resp.
19281 !second_in_std_section.
19282 (dw_loc_list): Break ranges crossing section switch.
19283 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 19284 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
19285 (gen_subprogram_die): Don't call add_arange. Use
19286 dw_fde_{begin,end} for first partition and if switched
19287 section dw_fde_second_{begin,end} for the second.
19288 (var_location_switch_text_section_1,
19289 var_location_switch_text_section): New functions.
19290 (dwarf2out_begin_function): Initialize cold_text_section even
19291 when function_section () isn't text_section.
19292 (prune_unused_types): Don't walk arange_table.
19293 (dwarf2out_finish): Don't needlessly test
19294 flag_reorder_blocks_and_partition when testing cold_text_section_used.
19295 If info_section_emitted, call size_of_aranges and if it indicates
19296 non-empty .debug_aranges, call output_aranges with the computed
19297 size. Stop using removed dw_fde_struct fields, use
19298 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
19299 for second.
19300
2b80199f
JJ
19301 PR debug/48203
19302 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
19303 create ENTRY_VALUE if incoming or address of incoming's MEM
19304 is a hard REG.
19305 * dwarf2out.c (mem_loc_descriptor): Don't emit
19306 DW_OP_GNU_entry_value of DW_OP_fbreg.
19307 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
19308 on ENTRY_VALUE is able to find the canonical parameter VALUE.
19309 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
19310 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
19311 ENTRY_VALUE_EXPs.
19312 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
19313 is a REG_P or MEM_P with REG_P address, compute hash directly
19314 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
19315 (preserve_only_constants): Don't clear VALUES forwaring
19316 ENTRY_VALUE to some other VALUE.
19317
8a445129
RS
193182011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
19319
19320 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
19321 instead of GEN_INT.
19322
c82fee88
EB
193232011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19324
19325 * cfgexpand.c (expand_gimple_cond): Always set the source location and
19326 block before expanding the statement.
19327 (expand_gimple_stmt_1): Likewise. Set them here...
19328 (expand_gimple_stmt): ...and not here. Tidy.
19329 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
19330 unknown.
19331
e45425ec
SB
193322011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19333
19334 * Makefile.in: New rule for cprop.o.
19335 * gcse.c: Move constant/copy propagation to cprop.c.
19336 (compute_local_properties): Only handle expression tables.
19337 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
19338 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
19339 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
19340 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 19341 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
19342 compute_cprop_data, find_used_regs, try_replace_reg,
19343 find_avail_set, cprop_jump, constprop_register, cprop_insn,
19344 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
19345 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
19346 find_bypass_set, reg_killed_on_edge, bypass_block,
19347 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
19348 execute_rtl_cprop, pass_rtl_cprop): Move to...
19349 * cprop.c: ...here. New file, constant/copy propagation for RTL
19350 moved from gcse.c to here with minor cleanups in duplicated code.
19351
c09d5426
L
193522011-03-28 H.J. Lu <hongjiu.lu@intel.com>
19353
19354 * config/i386/i386.c (flag_opts): Fix a typo in
19355 -mavx256-split-unaligned-store.
19356
9eaa7740
AS
193572011-03-28 Anatoly Sokolov <aesok@post.ru>
19358
19359 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19360 LIBCALL_VALUE): Remove macros.
19361 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19362 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19363 (h8300_function_value, h8300_libcall_value,
19364 h8300_function_value_regno_p): New functions.
19365
dcec2be2
AS
193662011-03-28 Anatoly Sokolov <aesok@post.ru>
19367
19368 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
19369
520af9ec
JL
193702011-03-28 Jeff Law <law@redhat.com>
19371
19372 * tree-ssa-threadupdate.c (redirect_edges): Call
19373 create_edge_and_update_destination_phis as needed.
19374 (create_edge_and_update_destination_phis): Accept new BB argument.
19375 All callers updated.
19376 (thread_block): Do not update the profile when threading around
19377 intermediate blocks.
19378 (thread_single_edge): Likewise.
19379 (determine_bb_domination_status): If BB is not a successor of the
19380 loop header, return NONDOMINATING.
19381 (register_jump_thread): Note when we register a jump thread around
19382 an intermediate block.
19383 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
19384 (thread_across_edge): Use it.
19385
7450b54f
TG
193862011-03-28 Tristan Gingold <gingold@adacore.com>
19387
19388 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
19389 when for_return is 2.
19390
649beb33
JL
193912011-03-28 Jeff Law <law@redhat.com>
19392
19393 * var-tracking.c (canonicalize_values_mark): Delete unused
19394 lhs assignment.
19395 (canonicalize_values_star, set_variable_part): Likewise.
19396 (clobber_variable_part, delete_variable_part): Likewise.
19397
d5b8da97
SB
193982011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19399
19400 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
19401
322dd859
MJ
194022011-03-28 Martin Jambor <mjambor@suse.cz>
19403
19404 * tree-inline.c (expand_call_inline): Do not check that destination
19405 node is analyzed.
19406 (optimize_inline_calls): Assert that destination node is analyzed.
19407 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
19408 not call tree_lowering_passes.
19409 * cgraph.h (cgraph_analyze_function): Declare.
19410 * cgraphunit.c (cgraph_analyze_function): Make public.
19411
aa53e58b
JM
194122011-03-28 Joseph Myers <joseph@codesourcery.com>
19413
19414 * config/sparc/sparc-opts.h: New.
19415 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
19416 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
19417 (sparc_option_override): Store processor_type enumeration rather
19418 than string in cpu_default. Remove name and enumeration from
19419 cpu_table. Directly default -mcpu then default -mtune from -mcpu
19420 without using sparc_select. Use target_flags_explicit instead of
19421 fpu_option_set.
19422 * config/sparc/sparc.h (enum processor_type): Move to
19423 sparc-opts.h.
19424 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
19425 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
19426 HeaderInclude entry.
19427 (mcpu=, mtune=): Use Var and Enum.
19428 (sparc_processor_type): New Enum and EnumValue entries.
19429
dd350eba
RO
194302011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19431 Iain Sandoe <iains@gcc.gnu.org>
19432
19433 PR target/48245
19434 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
19435
1b29f05e
EB
194362011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19437
19438 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
19439 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
19440 Insert new statements at it in lieu of STMT.
19441 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
19442 * tree-vect-stmts.c (vectorizable_store): Likewise.
19443 (vectorizable_load): Likewise.
19444
506e6808
UB
194452011-03-28 Uros Bizjak <ubizjak@gmail.com>
19446
19447 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
19448 (divtf3): Ditto.
19449 (multf3): Ditto.
19450 (subtf3): Ditto.
19451
2e939ee9
L
194522011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19453
19454 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
19455 unaligned 256bit load/store.
19456 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
19457 (*avx_movdqu<avxmodesuffix>): Likewise.
19458
5e85ab88
JDA
194592011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19460
19461 PR target/48288
19462 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
19463 * config/pa/pa.md (iordi3): Use new predicate in expander.
19464 (iorsi3): Likewise.
19465
47be3d6d
AS
194662011-03-27 Anatoly Sokolov <aesok@post.ru>
19467
506e6808 19468 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 19469 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
19470 * config/mips/mips-protos.h (mips_function_value): Remove.
19471 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
19472 (mips_function_value_1): ... this. Make static. Handle receiving
19473 the function type in 'fn_decl_or_type' argument.
19474 (mips_function_value, mips_libcall_value,
19475 mips_function_value_regno_p): New function.
19476 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19477 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19478
d253656a
L
194792011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19480
19481 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
19482 and -mavx256-split-unaligned-store.
19483 (ix86_option_override_internal): Split 32-byte AVX unaligned
19484 load/store by default.
19485 (ix86_avx256_split_vector_move_misalign): New.
19486 (ix86_expand_vector_move_misalign): Use it.
19487
19488 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
19489 -mavx256-split-unaligned-store.
19490
19491 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
19492 256bit load/store. Generate unaligned store on misaligned memory
19493 operand.
19494 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
19495 256bit load/store.
19496 (*avx_movdqu<avxmodesuffix>): Likewise.
19497
19498 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
19499 -mavx256-split-unaligned-store.
19500
1ea9206a
RS
195012011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19502
19503 PR target/38598
19504 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
19505 Update commentary.
19506
b99ce2a8
RS
195072011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19508
19509 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
19510 opno arguments with an expand_operand. Use create_input_operand.
19511 (mips_prepare_builtin_target): Delete.
19512 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
19513 functions.
19514 (mips_expand_builtin_direct): Use create_output_operand and
19515 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
19516 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
19517 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
19518
69d52339
IR
195192011-03-27 Ira Rosen <ira.rosen@linaro.org>
19520
19521 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
19522 function.
19523 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
19524
ba5e9aca
EB
195252011-03-26 Eric Botcazou <ebotcazou@adacore.com>
19526
19527 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
19528 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
19529 basic blocks and call commit_edge_insertions directly.
19530 (fixup_abnormal_edges): Move from here to...
19531 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
19532 on the edges and return whether some have actually been inserted.
19533 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
19534 compensation code.
19535
5d369d58
AB
195362011-03-26 Andrey Belevantsev <abel@ispras.ru>
19537
19538 PR rtl-optimization/48144
19539 * sel-sched-ir.c (merge_history_vect): Factor out from ...
19540 (merge_expr_data): ... here.
19541 (av_set_intersect): Rename to av_set_code_motion_filter.
19542 Update all callers. Call merge_history_vect when an expression
19543 is found in both sets.
19544 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
19545
f082c000
AM
195462011-03-26 Alan Modra <amodra@gmail.com>
19547
19548 * config/rs6000/predicates.md (word_offset_memref_op): Handle
19549 cmodel medium addresses.
19550 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
19551 64-bit gpr loads and stores.
19552 (rs6000_secondary_reload_ppc64): New function.
19553 * config/rs6000/rs6000-protos.h: Declare it.
19554 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
19555
8ac5e12e
AM
195562011-03-26 Alan Modra <amodra@gmail.com>
19557
19558 PR target/47487
19559 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
19560 GNU Go in traceback table.
19561
c2654ded
RH
195622011-03-25 Richard Henderson <rth@redhat.com>
19563
19564 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
19565 if there are exactly 6 operands.
19566 (set_storage_via_setmem): Similarly.
19567
ba78087b
KT
195682011-03-25 Kai Tietz <ktietz@redhat.com>
19569
19570 * collect2.c (write_c_file_stat): Handle backslash
19571 as right-hand directory separator.
19572 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
19573 checking just for slash.
19574 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
19575 instead of checking for trailing slash.
19576 * gcc.c (record_temp_file): Use filename_cmp instead
19577 of strcmp.
19578 (do_spec_1): Likewise.
19579 (replace_outfile_spec_function): Likewise.
19580 (is_directory): Use filename_ncmp instead of strncmp.
19581 (print_multilib_info): Likewise.
19582 * gcov.c (find_source): Use filename_cmp instead
19583 instead of strcmp.
19584 (make_gcov_file_name): Fix order of slash/backslash
19585 checks.
19586 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
19587 (add_standard_paths): Likewise.
19588 * mips-tfile.c (saber_stop): Handle backslash.
19589 * prefix.c (update_path): Use filename_ncmp instead of
19590 strncmp.
19591 * profile.c (output_location): Use filename_cmp instead
19592 of strcmp.
19593 * read-md.c (handle_toplevel_file): Handle backslash.
19594 * tlink.c (frob_extension): Likewise.
19595 * tree-cfg.c (same_line_p): Use filename_cmp instead of
19596 strcmp.
19597 * tree-dump.c (dequeue_and_dump): Handle backslash.
19598 * tree.c (get_file_function_name): Likewise.
19599 * gengtype.c (read_input_list): Likewise.
19600 (get_file_realbasename): Likewise.
19601 (get_output_file_with_visibility): Use filename_cmp
19602 instead of strcmp.
19603
75f6ec9a
RS
196042011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
19605
19606 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
19607 case to VFPv1.
19608
6c4e2997
NF
196092011-03-25 Nathan Froyd <froydnj@codesourcery.com>
19610
19611 * fold-const.c (expr_location_or): New function.
19612 (fold_truth_not_expr): Call it.
19613
0edf1bb2
JL
196142011-03-25 Jeff Law <law@redhat.com>
19615
19616 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
19617 va_end.
19618 * c-family/c-common.c (def_fn_type): Likewise.
19619 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
19620 * emit-rtl.c (gen_rtvec): Likewise.
19621 * lto/lto-lang.c (def_fn_type): Likewise.
19622
fdc2de95
RG
196232011-03-25 Richard Guenther <rguenther@suse.de>
19624
19625 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
19626 also generate copies.
19627 (fini_copy_prop): Handle constant values properly.
19628
21385db0
JJ
196292011-03-25 Jakub Jelinek <jakub@redhat.com>
19630
19631 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
19632 mode size instead of bitsize with DWARF2_ADDR_SIZE.
19633 (hash_loc_operands, compare_loc_operands): Handle
19634 DW_OP_GNU_entry_value.
19635
6510e8bb
KT
196362011-03-25 Kai Tietz <ktietz@redhat.com>
19637
19638 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
19639 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
19640 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
19641 comment and use macro TARGET_64BIT_MS_ABI instead.
19642 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
19643 and change default behavior for 32-bit MS_ABI.
19644 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
19645 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
19646 32-bit, too.
19647 (ix86_cfun_abi): Likewise.
19648 (ix86_maybe_switch_abi): Adjust comment.
19649 (init_cumulative_args): Check for bit-ness in MS_ABI case.
19650 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
19651 instead of checking for SYSV_ABI.
19652 (ix86_nsaved_sseregs): Likewise.
19653 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
19654 to 16 bytes.
19655 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
19656 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
19657 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
19658 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
19659 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
19660
34019e28
RG
196612011-03-25 Richard Guenther <rguenther@suse.de>
19662
19663 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
19664 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19665 (verify_gimple): Remove.
19666 * tree-cfg.c (verify_gimple_call): Merge verification
19667 from verify_stmts.
19668 (verify_gimple_phi): Merge verification from verify_stmts.
19669 (verify_gimple_label): New function.
19670 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
19671 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19672 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
19673 (verify_stmts): Rename to verify_gimple_in_cfg.
19674 (verify_gimple_in_cfg): New function.
19675 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
19676 * tree-ssa.c (verify_ssa): Likewise.
19677 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
19678
605896f5
RG
196792011-03-25 Richard Guenther <rguenther@suse.de>
19680
19681 * passes.c (init_optimization_passes): Add FRE pass after
19682 early SRA.
19683
7baa7c13
BS
196842011-03-25 Bernd Schmidt <bernds@codesourcery.com>
19685 Andrew Stubbs <ams@codesourcery.com>
19686
19687 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
19688 for Cortex-A8.
19689 (arm_movdi_vfp_cortexa8): New pattern.
19690 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
19691 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
19692 instructions when tuning for Cortex-A8. Set attribute "arch".
19693 * config/arm/arm.md: Move include arm-tune.md up a bit.
19694 (define_attr "arch"): Add "onlya8" and "nota8" values.
19695 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
19696
45dbce1b
NF
196972011-03-25 Nathan Froyd <froydnj@codesourcery.com>
19698
4ff08abf 19699 PR bootstrap/48282
45dbce1b
NF
19700 Revert:
19701 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19702
19703 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19704 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
19705 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19706 * passes.c (init_optimization_passes): Move
19707 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19708
ac9a30ae
KT
197092011-03-25 Kai Tietz <ktietz@redhat.com>
19710
19711 * c-typeck.c (comptypes_internal): Replace target
19712 hook call of comp_type_attributes by version in tree.c file.
19713 * gimple.c (gimple_types_compatible_p_1): Likewise.
19714 * tree-ssa.c (useless_type_conversion_p): Likewise.
19715 * tree.c (build_type_attribute_qual_variant): Likewise.
19716 (attribute_value_equal): New static helper function.
19717 (comp_type_attributes): New function.
19718 (merge_attributes): Use attribute_value_equal for comparison.
19719 (attribute_list_contained): Likewise.
19720 * tree.h (comp_type_attributes): New prototype.
19721
afdac116
RG
197222011-03-25 Richard Guenther <rguenther@suse.de>
19723
19724 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
19725 of complex types at -O0.
19726 (verify_gimple_assign_binary): Likewise.
19727 (verify_gimple_assign_ternary): Likewise.
19728
ec6165f8
MW
197292011-03-24 Mark Wielaard <mjw@redhat.com>
19730
19731 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
19732 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
19733
2a5ac39a
MW
197342011-03-24 Mark Wielaard <mjw@redhat.com>
19735
19736 PR debug/48041
19737 * dwarf2out.c (output_abbrev_section): Only write table when
19738 abbrev_die_table_in_use > 1.
19739
e533b2a4
RH
197402011-02-24 Richard Henderson <rth@redhat.com>
19741
19742 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
19743 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
19744 (alpha_expand_unaligned_load_words): Use extql.
19745 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
19746 (emit_insxl): Handle all modes for consistency.
19747
0b2a7367
RH
197482011-02-24 Richard Henderson <rth@redhat.com>
19749
19750 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
19751 (alpha_expand_unaligned_load): Likewise.
19752 (alpha_expand_unaligned_store): Likewise.
19753 (alpha_expand_unaligned_load_words): Likewise.
19754 (alpha_expand_unaligned_store_words): Likewise.
19755 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
19756 (alpha_split_lock_test_and_set_12): Likewise.
19757 (print_operand, alpha_fold_builtin_extxx): Likewise.
19758 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
19759 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
19760 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
19761 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
19762 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
19763 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
19764 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
19765 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
19766 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
19767 (extwl, extll, extql): Similarly.
19768 (inswh, inslh, insqh): Similarly.
19769 (mskbl, mskwl, mskll, mskql): Similarly.
19770 (mskwh, msklh, mskqh): Similarly.
19771
315b2bef
RH
197722011-02-24 Richard Henderson <rth@redhat.com>
19773
19774 * config/alpha/alpha.md (attribute isa): Add er, ner.
19775 (attribute enabled): Handle them.
19776 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
19777
67102517
RH
197782011-02-24 Richard Henderson <rth@redhat.com>
19779
19780 * config/alpha/alpha.md (attribute isa): Add vms.
19781 (attribute enabled): Handle it.
19782 (*movsf): Merge *movsf_{nofix,fix,nofp}.
19783 (*movdf): Merge *movdf_{nofix,fix,nofp}.
19784 (*movtf): Rename from *movtf_internal for consistency.
19785 (*movsi): Merge with *movsi_nt_vms.
19786 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
19787 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
19788 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
19789 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
19790
6aba5cb4
RH
197912011-02-24 Richard Henderson <rth@redhat.com>
19792
19793 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
19794 (extendqisi2, extendhisi2): Likewise.
19795 (extendqidi2): Simplify BWX/non-BWX expansions.
19796 (extendhidi2): Similarly.
19797
bdfb351b
RH
197982011-02-24 Richard Henderson <rth@redhat.com>
19799
19800 * config/alpha/alpha.md (attribute isa): New.
19801 (attribute enabled): New.
19802 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
19803 (zero_extendqisi2, zero_extendqidi2): Similarly.
19804 (zero_extendhisi2, zero_extendhidi2): Similarly.
19805 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
19806
6abe71eb
RH
198072011-02-24 Richard Henderson <rth@redhat.com>
19808
19809 * config/alpha/predicates.md (input_operand): Revert last change;
19810 update comment to mention 32-bit VMS rather than Windows.
19811
7114321e
NF
198122011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19813
19814 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19815 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
19816 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19817 * passes.c (init_optimization_passes): Move
19818 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19819
c8679567
EB
198202011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19821
19822 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
19823
27173058
UB
198242011-03-24 Uros Bizjak <ubizjak@gmail.com>
19825
19826 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
19827 correctly.
19828
6f0c9f06
JJ
198292011-03-24 Jakub Jelinek <jakub@redhat.com>
19830
19831 PR debug/48204
19832 * simplify-rtx.c (simplify_const_unary_operation): Call
19833 real_convert when changing mode class with FLOAT_EXTEND.
19834
662666e5
NC
198352011-03-24 Nick Clifton <nickc@redhat.com>
19836
19837 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
19838 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
19839 * config/rx/rx.c (rx_option_override): Set align_jumps,
19840 align_loops and align_labels if not set by the user.
19841 (rx_align_for_label): New function.
19842 (rx_max_skip_for_label): New function.
19843 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
19844 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
19845 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
19846 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
19847 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
19848
2b99b2b8
RS
198492011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19850
19851 PR rtl-optimization/48263
19852 * optabs.c (expand_binop_directly): Reinstate convert_modes code
19853 and original commutative_p handling. Use maybe_gen_insn.
19854
ccecd6ea
AK
198552011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19856
19857 * reload.c (find_reloads_subreg_address): Add address_reloaded
19858 parameter and return true there if the full address has been
19859 reloaded.
19860 (find_reloads_toplev): Pass address_reloaded flag.
19861 (find_reloads_address_1): Don't use address_reloaded parameter.
19862
67295642
JL
198632011-03-24 Jeff Law <law@redhat.com>
19864
19865 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
19866 unused variable "ann".
19867 (remove_unused_locals): Likewise.
19868
19869 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
19870 statement.
19871
19872 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
19873 after it is freed.
19874
212aa74f
AK
198752011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19876
19877 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
19878 for invalid symbolic addresses.
19879 (s390_secondary_reload): Don't use s390_check_symref_alignment for
19880 larl operands.
19881
fe784e0d
EB
198822011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19883
19884 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
19885 the argument in calls to fold_truth_not_expr.
19886
63ee8641
NF
198872011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19888
19889 * tree.c (record_node_allocation_statistics): New function.
19890 (make_node_stat, copy_node_stat, build_string): Call it.
19891 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
19892 (build1_stat, build_omp_clause): Likewise.
19893
61be2a1c
RS
198942011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19895
19896 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
19897 last commit.
19898
a881aaa7
RG
198992011-03-24 Richard Guenther <rguenther@suse.de>
19900
19901 PR tree-optimization/48271
19902 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
19903 blocks that still exist.
19904
dbaa912c
RG
199052011-03-24 Richard Guenther <rguenther@suse.de>
19906
19907 PR tree-optimization/48270
19908 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
19909 not free datarefs before ddrs.
19910
1d60cc55
EB
199112011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19912
19913 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
19914 from the address built for a reference with variable offset.
19915
c78dd519
UB
199162011-03-24 Uros Bizjak <ubizjak@gmail.com>
19917
19918 PR target/48237
19919 * config/i386/i386.md (*movdf_internal_rex64): Do not split
19920 alternatives that can be handled with movq or movabsq insn.
19921 (*movdf_internal): Disable for !TARGET_64BIT.
19922 (*movdf_internal_nointeger): Ditto.
19923 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
19924
b25b9e8f
NF
199252011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19926
19927 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
19928 (FUNCTION_ARG_ADVANCE): Likewise.
19929 * tm.texi.in: Change references to them to hook references.
19930 * tm.texi: Regenerate.
c78dd519 19931 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
19932 (default_function_incoming_arg): Likewise.
19933 (default_function_arg_advance): Likewise.
c78dd519 19934 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
19935 (function_arg_advance): Likewise.
19936 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
19937
190b2187
RG
199382011-03-24 Richard Guenther <rguenther@suse.de>
19939
19940 PR middle-end/48269
19941 * tree-object-size.c (addr_object_size): Do not double-account
19942 for MEM_REF offsets.
19943
a183b5c7
DN
199442011-03-24 Diego Novillo <dnovillo@google.com>
19945
19946 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 19947 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
19948 (lto_input_data_block): Move from lto-opts.c. Make extern.
19949 Update all users.
19950 (lto_input_string): Rename from input_string. Make extern.
19951 Update all users.
19952 * lto-streamer-out.c (lto_output_string_with_length): Rename from
19953 output_string_with_length.
19954 Output 0 to indicate a non-NULL string. Update all callers to
19955 not emit 0.
19956 (lto_output_string): Rename from output_string. Make extern.
19957 Update all users.
19958 (lto_output_decl_state_streams): Make extern.
19959 (lto_output_decl_state_refs): Make extern.
19960 * lto-streamer.h (lto_input_string): Declare.
19961 (lto_input_data_block): Declare.
19962 (lto_output_string): Declare.
19963 (lto_output_string_with_length): Declare.
19964 (lto_output_decl_state_streams): Declare.
19965 (lto_output_decl_state_refs): Declare.
19966
cfef45c8
RG
199672011-03-24 Richard Guenther <rguenther@suse.de>
19968
19969 PR tree-optimization/46562
19970 * tree.c (build_invariant_address): New function.
19971 * tree.h (build_invariant_address): Declare.
19972 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
19973 a renamed function moved ...
19974 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
19975 Take valueization callback parameter.
19976 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
19977 * gimple-fold.h: New file.
19978 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
19979 (ccp_fold, fold_const_aggregate_ref,
19980 fold_ctor_reference, fold_nonarray_ctor_reference,
19981 fold_array_ctor_reference, fold_string_cst_ctor_reference,
19982 get_base_constructor): Move ...
19983 * gimple-fold.c: ... here.
19984 (gimple_fold_stmt_to_constant_1): New function
19985 split out from ccp_fold. Take a valueization callback parameter.
19986 Valueize all operands.
19987 (gimple_fold_stmt_to_constant): New wrapper function.
19988 (fold_const_aggregate_ref_1): New function split out from
19989 fold_const_aggregate_ref. Take a valueization callback parameter.
19990 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
19991 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
19992 invariant POINTER_PLUS_EXPRs to invariant form.
19993 (vn_valueize): New function.
19994 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
19995 * tree-vrp.c (vrp_valueize): New function.
19996 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
19997 to fold statements to constants.
19998 * tree-ssa-pre.c (eliminate): Properly guard propagation of
19999 function declarations.
20000 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
20001 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
20002
5e0a7e40
RS
200032011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
20004
20005 * config/h8300/predicates.md (jump_address_operand): Fix register
20006 mode check.
20007
bfe068c3
IR
200082011-03-24 Ira Rosen <ira.rosen@linaro.org>
20009
20010 * doc/invoke.texi (max-stores-to-sink): Document.
20011 * params.h (MAX_STORES_TO_SINK): Define.
20012 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
20013 if either vectorization or if-conversion is disabled.
20014 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
20015 tree-vect-data-refs.c vect_equal_offsets.
20016 (dr_equal_offsets_p): New function.
20017 (find_data_references_in_bb): Remove static.
20018 * tree-data-ref.h (find_data_references_in_bb): Declare.
20019 (dr_equal_offsets_p): Likewise.
20020 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
20021 (vect_drs_dependent_in_basic_block): Update calls to
20022 vect_equal_offsets.
20023 (vect_check_interleaving): Likewise.
20024 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
20025 (cond_if_else_store_replacement): Rename to...
20026 (cond_if_else_store_replacement_1): ... this. Change arguments and
20027 documentation.
20028 (cond_if_else_store_replacement): New function.
20029 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
20030 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
20031
4908b0bf
CLT
200322011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
20033
20034 PR target/46934
20035 * config/arm/arm.md (casesi): Use the gen_int_mode() function
20036 to subtract lower bound instead of GEN_INT().
20037
2be478a2
JW
200382011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
20039
20040 PR other/48179
20041 PR other/48221
20042 PR other/48234
20043 * doc/extend.texi (Alignment): Move section to match order in TOC.
20044 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
20045 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
20046
0c617be4
JL
200472011-03-23 Jeff Law <law@redhat.com>
20048
20049 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
20050 before removing the edge.
20051
20052 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
20053 it may have been freed by redirect_branch_edge or
20054 redirect_edge_succ_nodup.
20055
58da96fe
RG
200562011-03-23 Richard Guenther <rguenther@suse.de>
20057
c78dd519 20058 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
20059 (check_va_list_escapes): Likewise.
20060 (check_all_va_list_escapes): Likewise.
20061
b8beb4d1
RG
200622011-03-23 Richard Guenther <rguenther@suse.de>
20063
20064 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
20065 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
20066 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
20067 (alias.o): Likewise.
20068 (ipa-type-escape.o): Remove.
20069 (ipa-struct-reorg.o): Likewise.
20070 (GTFILES): Remove ipa-struct-reorg.c.
20071 * alias.c: Do not include ipa-type-escape.h.
20072 * tree-ssa-alias.c: Likewise.
20073 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
20074 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
20075 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
20076 and ipa-type-escape passes.
20077 * tree-pass.h (pass_ipa_type_escape): Remove.
20078 (pass_ipa_struct_reorg): Likewise.
20079 * ipa-struct-reorg.h: Remove.
20080 * ipa-struct-reorg.c: Likewise.
20081 * ipa-type-escape.h: Likewise.
20082 * ipa-type-escape.c: Likewise.
20083 * doc/invoke.texi (-fipa-struct-reorg): Remove.
20084 (--param struct-reorg-cold-struct-ratio): Likewise.
20085 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20086 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20087 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
20088
f137aa63
AK
200892011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20090
20091 * config/s390/2084.md: Enable all insn reservations also for z9_ec
20092 cpu attribute value.
20093 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
20094 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
20095 * config/s390/s390.c (processor_flags_table): New constant array.
20096 (s390_handle_arch_option): Remove.
20097 (s390_handle_option): Remove s390_handle_arch_option invocations
20098 and OPT_mwarn_framesize_ handling.
20099 (s390_option_override): Remove s390_handle_arch_option invocation.
20100 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
20101 warnings.
20102 * config/s390/s390.md (cpu attribute): Add z9_ec value.
20103 * config/s390/s390.opt (s390_tune, s390_arch)
20104 (march=): Replace s390_arch_option enum and values with
20105 processor_type. Set variable name to s390_arch. Set
20106 initialization value.
20107 (mtune=): Replace s390_arch_option with processor_type. Set
20108 variable name to s390_tune. Set initialization value.
20109
bf90208f
JB
201102011-03-23 Julian Brown <julian@codesourcery.com>
20111
20112 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
20113 accesses which are not naturally aligned.
20114
3460fdf3
RS
201152011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20116
20117 PR target/47553
20118 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
20119
a5c7d693
RS
201202011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20121
20122 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
20123 parameter from "int" to "enum insn_code".
20124 (expand_operand_type): New enum.
20125 (expand_operand): New structure.
20126 (create_expand_operand): New function.
20127 (create_fixed_operand, create_output_operand): Likewise
20128 (create_input_operand, create_convert_operand_to): Likewise.
20129 (create_convert_operand_from, create_address_operand): Likewise.
20130 (create_integer_operand): Likewise.
20131 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
20132 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20133 (expand_insn, expand_jump_insn): Likewise.
20134 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
20135 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
20136 (expand_movstr, expand_builtin___clear_cache): Likewise.
20137 (expand_builtin_lock_release): Likewise.
20138 * explow.c (allocate_dynamic_stack_space): Likewise.
20139 (probe_stack_range): Likewise. Allow check_stack to FAIL,
20140 and use the default handling in that case.
20141 * expmed.c (check_predicate_volatile_ok): Delete.
20142 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
20143 (emit_cstore): Likewise.
20144 * expr.c (emit_block_move_via_movmem): Likewise.
20145 (set_storage_via_setmem, expand_assignment): Likewise.
20146 (emit_storent_insn, try_casesi): Likewise.
20147 (emit_single_push_insn): Likewise. Allow the expansion to fail.
20148 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
20149 (expand_vec_shift_expr, expand_binop_directly): Likewise.
20150 (expand_twoval_unop, expand_twoval_binop): Likewise.
20151 (expand_unop_direct, emit_indirect_jump): Likewise.
20152 (emit_conditional_move, vector_compare_rtx): Likewise.
20153 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
20154 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
20155 (expand_sync_lock_test_and_set): Likewise.
20156 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
20157 (emit_unop_insn): Likewise.
20158 (expand_copysign_absneg): Change icode to an insn_code.
20159 (create_convert_operand_from_type): New function.
20160 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
20161 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20162 (expand_insn, expand_jump_insn): Likewise.
20163 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
20164 than const_int_operand for operand 2.
20165
78fadbab
AK
201662011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20167
20168 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
20169 if possible.
20170
5f02387d
NF
201712011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20172
20173 * emit-rtl.c (emit_pattern_before_noloc): New function.
20174 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
20175 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
20176 (emit_pattern_after_noloc): New function.
20177 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
20178 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
20179
fdf3e18a
NF
201802011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20181
20182 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
20183 (__ffsDI2): Likewise.
20184
42d085c1
RH
201852011-03-22 Richard Henderson <rth@redhat.com>
20186
20187 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
20188 of !TARGET_ABI_OPEN_VMS.
20189 (alpha_trampoline_init, alpha_start_function): Likewise.
20190 (alpha_expand_epilogue, alpha_file_start): Likewise.
20191 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
20192 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
20193 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
20194 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
20195 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
20196
cabbe12a
JM
201972011-03-22 Joseph Myers <joseph@codesourcery.com>
20198
20199 * config/s390/s390-opts.h: New.
20200 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
20201 s390_arch_flags, s390_warn_framesize, s390_stack_size,
20202 s390_stack_guard): Remove.
20203 (s390_handle_arch_option): Return void. Take enum
20204 s390_arch_option value instead of string and searching array.
20205 (s390_handle_option): Don't assert that global structures are in
20206 use. Access variables via opts pointer. Use error_at. Don't use
20207 sscanf for -mstack-guard= or -mstack-size=. Update call to
20208 s390_handle_arch_option.
20209 (s390_option_override): Update call to s390_handle_arch_option.
20210 (s390_emit_prologue): Use %d format for s390_stack_size in
20211 diagnostic. Use %wd for HOST_WIDE_INT.
20212 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
20213 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
20214 * config/s390/s390.opt (config/s390/s390-opts.h): New
20215 HeaderInclude entry.
20216 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
20217 s390_arch_flags, s390_warn_framesize): New Variable entries.
20218 (s390_arch_option): New Enum and EnumValue entries.
20219 (march=): Use Enum instead of Var.
20220 (mstack-guard=, mstack-size=): Use UInteger and Var.
20221 (mtune=): Use Enum.
20222
05b12036
JM
202232011-03-22 Joseph Myers <joseph@codesourcery.com>
20224
20225 * config/score/score.c (score_handle_option): Don't assert that
20226 global structures are in use. Access target_flags via opts
20227 pointer. Use value of -march= option to determine target_flags
20228 settings.
20229 * config/score/score.opt (march=): Use Enum.
20230 (score_arch): New Enum and EnumValue entries.
20231
dd51e35a
JM
202322011-03-22 Joseph Myers <joseph@codesourcery.com>
20233
20234 * config/mep/mep.c (option_mtiny_specified): Remove.
20235 (mep_option_override): Move register handling for -mivc2 from
20236 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
20237 instead of option_mtiny_specified.
20238 (mep_handle_option): Access target_flags via opts pointer. Don't
20239 assert that global structures are in use. Defer part of -mivc2
20240 handling and move it to mep_option_override.
20241 * config/mep/mep.opt (IVC2): New Mask entry.
20242 (mivc2): Use Var and Defer instead of Mask.
20243
4a8d3d91
JM
202442011-03-22 Joseph Myers <joseph@codesourcery.com>
20245
20246 * config/v850/v850-opts.h: New.
20247 * config/v850/v850.c (small_memory): Replace with
20248 small_memory_physical_max array. Make that array static const.
20249 (v850_handle_memory_option): Take integer value of argument. Take
20250 gcc_options pointer, option text and location. Return void.
20251 Update for changes to small memory structures.
20252 (v850_handle_option): Access target_flags via opts pointer. Don't
20253 assert that global structures are in use. Update calls to
20254 v850_handle_memory_option.
c78dd519
UB
20255 (v850_encode_data_area): Update references to small memory settings.
20256 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
20257 (enum small_memory_type): Move to v850-opts.h.
20258 * config/v850/v850.opt (config/v850/v850-opts.h): New
20259 HeaderInclude entry.
20260 (small_memory_max): New Variable entry.
20261 (msda): Replace by pair of options msda= and msda-. Use UInteger.
20262 (mtda, mzda): Likewise.
20263
117fdbfa
JM
202642011-03-22 Joseph Myers <joseph@codesourcery.com>
20265
20266 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
20267 pointer. Don't assert that global structures are in use.
20268
d715091c
JM
202692011-03-22 Joseph Myers <joseph@codesourcery.com>
20270
20271 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
20272 via opts pointer. Don't assert that global structures are in use.
20273
1bb721dc
JM
202742011-03-22 Joseph Myers <joseph@codesourcery.com>
20275
20276 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
20277 (munix=93): Use Var.
20278 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
20279 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
20280 * config/pa/pa-opts.h: New.
20281 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
20282 (pa_handle_option): Don't assert that global structures are in
20283 use. Access target_flags via opts pointer. Don't handle
20284 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
20285 OPT_munix_98 here.
20286 (pa_option_override): Handle deferred OPT_mfixed_range_.
20287
cd8d8754
JM
202882011-03-22 Joseph Myers <joseph@codesourcery.com>
20289
20290 * config/mn10300/mn10300-opts.h: New.
20291 * config/mn10300/mn10300.c (mn10300_processor,
20292 mn10300_tune_string): Remove.
20293 (mn10300_handle_option): Don't assert that global structures are
20294 in use. Access mn10300_processor via opts pointer. Don't handle
20295 OPT_mtune_ here.
20296 * config/mn10300/mn10300.h (enum processor_type): Move to
20297 mn10300-opts.h.
20298 (mn10300_processor): Remove.
20299 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
20300 HeaderInclude entry.
20301 (mn10300_processor): New Variable entry.
20302 (mtune=): Use Var.
20303
24e6e6b1
JM
203042011-03-22 Joseph Myers <joseph@codesourcery.com>
20305
20306 * config/microblaze/microblaze.c: Don't include opts.h.
20307 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
20308 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
20309 (mno-clearbss): Use Var and Warn.
20310
8a784afb
JM
203112011-03-22 Joseph Myers <joseph@codesourcery.com>
20312
20313 * config/m32r/m32r-opts.h: New.
20314 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
20315 (m32r_handle_option): Don't assert that global structures are in
20316 use. Access target_flags and m32r_cache_flush_func via opts
20317 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
20318 OPT_mno_flush_trap here.
20319 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
20320 include of m32r-opts.h.
20321 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
20322 HeaderInclude entry.
20323 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
20324 (mmodel=): Use Enum and Var.
20325 (m32r_model): New Enum and EnumValue entries.
20326 (mno-flush-trap): Use Var.
20327 (msdata=): Use Enum and Var.
20328 (m32r_sdata): New Enum and EnumValue entries.
20329
bbfc9a8c
JM
203302011-03-22 Joseph Myers <joseph@codesourcery.com>
20331
20332 * config/m32c/m32c.c: Don't include opts.h.
20333 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
20334 m32c_handle_option): Remove.
20335 (m32c_option_override): Check global_options_set.x_target_memregs
20336 instead of target_memregs_set.
20337 * config/m32c/m32c.h (target_memregs): Remove.
20338 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
20339 variable.
20340
e24b8335
JM
203412011-03-22 Joseph Myers <joseph@codesourcery.com>
20342
20343 * config/iq2000/iq2000-opts.h: New.
20344 * config/iq2000/iq2000.c: Don't include opts.h.
20345 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 20346 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
20347 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
20348 HeaderInclude entry.
20349 (iq2000_tune): New Variable entry.
20350 (march=): Add comment. Use Enum.
20351 (iq2000_arch): New Enum and EnumValue entries.
20352 (mcpu=): Use Enum and Var.
20353 (iq2000_tune): New Enum and EnumValue entries.
20354
e6cc0c98
JM
203552011-03-22 Joseph Myers <joseph@codesourcery.com>
20356
20357 * config/ia64/ia64-opts.h: New.
20358 * config/ia64/ia64.c (ia64_tune): Remove.
20359 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
20360 here. Use error_at.
20361 (ia64_option_override): Handle deferred OPT_mfixed_range_.
20362 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
20363 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
20364 HeaderInclude entry.
20365 (ia64_tune): New Variable entry.
20366 (mfixed-range=): Use Defer and Var.
20367 (mtune=): Use Enum and Var.
20368 (ia64_tune): New Enum and EnumValue entries.
20369
db25893c
JM
203702011-03-22 Joseph Myers <joseph@codesourcery.com>
20371
20372 * config/frv/frv-opts.h: New.
20373 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
20374 frv-opts.h.
20375 (frv_cpu_type): Remove.
20376 * config/frv/frv.c: Don't include opts.h.
20377 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 20378 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
20379 (frv_cpu_type): New Variable entry.
20380 (frv_cpu): New Enum and EnumValue entries.
20381
6c223f5d
JM
203822011-03-22 Joseph Myers <joseph@codesourcery.com>
20383
20384 * config/cris/cris.c (cris_handle_option): Access target_flags via
20385 opts pointer. Don't assert that global structures are in use.
20386 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
20387 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
20388
bbd399cf
JM
203892011-03-22 Joseph Myers <joseph@codesourcery.com>
20390
20391 * config/bfin/bfin-opts.h: New.
20392 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
20393 bfin_si_revision, bfin_workarounds): Remove.
20394 (bfin_cpus): Make static const.
20395 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
20396 not bfin_lib_id_given.
20397 (bfin_handle_option): Don't set bfin_lib_id_given. Access
20398 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 20399 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
20400 * config/bfin/bfin.h: Include bfin-opts.h.
20401 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
20402 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
20403 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
20404 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
20405 entries.
20406
5e1b4d5a
JM
204072011-03-22 Joseph Myers <joseph@codesourcery.com>
20408
20409 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
20410 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
20411 or -msoft-float here.
20412 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
20413 -msoft-float and -mhard-float.
c78dd519 20414 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
20415 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20416 msoft-float.
20417 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
20418 -msoft-float.
20419 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
20420 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
20421 not mhard-float.
20422 (LIBGCC_SPEC): Don't handle -msoft-float.
20423 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
20424 -mhard-float.
20425 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20426 msoft-float.
20427 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
20428 -mfloat-abi=*, not -msoft-float and -mhard-float.
20429 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
20430 -msoft-float.
20431 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
20432 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
20433 mhard-float and msoft-float.
20434 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
20435 mfloat-abi=soft in comments, not mhard-float and msoft-float.
20436 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20437 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
20438 mhard-float.
20439 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
20440 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
20441 msoft-float.
20442 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
20443 not mhard-float.
20444 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
20445 not msoft-float.
20446
800d1de1
RH
204472011-03-22 Richard Henderson <rth@redhat.com>
20448
20449 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
20450 TARGET_ABI_WINDOWS_NT.
20451 (alpha_output_function_end_prologue): Likewise.
20452 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
20453 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20454 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
20455 (trap, *movsi_nt_vms): Likewise.
20456 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
20457 (*tablejump_osf_nt_internal): Remove.
20458 * config/alpha/predicates.md (input_operand): Only test Pmode.
20459
c59ddd2b
JM
204602011-03-22 Joseph Myers <joseph@codesourcery.com>
20461
20462 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
20463 via opts pointer. Use error_at. Don't assert that global
20464 structures are in use.
20465
1333f97f
JM
204662011-03-22 Joseph Myers <joseph@codesourcery.com>
20467
20468 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
20469 (ix86_handle_option): Access ix86_isa_flags and
20470 ix86_isa_flags_explicit via opts pointer. Don't assert that
20471 global structures are in use.
20472 (ix86_function_specific_save, ix86_function_specific_restore):
20473 Update ix86_isa_flags_explicit field name.
c78dd519 20474 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
20475 (ix86_isa_flags_explicit): Rename TargetSave entry to
20476 x_ix86_isa_flags_explicit.
20477
75db85d8
RH
204782011-03-22 Richard Henderson <rth@redhat.com>
20479
20480 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
20481 (alpha_option_override, direct_return): Likewise.
20482 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
20483 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
20484 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
20485 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20486 (alpha_expand_epilogue, alpha_end_function): Likewise.
20487 (alpha_init_libfuncs): Likewise.
20488 (struct machine_function): Remove unicosmk members.
20489 (print_operand) ['t']: Remove.
20490 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
20491 unicosmk_output_module_name, unicosmk_output_common,
20492 current_section_align, unicosmk_output_text_section_asm_op,
20493 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
20494 unicosmk_section_type_flags, unicosmk_unique_section,
20495 unicosmk_asm_named_section, unicosmk_insert_attributes,
20496 unicosmk_output_align, unicosmk_defer_case_vector,
20497 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
20498 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
20499 unicosmk_output_ssib, unicosmk_add_call_info_word,
20500 unicosmk_extern_head, unicosmk_output_default_externs,
20501 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
20502 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
20503 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
20504 * config/alpha/alpha-protos.h: Update.
20505 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
20506 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
20507 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
20508 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
20509 (*mulsi_se, mulvsi3): Likewise.
20510 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
20511 (*divmodsi_internal, call, call_value, realign): Likewise.
20512 (moddi3, umoddi3): Likewise; remove duplicate expander.
20513 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
20514 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
20515 (*movdi_nofix): Remove r/U alternative.
20516 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
20517 * config/alpha/constraints.md ("U"): Remove.
20518 * config/alpha/predicates.md (call_operand"): Don't test
20519 TARGET_ABI_UNICOSMK.
20520
96e45421
JM
205212011-03-22 Joseph Myers <joseph@codesourcery.com>
20522
20523 * target.def (handle_option): Take gcc_options and
20524 cl_decoded_option pointers and location_t.
20525 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
20526 * doc/tm.texi: Regenerate.
20527 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
20528 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
20529 * lto-opts.c (lto_reissue_options): Generate option structure for
20530 targetm.handle_option call.
20531 * opts.c (target_handle_option): Update call to
20532 targetm.handle_option. Remove assertions about values now passed
20533 down to hook.
20534 * targhooks.c (default_target_handle_option): New.
20535 * targhooks.h (default_target_handle_option): Declare.
20536 * config/alpha/alpha.c: Include opts.h.
20537 (alpha_handle_option): Update to new hook interface.
20538 * config/arm/arm.c: Include opts.h.
20539 (arm_handle_option): Update to new hook interface.
20540 * config/arm/t-arm (arm.o): Update dependencies.
20541 * config/bfin/bfin.c: Include opts.h.
20542 (bfin_handle_option): Update to new hook interface.
20543 * config/cris/cris.c: Include opts.h.
20544 (cris_handle_option): Update to new hook interface.
20545 * config/frv/frv.c: Include opts.h.
20546 (frv_handle_option): Update to new hook interface.
20547 * config/i386/i386.c: Include opts.h.
20548 (ix86_handle_option): Update to new hook interface.
20549 (ix86_valid_target_attribute_inner_p): Generate option structure
20550 for call to ix86_handle_option.
20551 * config/i386/t-i386 (i386.o): Update dependencies.
20552 * config/ia64/ia64.c: Include opts.h.
20553 (ia64_handle_option): Update to new hook interface.
20554 * config/ia64/t-ia64 (ia64.o): Update dependencies.
20555 * config/iq2000/iq2000.c: Include opts.h.
20556 (iq2000_handle_option): Update to new hook interface.
20557 * config/m32c/m32c.c: Include opts.h.
20558 (m32c_handle_option): Update to new hook interface.
20559 * config/m32r/m32r.c: Include opts.h.
20560 (m32r_handle_option): Update to new hook interface.
20561 * config/m68k/m68k.c: Include opts.h.
20562 (m68k_handle_option): Update to new hook interface.
20563 * config/mep/mep.c: Include opts.h.
20564 (mep_handle_option): Update to new hook interface.
20565 * config/microblaze/microblaze.c: Include opts.h.
20566 (microblaze_handle_option): Update to new hook interface.
20567 * config/mips/mips.c: Include opts.h.
20568 (mips_handle_option): Update to new hook interface.
20569 * config/mn10300/mn10300.c: Include opts.h.
20570 (mn10300_handle_option): Update to new hook interface.
20571 * config/pa/pa.c: Include opts.h.
20572 (pa_handle_option): Update to new hook interface.
20573 * config/pdp11/pdp11.c: Include opts.h.
20574 (pdp11_handle_option): Update to new hook interface.
20575 * config/rs6000/rs6000.c: Include opts.h.
20576 (rs6000_handle_option): Update to new hook interface.
20577 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
20578 * config/rx/rx.c: Include opts.h.
20579 (rx_handle_option): Update to new hook interface.
20580 * config/s390/s390.c: Include opts.h.
20581 (s390_handle_option): Update to new hook interface.
20582 * config/score/score.c: Include opts.h.
20583 (score_handle_option): Update to new hook interface.
20584 * config/sh/sh.c: Include opts.h.
20585 (sh_handle_option): Update to new hook interface.
20586 * config/sparc/sparc.c: Include opts.h.
20587 (sparc_handle_option): Update to new hook interface.
20588 * config/v850/v850.c: Include opts.h.
20589 (v850_handle_option): Update to new hook interface.
20590
66017846
JM
205912011-03-22 Joseph Myers <joseph@codesourcery.com>
20592
20593 * gcc.c (driver_unknown_option_callback): Only permit and save
20594 unknown -Wno- options.
20595 (driver_wrong_lang_callback): Save options directly instead of via
20596 driver_unknown_option_callback.
20597
e8b97ccd
EB
205982011-03-22 Eric Botcazou <ebotcazou@adacore.com>
20599
20600 * combine.c (simplify_set): Try harder to find the best CC mode when
20601 simplifying a nested COMPARE on the RHS.
20602
ebb9f8b0
JM
206032011-03-22 Joseph Myers <joseph@codesourcery.com>
20604
20605 * config/alpha/gnu.h: Remove.
20606 * config/arc: Remove directory.
20607 * config/arm/netbsd.h: Remove.
20608 * config/arm/t-pe: Remove.
20609 * config/crx: Remove directory.
20610 * config/i386/netbsd.h: Remove.
20611 * config/m68hc11: Remove directory.
20612 * config/m68k/uclinux-oldabi.h: Remove.
20613 * config/mcore/mcore-pe.h: Remove.
20614 * config/mcore/t-mcore-pe: Remove.
20615 * config/netbsd-aout.h: Remove.
20616 * config/rs6000/gnu.h: Remove.
20617 * config/sh/sh-symbian.h: Remove.
20618 * config/sh/symbian-base.c: Remove.
20619 * config/sh/symbian-c.c: Remove.
20620 * config/sh/symbian-cxx.c: Remove.
20621 * config/sh/symbian-post.h: Remove.
20622 * config/sh/symbian-pre.h: Remove.
20623 * config/sh/t-symbian: Remove.
20624 * config/svr3.h: Remove.
20625 * config/vax/netbsd.h: Remove.
20626 * config.build: Don't handle i[34567]86-*-pe.
20627 * config.gcc: Remove handling of deprecations for most deprecated
20628 targets.
20629 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
20630 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
20631 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
20632 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
20633 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
20634 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
20635 Remove cases.
20636 * config.host: Don't handle i[34567]86-*-pe.
20637 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
20638 (ASM_SPEC32): Don't handle -mcall-gnu.
20639 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
20640 -mcall-gnu.
20641 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
20642 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
20643 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
20644 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
20645 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
20646 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
20647 conditional on SYMBIAN.
20648 * configure.ac: Don't handle powerpc*-*-gnu*.
20649 * configure: Regenerate.
20650 * doc/extend.texi (interrupt attribute): Don't mention CRX.
20651 * doc/install-old.texi (m6811, m6812): Don't mention.
20652 * doc/install.texi (arc-*-elf*): Don't document multilib option.
20653 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
20654 (m68k-uclinuxoldabi): Don't mention.
20655 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
20656 Remove.
20657 (-mcall-gnu): Remove.
20658 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
20659 families): Remove constraint documentation.
20660
999a7d80
MS
206612011-03-22 Marius Strobl <marius@FreeBSD.org>
20662
20663 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
20664 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
20665 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
20666
45540bcf
MM
206672011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20668
20669 PR target/48226
20670 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
20671 vector when peeking at the next token for vector, don't expand the
20672 keywords.
20673
980a0ff4
GJL
206742011-03-21 Georg-Johann Lay <avr@gjlay.de>
20675
20676 * config/avr/avr-protos.h (expand_epilogue): Change prototype
20677 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
20678 * config/avr/avr.c (init_cumulative_args)
20679 (avr_function_arg_advance): Use it.
20680 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
20681 sibcall epilogues.
20682 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
20683 (avr_function_ok_for_sibcall): ...this new function.
20684 (avr_lookup_function_attribute1): New static Function.
20685 (avr_naked_function_p, interrupt_function_p)
20686 (signal_function_p, avr_OS_task_function_p)
20687 (avr_OS_main_function_p): Use it.
20688 * config/avr/avr.md ("sibcall", "sibcall_value")
20689 ("sibcall_epilogue"): New expander.
20690 ("*call_insn", "*call_value_insn"): New insn.
20691 ("call_insn", "call_value_insn"): Remove
20692 ("call", "call_value", "epilogue"): Change expander to handle
20693 sibling calls.
20694
49168734
NC
206952011-03-21 Nick Clifton <nickc@redhat.com>
20696
20697 * doc/invoke.texi (Overall Options): Move closing brace to end of
20698 options list.
20699 (Optimization Options): Add missing @gol.
20700 (Directory Options): Likewise.
20701 (i386 and x86-64 Options): Likewise.
20702 (RS6000 and PowerPC Options): Likewise.
20703 (i386 and x86-64 Windows Options): Likewise.
20704 (V850 Options): Add text missing from descriptions.
20705
bdfe906f
RH
207062011-03-22 Richard Henderson <rth@redhat.com>
20707
20708 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
20709 (avr_incoming_return_addr_rtx): New.
20710 (emit_push_byte): New.
20711 (expand_prologue): Use it. Remove incorrect dwarf annotation for
20712 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
20713 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
20714 (emit_pop_byte): New.
20715 (expand_epilogue): Use it. Pop frame pointer by bytes.
20716 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
20717 (INCOMING_RETURN_ADDR_RTX): New.
20718 (INCOMING_FRAME_SP_OFFSET): New.
20719 (ARG_POINTER_CFA_OFFSET): New.
20720 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
20721 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
20722 (pophi): Remove.
20723
d090a5aa
RH
20724 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
20725
fdf3e18a
NF
207262011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20727
20728 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
20729 (FUNCTION_ARG_ADVANCE): Likewise.
20730 * tm.texi.in: Change references to them to hook references.
20731 * tm.texi: Regenerate.
20732 * targhooks.c (default_function_arg): Eliminate check for target
20733 macro.
20734 (default_function_incoming_arg): Likewise.
20735 (default_function_arg_advance): Likewise.
c78dd519 20736 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
20737 (function_arg_advance): Likewise.
20738 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
20739
009d3fcf
NF
207402011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20741
20742 * tree.c (build_call_1): New function.
20743 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
20744
7bec30e1
RG
207452011-03-22 Richard Guenther <rguenther@suse.de>
20746
20747 PR tree-optimization/48228
20748 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
20749 for single-arg PHIs.
20750
0b7e851b
AB
207512011-03-22 Andrey Belevantsev <abel@ispras.ru>
20752
20753 PR rtl-optimization/48143
20754 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
20755 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
20756 sse2_cvtps2pd): Likewise.
20757
d89afca5
AK
207582011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20759
20760 * recog.c (canonicalize_change_group): Use validate_unshare_change.
20761
f471fe72
RG
207622011-03-22 Richard Guenther <rguenther@suse.de>
20763
20764 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
20765 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
20766 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
20767 and REALIGN_LOAD_EXPR.
20768 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
20769 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
20770 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
20771 DOT_PROD_EXPR case ...
20772 (expand_expr_real_2): ... here.
20773 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
20774 and REALIGN_LOAD_EXPR.
20775 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
20776 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
20777 (vect_create_epilog_for_reduction): Likewise.
20778 (vectorizable_reduction): Likewise.
20779 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
20780 * tree-vect-stmts.c (vectorizable_load): Likewise.
20781
f2f81d57
EB
207822011-03-22 Eric Botcazou <ebotcazou@adacore.com>
20783
20784 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
20785
ab081dd6
AK
207862011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20787
20788 * config/s390/s390.c (s390_delegitimize_address): Fix offset
20789 handling for PLTOFF/GOTOFF.
20790
6fd5332b
NC
207912011-03-22 Nick Clifton <nickc@redhat.com>
20792
20793 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
20794 trailing backslash from the end of the macro definition.
20795
01841ac0
AK
207962011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20797
20798 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
20799 and PLT unspecs.
20800
2ef6ce06
RS
208012011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
20802
20803 * expr.h (prepare_operand): Move to...
20804 * optabs.h (prepare_operand): ...here and change the insn code
20805 parameter from "int" to "enum insn_code".
20806 (insn_operand_matches): Declare.
20807 * expr.c (init_expr_target): Use insn_operand_matches.
20808 (compress_float_constant): Likewise.
20809 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
20810 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
20811 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
20812 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
20813 Likewise.
2ef6ce06
RS
20814 (gen_cond_trap): Likewise.
20815 (prepare_operand): Likewise. Change icode to an insn_code.
20816 (insn_operand_matches): New function.
20817 * reload.c (find_reloads_address_1): Use insn_operand_matches.
20818 * reload1.c (gen_reload): Likewise.
20819 * targhooks.c (default_secondary_reload): Likewise.
20820
9e43ad68
UB
208212011-03-21 Uros Bizjak <ubizjak@gmail.com>
20822
9a96da32
UB
20823 * config/alpha/alpha.md (unspec): New define_c_enum.
20824 (unspecv): Ditto.
20825
208262011-03-21 Uros Bizjak <ubizjak@gmail.com>
20827
20828 PR debug/48214
9e43ad68
UB
20829 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
20830 between a call and its CALL_ARG_LOCATION note.
20831
31408f60
EB
208322011-03-21 Eric Botcazou <ebotcazou@adacore.com>
20833
20834 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
20835
208362011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
20837
20838 PR c/42544
20839 PR c/48197
20840 * c-common.c (shorten_compare): If primopN is first sign-extended
20841 to opN and then zero-extended to result type, set primopN to opN.
20842
9dfd55f5
DJ
208432011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
20844
20845 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
20846 for barrier handlers.
20847
f3c33d9d
MM
208482011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20849
20850 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
20851 UNSPEC constants to be in the unspec enumeration, and redefine
20852 all UNSPECV constants to be in the unspecv enumeration, so that
20853 dumps print which unspec/unspec_volatile this is.
20854 * config/rs6000/vector.md (UNSPEC_*): Ditto.
20855 * config/rs6000/paired.md (UNSPEC_*): Ditto.
20856 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
20857 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
20858 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
20859
20860 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
20861 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
20862 UNSPECV_LWSYNC, since these are used as unspec_volatile.
20863 * config/rs6000/sync.md (isync, lwsync): Ditto.
20864
ac43f774
RG
208652011-03-21 Richard Guenther <rguenther@suse.de>
20866
20867 * params.def (lto-min-partition): Fix typo.
20868
411cdbd8
RG
208692011-03-21 Richard Guenther <rguenther@suse.de>
20870
20871 PR c/47939
20872 * c-decl.c (grokdeclarator): Drop to the main variant only
20873 for array types. Drop flag_gen_aux_info check.
20874
1cd9e416
RG
208752011-03-21 Richard Guenther <rguenther@suse.de>
20876
20877 PR translation/47911
20878 * params.def (lto-partitions): Fix typo.
20879 (lto-min-partition): Fix wording.
20880
ada5ad67
AT
208812011-03-21 Andreas Tobler <andreast@fgznet.ch>
20882
20883 * config/rs6000/t-freebsd: Remove duplication from file.
20884
f9613c9a
RG
208852011-03-21 Richard Guenther <rguenther@suse.de>
20886
20887 PR middle-end/47661
20888 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
20889
9bfbc1eb
RG
208902011-03-21 Richard Guenther <rguenther@suse.de>
20891
20892 PR lto/48210
20893 * params.def (lto-partitions): Require at least 1 partition.
20894
a2268084
RO
208952011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20896
20897 * gthr-solaris.h: Remove.
20898 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
20899 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
20900 (LIB_SPEC): Likewise.
20901 * config/sol2.opt (threads): Remove.
9e43ad68 20902 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
20903 (sparc*-*-solaris2*): Likewise.
20904 * configure.ac (enable_threads): Enable solaris support.
20905 * configure: Regenerate.
9e43ad68 20906 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
20907 * doc/install.texi (Configuration, --enable-threads=lib): Remove
20908 solaris.
20909
c43d9a1b
RO
209102011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20911
20912 * config.gcc: Obsolete *-*-solaris2.8*.
20913 * doc/install.texi (Specific, *-*-solaris2*): Document it.
20914
084239f4
RO
209152011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20916
20917 PR bootstrap/48135
20918 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
20919 reference. Solaris 8 perl works.
20920
64cadbe7
RO
209212011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20922
20923 PR bootstrap/48135
20924 * doc/install.texi (Prerequisites): Move jar etc. up.
20925 Explain support library version requirements.
20926
eb975109
RO
209272011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20928
20929 PR bootstrap/48135
20930 * doc/install.texi (Prerequisites): Move Perl to build
20931 requirements. Always necessary on Solaris 2 with Sun ld.
20932
8a509ffd
RO
209332011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20934
20935 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
20936 binutils 2.21.
20937 (Specific, i?86-*-solaris2.[89]): Likewise.
20938 (Specific, i?86-*-solaris2.10): Likewise.
20939 (Specific, mips-sgi-irix6): Likewise.
20940 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
20941 Update for binutils 2.21.
20942
8fbc58a1
RO
209432011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20944
20945 * configure.ac (gcc_cv_lto_plugin): Fix typo.
20946 Allow -fuse-linker-plugin for non-default plugin linker.
20947 * configure: Regenerate.
20948
7e84ad0b
NP
209492011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
20950
20951 PR bootstrap/48167
20952 * gengtype.c (files_rules): Added rule for cp/parser.h.
20953
2f36e14b
JJ
209542011-03-21 Jakub Jelinek <jakub@redhat.com>
20955
20956 PR target/48213
20957 * config/s390/s390.c (s390_delegitimize_address): Don't call
20958 lowpart_subreg if orig_x has BLKmode.
20959
62d784f7
KT
209602011-03-21 Kai Tietz <ktietz@redhat.com>
20961
20962 PR target/12171
9e43ad68
UB
20963 * doc/plugins.texi: Adjust documentation for plugin register_callback.
20964 * tree.h (attribute_spec): Add new member affects_type_identity.
20965 * attribs.c (empty_attribute_table): Adjust attribute_spec
20966 initializers.
62d784f7
KT
20967 * config/alpha/alpha.c: Likewise.
20968 * config/arc/arc.c: Likewise.
20969 * config/arm/arm.c: Likewise.
20970 * config/avr/avr.c: Likewise.
20971 * config/bfin/bfin.c: Likewise.
20972 * config/crx/crx.c: Likewise.
20973 * config/darwin.h: Likewise.
20974 * config/h8300/h8300.c: Likewise.
20975 * config/i386/cygming.h: Likewise.
20976 * config/i386/i386.c: Likewise.
20977 * config/ia64/ia64.c: Likewise.
20978 * config/m32c/m32c.c: Likewise.
20979 * config/m32r/m32r.c: Likewise.
20980 * config/m68hc11/m68hc11.c: Likewise.
20981 * config/m68k/m68k.c: Likewise.
20982 * config/mcore/mcore.c: Likewise.
20983 * config/mep/mep.c: Likewise.
20984 * config/microblaze/microblaze.c: Likewise.
20985 * config/mips/mips.c: Likewise.
20986 * config/rs6000/rs6000.c: Likewise.
20987 * config/rx/rx.c: Likewise.
20988 * config/sh/sh.c: Likewise.
20989 * config/sol2.h: Likewise.
20990 * config/sparc/sparc.c: Likewise.
20991 * config/spu/spu.c: Likewise.
20992 * config/stormy16/stormy16.c: Likewise.
20993 * config/v850/v850.c: Likewise.
20994
54833ec0
CLT
209952011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
20996
20997 * simplify-rtx.c (simplify_binary_operation_1): Handle
20998 (xor (and A B) C) case when B and C are both constants.
20999
14a41392
MX
210002011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
21001
21002 * tree-dfa.c (add_referenced_var): Fix typo in comment.
21003
806c3492
EB
210042011-03-20 Eric Botcazou <ebotcazou@adacore.com>
21005
21006 PR bootstrap/48168
21007 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
21008
65e0a0f3
JJ
210092011-03-20 Jakub Jelinek <jakub@redhat.com>
21010
21011 PR rtl-optimization/48156
21012 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
21013 assume df and df_lr are not NULL.
21014
b6a75dda
RR
210152011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21016
21017 PR debug/48023
21018 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
21019 between a call and its CALL_ARG_LOCATION note.
21020
5969b52d
KK
210212011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21022
21023 PR debug/48178
21024 * config/sh/sh.c (find_barrier): Don't emit a constant pool
21025 between a call and its corresponding CALL_ARG_LOCATION note.
21026
f773c2bd
AS
210272011-03-19 Anatoly Sokolov <aesok@post.ru>
21028
21029 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
21030 instead of loop. Use HARD_REGISTER_NUM_P predicate.
21031 * haifa-sched.c (setup_ref_regs): Ditto.
21032 * caller-save.c (add_used_regs_1): Ditto.
21033 * dse.c (look_for_hardregs): Ditto.
21034 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
21035 * sched-rgn.c (check_live_1): Ditto.
21036
8bf872f9
JM
210372011-03-18 Joseph Myers <joseph@codesourcery.com>
21038
21039 * c-decl.c (diagnose_mismatched_decls): Give an error for
21040 redefining a typedef with variably modified type.
21041
ff8e2159
JM
210422011-03-18 Joseph Myers <joseph@codesourcery.com>
21043
21044 * c-decl.c (grokfield): Don't allow typedefs for structures or
21045 unions with no tag by default.
21046 * doc/extend.texi (Unnamed Fields): Update.
21047
16cc4440
UB
210482011-03-18 Uros Bizjak <ubizjak@gmail.com>
21049
21050 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
21051 Rewrite using indirect functions.
21052 (lwp_slwpcb): Ditto.
21053 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
21054 (avx_vinsertf128<mode>): Ditto.
21055
e101e12e
AK
210562011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21057
21058 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
21059 unspecs.
21060
4627c7fb
AK
210612011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21062
21063 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 21064 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 21065
2d36b47f
MK
210662011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
21067
21068 PR rtl-optimization/48170
21069 * gcse.c (hoist_code): Remove bogus asserts.
21070
2a3d7659
JL
210712011-03-18 Georg-Johann Lay <avr@gjlay.de>
21072
21073 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
21074 computation for prologue/epilogue.
21075
34c3ef05
RO
210762011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21077
21078 * Makefile.in (check-consistency): Remove.
21079
81f2b976
JJ
210802011-03-18 Jakub Jelinek <jakub@redhat.com>
21081
21082 PR debug/48176
21083 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
21084 arange_table_in_use is 0, but either text_section_used or
21085 cold_text_section_used is true. Don't call it if
21086 !info_section_emitted.
21087
68fd7765
AS
210882011-03-18 Anatoly Sokolov <aesok@post.ru>
21089
21090 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
21091 FUNCTION_VALUE_REGNO_P): Remove.
21092 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
21093 Remove.
21094 * config/avr/avr.c (avr_ret_register): Make static inline.
21095 (avr_function_value_regno_p): New function.
21096 (avr_libcall_value): Make static. Add 'func' argument.
21097 (avr_function_value): Make static. Rename 'func' argument to
21098 'fn_decl_or_type', forward it to avr_libcall_value. Call
21099 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 21100 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 21101
b4ef8aac
JM
211022011-03-18 Jason Merrill <jason@redhat.com>
21103
21104 PR c++/23372
21105 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
21106
09a52fc3
RG
211072011-03-18 Richard Guenther <rguenther@suse.de>
21108
21109 * doc/install.texi (--enable-gold): Remove.
21110 (--with-plugin-ld): Document.
21111 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
21112
2a3d7659 211132011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
21114
21115 PR middle-end/47790
21116 * expr.c (optimize_bitfield_assignment_op): Revamp to work
21117 again after expansion changes.
21118
2abbb0fe
CLT
211192011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
21120
21121 * combine.c (try_combine): Do simplification only call of
21122 subst() on i2 even when i1 is present. Update comments.
21123
2efd0aa6
KK
211242011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
21125
21126 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
21127 and UNSPEC_PCREL_SYMOFF.
21128
30a49b23
AK
211292011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21130
21131 * config/s390/s390.md: Use define_c_enum for the unspec constant
21132 definitions.
21133
419e1853
JJ
211342011-03-18 Richard Henderson <rth@redhat.com>
21135 Jakub Jelinek <jakub@redhat.com>
21136
21137 PR bootstrap/48161
21138 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
21139 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
21140
24da2019
AS
211412011-03-17 Anatoly Sokolov <aesok@post.ru>
21142
21143 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21144 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
21145 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
21146 Change return type to bool.
21147 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21148
a82ff31f
JJ
211492011-03-17 Jakub Jelinek <jakub@redhat.com>
21150
8b29c87a
JJ
21151 PR debug/48163
21152 * var-tracking.c (prepare_call_arguments): If CALL target
21153 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
21154 pc instead of looking it up using cselib_lookup and use
21155 Pmode for it if x has VOIDmode.
21156 * dwarf2out.c (gen_subprogram_die): If also both first and
21157 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
21158
a82ff31f
JJ
21159 PR debug/48163
21160 * function.c (assign_parms): For data.passed_pointer parms
21161 use MEM of data.entry_parm instead of data.entry_parm itself
21162 as DECL_INCOMING_RTL.
21163 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
21164 also when passed and declared mode is the same, DECL_RTL
21165 is a MEM with pseudo as address and DECL_INCOMING_RTL is
21166 a MEM too.
21167
82ce305c
JL
211682011-03-16 Jeff Law <law@redhat.com>
21169
21170 PR rtl-optimization/37273
21171 * ira-costs.c (scan_one_insn): Detect constants living in memory and
21172 handle them like argument loads from stack slots. Do not double
21173 count memory for memory constants and argument loads from stack slots.
21174
fe58e02b
L
211752011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21176
21177 PR debug/48160
21178 * var-tracking.c (prepare_call_arguments): Check SUBREG.
21179
6fc4dbc7
L
211802011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21181
21182 PR target/48171
21183 * config/i386/i386.opt: Add Save to -mavx and -mfma.
21184
db3ed0b3
JJ
211852011-03-17 Jakub Jelinek <jakub@redhat.com>
21186
8054a389
JJ
21187 PR bootstrap/48153
21188 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
21189 if dwarf_strict.
21190 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
21191 Clear call_arg_locations and call_arg_loc_last always.
21192
db3ed0b3
JJ
21193 PR middle-end/48152
21194 * var-tracking.c (prepare_call_arguments): If argument needs to be
21195 passed by reference, adjust argtype and mode.
21196
1bce4ff3
RG
211972011-03-17 Richard Guenther <rguenther@suse.de>
21198
21199 PR middle-end/48134
21200 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
21201 a value make sure to fold the statement.
21202
7c71147d
CLT
212032011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
21204
21205 PR target/43872
21206 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
21207 return condition with !cfun->calls_alloca.
21208
0e1ee172
RG
212092011-03-17 Richard Guenther <rguenther@suse.de>
21210
21211 PR bootstrap/48148
21212 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21213 origin for decls in other ltrans units.
21214 (input_varpool_node): Likewise.
21215
f8bce518
RG
212162011-03-17 Richard Guenther <rguenther@suse.de>
21217
21218 PR middle-end/48165
21219 * tree-object-size.c (compute_object_offset): Properly return
21220 the offset operand of MEM_REFs as sizetype.
21221
1b6fa860
JJ
212222011-03-17 Jakub Jelinek <jakub@redhat.com>
21223
dabd47e7
JJ
21224 PR rtl-optimization/48141
21225 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
21226 * dse.c: Include params.h.
21227 (active_local_stores_len): New variable.
21228 (add_wild_read, dse_step1): Clear it when setting active_local_stores
21229 to NULL.
21230 (record_store, check_mem_read_rtx): Decrease it when removing
21231 from the chain.
21232 (scan_insn): Likewise. Increase it when adding to chain, if it
21233 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
21234 set active_local_stores to NULL before the addition.
21235 * Makefile.in (dse.o): Depend on $(PARAMS_H).
21236
1b6fa860
JJ
21237 PR rtl-optimization/48141
21238 * dse.c (record_store): If no positions are needed in an insn
21239 that cannot be deleted, at least unchain it from active_local_stores.
21240
7b5cb7d6
DS
212412011-03-16 Dodji Seketeli <dodji@redhat.com>
21242
21243 PR debug/47510
21244 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
21245 (lookup_type_die_strip_naming_typedef): ... here.
21246 (get_context_die): Use it.
21247 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
21248 the anonymous struct named by the naming typedef.
21249
585e9d9d
L
212502011-03-16 H.J. Lu <hongjiu.lu@intel.com>
21251
21252 PR target/48154
21253 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
21254 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21255
6261ab0e
JL
212562011-03-16 Jeff Law <law@redhat.com>
21257
21258 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 21259 check for operands of conditional. Allow type to be a pointer.
6261ab0e 21260
0b0081ec
RG
212612011-03-16 Richard Guenther <rguenther@suse.de>
21262
21263 PR tree-optimization/48149
21264 * fold-const.c (fold_binary_loc): Fold
21265 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
21266
64a3d647
RG
212672011-03-16 Richard Guenther <rguenther@suse.de>
21268
21269 PR tree-optimization/26134
21270 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
21271 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
21272 (non_rewritable_mem_ref_base): Handle complex type component
21273 accesses, constrain offsets for vector and complex extracts
21274 more properly.
21275
ef13324e
RG
212762011-03-16 Richard Guenther <rguenther@suse.de>
21277
21278 PR tree-optimization/48146
21279 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
21280 operands avoiding the need for renaming.
21281
f0eddb90
RG
212822011-03-16 Richard Guenther <rguenther@suse.de>
21283
21284 * gimple-fold.c (maybe_fold_reference): Open-code relevant
21285 constant folding. Move MEM_REF canonicalization first.
21286 Rely on fold_const_aggregate_ref for initializer folding.
21287 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
21288
e42348b8
JJ
212892011-03-16 Jakub Jelinek <jakub@redhat.com>
21290
29f10e71
JJ
21291 PR middle-end/48136
21292 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21293 arg0/arg1 or their arguments are always fold converted to matching
21294 types.
21295
e42348b8
JJ
21296 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
21297 to nargs.
21298
55b46574
RO
212992011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21300
21301 PR lto/46944
21302 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
21303 Handle in-tree gold.
21304 (ld_vers): Extract binutils version for gold.
21305 (gcc_cv_ld_hidden): Handle gold here.
21306 (gcc_cv_lto_plugin): Determine level of linker plugin support.
21307 * configure: Regenerate.
21308 * config.in: Regenerate.
21309 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
21310 -fuse-linker-plugin otherwise.
21311 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
21312 (LINK_COMMAND_SPEC): Use it.
21313 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
21314
2b1c5433
JJ
213152011-03-16 Jakub Jelinek <jakub@redhat.com>
21316
c2969d8e
JJ
21317 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
21318 * calls.c: Remove debug.h include.
21319 (emit_call_1): Don't call virtual_call_token debug hook.
21320 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
21321 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
21322 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
21323 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
21324 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
21325 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
21326 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
21327 dwarf2out_virtual_call): Remove.
21328 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
21329 copy_call_info and virtual_call hooks.
21330 (dwarf2out_init): Don't initialize vcall_insn_table,
21331 debug_dcall_section and debug_vcall_section.
21332 (prune_unused_types): Don't mark nodes from dcall_table.
21333 (dwarf2out_finish): Don't output dcall or vcall tables.
21334 * final.c (final_scan_insn): Don't call direct_call or
21335 virtual_call debug hooks.
21336 * debug.h (struct gcc_debug_hooks): Remove direct_call,
21337 virtual_call_token, copy_call_info and virtual_call hooks.
21338 (debug_nothing_uid): Remove prototype.
21339 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
21340 copy_call_info and virtual_call hooks.
21341 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21342 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
21343 * debug.c (do_nothing_debug_hooks): Likewise.
21344 (debug_nothing_uid): Remove.
21345 * doc/invoke.texi (-fenable-icf-debug): Remove.
21346 * common.opt (-fenable-icf-debug): Likewise.
21347
325f5379
JJ
21348 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
21349 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
21350 call's MEM. Handle functions returning aggregate through a hidden
21351 first pointer. For virtual calls add clobbered pc to call arguments
21352 chain.
21353 * dwarf2out.c (gen_subprogram_die): Emit
21354 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
21355 can't be emitted.
21356
a58a8e4b
JJ
21357 PR debug/45882
21358 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
21359 * rtl.h (ENTRY_VALUE_EXP): Define.
21360 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
21361 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
21362 * print-rtl.c (print_rtx): Likewise.
21363 * gengtype.c (adjust_field_rtx_def): Likewise.
21364 * var-tracking.c (vt_add_function_parameter): Adjust
21365 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
21366 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
21367 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
21368 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
21369 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
21370
2b1c5433
JJ
21371 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
21372 Call var_location debug hook even on CALL_INSNs.
21373 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
21374 * rtl.def (ENTRY_VALUE): New.
21375 * dwarf2out.c: Include cfglayout.h.
21376 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21377 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
21378 (struct call_arg_loc_node): New type.
21379 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
21380 tail_call_site_count): New variables.
21381 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
21382 DW_TAG_GNU_call_site_parameter.
21383 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
21384 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
21385 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
21386 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
21387 and DW_AT_GNU_all_source_call_sites.
21388 (mem_loc_descriptor): Handle ENTRY_VALUE.
21389 (add_src_coords_attributes): Don't add enything if
21390 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
21391 (dwarf2out_abstract_function): Save and clear call_arg_location,
21392 call_site_count and tail_call_site_count around dwarf2out_decl call.
21393 (gen_call_site_die): New function.
21394 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
21395 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
21396 (dwarf2out_function_decl): Clear call_arg_locations,
21397 call_arg_loc_last, set call_site_count and tail_call_site_count
21398 to -1 and free block_map.
21399 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
21400 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
21401 followed by any real instructions.
21402 (dwarf2out_begin_function): Set call_site_count and
21403 tail_call_site_count to 0.
21404 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
21405 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
21406 attempt to force a DIE for it and worst case remove the attribute.
21407 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
21408 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
21409 the decl itself.
21410 * var-tracking.c: Include tm_p.h.
21411 (vt_stack_adjustments): For calls call note_register_arguments.
21412 (argument_reg_set): New variable.
21413 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
21414 ensure the VALUE is resolved.
21415 (call_arguments): New variable.
21416 (prepare_call_arguments): New function.
21417 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
21418 (struct expand_loc_callback_data): Add ignore_cur_loc field.
21419 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
21420 always use the best expression.
21421 (vt_expand_loc): Add ignore_cur_loc argument.
21422 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
21423 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
21424 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
21425 note for all calls.
21426 (vt_add_function_parameter): Use cselib_lookup_from_insn.
21427 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
21428 argument. Don't call cselib_preserve_only_values and
21429 cselib_reset_table.
21430 (note_register_arguments): New function.
21431 (vt_initialize): Compute argument_reg_set. Call
21432 vt_add_function_parameters before processing basic blocks instead of
21433 afterwards. For calls call prepare_call_arguments before calling
21434 cselib_process_insn.
21435 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
21436 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
21437 (var-tracking.o): Depend on $(TM_P_H).
21438 * cfglayout.h (insn_scope): New prototype.
21439 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
21440 * cfglayout.c (insn_scope): No longer static.
21441 * insn-notes.def (CALL_ARG_LOCATION): New.
21442 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
21443 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
21444 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
21445 nothing for DECL_EXTERNAL BLOCK_VARS.
21446
9ef13bd0
AM
214472011-03-16 Alan Modra <amodra@gmail.com>
21448
21449 PR target/45844
21450 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21451 create invalid offset address for vsx splat insn.
21452 * config/rs6000/predicates.md (splat_input_operand): New.
21453 * config/rs6000/vsx.md (vsx_splat_*): Use it.
21454
56b67510
XDL
214552011-03-15 Xinliang David Li <davidxl@google.com>
21456
21457 PR c/47837
21458 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
21459 (normalize_preds): New function.
21460 (is_use_properly_guarded): Normalize def predicates.
21461
80fffdef
RR
214622011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21463
732f37c6 21464 PR target/46788
80fffdef
RR
21465 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
21466 in the output template.
21467
930672ad
RG
214682011-03-15 Richard Guenther <rguenther@suse.de>
21469
21470 PR middle-end/47650
21471 * tree-pretty-print.c (dump_function_declaration): Properly
21472 dump unprototyped and varargs function types.
21473
c7ee7b45
RG
214742011-03-15 Richard Guenther <rguenther@suse.de>
21475
21476 PR tree-optimization/13954
21477 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
21478 and friends.
21479
b2ad5e37
RG
214802011-03-15 Richard Guenther <rguenther@suse.de>
21481
21482 PR tree-optimization/48037
21483 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
21484 selects into BIT_FIELD_REFs.
21485 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
21486 vector select.
21487
7ee93d4e
JJ
214882011-03-15 Jakub Jelinek <jakub@redhat.com>
21489
21490 PR tree-optimization/48129
21491 * builtins.c (fold_builtin_snprintf): Convert to type of
21492 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
21493 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
21494
e106efc7
RG
214952011-03-15 Richard Guenther <rguenther@suse.de>
21496
21497 PR tree-optimization/41490
21498 * tree-ssa-dce.c (propagate_necessity): Handle returns without
21499 value but with VUSE.
21500 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
21501 return statements.
21502 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
21503 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
21504 * tree-tailcall.c (find_tail_calls): Ignore returns.
21505
17dea42f
RG
215062011-03-15 Richard Guenther <rguenther@suse.de>
21507
21508 PR middle-end/48031
21509 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
21510 or variable-indexed array accesses when in gimple form.
21511
01c77a60
RG
215122011-03-15 Richard Guenther <rguenther@suse.de>
21513
16cc4440 21514 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 21515
77b0791e
AM
215162011-03-15 Alan Modra <amodra@gmail.com>
21517
21518 PR target/48032
21519 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
21520 presume symbol_refs without a symbol_ref_decl are suitably
21521 aligned, nor other trees we may see here. Handle anchor symbols.
21522 (legitimate_constant_pool_address_p): Comment. Add mode param.
21523 Check cmodel=medium addresses. Adjust all calls.
21524 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
21525 creating cmodel=medium optimized access to locals.
21526 * config/rs6000/constraints.md (R): Pass QImode to
21527 legitimate_constant_pool_address_p.
21528 * config/rs6000/predicates.md (input_operand): Pass mode to
21529 legitimate_constant_pool_address_p.
21530 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
21531 Update prototype.
21532
35f61ba4
MM
215332011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21534
21535 PR target/48053
21536 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
21537 64-bit constants being loaded into registers other than GPRs such
21538 as loading 0 into a VSX register.
21539
07332e6d
RO
215402011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21541
16cc4440 21542 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 21543
de888d90
JJ
215442011-03-14 Jakub Jelinek <jakub@redhat.com>
21545
ba3ceb2d
JJ
21546 PR middle-end/47917
21547 * builtins.c (fold_builtin_snprintf): New function.
21548 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
21549 (fold_builtin_4): Likewise.
21550
2e64f8b8
JJ
21551 PR middle-end/38878
21552 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
21553 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
21554 and C - X == X also strip nops from +/-/p+ operand.
21555 When optimizing -X == C, fold C to arg0's type.
21556
de888d90
JJ
21557 PR debug/47946
21558 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
21559 emit it as add_AT_int instead of add_AT_unsigned.
21560
215612011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
21562
21563 * unwind-dw2.c: Include sys/sdt.h if it exists.
21564 (_Unwind_DebugHook): Use STAP_PROBE2.
21565 * config.in, configure: Rebuild.
21566 * configure.ac: Check for sys/sdt.h.
21567
d34abfd2
UB
215682011-03-14 Uros Bizjak <ubizjak@gmail.com>
21569
21570 * config/i386/i386.md (ROUND_FLOOR): New constant.
21571 (ROUND_CEIL): Ditto.
21572 (ROUND_TRUNC): Ditto.
21573 (ROUND_MXCSR): Ditto.
21574 (ROUND_NO_EXC): Ditto.
21575 (rint<mode>2): Use new defines instead of numerical constants.
21576 (floor<mode>2): Ditto.
21577 (ceil<mode>2): Ditto.
21578 (btrunc<mode>2): Ditto.
21579 * config/i386/i386-builtin-types.def: Define ROUND function type
21580 aliases.
21581 * config/i386/i386.c (enum ix86_builtins): Add
21582 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
21583 (struct builtin_description): Add
21584 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
21585 (ix86_expand_sse_round): New static function.
21586 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
21587 function types.
21588 (ix86_builtin_vectorized_function): Handle
21589 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21590
87f9e23d
TT
215912011-03-14 Tom Tromey <tromey@redhat.com>
21592
21593 * c-parser.c (c_parser_asm_string_literal): Clear
21594 warn_overlength_strings.
21595
b3ab9ea2
TT
215962011-03-14 Tom Tromey <tromey@redhat.com>
21597
21598 * c-parser.c (disable_extension_diagnostics): Save
21599 warn_overlength_strings.
21600 (restore_extension_diagnostics): Restore warn_overlength_strings.
21601
6bd73dd8
JJ
216022011-03-14 Jakub Jelinek <jakub@redhat.com>
21603
21604 * BASE-VER: Change to 4.7.0.
21605
7f4d6e1b
RG
216062011-03-14 Richard Guenther <rguenther@suse.de>
21607
21608 PR middle-end/48098
21609 * tree.c (build_vector_from_val): Adjust assert to requirements
21610 and reality.
21611
c6104ef1
JJ
216122011-03-14 Jakub Jelinek <jakub@redhat.com>
21613
21614 PR bootstrap/48102
d34abfd2 21615 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 21616
dfa95e19
AT
216172011-03-14 Andreas Tobler <andreast@fgznet.ch>
21618
f60c2554 21619 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
21620 terms of target_flags_explicit. Adjust copyright year.
21621
21622 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
21623 * config/rs6000/t-freebsd: New file. Add override for
21624 LIB2FUNCS_EXTRA.
21625
bb322018
CD
216262011-03-13 Chris Demetriou <cgd@google.com>
21627
21628 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
21629 (-fno-diagnostics-show-option): this, to reflect current default.
21630 (-Werror=): Update text about -fno-diagnostics-show-option.
21631
12b1c80b
PB
216322011-03-12 Peter Bergner <bergner@vnet.ibm.com>
21633
21634 PR target/48053
21635 * config/rs6000/predicates.md (easy_vector_constant_add_self,
21636 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
21637 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
21638 mode is not V2DImode or V2DFmode.
21639 (vspltis_constant): Do not handle V2DImode and V2DFmode.
21640 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
21641 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
21642 registers to 0.
21643 (movdi_internal64): Likewise.
21644
57d598f7
SP
216452011-03-12 Sebastian Pop <sebastian.pop@amd.com>
21646
21647 PR tree-optimization/47127
21648 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
21649 parameter.
21650 (set_cloog_options): Same.
21651 (scop_to_clast): Same.
21652 (print_clast_stmt): Do not call cloog_state_malloc and
21653 cloog_state_free.
21654 (print_generated_program): Same.
21655 (gloog): Same.
21656 * graphite-clast-to-gimple.h (cloog_state): Declared.
21657 (scop_to_clast): Adjust declaration.
21658 * graphite.c (cloog_state): Defined here.
21659 (graphite_initialize): Call cloog_state_malloc.
21660 (graphite_finalize): Call cloog_state_free.
21661
f231b5ff
JM
216622011-03-11 Jason Merrill <jason@redhat.com>
21663
21664 * attribs.c (lookup_attribute_spec): Take const_tree.
21665 * tree.h: Adjust.
21666
6a4e2bd5
JM
216672011-03-11 Joseph Myers <joseph@codesourcery.com>
21668
21669 * config/sparc/sparc.c (sparc_option_override): Use
21670 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
21671
a758fd67
RG
216722011-03-11 Richard Guenther <rguenther@suse.de>
21673
21674 PR tree-optimization/48067
21675 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
21676 multiplication result will be only used once on the target
21677 stmt.
21678
03dfda54
RG
216792011-03-11 Richard Guenther <rguenther@suse.de>
21680
21681 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
21682
5f11a50a
RG
216832011-03-11 Richard Guenther <rguenther@suse.de>
21684
21685 PR lto/48073
21686 * tree.c (find_decls_types_r): Do not walk types only reachable
21687 from IDENTIFIER_NODEs.
21688
4074f163
JJ
216892011-03-11 Jakub Jelinek <jakub@redhat.com>
21690
21691 PR middle-end/48044
21692 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
21693 all vnode->force_output nodes as needed.
21694
30f7cdcd
JM
216952011-03-11 Jason Merrill <jason@redhat.com>
21696
21697 PR c++/48069
21698 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
21699 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
21700
62ecfeb8
MJ
217012011-03-11 Martin Jambor <mjambor@suse.cz>
21702
21703 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
21704 cgraph_node.
21705
e89e03ab
JJ
217062011-03-11 Jakub Jelinek <jakub@redhat.com>
21707
21708 PR tree-optimization/48063
21709 * ipa-inline.c (cgraph_decide_inlining): Don't try to
21710 inline functions called once if !tree_can_inline_p (node->callers).
21711
efbe978b 217122011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 21713
efbe978b
EB
21714 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
21715 extra_objs.
9d6193a7
CL
21716 * config/score/score3.c: Delete.
21717 * config/score/score3.h: Delete.
21718 * config/score/mul-div.S: Delete.
21719 * config/score/sfp-machine.h: Add new file.
21720 * config/score/constraints.md: Add new file.
21721 * config/score/t-score-softfp: Add new file.
efbe978b 21722 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
21723 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
21724 (score7_extra_constraint): Delete.
efbe978b 21725 (score7_option_override): Remove unused code.
9d6193a7
CL
21726 * config/score/score.c: Remove score3 and score5 define and code.
21727 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 21728 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
21729 * config/score/score.opt: Remove score3 and score5 options.
21730
5de27cca
JDA
217312011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21732
21733 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
21734 when _HPUX_SOURCE is defined.
21735 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
21736
18d92053
JM
217372011-03-10 Jason Merrill <jason@redhat.com>
21738
21739 PR c++/48029
21740 * stor-layout.c (layout_type): Don't set structural equality
21741 on arrays of incomplete type.
21742 * tree.c (type_hash_eq): Handle comparing them properly.
21743
67a2f76d
JJ
217442011-03-10 Jakub Jelinek <jakub@redhat.com>
21745
21746 PR debug/48043
18d92053 21747 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
21748 result mode matches original rtl mode.
21749
d845b2f9
NC
217502011-03-10 Nick Clifton <nickc@redhat.com>
21751
21752 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 21753 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 21754
db7ec035
JJ
217552011-03-09 Jakub Jelinek <jakub@redhat.com>
21756
21757 PR rtl-optimization/47866
21758 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
21759 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
21760 if target wasn't scalar.
21761 * function.c (assign_stack_temp_for_type): Assert that neither
21762 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
21763 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
21764 macro.
21765 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
21766
5d304e47
AK
217672011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21768
21769 * config/s390/s390-protos.h (s390_label_align): New prototype.
21770 * config/s390/s390.c (s390_label_align): New function.
21771 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
21772
93b826f0
MM
217732011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
21774
21775 PR target/47755
21776 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
21777 V2DI/V2DF constants. Only all 0's or all 1's are easy.
21778 (output_vec_const_move): Ditto.
21779
ef78aed6
AS
217802011-03-08 Anatoly Sokolov <aesok@post.ru>
21781
21782 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
21783 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
21784 * config/mips/mips.c (mips_preferred_reload_class): Make static.
21785 Change 'rclass' argument and result type to reg_class_t.
21786 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21787
5f892aa0
GJL
217882011-03-08 Georg-Johann Lay <avr@gjlay.de>
21789
9e43ad68
UB
21790 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21791 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
21792 (TARGET_MEMORY_MOVE_COST): Define.
21793 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 21794
32bd2409
JJ
217952011-03-08 Jakub Jelinek <jakub@redhat.com>
21796
530a4800
JJ
21797 PR debug/47881
21798 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
21799 removed anything.
21800
32bd2409
JJ
21801 PR tree-optimization/48022
21802 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
21803 for EQ/NE_EXPR.
21804
c7148991
JJ
218052011-03-07 Jakub Jelinek <jakub@redhat.com>
21806
21807 PR debug/47991
21808 * var-tracking.c (find_use_val): Return NULL for
21809 cui->sets && cui->store_p BLKmode MEMs.
21810
43070a6e
AS
218112011-03-07 Anatoly Sokolov <aesok@post.ru>
21812
21813 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
21814 Remove.
21815 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
21816 xstormy16_print_operand_address): Remove.
21817 * config/stormy16/stormy16.c (xstormy16_print_operand,
21818 xstormy16_print_operand_address): Make static.
21819 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21820
efbe978b 218212011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
21822
21823 PR target/47862
21824 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21825 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
21826 before definition.
21827
cec8ac0b
ZD
218282011-03-07 Zdenek Dvorak <ook@ucw.cz>
21829
21830 PR bootstrap/48000
21831 * cfgloopmanip.c (fix_bb_placements): Return immediately
21832 if FROM is BASE_LOOP's header.
21833
59527282
PW
218342011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
21835
21836 * gimplify.c (gimplify_function_tree): Fix building calls
21837 to __builtin_return_address.
21838
617718f7
AM
218392011-03-07 Alan Modra <amodra@gmail.com>
21840
21841 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
21842 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
21843 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
21844 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
21845 return_mode args.
21846 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
21847 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
21848 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
21849 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
21850 * config/rs6000/rs6000.c
21851 (rs6000_elf_end_indicate_exec_stack): Rename to..
21852 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
21853 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
21854 (rs6000_file_start): ..here.
21855 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
21856 file scope variables.
21857 (call_ABI_of_interest): New function.
21858 (init_cumulative_args): Set above vars when function return value
21859 is a float, vector, or small struct.
21860 (rs6000_function_arg_advance_1): Likewise for function args.
21861 (rs6000_va_start): Set rs6000_passes_float if variable arg function
21862 references float args.
21863
38528d50
MX
218642011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
21865
21866 * doc/cfg.texi: Remove "See" before @ref.
21867 * doc/invoke.texi: Likewise.
21868
f42cf4f4
JM
218692011-03-05 Jason Merrill <jason@redhat.com>
21870
21871 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
21872
804a304d
AG
218732011-03-05 Anthony Green <green@moxielogic.com>
21874
21875 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
21876
634ee309
ZD
218772011-03-05 Zdenek Dvorak <ook@ucw.cz>
21878
21879 PR rtl-optimization/47899
21880 * cfgloopmanip.c (fix_bb_placements): Fix first argument
21881 to flow_loop_nested_p when moving the loop upward.
21882
6fe471c8
RE
218832011-03-05 Richard Earnshaw <rearnsha@arm.com>
21884
21885 PR target/47719
21886 * arm.md (movhi_insn_arch4): Accept any immediate constant.
21887
cc58ceee
JJ
218882011-03-05 Jakub Jelinek <jakub@redhat.com>
21889
21890 PR tree-optimization/47967
21891 * ipa-cp.c (build_const_val): Return NULL instead of creating
21892 VIEW_CONVERT_EXPR for mismatching sizes.
21893 (ipcp_create_replace_map): Return NULL if build_const_val failed.
21894 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
21895 give up on versioning.
21896
ea868305
AM
218972011-03-05 Alan Modra <amodra@gmail.com>
21898
21899 PR target/47986
21900 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21901 full cmodel medium/large lo_sum + high addresses.
21902
bc6ce334
AK
219032011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21904
21905 * config/s390/s390.c (s390_decompose_address): Reject non-literal
21906 pool references in UNSPEC_LTREL_OFFSET.
21907
87e7b310
JH
219082011-03-04 Jan Hubicka <jh@suse.cz>
21909
21910 PR lto/47497
21911 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
21912 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
21913 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
21914 Add node pointers.
87e7b310
JH
21915 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
21916 cgraph_add_thunk): Add node pointers.
21917 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
21918 associated to right node.
21919 (input_node): Update use of cgraph_same_body_alias
21920 and cgraph_add_thunk.
21921
d9c64246
CF
219222011-03-04 Changpeng Fang <changpeng.fang@amd.com>
21923
21924 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
21925 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
21926 modes when the flag -mprefer-avx128 is on.
d9c64246 21927
08707076
RS
219282011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
21929
21930 * dwarf2out.c (compare_loc_operands): Fix address handling.
21931
52517c81
AM
219322011-03-04 Alan Modra <amodra@gmail.com>
21933
21934 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
21935
b147c5b9
RG
219362011-03-04 Richard Guenther <rguenther@suse.de>
21937
21938 PR middle-end/47968
21939 * expmed.c (extract_bit_field_1): Prefer vector modes that
21940 vec_extract patterns can handle.
21941
8750672f
RG
219422011-03-04 Richard Guenther <rguenther@suse.de>
21943
21944 PR middle-end/47975
21945 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
21946
9eac0f2a
RH
219472011-03-04 Richard Henderson <rth@redhat.com>
21948
21949 * explow.c (emit_stack_save): Remove 'after' parameter.
21950 (emit_stack_restore): Likewise.
21951 * expr.h: Update to match.
21952 * builtins.c, calls.c, stmt.c: Likewise.
21953 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
21954 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
21955 * function.c (expand_function_end): Insert the emit_stack_save
21956 sequence before parm_birth_insn instead of after.
21957
dfee1406
UB
219582011-03-03 Uros Bizjak <ubizjak@gmail.com>
21959
21960 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
21961 (ssse3_pmaddubsw128): Ditto.
21962 (ssse3_pmaddubsw): Ditto.
21963
f1d4c3de
SE
219642011-03-03 Steve Ellcey <sje@cup.hp.com>
21965
21966 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
21967
71f3a3f5
JJ
219682011-03-03 Jakub Jelinek <jakub@redhat.com>
21969
423ed416
JJ
21970 PR c/47963
21971 * gimplify.c (omp_add_variable): Only call omp_notice_variable
21972 on TYPE_SIZE_UNIT if it is a DECL.
21973
71f3a3f5
JJ
21974 PR debug/47283
21975 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
21976 first operand is not is_gimple_mem_ref_addr, try to fold it.
21977 If the operand still isn't is_gimple_mem_ref_addr, clear
21978 MEM_EXPR on op0.
21979
4b1a5c0d
RG
219802011-03-03 Richard Guenther <rguenther@suse.de>
21981
21982 PR middle-end/47283
21983 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
21984 match comment.
21985 (refs_may_alias_p_1): For release branches return true if
21986 we are confused by our input.
21987
b46616fd
AK
219882011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21989
21990 * config/s390/s390.c (s390_function_value): Rename to ...
21991 (s390_function_and_libcall_value): ... this.
21992 (s390_function_value): New function.
21993 (s390_libcall_value): New function.
dfee1406 21994 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
21995 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
21996 target macro definitions.
21997 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
21998
46d8fabb
JM
219992011-03-02 Joseph Myers <joseph@codesourcery.com>
22000
22001 * config/i386/freebsd64.h (CC1_SPEC): Define.
22002 * config/i386/linux64.h (CC1_SPEC): Define.
22003 * config/i386/x86-64.h (CC1_SPEC): Don't define.
22004
6b1ce545
AS
220052011-03-02 Anatoly Sokolov <aesok@post.ru>
22006
22007 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
22008 Remove.
22009 * config/stormy16/stormy16.c: Include reload.h.
22010 (xstormy16_memory_move_cost): New function.
22011 (TARGET_MEMORY_MOVE_COST): Define.
22012
34161e98
RS
220132011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
22014
22015 PR rtl-optimization/47925
22016 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
22017 with side effects. Remove the more-specific check for volatile asms.
22018
f60a97cf
AM
220192011-03-02 Alan Modra <amodra@gmail.com>
22020
22021 PR target/47935
22022 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
22023 toc relative addresses for valid offsets.
22024
f2ca11ca
RG
220252011-03-01 Richard Guenther <rguenther@suse.de>
22026
22027 PR tree-optimization/47890
22028 * tree-vect-loop.c (get_initial_def_for_induction): Set
22029 related stmt properly.
22030
7a00d9ea
RG
220312011-03-01 Richard Guenther <rguenther@suse.de>
22032
22033 PR lto/47924
22034 * lto-streamer.c (lto_record_common_node): Also register
22035 the canonical type.
22036
06c7edcc
RG
220372011-03-01 Richard Guenther <rguenther@suse.de>
22038
22039 PR lto/46911
22040 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22041 Do not stream DECL_ABSTRACT_ORIGIN.
22042 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
22043 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
22044 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22045 Do not stream DECL_ABSTRACT_ORIGIN.
22046 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
22047 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
22048
998871e9
AS
220492011-02-28 Anatoly Sokolov <aesok@post.ru>
22050
22051 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
22052 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 22053 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
22054 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
22055 Add 'outgoing' argument.
22056 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
22057 function.
22058 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22059 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22060
94369251
KT
220612011-02-28 Kai Tietz <kai.tietz@onevision.com>
22062
22063 PR debug/28047
22064 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
22065 (lookup_filename): Likewise.
b2e2ea67 22066 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 22067
80a832cd
JJ
220682011-02-28 Bernd Schmidt <bernds@codesourcery.com>
22069 Jakub Jelinek <jakub@redhat.com>
22070
22071 PR middle-end/47893
22072 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
22073 (assign_stack_local_1): Change last argument type to int.
22074 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
22075 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 22076 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
22077 (assign_stack_local): Adjust caller.
22078 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
22079 of assign_stack_local, pass 0 as last argument.
22080 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
22081 callers.
22082
1b500976
JJ
220832011-02-28 Jakub Jelinek <jakub@redhat.com>
22084
f61c6f34
JJ
22085 PR debug/47283
22086 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
22087 Use target address_mode and pointer_mode hooks instead of hardcoded
22088 Pmode and ptr_mode. Handle some simple cases of extending if
22089 POINTERS_EXTEND_UNSIGNED < 0.
22090 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
22091 Call convert_debug_memory_address.
22092 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
22093 convert_debug_memory_address.
22094
1b500976
JJ
22095 PR middle-end/46790
22096 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
22097 * configure: Regenerated.
22098 * config.in: Regenerated.
22099 * varasm.c (default_function_section): Return NULL
b2e2ea67 22100 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 22101
2f2935b6
MJ
221022011-02-28 Martin Jambor <mjambor@suse.cz>
22103
22104 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
22105 the description to match the printed values.
22106
474086eb
RG
221072011-02-28 Richard Guenther <rguenther@suse.de>
22108
22109 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
22110 of the copied scope tree.
22111
15bf6f3a
RW
221122011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22113
22114 * doc/extend.texi (Function Attributes): Avoid deeply (and
22115 wrongly) nested tables.
22116
f6b439c9
JJ
221172011-02-27 Jakub Jelinek <jakub@redhat.com>
22118
22119 PR middle-end/47903
22120 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
22121 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
22122 r isn't op0 nor op1.
22123
1d8ca2c7
GJL
221242011-02-23 Georg-Johann Lay <avr@gjlay.de>
22125
22126 * config/avr/avr.md: Remove magic comment for emacs.
22127
593fca4b
GJL
221282011-02-23 Georg-Johann Lay <avr@gjlay.de>
22129
22130 PR target/45261
22131 * config/avr/avr.c (avr_option_override): Use error on bad options.
22132 (avr_help): New function.
22133 (TARGET_HELP): Define.
22134
6609216e
GJL
221352011-02-22 Georg-Johann Lay <avr@gjlay.de>
22136
22137 PR target/42240
22138 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
22139 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
22140
03d458af
GP
221412011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
22142
22143 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
22144 (ARM Options): Ditto.
22145 (i386 and x86-64 Options): Ditto.
22146 (RX Options): Ditto.
22147 (SPARC Options): Ditto.
22148
1c379b78
TC
221492011-02-26 Tijl Coosemans <tijl@coosemans.org>
22150
22151 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
22152 FreeBSD 6 and later. Generally use cpu generic.
22153
d5ed058c 221542011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 22155
d5ed058c
GP
22156 * doc/cpp.texi: Update copyright years.
22157
509d65dd 221582011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 22159
509d65dd 22160 PR target/46898
308d39cd
SB
22161 * config/lm32/lm32.md (ashrsi3): Added needed variable.
22162
509d65dd 221632011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 22164
509d65dd 22165 PR target/46898
308d39cd
SB
22166 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
22167 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
22168 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
22169 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 22170 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
22171 (gen_int_relational): Move declarations to start of function.
22172
822ba6d7
EB
221732011-02-25 Eric Botcazou <ebotcazou@adacore.com>
22174
22175 PR tree-optimization/45470
22176 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
22177 can throw internally only.
22178 * tree-vect-stmts.c (vectorizable_call): Likewise.
22179
ef795fc2
AS
221802011-02-24 Anatoly Sokolov <aesok@post.ru>
22181
22182 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
22183 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22184 * config/stormy16/stormy16-protos.h
22185 (xstormy16_preferred_reload_class): Remove.
22186 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
22187 static. Change 'rclass' argument and return type to reg_class_t.
22188 (TARGET_PREFERRED_RELOAD_CLASS,
22189 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22190
1c3277ee
RG
221912011-02-24 Richard Guenther <rguenther@suse.de>
22192
22193 * lto-streamer-in.c (input_bb): Do not find referenced vars
22194 in debug statements.
22195
67e18edb
JM
221962011-02-23 Jason Merrill <jason@redhat.com>
22197
22198 * common.opt (fabi-version): Document v5 and v6.
22199
b14fad9d
RG
222002011-02-23 Richard Guenther <rguenther@suse.de>
22201
22202 PR tree-optimization/47849
22203 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
22204
7fcf46f5
JZ
222052011-02-23 Jie Zhang <jie@codesourcery.com>
22206
22207 * opts-common.c (decode_cmdline_option): Print empty string
22208 argument as "" in decoded->orig_option_with_args_text.
22209 * gcc.c (execute): Print empty string argument as ""
22210 in the verbose output.
22211 (do_spec_1): Keep empty string argument.
22212
f85b70fd
NF
222132011-02-23 Nathan Froyd <froydnj@codesourcery.com>
22214
22215 * config.gcc: Declare score-* and crx-* obsolete.
22216
b152a615
JZ
222172011-02-23 Jie Zhang <jie@codesourcery.com>
22218
22219 PR rtl-optimization/47763
22220 * web.c (web_main): Ignore naked clobber when replacing register.
22221
bb6e77bc
AS
222222011-02-22 Anatoly Sokolov <aesok@post.ru>
22223
22224 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22225 Remove.
22226
68bf6491
SP
222272011-02-22 Sebastian Pop <sebastian.pop@amd.com>
22228
22229 PR doc/47848
22230 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
22231
88ee1fc7
MS
222322011-02-22 Mike Stump <mikestump@comcast.net>
22233
22234 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
22235 assembler.
22236 * configure: Regenerate.
22237
6042d1dd
CLT
222382011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
22239
22240 PR rtl-optimization/46002
22241 * ira-color.c (update_copy_costs): Change class intersection
22242 test to reg_class_contents[] test of 'hard_regno'.
22243
7de97f9e
JM
222442011-02-21 Joseph Myers <joseph@codesourcery.com>
22245
22246 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
22247 than Driver option.
22248 * config/hpux11.opt (mt): Likewise.
22249 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
22250 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
22251 * config/vax/elf.opt (mno-asm-pic): Likewise.
22252 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
22253
d1d46f9f
MS
222542011-02-21 Mike Stump <mikestump@comcast.net>
22255
22256 PR target/47822
22257 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
22258 tree so we can get save the type.
22259 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
22260 for CFString instead of trying to use past the end of the builtins.
22261 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
22262 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
22263 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
22264 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
22265 Rename to darwin_builtin_cfstring.
22266 (darwin_init_cfstring_builtins): Return the built type.
22267
23e0d930
UB
222682011-02-21 Uros Bizjak <ubizjak@gmail.com>
22269
22270 PR target/47840
22271 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
22272 (_mm256_insert_epi64): Use _mm_insert_epi64.
22273
192997cf
AS
222742011-02-21 Anatoly Sokolov <aesok@post.ru>
22275
22276 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22277 * config/stormy16/stormy16-protos.h
22278 (xstormy16_mode_dependent_address_p): Remove.
22279 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
22280 Make static. Change return type to bool. Change argument type to
22281 const_rtx. Remove dead code.
22282 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22283
e292d003
RG
222842011-02-21 Richard Guenther <rguenther@suse.de>
22285
22286 PR lto/47820
22287 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22288 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22289 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
22290 TUs context.
23e0d930 22291 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
22292 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22293
77f846e9
RG
222942011-02-20 Richard Guenther <rguenther@suse.de>
22295
22296 PR lto/47822
22297 * tree.c (free_lang_data_in_decl): Clean builtins from
22298 the TU decl BLOCK_VARS.
23e0d930 22299
b2cddfc8
AO
223002011-02-19 Alexandre Oliva <aoliva@redhat.com>
22301
22302 PR debug/47620
22303 PR debug/47630
22304 * haifa-sched.c (fix_tick_ready): Skip tick computation
22305 for debug insns.
22306
becf4c11
RG
223072011-02-19 Richard Guenther <rguenther@suse.de>
22308
22309 PR lto/47647
22310 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
22311 Remove lazy BLOCK_VARS streaming.
22312 (lto_input_ts_block_tree_pointers): Likewise.
22313 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
22314
27f98305
JM
223152011-02-19 Joseph Myers <joseph@codesourcery.com>
22316
22317 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
22318
064bf3f4
JM
223192011-02-19 Joseph Myers <joseph@codesourcery.com>
22320
22321 * config/i386/biarch32.h, config/i386/mach.h,
22322 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
22323
9215ddc3
JJ
223242011-02-19 Jakub Jelinek <jakub@redhat.com>
22325
22326 PR target/47800
22327 * config/i386/i386.md (peephole2 for shift and plus): Use
22328 operands[1] original mode in the first insn.
22329
8b021004
MS
223302011-02-18 Mike Stump <mikestump@comcast.net>
22331
65ded153 22332 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 22333
f84ae14c
JH
223342011-02-18 Jan Hubicka <jh@suse.cz>
22335
22336 PR middle-end/47788
65ded153
EB
22337 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
22338 to zero when the function is not inlinable at all.
f84ae14c 22339
eddabc80
JDA
223402011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22341
22342 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
22343 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
22344 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
22345 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
22346 * config/pa/t-pa64: Likewise.
22347 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
22348
ca3da783
JJ
223492011-02-18 Jakub Jelinek <jakub@redhat.com>
22350
22351 PR driver/47787
22352 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
22353
430aa868
JDA
223542011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22355
22356 PR target/47792
22357 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
22358
4bf7ff7e
AS
223592011-02-18 Anatoly Sokolov <aesok@post.ru>
22360
22361 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22362 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
22363 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
22364 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22365 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
22366 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
22367 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
22368 m32r_load_postinc_p, m32r_store_preinc_predec_p,
22369 m32r_legitimate_address_p): New functions.
22370 * config/m32r/constraints.md (constraint "S"): Don't use
22371 STORE_PREINC_PREDEC_P.
22372 (constraint "U"): Don't use LOAD_POSTINC_P.
22373
7efcf910
CLT
223742011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
22375
22376 PR rtl-optimization/46178
22377 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
22378 compute ira_hard_regno_cover_class[].
22379
237d6259
RG
223802011-02-18 Richard Guenther <rguenther@suse.de>
22381
22382 PR lto/47798
22383 * lto-streamer.h (lto_global_var_decls): Declare.
22384 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
22385 statics for global var processing.
22386
12d80acc
RG
223872011-02-18 Richard Guenther <rguenther@suse.de>
22388
22389 PR tree-optimization/47737
22390 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
22391 edge dominance check.
22392
abfea58d
JJ
223932011-02-18 Jakub Jelinek <jakub@redhat.com>
22394
22395 PR debug/47780
22396 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
22397 avoid invalid rtx sharing.
22398
f73c8882
GP
223992011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
22400
22401 * doc/cpp.texi (Obsolete Features): Add background on the
22402 origin of assertions.
22403
d764a8e6
IS
224042011-02-17 Iain Sandoe <iains@gcc.gnu.org>
22405
22406 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 22407 objc_abi == 2.
d764a8e6
IS
22408 * config/darwin.c (output_objc_section_asm_op): Added support for
22409 ABI v1 and v2.
22410 (is_objc_metadata): New.
22411 (darwin_objc2_section): New.
22412 (darwin_objc1_section): New.
22413 (machopic_select_section): Added support for ABI v1 and v2.
22414 (darwin_emit_objc_zeroed): New.
22415 (darwin_output_aligned_bss): Detect objc metadata and treat it
22416 appropriately.
22417 (darwin_asm_output_aligned_decl_common): Same.
22418 (darwin_asm_output_aligned_decl_local): Same.
22419 * config/darwin-sections.def: Updated for ABI v1 and v2.
22420 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
22421 compiling Objective-C code for the NeXT runtime, default to using
22422 ABI version 0 for 32-bit, and version 2 for 64-bit.
22423
0a8134ca
JM
224242011-02-17 Joseph Myers <joseph@codesourcery.com>
22425
22426 * common.opt (optimize_fast): New Variable.
22427 * opts.c (default_options_optimization): Use opts->x_optimize_fast
22428 instead of local variable ofast.
22429
0a256240
NP
224302011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
22431
22432 * doc/invoke.texi (fobjc-abi-version): Documented.
22433 (fobjc-nilcheck): Documented.
22434 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
22435 version.
22436
fa381cb2
JM
224372011-02-17 Joseph Myers <joseph@codesourcery.com>
22438
22439 PR driver/47390
22440 * common.opt (export-dynamic): New Driver option.
22441 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
22442
5437eaa6
JM
224432011-02-17 Joseph Myers <joseph@codesourcery.com>
22444
22445 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
22446
bb7e6d55
AO
224472011-02-17 Alexandre Oliva <aoliva@redhat.com>
22448 Jan Hubicka <jh@suse.cz>
22449
22450 PR debug/47106
22451 PR debug/47402
22452 * cfgexpand.c (account_used_vars_for_block): Remove.
22453 (estimated_stack_frame_size): Use referenced vars.
22454 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
22455 that were referenced in the original function. Test src_fn
22456 rather than cfun. Drop redundant get_var_ann.
22457 (setup_one_parameter): Drop redundant get_var_ann.
22458 (declare_return_variable): Likewise.
22459 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
22460 (copy_arguments_for_versioning): Drop redundant get_var_ann.
22461 * ipa-inline.c (compute_inline_parameters): Do not compute
22462 disregard_inline_limits here.
bb7e6d55
AO
22463 (compute_inlinable_for_current, pass_inlinable): New.
22464 (pass_inline_parameters): Require PROP_referenced_vars.
22465 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 22466 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
22467 (cgraph_analyze_function): Set .disregard_inline_limits.
22468 * tree-sra.c (convert_callers): Compute inliner parameters
22469 only for functions already in SSA form.
22470
f181a8a7
JM
224712011-02-17 Joseph Myers <joseph@codesourcery.com>
22472
22473 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
22474 -mlittle-endian-data.
22475
c6869789
JM
224762011-02-17 Joseph Myers <joseph@codesourcery.com>
22477
22478 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
22479 -mno-fpu, not -fpu and -no-fpu.
22480 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
22481 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
22482
fbf4bfd3
UB
224832011-02-17 Uros Bizjak <ubizjak@gmail.com>
22484
22485 PR target/43653
22486 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
22487 input reload with PLUS RTX.
22488
70be5dc7
JM
224892011-02-16 Joseph Myers <joseph@codesourcery.com>
22490
22491 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
22492 of InverseVar(MDMX).
22493
30b1646e
JM
224942011-02-16 Joseph Myers <joseph@codesourcery.com>
22495
22496 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
22497 --m4-340.
22498
ab7b71e9
JM
224992011-02-16 Joseph Myers <joseph@codesourcery.com>
22500
22501 * config/mn10300/mn10300.opt (mno-crt0): New.
22502
466f3f08
JM
225032011-02-16 Joseph Myers <joseph@codesourcery.com>
22504
22505 * config/m68k/uclinux.opt (static-libc): New Driver option.
22506
8226cd7b
JM
225072011-02-16 Joseph Myers <joseph@codesourcery.com>
22508
22509 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
22510
45cab1d7
JM
225112011-02-16 Joseph Myers <joseph@codesourcery.com>
22512
22513 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
22514 %{muser-extend-enabled}.
22515
65aab64f
RG
225162011-02-16 Richard Guenther <rguenther@suse.de>
22517
22518 PR tree-optimization/47738
22519 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
22520 the TODO from tree_predictive_commoning.
22521
fc2fa4fb
JL
225222011-02-15 Jeff Law <law@redhat.com>
22523
22524 Revert
22525 2011-01-25 Jeff Law <law@redhat.com>
22526
22527 PR rtl-optimization/37273
22528 * ira-costs.c (scan_one_insn): Detect constants living in memory and
22529 handle them like argument loads from stack slots. Do not double
22530 count memory for memory constants and argument loads from stack slots.
22531
e3a69bb4
MM
225322011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22533
22534 PR target/47755
22535 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
22536 mode for vector constants. Remove code that checks for TImode.
22537
de650422
AO
225382011-02-15 Alexandre Oliva <aoliva@redhat.com>
22539
22540 PR debug/47106
22541 PR debug/47402
22542 * cgraph.h (compute_inline_parameters): Return void.
22543 * ipa-inline.c (compute_inline_parameters): Adjust.
22544
30925d94
AO
225452011-02-15 Alexandre Oliva <aoliva@redhat.com>
22546
22547 PR debug/47106
22548 PR debug/47402
22549 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
22550 rather than decl.
22551 * cfgexpand.c (estimated_stack_frame_size): Likewise.
22552 * ipa-inline.c (compute_inline_parameters): Adjust.
22553
1b9a784a
AO
225542011-02-15 Alexandre Oliva <aoliva@redhat.com>
22555
22556 PR debug/47106
22557 PR debug/47402
22558 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
22559 Adjust all users. Pass FN to...
22560 * tree-flow-inline.h (first_referenced_var): ... this. Add
22561 fn argument.
22562 * ipa-struct-reorg.c: Adjust.
22563 * tree-dfa.c: Adjust.
22564 * tree-into-ssa.c: Adjust.
22565 * tree-sra.c: Adjust.
22566 * tree-ssa-alias.c: Adjust.
22567 * tree-ssa-live.c: Adjust.
22568 * tree-ssa.c: Adjust.
22569 * tree-ssanames.c: Adjust.
22570 * tree-tailcall.c: Adjust.
22571
27c6b086
AO
225722011-02-15 Alexandre Oliva <aoliva@redhat.com>
22573
22574 PR debug/47106
22575 PR debug/47402
22576 * tree-flow.h (referenced_var_lookup): Add fn parameter.
22577 Adjust all callers.
22578 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
22579 * tree-flow-inline.h: Adjust.
22580 * gimple-pretty-print.c: Adjust.
22581 * tree-into-ssa.c: Adjust.
22582 * tree-ssa.c: Adjust.
22583 * cfgexpand.c: Adjust.
22584
679e8183
NF
225852011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22586
fbf4bfd3
UB
22587 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
22588 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22589 (EXTRA_CONSTRAINT): Delete.
22590 * config/iq2000/constraints.md: New file.
22591 * config/iq2000/iq2000.md: Include it.
679e8183
NF
22592 (define_insn ""): Delete.
22593 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
22594 unsupported constraint letters from patterns.
22595 (call_value, call_value_internal1): Likewise.
22596 (call_value_multiple_internal1): Likewise.
22597
a45d420a
NC
225982011-02-15 Nick Clifton <nickc@redhat.com>
22599
22600 * config/mn10300/mn10300.c: Include tm-constrs.h.
22601 (struct liw_data): New data structure describing an LIW candidate
22602 instruction.
22603 (extract_bundle): Use struct liw_data. Allow small integer
22604 operands for some instructions.
22605 (check_liw_constraints): Use struct liw_data. Remove swapped
22606 parameter. Add comments describing the checks. Fix bug when
22607 assigning the source of liw1 to the source of liw2.
22608 (liw_candidate): Delete. Code moved into extract_bundle.
22609 (mn10300_bundle_liw): Use struct liw_data. Check constraints
22610 before swapping.
22611 * config/mn10300/predicates.md (liw_operand): New predicate.
22612 Allows registers and small integer constants.
22613 * config/mn10300/constraints.md (O): New constraint. Accetps
22614 integers in the range -8 to +7 inclusive.
22615 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
22616 for moving a small integer into a register. Give this alternative
22617 LIW attributes.
22618 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
22619 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
22620 using the J,K,L and M constraints,
22621 (liw): Remove SI mode on second operands to allow for HI and QI
22622 mode values.
22623 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
22624 instruction.
22625
48feba28
RG
226262011-02-15 Richard Guenther <rguenther@suse.de>
22627
22628 PR tree-optimization/47743
22629 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
22630 for a non-type-compatible VN lookup bail out.
22631
ad1c1eeb
NF
226322011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22633
22634 * config/fr30/constraints.md: New file.
22635 * config/fr30/fr30.md: Include it.
22636 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
22637 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22638 (EXTRA_CONSTRAINT): Delete.
22639
49ac143d
NF
226402011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22641
22642 * config/frv/constraints.md: New file.
22643 * config/frv/predicates.md: Include it.
22644 * config/frv/frv.c (reg_class_from_letter): Delete.
22645 (frv_option_override): Don't initialize it.
22646 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
22647 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
22648 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
22649 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22650 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
22651 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22652 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
22653 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
22654 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
22655 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
22656 (REG_CLASS_FROM_CONSTRAINT): Delete.
22657
c95f9494
JJ
226582011-02-15 Jakub Jelinek <jakub@redhat.com>
22659
22660 PR middle-end/47581
22661 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
22662 if frame size is 0 in a leaf function.
22663
13aed611
RO
226642011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22665
22666 PR pch/14940
22667 * config/alpha/host-osf.c: New file.
22668 * config/alpha/x-osf: New file.
22669 * config.host (alpha*-dec-osf*): Use it.
22670
b09c3081
AS
226712011-02-14 Anatoly Sokolov <aesok@post.ru>
22672
22673 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22674 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
22675 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
22676 (rx_mode_dependent_address_p): ...this. Make static. Change argument
22677 type to const_rtx.
22678 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22679
d634083b
NF
226802011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22681
22682 * config/stormy16/constraints.md: New file.
22683 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
22684 Use satisfies_constraint_Q and satisfies_constraint_R.
22685 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
22686 Delete.
22687 (xstormy16_legitiamte_address_p): Declare.
22688 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
22689 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22690 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 22691 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
22692 Un-staticize.
22693 (xstormy16_extra_constraint_p): Delete.
22694
c7dd803e
EB
226952011-02-14 Eric Botcazou <ebotcazou@adacore.com>
22696
22697 PR tree-optimization/46494
22698 * loop-unroll.c (split_edge_and_insert): Adjust comment.
22699 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
22700 (pass_rtl_loop_done): Add TODO_verify_flow.
22701 * fwprop.c (pass_rtl_fwprop): Likewise.
22702 * modulo-sched.c (pass_sms): Likewise.
22703 * tree-ssa-dom.c (pass_dominator): Likewise.
22704 * tree-ssa-loop-ch.c (pass_ch): Likewise.
22705 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
22706 (pass_tree_loop_done): Likewise.
22707 * tree-ssa-pre.c (execute_pre): Likewise.
22708 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22709 * tree-ssa-sink.c (pass_sink_code): Likewise.
22710 * tree-vrp.c (pass_vrp): Likewise.
22711
c6150df6
NF
227122011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22713
c7dd803e
EB
22714 * config/v850/constraints.md: New file.
22715 * config/v850/v850.md: Include it.
22716 * config/v850/predicates.md (reg_or_0_operand): Use
22717 satisfies_constraint_G.
22718 (special_symbolref_operand): Use satisfies_constraint_K.
22719 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
22720 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
22721 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
22722 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22723 (EXTRA_CONSTRAINT): Delete.
22724 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
22725 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
22726 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 22727
30dd1ea3
AS
227282011-02-14 Anatoly Sokolov <aesok@post.ru>
22729
22730 PR target/47696
22731 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
22732 description.
22733
944f4bb3
NF
227342011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22735
22736 * config/mcore/constraints.md: New file.
22737 * config/mcore/mcore.md: Include it.
22738 * config/mcore/mcore.c (reg_class_from_letter): Delete.
22739 * config/mcore/mcore.h (reg_class_from_letter): Delete.
22740 (REG_CLASS_FROM_LETTER): Delete.
22741 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
22742 insn_const_int_ok_for_constraint.
22743 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
22744 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
22745 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22746 (EXTRA_CONSTRAINT): Delete.
22747
ad56a54c
RO
227482011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22749
22750 PR ada/41929
22751 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
22752 (IS_SIGHANDLER): Define.
22753 (sparc64_is_sighandler): New function, split off from
22754 sparc64_fallback_frame_state.
22755 (sparc_is_sighandler): New function, split off from
22756 sparc_fallback_frame_state.
22757 (sparc64_fallback_frame_state): Merge with ...
22758 (sparc_fallback_frame_state): ... this into ...
22759 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
22760 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
22761 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
22762 stack instead of hardcoded offsets.
ad56a54c 22763
fbf4bfd3 227642011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
22765
22766 PR target/45808
22767 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
22768
029c8f3e
RW
227692011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22770
22771 * configure: Regenerate.
22772
a016dc83
JM
227732011-02-12 Joseph Myers <joseph@codesourcery.com>
22774
22775 PR driver/45731
22776 * gcc.c (asm_options): Correct spec matching --target-help.
22777
8957a0ec
MJ
227782011-02-12 Martin Jambor <mjambor@suse.cz>
22779
22780 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
22781 to gimple call error.
22782
6ef828bc
MS
227832011-02-12 Mike Stump <mikestump@comcast.net>
22784
22785 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
22786 comments in backslash regions.
22787
a4015be5
MS
227882011-02-12 Mike Stump <mikestump@comcast.net>
22789 Jakub Jelinek <jakub@redhat.com>
22790 Iain Sandoe <iains@gcc.gnu.org>
22791
22792 PR target/47324
22793 * dwarf2out.c (output_cfa_loc): When required, apply the
22794 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
22795 (output_loc_sequence): Likewise.
22796 (output_loc_operands_raw): Likewise.
22797 (output_loc_sequence_raw): Likewise.
22798 (output_cfa_loc): Likewise.
22799 (output_loc_list): Suppress register number adjustment when
22800 calling output_loc_sequence()
22801 (output_die): Likewise.
22802
5378dda2
AS
228032011-02-12 Anatoly Sokolov <aesok@post.ru>
22804
22805 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
22806 Remove macros.
22807 * config/xtensa/xtensa.c (xtensa_register_move_cost,
22808 xtensa_memory_move_cost): New functions.
22809 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
22810
f3d533d3
AO
228112011-02-12 Alexandre Oliva <aoliva@redhat.com>
22812
22813 PR lto/47225
22814 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
22815 in the current directory.
22816 * configure: Rebuilt.
22817
9d53403c
IS
228182011-02-12 Iain Sandoe <iains@gcc.gnu.org>
22819
22820 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 22821 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
22822 correct indents of the preceding block.
22823
a350a6c8
IS
228242011-02-12 Iain Sandoe <iains@gcc.gnu.org>
22825
22826 * gcc.c (driver_handle_option): Concatenate the argument to -F with
22827 the switch.
22828
bab79a40
JM
228292011-02-11 Joseph Myers <joseph@codesourcery.com>
22830
22831 * common.opt (nostartfiles): New Driver option.
22832
1bbc6693
XDL
228332011-02-11 Xinliang David Li <davidxl@google.com>
22834
22835 PR tree-optimization/47707
22836 * tree-chrec.c (convert_affine_scev): Keep type precision.
22837
1da7d8c0
EB
228382011-02-11 Eric Botcazou <ebotcazou@adacore.com>
22839
22840 PR tree-optimization/47420
22841 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
22842
228432011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
22844
22845 PR rtl-optimization/47614
22846 * rtl.h (check_for_inc_dec): Declare.
22847 * dse.c (check_for_inc_dec): Externalize...
22848 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
22849 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
22850
4df47bca
JM
228512011-02-11 Joseph Myers <joseph@codesourcery.com>
22852
22853 PR driver/47678
22854 * gcc.c (main): Do not compile inputs if there were errors in
22855 option handling.
22856 * opts-common.c (read_cmdline_option): Check for wrong language
22857 after other error checks.
22858
61502ca8
NF
228592011-02-11 Nathan Froyd <froydnj@codesourcery.com>
22860
22861 * cgraph.c: Fix comment typos.
22862 * cgraph.h: Likewise.
22863 * cgraphunit.c: Likewise.
22864 * ipa-cp.c: Likewise.
22865 * ipa-inline.c: Likewise.
22866 * ipa-prop.c: Likewise.
22867 * ipa-pure-const.c: Likewise.
22868 * ipa-ref.c: Likewise.
22869 * ipa-reference.c: Likewise.
22870
b63f974e
JJ
228712011-02-11 Jakub Jelinek <jakub@redhat.com>
22872
d50c5e0c
JJ
22873 PR debug/47684
22874 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 22875
6dd2a13c
RO
228762011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22877
22878 PR testsuite/47400
22879 * doc/sourcebuild.texi (Require Support): Document
22880 dg-require-ascii-locale.
22881
4a087ccf
MX
228822011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
22883
22884 * doc/lto.texi (Write summary): Fix missing parentheses.
22885
a4403164
DD
228862011-02-10 DJ Delorie <dj@redhat.com>
22887
22888 * config/m32c/m32c.c (m32c_option_override): Disable
22889 -fcombine-stack-adjustments until flag value tracking and compare
22890 optimization can be rewritten.
22891
4fac45bd
PB
228922011-02-10 Peter Bergner <bergner@vnet.ibm.com>
22893
22894 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
22895 PROCESSOR_POWER7.
22896 (PROCESSOR_DEFAULT64): Likewise.
22897
72602cd1
RH
228982011-02-10 Richard Henderson <rth@redhat.com>
22899
22900 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
22901 change from 2011-02-03.
22902 * config/rx/rx.c (flags_from_code): Likewise.
22903 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
22904 is valid, n/pz otherwise.
22905 (rx_select_cc_mode): Return CCmode if Y is not zero.
22906
ea57f573
RG
229072011-02-10 Richard Guenther <rguenther@suse.de>
22908
ea4c3e65 22909 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 22910
92b1d23b
RG
229112011-02-10 Richard Guenther <rguenther@suse.de>
22912
22913 PR tree-optimization/47677
22914 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
22915
525a2d06
JJ
229162011-02-10 Jakub Jelinek <jakub@redhat.com>
22917
22918 PR target/47665
22919 * combine.c (make_compound_operation): Only change shifts into
22920 multiplication for SCALAR_INT_MODE_P.
22921
06c969bd
JZ
229222011-02-10 Jie Zhang <jie@codesourcery.com>
22923
22924 PR testsuite/47622
22925 Revert
22926 2011-02-05 Jie Zhang <jie@codesourcery.com>
22927 PR debug/42631
22928 * web.c (entry_register): Don't clobber the number of the
22929 first uninitialized reference in used[].
22930
282ec48e
RG
229312011-02-09 Richard Guenther <rguenther@suse.de>
22932
22933 PR tree-optimization/47664
22934 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
22935 all edges again.
22936
df98c3e8
DE
229372011-02-09 David Edelsohn <dje.gcc@gmail.com>
22938
d0f21cd6
DE
22939 PR target/46481
22940 PR target/47032
df98c3e8
DE
22941 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
22942 PROCESSOR_POWER7.
22943 (PROCESSOR_DEFAULT64): Same.
22944 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
22945
67b6839f
RO
229462011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22947
22948 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
22949
4fd73214
MJ
229502011-02-09 Martin Jambor <mjambor@suse.cz>
22951
22952 PR middle-end/45505
22953 * tree-sra.c (struct access): New flags grp_scalar_read and
22954 grp_scalar_write. Changed description of assignment read and write
22955 flags.
22956 (dump_access): Dump new flags, reorder all of them.
22957 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
22958 to detect multiple scalar reads.
22959 (analyze_access_subtree): Use the new scalar read write flags instead
22960 of the old flags. Adjusted comments.
22961
91140cd3
DD
229622011-02-08 DJ Delorie <dj@redhat.com>
22963
22964 PR target/47548
22965 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
22966 patterns.
22967
4254bbfe
JM
229682011-02-08 Joseph Myers <joseph@codesourcery.com>
22969
22970 * config/m68k/uclinux.opt: New.
22971 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
22972
f1fda84e
JM
229732011-02-08 Joseph Myers <joseph@codesourcery.com>
22974
22975 * config/cris/elf.opt (sim): New Driver option.
22976
4933ae74
JM
229772011-02-08 Joseph Myers <joseph@codesourcery.com>
22978
22979 * config/xtensa/elf.opt: New.
22980 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
22981
4ad70280
JM
229822011-02-08 Joseph Myers <joseph@codesourcery.com>
22983
22984 * config/vax/elf.opt: New.
22985 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
22986
20893707
JM
229872011-02-08 Joseph Myers <joseph@codesourcery.com>
22988
22989 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
22990
b8e7038e
JM
229912011-02-08 Joseph Myers <joseph@codesourcery.com>
22992
22993 * config/gnu-user.opt: New.
22994 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
22995 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
22996 *-*-uclinux*): Use gnu-user.opt.
22997
e1c5225a
TS
229982011-02-08 Thomas Schwinge <thomas@schwinge.name>
22999
23000 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
23001 * config/i386/gnu.h (CPP_SPEC): Likewise.
23002
5e46b0c6
ILT
230032011-02-08 Ian Lance Taylor <iant@google.com>
23004
23005 * common.opt (fcx-limited-range): Add SetByCombined flag.
23006 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
23007 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
23008 (fassociative-math, freciprocal-math): Likewise.
23009 (funsafe-math-optimizations): Likewise.
23010 * opth-gen.awk: Handle SetByCombined.
23011 * optc-gen.awk: Likewise.
ea4c3e65 23012 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
23013 (set_unsafe_math_optimizations_flags): Likewise.
23014 * doc/options.texi (Option properties): Document SetByCombined.
23015
32243d46
JM
230162011-02-08 Joseph Myers <joseph@codesourcery.com>
23017
23018 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
23019 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
23020 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
23021 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
23022 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
23023
479c1fb3
SP
230242011-02-08 Sebastian Pop <sebastian.pop@amd.com>
23025
23026 PR tree-optimization/46834
23027 PR tree-optimization/46994
23028 PR tree-optimization/46995
23029 * graphite-sese-to-poly.c (used_outside_reduction): New.
23030 (detect_commutative_reduction): Call used_outside_reduction.
23031 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
23032 translate_scalar_reduction_to_array only when at least one
23033 loop-phi/close-phi tuple has been detected.
23034
3865a06f
RG
230352011-02-08 Richard Guenther <rguenther@suse.de>
23036
23037 PR middle-end/47639
23038 * tree-vect-generic.c (expand_vector_operations_1): Update
23039 stmts here ...
23040 (expand_vector_operations): ... not here. Cleanup EH info
23041 and the CFG if required.
23042
62902f3f
RG
230432011-02-08 Richard Guenther <rguenther@suse.de>
23044
23045 PR tree-optimization/47641
23046 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
23047 require type compatibility.
23048
0efb9d64
AK
230492011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23050
23051 * gimple-low.c (lower_function_body): Don't remove the location of
23052 the return statement here.
23053 (lower_gimple_return): Do it here instead but only if the return
23054 statement is actually used twice.
23055
034b8ae4
RG
230562011-02-08 Richard Guenther <rguenther@suse.de>
23057
23058 PR tree-optimization/47632
23059 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
23060 unused up_to_stmt parameter, return whether cfg-cleanup is
23061 necessary, remove EH info properly.
23062 (forward_propagate_into_gimple_cond): Adjust caller.
23063 (forward_propagate_into_cond): Likewise.
23064 (forward_propagate_comparison): Likewise.
23065 (tree_ssa_forward_propagate_single_use_vars): Make
23066 forward_propagate_comparison case similar to the two others.
23067
298362c8
NC
230682011-02-08 Nick Clifton <nickc@redhat.com>
23069
23070 * config/mn10300/mn10300.opt (mliw): New command line option.
23071 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
23072 (liw_bundling): New automaton.
23073 (liw): New attribute.
23074 (liw_op): New attribute.
23075 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
23076 (movsi_internal): Add LIW attributes.
23077 (andsi3): Likewise.
23078 (iorsi3): Likewise.
23079 (xorsi3): Likewise.
23080 (addsi3): Separate register and immediate alternatives.
23081 Add LIW attributes.
23082 (subsi3): Likewise.
23083 (cmpsi): Likewise.
23084 (aslsi3): Likewise.
23085 (lshrsi3): Likewise.
23086 (ashrsi3): Likewise.
23087 (liw): New pattern.
23088 * config/mn10300/mn10300.c (liw_op_names): New
23089 (mn10300_print_operand): Handle 'W' operand descriptor.
23090 (extract_bundle): New function.
23091 (check_liw_constraints): New function.
23092 (liw_candidate): New function.
23093 (mn10300_bundle_liw): New function.
23094 (mn10300_reorg): New function.
23095 (TARGET_MACHINE_DEPENDENT_REORG): Define.
23096 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
23097 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
23098 __LIW__ or __NO_LIW__.
23099 * doc/invoke.texi: Describe the -mliw command line option.
23100
90488014
JDA
231012011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23102
23103 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
23104 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23105 pthread_mutex_unlock): Remove.
23106 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
23107 * config/pa/t-pa64: Likewise.
23108 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
23109 shared libc if not linking against libpthread.
23110 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23111
689ff841
IS
231122011-02-07 Iain Sandoe <iains@gcc.gnu.org>
23113
23114 PR target/47558
23115 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
23116 on 10.6 and later to ensure that we always use the unwinder from
23117 the system. Only add -no_compact_unwind when tarteting darwin
23118 10.6 or later.
23119
821014aa
SE
231202011-02-07 Steve Ellcey <sje@cup.hp.com>
23121
23122 PR target/46997
23123 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
23124 (vec_interleave_lowv2sf): Ditto.
23125 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
23126 (vec_extract_oddv2sf): Ditto.
23127
41cf94fb
MS
231282011-02-07 Mike Stump <mikestump@comcast.net>
23129
62dea57d 23130 PR target/42333
41cf94fb
MS
23131 Add __ieee_divdc3 entry point.
23132 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
23133 entry point.
23134 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
23135 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
23136 * config/darwin.c (darwin_rename_builtins): Add.
23137 * config/darwin-protos.h (darwin_rename_builtins): Add.
23138
ee09a3dd
MM
231392011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
23140
23141 PR target/47636
23142 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
23143 for the condition.
23144
83296cd0
MS
231452011-02-07 Mike Stump <mikestump@comcast.net>
23146
ea4c3e65 23147 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 23148
0f4e946f
DC
231492011-02-07 Denis Chertykov <chertykov@gmail.com>
23150
23151 PR target/47534
23152 * config/avr/libgcc.S (exit): Move .endfunc
23153
1ec87690
RG
231542011-02-07 Richard Guenther <rguenther@suse.de>
23155
23156 PR tree-optimization/47615
23157 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
23158 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
23159 (run_scc_vn): Initialize it.
23160 (visit_reference_op_load): Use it.
23161 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
23162
b46ae6da
UW
231632011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23164
23165 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
23166 DImode trapping arithmetic libfuncs.
23167
c0aae19c
RG
231682011-02-07 Richard Guenther <rguenther@suse.de>
23169
23170 PR tree-optimization/47621
23171 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
23172 two duplicates ...
23173 (execute_update_addresses_taken): ... here. Make it more
23174 conservative in what we accept.
23175
295d926b
JM
231762011-02-06 Joseph Myers <joseph@codesourcery.com>
23177
23178 * config/sparc/freebsd.h (ASM_SPEC): Define.
23179 * config/sparc/vxworks.h (ASM_SPEC): Define.
23180
bdeb2471
JM
231812011-02-06 Joseph Myers <joseph@codesourcery.com>
23182
23183 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
23184
d5d3781a
SB
231852011-02-06 Steven Bosscher <steven@gcc.gnu.org>
23186
23187 * doc/invoke.texi: Remove reference to compiler internals from
23188 user documentation.
23189
23190 * reg-notes.def: Remove REG_VALUE_PROFILE.
23191 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
23192
c42c09fc
JJ
231932011-02-05 Jakub Jelinek <jakub@redhat.com>
23194
23195 PR middle-end/47610
23196 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 23197 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 23198
beea2755
JZ
231992011-02-05 Jie Zhang <jie@codesourcery.com>
23200
23201 PR debug/42631
23202 * web.c (entry_register): Don't clobber the number of the
23203 first uninitialized reference in used[].
23204
a130584a
SP
232052011-02-04 Sebastian Pop <sebastian.pop@amd.com>
23206
23207 PR tree-optimization/46194
23208 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
23209 (build_classic_dist_vector_1): Do not represent classic distance
23210 vectors when the access functions are variating in different loops.
23211
962101ac
JM
232122011-02-04 Joseph Myers <joseph@codesourcery.com>
23213
23214 * config/mips/iris6.opt: New.
23215 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
23216
55eaaa5b
RH
232172011-02-04 Richard Henderson <rth@redhat.com>
23218 Steve Ellcey <sje@cup.hp.com>
23219
23220 PR target/46997
23221 * config/ia64/predicates.md (mux1_brcst_element): New.
23222 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
23223 * config/ia64/ia64.c (ia64_unpack_assemble): New.
23224 (ia64_unpack_sign): New.
23225 (ia64_expand_unpack): Rewrite using new routines.
23226 (ia64_expand_widen_sum): Ditto.
23227 (ia64_expand_dot_prod_v8qi): Ditto.
23228 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
23229 routines, add endian check.
23230 (pmpy2_even): Rename from pmpy2_r, add endian check.
23231 (pmpy2_odd): Rename from pmpy2_l, add endian check.
23232 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
23233 (vec_widen_smult_hi_v4hi): Ditto.
23234 (vec_widen_umult_lo_v4hi): Ditto.
23235 (vec_widen_umult_hi_v4hi): Ditto.
23236 (mulv2si3): Change endian checks.
23237 (sdot_prodv4hi): Rewrite with new calls.
23238 (udot_prodv4hi): New.
23239 (vec_pack_ssat_v4hi): Add endian check.
23240 (vec_pack_usat_v4hi): Ditto.
23241 (vec_pack_ssat_v2si): Ditto.
23242 (max1_even): Rename from max1_r, add endian check.
23243 (max1_odd): Rename from max1_l, add endian check.
23244 (*mux1_rev): Format change.
23245 (*mux1_mix): Ditto.
23246 (*mux1_shuf): Ditto.
23247 (*mux1_alt): Ditto.
23248 (*mux1_brcst_v8qi): Use new predicate.
23249 (vec_extract_evenv8qi): Remove endian check.
23250 (vec_extract_oddv8qi): Ditto.
23251 (vec_interleave_lowv4hi): Format change.
23252 (vec_interleave_highv4hi): Ditto.
23253 (mix2_even): Rename from mix2_r, add endian check.
23254 (mix2_odd): Rename from mux2_l, add endian check.
23255 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
23256 (vec_extract_evenodd_helper): Format change.
23257 (vec_extract_evenv4hi): Remove endian check.
23258 (vec_extract_oddv4hi): Remove endian check.
23259 (vec_interleave_lowv2si): Format change.
23260 (vec_interleave_highv2si): Format change.
23261 (vec_initv2si): Remove endian check.
23262 (vecinit_v2si): Add endian check.
23263 (reduc_splus_v2sf): Add endian check.
23264 (reduc_smax_v2sf): Ditto.
23265 (reduc_smin_v2sf): Ditto.
23266 (vec_initv2sf): Remove endian check.
23267 (fpack): Add endian check.
23268 (fswap): Add endian check.
23269 (vec_interleave_highv2sf): Add endian check.
23270 (vec_interleave_lowv2sf): Add endian check.
23271 (fmix_lr): Add endian check.
23272 (vec_setv2sf): Format change.
23273 (*vec_extractv2sf_0_be): Use shift to extract operand.
23274 (*vec_extractv2sf_1_be): New.
23275 (vec_pack_trunc_v4hi): Add endian check.
23276 (vec_pack_trunc_v2si): Format change.
23277
dcde5957
JJ
232782011-02-04 Jakub Jelinek <jakub@redhat.com>
23279
23280 PR inline-asm/23200
23281 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 23282 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
23283 (stmt_is_replaceable_p): New function.
23284 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
23285 callers.
23286 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
23287 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
23288 SSA_NAME_DEF_STMT.
23289 * tree-flow.h (stmt_is_replaceable_p): New prototype.
23290
a64a8e5a
JM
232912011-02-04 Joseph Myers <joseph@codesourcery.com>
23292
23293 * config/rs6000/xilinx.opt: New.
23294 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
23295
4da2ed2f
JM
232962011-02-04 Joseph Myers <joseph@codesourcery.com>
23297
23298 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
23299
a6e508f9
AS
233002011-02-03 Anatoly Sokolov <aesok@post.ru>
23301
23302 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
23303 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23304 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
23305 secondary_reload_info, xtensa_secondary_reload): Remove.
23306 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
23307 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23308 (xtensa_preferred_reload_class): Make static. Change return and
23309 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
23310 Use CONST_DOUBLE_P predicate.
23311 (xtensa_preferred_output_reload_class): New function.
23312 (xtensa_secondary_reload): Make static.
23313
82dc0de3
JM
233142011-02-03 Joseph Myers <joseph@codesourcery.com>
23315
23316 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
23317 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
23318 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
23319
7fece979
JJ
233202011-02-03 Jakub Jelinek <jakub@redhat.com>
23321
23322 PR middle-end/31490
23323 * output.h (SECTION_RELRO): Define.
23324 (SECTION_MACH_DEP): Adjust.
23325 (get_variable_section): New prototype.
23326 * varpool.c (varpool_finalize_named_section_flags): New function.
23327 (varpool_assemble_pending_decls): Call it.
23328 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
23329 * cgraphunit.c (cgraph_output_in_order): Call
23330 varpool_finalize_named_section_flags.
23331 * varasm.c (get_section): Allow section flags conflicts between
23332 relro and read-only sections if the section hasn't been declared yet.
23333 Set SECTION_OVERRIDE after diagnosing section type conflict.
23334 (get_variable_section): No longer static.
23335 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
23336 readonly sections that need relocations.
23337 (decl_readonly_section_1): New function.
23338 (decl_readonly_section): Use it.
23339
23340 Revert:
509d65dd 23341 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
23342 Steve Ellcey <sje@cup.hp.com>
23343
23344 PR middle-end/31490
23345 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
23346 if section attribute used.
23347
d18d5478
JJ
233482011-02-03 Jakub Jelinek <jakub@redhat.com>
23349
23350 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
23351 * config/darwin.c (SECTION_NO_ANCHOR): Define.
23352 (darwin_init_sections): Remove assertion.
23353
6479ed4b
NC
233542011-02-03 Nick Clifton <nickc@redhat.com>
23355
23356 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
23357 lt and ge.
38be4072 23358 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
23359 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
23360 instead of "n" and "pz".
23361 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
23362 CC_FLAG_S.
23363
89843f5d
JJ
233642011-02-03 Jakub Jelinek <jakub@redhat.com>
23365
65450d64
JJ
23366 PR target/47312
23367 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
23368 fma, expand FMA_EXPR as fma{,f,l} call.
23369
7d58701c
JJ
23370 PR lto/47274
23371 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
23372 copy them into a unsigned char variable and pass address of it to
23373 lto_output_data_stream.
23374
89843f5d
JJ
23375 PR target/47564
23376 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
23377 around backend_init_target and lang_dependent_init_target calls.
23378 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
23379 (verify_cgraph_node): Don't call set_cfun here. Use
23380 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
23381 Set error_found for incorrectly represented calls to thunks.
23382
4deef538
AO
233832011-02-03 Alexandre Oliva <aoliva@redhat.com>
23384
23385 PR debug/43092
23386 PR rtl-optimization/43494
23387 * rtl.h (for_each_inc_dec_fn): New type.
23388 (for_each_inc_dec): Declare.
23389 * rtlanal.c (struct for_each_inc_dec_ops): New type.
23390 (for_each_inc_dec_find_inc_dec): New fn.
23391 (for_each_inc_dec_find_mem): New fn.
23392 (for_each_inc_dec): New fn.
23393 * dse.c (struct insn_size): Remove.
23394 (replace_inc_dec, replace_inc_dec_mem): Remove.
23395 (emit_inc_dec_insn_before): New fn.
23396 (check_for_inc_dec): Use it, along with for_each_inc_dec.
23397 (canon_address): Pass mem modes to cselib_lookup.
23398 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
23399 (cselib_lookup_from_insn): Likewise.
23400 (cselib_subst_to_values): Likewise.
23401 * cselib.c (find_slot_memmode): New var.
23402 (cselib_find_slot): New fn. Use it instead of
23403 htab_find_slot_with_hash everywhere.
23404 (entry_and_rtx_equal_p): Use find_slot_memmode.
23405 (autoinc_split): New fn.
23406 (rtx_equal_for_cselib_p): Rename and implement in terms of...
23407 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
23408 Deal with autoinc. Special-case recursion into MEMs.
23409 (cselib_hash_rtx): Likewise.
23410 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
23411 address and MEM modes.
23412 (cselib_subst_to_values): Add memmode, pass it on.
23413 Deal with autoinc.
23414 (cselib_lookup): Add memmode argument, pass it on.
23415 (cselib_lookup_from_insn): Add memmode.
23416 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
23417 (struct cselib_record_autoinc_data): New.
23418 (cselib_record_autoinc_cb): New fn.
23419 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
23420 mode to cselib_lookup. Reset autoinced REGs here instead of...
23421 (cselib_process_insn): ... here.
23422 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
23423 to cselib_lookup.
23424 (add_uses): Likewise, also to cselib_subst_to_values.
23425 (add_stores): Likewise.
276e0224 23426 * sched-deps.c (add_insn_mem_dependence): Pass mode to
4deef538
AO
23427 cselib_subst_to_values.
23428 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
23429 * gcse.c (do_local_cprop): Adjusted.
23430 * postreload.c (reload_cse_simplify_set): Adjusted.
23431 (reload_cse_simplify_operands): Adjusted.
23432 * sel-sched-dump (debug_mem_addr_value): Pass mode.
23433
1551d44a
AO
234342011-02-03 Alexandre Oliva <aoliva@redhat.com>
23435
23436 PR tree-optimization/45122
23437 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
23438 unsafe assumptions when there's more than one loop exit.
23439
c9485473
MM
234402011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23441
23442 PR target/47272
23443 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23444 Document using vector double with the load/store builtins, and
23445 that the load/store builtins always use Altivec instructions.
23446
23447 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
23448 to use altivec memory instructions, even on VSX.
23449 (vector_altivec_store_<mode>): Ditto.
23450
23451 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
23452 function.
23453
23454 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23455 V2DF, V2DI support to load/store overloaded builtins.
23456
23457 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
23458 altivec load/store builtins for V2DF/V2DI types.
23459
23460 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23461 set avoid indexed addresses on power6 if -maltivec.
23462 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
23463 vector_altivec_load/vector_altivec_store builtins.
23464 (altivec_expand_st_builtin): Ditto.
23465 (altivec_expand_builtin): Add VSX memory builtins.
23466 (rs6000_init_builtins): Add V2DI types to internal types.
23467 (altivec_init_builtins): Add support for V2DF/V2DI altivec
23468 load/store builtins.
23469 (rs6000_address_for_altivec): Insure memory address is appropriate
23470 for Altivec.
23471
23472 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
23473 vec_vsx_ld and vec_vsx_st.
23474 (vsx_store_<mode>): Ditto.
23475
23476 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
23477 variables to hold long long types for VSX vector memory builtins.
23478 (RS6000_BTI_unsigned_long_long): Ditto.
23479 (long_long_integer_type_internal_node): Ditti.
23480 (long_long_unsigned_type_internal_node): Ditti.
23481
23482 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
23483 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
23484 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
23485
23486 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
23487 short cuts.
23488 (vec_vsx_st): Ditto.
23489
b24d1acf
JM
234902011-02-02 Joseph Myers <joseph@codesourcery.com>
23491
23492 * config/pa/pa-hpux10.opt: New.
23493 * config/hpux11.opt (pthread): New Driver option.
23494 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
23495 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
23496
aa18dd0f
JM
234972011-02-02 Joseph Myers <joseph@codesourcery.com>
23498
23499 * config/ia64/vms.opt: New.
23500 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
23501
28fc3eee
MM
235022011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23503
23504 PR target/47580
23505 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
23506 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
23507 generator functions.
23508 (vsx_floatuns<VSi><mode>2): Ditto.
23509 (vsx_fix_trunc<mode><VSi>2): Ditto.
23510 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
23511
b5838b1f
JM
235122011-02-02 Joseph Myers <joseph@codesourcery.com>
23513
23514 * config/i386/djgpp.opt (posix): New Driver option.
23515
0db8fa89
GP
235162011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
23517
23518 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
23519 Move to the unsupported targets list.
23520
9cd4f22a
PB
235212011-02-02 Peter Bergner <bergner@vnet.ibm.com>
23522
23523 PR rtl-optimization/47525
23524 * df-scan.c: Update copyright years.
23525 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
23526 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
23527
9ed8059c
RO
235282011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23529
23530 * config/i386/sysv4.h (TARGET_VERSION): Remove.
23531 (SUBTARGET_RETURN_IN_MEMORY): Remove.
23532 (ASM_OUTPUT_ASCII): Remove.
23533 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
23534
2a737389
JL
235352011-02-02 Jeff Law <law@redhat.com>
23536
23537 PR middle-end/47543
23538 * reload.c (find_reloads_address): Handle reg+d address where both
23539 components are invalid by reloading the entire address.
23540
9dac82c4
SP
235412011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23542 Richard Guenther <rguenther@suse.de>
23543
23544 PR tree-optimization/40979
23545 PR bootstrap/47044
23546 * passes.c (init_optimization_passes): After LIM call copy_prop
23547 and DCE to clean up.
23548 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
23549
14dd9aab
SP
235502011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23551
23552 PR tree-optimization/47576
23553 PR tree-optimization/47555
23554 * doc/invoke.texi (scev-max-expr-complexity): Documented.
23555 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23556 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
23557 * tree-scalar-evolution.c (follow_ssa_edge): Use
23558 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
23559
5cbf5c20
RG
235602011-02-02 Richard Guenther <rguenther@suse.de>
23561
23562 PR tree-optimization/47566
23563 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
23564
83d70792
AO
235652011-02-02 Alexandre Oliva <aoliva@redhat.com>
23566
e829c321
AO
23567 PR debug/47106
23568 PR debug/47402
23569 * tree-inline.c (declare_return_variable): Remove unused caller
23570 variable.
23571
83d70792
AO
23572 PR debug/47106
23573 PR debug/47402
23574 * tree-flow-inline.h (clear_is_used, is_used_p): New.
23575 * cfgexpand.c (account_used_vars_for_block): Use them.
23576 * tree-nrv.c (tree_nrv): Likewise.
23577 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
23578 (dump_scope_block): Likewise.
23579 (remove_unused_locals): Likewise.
23580
aaa2ac93
AO
23581 PR debug/47106
23582 PR debug/47402
23583 * tree-inline.c (declare_return_variable): Add result decl to
23584 local decls only once.
23585 * gimple-low.c (record_vars_into): Mark newly-created variables
23586 as referenced.
23587
a59d15cf
AO
235882011-02-02 Alexandre Oliva <aoliva@redhat.com>
23589
23590 PR debug/47498
23591 PR debug/47501
23592 PR debug/45136
23593 PR debug/45130
23594 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23595 debug insns.
23596 (no_real_insns_p, schedule_block, set_priorities): Drop special
23597 treatment of boundary debug insns.
38be4072 23598 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
23599 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
23600 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23601 (BOUNDARY_DEBUG_INSN_P): Likewise.
23602 (SCHEDULE_DEBUG_INSN_P): Likewise.
23603 * sched-rgn.c (init_ready_list): Drop special treatment of
23604 boundary debug insns.
23605 * final.c (rest_of_clean_state): Clear notes' BB.
23606
6fc2f091
JM
236072011-02-01 Joseph Myers <joseph@codesourcery.com>
23608
23609 * config/openbsd.opt (assert=): New Driver option.
23610
fc523387
JM
236112011-02-01 Joseph Myers <joseph@codesourcery.com>
23612
23613 * config/i386/nto.opt: New.
23614 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
23615
6d9821e5
JM
236162011-02-01 Joseph Myers <joseph@codesourcery.com>
23617
23618 * config/i386/netware.opt: New.
23619 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
23620
cef932d4
JM
236212011-02-01 Joseph Myers <joseph@codesourcery.com>
23622
23623 * config/interix.opt (posix): New Driver option.
23624
22843acd
DD
236252011-02-01 DJ Delorie <dj@redhat.com>
23626
56490b74
DD
23627 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
23628
22843acd
DD
23629 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
23630 class for A0/A1.
23631
199c8f2f
SP
236322011-02-01 Sebastian Pop <sebastian.pop@amd.com>
23633
23634 PR tree-optimization/47561
23635 * toplev.c (process_options): Print the Graphite flags. Add
23636 flag_loop_flatten to the list of options requiring Graphite.
23637
926bcf22
JM
236382011-02-01 Joseph Myers <joseph@codesourcery.com>
23639
23640 * config/i386/cygming.opt (posix): New Driver option.
23641
59793c51
JM
236422011-02-01 Joseph Myers <joseph@codesourcery.com>
23643
23644 * config/arm/vxworks.opt: New.
23645 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
23646
183c38a4
JM
236472011-02-01 Joseph Myers <joseph@codesourcery.com>
23648
23649 * config/alpha/elf.opt: New.
23650 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
23651 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
23652
9939e416
RG
236532011-02-01 Richard Guenther <rguenther@suse.de>
23654
23655 PR tree-optimization/47559
23656 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
23657 store-motion on references that can throw.
23658
4a3c9687
BS
236592011-02-01 Bernd Schmidt <bernds@codesourcery.com>
23660
23661 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
23662 * tree-pass.h (TDF_CSELIB): New macro.
23663 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
23664 cselib_lookup): Check for it rather than for TDF_DETAILS.
23665
dd3b31fb
L
236662011-02-01 H.J. Lu <hongjiu.lu@intel.com>
23667
23668 PR driver/47547
23669 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
23670 is HOST_BIT_BUCKET.
23671
23672 * opts.c (finish_options): Don't add x_aux_base_name if it is
23673 HOST_BIT_BUCKET.
23674
34c1de79
RG
236752011-02-01 Richard Guenther <rguenther@suse.de>
23676
23677 PR tree-optimization/47555
23678 Revert
23679 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
23680
23681 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23682
dd2804d2
SB
236832011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
23684
23685 PR gcc/46692
23686 * config/lm32/t-lm32: Add multilib for all CPU options.
23687
3fd3b156
RG
236882011-02-01 Richard Guenther <rguenther@suse.de>
23689
23690 PR tree-optimization/47541
23691 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
23692 sure to have a field at offset zero.
23693
f16072b6
JM
236942011-01-31 Joseph Myers <joseph@codesourcery.com>
23695
23696 * config/arc/arc.opt (EB, EL): New Driver options.
23697
6456cf2e
JM
236982011-01-31 Joseph Myers <joseph@codesourcery.com>
23699
23700 * config/alpha/osf5.opt: New.
23701 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
23702
cdde6ab4
JM
237032011-01-31 Joseph Myers <joseph@codesourcery.com>
23704
23705 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
23706
7633415c
SP
237072011-01-31 Sebastian Pop <sebastian.pop@amd.com>
23708
23709 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
23710 -floop-interchange.
23711 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
23712 is an alias of -floop-interchange and that it requires the
23713 Graphite infrastructure.
23714 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
23715 flag_loop_interchange based on the value of flag_tree_loop_linear.
23716
0425d6f5
JJ
237172011-01-31 Jakub Jelinek <jakub@redhat.com>
23718 Richard Guenther <rguenther@suse.de>
23719
23720 PR tree-optimization/47538
23721 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
23722 type instead of r1type, except for comparisons. For right
23723 shifts and comparisons punt if there are mismatches in
23724 sizetype vs. non-sizetype types.
23725
500b16c3
RO
237262011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23727
23728 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23729 avx_runtime.
23730
e279edb0
RO
237312011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23732
23733 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
23734 version number.
23735 * configure: Regenerate.
23736
c6092243
RO
237372011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23738
23739 * configure.ac (gcc_cv_ld_static_option): Define.
23740 (gcc_cv_ld_dynamic_option): Define.
23741 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
23742 instead.
23743 (HAVE_LD_STATIC_DYNAMIC): Update message.
23744 (LD_STATIC_OPTION): Define.
23745 (LD_DYNAMIC_OPTION): Define.
23746 * configure: Regenerate.
23747 * config.in: Regenerate.
23748 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
23749 HAVE_LD_STATIC_DYNAMIC]: Use them.
23750
d7862be3
NC
237512011-01-31 Nick Clifton <nickc@redhat.com>
23752
23753 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
23754 registers inside interrupt handlers if the handler is not a leaf
23755 function.
23756
ba4ec0e0
NC
237572011-01-31 Nick Clifton <nickc@redhat.com>
23758
23759 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
23760 reg_renumber returning an INVALID_REGNUM.
23761
29a63921
AO
237622011-01-31 Alexandre Oliva <aoliva@redhat.com>
23763
23764 PR libgcj/44341
23765 * doc/install.texi: Document host options discarded when cross
23766 configuring target libraries.
23767
ef591d3f
AO
237682011-01-31 Alexandre Oliva <aoliva@redhat.com>
23769
23770 Reverted:
23771 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
23772 PR debug/45136
23773 PR debug/45130
23774 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23775 debug insns.
23776 (no_real_insns_p, schedule_block, set_priorities): Drop special
23777 treatment of boundary debug insns.
38be4072 23778 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
23779 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
23780 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23781 (BOUNDARY_DEBUG_INSN_P): Likewise.
23782 (SCHEDULE_DEBUG_INSN_P): Likewise.
23783 * sched-rgn.c (init_ready_list): Drop special treatment of
23784 boundary debug insns.
23785 * final.c (rest_of_clean-state): Clear notes' BB.
23786
61052244
AM
237872011-01-31 Alan Modra <amodra@gmail.com>
23788
23789 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
23790 toc relative expressions as we do in print_operand_address.
23791
c4c8962b
KH
237922011-01-30 Kazu Hirata <kazu@codesourcery.com>
23793
23794 * doc/extend.texi: Follow spelling conventions.
23795 * doc/invoke.texi: Fix a typo.
23796
e543b94c
JM
237972011-01-30 Joseph Myers <joseph@codesourcery.com>
23798
23799 * config/hpux11.opt: New.
23800 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
23801 ia64*-*-hpux*): Use hpux11.opt.
23802
509d65dd 238032011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
23804
23805 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
23806 to tmake_file.
23807
7be03a0e
GP
238082011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
23809
23810 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
23811 support sites.
23812
419d1d37
GP
238132011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
23814
b596ed64
GP
23815 * doc/install.texi (Binaries): Remove outdated reference for
23816 Motorola 68HC11/68HC12 downloads.
23817
238182011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 23819
419d1d37
GP
23820 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
23821 Drepper's paper.
23822
4406d0e9
JW
238232011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
23824
23825 PR bootstrap/47147
23826 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
23827 used by NetBSD.
23828
38be4072 238292011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
23830
23831 * value-prof.c (check_counter): Corrected error message.
23832
0cd98787
JZ
238332011-01-29 Jie Zhang <jie@codesourcery.com>
23834
23835 * config/arm/arm.c (arm_legitimize_reload_address): New.
23836 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
23837 arm_legitimize_reload_address.
38be4072 23838 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 23839
9b798ac5
ILT
238402011-01-28 Ian Lance Taylor <iant@google.com>
23841
23842 * godump.c (go_define): Ignore macros whose definitions include
23843 two adjacent operands.
23844
591e29d9
JJ
238452011-01-28 Jakub Jelinek <jakub@redhat.com>
23846
23847 PR target/42894
23848 * varasm.c (force_const_mem): Store copy of x in desc->constant
23849 instead of x itself.
23850 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
23851 itself into REG_EQUAL note.
23852
62dcc44a
JM
238532011-01-28 Joseph Myers <joseph@codesourcery.com>
23854
23855 * config/freebsd.opt (posix, rdynamic): New Driver options.
23856
c9f58b9a
RO
238572011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23858
23859 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
23860 -Bstatic/-Bdynamic.
23861 * configure: Regenerate.
23862
5f02b9db
JM
238632011-01-27 Joseph Myers <joseph@codesourcery.com>
23864
23865 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
23866 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
23867
5df97412
AS
238682011-01-27 Anatoly Sokolov <aesok@post.ru>
23869
23870 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
23871 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
23872 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23873 (s390_preferred_reload_class): Make static. Change return and
23874 'rclass' argument type to reg_class_t.
23875
779d4b91
JH
238762011-01-27 Jan Hubicka <jh@suse.cz>
23877
23878 PR middle-end/46949
23879 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
23880 (process_function_and_variable_attributes): Check defined weakrefs.
23881
e80b21ed
MJ
238822011-01-27 Martin Jambor <mjambor@suse.cz>
23883
23884 PR tree-optimization/47228
23885 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
23886 build_ref_for_offset.
23887
6dcc4f31
UW
238882011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23889
23890 * config/spu/spu-elf.h (ASM_SPEC): Remove.
23891
509d65dd 238922011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
23893
23894 PR rtl-optimization/46856
23895 * postreload.c (reload_combine_recognize_const_pattern): Do not
23896 separate cc0 setter and user on cc0 targets.
23897
04af8788
NP
238982011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
23899
23900 PR c/43082
23901 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
23902 passed a VOID_TYPE expression, immediately emit an error and
23903 return error_mark_node.
23904
f7a60085
JL
239052011-01-26 Jeff Law <law@redhat.com>
23906
23907 PR rtl-optimization/47464
23908 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
23909 rather than may_trap_p as needed.
23910
5c2917ec
DD
239112011-01-26 DJ Delorie <dj@redhat.com>
23912
23913 PR rtl-optimization/46878
23914 * combine.c (insn_a_feeds_b): Check for the implicit cc0
23915 setter/user dependency as well.
23916
bef16e87
EB
239172011-01-26 Eric Botcazou <ebotcazou@adacore.com>
23918
23919 PR rtl-optimization/44469
23920 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
23921 after removing trivially dead basic blocks.
23922
c75d884b
JM
239232011-01-26 Joseph Myers <joseph@codesourcery.com>
23924
23925 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
23926 * config/frv/frv.h (LINK_SPEC): Likewise.
23927 * config/i386/netware.h (LINK_SPEC): Likewise.
23928 * config/m68k/linux.h (ASM_SPEC): Likewise.
23929 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
23930 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23931 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23932 * config/sparc/linux.h (ASM_SPEC): Likewise.
23933 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23934 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23935
d3153553
JM
239362011-01-26 Joseph Myers <joseph@codesourcery.com>
23937
23938 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
23939 * config/frv/frv.h (ASM_SPEC): Likewise.
23940 * config/m68k/linux.h (ASM_SPEC): Likewise.
23941 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23942 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
23943 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23944 * config/sparc/linux.h (ASM_SPEC): Likewise.
23945 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23946 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23947
b89b1e9d
JM
239482011-01-26 Joseph Myers <joseph@codesourcery.com>
23949
23950 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
23951 * config/frv/frv.h (LINK_SPEC): Likewise.
23952 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23953
12eb1a9c
JM
239542011-01-26 Joseph Myers <joseph@codesourcery.com>
23955
23956 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
23957 * config/frv/frv.h (ASM_SPEC): Likewise.
23958 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
23959 * config/m68k/linux.h (ASM_SPEC): Likewise.
23960 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23961 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23962 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23963 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
23964 * config/sparc/linux.h (ASM_SPEC): Likewise.
23965 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23966 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23967 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
23968
e435f098
SE
239692011-01-26 Steve Ellcey <sje@cup.hp.com>
23970
23971 PR target/46997
23972 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
23973 (*mux2): Ditto.
23974 (vec_extract_evenodd_help): Ditto.
23975 (vec_extract_evenv4hi): Ditto.
23976 (vec_extract_oddv4hi): Ditto.
23977 (vec_interleave_lowv2si): Ditto.
23978 (vec_interleave_highv2si): Ditto.
23979 (vec_extract_evenv2si): Ditto.
23980 (vec_extract_oddv2si: Ditto.
23981 (vec_pack_trunc_v2si): Ditto.
23982
34f0eee0
JH
239832011-01-22 Jan Hubicka <jh@suse.cz>
23984
23985 PR target/47237
23986 * cgraph.h (cgraph_local_info): New field can_change_signature.
23987 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
23988 signature can change.
23989 (ipcp_estimate_growth): Call sequence simplify only if calle signature
23990 can change.
23991 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
23992 (cgraph_function_versioning): We can not change signature of functions
23993 that don't allow that.
23994 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
23995 (lto_input_node): Likewise.
38be4072
UB
23996 * ipa-inline.c (compute_inline_parameters): Compute
23997 local.can_change_signature.
34f0eee0 23998 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
23999 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
24000 functions that can not change signature.
34f0eee0 24001 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
24002 init_cumulative_args): Do not use local calling conventions
24003 for functions that can not change signature.
34f0eee0 24004
980ca891
JH
240052011-01-22 Jan Hubicka <jh@suse.cz>
24006
24007 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
24008
768e3c60
RG
240092011-01-26 Richard Guenther <rguenther@suse.de>
24010
24011 PR tree-optimization/47190
61052244
AM
24012 * cgraphunit.c (process_common_attributes): New function.
24013 (process_function_and_variable_attributes): Use it.
768e3c60 24014
21d6a1c7
RG
240152011-01-26 Richard Guenther <rguenther@suse.de>
24016
24017 PR lto/47423
24018 * cgraphbuild.c (record_eh_tables): Record reference to personality
24019 function.
24020
48bb58b1
AO
240212011-01-26 Alexandre Oliva <aoliva@redhat.com>
24022
24023 PR debug/45454
24024 * sel-sched.c (moveup_expr): Don't let debug insns prevent
24025 non-debug insns from moving up.
24026
58c741a6
DK
240272011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
24028
24029 PR target/40125
24030 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
24031 t-dlldir{,-x} fragment for build and add it to tmake_file.
24032 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
24033 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
24034 * config/i386/t-dlldir: New file.
24035 (SHLIB_DLLDIR): Define.
24036 * config/i386/t-dlldir-x: New file.
24037 (SHLIB_DLLDIR): Define.
24038 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
24039 (SHLIB_INSTALL): Use it.
24040
bff99262
CLT
240412011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
24042
24043 PR target/47246
24044 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
24045 lower bound of the allowed Thumb-2 coprocessor load/store
24046 index range to -256. Add explaining comment.
24047
82c03907
ILT
240482011-01-25 Ian Lance Taylor <iant@google.com>
24049
24050 * godump.c (go_define): Improve lexing of macro expansion to only
24051 accept expressions which match Go spec.
24052
47ea1edf
DK
240532011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
24054
d4dba752 24055 PR c++/43601
47ea1edf
DK
24056 * tree.c (handle_dll_attribute): Handle it.
24057 * doc/extend.texi (@item dllexport): Mention it.
24058 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
24059
744f0946
ILT
240602011-01-25 Ian Lance Taylor <iant@google.com>
24061
24062 PR tree-optimization/26854
24063 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
24064 (decl_jump_unsafe): Move higher in file, with no other change.
24065 (bind): Set has_jump_unsafe_decl if appropriate.
24066 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
24067 (check_earlier_gotos): Likewise.
24068 (c_check_switch_jump_warnings): Likewise.
24069
5734f2b3
JW
240702011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
24071
24072 * doc/invoke.texi (Warning Options): Add missing hyphen.
24073 (-fprofile-dir): Minor grammatical fixes.
24074 (-fbranch-probabilities): Likewise.
24075
9bdbdcef
AO
240762011-01-25 Alexandre Oliva <aoliva@redhat.com>
24077
24078 PR debug/45136
24079 PR debug/45130
24080 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24081 debug insns.
24082 (no_real_insns_p, schedule_block, set_priorities): Drop special
24083 treatment of boundary debug insns.
38be4072 24084 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
24085 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24086 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24087 (BOUNDARY_DEBUG_INSN_P): Likewise.
24088 (SCHEDULE_DEBUG_INSN_P): Likewise.
24089 * sched-rgn.c (init_ready_list): Drop special treatment of
24090 boundary debug insns.
24091 * final.c (rest_of_clean-state): Clear notes' BB.
24092
b305e3da
SP
240932011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24094
24095 * Makefile.in (LAMBDA_H): Removed.
24096 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
24097 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
24098 lambda-trans.o, and tree-loop-linear.o.
24099 (lto-symtab.o): Remove dependence on LAMBDA_H.
24100 (tree-loop-linear.o): Remove rule.
24101 (lambda-mat.o): Same.
24102 (lambda-trans.o): Same.
24103 (lambda-code.o): Same.
24104 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
24105 (tree-vect-slp.o): Same.
24106 * hwint.h (gcd): Moved here.
24107 (least_common_multiple): Same.
24108 * lambda-code.c: Removed.
24109 * lambda-mat.c: Removed.
24110 * lambda-trans.c: Removed.
24111 * lambda.h: Removed.
24112 * tree-loop-linear.c: Removed.
24113 * lto-symtab.c: Do not include lambda.h.
24114 * omega.c (gcd): Removed.
24115 * passes.c (init_optimization_passes): Remove pass_linear_transform.
24116 * tree-data-ref.c (print_lambda_vector): Moved here.
24117 (lambda_vector_copy): Same.
24118 (lambda_matrix_copy): Same.
24119 (lambda_matrix_id): Same.
24120 (lambda_vector_first_nz): Same.
24121 (lambda_matrix_row_add): Same.
24122 (lambda_matrix_row_exchange): Same.
24123 (lambda_vector_mult_const): Same.
24124 (lambda_vector_negate): Same.
24125 (lambda_matrix_row_negate): Same.
24126 (lambda_vector_equal): Same.
24127 (lambda_matrix_right_hermite): Same.
24128 * tree-data-ref.h: Do not include lambda.h.
24129 (lambda_vector): Moved here.
24130 (lambda_matrix): Same.
24131 (dependence_level): Same.
24132 (lambda_transform_legal_p): Removed declaration.
24133 (lambda_collect_parameters): Same.
24134 (lambda_compute_access_matrices): Same.
24135 (lambda_vector_gcd): Same.
24136 (lambda_vector_new): Same.
24137 (lambda_vector_clear): Same.
24138 (lambda_vector_lexico_pos): Same.
24139 (lambda_vector_zerop): Same.
24140 (lambda_matrix_new): Same.
24141 * tree-flow.h (least_common_multiple): Removed declaration.
24142 * tree-parloops.c (lambda_trans_matrix): Moved here.
24143 (LTM_MATRIX): Same.
24144 (LTM_ROWSIZE): Same.
24145 (LTM_COLSIZE): Same.
24146 (LTM_DENOMINATOR): Same.
24147 (lambda_trans_matrix_new): Same.
24148 (lambda_matrix_vector_mult): Same.
24149 (lambda_transform_legal_p): Same.
24150 * tree-pass.h (pass_linear_transform): Removed declaration.
24151 * tree-ssa-loop.c (tree_linear_transform): Removed.
24152 (gate_tree_linear_transform): Removed.
24153 (pass_linear_transform): Removed.
24154 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
24155 flag_loop_interchange.
24156
6bdfdb96
JJ
241572011-01-25 Jakub Jelinek <jakub@redhat.com>
24158
24159 PR tree-optimization/47265
24160 PR tree-optimization/47443
24161 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
24162 if name still has some uses.
24163
e4cba915
MJ
241642011-01-25 Martin Jambor <mjambor@suse.cz>
24165
24166 PR tree-optimization/47382
24167 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
24168 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
24169
509d65dd 241702011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
24171
24172 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
24173 sjlj_except_unwind_info.
24174
194313e2
RG
241752011-01-25 Richard Guenther <rguenther@suse.de>
24176
24177 PR tree-optimization/47426
24178 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
24179 visible functions results escape.
24180
147a0bcf
JJ
241812011-01-25 Jakub Jelinek <jakub@redhat.com>
24182
24183 PR target/45701
24184 * config/arm/arm.c (any_sibcall_uses_r3): New function.
24185 (arm_get_frame_offsets): Use it.
24186
db963b52
SP
241872011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24188 Jakub Jelinek <jakub@redhat.com>
24189
24190 PR tree-optimization/47271
24191 * tree-if-conv.c (bb_postdominates_preds): New.
24192 (if_convertible_bb_p): Call bb_postdominates_preds.
24193 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
24194 (predicate_scalar_phi): Call bb_postdominates_preds.
24195
bcddd3b9
NC
241962011-01-25 Nick Clifton <nickc@redhat.com>
24197
24198 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
24199 * config/rx/rx.c (rx_function_value): Likewise.
24200 (rx_promote_function_mode): Likewise.
24201 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
24202 in order to make it legitimate.
38be4072
UB
24203 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
24204 make sure that the first operand is the same as the result register.
bcddd3b9
NC
24205 (addsi3_unspec): Delete.
24206 (subdi3): Do not accept immediate operands.
24207 (subdi3_internal): Likewise.
24208
7e6cb022
JL
242092011-01-25 Jeff Law <law@redhat.com>
24210
24211 PR rtl-optimization/37273
24212 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24213 handle them like argument loads from stack slots. Do not double
24214 count memory for memory constants and argument loads from stack slots.
24215
9ffa621e
JJ
242162011-01-25 Jakub Jelinek <jakub@redhat.com>
24217
24218 PR tree-optimization/47427
24219 PR tree-optimization/47428
24220 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
24221 coalesce if the new root var would be TREE_READONLY.
24222
5bd6e652
RG
242232011-01-25 Richard Guenther <rguenther@suse.de>
24224
24225 PR middle-end/47414
24226 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
24227 correct type for TBAA.
24228
7c48ea69
SP
242292011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24230
24231 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
24232 (close_phi_written_to_memory): Call for_each_index with
24233 dr_indices_valid_in_loop.
24234
38013f25
SP
242352011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24236
24237 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
24238 when it is initialized.
24239
5c640e29
SP
242402011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24241
24242 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
24243 call to graphite_find_data_references_in_stmt.
24244 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
24245 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
24246 call to graphite_find_data_references_in_stmt.
24247 (analyze_drs_in_stmts): Same.
24248 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
24249 in which the scalar analysis of indices is performed.
24250 (create_data_ref): Same. Update call to dr_analyze_indices.
24251 (find_data_references_in_stmt): Update call to create_data_ref.
24252 (graphite_find_data_references_in_stmt): Same.
24253 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
24254 declaration.
24255 (create_data_ref): Same.
24256 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
24257 call to create_data_ref.
24258
ac53c069
SP
242592011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24260
24261 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 24262 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 24263
3d17df15
SP
242642011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24265
24266 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
24267 VAR_DECL, PARM_DECL, and RESULT_DECL.
24268
c513da01
SP
242692011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24270
24271 * graphite-dependences.c (reduction_dr_1): Allow several reductions
24272 in a reduction PBB.
24273 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
24274 that have already been marked as PBB_IS_REDUCTION.
24275
3a292d59
SP
242762011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24277
24278 * graphite-scop-detection.c (same_close_phi_node): New.
24279 (remove_duplicate_close_phi): New.
24280 (make_close_phi_nodes_unique): New.
24281 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
24282
ba858447
SP
242832011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24284
24285 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
24286 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
24287 of both data references to be the same.
24288
8d865c56
SP
242892011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24290
38be4072
UB
24291 * graphite-dependences.c (build_lexicographical_constraint): Remove
24292 the gdim parameter.
24293 (build_lexicographical_constraint): Adjust call to
24294 ppl_powerset_is_empty.
8d865c56
SP
24295 (dependence_polyhedron): Same.
24296 (graphite_legal_transform_dr): Same.
24297 (graphite_carried_dependence_level_k): Same.
38be4072
UB
24298 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
24299 parameter.
8d865c56
SP
24300 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
24301
50034a36
SP
243022011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24303
24304 * graphite-sese-to-poly.c
24305 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
24306 (close_phi_written_to_memory): New.
24307 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
24308 and unshare_expr.
24309
0deada9e
SP
243102011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24311
24312 * doc/install.texi: Update the expected version number of PPL to 0.11.
24313 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
24314 #if PPL_VERSION_MINOR < 11.
24315
d7d3d6af
SP
243162011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24317
24318 * graphite-dependences.c: Include graphite-cloog-util.h.
24319 (new_poly_ddr): Inlined into dependence_polyhedron.
24320 (free_poly_ddr): Moved close by new_poly_ddr.
24321 (dependence_polyhedron_1): Renamed dependence_polyhedron.
24322 Early return NULL when ppl_powerset_is_empty returns true.
24323 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
24324 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
24325 (graphite_legal_transform_dr): Call new_poly_ddr.
24326 (graphite_carried_dependence_level_k): Same.
24327 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
24328 (dot_transformed_deps_stmt_1): Removed.
24329 (dot_deps_stmt_1): Call dot_deps_stmt_2.
24330 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
24331 (dot_deps_1): Call dot_deps_2.
24332 * Makefile.in (graphite-dependences.o): Add missing dependence on
24333 graphite-cloog-util.h.
24334
28c5db57
SP
243352011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24336
24337 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
24338 (build_lexicographical_constraint): Same.
24339 (dependence_polyhedron_1): Same.
24340 (graphite_legal_transform_dr): Same.
24341 (graphite_carried_dependence_level_k): Same.
24342 * graphite-ppl.c (ppl_powerset_is_empty): New.
24343 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
24344 * tree-data-ref.c (dump_data_reference): Print the basic block index.
24345
5168d98f
SP
243462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24347
24348 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
24349 the "a followed by b" relation and document it.
24350
4a40293a
SP
243512011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24352
24353 * graphite-dependences.c (build_lexicographical_constraint): Stop the
24354 iteration when the bag of constraints is empty.
24355
271fb6fa
SP
243562011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24357
24358 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
24359
92d23680
SP
243602011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24361
24362 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
24363 nest and two loop depths as parameters.
24364 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
24365 lst_perfect_nestify.
24366
2f51deff
SP
243672011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24368
24369 * graphite-dependences.c (print_pddr): Call
24370 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
24371
07f3593c
SP
243722011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24373
24374 * graphite-ppl.c (debug_gmp_value): New.
24375 * graphite-ppl.h (debug_gmp_value): Declared.
24376
3fae6099
TG
243772011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
24378
24379 * doc/install.texi: Document availability of cloog-0.16.
24380
1c3ba85b
SP
243812011-01-25 Vladimir Kargov <kargov@gmail.com>
24382
24383 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
24384 invalid postdominance info.
24385
e8ba94fc
JH
243862011-01-24 Jan Hubicka <jh@suse.cz>
24387
24388 PR c/21659
24389 * doc/extend.texi (weak pragma): Drop claim that it must
24390 appear before definition.
24391 * varasm.c (merge_weak, declare_weak): Only sanity check
24392 that DECL is not output at a time it is declared weak.
24393
2b6e2d13
KZ
243942011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
24395
24396 * machmode.def: Fixed comments.
1c3ba85b 24397
9841210f
KT
243982011-01-24 Kai Tietz <kai.tietz@onevision.com>
24399
24400 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
24401
244022011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
24403
24404 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 24405 WORDS_BIG_ENDIAN.
e046112d 24406
a6c5070a
L
244072011-01-24 H.J. Lu <hongjiu.lu@intel.com>
24408
24409 PR target/46519
24410 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
24411 (block_info): Add scanned and prev.
24412 (move_or_delete_vzeroupper_2): Return if the basic block
24413 has been scanned and the upper 128bit state is unchanged
24414 from the last scan.
24415 (move_or_delete_vzeroupper_1): Return true if the exit
24416 state is changed.
24417 (move_or_delete_vzeroupper): Visit basic blocks using the
24418 work-list based algorithm based on vt_find_locations in
24419 var-tracking.c.
24420
24421 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
24422
a40d79d7
NC
244232011-01-24 Nick Clifton <nickc@redhat.com>
24424
24425 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
24426 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
24427 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
24428 then define __v850e1__.
24429 * doc/invoke.texi: Document -mv850es.
24430
440eb8de
RH
244312011-01-24 Richard Henderson <rth@redhat.com>
24432
24433 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
24434 compound unordered comparisons.
24435 * config/rx/rx.c (rx_split_fp_compare): Remove.
24436 * config/rx/rx-protos.h: Update.
24437 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
24438 (cbranchsf4): Don't call rx_split_fp_compare.
24439 (*cbranchsf4): Use rx_split_cbranch.
24440 (*cmpsf): Don't accept "i" constraint.
24441 (*conditional_branch): Only valid after reload.
24442 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
24443
3ff79f99
MM
244442011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24445
24446 PR target/47385
24447 * config/rs6000/altivec.md (vector constant splitters): Add
24448 support for creating vector single precision constants if -mvsx is
24449 used and we would create the constant using Altivec primitives.
24450
ff3d9d08
BS
244512011-01-23 Bernd Schmidt <bernds@codesourcery.com>
24452 Richard Sandiford <rdsandiford@googlemail.com>
24453
24454 PR rtl-optimization/47166
24455 * reload1.c (emit_reload_insns): Disable the spill_reg_store
24456 mechanism for PRE_MODIFY and POST_MODIFY.
24457 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
24458 reloadreg.
24459
7fcaf152
AS
244602011-01-23 Andreas Schwab <schwab@linux-m68k.org>
24461
8788adb6 24462 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 24463
d09b58c4
JH
244642011-01-22 Jan Hubicka <jh@suse.cz>
24465
24466 PR lto/47333
24467 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
24468
e8ff8c5a
JH
244692011-01-22 Jan Hubicka <jh@suse.cz>
24470
24471 PR tree-optimization/43884
24472 PR lto/44334
8788adb6 24473 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
24474 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
24475
ccaed3ba
AS
244762011-01-22 Anatoly Sokolov <aesok@post.ru>
24477
24478 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24479 * config/s390/s390.c (s390_register_move_cost,
24480 s390_memory_move_cost): New.
24481 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
24482
0cecee06
UW
244832011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24484
24485 PR middle-end/47401
24486 * except.c (sjlj_assign_call_site_values): Move setting the
24487 crtl->uses_eh_lsda flag to ...
24488 (sjlj_mark_call_sites): ... here.
24489 (sjlj_emit_function_enter): Support NULL dispatch label.
24490 (sjlj_build_landing_pads): In a function with no landing pads
24491 that still has must-not-throw regions, generate code to register
24492 a personality function with empty LSDA.
24493
e692f276
RH
244942011-01-21 Richard Henderson <rth@redhat.com>
24495
1b7ae0b7
RH
24496 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
24497
3843787f
RH
24498 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
24499
e692f276
RH
24500 * compare-elim.c: New file.
24501 * Makefile.in (OBJS-common): Add it.
24502 (compare-elim.o): New.
24503 * common.opt (fcompare-elim): New.
24504 * opts.c (default_options_table): Add OPT_fcompare_elim.
24505 * tree-pass.h (pass_compare_elim_after_reload): New.
24506 * passes.c (init_optimization_passes): Add it.
24507 * recog.h: Protect against re-inclusion.
24508 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
24509 * doc/invoke.texi (-fcompare-elim): Document it.
24510 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
24511 * doc/tm.texi: Rebuild.
24512
9a7c2050
NC
245132011-01-22 Nick Clifton <nickc@redhat.com>
24514
24515 * config/rx/rx.md (cstoresf4): Pass comparison operator to
24516 rx_split_fp_compare.
24517
15ba5696
NC
245182011-01-22 Nick Clifton <nickc@redhat.com>
24519
24520 * config/rx/rx.md (UNSPEC_CONST): New.
24521 (deallocate_and_return): Wrap the amount popped off the stack in
24522 an UNSPEC_CONST in order to stop it being rejected by
24523 -mmax-constant-size.
24524 (pop_and_return): Add a "(return)" rtx.
24525 (call): Drop the immediate operand.
24526 (call_internal): Likewise.
24527 (call_value): Likewise.
24528 (call_value_internal): Likewise.
24529 (sibcall_internal): Likewise.
24530 (sibcall_value_internal): Likewise.
24531 (sibcall): Likewise. Generate an explicit call using
24532 sibcall_internal.
24533 (sibcall_value): Likewise.
24534 (mov<>): FAIL if a constant operand is not legitimate.
24535 (addsi3_unpsec): New pattern.
9a7c2050 24536
38be4072 24537 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
24538 (ok_for_max_constant): New function.
24539 (gen_safe_add): New function.
24540 (rx_expand_prologue): Use gen_safe_add.
24541 (rx_expand_epilogue): Likewise.
24542 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
24543 UNSPEC CONSTs.
24544
caaf13d3
JL
245452011-01-21 Jeff Law <law@redhat.com>
24546
24547 PR tree-optimization/47053
24548 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
24549 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
24550 statements are deleted.
24551 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
24552 is nonempty, then purge dead edges and cleanup the CFG.
24553
12c30f2f
AO
245542011-01-21 Alexandre Oliva <aoliva@redhat.com>
24555
24556 PR debug/47402
24557 Temporarily revert:
24558 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24559 PR debug/47106
24560 * tree-dfa.c (create_var_ann): Mark variable as used.
24561
7360d2ac
JJ
245622011-01-21 Jakub Jelinek <jakub@redhat.com>
24563
aaa52a96
JJ
24564 PR middle-end/45566
24565 * except.c (convert_to_eh_region_ranges): Emit queued no-region
24566 notes from other section in hot/cold partitioning even if
24567 last_action is -3. Increment call_site_base.
24568
7360d2ac
JJ
24569 PR rtl-optimization/47366
24570 * fwprop.c (forward_propagate_into): Return bool. If
24571 any changes are made, -fnon-call-exceptions is used and
24572 REG_EH_REGION note is present, call purge_dead_edges
24573 and return true if it purged anything.
24574 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
24575 any EH edges were purged.
24576
e90b336f
JL
245772011-01-21 Jeff Law <law@redhat.com>
24578
24579 PR rtl-optimization/41619
24580 * caller-save.c (setup_save_areas): Break out code to determine
24581 which hard regs are live across calls by examining the reload chains
24582 so that it is always used.
24583 Eliminate code which checked REG_N_CALLS_CROSSED.
24584
3ffe07e1
JJ
245852011-01-21 Jakub Jelinek <jakub@redhat.com>
24586
24587 PR tree-optimization/47355
24588 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
24589 NOP has non-debug uses beyond PHIs in new_bb.
24590
1c7d0b34
AO
245912011-01-21 Alexandre Oliva <aoliva@redhat.com>
24592
24593 PR debug/47106
24594 * cfgexpand.c (account_used_vars_for_block): Only account vars
24595 that are annotated as used.
24596 (estimated_stack_frame_size): Don't set TREE_USED.
24597 * tree-dfa.c (create_var_ann): Mark variable as used.
24598
f99cc488
RG
245992011-01-21 Richard Guenther <rguenther@suse.de>
24600
24601 PR middle-end/47395
24602 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
24603
3bc27de7
RG
246042011-01-21 Richard Guenther <rguenther@suse.de>
24605
24606 PR tree-optimization/47365
24607 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
24608 (vn_reference_lookup_pieces): Adjust.
24609 (vn_reference_lookup): Likewise.
24610 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
24611 (vn_reference_lookup_3): Only look through kills if in
24612 VN_WALKREWRITE mode.
24613 (vn_reference_lookup_pieces): Adjust.
24614 (vn_reference_lookup): Likewise.
24615 (visit_reference_op_load): Likewise.
24616 (visit_reference_op_store): Likewise.
24617 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
24618 (compute_avail): Likewise.
24619 (eliminate): Likewise.
24620
d8debb1d
JJ
246212011-01-21 Jakub Jelinek <jakub@redhat.com>
24622
24623 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
24624 DECL_IGNORED_P non-reg vars if they are used.
24625
3a2df831
JJ
24626 PR tree-optimization/47391
24627 * varpool.c (const_value_known_p): Return false if
24628 decl is volatile.
24629
1dd584a2
KT
246302011-01-21 Kai Tietz <kai.tietz@onevision.com>
24631
24632 PR bootstrap/47215
24633 * config/i386/i386.c (ix86_local_alignment): Handle
24634 case for va_list_type_node is nil.
24635 (ix86_canonical_va_list_type): Likewise.
24636
7f9f095e
AM
246372011-01-21 Alan Modra <amodra@gmail.com>
24638
24639 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
24640 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
24641
837b01f6
RR
246422011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24643
24644 * config/arm/arm.md (define_attr type): Rename f_load
24645 and f_store to f_fpa_load and f_fpa_store. Update.
24646 (write_conflict): Deal with rename fallout.
24647 (*push_fp_multi): Likewise.
24648 * config/arm/fpa.md (f_load): Use f_fpa_load.
24649 (f_store): Use f_fpa_store.
24650 (*movsf_fpa): Likewise.
24651 (*movdf_fpa): Likewise.
24652 (*movxf_fpa): Likewise.
24653 (*thumb2_movsf_fpa): Likewise.
24654 (*thumb2_movdf_fpa): Likewise.
24655 (*thumb2_movxf_fpa): Likewise.
24656 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
24657 f_loadd and f_stored.
24658 (*thumb2_movdi_vfp): Likewise.
24659 (*thumb2_movsf_vfp): Fix attribute to f_loads.
24660 (*thumb2_movsi_vfp): Likewise.
24661 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
24662 Use f_loads instead of f_load.
24663 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
24664
a1a79768
AS
246652011-01-20 Anatoly Sokolov <aesok@post.ru>
24666
24667 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24668 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
24669 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24670 (xtensa_mode_dependent_address_p): New function.
24671 (constantpool_address_p): Make static. Change return type to bool.
24672 Change argument type to const_rtx. Use CONST_INT_P predicate.
24673
427f6cec
AO
246742011-01-20 Alexandre Oliva <aoliva@redhat.com>
24675
24676 PR debug/46583
24677 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
24678
583ac69c
JJ
246792011-01-20 Jakub Jelinek <jakub@redhat.com>
24680
24681 PR debug/47283
24682 * cfgexpand.c (expand_debug_expr): Instead of generating
24683 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
24684 etc. handling.
24685
93e452ed
RG
246862011-01-20 Richard Guenther <rguenther@suse.de>
24687
24688 PR middle-end/47370
24689 * tree-inline.c (remap_gimple_op_r): Recurse manually for
24690 the pointer operand of MEM_REFs.
24691
28fc44f3
JJ
246922011-01-20 Jakub Jelinek <jakub@redhat.com>
24693
24694 PR tree-optimization/46130
24695 * ipa-split.c (consider_split): If return_bb contains non-virtual
24696 PHIs other than for retval or if split_function would not adjust it,
24697 refuse to split.
24698
ddd268f2
RG
246992011-01-20 Richard Guenther <rguenther@suse.de>
24700
24701 PR tree-optimization/47167
24702 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
24703 Revert previous change, only avoid enumeral type changes.
24704
882020aa
MS
247052011-01-19 Mike Stump <mikestump@comcast.net>
24706
24707 * doc/tm.texi.in (BRANCH_COST): Englishify.
24708 * doc/tm.texi (BRANCH_COST): Likewise.
24709
7edb6247
DS
247102011-01-19 Dodji Seketeli <dodji@redhat.com>
24711
24712 PR c++/47291
24713 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
24714 (gen_scheduled_generic_parms_dies): New functions.
24715 (gen_struct_or_union_type_die): Schedule template parameters DIEs
24716 generation for the end of CU compilation.
24717 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 24718
23d5ed5d
AO
247192011-01-19 Alexandre Oliva <aoliva@redhat.com>
24720
24721 PR debug/46240
24722 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
24723 debug bind stmt on merge edges.
24724
37d6a488
AO
247252011-01-19 Alexandre Oliva <aoliva@redhat.com>
24726
24727 PR debug/47079
24728 PR debug/46724
24729 * function.c (instantiate_expr): Instantiate incoming rtl of
24730 implicit arguments, and recurse on VALUE_EXPRs.
24731 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
24732 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
24733
689f2c82
AO
247342011-01-19 Alexandre Oliva <aoliva@redhat.com>
24735
24736 * c-parser.c (c_parser_for_statement): Initialize
24737 collection_expression.
24738
03029de4
JM
247392011-01-19 Joseph Myers <joseph@codesourcery.com>
24740
24741 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
24742
3e03217e
JM
247432011-01-19 Joseph Myers <joseph@codesourcery.com>
24744
24745 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
24746 (LINK_SHLIB_SPEC): Don't use %(link_path).
24747 (SUBTARGET_EXTRA_SPECS): Remove link_path.
24748
5bbe9b3f
JM
247492011-01-19 Joseph Myers <joseph@codesourcery.com>
24750
24751 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
24752 (NO_SHARED_LIB_SUPPORT): Remove.
24753 (LINK_SHLIB_SPEC): Remove one conditional definition.
24754
368e0b39
JM
247552011-01-19 Joseph Myers <joseph@codesourcery.com>
24756
24757 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
24758 %{call_shared}.
24759 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
24760 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
24761 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
24762 %{call_shared} and conditionals on these options not being passed.
24763 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
24764 %{call_shared}.
24765
ed7656f6
JJ
247662011-01-19 Jakub Jelinek <jakub@redhat.com>
24767
68457901
JJ
24768 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
24769 simplify.
24770
ed7656f6
JJ
24771 * ipa-split.c: Spelling fixes.
24772
e0d1958f
RH
247732011-01-19 Richard Henderson <rth@redhat.com>
24774
24775 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
24776 (*mulsi3): Likewise.
24777
27098b6b
RH
24778 * longlong.h [__mn10300__] (count_leading_zeros): New.
24779 [__mn10300__] (umul_ppmm, smul_ppmm): New.
24780 [__mn10300__] (add_ssaaaa, subddmmss): New.
24781 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
24782 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
24783
d6be7c36
UW
247842011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24785
24786 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
24787
b1efde2a
RH
247882011-01-19 Richard Henderson <rth@redhat.com>
24789
44217823
RH
24790 * config/mn10300/mn10300.md (addsi3_flags): New.
24791 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
24792 (subsi3_flags, subc_internal, subdi3): New.
24793 (subdi3_internal, *subdi3_degenerate): New.
24794 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
24795
37a185d7
RH
24796 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
24797 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
24798 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
24799 * config/mn10300/mn10300-protos.h: Update.
24800 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
24801 (return_ret): Likewise. Rename from return_internal_regs.
24802 (return_internal): Remove.
24803
040c5757
RH
24804 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
24805 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
24806 (mn10300_legitimate_constant_p): Likewise.
24807 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
24808 (mn10300_frame_size): New.
24809 (mn10300_expand_prologue): Use it.
24810 (mn10300_expand_epilogue): Likewise.
24811 (mn10300_initial_offset): Likewise.
24812 * config/mn10300/mn10300-protos.h: Update.
24813 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
24814 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
24815 (prologue, epilogue, return_internal): Tidy output code.
24816 (mn10300_store_multiple_operation, return): Likewise.
24817 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
24818 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
24819 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
24820 (load_pic, am33_load_pic): New.
24821 (mn10300_load_pic0, mn10300_load_pic1): New.
24822
bad41521
RH
24823 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
24824 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
24825 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
24826 (cc_flags_for_mode, cc_flags_for_code): New.
24827 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
24828 overflow flag is not valid. Validate that the flags we need
24829 for the comparison are valid.
24830 (mn10300_output_cmp): Remove.
24831 (mn10300_output_add): New.
24832 (mn10300_select_cc_mode): Use cc_flags_for_code.
24833 (mn10300_split_cbranch): New.
24834 (mn10300_match_ccmode): New.
24835 (mn10300_split_and_operand_count): New.
24836 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
24837 to the function.
24838 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
24839 (addsi3): ... here. Use mn10300_output_add.
24840 (*addsi3_flags): New.
24841 (*am33_subsi3, *mn10300_subsi3): Merge...
24842 (subsi3): ... here. Use attribute isa.
24843 (*subsi3_flags): New.
24844 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
24845 when possible.
24846 (*am33_andsi3, *mn10300_andsi3): Merge...
24847 (andsi3): ... here.
24848 (*andsi3_flags): New.
24849 (andsi3 splitters): New.
24850 (*am33_iorsi3, *mn10300_iorsi3): Merge...
24851 (iorsi3): ... here.
24852 (*iorsi3_flags): New.
24853 (*am33_xorsi3, *mn10300_xorsi3): Merge...
24854 (xorsi3): ... here.
24855 (*xorsi3_flags): New.
24856 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
24857 (one_cmplsi2): ... here.
24858 (*one_cmplsi2_flags): New.
24859 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
24860 instead of "dax" in constraints. Use mn10300_split_cbranch.
24861 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
24862 use matching constraints to eliminate a self-comparison.
24863 (*integer_conditional_branch): Rename from integer_conditional_branch.
24864 Use int_mode_flags to match CC_REG.
24865 (*cbranchsi4_btst, *btstsi): New.
24866 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
24867 mn10300_split_cbranch.
24868 (*am33_cmpsf): Rename from am33_cmpsf.
24869 (*float_conditional_branch): Rename from float_conditional_branch.
24870 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
24871 (zero_extendqisi2): ... here.
24872 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
24873 (zero_extendhisi2): ... here.
24874 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
24875 (extendqisi2): ... here.
24876 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
24877 (extendhisi2): ... here.
24878 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
24879 (ashlsi3): ... here.
24880 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
24881 (lshrsi3): ... here.
24882 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
24883 (ashrsi3): ... here.
24884 (consecutive add peephole): Remove.
24885 * config/mn10300/predicates.md (label_ref_operand): New.
24886 (int_mode_flags): New.
24887 (CCZN_comparison_operator): New.
24888
9efb4993
RH
24889 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
24890 (throughput_42_latency_43): New reservation.
24891 (mulsidi3, umulsidi3): New expanders.
24892 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
24893 the MDR register to allocation; separately allocate the low and
24894 high parts of the DImode result.
24895 (umulsidi3_internal): Similarly.
24896 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
24897 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
24898 (udivsi3, umodsi3): Remove.
24899 (udivmodsi4, divmodsi4): New expanders.
24900 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
24901 (*divmodsi4): Simiarly.
24902 (ext_internal): New.
24903
c25a21f5
RH
24904 * config/mn10300/constraints.md ("z"): New constraint.
24905 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
24906 (FIXED_REGISTERS): Don't fix MDR.
24907 (CALL_USED_REGSITERS): Reformat nicely.
24908 (REG_ALLOC_ORDER): Add MDR.
24909 (enum regclass): Add MDR_REGS.
24910 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
24911 (IRA_COVER_CLASSES): Add MDR_REGS.
24912 (REGNO_REG_CLASS): Handle MDR_REG.
24913 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
24914 (mn10300_register_move_cost): Likewise.
24915 * config/mn10300/mn10300.md (MDR_REG): New.
24916 (*movsi_internal): Handle moves to/from MDR_REGS.
24917
36846b26
RH
24918 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
24919 POST_MODIFY.
24920 (mn10300_secondary_reload): Tidy combination reload classes.
24921 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
24922 addresses for AM33. Allow symbolic offsets for reg+imm.
24923 (mn10300_regno_in_class_p): New.
24924 (mn10300_legitimize_reload_address): New.
24925 * config/mn10300/mn10300.h (enum reg_class): Remove
24926 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
24927 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
24928 SP_OR_GENERAL_REGS.
24929 (REG_CLASS_NAMES): Update to match.
24930 (REG_CLASS_CONTENTS): Likewise.
24931 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
24932 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
24933 (REGNO_IN_RANGE_P): Remove.
24934 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
24935 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
24936 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
24937 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
24938 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
24939 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
24940 (REGNO_GENERAL_P): New.
24941 (HAVE_POST_MODIFY_DISP): New.
24942 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
24943 (LEGITIMIZE_RELOAD_ADDRESS): New.
24944 * config/mn10300/mn10300-protos.h: Update.
24945
8b119bb6
RH
24946 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
24947 DATA_REGS for AM33 stack-pointer destination.
24948 (mn10300_preferred_output_reload_class): Likewise.
24949 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
24950 into a form appropriate for ...
24951 (TARGET_SECONDARY_RELOAD): New.
24952 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
24953 * config/mn10300/mn10300-protos.h: Update.
24954 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
24955 reload_insi; use the "A" constraint for the scratch; handle AM33
24956 moves of sp to non-address registers.
24957
b1efde2a
RH
24958 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
24959 (*movqi_internal): ... here.
24960 (*am33_movhi, *mn10300_movhi): Merge into...
24961 (*movhi_internal): ... here.
24962 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
24963 as the source/destination of moves from/to SP.
24964 (movsf): Only allow for AM33-2.
1c3ba85b 24965 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
24966 any integer constant constraint. Only allow for AM33-2. Tidy
24967 all of the alternative outputs.
24968 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
24969 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
24970 for MN103.
24971 (udivsi3, umodsi3): New patterns for MN103 only.
24972
b899fd78
JR
249732011-01-19 Joern Rennecke <amylaar@spamcop.net>
24974
24975 * doc/tm.texi.in: Spell out that a lack of register class unions
24976 can lead to ICEs.
24977 * doc/tm.texi: Regenerate.
24978
afaaa67d
JJ
249792011-01-19 Jakub Jelinek <jakub@redhat.com>
24980
2e0642cd
JJ
24981 PR rtl-optimization/47337
24982 * dce.c (check_argument_store): New function.
24983 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
24984
afaaa67d
JJ
24985 PR tree-optimization/47290
24986 * tree-eh.c (infinite_empty_loop_p): New function.
24987 (cleanup_empty_eh): Use it.
24988
d2cd871f
SE
249892011-01-18 Steve Ellcey <sje@cup.hp.com>
24990
24991 PR target/46997
24992 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
24993 (a64_expand_widen_sum): Ditto.
24994 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
24995 (vec_extract_evenodd_help): Ditto.
24996 (vec_extract_evenv4hi): Ditto.
24997 (vec_extract_oddv4hi): Ditto.
24998 (vec_extract_evenv2si): Ditto.
24999 (vec_extract_oddv2si): Ditto.
25000 (vec_extract_evenv2sf): Ditto.
25001 (vec_extract_oddv2sf): Ditto.
25002 (vec_pack_trunc_v4hi: Ditto.
25003 (vec_pack_trunc_v2si): Ditto.
25004 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
25005 (vec_interleave_highv8qi): Ditto.
25006 (mix1_r): Ditto.
25007 (vec_extract_oddv8qi): Ditto.
25008 (vec_interleave_lowv4hi): Ditto.
25009 (vec_interleave_highv4hi): Ditto.
25010 (vec_interleave_lowv2si): Ditto.
25011 (vec_interleave_highv2si): Ditto.
25012
41a1208a
JDA
250132011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25014
25015 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
25016 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
25017 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
25018 (pa_c_mode_for_suffix): New.
25019 (TARGET_EXPAND_BUILTIN): Define.
25020 (TARGET_C_MODE_FOR_SUFFIX): Define.
25021 (pa_builtins): Define.
25022 (pa_init_builtins): Register __float128 type and init new support
25023 builtins.
25024 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
25025 * config/pa/quadlib.c (_U_Qfcopysign): New.
25026
1ecad98e
EB
250272011-01-18 Eric Botcazou <ebotcazou@adacore.com>
25028
25029 PR middle-end/46894
25030 * explow.c (allocate_dynamic_stack_space): Do not assume more than
25031 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
25032 are defined.
25033
d4f2460a
UW
250342011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25035
25036 PR tree-optimization/47179
25037 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
25038 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
25039
4994da65
RG
250402011-01-18 Richard Guenther <rguenther@suse.de>
25041
25042 PR rtl-optimization/47216
25043 * emit-rtl.c: Include tree-flow.h.
25044 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
25045 of replicating it with different semantics.
25046 * Makefile.in (emit-rtl.o): Adjust.
25047
1eb458d1
RR
250482011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25049
38be4072 25050 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 25051 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 25052
e7ef91dc
JJ
250532011-01-18 Jakub Jelinek <jakub@redhat.com>
25054
25055 PR rtl-optimization/47299
25056 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 25057 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
25058 * expmed.c (expand_widening_mult): Don't try to optimize constant
25059 multiplication if op0 has VOIDmode. Convert op1 constant to mode
25060 before using it.
25061
535b7874
RW
250622011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25063
25064 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
25065 spacing after 'e.g.', typos, comma, hyphenation.
25066
27bf36f3
RH
250672011-01-17 Richard Henderson <rth@redhat.com>
25068
8a5b5449
RH
25069 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
25070 (rx_restricted_mem_operand): New.
25071 (rx_shift_operand): Use register_operand.
25072 (rx_source_operand, rx_compare_operand): Likewise.
25073 * config/rx/rx.md (addsi3_flags): New expander.
25074 (adddi3): Rewrite as expander.
25075 (adc_internal, *adc_flags, adddi3_internal): New patterns.
25076 (subsi3_flags): New expander.
25077 (subdi3): Rewrite as expander.
25078 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
25079
784f69be
RH
25080 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
25081 (rx_init_builtins): Remove sat builtin.
25082 (rx_expand_builtin): Likewise.
25083 * config/rx/rx.md (ssaddsi3): New.
25084 (*sat): Rename from sat. Represent the CC_REG input.
25085
f033541c
RH
25086 * config/rx/predicates.md (rshift_operator): New.
25087 * config/rx/rx.c (rx_expand_insv): Remove.
25088 * config/rx/rx-protos.h: Update.
25089 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
25090 operand to the canonical position.
25091 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
25092 (*bitclr, *bitclr_in_memory): Similarly.
25093 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
25094 (insv): Retain the zero_extract in the expansion.
25095
34fee389
RH
25096 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
25097 (bswaphi2, bitinvert, revw): Likewise.
25098
265c835f
RH
25099 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
25100 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
25101 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
25102 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
25103 (bitset, bitset_in_memory): Likewise.
25104 (bitinvert, bitinvert_in_memory): Likewise.
25105 (bitclr, bitclr_in_memory): Likewise.
25106 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
25107 (rx_strend, rx_cmpstrn): Likewise.
25108 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
25109 (bitop peep2 patterns): Remove.
25110
b4d83be3
RH
25111 * config/rx/rx.c (rx_match_ccmode): New.
25112 * config/rx/rx-protos.h: Update.
25113 * config/rx/rx.md (abssi2): Clobber, don't set flags.
25114 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
25115 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
25116 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
25117 (fix_truncsfsi2, floatsisf2): Likewise.
25118 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
25119 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
25120 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
25121 (*subsi3_flags, *xorsi3_flags): New.
25122
d0acb939
RH
25123 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
25124
c06fc3d9
RH
25125 * config/rx/rx.c (rx_print_operand): Remove workaround for
25126 unsplit comparison operations.
25127
2882702b
RH
25128 * config/rx/rx.md (movsicc): Split after reload.
25129 (*movsicc): Merge *movsieq and *movsine via match_operator.
25130 (*stcc): New pattern.
25131
6f7310f2
RH
25132 * config/rx/rx.c (rx_float_compare_mode): Remove.
25133 * config/rx/rx.h (rx_float_compare_mode): Remove.
25134 * config/rx/rx.md (cstoresi4): Split after reload.
25135 (*sccc): New pattern.
25136
e963cb1a
RH
25137 * config/rx/predicates.md (label_ref_operand): New.
25138 (rx_z_comparison_operator): New.
25139 (rx_zs_comparison_operator): New.
25140 (rx_fp_comparison_operator): New.
25141 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
25142 Validate that the flags are set properly for the comparison.
25143 (rx_gen_cond_branch_template): Remove.
25144 (rx_cc_modes_compatible): Remove.
25145 (mode_from_flags): New.
25146 (flags_from_code): Rename from flags_needed_for_conditional.
25147 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
25148 (rx_select_cc_mode): Likewise.
25149 (rx_split_fp_compare): New.
25150 (rx_split_cbranch): New.
25151 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
25152 (*cbranchsi4): Use match_operator and rx_split_cbranch.
25153 (*cbranchsf4): Similarly.
25154 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
25155 match_operator and rx_split_cbranch.
25156 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
25157 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
25158 (*cmpsi): Rename from cmpsi.
25159 (*tstsi): Rename from tstsi.
25160 (*cmpsf): Rename from cmpsf; use CC_Fmode.
25161 (*conditional_branch): Rename from conditional_branch.
25162 (*reveresed_conditional_branch): Remove.
25163 (b<code>): Remove expander.
25164 * config/rx/rx-protos.h: Update.
25165
af530bb4
RH
25166 * config/rx/rx.c (rx_compare_redundant): Remove.
25167 * config/rx/rx.md (cmpsi): Don't use it.
25168 * config/rx/rx-protos.h: Update.
25169
27bf36f3
RH
25170 * config/rx/rx-modes.def (CC_F): New mode.
25171 * config/rx/rx.c (rx_select_cc_mode): New.
25172 * config/rx/rx.h (SELECT_CC_MODE): Use it.
25173 * config/rx/rx-protos.h: Update.
25174
d7fde127
RH
251752011-01-17 Richard Henderson <rth@redhat.com>
25176
25177 * except.c (dump_eh_tree): Fix stray ; after for statement.
25178
6ff38230
RG
251792011-01-17 Richard Guenther <rguenther@suse.de>
25180
25181 PR tree-optimization/47313
25182 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
25183 handling before copying the body. Properly deal with
25184 by-reference result in SSA form.
25185
114ce554
ILT
251862011-01-17 Ian Lance Taylor <iant@google.com>
25187
bf5cd92b 25188 PR target/47219
114ce554
ILT
25189 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
25190 (struct_value_alias_set): Don't define.
25191 (sparc_option_override): Don't set sparc_sr_alias_set and
25192 struct_value_alias_set.
25193 (save_or_restore_regs): Use gen_frame_mem rather than calling
25194 set_mem_alias_set.
25195 (sparc_struct_value_rtx): Likewise.
25196
98c6d93c
L
251972011-01-17 H.J. Lu <hongjiu.lu@intel.com>
25198
25199 PR target/47318
7a81008b 25200 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
25201 (_mm_maskstore_pd): Likewise.
25202 (_mm_maskload_ps): Likewise.
25203 (_mm_maskstore_ps): Likewise.
25204 (_mm256_maskload_pd): Change mask to __m256i.
25205 (_mm256_maskstore_pd): Likewise.
25206 (_mm256_maskload_ps): Likewise.
25207 (_mm256_maskstore_ps): Likewise.
25208
25209 * config/i386/i386-builtin-types.def: Updated.
25210 (ix86_expand_special_args_builtin): Likewise.
25211
25212 * config/i386/i386.c (bdesc_special_args): Update
25213 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
25214 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
25215 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
25216 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
25217
25218 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
25219 Use <avxpermvecmode> on mask register.
25220 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
25221
b9361af2 252222011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
25223 Michael Haubenwallner <michael.haubenwallner@salomon.at>
25224 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
25225
25226 PR target/46655
25227 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
25228 if <= USHRT_MAX in 32-bit mode.
25229
b7ae9eb5
RW
252302011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25231
25232 * doc/install.texi (Configuration, Specific): Wrap long
25233 lines in examples. Allow line wrapping in long options
25234 and URLs where beneficial for PDF output.
25235
4377fad9
RS
252362011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
25237
25238 * config/mips/mips.c (mips_classify_symbol): Don't return
25239 SYMBOL_PC_RELATIVE for nonlocal labels.
25240
55959ffa 252412011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 25242
55959ffa
EB
25243 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
25244
252452011-01-15 Jan Hubicka <jh@suse.cz>
25246
25247 PR tree-optimization/47276
be46831f
JH
25248 * ipa.c (function_and_variable_visibility): Do not try to mark alias
25249 declarations as needed.
25250
05842ff5
MJ
252512011-01-15 Martin Jambor <mjambor@suse.cz>
25252
25253 * common.opt (fdevirtualize): New flag.
25254 * doc/invoke.texi (Option Summary): Document it.
25255 * opts.c (default_options_table): Add devirtualize flag.
25256 * ipa-prop.c (detect_type_change): Return immediately if
25257 devirtualize flag is not set.
25258 (detect_type_change_ssa): Likewise.
25259 (compute_known_type_jump_func): Likewise.
25260 (ipa_analyze_virtual_call_uses): Likewise.
25261
f65cf2b7
MJ
252622011-01-14 Martin Jambor <mjambor@suse.cz>
25263
25264 PR tree-optimization/45934
25265 PR tree-optimization/46302
25266 * ipa-prop.c (type_change_info): New type.
25267 (stmt_may_be_vtbl_ptr_store): New function.
25268 (check_stmt_for_type_change): Likewise.
25269 (detect_type_change): Likewise.
25270 (detect_type_change_ssa): Likewise.
25271 (compute_complex_assign_jump_func): Check for dynamic type change.
25272 (compute_complex_ancestor_jump_func): Likewise.
25273 (compute_known_type_jump_func): Likewise.
25274 (compute_scalar_jump_functions): Likewise.
25275 (ipa_analyze_virtual_call_uses): Likewise.
25276 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
25277
eb5bb0fd
JM
252782011-01-14 Joseph Myers <joseph@codesourcery.com>
25279
25280 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
25281 * config/i386/i386.opt (msse5): New Alias.
25282
f2060fbe
JM
252832011-01-14 Joseph Myers <joseph@codesourcery.com>
25284
25285 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25286 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25287 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25288 * config/sparc/sparc.h (CC1_SPEC): Likewise.
25289
3a7b4385
JM
252902011-01-14 Joseph Myers <joseph@codesourcery.com>
25291
25292 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
25293 -mcpu options.
25294 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25295 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25296 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
25297 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
25298 Likewise.
25299 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
25300
a7b778f8
JM
253012011-01-14 Joseph Myers <joseph@codesourcery.com>
25302
38be4072 25303 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 25304
a7edae0a
MS
253052011-01-14 Mike Stump <mikestump@comcast.net>
25306
25307 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
25308 * config/fr30/fr30.md: Likweise
25309 (movsi_push): Likewise.
25310 (movsi_pop): Likewise.
25311 (enter_func): Likewise.
25312 * config/moxie/moxie.md (movsi_push): Likewise.
25313 (movsi_pop): Likewise.
25314
cbabf03f
JM
253152011-01-14 Joseph Myers <joseph@codesourcery.com>
25316
25317 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
25318 %{no_archive} %{exact_version}.
25319 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
25320 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
25321 %{no_archive} %{exact_version}.
25322 * config/mips/openbsd.h (LINK_SPEC): Likewise.
25323 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
25324 * config/mips/vxworks.h: Likewise.
25325
438da41a
JM
253262011-01-14 Joseph Myers <joseph@codesourcery.com>
25327
38be4072 25328 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 25329
da290a42
JM
253302011-01-14 Joseph Myers <joseph@codesourcery.com>
25331
25332 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
25333 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
25334
8989d00e
JM
253352011-01-14 Joseph Myers <joseph@codesourcery.com>
25336
25337 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
25338 -nodefaultlib.
25339
a3010a69
JM
253402011-01-14 Joseph Myers <joseph@codesourcery.com>
25341
25342 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
25343 for mcpu not cpu.
25344 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
25345 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
25346 not cpu.
25347 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
25348 Don't handle -shlib.
25349
e7f2f537
JM
253502011-01-14 Joseph Myers <joseph@codesourcery.com>
25351
25352 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
25353 (CC1_SPEC): Don't handle -profile.
25354
34830bfd
JM
253552011-01-14 Joseph Myers <joseph@codesourcery.com>
25356
25357 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
25358 * config/mips/mips.h (CC1_SPEC): Likewise.
25359
b2d36e74
JM
253602011-01-14 Joseph Myers <joseph@codesourcery.com>
25361
25362 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
25363 * config/mips/mips.h (CC1_SPEC): Likewise.
25364
dabadc52
JM
253652011-01-14 Joseph Myers <joseph@codesourcery.com>
25366
25367 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
25368 * config/m32r/linux.h (LINK_SPEC): Likewise.
25369 * config/mips/linux.h (LINK_SPEC): Likewise.
25370 * config/mips/linux64.h (LINK_SPEC): Likewise.
25371 * config/sparc/linux.h (LINK_SPEC): Likewise.
25372 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
25373 LINK_SPEC): Likewise.
25374 * config/xtensa/linux.h (LINK_SPEC): Likewise.
25375
43ee6785
JM
253762011-01-14 Joseph Myers <joseph@codesourcery.com>
25377
25378 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
25379 %{version:-v}.
25380 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
25381
45e79dfd
JM
253822011-01-14 Joseph Myers <joseph@codesourcery.com>
25383
25384 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
25385 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25386
37e9e71d
JM
253872011-01-14 Joseph Myers <joseph@codesourcery.com>
25388
25389 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
25390
bb127cd8
RO
253912011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25392
25393 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
25394 supports -Bstatic/-Bdynamic.
25395 * configure: Regenerate.
25396
89a012ea 253972011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 25398 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
25399
25400 PR target/46037
25401 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
25402 when checking debug_info_level. Test write_symbols instead of
25403 debug_hooks->var_location when setting flag_var_tracking_uninit.
25404
7352c013
RG
254052011-01-14 Richard Guenther <rguenther@suse.de>
25406
25407 PR tree-optimization/47179
25408 * target.def (ref_may_alias_errno): New target hook.
25409 * targhooks.h (default_ref_may_alias_errno): Declare.
25410 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
25411 (default_ref_may_alias_errno): New function.
25412 * target.h (struct ao_ref_s): Declare.
25413 * tree-ssa-alias.c: Include target.h.
25414 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
25415 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
25416 (targhooks.o): Likewise.
25417 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
25418 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
25419
9a6c9288
RG
254202011-01-14 Richard Guenther <rguenther@suse.de>
25421
25422 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
25423
0fdb0d27
RG
254242011-01-14 Richard Guenther <rguenther@suse.de>
25425
25426 PR tree-optimization/47280
25427 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
25428 return CFG changes.
25429 (tree_ssa_forward_propagate_single_use_vars): Deal with
25430 CFG changes from associate_plusminus.
25431
8f66db3b
RG
254322011-01-14 Richard Guenther <rguenther@suse.de>
25433
25434 PR middle-end/47281
25435 Revert
25436 2011-01-11 Richard Guenther <rguenther@suse.de>
25437
280d9630
EB
25438 PR tree-optimization/46076
25439 * tree-ssa.c (useless_type_conversion_p): Conversions from
25440 unprototyped to empty argument list function types are useless.
8f66db3b 25441
6c0c92e6
RG
254422011-01-14 Richard Guenther <rguenther@suse.de>
25443
25444 PR tree-optimization/47286
280d9630 25445 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 25446
db09f943
MJ
254472011-01-14 Martin Jambor <mjambor@suse.cz>
25448
25449 PR middle-end/46823
25450 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
25451
dde8a3a4
AS
254522011-01-13 Anatoly Sokolov <aesok@post.ru>
25453
25454 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
25455 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25456 * config/xtensa/xtensa.c (xtensa_libcall_value,
25457 xtensa_function_value_regno_p): New functions.
25458 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25459
a2b63a20
KT
254602011-01-13 Kai Tietz <kai.tietz@onevision.com>
25461
25462 PR c++/47213
25463 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
25464 PE specific hook.
25465 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
25466 New function prototype.
25467 * config/i386/winnt.c (i386_pe_assemble_visibility):
25468 Warn only if attribute was specified by user.
25469
b41f0b34
MM
254702011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25471
25472 PR target/47251
25473 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
25474 floating point.
25475 (floatunsdidf2_fcfidu): Ditto.
25476
3f3c098d
AK
254772011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25478
25479 * config/s390/s390.c (print_operand_address): Replace 'error' with
25480 'output_operand_lossage'.
25481 (print_operand): Likewise.
25482
29fa95ed
JL
254832011-01-13 Jeff Law <law@redhat.com>
25484
280d9630 25485 PR rtl-optimization/39077
29fa95ed
JL
25486 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
25487 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
25488 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
25489 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
25490 * gcse.c (prune_insertions_deletions): New function.
25491 (compute_pre_data): Use it.
25492
71d12276
DS
254932011-01-13 Dodji Seketeli <dodji@redhat.com>
25494
25495 PR debug/PR46973
25496 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
25497 static function.
61052244 25498 (prune_unused_types_mark): Use it.
71d12276 25499
9b0f04e7
AB
255002011-01-13 Andrey Belevantsev <abel@ispras.ru>
25501
25502 PR rtl-optimization/45352
1c3ba85b 25503 * sel-sched.c: Update copyright years.
9b0f04e7 25504 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 25505 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 25506
d6a3e264
RH
255072011-01-12 Richard Henderson <rth@redhat.com>
25508
a49b692a
RH
25509 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
25510 (TARGET_MD_ASM_CLOBBERS): New.
25511
126b1483
RH
25512 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
25513 (TARGET_DELEGITIMIZE_ADDRESS): New.
25514
f3d9d2e0
RH
25515 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
25516 (clzsi2, *bsch): New patterns.
25517
d84760c9
RH
25518 * config/mn10300/mn10300.md (INT): New mode iterator.
25519 (*mov<INT>_clr): New pattern, and peep2 to generate it.
25520
ec815d65
RH
25521 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
25522 flag_split_wide_types.
25523
d6a3e264
RH
25524 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
25525 (mn10300_trampoline_init): Rewrite without a template, an immediate
25526 load and a direct branch.
25527 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
25528
0f8ab434
AS
255292011-01-12 Anatoly Sokolov <aesok@post.ru>
25530
25531 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25532 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
25533 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
25534 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25535
d8a24b65
KT
255362011-01-12 Kai Tietz <kai.tietz@onevision.com>
25537
25538 PR debug/47209
25539 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
25540 of type.
25541
56e22cab
JH
255422011-01-12 Jan Hubicka <jh@suse.cz>
25543
25544 PR driver/47244
25545 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
25546 (PLUGIN_COND_CLOSE): New macro.
25547 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
25548
4b18b3c2
RG
255492011-01-12 Richard Guenther <rguenther@suse.de>
25550
25551 PR lto/47259
25552 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
25553 register variables in a MEM_REF.
25554
8e38461c
JM
255552011-01-12 Joseph Myers <joseph@codesourcery.com>
25556
25557 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
25558 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
25559 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
25560 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
25561 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
25562 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
25563 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
25564 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
25565 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
25566 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
25567 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
25568 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
25569 * config/gnu-user.h: New. Copied from linux.h.
25570 (LINUX_TARGET_STARTFILE_SPEC): Rename to
25571 GNU_USER_TARGET_STARTFILE_SPEC.
25572 (LINUX_TARGET_ENDFILE_SPEC): Rename to
25573 GNU_USER_TARGET_ENDFILE_SPEC.
25574 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
25575 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
25576 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
25577 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
25578 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
25579 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
25580 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
25581 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
25582 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
25583 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
25584 * config/arm/linux-eabi.h (CC1_SPEC): Use
25585 GNU_USER_TARGET_CC1_SPEC.
25586 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
25587 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
25588 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
25589 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
25590 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
25591 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
25592 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
25593 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
25594
a570fc16
RG
255952011-01-12 Richard Guenther <rguenther@suse.de>
25596
25597 PR other/46946
25598 * doc/invoke.texi (ffast-math): Document it is turned on
25599 with -Ofast.
25600
b0223c3e
JH
256012011-01-12 Jan Hubicka <jh@suse.cz>
25602
25603 PR tree-optimization/47233
ca1e00b3
EB
25604 * opts.c (common_handle_option): Disable ipa-reference with profile
25605 feedback.
b0223c3e 25606
1c3ba85b 256072011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
25608
25609 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
25610 error message.
25611
d853ee42
NP
256122011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
25613
25614 * c-parser.c (c_lex_one_token): Updated and reindented some
25615 comments. No changes in code.
25616
4053a5a0
ILT
256172011-01-11 Ian Lance Taylor <iant@google.com>
25618
25619 * godump.c (go_output_var): Don't output the variable if there is
25620 already a type with the same name.
25621
fa3e04d2
ILT
256222011-01-11 Ian Lance Taylor <iant@google.com>
25623
25624 * godump.c (go_format_type): Don't generate float80.
25625
885fe07c
RH
256262011-01-11 Richard Henderson <rth@redhat.com>
25627
72d6e3c5
RH
25628 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
25629 declaration. Rewrite for both speed and size.
25630 (mn10300_address_cost_1): Remove.
25631 (mn10300_register_move_cost): New.
25632 (mn10300_memory_move_cost): New.
25633 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
25634 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
25635 extensions, shifts, BSWAP, CLZ.
25636 (mn10300_wide_const_load_uses_clr): Remove.
25637 (TARGET_REGISTER_MOVE_COST): New.
25638 (TARGET_MEMORY_MOVE_COST): New.
25639 * config/mn10300/mn10300-protos.h: Update.
25640 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
25641
df37c023
RH
25642 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
25643 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
25644 * config/mn10300/mn10300-protos.h: Update.
25645 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
25646 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
25647 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
25648 (*test_int_bitfield, *test_byte_bitfield): Remove.
25649 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 25650 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 25651
85a337b5
RH
25652 * config/mn10300/constraints.md ("c"): Rename from "A".
25653 ("A", "D"): New constraint letters.
25654 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
25655 (fmssf4, fnmasf4, fnmssf4): Likewise.
25656
a5c727e3
RH
25657 * config/mn10300/mn10300.md (isa): New attribute.
25658 (enabled): New attribute.
25659
0d9e23f4
RH
25660 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
25661 (abssf2, negsf2): Define only for hardware fp.
25662 (sqrtsf2): Reformat.
25663 (addsf3, subsf3, mulsf3): Merge expander and insn.
25664
c157b3f0
RH
25665 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
25666 (DEBUGGER_AUTO_OFFSET): Remove.
25667 (DEBUGGER_ARG_OFFSET): Remove.
25668
cc909bba
RH
25669 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
25670 Emit register stores with the same offsets as the hardware.
25671 (mn10300_store_multiple_operation): Don't check that the register
25672 save offsets are monotonic.
25673 * config/mn10300/mn10300-protos.h: Update.
25674
e3b5c2f3
RH
25675 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
25676
885fe07c
RH
25677 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
25678 in terms of the value on the stack, not the MDR register.
25679
6e701822
JH
256802011-01-11 Jan Hubicka <jh@suse.cz>
25681
25682 PR lto/45721
25683 PR lto/45375
25684 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
25685 (symbol_alias_set_destroy, symbol_alias_set_contains,
25686 propagate_aliases_backward): Declare.
25687 * lto-streamer-out.c (struct sets): New sturcture.
25688 (trivally_defined_alias): New function.
25689 (output_alias_pair_p): Rewrite.
25690 (output_unreferenced_globals): Fix output of alias pairs.
25691 (produce_symtab): Likewise.
25692 * ipa.c (function_and_variable_visibility): Set weak alias destination
25693 as needed in lto.
25694 * varasm.c (symbol_alias_set_t): Remove.
25695 (symbol_alias_set_destroy): Export.
25696 (propagate_aliases_forward, propagate_aliases_backward): New functions
25697 based on ...
25698 (compute_visible_aliases): ... this one; remove.
25699 (trivially_visible_alias): New
25700 (trivially_defined_alias): New.
25701 (remove_unreachable_alias_pairs): Rewrite.
25702 (finish_aliases_1): Reorganize code checking if alias is defined.
25703 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
25704 in LTO mode.
25705
1b248907
RG
257062011-01-11 Richard Guenther <rguenther@suse.de>
25707
25708 PR tree-optimization/46076
25709 * tree-ssa.c (useless_type_conversion_p): Conversions from
25710 unprototyped to empty argument list function types are useless.
25711
b1923f0a
RG
257122011-01-11 Richard Guenther <rguenther@suse.de>
25713
25714 PR middle-end/45235
25715 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
25716 volatile MEMs as MEM_READONLY_P.
25717
e98965af
RG
257182011-01-11 Richard Guenther <rguenther@suse.de>
25719
25720 PR tree-optimization/47239
25721 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
25722
9f9ca914
JL
257232011-01-11 Jeff Law <law@redhat.com>
25724
1ee3ea05 25725 PR tree-optimization/47086
9f9ca914
JL
25726 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
25727 IVs from statements that might throw.
25728
345fdcb7
JH
257292011-01-10 Jan Hubicka <jh@suse.cz>
25730
25731 PR lto/45375
25732 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
25733
c459c97b
JH
257342011-01-10 Jan Hubicka <jh@suse.cz>
25735
25736 PR lto/45375
25737 * profile.c (read_profile_edge_counts): Ignore profile inconistency
25738 when correcting profile.
25739
06c9eb51
JH
257402011-01-10 Jan Hubicka <jh@suse.cz>
25741
25742 PR lto/46083
25743 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
25744 DECL_FINI_PRIORITY.
25745 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
25746 Restore DECL_FINI_PRIORITY.
25747
ae9fd815
RW
257482011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25749
25750 * doc/gimple.texi: Fix quoting of multi-word return values in
25751 @deftypefn statements. Ensure presence of return value. Wrap
25752 overlong @deftypefn lines.
25753 (is_gimple_operand, is_gimple_min_invariant_address): Remove
25754 descriptions of removed functions.
25755 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
25756 of multi-word return value in @deftypefn statement.
25757
0ecb4a7c
RW
257582011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25759
25760 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
25761 (Conditional Expressions, Logical Operators)
25762 (Statement and operand traversals): Do not indent smallexample
25763 code. Fix duplicate function argument in example.
25764
2e5e346d
JL
257652011-01-10 Jeff Law <law@redhat.com>
25766
1ee3ea05 25767 PR tree-optimization/47141
2e5e346d
JL
25768 * ipa-split.c (split_function): Handle case where we are
25769 returning a value and the return block has a virtual operand phi.
25770
cf9712cc
JH
257712011-01-10 Jan Hubicka <jh@suse.cz>
25772
1c3ba85b 25773 PR tree-optimization/47234
cf9712cc
JH
25774 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
25775 (pass_feedback_split_functions): Declare.
25776 * passes.c (init_optimization_passes): Add ipa-split as subpass of
25777 tree-profile.
25778 * ipa-split.c (gate_split_functions): Update comments; disable
25779 split-functions for profile_arc_flag and branch_probabilities.
25780 (gate_feedback_split_functions): New function.
25781 (execute_feedback_split_functions): New function.
25782 (pass_feedback_split_functions): New global var.
25783
94cd932c
L
257842011-01-10 H.J. Lu <hongjiu.lu@intel.com>
25785
25786 PR lto/46760
25787 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
25788 calling gimple_call_set_cannot_inline.
25789
fbbfcaf1
IS
257902011-01-10 Iain Sandoe <iains@gcc.gnu.org>
25791
25792 * config/darwin-sections.def: Remove unused section.
25793
d06865bf
DK
257942011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
25795
25796 PR c++/47218
25797 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
25798
96bbfbac
NP
257992011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
25800
25801 PR objc/47232
25802 * c-parser.c (c_parser_declaration_or_fndef): Improved
25803 error message.
25804
1ba6516f
KT
258052011-01-09 Kai Tietz <kai.tietz@onevision.com>
25806
25807 * config/i386/winnt.c (i386_pe_start_function): Make sure
25808 to switch back to function's section.
25809
0c5d770e
IS
258102011-01-09 Iain Sandoe <iains@gcc.gnu.org>
25811
25812 PR gcc/46902
25813 PR testsuite/46912
25814 * plugin.c: Move include of dlfcn.h from here...
25815 * system.h: ... to here.
25816
258172011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
25818
25819 * doc/cpp.texi (C++ Named Operators): Fix markup for header
25820 file name.
25821 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
25822 two extra empty pages in PDF output.
25823
046608a3
NP
258242011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
25825
25826 PR objc/47078
25827 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
25828 for error recovery purposes behave as if it was not specified so
25829 that the default type is usd.
25830
8cb114b9
JH
258312011-01-07 Jan Hubicka <jh@suse.cz>
25832
25833 PR tree-optmization/46469
25834 * ipa.c (function_and_variable_visibility): Clear needed flags on
25835 nodes with external decls; handle weakrefs merging correctly.
25836
b294a75e
JM
258372011-01-07 Joseph Myers <joseph@codesourcery.com>
25838
25839 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
25840 not false.
25841
96bdf9b4
JH
258422011-01-07 Jan Hubicka <jh@suse.cz>
25843
f60c2554 25844 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
25845 and no longer claim that gold is required for linker plugin.
25846 * configure: Regenerate.
25847 * gcc.c (PLUGIN_COND): New macro.
25848 (LINK_COMMAND_SPEC): Use it.
25849 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
25850 * config.in (HAVE_LTO_PLUGIN): New.
25851 * configure.ac (--with-lto-plugin): New parameter; autodetect
25852 HAVE_LTO_PLUGIN.
25853
17afc0fe
JH
258542011-01-07 Jan Hubicka <jh@suse.cz>
25855
25856 PR tree-optimization/46367
25857 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
25858 when we can update original.
25859 (cgraph_mark_inline_edge): Sanity check.
25860 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
25861
d4c48c0f
UW
258622011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25863
25864 * config/spu/spu.h (ASM_COMMENT_START): Define.
25865
96f5b137
L
258662011-01-07 H.J. Lu <hongjiu.lu@intel.com>
25867
25868 PR driver/42445
25869 * gcc.c (%>S): New.
25870 (SWITCH_KEEP_FOR_GCC): Likewise.
25871 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
25872 (do_spec_1): Handle "%>".
25873
25874 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
25875
c6a8f6de
JJ
258762011-01-07 Jakub Jelinek <jakub@redhat.com>
25877
c21bbd7a
JJ
25878 PR target/47201
25879 * config/i386/i386.c (ix86_delegitimize_address): If
25880 simplify_gen_subreg fails, return orig_x.
25881
c6a8f6de
JJ
25882 PR bootstrap/47187
25883 * value-prof.c (gimple_stringop_fixed_value): Handle
25884 lhs of the call properly.
25885
fe95fbf9
JH
258862011-01-07 Jan Hubicka <jh@suse.cz>
25887
25888 PR lto/45375
25889 * lto-opt.c (lto_reissue_options): Set flag_shlib.
25890
14d11d40
IS
258912011-01-07 Iain Sandoe <iains@gcc.gnu.org>
25892
72e961c8
EB
25893 * target.def (function_switched_text_sections): New hook.
25894 * doc/tm.texi: Regenerated.
25895 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 25896 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
25897 (final_scan_insn): Call function_switched_text_sections when a
25898 mid-function section change occurs.
14d11d40 25899 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
25900 * config/darwin-protos.h (darwin_function_switched_text_sections):
25901 Likewise.
14d11d40 25902 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 25903 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 25904
0b764288
IS
259052011-01-07 Iain Sandoe <iains@gcc.gnu.org>
25906
25907 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
25908 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
25909 the secondary code fragment when outputting for DWARF == 2.
25910
2ac6bb04
AS
259112011-01-07 Anatoly Sokolov <aesok@post.ru>
25912
25913 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25914 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
25915 Remove.
25916 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
25917 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25918
9f82de11
EB
259192011-01-06 Eric Botcazou <ebotcazou@adacore.com>
25920
25921 PR debug/46704
280d9630
EB
25922 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
25923 when it is not empty.
9f82de11
EB
25924
259252011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 25926
1ed72abf 25927 Bobcat Enablement
14b52538 25928 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 25929 (case ${target}): Add btver1.
14b52538 25930 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 25931 -march=native recognize btver1 processors.
14b52538 25932 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 25933 btver1 def_and_undef
14b52538 25934 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
25935 btver1 cost table.
25936 (m_BTVER1): New definition.
25937 (m_AMD_MULTIPLE): Includes m_BTVER1.
25938 (initial_ix86_tune_features): Add btver1 tune.
25939 (processor_target_table): Add btver1 entry.
25940 (static const char *const cpu_names): Add btver1 entry.
25941 (software_prefetching_beneficial_p): Add btver1.
25942 (ix86_option_override_internal): Add btver1 instruction sets.
25943 (ix86_issue_rate): Add btver1.
25944 (ix86_adjust_cost): Add btver1.
14b52538 25945 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
25946 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
25947 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
25948 * config/i386/i386.md (define_attr "cpu"): Add btver1.
25949
e1a973d8
RO
259502011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25951
25952 PR target/43309
25953 * config/i386/i386.c (legitimize_tls_address)
25954 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
25955 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
25956 (tls_initial_exec_64_sun): New pattern.
25957
c73f67c5
GP
259582011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
25959
25960 * doc/invoke.texi (Overall Options): Improve wording and markup
25961 of the description of -wrapper.
25962
bc4c6f9c
JM
259632011-01-06 Joseph Myers <joseph@codesourcery.com>
25964
25965 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
25966 rdynamic, threads): New Driver options.
25967
adb75db0
RO
259682011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25969
25970 PR target/38118
25971 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
25972 if coming from .tdata.
25973 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
25974
402c1cb4
JH
259752011-01-06 Jan Hubicka <jh@suse.cz>
25976
25977 PR lto/47188
25978 * collect2.c (main): Do not enable LTOmode when plugin is active.
25979
a4da6485
RO
259802011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25981
25982 PR other/45915
25983 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
25984 --version output if supported.
25985 * configure: Regenerate.
25986
028dbdf4
JM
259872011-01-06 Joseph Myers <joseph@codesourcery.com>
25988
25989 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
25990 Driver options.
25991
dfe776dd
JJ
259922011-01-06 Jakub Jelinek <jakub@redhat.com>
25993
25994 PR c/47150
25995 * c-convert.c (convert): When converting a complex expression
25996 other than COMPLEX_EXPR to a different complex type, ensure
25997 c_save_expr is called instead of save_expr, unless in_late_binary_op.
25998 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
25999 when converting COMPLEX_TYPE.
26000
210dedfe
IR
260012011-01-06 Ira Rosen <irar@il.ibm.com>
26002
26003 PR tree-optimization/47139
26004 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
26005 only the last reduction value is used outside the loop. Update
26006 documentation.
26007
cd33a412
JM
260082011-01-05 Joseph Myers <joseph@codesourcery.com>
26009
26010 * config/rtems.opt: New.
26011 * config.gcc (*-*-rtems*): Use rtems.opt.
26012
819edd94
CF
260132011-01-05 Changpeng Fang <changpeng.fang@amd.com>
26014
26015 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
26016 processors do not support 3DNow instructions.
26017
dc242c4a
UW
260182011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26019
26020 * config/spu/spu.c (spu_option_override): Set parameter
26021 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
26022
be286227
JH
260232011-01-05 Jan Hubicka <jh@suse.cz>
26024
26025 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
26026 at the command line.
26027
644e637f
MJ
260282011-01-05 Martin Jambor <mjambor@suse.cz>
26029
26030 PR lto/47162
26031 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
26032 deltas on streamed outgoing edges.
26033 (output_node_opt_summary): Output info for outgoing edges only when
26034 the node is in new parameter set.
26035 (output_cgraph_opt_summary): New parameter set, passed to the two
26036 aforementioned functions. Update its forward declaration and its
26037 callee too.
26038
7bd11157
TT
260392011-01-05 Tom Tromey <tromey@redhat.com>
26040
26041 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
26042 operator to c_finish_omp_atomic.
26043 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
26044 (build_unary_op): Update.
26045 (build_modify_expr): Update.
26046 (build_asm_expr): Update.
26047
f626b979
UW
260482011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26049
26050 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
26051 newly inserted insns.
26052 (pad_bb): Likewise.
26053 (spu_emit_branch_hint): Likewise.
26054 (insert_hbrp_for_ilb_runout): Likewise.
26055 (spu_machine_dependent_reorg): Call df_finish_pass after
26056 schedule_insns returns.
26057
4c825c02
UW
260582011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26059
26060 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
26061
5e9fba51
EB
260622011-01-05 Eric Botcazou <ebotcazou@adacore.com>
26063
26064 PR tree-optimization/47005
26065 * tree-sra.c (struct access): Add 'non_addressable' bit.
26066 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
26067 (decide_one_param_reduction): Return 0 if the parameter is passed by
26068 reference and one of the accesses in the group is non_addressable.
26069
3ebb5ca6
EB
260702011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26071
26072 PR tree-optimization/47056
26073 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
26074 (mark_load): Likewise. Handle FUNCTION_DECL specially.
26075 (mark_store): Likewise. Pass STMT to ipa_record_reference.
26076
d5d4d14e
EB
260772011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26078
26079 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
26080 initializer. Skip view conversions from aggregate types.
26081
d996ef70
KT
260822011-01-04 Kai Tietz <kai.tietz@onevision.com>
26083
26084 PR bootstrap/47055
26085 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
26086
509d65dd 260872011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
26088
26089 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
26090 obvious typo.
26091
55c623b5
UW
260922011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26093
26094 * function.c (thread_prologue_and_epilogue_insns): Do not crash
26095 on empty epilogue sequences.
26096
b98d6b35
JM
260972011-01-04 Joseph Myers <joseph@codesourcery.com>
26098
26099 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
26100 non-static): New Driver options.
26101
a0d43bac
JZ
261022011-01-04 Jie Zhang <jie@codesourcery.com>
26103
26104 PR driver/47137
26105 * gcc.c (default_compilers[]): Set combinable field to 0
26106 for all assembly languages.
26107
2b18eb32
MX
261082011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
26109
26110 * config/mips/loongson3a.md: New file.
26111 * config/mips/mips.md: Include loongson3a.md.
26112 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
26113 TUNE_LOONGSON_3A.
26114
42a48c4f
EB
261152011-01-03 Eric Botcazou <ebotcazou@adacore.com>
26116
26117 PR middle-end/47017
26118 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
26119 instead of convert_memory_address_addr_space on the base expression.
26120
9c1732c4
UW
261212011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26122
26123 * config/spu/spu.c (spu_option_override): Update error text
26124 for bad -march= / -mtune= values.
26125
aa474365
UW
261262011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26127
26128 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
26129 if branch-hint optimization will be performed.
26130
9766135b
JJ
261312011-01-03 Jakub Jelinek <jakub@redhat.com>
26132
371556ee
JJ
26133 PR tree-optimization/47148
26134 * ipa-split.c (split_function): Convert arguments to
26135 DECL_ARG_TYPE if possible.
26136
1ac12fa2
JJ
26137 PR tree-optimization/47155
26138 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
26139 when computing uns.
26140
9766135b
JJ
26141 PR rtl-optimization/47157
26142 * combine.c (try_combine): If undobuf.other_insn becomes
26143 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
26144 and set *new_direct_jump_p too.
26145
f4a2e571
SP
261462011-01-03 Sebastian Pop <sebastian.pop@amd.com>
26147
26148 PR tree-optimization/47021
26149 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
26150
9f8e43c0
JJ
261512011-01-03 Jakub Jelinek <jakub@redhat.com>
26152
26153 * gcc.c (process_command): Update copyright notice dates.
26154 * gcov.c (print_version): Likewise.
26155 * gcov-dump.c (print_version): Likewise.
26156 * mips-tfile.c (main): Likewise.
26157 * mips-tdump.c (main): Likewise.
26158
1a2e38f3
MJ
261592011-01-03 Martin Jambor <mjambor@suse.cz>
26160
26161 PR tree-optimization/46801
26162 * tree-sra.c (type_internals_preclude_sra_p): Check whether
26163 aggregate fields start at byte boundary instead of the bit-field flag.
26164
56b721c5
L
261652011-01-03 H.J. Lu <hongjiu.lu@intel.com>
26166
26167 PR driver/47137
26168 * gcc.c (main): Revert revision 168407.
26169
839d549b
MJ
261702011-01-03 Martin Jambor <mjambor@suse.cz>
26171
26172 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
26173
4ce99a20 261742011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
26175
26176 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
26177 vector optab to expand vector/scalar shift, update gimple to vector.
26178
76df0ae6
MJ
261792011-01-03 Martin Jambor <mjambor@suse.cz>
26180
26181 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
26182 a thunk.
26183
ce47fda3
MJ
261842011-01-03 Martin Jambor <mjambor@suse.cz>
26185
26186 PR tree-optimization/46984
26187 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
26188 HOST_WIDE_INT.
26189 (cgraph_create_indirect_edge): Fixed line length.
26190 (cgraph_indirect_call_info): Declare.
26191 (cgraph_make_edge_direct) Update declaration.
26192 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
26193 (cgraph_create_indirect_edge): Use it.
26194 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
26195 callees.
26196 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
26197 the new thunk_delta representation.
26198 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
26199 HOST_WIDE_INT.
26200 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
26201 (ipa_read_indirect_edge_info): Likewise.
26202 * lto-cgraph.c (output_edge_opt_summary): New function.
26203 (output_node_opt_summary): Call it on all outgoing edges.
26204 (input_edge_opt_summary): New function.
26205 (input_node_opt_summary): Call it on all outgoing edges.
26206
1e67fa1f
L
262072011-01-02 H.J. Lu <hongjiu.lu@intel.com>
26208
26209 PR driver/47137
26210 * gcc.c (main): Don't check have_o when settting combine_inputs.
26211
6656b2ac
EB
262122011-01-02 Eric Botcazou <ebotcazou@adacore.com>
26213
26214 * regrename.c: Add general comment describing the pass.
26215 (struct du_head): Remove 'length' field.
26216 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
26217 (regrename_optimize): Do not sort chains. Rework comments, add others.
26218 Force renaming to the preferred class (if any) in the first pass and do
26219 not consider registers that belong to it in the second pass.
26220 (create_new_chain): Do not set 'length' field.
26221 (scan_rtx_reg): Likewise.
26222
bc470c24
JJ
262232011-01-02 Jakub Jelinek <jakub@redhat.com>
26224
4e996296
JJ
26225 PR tree-optimization/47140
26226 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
26227 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
26228 to bit_value_binop.
26229
bc470c24 26230 PR rtl-optimization/47028
6656b2ac
EB
26231 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
26232 parm_birth_insn instead of at the beginning of first bb.
bc470c24 26233
5af62fcd 262342011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
26235
26236 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
26237 Remove the word "see" before "@pxref".
26238 * doc/rtl.texi: Remove the word "see" before "@pxref".
26239
0e20c89f
JH
262402011-01-01 Jan Hubicka <jh@suse.cz>
26241
6656b2ac
EB
26242 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
26243 memory.
0e20c89f 26244
220e83ca
KT
262452011-01-01 Kai Tietz <kai.tietz@onevision.com>
26246
26247 PR target/38662
6656b2ac 26248 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 26249
ad41bd84 26250\f
797103eb 26251Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
26252
26253Copying and distribution of this file, with or without modification,
26254are permitted in any medium without royalty provided the copyright
26255notice and this notice are preserved.