]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
2b28ecea
RH
12011-08-20 Richard Henderson <rth@redhat.com>
2
3 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
4 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
5 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
6 config/c6x/ltf.c: Adjust include path for soft-fp.
7
9ce7ad7f
L
82011-08-20 H.J. Lu <hongjiu.lu@intel.com>
9
10 PR other/46770
11 * config.gcc (tm_file): Add initfini-array.h if
12 .init_arrary/.fini_array are supported.
13
14 * crtstuff.c: Don't generate .ctors nor .dtors sections if
15 USE_INITFINI_ARRAY is defined.
16
17 * output.h (default_elf_init_array_asm_out_constructor): New.
18 (default_elf_fini_array_asm_out_destructor): Likewise.
19 * varasm.c (elf_init_array_section): Likewise.
20 (elf_fini_array_section): Likewise.
21 (get_elf_initfini_array_priority_section): Likewise.
22 (default_elf_init_array_asm_out_constructor): Likewise.
23 (default_elf_fini_array_asm_out_destructor): Likewise.
24
25 * config/initfini-array.h: New.
26
894113c3
RS
272011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
28
29 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
30 OK for ST_REGS and FP_REGS before taking those classes into account.
31
9e187b31
RS
322011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
33
34 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
35 before checking for annulled branches.
36
f0cac80b
UB
372011-08-20 Uros Bizjak <ubizjak@gmail.com>
38
39 * config/i386/i386.c (ix86_binary_operator_ok): Use
40 satisfies_constraint_L.
41
198cb166
UB
422011-08-20 Uros Bizjak <ubizjak@gmail.com>
43 Michael Matz <matz@suse.de>
44
45 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
46 trunc (a + copysign (nextafter (0.5, 0.0), a)).
47
f47a61f3
AS
482011-08-20 Anatoly Sokolov <aesok@post.ru>
49
50 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
51 * doc/tm.texi: Regenerate.
52 * targhooks.c (default_preferred_output_reload_class): Don't use
53 PREFERRED_OUTPUT_RELOAD_CLASS macro.
54 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
55
94e3faf6
JJ
562011-08-20 Jakub Jelinek <jakub@redhat.com>
57
58 PR tree-optimization/48739
59 * tree-ssa.c: Include cfgloop.h.
198cb166
UB
60 (execute_update_addresses_taken): When updating ssa, if in loop closed
61 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
94e3faf6
JJ
62 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
63
3bb19a90
VM
642011-08-19 Vladimir Makarov <vmakarov@redhat.com>
65
66 PR rtl-optimization/49936
67 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
68 for calculation of max register move costs.
69
02ee3d31
JM
702011-08-19 Joseph Myers <joseph@codesourcery.com>
71
72 * c-parser.c (c_parser_postfix_expression): Convert operands of
73 __builtin_complex to their semantic types.
74
54f6892e
L
752011-08-19 H.J. Lu <hongjiu.lu@intel.com>
76
77 PR middle-end/49721
78 * explow.c (convert_memory_address_addr_space): Also permute the
79 conversion and addition of constant for zero-extend.
80
d4a83c10
JM
812011-08-19 Joseph Myers <joseph@codesourcery.com>
82
198cb166 83 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
d4a83c10
JM
84 * doc/extend.texi (__builtin_complex): Document.
85
a6f969f4
AS
862011-08-19 Andrew Stubbs <ams@codesourcery.com>
87
88 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
89 beyond conversions.
90 (convert_mult_to_widen): Convert constant inputs to the right type.
91 (convert_plusminus_to_widen): Don't automatically reject inputs that
92 are not an SSA_NAME.
93 Convert constant inputs to the right type.
94
75161d2c
AS
952011-08-19 Andrew Stubbs <ams@codesourcery.com>
96
97 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
98 to the correct type.
99
6a228c2c
AS
1002011-08-19 Andrew Stubbs <ams@codesourcery.com>
101
102 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
103 unsigned inputs of different modes.
104 (convert_plusminus_to_widen): Likewise.
105
26a855d7
AS
1062011-08-19 Andrew Stubbs <ams@codesourcery.com>
107
108 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
109 'type'.
110 Use 'type' from caller, not inferred from 'rhs'.
111 Don't reject non-conversion statements. Do return lhs in this case.
112 (is_widening_mult_p): Add new argument 'type'.
113 Use 'type' from caller, not inferred from 'stmt'.
114 Pass type to is_widening_mult_rhs_p.
115 (convert_mult_to_widen): Pass type to is_widening_mult_p.
116 (convert_plusminus_to_widen): Likewise.
117
ff63d754
AS
1182011-08-19 Andrew Stubbs <ams@codesourcery.com>
119
120 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
121 Ensure the the larger type is the first operand.
122
db719f50
AS
1232011-08-19 Andrew Stubbs <ams@codesourcery.com>
124
125 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
126 unsupported unsigned multiplies to signed.
127 (convert_plusminus_to_widen): Likewise.
128
cefb4d4f
AS
1292011-08-19 Andrew Stubbs <ams@codesourcery.com>
130
131 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
132 conversion statement separating multiply-and-accumulate.
133
2946bd34
RG
1342011-08-19 Richard Guenther <rguenther@suse.de>
135
136 PR tree-optimization/50067
137 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
138 offset only if we accounted for it.
139
5dfe80ba
AS
1402011-08-19 Andrew Stubbs <ams@codesourcery.com>
141
142 * config/arm/arm.md (maddhidi4): Remove '*' from name.
143 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
144 * optabs.c (find_widening_optab_handler_and_mode): New function.
145 (expand_widen_pattern_expr): Use find_widening_optab_handler.
146 (expand_binop_directly): Likewise.
147 (expand_binop): Likewise.
148 * optabs.h (find_widening_optab_handler): New macro define.
149 (find_widening_optab_handler_and_mode): New prototype.
150 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
151 type precision rules.
152 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
153 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
154 (is_widening_mult_rhs_p): Allow widening by more than one mode.
155 Explicitly disallow mis-matched input types.
156 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
157 input types to fit the new handler.
158 (convert_plusminus_to_widen): Likewise.
159
a484f6ba
AS
1602011-08-19 Andrew Stubbs <ams@codesourcery.com>
161
162 * expr.c (expand_expr_real_2): Use widening_optab_handler.
163 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
164 (gen_insn): $N now means $a must be wider than $b, not consecutive.
165 * optabs.c (widened_mode): New function.
166 (expand_widen_pattern_expr): Use widening_optab_handler.
167 (expand_binop_directly): Likewise.
168 (expand_binop): Likewise.
169 * optabs.h (widening_optab_handlers): New struct.
170 (optab_d): New member, 'widening'.
171 (widening_optab_handler): New function.
172 (set_widening_optab_handler): New function.
173 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
174 widening_optab_handler.
175 (convert_plusminus_to_widen): Likewise.
176
c4b3a0a0
JM
1772011-08-19 Joseph Myers <joseph@codesourcery.com>
178
179 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
180 pedantic.
198cb166 181 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
c4b3a0a0
JM
182 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
183
f6d08ab2
JM
1842011-08-19 Joseph Myers <joseph@codesourcery.com>
185
186 * opth-gen.awk: Do not declare target save/restore structures and
187 functions if IN_RTS defined.
188
a3f94870
JY
1892011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
190
191 PR target/49437
192 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
193 when stack was realigned in interrupt handler prologue.
194
bbceee64
JM
1952011-08-18 Joseph Myers <joseph@codesourcery.com>
196
197 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
198 (quals_from_declspecs): Assert _Noreturn not present.
199 (grokdeclarator): Handle _Noreturn.
200 (build_null_declspecs): Initialize noreturn_p.
201 (declspecs_add_scspec): Handle RID_NORETURN.
202 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
203 (c_parser_attributes): Handle RID_NORETURN.
204 * c-tree.h (struct c_declspecs): Add noreturn_p.
205 * ginclude/stdnoreturn.h: New.
206 * Makefile.in (USER_H): Add stdnoreturn.h.
207
7afac110
KY
2082011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
209
210 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
211 (OPTION_MASK_ISA_AVX_UNSET): Update.
212 (OPTION_MASK_ISA_AVX2_UNSET): New.
213 (ix86_handle_option): Handle OPT_mavx2 case.
214 * config/i386/cpuid.h (bit_AVX2): New.
215 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
216 AVX2 feature.
217 * config/i386/i386-c.c (ix86_target_macros_internal):
218 Conditionally define __AVX2__.
198cb166
UB
219 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
220 Define "core-avx2" processor alias. Handle avx2 option.
7afac110
KY
221 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
222 * config/i386/i386.h (TARGET_AVX2): New.
223 * config/i386/i386.opt (mavx2): New.
224 * doc/invoke.texi: Document -mavx2.
225
6277a710
VM
2262011-08-18 Vladimir Makarov <vmakarov@redhat.com>
227
228 PR rtl-optimization/49890
229 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
230 subclasses of class which is superset of a pressure class.
231
df385b9c
L
2322011-08-18 H.J. Lu <hongjiu.lu@intel.com>
233 Igor Zamyatin <igor.zamyatin@intel.com>
234
235 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
236 with HOST_WIDE_INT for isa_flag.
237 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
238 isa variables.
239
240 * config/i386/i386.c (ix86_target_string): Replace int with
241 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
242 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
243 (pta_flags): Removed.
244 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
245 (pta): Use HOST_WIDE_INT on flags.
246 (builtin_isa): Use HOST_WIDE_INT on isa.
247 (ix86_add_new_builtins): Likewise.
248 (def_builtin): Use HOST_WIDE_INT on mask.
249 (def_builtin_const): Likewise.
250 (builtin_description): Likewise.
251
252 * config/i386/i386.opt (ix86_isa_flags): Replace int with
253 HOST_WIDE_INT.
254 (ix86_isa_flags_explicit): Likewise.
255 (x_ix86_isa_flags_explicit): Likewise.
256
9181a6e5
VM
2572011-08-17 Vladimir Makarov <vmakarov@redhat.com>
258
259 PR rtl-optimization/50107
260 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
261 (ira_hard_reg_in_set_p): New.
262
263 * ira-color.c (calculate_saved_nregs): New.
264 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
265 hard regs.
266 (allocno_reload_assign, fast_allocation): Use
267 ira_hard_reg_set_intersection_p instead of
268 ira_hard_reg_not_in_set_p.
269
270 * ira.c (setup_reg_renumber): Use
271 ira_hard_reg_set_intersection_p instead of
272 ira_hard_reg_not_in_set_p.
273 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
274 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
275
276 * ira-costs.c (ira_tune_allocno_costs): Use
277 ira_hard_reg_set_intersection_p instead of
278 ira_hard_reg_not_in_set_p.
279
99114bbf
L
2802011-08-18 H.J. Lu <hongjiu.lu@intel.com>
281 Igor Zamyatin <igor.zamyatin@intel.com>
282
283 * hwint.h (HOST_WIDE_INT_1): New.
284
285 * opt-functions.awk (switch_bit_fields): Initialize the
286 host_wide_int field.
287 (host_wide_int_var_name): New.
288 (var_type_struct): Check and return HOST_WIDE_INT.
289
290 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
291
292 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
293
294 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
295 check masks for HOST_WIDE_INT.
296
297 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
298 (option_enabled): Likewise.
299 (get_option_state): Likewise.
300
301 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
302 to HOST_WIDE_INT.
303
5b880ea6
RO
3042011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
305 Marc Glisse <marc.glisse@normalesup.org>
306
307 PR libstdc++-v3/1773
308 * target.def (decl_mangling_context): New C++ hook.
309 * doc/tm.texi: Regenerate.
310 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
311 * config/sol2-protos.h: Group by source file.
312 (solaris_cxx_decl_mangling_context): Declare.
313 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
314 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
315 Use $<.
316 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
317 Add sol2-stubs.o to extra_objs.
318
4dee9718
JJ
3192011-08-18 Jakub Jelinek <jakub@redhat.com>
320
f44157f8
JJ
321 PR target/50009
322 * stor-layout.c (update_alignment_for_field): Don't ICE on
323 packed flexible array members if ms_bitfield_layout_p.
324
2a63286d
JJ
325 PR target/50092
326 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
327 on the result before returning it.
328
4dee9718
JJ
329 PR debug/50017
330 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
331 is a debug stmt, use location of the first non-debug stmt after it.
332
b28e37f1
RS
3332011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
334
335 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
336 (arm_size_rtx_costs): Likewise.
337
6b8045e1
RG
3382011-08-18 Richard Guenther <rguenther@suse.de>
339
340 * tree.h (tree_int_cst_msb): Remove.
341 * tree.c (tree_int_cst_msb): Likewise.
342 (tree_int_cst_sign_bit): Move from ...
343 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
344
68f932c4
RS
3452011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
346
347 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
348 * doc/tm.texi: Regenerate.
349 * target.def (rtx_costs): Add an opno parameter.
350 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
351 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
352 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
353 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
354 * cse.c (COST_IN): Add an opno parameter.
355 (notreg_cost): Likewise. Update call to rtx_cost.
356 (COST, fold_rtx): Update accordingly.
357 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
358 * expmed.c (emit_store_flag): Likewise.
359 * optabs.c (avoid_expensive_constant): Add an opno parameter.
360 Update call to rtx_cost.
361 (expand_binop_directly, expand_binop): Likewise.
362 (expand_twoval_binop, prepare_cmp_insn): Likewise.
363 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
364 (set_src_cost, get_full_set_src_cost): Update accordingly.
365 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
366 to target hook.
367 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
368 (default_adress_cost): Update calls to rtx_cost.
369
370 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
371 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
372 (arm_rtx_costs): Add an opno parameter.
373 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
374 adjust any recursive rtx-cost calls.
375 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
376 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
377 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
378 * config/cris/cris.c (cris_rtx_costs): Likewise.
379 * config/frv/frv.c (frv_rtx_costs): Likewise.
380 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
381 * config/i386/i386.c (ix86_rtx_costs): Likewise.
382 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
383 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
384 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
385 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
386 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
387 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
388 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
389 * config/mep/mep.c (mep_rtx_cost): Likewise.
390 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
391 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
392 (mips_zero_extend_cost): Add an opno parameter.
393 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
394 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
395 to rtx_cost.
396 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
397 rtx-cost calls.
398 * config/pa/pa.c (hppa_rtx_costs): Likewise.
399 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
400 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
401 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
402 (rs6000_debug_rtx_costs): Likewise.
403 * config/s390/s390.c (s390_rtx_costs): Likewise.
404 * config/score/score-protos.h (score_rtx_costs): Likewise.
405 * config/score/score.c (score_rtx_costs): Likewise.
406 * config/sh/sh.c (andcosts): Update call to rtx_cost.
407 (sh_rtx_costs): Add an opno parameter.
408 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
409 * config/spu/spu.c (spu_rtx_costs): Likewise.
410 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
411 * config/v850/v850.c (v850_rtx_costs): Likewise.
412 * config/vax/vax.c (vax_rtx_costs): Likewise.
413 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
414
5e8f01f4
RS
4152011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
416
417 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
418 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
419 rtx_cost.
420 * calls.c (precompute_register_parameters): Likewise.
421 * combine.c (expand_compound_operation, make_extraction): Likewise.
422 (force_to_mode, distribute_and_simplify_rtx): Likewise.
423 * dse.c (find_shift_sequence): Likewise.
424 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
425 * expr.c (compress_float_constant): Likewise.
426 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
427 * gcse.c (want_to_gcse_p): Likewise.
428 * ifcvt.c (noce_try_sign_mask): Likewise.
429 * loop-doloop.c (doloop_optimize): Likewise.
430 * loop-invariant.c (create_new_invariant): Likewise.
431 * optabs.c (avoid_expensive_constant): Likewise.
432 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
433 (try_replace_in_use, reload_cse_move2add): Likewise.
434 * reload1.c (calculate_elim_costs_all_insns): Likewise.
435 (note_reg_elim_costly): Likewise.
436 * rtlanal.c (insn_rtx_cost): Likewise.
437 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
438 * stmt.c (lshift_cheap_p): Likewise.
439 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
440 * config/avr/avr.c (final_prescan_insn): Likewise.
441 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
442 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
443
d51102f3
RS
4442011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
445
446 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
447 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
448 * cfgloopanal.c (seq_cost): Likewise.
449 * loop-invariant.c (create_new_invariant): Likewise.
450 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
451 (reload_cse_move2add): Use get_full_set_rtx_cost.
452
fdb4f315
RG
4532011-08-18 Richard Guenther <rguenther@suse.de>
454
455 * expr.c (get_inner_reference): Fix typo in last change.
456
4c9cf7af
PC
4572011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
458 Joseph Myers <joseph@codesourcery.com>
459
460 PR tree-optimization/49963
461 * hwint.c (absu_hwi): Define.
462 * hwint.h (absu_hwi): Declare.
463 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
464 of abs_hwi.
465 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
466 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
467
97919ae7
RG
4682011-08-18 Richard Guenther <rguenther@suse.de>
469
470 * expr.c (get_inner_reference): Sign-extend the constant
471 twos-complement offset before doing arbitrary precision
472 arithmetic on it.
473 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
474 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
475 to get_constraint_for_ptr_offset.
476
b566132b
KK
4772011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
478
479 PR target/50068
480 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
481
0d82a1c8
RG
4822011-08-17 Richard Guenther <rguenther@suse.de>
483
484 * tree.h (convert_to_ptrofftype_loc): New function.
485 (convert_to_ptrofftype): Define.
486 * builtins.c (expand_builtin_bzero): Use size_type_node.
487 (fold_builtin_bzero): Likewise.
488 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
489 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
490 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
491 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
492 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
198cb166 493 * fold-const.c (build_range_check): Negate using the original type.
0d82a1c8
RG
494 (fold_unary_loc): Use fold_build_pointer_plus_loc.
495 * gimple-fold.c (gimple_adjust_this_by_delta): Use
496 convert_to_ptrofftype.
497 * gimplify.c (gimplify_self_mod_expr): Likewise.
498 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
499 (graphite_create_new_loop_guard): Likewise.
500 * graphite-sese-to-poly.c (my_long_long): Remove.
501 (scop_ivs_can_be_represented): Adjust.
502 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
503 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
504 * tree-loop-distribution.c (build_size_arg_loc): Use
505 size_type_node.
506 (generate_memset_zero): Simplify.
507 * tree-mudflap.c: Use fold_convert, not convert.
508 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
509 its own type.
510 (determine_offset): Likewise for DR_STEP.
511 (valid_initializer_p): Likewise.
512 * tree-profile.c (prepare_instrumented_value): Convert the pointer
513 to an integer type of same size.
514 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
515 to sizetype without need.
516 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
517 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
518 * tree-ssa-loop-manip.c (create_iv): Likewise.
519 (determine_exit_conditions): Adjust comment.
520 * tree-ssa-pre.c (create_expression_by_pieces): Use
521 convert_to_ptrofftype.
522 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
523 * varasm.c (array_size_for_constructor): Compute using double_ints.
524
0b01f619
UW
5252011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
526
527 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
528 when generating an integer result where possible. Short-cut
529 comparison against 0 also for QImode.
530
2ea0be59
UW
5312011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
532
533 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
534 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
535 prototype.
536 * config/spu/spu.c (spu_legitimize_reload_address): New function.
537 (spu_legitimate_address_p): Do not check displacement if the base
538 is an eliminable stack register.
539
b05933f5
AS
5402011-08-16 Anatoly Sokolov <aesok@post.ru>
541
542 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
543 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
544 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
545 m32c_preferred_output_reload_class): Remove.
546 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
547 Change rclass argument and return types to reg_class_t. Use
548 reg_class_subset_p instead of class_sizes.
549 (m32c_preferred_output_reload_class): Make static. Change rclass
550 argument and return types to reg_class_t.
551 (TARGET_PREFERRED_RELOAD_CLASS,
552 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
553
c9c8f2e8
KT
5542011-08-16 Kai Tietz <ktietz@redhat.com>
555
556 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
557
e8dbf8b5
RG
5582011-08-16 Richard GUenther <rguenther@suse.de>
559
560 PR tree-optimization/50082
561 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
562 warnings here, instead of ...
563 (ssa_forward_propagate_and_combine): ... here.
564 (forward_propagate_into_comparison_1): Adjust.
565 (forward_propagate_into_comparison): Likewise.
566 (forward_propagate_into_gimple_cond): Likewise.
567 (forward_propagate_into_cond): Likewise.
568
870d0521
AS
5692011-08-16 Andreas Schwab <schwab@redhat.com>
570
571 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
572 instead of ggc_alloc_zone_vec_rtvec_def.
573
370f4759
RG
5742011-08-16 Richard Guenther <rguenther@suse.de>
575
576 * tree.h (ptrofftype_p): New helper function.
577 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
578 offset verification.
579 (verify_gimple_assign_binary): Likewise.
580 * tree.c (build2_stat): Likewise.
581 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
582 (reset_evolution_in_loop): Likewise.
583 * tree-chrec.h (build_polynomial_chrec): Likewise.
584
c5058418
LW
5852011-08-16 Liang Wang <lwang1@marvell.com>
586
587 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
588 ggc_alloc_zone_vec_rtvec_def.
589
a1bc7628
RG
5902011-08-16 Richard Guenther <rguenther@suse.de>
591
592 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
593 helper factored out from ...
594 (extract_range_from_binary_expr_1): ... here. Re-structure
595 to not glob handling too different tree codes.
596
efec771a
RH
5972011-08-15 Richard Henderson <rth@redhat.com>
598
599 PR middle-end/50006
600 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
601 setting out to include allocate_stack named pattern as well.
602 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
603 * stmt.c (expand_stack_restore): Likewise.
604
d510820a
RG
6052011-08-15 Richard Guenther <rguenther@suse.de>
606
607 PR middle-end/50082
608 * fold-const.c (maybe_canonicalize_comparison_1): Properly
609 convert the modified operand to the other operand type.
610 (fold_comparison): Call maybe_canonicalize_comparison_1 with
611 useless conversions stripped from comparison operands.
612
1a0fcfa9
RG
6132011-08-15 Richard Guenther <rguenther@suse.de>
614
615 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
616 (extract_range_from_unary_expr_1): Restructure.
617
4f9dbaaa
RG
6182011-08-15 Richard Guenther <rguenther@suse.de>
619
620 PR tree-optimization/50058
621 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
622 copy matching.
623
3598da80
RR
6242011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
625
626 PR target/50022
627 * config/arm/arm.c (output_move_double): Add 2 parameters
628 to count the number of insns emitted and whether to emit or not.
629 Use the flag to decide when to emit and count number of instructions
630 that will be emitted.
631 Handle case where output_move_double might be called for calculating
632 lengths with an invalid constant.
633 (arm_count_output_move_double_insns): Define.
634 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
635 (output_move_double): Adjust prototype.
636 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
637 output_move_double.
638 ("*movdi_vfp_cortexa8"): Likewise and add attribute
639 for ce_count.
640 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
641 ("*movdf_soft_insn"): Likewise.
642 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
643 ("*cirrus_thumb2_movdi"): Likewise.
644 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
645 ("*cirrus_movdf_hard_insn"): Likewise.
646 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
647 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
648 ("mov<mode>_internal VMMX"): Likewise.
649 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
650
f4ab7b99
UB
6512011-08-14 Uros Bizjak <ubizjak@gmail.com>
652
653 * config/i386/i386.c (ix86_expand_round_sse4): New function.
654 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
655 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
656 for TARGET_ROUND.
657
658 (rint<mode>2): Simplify TARGET_ROUND check.
659 (floor<mode>2): Ditto.
660 (ceil<mode>2): Ditto.
661 (btrunc<mode>2): Ditto.
662
12e502c6
AS
6632011-08-14 Anatoly Sokolov <aesok@post.ru>
664
665 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
666 as mmix_preferred_output_reload_class.
667
f3713778 6682011-08-14 Georg-Johann Lay <avr@gjlay.de>
f4ab7b99 669
f3713778
GJL
670 * PR target/49903
671 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
672 (branch_unspec): New insn.
673 (branch): Beauty farm.
674 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
675 to be IF_THEN_ELSE.
676 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
677 New static functions.
678 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
679 Use CONST_INT_P. Beauty.
680
7b4ef662
RH
6812011-08-12 Richard Henderson <rth@redhat.com>
682
683 PR rtl-opt/49994
684 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
685 * sched-deps.c (init_deps): Clear it.
686 (deps_analyze_insn): Consume it.
687 (sched_analyze_insn): Fill it.
688
10c241af
RR
6892011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
690
198cb166 691 PR target/48328
10c241af
RR
692 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
693 for tbh instructions.
694
198cb166 6952011-08-12 Diego Novillo <dnovillo@google.com>
412288f1
DN
696
697 * data-streamer.h (streamer_write_zero): Rename from output_zero.
f4ab7b99
UB
698 (streamer_write_uhwi): Rename from lto_output_uleb128.
699 (streamer_write_hwi): Rename from output_sleb128.
700 (streamer_write_string): Rename from lto_output_string.
701 (streamer_string_index): Rename from lto_string_index.
702 (streamer_write_string_with_length): Rename from
703 lto_output_string_with_length.
704 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
705 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
706 (streamer_read_string): Rename from lto_input_string.
707 (streamer_read_indexed_string): Rename from input_string_internal.
708 (streamer_read_uhwi): Rename from lto_input_uleb128.
709 (streamer_read_hwi): Rename from lto_input_sleb128.
710 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
711 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
712 (streamer_write_enum): Rename from lto_output_enum.
713 (streamer_read_enum): Rename from lto_input_enum.
714 (streamer_write_record_start): Rename from output_record_start.
715 (streamer_read_record_start): Rename from input_record_start.
716 (streamer_write_bitpack): Rename from lto_output_bitpack.
717 (streamer_read_bitpack): Rename from lto_input_bitpack.
718 (streamer_write_char_stream): Rename from lto_output_1_stream.
719 (streamer_read_uchar): Rename from lto_input_1_unsigned.
720 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
721 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
722 (streamer_read_string_cst): Rename from input_string_cst.
723 (streamer_read_chain): Rename from lto_input_chain.
724 (streamer_alloc_tree): Rename from lto_materialize_tree.
725 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
726 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
727 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
728 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
729 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
730 (streamer_write_chain): Rename from lto_output_chain.
731 (streamer_write_tree_header): Rename from lto_output_tree_header.
732 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
733 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
734 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
735 (streamer_write_builtin): Rename from lto_output_builtin_tree.
736 (streamer_check_handled_ts_structures): Rename from
737 check_handled_ts_structures.
738 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
739 (streamer_tree_cache_insert_at): Rename from
740 lto_streamer_cache_insert_at.
741 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
742 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
743 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
744 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
745 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
746 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
747 (write_identifier): Rename from output_identifier.
748 (write_ts_common_tree_pointers): Rename from
749 lto_output_ts_common_tree_pointers.
750 (write_ts_vector_tree_pointers): Rename from
751 lto_output_ts_vector_tree_pointers.
752 (write_ts_complex_tree_pointers): Rename from
753 lto_output_ts_complex_tree_pointers.
754 (write_ts_decl_minimal_tree_pointers): Rename from
755 lto_output_ts_decl_minimal_tree_pointers.
756 (write_ts_decl_common_tree_pointers): Rename from
757 lto_output_ts_decl_common_tree_pointers.
758 (write_ts_decl_non_common_tree_pointers): Rename from
759 lto_output_ts_decl_non_common_tree_pointers.
760 (write_ts_decl_with_vis_tree_pointers): Rename from
761 lto_output_ts_decl_with_vis_tree_pointers.
762 (write_ts_field_decl_tree_pointers): Rename from
763 lto_output_ts_field_decl_tree_pointers.
764 (write_ts_function_decl_tree_pointers): Rename from
765 lto_output_ts_function_decl_tree_pointers.
766 (write_ts_type_common_tree_pointers): Rename from
767 lto_output_ts_type_common_tree_pointers.
768 (write_ts_type_non_common_tree_pointers): Rename from
769 lto_output_ts_type_non_common_tree_pointers.
770 (write_ts_list_tree_pointers): Rename from
771 lto_output_ts_list_tree_pointers.
772 (write_ts_vec_tree_pointers): Rename from
773 lto_output_ts_vec_tree_pointers.
774 (write_ts_exp_tree_pointers): Rename from
775 lto_output_ts_exp_tree_pointers.
776 (write_ts_block_tree_pointers): Rename from
777 lto_output_ts_block_tree_pointers.
778 (write_ts_binfo_tree_pointers): Rename from
779 lto_output_ts_binfo_tree_pointers.
780 (write_ts_constructor_tree_pointers): Rename from
781 lto_output_ts_constructor_tree_pointers.
782 (write_ts_target_option): Rename from lto_output_ts_target_option.
783 (write_ts_translation_unit_decl_tree_pointers): Rename from
784 lto_output_ts_translation_unit_decl_tree_pointers.
785 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
786 Rename from lto_streamer_cache_add_to_node_array.
787 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
788 (record_common_node): Rename from lto_record_common_node.
412288f1
DN
789
790 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
791 declarations.
792 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
793 function.
794 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
795 unused function.
796 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
797 (ipa-reference.o): Likewise.
798 * lto-section-out.c: Include data-streamer.h.
799 * ipa-reference.c: Include data-streamer.h.
800
9b0f6f5e
NC
8012011-08-12 Nick Clifton <nickc@redhat.com>
802
f4ab7b99 803 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
9b0f6f5e
NC
804 * doc/md.texi (cmpstrn): Note that the comparison stops if both
805 fetched bytes are zero.
806 (cmpstr): Likewise.
807 (cmpmem): Note that the comparison does not stop if both of the
808 fetched bytes are zero.
809
6c32ee74
UB
8102011-08-12 Uros Bizjak <ubizjak@gmail.com>
811
812 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
813 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
814 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
815 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
816 to integer_type_node.
817 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
818 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
819 * builtins.c (expand_builtin_in): Ditto.
820 (mathfn_built_in_1): Ditto.
821 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
822 BUILT_IN_IFLOOR.
823 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
824 BUILT_IN_IROUND.
825 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
826 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
827 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
828
d9fbc86e
RB
8292011-08-12 Richard Guenther <rguenther@suse.de>
830
198cb166 831 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
d9fbc86e
RB
832
8332011-08-12 Romain Geissler <romain.geissler@gmail.com>
f895fc2a
RG
834
835 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
836
20fe71c2
RS
8372011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
838
839 * config/arm/arm.c (get_label_padding): New function.
c789cb77 840 (create_fix_barrier, arm_reorg): Use it.
20fe71c2 841
88b590c5
UB
8422011-08-11 Uros Bizjak <ubizjak@gmail.com>
843
844 PR target/49781
845 * config/i386/i386.md (*lea_5_zext): New.
846 (*lea_6_zext): Ditto.
847 * config/i386/predicates.md (const_32bit_mask): New predicate.
848 (lea_address_operand): Reject AND.
849 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
850 const_32bit_mask immediate.
851 (ix86_print_operand_address): Handle AND.
852 (memory_address_length): Ditto.
853
4309e92c 8542011-08-11 Romain Geissler <romain.geissler@gmail.com>
88b590c5 855 Brian Hackett <bhackett1024@gmail.com>
4309e92c
RG
856
857 * plugin.def: Add event for finish_decl.
858 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
859 * c-decl.c (finish_decl): Invoke callbacks on above event.
860 * doc/plugins.texi: Document above event.
861
25aa059e
RG
8622011-08-11 Richard Guenther <rguenther@suse.de>
863
864 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
865 lookups, make looking through aggregate copies stronger.
866
6bfd73a6
RH
8672011-08-11 Richard Henderson <rth@redhat.com>
868
869 PR bootstrap/50018
870 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
871
022676dc
RG
8722011-08-11 Richard Guenther <rguenther@suse.de>
873
874 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
875 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
876 (vrp_visit_stmt): Likewise.
877
8d2b0410
RG
8782011-08-11 Richard Guenther <rguenther@suse.de>
879
880 PR middle-end/50040
881 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
882 load of the other piece with TREE_NO_WARNING.
883 * tree-flow.h (warn_uninit): Adjust prototype.
884 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
885 the base variable and the expression that is used separately.
886 Properly query all TREE_NO_WARNING flags.
887 (struct walk_data): Remove.
888 (warn_uninitialized_var): Likewise.
889 (warn_uninitialized_vars): Do not walk gimple pieces but simply
890 look at all SSA uses of the statement. Handle unused memory
891 separately.
892 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
893
78926be1
KI
8942011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
895
88b590c5 896 * config/rx/rx.md (movsicc): Allow register to register transfers.
78926be1
KI
897 (*movsicc): Likewise.
898 (*stcc): Restrict this pattern to EQ and NE compares.
899 (*stcc_reg): New pattern. Works for any comparison but only for
900 register transfers.
901
b9393656
DN
9022011-08-11 Diego Novillo <dnovillo@google.com>
903
904 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
905 Call stream_write_tree instead of output_record_start.
906 (lto_output_ts_binfo_tree_pointers): Likewise.
907
908 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
909 Convert it to a macro.
910 (stream_read_tree): Likewise.
911
912 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
913 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
914
915 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
916 and tree_read_bitfields.
917 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
918 (lto_write_tree): Call it.
919 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
920 * streamer-hooks.h (struct streamer_hooks): Remove fields
921 name, is_streamable and alloc_tree. Update all users.
922 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
923 (lto_materialize_tree): ... here.
924 Handle CALL_EXPR codes.
925 Remove call to lto_streamer_cache_append.
88b590c5 926 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
b9393656
DN
927 * tree-streamer.h (tree_read_bitfields): Declare.
928
929 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
930 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
931 * tree-streamer.h (stream_read_tree): New. Replace all calls
932 to lto_input_tree with it.
933 (stream_write_tree): New. Replace all calls to lto_output_tree,
934 lto_output_tree_ref and lto_output_tree_or_ref with it.
935 * lto-streamer-in.c (lto_read_tree): Inline code from
936 lto_streamer_read_tree.
937 (lto_input_tree): Move from tree-streamer-in.c.
938 * lto-streamer-out.c (lto_output_tree_ref): Make static.
939 Remove handling of NULL values for EXPR.
940 Do not handle EXPRs that are not indexable.
941 (lto_write_tree): Move from tree-streamer-out.c.
942 Inline lto_streamer_write_tree.
943 (lto_output_tree): Move from tree-streamer-out.c.
944 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
945 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
946 (lto_preload_common_nodes): Likewise.
947 Remove assertions and adjustments for nodes
948 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
949 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
88b590c5 950 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
b9393656
DN
951 * lto-streamer.h (lto_input_tree): Declare.
952 (lto_output_tree_ref): Remove.
953 * streamer-hooks.h (struct streamer_hooks): Remove fields
954 preload_common_nodes, indexable_with_decls_p,
955 pack_value_fields, unpack_value_fields and output_tree_header.
956 Update all users.
957 * tree-streamer-in.c (lto_materialize_tree): Make extern.
958 (lto_input_tree_pointers): Likewise.
959 (lto_read_tree): Move to lto-streamer-in.c.
960 (lto_input_integer_cst): Make extern.
961 (lto_get_pickled_tree): Likewise.
962 (lto_get_builtin_tree): Likewise.
963 (lto_input_tree): Move to lto-streamer-in.c.
964 * tree-streamer-out.c (pack_value_fields): Make extern.
965 (lto_output_tree_or_ref): Remove. Replace all callers with
966 calls to stream_write_tree.
967 (lto_output_builtin_tree): Make extern.
968 (lto_streamer_write_tree): Inline into lto_write_tree.
969 (lto_output_tree_pointers): Make extern.
970 (lto_output_tree_header): Likewise.
971 (lto_output_integer_cst): Likewise.
972 (lto_write_tree): Move to lto-streamer-out.c.
973 (lto_output_tree): Likewise.
88b590c5 974 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
b9393656
DN
975 (preload_common_nodes): Likewise.
976 (lto_streamer_cache_create): Call it.
977 * tree-streamer.h: Include streamer-hooks.h.
978 (stream_write_tree): New.
979 (stream_read_tree): New.
980 (lto_input_tree): Remove.
981 (lto_materialize_tree): Declare.
982 (lto_input_tree_pointers): Declare.
983 (lto_get_pickled_tree): Declare.
984 (lto_get_builtin_tree): Declare.
985 (lto_input_integer_cst): Declare.
986 (lto_output_tree_header): Declare.
987 (pack_value_fields): Declare.
988 (lto_output_tree_pointers): Declare.
989 (lto_output_integer_cst): Declare.
990 (lto_output_builtin_tree): Declare.
991
ca31ca94
SG
9922011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
993
994 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
995 only if producer writes to the register given by regno.
996
f0898307
SG
9972011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
998 Alexander Monakov <amonakov@ispras.ru>
999
1000 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
1001 (sched_get_condition_with_rev_uncached): ... this. Factor out
1002 condition caching logic into ...
1003 (sched_get_condition_with_rev): ... this. Reimplement. Do not
1004 attempt to use cache for instructions with zero luid.
1005 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
1006 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
1007
0d9439b0
SG
10082011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1009
1010 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
1011 get_seqno_for_a_jump. Update the caller.
1012 (get_seqno_by_succs): New. Use it ...
1013 (get_seqno_for_a_jump): ... here to find a seqno if looking at
1014 predecessors was not sufficient.
1015 (get_seqno_by_preds): Include head in iteration range, exclude insn.
1016
5c416724
DM
10172011-08-11 Dmitry Melnik <dm@ispras.ru>
1018
1019 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
1020
cf3d5824
SG
10212011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1022
1023 * sel-sched-ir.h (register_unavailable_p): Declare.
1024 * sel-sched-ir.c (register_unavailable_p): New. Use it...
1025 (set_unavailable_target_for_expr): ... here to properly test
1026 availability of a register.
1027 (speculate_expr): Ditto.
1028 * sel-sched.c (substitute_reg_in_expr): Ditto.
1029 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
1030
944499ed
SG
10312011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
1032
1033 * sel-sched.c (verify_target_availability): Fix usage of
1034 hard_regno_nregs.
1035
6bf2d156
DM
10362011-08-11 Dmitry Melnik <dm@ispras.ru>
1037
1038 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
1039 recognized by cannot_copy_insn_p hook and volatile instructions.
1040
bf3a40e9
DM
10412011-08-11 Dmitry Melnik <dm@ispras.ru>
1042
1043 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
1044
f9bf5a8e
RS
10452011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
1046
1047 * doc/md.texi (define_bypass): Say that the instruction names can
1048 be filename-style globs.
1049 * Makefile.in (FNMATCH_H): Define.
1050 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
1051 * genattrtab.c: Include fnmatch.h.
1052 (bypass_list): Change field name from "insn" to "pattern".
1053 (gen_bypass_1): Update accordingly.
1054 (process_bypasses): Use fnmatch to check for matches between
1055 insn reservations and define_bypasses.
1056 * genautomata.c: Include fnmatch.h.
1057 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
1058 and out_pattern respectively.
1059 (gen_bypass, insert_bypass): Update accordingly.
1060 (for_each_matching_insn, process_bypass_2, process_bypass_1)
1061 (process_bypass): New functions.
1062 (process_decls): Use process_bypass. Update after field name changes.
1063
7ece3881 10642011-08-11 Georg-Johann Lay <avr@gjlay.de>
78926be1 1065
7ece3881
GJL
1066 PR target/49687
1067 * config/avr/avr.md (smulqi3_highpart): New insn.
1068 (umulqi3_highpart): New insn.
1069 (*subqi3.ashiftrt7): New insn.
1070 (smulhi3_highpart): New expander.
1071 (umulhi3_highpart): Nex expander.
1072 (*smulhi3_highpart_call): New insn.
1073 (*umulhi3_highpart_call): New insn.
1074 (extend_u): New code attribute.
1075 (extend_prefix): Rename code attribute to extend_su.
1076 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
1077 widening QI/HI multiply.
1078
fb2c2b16
IR
10792011-08-11 Ira Rosen <ira.rosen@linaro.org>
1080
1081 PR tree-optimization/50039
1082 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
1083 that DEF_STMT has a stmt_vec_info.
1084
b126811e
RG
10852011-08-10 Richard Guenther <rguenther@suse.de>
1086
1087 * tree.h (can_trust_pointer_alignment): Remove.
1088 * builtins.c (can_trust_pointer_alignment): Remove.
1089
0e3a99ae
AS
10902011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1091
1092 * c-typeck.c (scalar_to_vector): New function. Try scalar to
1093 vector conversion.
1094 (stv_conv): New enum for scalar_to_vector return type.
1095 (build_binary_op): Adjust.
1096 * doc/extend.texi: Description of scalar to vector expansion.
1097
0eb77834
RG
10982011-08-10 Richard Guenther <rguenther@suse.de>
1099
1100 * tree.h (get_pointer_alignment): Remove max-align argument.
1101 (get_object_alignment): Likewise.
1102 * builtins.c (get_object_alignment_1): Adjust.
1103 (get_object_alignment): Remove max-align argument.
1104 (get_pointer_alignment): Likewise.
1105 (expand_builtin_strlen): Adjust.
1106 (expand_builtin_memcpy): Likewise.
1107 (expand_builtin_mempcpy_args): Likewise.
1108 (expand_builtin_strncpy): Likewise.
1109 (expand_builtin_memset_args): Likewise.
1110 (expand_builtin_memcmp): Likewise.
1111 (expand_builtin_strcmp): Likewise.
1112 (expand_builtin_strncmp): Likewise.
1113 (get_builtin_sync_mem): Likewise.
1114 (fold_builtin_memset): Likewise.
1115 (fold_builtin_memory_op): Likewise.
1116 (expand_builtin_memory_chk): Likewise.
1117 * emit-rtl.c (get_mem_align_offset): Likewise.
1118 (set_mem_attributes_minus_bitpos): Likewise.
1119 * expr.c (expand_assignment): Likewise.
1120 (expand_expr_real_1): Likewise.
1121 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
1122 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1123 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
1124 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1125 * value-prof.c (gimple_stringops_transform): Likewise.
1126
1c7836f0
PM
11272011-08-10 Paulo J. Matos <paulo.matos@csr.com>
1128
1129 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
1130 * doc/tm.texi: Regenerate.
1131
4ada410b 11322011-08-10 Georg-Johann Lay <avr@gjlay.de>
88b590c5 1133
4ada410b
GJL
1134 PR target/29560
1135 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
1136 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
1137 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
1138 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
1139 shift target is unused.
1140
d1f4e15f
RG
11412011-08-10 Richard Guenther <rguenther@suse.de>
1142
1143 PR tree-optimization/49937
1144 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
1145 using get_object_alignment_1.
1146
2813f1b1
UB
11472011-08-09 Uros Bizjak <ubizjak@gmail.com>
1148
1149 * config/i386/i386.c (ix86_emit_i387_round): New function.
1150 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
1151 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
1152 Use ix86_emit_i387_round to expand round function for i387 math.
1153 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
1154 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
1155
c6412d86
RO
11562011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1157
1158 * config/sync.c: Move to ../libgcc.
2813f1b1 1159 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
c6412d86
RO
1160 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
1161 Remove.
1162
6e9ee54c
AS
11632011-08-09 Anatoly Sokolov <aesok@post.ru>
1164
1165 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
1166 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
1167 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
1168 Change 'from' and 'to' arguments type to reg_class_t.
1169 (TARGET_REGISTER_MOVE_COST): Define.
1170
394b1520
VM
11712011-08-09 Vladimir Makarov <vmakarov@redhat.com>
1172
1173 PR target/50026
1174 Revert:
1175 PR rtl-optimization/49990
1176 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1177 ignore classes which can not change mode.
1178 (find_costs_and_classes): Ditto.
1179
4001900f
RG
11802011-08-09 Richard Guenther <rguenther@suse.de>
1181
1182 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
1183 information for ranges with only negative values.
1184 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
1185 BIT_AND_EXPR handling to handle ranges with negative values.
1186
6cf9eb27
KY
11872011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
1188
88b590c5
UB
1189 * config/i386/i386.c: Remove traling spaces.
1190 * config/i386/sse.md: Likewise.
1191 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
1192 (*fma_fmsub_<mode>): Likewise.
1193 (*fma_fnmadd_<mode>): Likewise.
1194 (*fma_fnmsub_<mode>): Likewise.
6cf9eb27 1195
d6257cf0
NC
11962011-08-09 Nick Clifton <nickc@redhat.com>
1197
1198 * config/rx/rx.md: Disable extender peepholes at -O3.
1199
3968b050
UB
12002011-08-09 Uros Bizjak <ubizjak@gmail.com>
1201
1202 PR target/49781
1203 * config/i386/i386.md (reload_noff_load): New.
1204 (reload_noff_store): Ditto.
1205 * config/i386/i386.c (ix86_secondary_reload): Use
1206 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
1207 double-word moves from/to non-offsetable addresses instead of
1208 generating XMM temporary.
1209
2292df60
AS
12102011-08-09 Anatoly Sokolov <aesok@post.ru>
1211
1212 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1213
1684ca6b
IR
12142011-08-09 Ira Rosen <ira.rosen@linaro.org>
1215
1216 PR tree-optimization/50014
1217 * tree-vect-loop.c (vectorizable_reduction): Get def type before
1218 calling vect_get_vec_def_for_stmt_copy ().
1219
40118062
VM
12202011-08-08 Vladimir Makarov <vmakarov@redhat.com>
1221
1222 PR rtl-optimization/49990
1223 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1224 ignore classes which can not change mode.
1225 (find_costs_and_classes): Ditto.
1226
8714c21f
RH
12272011-08-08 Richard Henderson <rth@redhat.com>
1228
1229 PR middle-end/49990
1230 * config/i386/i386.c (ix86_expand_prologue): Call
1231 for SEH target gen_prologue_use instead of gen_blockage
1232 at prologue's end.
1233
1ad663a8
MJ
12342011-08-08 Martin Jambor <mjambor@suse.cz>
1235
1236 PR middle-end/49923
1237 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1238 memory alignment.
1239
f0efc7aa
DN
12402011-08-08 Diego Novillo <dnovillo@google.com>
1241
1242 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
1243 (DATA_STREAMER_H): New.
1244 (GIMPLE_STREAMER_H): New.
1245 (TREE_STREAMER_H): New.
1246 (STREAMER_HOOKS_H): New.
1247 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
1248 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
1249 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
1250 (data-streamer.o): New.
1251 (data-streamer-in.o): New.
1252 (data-streamer-out.o): New.
1253 (gimple-streamer-in.o): New.
1254 (gimple-streamer-out.o): New.
1255 (streamer-hooks.o): New.
1256 (tree-streamer.o): New.
1257 (tree-streamer-in.o): New.
1258 (tree-streamer-out.o): New.
3968b050 1259 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
1260 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
1261 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1262 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
1263 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1264 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3968b050 1265 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
1266 (ipa-inline-analysis.o): Likewise.
1267 (ipa-pure-const.o): Likewise.
1268 * data-streamer-in.c: New.
1269 * data-streamer-out.c: New.
1270 * data-streamer.c: New.
1271 * data-streamer.h: New.
1272 * gimple-streamer-in.c: New.
1273 * gimple-streamer-out.c: New.
1274 * gimple-streamer.h: New.
1275 * ipa-inline-analysis.c: Include data-streamer.h.
1276 * ipa-prop.c: Include data-streamer.h.
1277 * ipa-pure-const.c: Include data-streamer.h.
1278 * lto-cgraph.c: Include data-streamer.h.
1279 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
1280 (lto_input_widest_uint_uleb128): Likewise.
1281 (lto_input_sleb128): Likewise.
1282 (bp_unpack_var_len_unsigned): Likewise.
1283 (bp_unpack_var_len_int): Likewise.
1284 * lto-section-out.c (lto_output_uleb128_stream): Move to
1285 data-streamer-out.c.
1286 (lto_output_widest_uint_uleb128_stream): Likewise.
1287 (lto_output_sleb128_stream): Likewise.
1288 (bp_pack_var_len_unsigned): Likewise.
1289 (bp_pack_var_len_int): Likewise.
3968b050 1290 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
f0efc7aa
DN
1291 (struct string_slot): Remove. Update all users.
1292 (lto_tag_check_set): Make extern.
1293 (lto_tag_check_range): Move to lto-streamer.h.
1294 (lto_tag_check): Likewise.
1295 (hash_string_slot_node): Remove. Update all users.
1296 (eq_string_slot_node): Remove. Update all users.
1297 (string_for_index): Move to data-streamer-in.c
1298 (input_string_internal): Likewise.
1299 (input_string_cst): Move to tree-streamer-in.c.
1300 (input_identifier): Likewise.
1301 (lto_input_string): Move to data-streamer-in.c
1302 (input_record_start): Move to data-streamer.h
1303 (canon_file_name): Use new definition of struct string_slot
3968b050 1304 from data-streamer.h. Set S_SLOT.LEN.
f0efc7aa
DN
1305 (lto_input_location): Make extern.
1306 (lto_input_chain): Move to tree-streamer-in.c.
1307 (lto_init_eh): Make extern.
1308 (input_phi): Move to gimple-streamer-in.c.
1309 (input_gimple_stmt): Likewise.
1310 (input_bb): Likewise.
1311 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
1312 (unpack_ts_real_cst_value_fields): Likewise.
1313 (unpack_ts_fixed_cst_value_fields): Likewise.
1314 (unpack_ts_decl_common_value_fields): Likewise.
1315 (unpack_ts_decl_wrtl_value_fields): Likewise.
1316 (unpack_ts_decl_with_vis_value_fields): Likewise.
1317 (unpack_ts_function_decl_value_fields): Likewise.
1318 (unpack_ts_type_common_value_fields): Likewise.
1319 (unpack_ts_block_value_fields): Likewise.
1320 (unpack_ts_translation_unit_decl_value_fields): Likewise.
1321 (unpack_value_fields): Likewise.
1322 (lto_materialize_tree): Likewise.
1323 (lto_input_ts_common_tree_pointers): Likewise.
1324 (lto_input_ts_vector_tree_pointers): Likewise.
1325 (lto_input_ts_complex_tree_pointers): Likewise.
1326 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
1327 (lto_input_ts_decl_common_tree_pointers): Likewise.
1328 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
1329 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
1330 (lto_input_ts_field_decl_tree_pointers): Likewise.
1331 (lto_input_ts_function_decl_tree_pointers): Likewise.
1332 (lto_input_ts_type_common_tree_pointers): Likewise.
1333 (lto_input_ts_type_non_common_tree_pointers): Likewise.
1334 (lto_input_ts_list_tree_pointers): Likewise.
1335 (lto_input_ts_vec_tree_pointers): Likewise.
1336 (lto_input_ts_exp_tree_pointers): Likewise.
1337 (lto_input_ts_block_tree_pointers): Likewise.
1338 (lto_input_ts_binfo_tree_pointers): Likewise.
1339 (lto_input_ts_constructor_tree_pointers): Likewise.
1340 (lto_input_ts_target_option): Likewise.
1341 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
1342 (lto_input_tree_pointers): Likewise.
1343 (lto_get_pickled_tree): Likewise.
1344 (lto_get_builtin_tree): Likewise.
1345 (lto_read_tree): Likewise.
1346 (lto_input_integer_cst): Likewise.
1347 (lto_input_tree): Likewise.
1348 * lto-streamer-out.c: Include data-streamer.h,
1349 gimple-streamer.h and streamer-hooks.h.
1350 (struct string_slot): Move to data-streamer.h.
1351 (hash_string_slot_node): Likewise.
1352 (eq_string_slot_node): Likewise.
1353 (lto_string_index): Move to data-streamer-out.c.
1354 (lto_output_string_with_length): Likewise.
1355 (lto_output_string): Likewise.
1356 (output_string_cst): Move to tree-streamer-out.c.
1357 (output_identifier): Likewise.
1358 (output_zero): Move to data-streamer-out.c
1359 (output_uleb128): Likewise.
1360 (output_sleb128): Likewise.
1361 (output_record_start): Move to data-streamer.h
1362 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
1363 (pack_ts_real_cst_value_fields): Likewise.
1364 (pack_ts_fixed_cst_value_fields): Likewise.
1365 (pack_ts_decl_common_value_fields): Likewise.
1366 (pack_ts_decl_wrtl_value_fields): Likewise.
1367 (pack_ts_decl_with_vis_value_fields): Likewise.
1368 (pack_ts_function_decl_value_fields): Likewise.
1369 (pack_ts_type_common_value_fields): Likewise.
1370 (pack_ts_block_value_fields): Likewise.
1371 (pack_ts_translation_unit_decl_value_fields): Likewise.
1372 (pack_value_fields): Likewise.
1373 (lto_output_chain): Likewise.
1374 (lto_output_ts_common_tree_pointers): Likewise.
1375 (lto_output_ts_vector_tree_pointers): Likewise.
1376 (lto_output_ts_complex_tree_pointers): Likewise.
1377 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
1378 (lto_output_ts_decl_common_tree_pointers): Likewise.
1379 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
1380 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
1381 (lto_output_ts_field_decl_tree_pointers): Likewise.
1382 (lto_output_ts_function_decl_tree_pointers): Likewise.
1383 (lto_output_ts_type_common_tree_pointers): Likewise.
1384 (lto_output_ts_type_non_common_tree_pointers): Likewise.
1385 (lto_output_ts_list_tree_pointers): Likewise.
1386 (lto_output_ts_vec_tree_pointers): Likewise.
1387 (lto_output_ts_exp_tree_pointers): Likewise.
1388 (lto_output_ts_block_tree_pointers): Likewise.
1389 (lto_output_ts_binfo_tree_pointers): Likewise.
1390 (lto_output_ts_constructor_tree_pointers): Likewise.
1391 (lto_output_ts_target_option): Likewise.
1392 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
1393 (lto_output_tree_pointers): Likewise.
1394 (lto_output_tree_header): Likewise.
1395 (lto_output_builtin_tree): Likewise.
1396 (lto_write_tree): Likewise.
1397 (lto_output_integer_cst): Likewise.
1398 (lto_output_tree): Likewise.
1399 (output_phi): Move to gimple-streamer-out.c.
1400 (output_gimple_stmt): Likewise.
1401 (output_bb): Likewise.
1402 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
1403 (streamer_hooks): Move to streamer-hooks.c.
1404 (check_handled_ts_structures): Move to tree-streamer.c
1405 (lto_streamer_cache_add_to_node_array): Likewise.
1406 (lto_streamer_cache_insert_1): Likewise.
1407 (lto_streamer_cache_insert): Likewise.
1408 (lto_streamer_cache_insert_at): Likewise.
1409 (lto_streamer_cache_append): Likewise.
1410 (lto_streamer_cache_lookup): Likewise.
1411 (lto_streamer_cache_get): Likewise.
1412 (lto_record_common_node): Likewise.
1413 (lto_preload_common_nodes): Likewise.
1414 (lto_streamer_cache_create): Likewise.
1415 (lto_streamer_cache_delete): Likewise.
1416 (streamer_hooks_init): Move to streamer-hooks.c.
1417 * lto-streamer.h: Include diagnostic.h
1418 (struct output_block, struct lto_input_block,
3968b050 1419 struct data_in, struct bitpack_d): Remove forward declarations.
f0efc7aa
DN
1420 (struct bitpack_d): Move to data-streamer.h.
1421 (struct lto_streamer_cache_d): Move to tree-streamer.h.
1422 (struct streamer_hooks): Move to streamer-hooks.h.
1423 (bp_pack_var_len_unsigned): Move to data-streamer.h.
1424 (bp_pack_var_len_int): Likewise.
1425 (bp_unpack_var_len_unsigned): Likewise.
1426 (bp_unpack_var_len_int): Likewise.
1427 (lto_input_location): Declare.
1428 (lto_tag_check_set): Declare.
1429 (lto_init_eh): Declare.
1430 (lto_output_tree_ref): Declare.
1431 (lto_output_location): Declare.
1432 (bitpack_create): Move to data-streamer.h.
1433 (bp_pack_value): Likewise.
1434 (lto_output_bitpack): Likewise.
1435 (lto_input_bitpack): Likewise.
1436 (bp_unpack_value): Likewise.
1437 (lto_output_1_stream): Likewise.
1438 (lto_input_1_unsigned): Likewise.
1439 (lto_output_int_in_range): Likewise.
1440 (lto_input_int_in_range): Likewise.
1441 (bp_pack_int_in_range): Likewise.
1442 (bp_unpack_int_in_range): Likewise.
1443 (lto_output_enum): Likewise.
1444 (lto_input_enum): Likewise.
1445 (bp_pack_enum): Likewise.
1446 (bp_unpack_enum): Likewise.
1447 * streamer-hooks.c: New.
1448 * streamer-hooks.h: New.
1449 * tree-streamer-in.c: New.
1450 * tree-streamer-out.c: New.
1451 * tree-streamer.c: New.
1452 * tree-streamer.h: New.
1453
ddaad3c8
RO
14542011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1455
1456 * gthr-posix95.h: Remove.
1457 * gthr.h [_PTHREADS95]: Remove.
1458 * configure.ac (enable_threads): Remove posix95.
1459 * configure: Regenerate.
3968b050 1460 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
ddaad3c8 1461
3968b050 14622011-08-08 Uros Bizjak <ubizjak@gmail.com>
473b30ce
UB
1463
1464 PR target/49781
1465 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
1466 SImode addresses.
1467 (ix86_print_operand_address): Handle zero-extended addresses.
1468 (memory_address_length): Add length of addr32 prefix for
1469 zero-extended addresses.
1470 (ix86_secondary_reload): Handle moves to/from double-word general
1471 registers from/to zero-extended addresses.
1472 * config/i386/predicates.md (lea_address_operand): Reject
1473 zero-extended operands.
1474
cca2207a
L
14752011-08-08 H.J. Lu <hongjiu.lu@intel.com>
1476
1477 PR other/48007
473b30ce 1478 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
cca2207a
L
1479
1480 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
1481 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
1482
1483 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
1484 (_Unwind_Context_Reg_Val): Likewise.
1485 (_Unwind_Get_Unwind_Word): Likewise.
1486 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
1487 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
1488 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
1489 for EXTENDED_CONTEXT_BIT.
1490 (__frame_state_for): Likewise.
1491 (uw_init_context_1): Likewise.
1492 (_Unwind_GetGR): Updated.
1493 (_Unwind_SetGR): Likewise.
1494 (_Unwind_GetGRPtr): Likewise.
1495 (_Unwind_SetGRPtr): Likewise.
1496 (_Unwind_SetGRValue): Likewise.
1497 (_Unwind_GRByValue): Likewise.
1498 (uw_install_context_1): Likewise.
1499
1500 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
1501 ASSUME_EXTENDED_UNWIND_CONTEXT.
1502 * doc/tm.texi: Regenerated.
1503
b6ee5bef
RO
15042011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1505
1506 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
1507
46135ba7
RO
15082011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1509
1510 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
1511 Linux/GNU-specific.
1512 (DEC Alpha Options, -mtune): Likewise.
1513 (MIPS Options, -march): native is supported on IRIX.
1514
e3b3fa45
RO
15152011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1516
1517 * config/sparc/driver-sparc.c: New file.
1518 * config/sparc/x-sparc: New file.
473b30ce
UB
1519 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
1520 * config/sparc/sparc.opt (native): New value for enum processor_type.
e3b3fa45
RO
1521 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
1522 * config/sparc/sparc.c (sparc_option_override): Abort if
1523 PROCESSOR_NATIVE gets here.
1524 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
1525 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
1526 DRIVER_SELF_SPECS): Define.
1527 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
1528 (SPARC Options, -mtune): Likewise.
1529 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
1530 Substitute result.
1531 * configure: Regenerate.
1532 * Makefile.in (EXTRA_GCC_LIBS): Set.
1533 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
1534 (cpp$(exeext)): Likewise.
1535
ce6bfa50
RG
15362011-08-08 Richard Guenther <rguenther@suse.de>
1537
1538 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
1539 split out from ...
1540 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
1541 by composition.
1542
daae4650
MP
15432011-08-08 Mikael Pettersson <mikpe@it.uu.se>
1544
1545 PR tree-optimization/50005
1546 * ipa-inline-analysis (remap_predicate): Add cast to
1547 silence signed/unsigned comparison warning.
1548
3e762578
RS
15492011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
1550
1551 * modulo-sched.c (get_sched_window): Use a table for the debug output.
1552 Print the current ii.
1553 (sms_schedule_by_order): Reduce whitespace in dump line.
1554
fe43febc
RS
15552011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
1556
1557 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
1558 and one loop for successors. Fix upper bound of memory range.
1559
1e46eb2a
UB
15602011-08-06 Uros Bizjak <ubizjak@gmail.com>
1561
1562 PR target/50001
1563 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
1564 (TARGET_INSTANTIATE_DECLS): New define.
1565
cc3801b0 15662011-08-06 Paolo Bonzini <bonzini@gnu.org>
473b30ce 1567 Mikael Morin <mikael.morin@sfr.fr>
cc3801b0
PB
1568
1569 * Makefile.in (INCLUDES_FOR_TARGET): New.
1570 (LIBGCC2_CFLAGS): Use it.
1e46eb2a 1571 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
cc3801b0 1572
f68c9aa8
UB
15732011-08-06 Uros Bizjak <ubizjak@gmail.com>
1574
1575 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
1576 frame->save_regs_using_mov calculation.
1577
cd7c6bc5
UB
15782011-08-06 Uros Bizjak <ubizjak@gmail.com>
1579
1580 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
1581 * config/i386/sse.md (castmode): New mode attribute.
1582 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
1583 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
1584
9911e25a
JH
15852011-08-05 Jan Hubicka <jh@suse.cz>
1586
1587 PR middle-end/49494
1588 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
1589
75d3e6e3
JH
15902011-08-05 Jan Hubicka <jh@suse.cz>
1591
1592 PR middle-end/49500
1593 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
1594 handle aliases.
1595 (create_emultls_var):New function.
1596 (ipa_lower_emutls): Handle aliases correctly.
1597
f791d333
JH
15982011-08-05 Jan Hubicka <jh@suse.cz>
1599
1600 PR middle-end/49735
1601 * ipa-inline.c (recursive_inlining): Look through aliases.
1602
f93b21e2
JM
16032011-08-05 Jason Merrill <jason@redhat.com>
1604
1605 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
1606 declarations to beginning of function.
1607
2c331232
BS
16082011-08-05 Bernd Schmidt <bernds@codesourcery.com>
1609
1610 PR rtl-optimization/49900
1611 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
1612 ensure basic blocks stay in the same order.
1613
44e95206
AH
16142011-08-05 Aldy Hernandez <aldyh@redhat.com>
1615
1616 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
1617 store_bit_field.
1618 (s390_expand_atomic): Same.
1619
6fe818aa
RH
16202011-08-05 Richard Henderson <rth@redhat.com>
1621
1622 PR rtl-opt/49977
1623 * dwarf2cfi.c (scan_insn_after): Split out of ...
1624 (scan_trace): ... here. Correctly place notes wrt sequences.
1625
7ac17442
KK
16262011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
1627 Richard Henderson <rth@redhat.com>
1628
1629 PR rtl-opt/49982
1630 * expr.c (fixup_args_size_notes): Look through no-op moves.
1631
24911a50
UB
16322011-08-05 Uros Bizjak <ubizjak@gmail.com>
1633
1634 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
1635 of "m" for operand 0. Add type and mode attribute.
1636 (*pushxf_nointeger"): Use "<" constraint for operand 0.
1637 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
1638 constraint instead of "o" for opreand 1.
1639 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
42443bdb
UB
1640 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
1641 operand 0, alternative 4.
1642 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
24911a50
UB
1643
16442011-08-05 Uros Bizjak <ubizjak@gmail.com>
1645
1646 * config/i386/predicates.md (lea_address_operand): Rename from
1647 no_seg_address_operand.
1648 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
1649 (*lea_1_zext): Ditto.
1650 (*lea_2): Ditto.
1651 (*lea_2_zext): Ditto.
1652
16532011-08-05 Uros Bizjak <ubizjak@gmail.com>
1654
1655 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
1656 parts.base and parts.index.
1657 * config/i386/predicates.md (aligned_operand): Ditto.
1658 (cmpxchg8b_pic_memory_operand): Ditto.
1659
aca0b0b3
RO
16602011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1661
1662 * config/soft-fp: Move to ../libgcc.
1663 * Makefile.in (SFP_MACHINE): Remove.
1664 (libgcc-support): Remove $(SFP_MACHINE) dependency.
1665 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
1666 * config/arm/t-arm-softfp: Move to
1667 ../libgcc/config/arm/t-softfp.
1668 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
1669 * config/c6x/t-c6x-softfp: Remove.
1670 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
1671 * config/i386/t-fprules-softfp: Move to
1672 ../libgcc/config/t-softfp-tf.
1673 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
1674 * config/ia64/t-fprules-softfp: Remove.
1675 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
1676 * config/lm32/t-fprules-softfp: Remove.
1677 * config/moxie/sfp-machine.h: Remove.
1678 * config/moxie/t-moxie-softfp: Remove.
1679 * config/rs6000/darwin-ldouble-format: Move to
1680 ../libgcc/config/rs6000/ibm-ldouble-format.
1681 * config/rs6000/darwin-ldouble.c: Move to
1682 ../libgcc/config/rs6000/ibm-ldouble.c
1683 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
1684 * config/rs6000/libgcc-ppc64.ver: Likewise.
1685 * config/rs6000/sfp-machine.h: Likewise.
1686 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
1687 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
1688 (LIB2FUNCS_EXTRA): Remove.
1689 (TARGET_LIBGCC2_CFLAGS): Remove.
1690 * config/rs6000/t-aix52: Likewise
1691 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1692 $(srcdir)/config/rs6000/darwin-ldouble.c.
1693 (SHLIB_MAPFILES): Remove.
1694 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
1695 $(srcdir)/config/rs6000/darwin-ldouble.c.
1696 * config/rs6000/t-fprules-softfp: Move to
1697 ../libgcc/config/t-softfp-sfdf.
1698 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
1699 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
1700 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
1701 $(srcdir)/config/rs6000/darwin-ldouble.c.
1702 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
1703 * config/score/t-score-softfp: Remove.
1704 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
1705 soft-fp/t-softfp from tmake_file.
1706 (arm*-*-uclinux*): Likewise.
1707 (arm*-*-ecos-elf): Likewise.
1708 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
1709 (arm*-*-rtems*): Likewise.
1710 (arm*-*-elf): Likewise.
1711 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
1712 tmake_file.
1713 (moxie-*-uclinux*): Likewise.
1714 (moxie-*-rtems*): Likewise.
1715 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
1716 tmake_file.
1717 (lm32-*-rtems*): Likewise.
1718 (lm32-*-uclinux*): Likewise.
1719 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
1720 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1721 (powerpc-*-linux*, powerpc64-*-linux*): Remove
1722 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1723 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
1724 tmake_file.
1725 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
1726 tmake_file.
1727 (tic6x-*-uclinux): Likewise.
1728 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
1729 soft-fp/t-softfp from tmake_file.
1730 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
1731 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
1732 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
24911a50 1733 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
aca0b0b3
RO
1734 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
1735
569dc494
RO
17362011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1737
1738 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
24911a50 1739 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
569dc494
RO
1740 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
1741 TPBIT, TPBIT_FUNCS.
1742 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
1743 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
1744 Remove.
1745 * config/arm/t-vxworks: Likewise.
1746 * config/arm/t-wince-pe: Likewise.
1747 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
1748 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1749 * config/bfin/t-bfin-elf: Likewise.
1750 * config/bfin/t-bfin-linux: Likewise.
1751 * config/bfin/t-bfin-uclinux: Likewise.
1752 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
1753 Remove.
1754 * config/fr30/t-fr30: Likewise.
1755 * config/frv/t-frv: Likewise.
1756 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
1757 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1758 * config/m32c/t-m32c: Likewise.
1759 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
1760 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1761 * config/mcore/t-mcore: Likewise.
1762 * config/mep/t-mep: Likewise.
1763 * config/microblaze/t-microblaze: Likewise.
1764 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
1765 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1766 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
1767 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1768 * config/mn10300/t-linux: Remove.
1769 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1770 * config/pdp11/t-pdp11: Likewise.
1771 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
1772 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
1773 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1774 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
1775 * config/rs6000/t-aix52: Likewise.
1776 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1777 $(srcdir)/config/rs6000/ppc64-fp.c.
1778 * config/rs6000/t-fprules-fpbit: Remove.
1779 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
1780 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1781 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
1782 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1783 * config/sparc/t-elf: Likewise.
1784 * config/sparc/t-leon: Likewise.
1785 * config/sparc/t-leon3: Likewise.
1786 * config/spu/t-spu-elf: Likewise.
1787 (DPBIT_FUNCS): Remove.
1788 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1789 * config/v850/t-v850: Likewise.
1790 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
1791 (avr-*-*): Likewise.
1792 (h8300-*-rtems*): Set libgcc_tm_file.
1793 (h8300-*-elf*): Likewise.
1794 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
1795 tmake_file.
1796 (powerpc-*-eabisim*): Likewise.
1797 (powerpc-*-elf*): Likewise.
1798 (powerpc-*-eabialtivec*): Likewise.
1799 (powerpc-xilinx-eabi*): Likewise.
1800 (powerpc-*-eabi*): Likewise.
1801 (powerpc-*-rtems*): Likewise.
1802 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
1803 (powerpcle-*-elf*): Likewise.
1804 (powerpcle-*-eabisim*): Likewise.
1805 (powerpcle-*-eabi*): Likewise.
1806 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
1807 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
1808 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
1809 Remove.
1810
201cdb74
RO
18112011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1812
1813 * Makefile.in (UNWIND_H): Remove.
1814 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
1815 ../libgcc/Makefile.in.
1816 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
1817 (LIBUNWINDDEP): Remove.
1818 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
1819 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
1820 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
1821 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
1822 Don't copy $(UNWIND_H).
24911a50 1823 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
201cdb74
RO
1824 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
1825 * aclocal.m4: Regenerate.
1826 * configure: Regenerate.
1827 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
1828 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
1829 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
1830 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
1831 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
1832 * config/arm/libunwind.S, config/arm/pr-support.c,
1833 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
1834 ../libgcc/config/arm.
1835 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
1836 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
1837 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
1838 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
1839 ($(T)frvend$(objext)): Likewise.
1840 * config/ia64/t-glibc (LIB2ADDEH): Remove.
1841 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
1842 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
1843 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
1844 ../libgcc/config/ia64.
1845 * config/ia64/t-hpux (LIB2ADDEH): Remove.
1846 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
1847 * config/ia64/t-vms (LIB2ADDEH): Remove.
1848 * config/ia64/vms.h (UNW_IVMS_MODE,
1849 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
1850 * config/picochip/t-picochip (LIB2ADDEH): Remove.
1851 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
1852 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
1853 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
1854 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
1855 $(srcdir)/../libgcc to refer to unwinder sources.
1856 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
1857 * config/t-darwin (LIB2ADDEH): Remove.
1858 * config/t-freebsd (LIB2ADDEH): Remove.
1859 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
1860 * config/t-libunwind-elf: Move to ../libgcc/config.
1861 * config/t-linux (LIB2ADDEH): Remove.
1862 * config/t-sol2 (LIB2ADDEH): Remove.
1863 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
1864 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
1865
cee0d6d2
L
18662011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1867
1868 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1869
1870 * doc/invoke.texi: Document core-avx-i.
1871
96c891b3
RO
18722011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1873
1874 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
1875
2aacf3c3
IR
18762011-08-05 Ira Rosen <ira.rosen@linaro.org>
1877
1878 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
1879 result of multiple results reduction when extracting the final
1880 value using scalar code.
1881
0f36b2da
RG
18822011-08-05 Richard Guenther <rguenther@suse.de>
1883
1884 PR tree-optimization/49984
1885 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
1886
8b201bc5
RG
18872011-08-05 Richard Guenther <rguenther@suse.de>
1888
1889 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
1890 return true for constant integer ranges.
1891 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
1892 BIT_IOR_EXPR handling.
1893
c1ea7f07
KT
18942011-08-04 Kai Tietz <ktietz@redhat.com>
1895
1896 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
1897 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
1898
1107f3ae
IR
18992011-08-04 Ira Rosen <ira.rosen@linaro.org>
1900
1901 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
1902 pattern def statement, and its access macro.
1903 (NUM_PATTERNS): Set to 5.
1904 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1905 pattern def statement.
1906 (vect_transform_loop): Likewise.
1907 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
1908 function vect_recog_over_widening_pattern ().
1909 (vect_operation_fits_smaller_type): New function.
1910 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
1911 Likewise.
1912 (vect_pattern_recog_1): Move the code that marks pattern
1913 statements to vect_mark_pattern_stmts (), and call it. Update
1914 documentation.
1915 * tree-vect-stmts.c (vect_supportable_shift): New function.
1916 (vect_analyze_stmt): Handle pattern def statement.
1917 (new_stmt_vec_info): Initialize pattern def statement.
1918
6394830f
RH
19192011-08-04 Richard Henderson <rth@redhat.com>
1920
1921 PR target/49964
1922 * config/i386/i386.c (ix86_expand_call): Don't create nested
1923 PARALLELs for TARGET_VZEROUPPER.
1924 (ix86_split_call_vzeroupper): Fix extraction of the original call.
1925 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
1926 recognize nested PARALLELs.
1927 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
1928 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
1929 *sibcall_value_pop_vzeroupper): Likewise.
1930
faf7a23d
RH
19312011-08-04 Richard Henderson <rth@redhat.com>
1932
1933 PR middle-end/49968
1934 * calls.c (expand_call): Use fixup_args_size_notes for
1935 emit_stack_restore.
1936 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
1937 in non-standard modes.
1938
84f405a1
JJ
19392011-08-04 Jakub Jelinek <jakub@redhat.com>
1940
1941 * gcc.c (self_spec): New variable.
1942 (static_specs): Add self_spec.
1943 (main): Call do_self_spec on "self_spec" specs after reading
1944 user specs files. Move compare_debug handling right after that.
1945
4d320da4
RG
19462011-08-04 Richard Guenther <rguenther@suse.de>
1947
1948 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
1949 (value_range_nonnegative_p): New function.
1950 (ssa_name_nonnegative_p): Use it.
1951 (value_range_constant_singleton): New function.
1952 (op_with_constant_singleton_value_range): Use it.
1953 (extract_range_from_binary_expr_1): New function, split out from ...
1954 (extract_range_from_binary_expr): ... this. Remove fallback
1955 constant folding done here.
1956
7e29ba60
RG
19572011-08-04 Richard Guenther <rguenther@suse.de>
1958
1959 PR tree-optimization/49806
1960 * tree-vrp.c (op_with_boolean_value_range_p): New function.
1961 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
1962 a new statement for a final conversion to bool.
1963
f142b5bc
RG
19642011-08-04 Romain Geissler <romain.geissler@gmail.com>
1965
1966 * gengtype-state.c: Include "bconfig.h" if
1967 GENERATOR_FILE is defined, "config.h" otherwise.
1968 * gengtype.c: Likewise.
1969 * gengtype-lex.l: Likewise.
1970 * gengtype-parse.c: Likewise.
1971 * Makefile.in (gengtype-lex.o-warn): New variable.
1972 (plugin_resourcesdir): Likewise.
1973 (plugin_bindir): Likewise.
1974 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
1975 (MOSTLYCLEANFILES): Add gengtype$(exeext).
1976 (native): Depend on gengtype$(exeext) is $enable_plugin
1977 is set to "yes".
1978 (gtype.state): Depend on s-gtype. Use temporary file.
1979 (gengtype-lex.o): New rule.
1980 (gengtype-parse.o): Likewise.
1981 (gengtype-state.o): Likewise.
1982 (gengtype$(exeext)): Likewise.
1983 (install-gengtype): Likewise.
1984 (gengtype.o): Likewise.
1985 (build/gengtype.o): Depend on version.h.
1986 (build/gengtype-state): Depend on double-int.h, version.h,
1987 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
1988 (install-plugin): Depend on install-gengtype.
1989
8dd00781
JJ
19902011-08-04 Jakub Jelinek <jakub@redhat.com>
1991
1992 PR middle-end/49905
1993 * tree.h (init_attributes): New prototype.
1994 * attribs.c (init_attributes): No longer static.
1995
6eb9142a
RR
19962011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1997
1998 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
1999 maybe_suffix.
2000
63a73071
DL
20012011-08-03 David Li <davidxl@google.com>
2002
2003 * tree-optimize.c (execute_fixup_cfg): Fix up entry
2004 outgoing edge counts after inlining.
2005
90037898
DL
20062011-08-03 David Li <davidxl@google.com>
2007
2008 * profile.c (compute_branch_probabilities): Compute
2009 function frequency after profile annotation.
2010
ea6c2b0e
AM
20112011-08-04 Alan Modra <amodra@gmail.com>
2012
2013 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
2014 use_backchain_to_restore_sp initialisation.
2015 (rs6000_legitimate_offset_address_p): Simplify offset test.
2016
4b39813a
RH
20172011-08-03 Richard Henderson <rth@redhat.com>
2018
2019 * config/spu/spu.md: Use define_c_enum instead of define_constants.
2020 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
2021 (UNSPECV_NOP): New.
2022
a6365e99
RH
20232011-08-03 Richard Henderson <rth@redhat.com>
2024
2025 PR target/34888
2026 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
2027
cb3d2e33
JJ
20282011-08-03 Jakub Jelinek <jakub@redhat.com>
2029
2030 PR tree-optimization/49948
2031 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
2032
35bdbc69
AS
20332011-08-03 Anatoly Sokolov <aesok@post.ru>
2034
2035 * config/m32c/m32c.c (class_sizes): Remove.
2036 (reduce_class): Change arguments and return type to reg_class_t.
2037 Change type cc var to HARD_REG_SET. Change type best var to
2038 reg_class_t. Change type best_size var to unsigned int. Remove
2039 initialization class_sizes var. Use reg_class_size array instead
2040 of class_sizes. Use reg_class_contents array instead
2041 of class_contents.
2042
a130fb24
RG
20432011-08-03 Richard Guenther <rguenther@suse.de>
2044
2045 PR middle-end/49958
2046 * fold-const.c (fold_binary_loc): Only associate
2047 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
2048 overflow wraps.
2049
276e0224
AM
20502011-08-03 Alan Modra <amodra@gmail.com>
2051
2052 PR rtl-optimization/49941
2053 * jump.c (mark_jump_label): Comment.
2054 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
2055 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
2056 (mark_used_flags): Don't mark RETURN.
2057
eb723fa3
RG
20582011-08-03 Richard Guenther <rguenther@suse.de>
2059
2060 PR tree-optimization/49938
2061 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
2062 deal with a POLYNOMIAL_CHREC.
2063
edc429ff
RE
20642011-08-03 Revital Eres <revital.eres@linaro.org>
2065
2066 * modulo-sched.c (calculate_stage_count,
2067 calculate_must_precede_follow, get_sched_window,
2068 try_scheduling_node_in_cycle, remove_node_from_ps): Add
2069 declaration.
2070 (update_node_sched_params, set_must_precede_follow, optimize_sc):
2071 New functions.
2072 (reset_sched_times): Call update_node_sched_params.
2073 (sms_schedule): Call optimize_sc.
2074 (get_sched_window): Change function arguments.
2075 (sms_schedule_by_order): Update call to get_sched_window.
2076 Call set_must_precede_follow.
2077 (calculate_stage_count): Add function argument.
2078
9a08d230
RH
20792011-08-02 Richard Henderson <rth@redhat.com>
2080
2081 PR target/49864
a3fef928 2082 PR target/49879
9a08d230
RH
2083 * reg-notes.def (REG_ARGS_SIZE): New.
2084 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
2085 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
2086 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
2087 different stack levels.
2088 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
2089 (maybe_move_args_size_note): New.
2090 (combine_stack_adjustments_for_block): Use it.
2091 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
2092 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
2093 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
2094 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
2095 (cur_cfa): New.
2096 (queued_args_size): Remove.
2097 (add_cfi_args_size): Assert size is non-negative.
2098 (stack_adjust_offset, dwarf2out_args_size): Remove.
2099 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
2100 (notice_args_size, notice_eh_throw): New.
2101 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
2102 (dwarf2out_frame_debug_adjust_cfa): Likewise.
2103 (dwarf2out_frame_debug_cfa_offset): Likewise.
2104 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
2105 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
2106 (change_cfi_row): Don't emit args_size.
2107 (maybe_record_trace_start_abnormal): Split out from ...
2108 (maybe_record_trace_start): Here. Set args_size_undefined.
2109 (create_trace_edges): Update to match.
2110 (scan_trace): Handle REG_ARGS_SIZE.
2111 (connect_traces): Connect args_size between EH insns.
2112 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
2113 * explow.c (suppress_reg_args_size): New.
2114 (adjust_stack_1): Split out from ...
2115 (adjust_stack): ... here.
2116 (anti_adjust_stack): Use it.
2117 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
2118 * expr.c (mem_autoinc_base): New.
2119 (fixup_args_size_notes): New.
2120 (emit_single_push_insn_1): Rename from emit_single_push_insn.
2121 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
2122 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
2123 * reload1.c (reload_as_needed): Likewise.
2124 * rtl.h (fixup_args_size_notes): Declare.
2125
9f813990
PC
21262011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
2127
2128 PR bootstrap/49914
2129 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
2130 of abs.
2131 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2132 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2133
8f1594b2
RH
21342011-08-02 Richard Henderson <rth@redhat.com>
2135
2136 * config/h8300/h8300.c (push, pop): Return the insn.
2137 (h8300_swap_into_er6): Generate correct unwind info.
2138 (h8300_swap_out_of_er6): Likewise.
cde7b553
RH
2139 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
2140 complex cfa expression.
2141 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8f1594b2 2142
3ed2c643
L
21432011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2144
2145 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2146
f9b4f8c1
RH
21472011-08-02 Richard Henderson <rth@redhat.com>
2148
2149 PR target/49878
2150 * config/h8300/h8300.c (h8300_move_ok): New.
2151 * config/h8300/h8300-protos.h: Declare it.
2152 * config/h8300/h8300.md (P): New mode iterator.
2153 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
2154 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
2155 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
2156 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
2157 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
2158 and pushqi1_h8300hs_normal; use PRE_MODIFY and
2159 register_no_sp_elim_operand.
2160 (*pushhi1_h8300hs_<P>): Similarly.
2161 (pushqi1, pushhi1, pushhi1_h8300): Remove.
2162 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
2163
b7cef595
RH
21642011-08-02 Richard Henderson <rth@redhat.com>
2165
2166 PR target/49881
2167 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
2168
20906c66
JJ
21692011-08-02 Jakub Jelinek <jakub@redhat.com>
2170
2171 * c-parser.c (enum c_parser_prec): New enum, moved from within
2172 c_parser_binary_expression.
2173 (c_parser_binary_expression): Add PREC argument. Stop parsing
2174 if operator has lower or equal precedence than PREC.
2175 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
2176 callers.
2177 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
2178 Adjust c_finish_omp_atomic caller.
2179 (c_parser_omp_taskyield): New function.
2180 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
2181 (c_parser_omp_clause_name): Handle final and mergeable clauses.
2182 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
2183 functions.
2184 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
2185 and PRAGMA_OMP_CLAUSE_MERGEABLE.
2186 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
2187 (c_parser_omp_clause_reduction): Handle min and max.
2188 * c-typeck.c (c_finish_omp_clauses): Don't complain about
2189 const qualified predetermined vars in firstprivate clause.
2190 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2191 Handle MIN_EXPR and MAX_EXPR.
2192 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
2193 and OMP_CLAUSE_MERGEABLE.
2194 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
2195 and OMP_ATOMIC_CAPTURE_NEW.
2196 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
2197 OMP_CLAUSE_MERGEABLE.
2198 (omp_clause_code_name): Likewise.
2199 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2200 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
2201 and OMP_CLAUSE_MERGEABLE.
2202 (OMP_CLAUSE_FINAL_EXPR): Define.
2203 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
2204 OMP_CLAUSE_MERGEABLE.
2205 (expand_task_call): Likewise.
2206 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
2207 (expand_omp_atomic_fetch_op): Handle cases where old or new
2208 value is needed afterwards.
2209 (expand_omp_atomic): Call expand_omp_atomic_load resp.
2210 expand_omp_atomic_store.
2211 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
2212 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
2213 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2214 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2215 * tree-nested.c (convert_nonlocal_omp_clauses,
2216 convert_local_omp_clauses): Likewise.
2217 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
2218 OMP_ATOMIC_CAPTURE_NEW): New.
2219 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
2220 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
2221 New inlines.
2222 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
2223 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
2224 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2225
9b80d091
KT
22262011-08-02 Kai Tietz <ktietz@redhat.com>
2227
2228 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
2229 boolean-type.
2230 (ssa_forward_propagate_and_combine): Interprete result of
2231 forward_propagate_comparison.
2232 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
2233 boolean-typed operands for comparisons.
2234
7ea56b23 22352011-08-02 Georg-Johann Lay <avr@gjlay.de>
276e0224 2236
7ea56b23
GJL
2237 * config/avr/libgcc.S: Gather related function in the
2238 same input section.
276e0224 2239 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7ea56b23
GJL
2240 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
2241 references.
2242 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
2243 __udivmodsi4, __divmodsi4, __prologue_saves__,
2244 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
2245 __do_copy_data, __do_clear_bss, __do_global_ctors,
2246 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
2247
643e867f
UB
22482011-08-02 Uros Bizjak <ubizjak@gmail.com>
2249
2250 PR target/47766
2251 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
2252 (stack_protect_test): The pattern compares ptr_mode value.
2253
390fa588
AM
22542011-08-02 Alan Modra <amodra@gmail.com>
2255
2256 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
2257 note for save_LR_around_toc_setup sequence.
2258
d4be16f6
L
22592011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2260
643e867f 2261 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
d4be16f6 2262
3c67fd9c
SP
22632011-08-01 Sebastian Pop <sebastian.pop@amd.com>
2264 Joseph Myers <joseph@codesourcery.com>
2265
2266 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
2267 * hwint.c: Include diagnostic-core.h.
2268 (abs_hwi): New.
2269 (gcd): Moved here...
2270 (pos_mul_hwi): New.
2271 (mul_hwi): New.
2272 (least_common_multiple): Moved here...
2273 * hwint.h (gcd): ... from here.
2274 (least_common_multiple): ... from here.
2275 (HOST_WIDE_INT_MIN): New.
2276 (HOST_WIDE_INT_MAX): New.
2277 (abs_hwi): Declared.
2278 (gcd): Declared.
2279 (pos_mul_hwi): Declared.
2280 (mul_hwi): Declared.
2281 (least_common_multiple): Declared.
2282 * omega.c (check_pos_mul): Removed.
2283 (check_mul): Removed.
2284 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
2285 mul_hwi instead of check_mul.
2286
172c08a5
RH
22872011-08-01 Richard Henderson <rth@redhat.com>
2288
2289 PR target/49881
2290 * config/avr/avr.h (PUSH_ROUNDING): New.
2291 * config/avr/avr.md (pushqi1): Rename from *pushqi.
2292 (*pushhi, *pushsi, *pushsf): Remove.
2293 (MPUSH): New mode iterator.
2294 (push<MPUSH>1): New expander.
2295
0d5e496f
AS
22962011-08-01 Anatoly Sokolov <aesok@post.ru>
2297
2298 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
2299 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2300 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
2301 mmix_preferred_output_reload_class): Remove.
2302 * config/mmix/mmix.c (mmix_preferred_reload_class,
2303 mmix_preferred_output_reload_class): Make static. Change rclass
2304 argument and return type to reg_class_t.
2305 (TARGET_PREFERRED_RELOAD_CLASS,
2306 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2307
a44250f4
JR
23082011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
2309
2310 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
2311 handling.
2312
efd7630c
L
23132011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2314
2315 PR target/47766
2316 * config/i386/i386.md (PTR): New.
2317 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
2318 (stack_protect_test): Likewise.
2319 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
2320 (stack_tls_protect_set_<mode>): Likewise.
2321 (stack_tls_protect_test_<mode>): Likewise.
2322
03acddfe
UB
23232011-08-01 Uros Bizjak <ubizjak@gmail.com>
2324
2325 PR target/49927
2326 * config/i386/i386.c (ix86_address_subreg_operand): New.
2327 (ix86_decompose_address): Use ix86_address_subreg_operand.
2328 (ix86_legitimate_address_p): Do not assert that subregs satisfy
2329 register_no_elim_operand in DImode.
2330
67f2d54f
IR
23312011-08-01 Ira Rosen <ira.rosen@linaro.org>
2332
2333 PR tree-optimization/49926
2334 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
2335 in a chain doesn't have uses both inside and outside the loop.
2336
f2c308fa 23372011-08-01 Georg-Johann Lay <avr@gjlay.de>
03acddfe 2338
f2c308fa
GJL
2339 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
2340 * config/avr/avr-devices.c (avr_mcu_types): Use it.
2341 * config/avr/avr-mcus.def (AVR_MCU): Use it.
2342 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
2343 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
2344 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
2345 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
2346 to detect if XJMP must not be skipped.
2347
bd15e32c
AM
23482011-08-02 Alan Modra <amodra@gmail.com>
2349
03acddfe
UB
2350 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
2351 Delete.
bd15e32c
AM
2352 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
2353 (rs6000_emit_prologue): Don't prematurely return when
2354 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
2355 save_toc_in_prologue case.
2356 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
2357 calls_alloca.
2358
d80de9e1 23592011-08-01 Georg-Johann Lay <avr@gjlay.de>
bd15e32c 2360
d80de9e1
GJL
2361 * config/avr/avr-devices.c: Delete SVN property svn:executable.
2362 * config/avr/predicates.md: Ditto.
2363 * config/avr/driver-avr.c: Ditto.
2364 * config/avr/genopt.sh: Set SVN property svn:executable to *.
2365
ee222ce0
L
23662011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2367
2368 * calls.c (emit_library_call_value_1): Declare size only if
2369 BLOCK_REG_PADDING is defined.
2370
5fcafa60
KY
23712011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
2372
2373 PR target/49547
03acddfe 2374 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
5fcafa60
KY
2375 (x86_64-*-*): Likewise.
2376 * config/i386/i386.opt (mlzcnt): New.
2377 * config/i386/abmintrin.h: File removed.
2378 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
03acddfe 2379 * config/i386/lzcntintrin.h: ... here. New file.
5fcafa60
KY
2380 (__lzcnt): Rename to ...
2381 (__lzcnt32): ... this.
2382 * config/i386/bmiintrin.h (head): Update copyright year.
2383 (__lzcnt_u16): Removed.
2384 (__lzcnt_u32): Likewise.
2385 (__lzcnt_u64): Likewise.
2386 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
2387 is defined, remove abmintrin.h.
2388 * config/i386/cpuid.h (bit_LZCNT): New.
2389 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2390 LZCNT feature.
2391 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2392 __LZCNT__ if needed.
2393 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
2394 (ix86_option_override_internal): Handle LZCNT option.
2395 (ix86_valid_target_attribute_inner_p): Likewise.
2396 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
2397 * config/i386/i386.h (TARGET_LZCNT): New.
2398 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
2399 * config/i386/i386.md (clz<mode>2): Update insn constraint.
2400 (clz<mode>2_lzcnt): Likewise.
2401 * doc/invoke.texi: Mention -mlzcnt option.
2402 * doc/extend.texi: Likewise.
2403
655b30bf
JB
24042011-08-01 Julian Brown <julian@codesourcery.com>
2405
2406 * configure.ac (fixed-point): Add ARM support.
2407 * configure: Regenerate.
2408 * config/arm/arm.c (arm_fixed_mode_set): New struct.
2409 (arm_set_fixed_optab_libfunc): New.
2410 (arm_set_fixed_conv_libfunc): New.
2411 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
2412 ARM-specific names.
2413 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
2414 return values in SImode.
2415 (arm_return_in_msb): Return fixed-point types in the msb.
2416 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
2417 upwards.
2418 (arm_scalar_mode_supported_p): Support fixed-point modes.
2419 (arm_vector_mode_supported_p): Support vector fixed-point modes.
2420 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
2421 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
2422 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
2423 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
2424 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
2425 New mode iterators.
2426 (qaddsub_suf): New mode attribute.
2427 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
2428 vector modes.
2429 * config/arm/predicates.md (sat_shift_operator): New predicate.
2430 * config/arm/arm-fixed.md: New.
2431 * config/arm/arm.md: Include arm-fixed.md.
2432 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
2433
460b171d
JB
24342011-08-01 Julian Brown <julian@codesourcery.com>
2435
2436 * calls.c (emit_library_call_value_1): Support padding for libcall
2437 arguments and return values.
2438 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
2439 downwards in big-endian mode.
2440
b6193c94
RO
24412011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2442
2443 PR debug/49887
2444 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
2445 * config/sol2-protos.h: Likewise.
2446 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
2447 solaris_code_end.
2448 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
2449 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
2450 solaris_file_end.
2451 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
2452
0747aae4
JB
24532011-08-01 Julian Brown <julian@codesourcery.com>
2454
2455 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
2456
848fac28
JB
24572011-08-01 Julian Brown <julian@codesourcery.com>
2458
2459 * final.c (output_addr_const): Print fixed-point constants as
2460 decimal not hex.
2461
e62a2b6e
RG
24622011-08-01 Richard Guenther <rguenther@suse.de>
2463
2464 * stor-layout.c (initialize_sizetypes): Properly sign-extend
2465 bitsiztype TYPE_MAX_VALUE.
2466
f64398b5
JB
24672011-08-01 Julian Brown <julian@codesourcery.com>
2468
2469 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
2470 comparison helpers.
2471
c469244e
RH
24722011-07-31 Richard Henderson <rth@redhat.com>
2473
2474 * config/h8300/crti.asm: Add flags to .section directive.
2475 * config/h8300/crtn.asm: Likewise.
2476
b87ac615
RH
24772011-07-31 Richard Henderson <rth@redhat.com>
2478
2479 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
2480 * tree.c (build_common_tree_nodes): Likewise.
2481
05eb5cc3
KK
24822011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
2483
2484 PR target/49880
2485 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
2486 (divsi3_i1): Likewise.
2487
a3059635
BS
24882011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2489
2490 PR tree-optimization/49749
2491 * tree-ssa-reassoc.c (get_rank): New forward declaration.
2492 (PHI_LOOP_BIAS): New macro.
2493 (phi_rank): New function.
2494 (loop_carried_phi): Likewise.
2495 (propagate_rank): Likewise.
2496 (get_rank): Add calls to phi_rank and propagate_rank.
bd15e32c 2497
3ee7be4c
L
24982011-07-31 H.J. Lu <hongjiu.lu@intel.com>
2499
2500 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
2501 of TARGET_64BIT.
2502 (PTRDIFF_TYPE): Likewise.
2503
deb1f617
UB
25042011-07-31 Uros Bizjak <ubizjak@gmail.com>
2505
2506 PR target/49920
2507 * config/i386/i386.md (strset): Do not expand strset_singleop
2508 when %eax or $edi are fixed.
2509 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
2510 (*strsetsi_1): Ditto.
2511 (*strsethi_1): Ditto.
2512 (*strsetqi_1): Ditto.
2513 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
2514 (*rep_stossi): Ditto.
2515 (*rep_stosqi): Ditto.
03acddfe 2516 (*strlenqi_1): Ditto.
deb1f617
UB
2517 (cmpstrnsi): Also fail when %ecx is fixed.
2518 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
2519 (*cmpstrnqi_1): Ditto.
deb1f617
UB
2520 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
2521 (*strmovsi_1): Ditto.
2522 (*strmovhi_1): Ditto.
2523 (*strmovqi_1): Ditto.
2524 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
2525 (*rep_movsi): Ditto.
2526 (*rep_movqi): Ditto.
2527
03e69b12
MP
25282011-07-31 Mikael Pettersson <mikpe@it.uu.se>
2529
2530 PR target/47908
2531 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
2532 Disable instruction scheduling for non-ColdFire targets.
2533 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2534
dcaac07d
RE
25352011-07-31 Revital Eres <revital.eres@linaro.org>
2536
2537 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
2538 of anti-dep edge from a branch.
2539 (add_cross_iteration_register_deps): Create anti-dep edge from
2540 a branch.
2541
413e50a2
RE
25422011-07-31 Revital Eres <revital.eres@linaro.org>
2543
2544 * modulo-sched.c: Change comment.
2545 (reset_sched_times): Fix print message.
2546 (print_partial_schedule): Add print info.
2547
f047e518
TV
25482011-07-31 Tom de Vries <tom@codesourcery.com>
2549
2550 PR middle-end/43513
2551 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
2552 get_object_alignment and TYPE_ALIGN.
2553
b3421a06
TV
25542011-07-30 Tom de Vries <tom@codesourcery.com>
2555
2556 PR middle-end/43513
2557 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
2558 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
2559
cc822cc1
RO
25602011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2561
2562 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
2563 <sys/sbd.h>.
2564 (cpu_types): New array.
2565 (cputype): New function.
2566 (host_detect_local_cpu): Only define buf, f if !__sgi__.
2567 Use scaninvent instead of /proc/cpuinfo if __sgi__.
2568 * config.host: Also use driver-native.o, mips/x-native on
2569 mips-sgi-irix*.
deb1f617 2570 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
cc822cc1
RO
2571 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
2572 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
2573
25142650
JJ
25742011-07-29 Jakub Jelinek <jakub@redhat.com>
2575
2576 PR middle-end/49897
2577 PR middle-end/49898
2578 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
2579 in nested parallel and outer is a gimple_reg, mark it as addressable
2580 and set its bit in task_shared_vars bitmap too.
2581
89840058
UB
25822011-07-29 Uros Bizjak <ubizjak@gmail.com>
2583
2584 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
2585
d2da41f5
RO
25862011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2587
2588 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
2589 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
2590 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
2591 AMASK_LOCKPFTCHOK): Define.
2592 (host_detect_local_cpu): Remove buf, f, cpu_names.
2593 Define cpu_types, implver, amask.
2594 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
2595 native CPU.
2596 * config.host: Also use driver-alpha.o, alpha/x-alpha on
2597 alpha*-dec-osf*.
2598 * config/alpha/osf5.h [__alpha__ || __alpha]
2599 (host_detect_local_cpu): Declare.
2600 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
2601 (DRIVER_SELF_SPECS): Define.
2602
dadecee2
UB
26032011-07-29 Uros Bizjak <ubizjak@gmail.com>
2604
2605 PR target/47715
2606 * config/i386/i386.md (*load_tp_x32): New.
2607 (*load_tp_x32_zext): Ditto.
2608 (*add_tp_x32): Ditto.
2609 (*add_tp_x32_zext): Ditto.
2610 (*load_tp_<mode>): Disable for TARGET_X32 targets.
2611 (*add_tp_<mode>): Ditto.
2612 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
2613 ptr_mode and convert to Pmode if needed.
2614
db7ccee2 26152011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 2616
db7ccee2
GJL
2617 PR target/49687
2618 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
2619 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
2620 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
2621 Add X to register footprint: Clobber r26/r27.
2622
96d03496
RG
26232011-07-29 Richard Guenther <rguenther@suse.de>
2624
2625 * builtins.c (fold_builtin_signbit): Build the comparison
2626 with a proper type.
2627
64fb0d3a
RG
26282011-07-29 Richard Guenther <rguenther@suse.de>
2629
2630 PR tree-optimization/49893
2631 * tree-predcom.c (suitable_reference_p): Volatile references
2632 are not suitable.
2633
6130646b 26342011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 2635
6130646b
GJL
2636 PR target/49313
2637 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2638 (__ctzsi2): Result for 0 may be undefined.
2639 (__ctzhi2): Result for 0 may be undefined.
2640 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2641 (__popcountsi2): Ditto. And don't clobber r26.
2642 (__popcountdi2): Ditto. And don't clobber r27.
2643 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2644 (parityhi2): New expand.
2645 (paritysi2): New expand.
2646 (popcounthi2): New expand.
2647 (popcountsi2): New expand.
2648 (clzhi2): New expand.
2649 (clzsi2): New expand.
2650 (ctzhi2): New expand.
2651 (ctzsi2): New expand.
2652 (ffshi2): New expand.
2653 (ffssi2): New expand.
2654 (copysignsf3): New insn.
2655 (bswapsi2): New expand.
2656 (*parityhi2.libgcc): New insn.
2657 (*parityqihi2.libgcc): New insn.
2658 (*paritysihi2.libgcc): New insn.
2659 (*popcounthi2.libgcc): New insn.
2660 (*popcountsi2.libgcc): New insn.
2661 (*popcountqi2.libgcc): New insn.
2662 (*popcountqihi2.libgcc): New insn-and-split.
2663 (*clzhi2.libgcc): New insn.
2664 (*clzsihi2.libgcc): New insn.
2665 (*ctzhi2.libgcc): New insn.
2666 (*ctzsihi2.libgcc): New insn.
2667 (*ffshi2.libgcc): New insn.
2668 (*ffssihi2.libgcc): New insn.
2669 (*bswapsi2.libgcc): New insn.
2670
a9b332d4
RG
26712011-07-29 Richard Guenther <rguenther@suse.de>
2672
2673 * tree-vrp.c (get_value_range): Only set parameter default
2674 definitions to varying, leave others at undefined.
2675 (extract_range_from_binary_expr): Fix undefined handling.
2676 (vrp_visit_phi_node): Handle merged undefined state.
2677
154516d9
WG
26782011-07-29 Wei Guozhi <carrot@google.com>
2679
2680 PR rtl-optimization/49799
2681 * combine.c (make_compound_operation): Check if the bit field is valid
2682 before change it to bit field extraction.
2683
e40a0b69
BS
26842011-07-29 Bernd Schmidt <bernds@codesourcery.com>
2685
2686 PR rtl-optimization/49891
2687 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
2688 newly created returnjumps.
2689
13a23442
DD
26902011-07-28 DJ Delorie <dj@redhat.com>
2691
69135c94
DD
2692 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
2693 local frame in a naked function, and produce a suitable error for
2694 that specific case.
2695
13a23442
DD
2696 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
2697 registers to be reloaded in HI classes when the target is HI.
2698
6c6c79a9
SP
26992011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2700
2701 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
2702 bound_one, bound_two.
2703
0c43dbaf
SP
27042011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2705
2706 PR middle-end/48648
2707 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
2708 CLAST assignments.
2709 (translate_clast): Same.
2710 (translate_clast_assignment): New.
2711
60cf26cc
SP
27122011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2713
2714 PR tree-optimization/49876
2715 * sese.c (rename_uses): Do not return false on gloog_error: set
2716 the new_expr to integer_zero_node and continue code generation.
2717 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
2718
4fe249e7
JJ
27192011-07-28 Jakub Jelinek <jakub@redhat.com>
2720
2721 PR debug/49846
2722 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
2723 arguments also check if they aren't initialized with a MODE_INT
2724 mode of the same size.
2725
86f98641
AH
27262011-07-28 Aldy Hernandez <aldyh@redhat.com>
2727
2728 * expr.c (get_bit_range): Handle *MEM_REF's.
2729
dc0ff1c8
BS
27302011-07-28 Bernd Schmidt <bernds@codesourcery.com>
2731
2732 * rtlanal.c (tablejump_p): False for returns.
2733 * reorg.c (first_active_target_insn): New static function.
2734 (find_end_label): Set JUMP_LABEL for a new returnjump.
2735 (optimize_skip, get_jump_flags, rare_destination,
2736 mostly_true_jump, get_branch_condition,
2737 steal_delay_list_from_target, own_thread_p,
2738 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
2739 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
2740 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
2741 * jump.c (delete_related_insns): Likewise.
2742 (jump_to_label_p): New function.
2743 (redirect_target): New static function.
2744 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
2745 (redirect_jump_1): Assert that the new label is nonnull.
2746 (redirect_jump): Likewise.
2747 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
2748 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
2749 exit block.
2750 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
2751 changed. Ensure that the right label is passed to redirect_jump.
2752 * function.c (emit_return_into_block,
2753 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
2754 ret_rtx in their JUMP_LABEL.
2755 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
2756 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
2757 pass ret_rtx as label.
2758 * cfglayout.c (fixup_reorder_chain): Use
2759 force_nonfallthru_and_redirect rather than force_nonfallthru.
2760 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
2761 * rtl.h (ANY_RETURN_P): New macro.
2762 (jump_to_label_p): Declare.
2763 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
2764 JUMP_LABELs.
2765 (mark_target_live_regs): Likewise.
2766 * basic-block.h (force_nonfallthru_and_redirect): Declare.
2767 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
2768 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
2769 alpha_tablejump_best_label): Remove functions.
2770 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
2771 alpha_tablejump_best_label): Remove declarations.
2772 * config/sh/sh.c (barrier_align, split_branches): Adjust for
2773 ret_rtx in JUMP_LABELs.
2774 * config/arm/arm.c (is_jump_table): Likewise.
2775
a2e49bb2
UB
27762011-07-28 Uros Bizjak <ubizjak@gmail.com>
2777
2778 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
2779 special predicate. Remove explicit mode checks.
2780
64153cce
JJ
27812011-07-28 Jakub Jelinek <jakub@redhat.com>
2782
a2e49bb2
UB
2783 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
2784 DW_AT_data_member_location containing just DW_OP_plus_uconst.
b3882148 2785
64153cce
JJ
2786 PR debug/49871
2787 * dwarf2out.c (size_of_die, value_format, output_die): Use
2788 DW_FORM_udata instead of DW_FORM_data[48] for
2789 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
2790
0465f4f8
L
27912011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2792
844bf05b
UB
2793 * config/i386/i386.md (*tls_global_dynamic_64): Update
2794 length attribute.
0465f4f8 2795
f51c4a8a
UB
27962011-07-28 Uros Bizjak <ubizjak@gmail.com>
2797
2798 PR target/47715
2799 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
2800 tls_symbolic_operand check. Update code sequence for TARGET_X32.
2801 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
2802 (tls_dynamic_gnu2_64): Ditto.
2803 (*tls_dynamic_gnu2_lea_64): Ditto.
2804 (*tls_dynamic_gnu2_call_64): Ditto.
2805 (*tls_dynamic_gnu2_combine_64): Ditto.
2806
5e9627ca
L
28072011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2808
2809 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
2810
40b9321d
L
28112011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2812
2813 PR target/47364
2814 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
2815
95f89bb3
RR
28162011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2817
2818 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
2819 before the core constraints. Adjust attributes.
a2e49bb2 2820 ("*thumb2_movdf_vfp"): Likewise.
95f89bb3 2821
98958241
KT
28222011-07-28 Kai Tietz <ktietz@redhat.com>
2823
f51c4a8a 2824 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
98958241
KT
2825 (simplify_truth_ops_using_ranges): Likewise.
2826 (build_assert_expr_for): Likewise.
2827 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
2828 and handle BIT_NOT_EXPR for truth-operation.
2829
f627fef2 28302011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 2831
f627fef2
GJL
2832 PR target/49313
2833 Undo r176835 from trunk
2834 2011-07-27 Georg-Johann Lay
2835
296799ba 28362011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 2837
296799ba
GJL
2838 PR target/49687
2839 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
2840 Add _muluhisi3, _mulshisi3, _usmulhisi3.
2841 * config/avr/libgcc.S (__mulsi3): Rewrite.
2842 (__mulhisi3): Rewrite.
2843 (__umulhisi3): Rewrite.
2844 (__usmulhisi3): New.
2845 (__muluhisi3): New.
2846 (__mulshisi3): New.
2847 (__mulohisi3): New.
2848 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
2849 declare.
2850 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
2851 (pseudo_register_or_const_int_operand): New.
2852 (combine_pseudo_register_operand): New.
2853 (u16_operand): New.
2854 (s16_operand): New.
2855 (o16_operand): New.
2856 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
2857 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
2858 (any_extend, any_extend2): New code iterators.
2859 (extend_prefix): New code attribute.
2860 (mulsi3): Rewrite. Turn insn to expander.
2861 (mulhisi3): Ditto.
2862 (umulhisi3): Ditto.
2863 (usmulhisi3): New expander.
2864 (*mulsi3): New insn-and-split.
2865 (mulu<mode>si3): New insn-and-split.
2866 (muls<mode>si3): New insn-and-split.
2867 (mulohisi3): New insn-and-split.
2868 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
2869 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
2870 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
2871 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
2872 insn-and-split.
2873 (*mulsi3_call): Rewrite.
2874 (*mulhisi3_call): Rewrite.
2875 (*umulhisi3_call): Rewrite.
2876 (*usmulhisi3_call): New insn.
2877 (*muluhisi3_call): New insn.
2878 (*mulshisi3_call): New insn.
2879 (*mulohisi3_call): New insn.
2880 (extendqihi2): Use combine_pseudo_register_operand as predicate
2881 for operand 1.
2882 (extendqisi2): Ditto.
2883 (zero_extendqihi2): Ditto.
2884 (zero_extendqisi2): Ditto.
2885 (zero_extendhisi2): Ditto.
2886 (extendhisi2): Ditto. Don't early-clobber operand 0.
2887
d8fa1b73
UB
28882011-07-28 Uros Bizjak <ubizjak@gmail.com>
2889
2890 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
2891
3689198d
SP
28922011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2893
2894 PR tree-optimization/49471
2895 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
2896 iv only when the largest type is unsigned. Do not call
2897 lang_hooks.types.type_for_size.
2898
27165edd
SP
28992011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2900
2901 PR middle-end/45450
2902 * graphite-poly.c (apply_poly_transforms): Disable legality check
2903 after an openscop read.
2904
bd4a54da
SP
29052011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2906
2907 PR middle-end/47691
2908 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
2909 copy_bb_and_scalar_dependences.
2910 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
2911 (graphite_copy_stmts_from_block): Update call to rename_uses.
2912 (copy_bb_and_scalar_dependences): Update call to
2913 graphite_copy_stmts_from_block.
2914 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
2915
04c9ea12 29162011-07-27 Georg-Johann Lay <avr@gjlay.de>
bd4a54da 2917
04c9ea12
GJL
2918 PR target/49313
2919 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2920 (__ctzsi2): Result for 0 may be undefined.
2921 (__ctzhi2): Result for 0 may be undefined.
2922 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2923 (__popcountsi2): Ditto. And don't clobber r26.
2924 (__popcountdi2): Ditto. And don't clobber r27.
2925 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2926 (parityhi2): New expand.
2927 (paritysi2): New expand.
2928 (popcounthi2): New expand.
2929 (popcountsi2): New expand.
2930 (clzhi2): New expand.
2931 (clzsi2): New expand.
2932 (ctzhi2): New expand.
2933 (ctzsi2): New expand.
2934 (ffshi2): New expand.
2935 (ffssi2): New expand.
2936 (copysignsf3): New insn.
2937 (bswapsi2): New expand.
2938 (*parityhi2.libgcc): New insn.
2939 (*parityqihi2.libgcc): New insn.
2940 (*paritysihi2.libgcc): New insn.
2941 (*popcounthi2.libgcc): New insn.
2942 (*popcountsi2.libgcc): New insn.
2943 (*popcountqi2.libgcc): New insn.
2944 (*popcountqihi2.libgcc): New insn-and-split.
2945 (*clzhi2.libgcc): New insn.
2946 (*clzsihi2.libgcc): New insn.
2947 (*ctzhi2.libgcc): New insn.
2948 (*ctzsihi2.libgcc): New insn.
2949 (*ffshi2.libgcc): New insn.
2950 (*ffssihi2.libgcc): New insn.
2951 (*bswapsi2.libgcc): New insn.
2952
479a4921
UB
29532011-07-27 Uros Bizjak <ubizjak@gmail.com>
2954
2955 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
2956 the mode of symbolic_opreand RTXes.
2957
7aecd4e8
UB
29582011-07-27 Uros Bizjak <ubizjak@gmail.com>
2959
a2e49bb2
UB
2960 * config/i386/predicates.md (x86_64_movabs_operand): Return false
2961 for pic_32bit_operand RTXes.
7aecd4e8
UB
2962 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
2963 in DImode.
2964
eb9820c0
KT
29652011-07-27 Kai Tietz <ktietz@redhat.com>
2966
2fe83a0c
KT
2967 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
2968 for 32-bit, too.
2969 (ix86_handle_abi_attribute): Allow function attributes
2970 ms_abi/sysv_abi in 32-bit mode, too.
2971 * doc/extend.texi: Adjust attribute documentation.
2972
eb9820c0
KT
2973 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
2974 expression handling.
2975 (and_var_with_comparison_1): Likewise.
2976
1169e45d
AH
29772011-07-27 Aldy Hernandez <aldyh@redhat.com>
2978
2979 * params.h (ALLOW_STORE_DATA_RACES): New.
2980 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
2981 * Makefile.in (expr.o): Depend on PARAMS_H.
2982 * machmode.h (get_best_mode): Add argument.
2983 * fold-const.c (optimize_bit_field_compare): Add argument to
2984 get_best_mode.
2985 (fold_truthop): Same.
2986 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
2987 * expr.c (emit_group_store): Same.
2988 (copy_blkmode_from_reg): Same.
2989 (write_complex_part): Same.
2990 (optimize_bitfield_assignment_op): Add argument.
2991 Add argument to get_best_mode.
2992 (get_bit_range): New.
7aecd4e8 2993 (expand_assignment): Calculate maxbits and pass it down accordingly.
1169e45d 2994 (store_field): New argument.
7aecd4e8 2995 (expand_expr_real_2): New argument to store_field. Include params.h.
1169e45d
AH
2996 * expr.h (store_bit_field): New argument.
2997 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
2998 into account maxbits.
2999 * calls.c (store_unaligned_arguments_into_pseudos): New argument
3000 to store_bit_field.
3001 * expmed.c (store_bit_field_1): New argument. Use it.
3002 (store_bit_field): Same.
3003 (store_fixed_bit_field): Same.
3004 (store_split_bit_field): Same.
3005 (extract_bit_field_1): Pass new argument to get_best_mode.
3006 (extract_bit_field): Same.
3007 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
3008 * doc/invoke.texi: Document parameter allow-store-data-races.
3009
7bbdd4e9
JJ
30102011-07-27 Jakub Jelinek <jakub@redhat.com>
3011
7aecd4e8 3012 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7bbdd4e9 3013
aebf4828
KT
30142011-07-27 Kai Tietz <ktietz@redhat.com>
3015
3016 * tree-vrp.c (extract_range_from_binary_expr): Remove
3017 TRUTH-binary cases and add new bitwise-cases.
3018 (extract_range_from_assignment): Likewise.
3019 (register_edge_assert_for_1): Likeiwise.
3020 (register_edge_assert_for): Likewise.
3021 (simplify_truth_ops_using_ranges): Likewise.
3022 (simplify_stmt_using_ranges): Likewise.
3023
65ceed36
L
30242011-07-26 H.J. Lu <hongjiu.lu@intel.com>
3025
3026 PR target/47372
3027 * config/i386/i386.c (ix86_delegitimize_address): Call
3028 simplify_gen_subreg for PIC with mode of x only if modes of
3029 x and orig_x are different.
3030
b56bc05b
JJ
30312011-07-26 Jakub Jelinek <jakub@redhat.com>
3032
3033 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
3034 to GC allocated copy of the string.
3035 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
3036 before .debug_line, not after it.
3037
bce26def
SP
30382011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3039
3040 PR middle-end/47046
3041 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
3042 evolution_function_is_affine_p on CHREC_RIGHT.
3043
5f72e02d
SP
30442011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3045
3046 * tree-data-ref.c (max_stmt_executions_tree): Do not call
3047 lang_hooks.types.type_for_size.
3048
cbc1994b
SP
30492011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3050
3051 PR middle-end/47653
3052 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
3053 loops using wrapping semantics.
3054
4c7d6755
SP
30552011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3056
3057 PR middle-end/48805
3058 * tree-scalar-evolution.c (instantiate_scev_r): Return
3059 chrec_dont_know for ADDR_EXPR.
3060
e207e41f
UB
30612011-07-26 Uros Bizjak <ubizjak@gmail.com>
3062 H.J. Lu <hongjiu.lu@intel.com>
3063
3064 PR target/47369
3065 PR target/49853
3066 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
3067 if legitimize_tls_address returned operand in wrong mode. Allow
3068 SImode and DImode symbolic operand for PIC. Call convert_to_mode
3069 if legitimize_pic_address returned operand in wrong mode.
3070
842eeb9b
MJ
30712011-07-26 Martin Jambor <mjambor@suse.cz>
3072
3073 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
3074 return false for invariants.
3075
98d2c0ad
UB
30762011-07-26 Uros Bizjak <ubizjak@gmail.com>
3077
3078 * config/i386/i386.md (add->lea splitter): Implement using SWI
3079 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
3080 (add->lea zext splitter): Change operand 2 predicate to
3081 x86_64_nonmemory_operand.
3082
c21510a9
RG
30832011-07-26 Richard Guenther <rguenther@suse.de>
3084
3085 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
3086 frequency makes everything hot.
3087
9f61fd17
RG
30882011-07-26 Richard Guenther <rguenther@suse.de>
3089
3090 PR tree-optimization/49840
3091 * tree-vrp.c (range_fits_type_p): Properly handle full
3092 double-int precision.
3093
5bf3d50d
MJ
30942011-07-26 Martin Jambor <mjambor@suse.cz>
3095
3096 PR bootstrap/49786
3097 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
3098 counts.
3099 (update_specialized_profile): Likewise.
3100
536e3f49
UB
31012011-07-26 Uros Bizjak <ubizjak@gmail.com>
3102 H.J. Lu <hongjiu.lu@intel.com>
3103
3104 PR target/47381
3105 PR target/49832
3106 PR target/49833
3107 * config/i386/i386.md (i): Change SImode attribute to "e".
3108 (g): Change SImode attribute to "rme".
3109 (di): Change SImode attribute to "nF".
3110 (general_operand): Change SImode attribute to x86_64_general_operand.
3111 (general_szext_operand): Change SImode attribute to
3112 x86_64_szext_general_operand.
3113 (immediate_operand): Change SImode attribute to
3114 x86_64_immediate_operand.
3115 (nonmemory_operand): Change SImode attribute to
3116 x86_64_nonmemory_operand.
3117 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
3118 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
3119 (*lea_1): Use SWI48 mode iterator.
3120 (*lea_1_zext): New insn pattern.
3121 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
3122 (*bt<mode>): Ditto.
3123 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
3124 Update operand constraints.
3125 (addsi_1_zext): Ditto.
3126 (*add<mode>2): Ditto.
3127 (*addsi_3_zext): Ditto.
3128 (*subsi_1_zext): Ditto.
3129 (*subsi_2_zext): Ditto.
3130 (*subsi_3_zext): Ditto.
3131 (*addsi3_carry_zext): Ditto.
3132 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
3133 (*mulsi3_1_zext): Ditto.
3134 (*andsi_1): Ditto.
3135 (*andsi_1_zext): Ditto.
3136 (*andsi_2_zext): Ditto.
3137 (*<any_or:code>si_1_zext): Ditto.
3138 (*<any_or:code>si_2_zext): Ditto.
3139 (*test<mode>_1): Use <general_operand> predicate for operand 1.
3140 (*and<mode>_2): Ditto.
3141 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
3142 (add->lea splitter): Check operand modes in insn constraint. Extend
3143 operands less than SImode wide to SImode.
3144 (add->lea zext splitter): Do not extend input operands to DImode.
3145 (*lea_general_1): Handle only QImode and HImode operands.
3146 (*lea_general_2): Ditto.
3147 (*lea_general_3): Ditto.
3148 (*lea_general_1_zext): Remove.
3149 (*lea_general_2_zext): Ditto.
3150 (*lea_general_3_zext): Ditto.
3151 (*lea_general_4): Check operand modes in insn constraint. Extend
3152 operands less than SImode wide to SImode.
3153 (ashift->lea splitter): Ditto.
3154 * config/i386/i386.c (ix86_print_operand_address): Print address
3155 registers with 'q' modifier on 64bit targets.
3156 * config/i386/predicates.md (pic_32bit_opreand): Define as special
3157 predicate. Reject non-SI and non-DI modes.
3158
0de204de
AP
31592011-07-25 Andrew Pinski <apinski@cavium.com>
3160
3161 PR tree-opt/49671
3162 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
3163 TREE_THIS_NOTRAP into the inner most MEM_REF.
3164 Always copy TREE_THIS_VOLATILE.
3165 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
3166 arguments are not volatile references.
3167
104fcc7a
RH
31682011-07-25 Richard Henderson <rth@redhat.com>
3169
3170 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
3171 * final.c (final_scan_insn): Don't test for it.
3172 (rest_of_clean_state): Likewise.
3173
c24a6738
RH
31742011-07-25 Richard Henderson <rth@redhat.com>
3175
3176 PR debug/49841
3177 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
3178 (emit_frame_save): Likewise.
3179 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
3180 insn onto a dummy blockage insn after the join label.
3181
200e10dc
RH
31822011-07-25 Richard Henderson <rth@redhat.com>
3183
3184 * dwarf2cfi.c (dw_trace_info): Add ID member.
3185 (get_trace_index): Remove. Change users to use ID member.
3186 (before_next_cfi_note): New.
3187 (connect_traces): Remove unreachable traces before the main loop.
3188 Look across one trace and generate remember/restore_state if needed.
3189
a5d0ce89
RH
31902011-07-25 Richard Henderson <rth@redhat.com>
3191
3192 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
3193
c344a866
JR
31942011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
3195
3196 * genattr.c (write_upcase, gen_attr <enum definition writing>):
3197 Move to ...
3198 * genattr-common.c ... here.
3199 (main): Call gen_attr.
3200 * optc-gen.awk: Make generated program include insn-attr-common.h .
3201 * Makefile.in (oprions.o): Depend on insn-attr-common.h
3202
4645179e
AS
32032011-07-25 Anatoly Sokolov <aesok@post.ru>
3204
3205 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3206 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3207 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
3208 m32c_print_operand, m32c_print_operand_address): Remove.
3209 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
3210 Change return type to bool. Change argument type to bool.
3211 (m32c_print_operand, m32c_print_operand_address): Make static.
3212 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3213 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3214
8175c19c
RO
32152011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3216
3217 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3218 attributes): Document mmap.
3219
5057fa13
AS
32202011-07-25 Anatoly Sokolov <aesok@post.ru>
3221
3222 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3223 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3224 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
3225 mmix_print_operand, mmix_print_operand_address): Remove.
3226 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
3227 Change return type to bool. Change argument type to bool.
3228 (mmix_print_operand, mmix_print_operand_address): Make static.
536e3f49 3229 (mmix_intval, mmix_output_condition): Change 'x' argument type
5057fa13
AS
3230 to const_rtx.
3231 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3232 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3233
f4da258f 32342011-07-25 Georg-Johann Lay <avr@gjlay.de>
536e3f49 3235
f4da258f
GJL
3236 PR target/39386
3237 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
3238 shift counter for x << x and x >> x shifts.
3239
1500b428
RO
32402011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3241
3242 PR target/47124
3243 * config.gcc: Reject *-*-solaris2 configuration.
3244
59daeef4
RS
32452011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
3246
3247 PR tree-optimization/49809
3248 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
3249 gimple_get_lhs instead of gimple_assign_lhs.
3250
4d1c7421
RO
32512011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3252
3253 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
3254
7fdab8d4
RG
32552011-07-25 Richard Guenther <rguenther@suse.de>
3256
3257 PR tree-optimization/49822
3258 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3259 more. Make sure to preserve stmts with side-effects. Properly
3260 handle virtual defs, follow a longer def chain.
3261
1baae426
RG
32622011-07-22 Romain Geissler <romain.geissler@gmail.com>
3263
3264 PR plugins/45348
3265 PR plugins/48425
3266 PR plugins/46577
3267 * Makefile.in: Do not flatten c-family directory when installing
3268 plugin headers.
3269
264b47b0
EB
32702011-07-25 Eric Botcazou <ebotcazou@adacore.com>
3271
3272 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
3273 original nodes if we are dealing with virtual clones.
3274
3d02ae65
BS
32752011-07-25 Bernd Schmidt <bernds@codesourcery.com>
3276
3277 * common/config/c6x/c6x-common.c: New file.
3278
2eaa698b
RZ
32792011-07-25 Roman Zhuykov <zhroma@ispras.ru>
3280
3281 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
3282
ebeadd91
RG
32832011-07-25 Richard Guenther <rguenther@suse.de>
3284
3285 PR tree-optimization/49715
3286 * tree-vrp.c: Include expr.h and optabs.h.
3287 (range_fits_type_): New function.
3288 (simplify_float_conversion_using_ranges): Likewise.
3289 (simplify_stmt_using_ranges): Call it.
3290 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
3291 * optabs.c (can_float_p): Export.
3292 * optabs.h (can_float_p): Declare.
3293
d9256277
RG
32942011-07-25 Richard Guenther <rguenther@suse.de>
3295
3296 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
3297 (get_value_range): For out-of-range SSA names or names created
3298 after propagation return a read-only varying range.
3299 (dump_all_value_ranges): Adjust.
3300 (vrp_initialize): Likewise.
3301 (vrp_finalize): Likewise.
3302
149e741d
RH
33032011-07-24 Richard Henderson <rth@redhat.com>
3304
3305 PR debug/49831
3306 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
3307 them entirely.
3308
981dc735
RH
33092011-07-24 Richard Henderson <rth@redhat.com>
3310
3311 PR debug/49825
3312 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
3313 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
3314
3382318a
RH
33152011-07-24 Richard Henderson <rth@redhat.com>
3316
3317 PR debug/49827
3318 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
3319
2f23f97a
RH
33202011-07-24 Richard Henderson <rth@redhat.com>
3321
3322 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
3323 Zero args_size for abnormal edges. Adjust all callers.
3324
2edb462e
RH
33252011-07-24 Richard Henderson <rth@redhat.com>
3326
3327 PR debug/49825
3328 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
3329
96d5384b
L
33302011-07-24 H.J. Lu <hongjiu.lu@intel.com>
3331
3332 PR bootstrap/49835
3333 * collect2.c (demangle_flag): Removed.
3334
df45fc34
SL
33352011-07-24 Sandra Loosemore <sandra@codesourcery.com>
3336
3337 * configure.ac (demangler_in_ld): Default to yes.
3338 * configure: Regenerated.
3339 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
3340 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
3341 --no-demangle options straight through to ld. When
3342 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
3343 way that has the intended effect on Windows.
3344
829bdd4b
RH
33452011-07-23 Richard Henderson <rth@redhat.com>
3346
3347 * dwarf2cfi.c: Include basic-block.h.
3348 (dw_label_info): Remove.
3349 (trace_work_list, trace_index): New.
3350 (remember_row, emit_cfa_remember): Remove.
3351 (dw_trace_info_hash, dw_trace_info_eq): New.
3352 (get_trace_index, get_trace_info): New.
3353 (save_point_p): New.
3354 (free_cfi_row): Remove.
3355 (add_cfi): Do not emit DW_CFA_remember_state.
3356 (cfa_row_equal_p): New.
3357 (barrier_args_size): Remove.
3358 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
3359 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
3360 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
3361 (dwarf2out_cfi_begin_epilogue): Remove.
3362 (dwarf2out_frame_debug_restore_state): Remove.
3363 (connect_traces, create_pseudo_cfg): New.
3364 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
3365 * Makefile.in (dwarf2cfi.o): Update.
3366
43215a89
RH
33672011-07-23 Richard Henderson <rth@redhat.com>
3368
3369 * dwarf2cfi.c (dw_trace_info): New.
3370 (dw_label_info): New.
3371 (cie_return_save): New.
3372 (cur_trace): New.
3373 (queued_args_size): Rename from args_size. Update all users.
3374 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
3375 (def_cfa_1): Use cur_trace instead of cfa_*.
3376 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
3377 (clobbers_queued_reg_save, reg_saved_in): Likewise.
3378 (dwarf2out_frame_debug_expr): Likewise.
3379 (create_cie_data): Split out from ...
3380 (execute_dwarf2_frame): ... here. Initialize cur_trace.
3381
6ffc63e1
RH
33822011-07-23 Richard Henderson <rth@redhat.com>
3383
3384 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
3385 Update all users to match.
3386 (execute_dwarf2_frame): Free reg_saved_in_data.
3387
999646c1
RH
33882011-07-23 Richard Henderson <rth@redhat.com>
3389
3390 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
3391 (queued_reg_saves): Don't GTY. Change to a VEC.
3392 (queue_reg_save): Update to match.
3393 (dwarf2out_flush_queued_reg_saves): Likewise.
3394 (clobbers_queued_reg_save): Likewise.
3395 (reg_saved_in): Likewise.
3396 (execute_dwarf2_frame): Free queued_reg_saves.
3397
ce363ef2
RH
33982011-07-23 Richard Henderson <rth@redhat.com>
3399
3400 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
3401
57e16c96
RH
34022011-07-23 Richard Henderson <rth@redhat.com>
3403
3404 * dwarf2cfi.c (add_cfi_args_size): Split out from...
3405 (dwarf2out_args_size): ... here.
3406 (add_cfi_restore): Split out from ...
3407 (dwarf2out_frame_debug_cfa_restore): ... here.
3408 (def_cfa_0): Split out from ...
3409 (def_cfa_1): ... here.
3410 (cfi_oprnd_equal_p, cfi_equal_p): New.
3411 (change_cfi_row): New.
3412 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
3413 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
3414 (output_cfis): Remove.
3415 * dwarf2out.c (output_fde): Simplify output_cfi loop.
3416 (dwarf2out_switch_text_section): Don't call output_cfis.
3417 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
3418 * dwarf2out.h: Update decls.
3419 (enum dw_val_class): Add dw_val_class_none.
3420
f1a0e830
RH
34212011-07-23 Richard Henderson <rth@redhat.com>
3422
3423 * dwarf2cfi.c (update_row_reg_save): New.
3424 (dwarf2out_frame_debug_cfa_expression): Use it.
3425 (dwarf2out_frame_debug_cfa_restore): Likewise.
3426 (reg_save): Likewise. Do not emit DW_CFA_same_value.
3427
141618e2
RH
34282011-07-23 Richard Henderson <rth@redhat.com>
3429
3430 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
3431
f17d3401
RH
34322011-07-23 Richard Henderson <rth@redhat.com>
3433
3434 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
3435 (cie_cfi_row): New.
3436 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
3437 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
3438 (cur_row, remember_row): New.
3439 (def_cfa_1): Use cur_row instead of the old_* variables.
3440 (dwarf2out_frame_debug_restore_state): Similarly.
3441 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
3442 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
3443 (dwarf2out_frame_debug_adjust_cfa): Likewise.
3444 (dwarf2out_frame_debug_cfa_offset): Likewise.
3445 (dwarf2out_frame_debug_expr): Likewise.
3446 (execute_dwarf2_frame): Set up cur_row.
3447 * dwarf2out.h (struct cfa_loc): Mark for GTY.
3448
0be7e7a6
RH
34492011-07-23 Richard Henderson <rth@redhat.com>
3450
3451 * basic-block.h (EDGE_PRESERVE): New.
3452 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
3453 * bb-reorder.c: Include except.h.
3454 (fix_up_crossing_landing_pad): New.
536e3f49 3455 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
0be7e7a6
RH
3456 landing pads in the right partition. Duplicate as necessary.
3457 (partition_hot_cold_basic_blocks): Fix up DF info after
3458 duplicating landing pads.
3459 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
3460 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
3461 is set properly. Validate that EH edges are not CROSSING.
3462 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
3463 (dw2_build_landing_pads): ... here.
3464 (convert_to_eh_region_ranges): Remove code to fixup crossing
3465 landing pads.
3466 * except.h (expand_dw2_landing_pad_for_region): Declare.
3467 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
3468
e0170551
RE
34692011-07-23 Richard Earnshaw <rearnsha@arm.com>
3470
3471 PR target/49816
3472 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
3473
15c2ccba
JM
34742011-07-22 Jason Merrill <jason@redhat.com>
3475
3476 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
3477
295331a4
RH
34782011-07-22 Richard Henderson <rth@redhat.com>
3479
3480 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
3481
5f93b30a
RH
34822011-07-22 Richard Henderson <rth@redhat.com>
3483
3484 * jump.c (maybe_propagate_label_ref): Split out of...
3485 (mark_all_labels): ... here. Do not attempt label_ref
3486 propagation while in cfglayout mode.
3487
e967adf4
JJ
34882011-07-22 Jakub Jelinek <jakub@redhat.com>
3489
520cda8c
JJ
3490 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
3491 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
3492 (dwarf_attr_name): Handle DW_AT_GNU_macros.
3493 (dwarf2out_define): If the vector is empty and
3494 lineno is 0, emit a dummy entry first.
3495 (dwarf2out_undef): Likewise. Remove redundant semicolon.
3496 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
3497 optimize_macinfo_range): New functions.
3498 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
3499 mergeable, optimize longer strings using
3500 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
3501 optimize longer sequences of define/undef ops from headers
3502 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
3503 emit a section headers.
3504 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
3505 and macinfo_section_label to DEBUG_MACRO_SECTION
3506 resp. DEBUG_MACRO_SECTION_LABEL.
3507 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
3508 instead of DW_AT_macro_info.
3509
e967adf4
JJ
3510 PR other/32998
3511 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
3512 options.
3513 * dwarf2out.c: Include opts.h.
3514 (dchar_p): New typedef. Define heap VEC for it.
3515 (producer_string): New variable.
3516 (gen_producer_string): New function.
3517 (gen_compile_unit_die): Use it.
536e3f49 3518 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
e967adf4
JJ
3519 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
3520 * doc/invoke.texi: Document -grecord-gcc-switches and
3521 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
3522 to -frecord-gcc-switches description.
3523
3a636414
JM
35242011-07-22 Jason Merrill <jason@redhat.com>
3525
3526 PR c++/30112
3527 * c-decl.c (c_linkage_bindings): Define.
3528
8b9b2275
EB
35292011-07-22 Eric Botcazou <ebotcazou@adacore.com>
3530
3531 PR debug/49815
3532 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
3533
3de69514
L
35342011-07-22 H.J. Lu <hongjiu.lu@intel.com>
3535
3536 * config/i386/i386.c (ix86_option_override_internal): Disallow
3537 MS ABI in x32 mode.
3538 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
3539 only for TARGET_LP64.
536e3f49 3540 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
3de69514 3541
49f6f4f7 35422011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
e56fa6bb
MM
3543
3544 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
3545 avoid warnings when GCC is built with a C++ compiler.
3546
b75d1e21
MJ
35472011-07-22 Martin Jambor <mjambor@suse.cz>
3548
3549 PR lto/49796
3550 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
536e3f49 3551 if decl node is in another partition, call cgraph_get_node only once.
b75d1e21 3552
63708bf5
UB
35532011-07-22 Uros Bizjak <ubizjak@gmail.com>
3554
e3c666fd 3555 * config.gcc (x86_64-*-linux*): Set
63708bf5
UB
3556 default_gnu_indirect_function to yes.
3557
27315aa6
RG
35582011-07-22 Richard Guenther <rguenther@suse.de>
3559
3560 PR tree-optimization/45819
3561 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
3562 preserve volatile and notrap flags.
3563
5b6d595b
RO
35642011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3565 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3566
3567 PR bootstrap/49794
3568 * configure.ac: Test AM_ICONV with CXX.
3569 * configure: Regenerate.
3570 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
3571
7e2fe488
RO
35722011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3573
3574 PR bootstrap/49797
3575 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
3576 (set_cloog_options): Use it.
3577
d423df48
JJ
35782011-07-22 Jakub Jelinek <jakub@redhat.com>
3579
3580 PR c++/49756
3581 * gcc.c (main): Call stack_limit_increase (64MB).
3582 * toplev.c (toplev_main): Likewise.
3583
7fd72c6f
L
35842011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3585
3586 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
3587 instead of force_reg.
3588
96f0b772
L
35892011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3590
3591 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
3592 needed and use force_reg after convert.
3593 (ix86_expand_call): Likewise.
3594 (ix86_expand_special_args_builtin): Likewise.
3595 (ix86_expand_builtin): Likewise.
3596
ef74e2ba
SP
35972011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3598
3599 PR middle-end/47654
3600 PR middle-end/49649
3601 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
3602 in parameter. Initialize v1 and v2 based on the values returned
3603 by clast_name_to_lb_ub.
3604 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
3605 values.
3606 (type_for_clast_bin): Same.
3607 (type_for_clast_expr): Same.
3608 (type_for_clast_eq): Update calls to type_for_clast_expr.
3609 (type_for_clast_for): Same.
3610 (build_iv_mapping): Same.
3611 * graphite-ppl.h (value_min): New.
3612
84f2ffea
SP
36132011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3614
3615 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
3616 types whenever possible.
3617
3d9784cb
SP
36182011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3619
3620 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
3621 and ub fields.
3622 (new_clast_name_index): Add lb and ub parameters.
3623 (free_clast_name_index): New.
3624 (clast_name_to_lb_ub): New.
3625 (save_clast_name_index): Add lb and ub parameters.
3626 (compute_bounds_for_param): New.
3627 (type_for_level): Removed.
3628 (type_for_clast_for): Removed level parameter. Do not call
3629 type_for_level.
3630 (graphite_create_new_loop): Store the lb and ub for the clast_name
3631 of the iterator of the loop that has been generated.
3632 (graphite_create_new_loop_guard): Remove parameter level.
3633 (create_params_index): Store the lb and ub of each parameter.
3634 (gloog): Use free_clast_name_index. Pass to create_params_index
3635 the current scop.
3636
12b30e6d
SP
36372011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3638
3639 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
3640 (max_precision_type): Inline max_signed_precision_type.
3641 (type_for_clast_red): Use max_precision_type.
3642 (type_for_clast_bin): Same.
3643 (type_for_clast_for): Same.
3644
0cdd9dcf
SP
36452011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3646
3647 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
3648 type_for_interval.
3649 (gcc_type_for_value): Renamed type_for_value.
3650 (gcc_type_for_clast_term): Renamed type_for_clast_term.
3651 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
3652 (gcc_type_for_clast_red): Renamed type_for_clast_red.
3653 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
3654 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
3655 (graphite_translate_clast_equation): Update calls.
3656 (compute_type_for_level): Renamed type_for_level.
3657 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
3658 (build_iv_mapping): Update calls.
3659 (graphite_create_new_loop_guard): Same.
3660
8aab43a0
SP
36612011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3662
3663 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
3664 comment.
3665
cf7eab7d
SP
36662011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3667
3668 * graphite-clast-to-gimple.c (struct ivs_params): New.
3669 (clast_name_to_gcc): Use ivs_params to pass around parameters.
3670 (clast_to_gcc_expression): Same.
3671 (clast_to_gcc_expression_red): Same.
3672 (gcc_type_for_clast_term): Same.
3673 (gcc_type_for_clast_expr): Same.
3674 (gcc_type_for_clast_red): Same.
3675 (gcc_type_for_clast_bin): Same.
3676 (gcc_type_for_clast_eq): Same.
3677 (graphite_translate_clast_equation): Same.
3678 (graphite_create_guard_cond_expr): Same.
3679 (graphite_create_new_guard): Same.
3680 (graphite_create_new_loop): Same.
3681 (build_iv_mapping): Same.
3682 (translate_clast_user): Same.
3683 (graphite_create_new_loop_guard): Same.
3684 (translate_clast): Same.
3685 (translate_clast_for_loop): Same.
3686 (translate_clast_for): Same.
3687 (translate_clast_guard): Same.
3688 (initialize_cloog_names): Fix typo.
3689 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
3690
7b1e9596
SP
36912011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3692
3693 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
3694 (new_clast_name_index): Add level parameter.
3695 (clast_name_to_level): New.
3696 (save_clast_name_index): Add level parameter.
3697 (newivs_to_depth_to_newiv): Removed.
3698 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
3699 (graphite_create_new_loop): Add level parameter. Pass level to
3700 save_clast_name_index.
3701 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
3702 (create_params_index): Pass level to save_clast_name_index.
3703
6e6568db
SP
37042011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3705
3706 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
3707 recompute type, lb, and ub. Get them from...
3708 (graphite_create_new_loop_guard): ...here. Pass in parameter
3709 pointers to type, lb, and ub.
3710 (translate_clast_for_loop): Update function calls.
3711 (translate_clast_for): Same.
3712
dff62090
SP
37132011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3714
3715 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
3716 psct_dynamic_dim.
3717 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
3718 (gcc_type_for_iv_of_clast_loop): Update use of level.
3719 (gloog): Start counting nesting level from 0.
3720 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
3721 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
3722 psct_dynamic_dim on level.
3723
628c1ac9
L
37242011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3725
3726 * config/i386/i386.c (ix86_legitimize_address): Convert to
3727 Pmode if needed.
3728
08a8923e
L
37292011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3730
3731 * config/i386/i386.c (function_value_64): Always return pointers
3732 in Pmode.
3733 (ix86_promote_function_mode): New.
3734 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
3735
777a4e9a
BS
37362011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3737
3738 PR tree-optimization/49749
3739 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
3740 remove no-longer-used maxrank variable.
63708bf5 3741
e9514725 37422011-07-21 Georg-Johann Lay <avr@gjlay.de>
63708bf5 3743
e9514725
GJL
3744 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
3745
9ca1483b
JM
37462011-07-21 Jason Merrill <jason@redhat.com>
3747
3748 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
3749 * recog.h (struct insn_data_d): Check it instead of
3750 HAVE_DESIGNATED_INITIALIZERS.
3751 * genoutput.c (output_insn_data): Likewise.
3752
3ceaf2f5
RG
37532011-07-21 Richard Guenther <rguenther@suse.de>
3754
3755 PR tree-optimization/49770
3756 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
3757 valueized any operand. Renamed from ...
3758 (valueize_refs): ... this. New wrapper around valueize_refs_1.
3759 (valueize_shared_reference_ops_from_ref): Return whether we
3760 valueized any operand.
3761 (vn_reference_lookup): Only when we valueized any operand
3762 use the valueized reference for alias analysis. Do not preserve
3763 the original reference tree in this case.
3764
7c53a140
UB
37652011-07-21 Uros Bizjak <ubizjak@gmail.com>
3766
3767 * config/i386/i386.c (ix86_decompose_address): Reject all but
a4235495 3768 register operands and subregs of DImode hard registers in index.
7c53a140 3769
7f3ff782
KT
37702011-07-21 Kai Tietz <ktietz@redhat.com>
3771
3772 * fold-const.c (fold_unary_loc): Preserve indirect
3773 comparison cast to none-boolean type.
3774 * tree-ssa.c (useless_type_conversion_p): Preserve cast
3775 from/to boolean-type.
7c53a140
UB
3776 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
3777 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7f3ff782
KT
3778 * tree-cfg.c (verify_gimple_comparison): Check result
3779 type of comparison expression.
7c53a140
UB
3780 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
3781 of condition result and disallow type-cast sinking into comparison.
7f3ff782 3782
91bc6112
RG
37832011-07-21 Richard Guenther <rguenther@suse.de>
3784
3785 * tree-ssa-forwprop.c (combine_conversions): Return whether
3786 we have to run cfg-cleanup. Properly remove dead stmts.
3787 (ssa_forward_propagate_and_combine): Adjust.
3788
d6f23738
RS
37892011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
3790
3791 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
3792
fec3cad3
KT
37932011-07-21 Kai Tietz <ktietz@redhat.com>
3794
3795 * tree-ssa-propagate.c (substitute_and_fold): Use
3796 do_dce flag to deside, if BB's statements are scanned
3797 in last to first, or first to last order.
3798
21f3ae2f 37992011-07-21 Georg-Johann Lay <avr@gjlay.de>
7c53a140 3800
21f3ae2f
GJL
3801 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
3802
6025b127
L
38032011-07-20 H.J. Lu <hongjiu.lu@intel.com>
3804 Uros Bizjak <ubizjak@gmail.com>
3805 Richard Henderson <rth@redhat.com>
3806
3807 * config/i386/constraints.md (w): New.
3808
3809 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
3810 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
3811
3812 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
3813 instead of TARGET_64BIT.
3814
3815 * config/i386/i386.md (indirect_jump): Replace
3816 nonimmediate_operand with indirect_branch_operand.
3817 (*indirect_jump): Likewise. Replace constraint "m" with "w".
a4235495
UB
3818 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
3819 Convert operand 0 to Pmode for x32 if not PIC.
6025b127
L
3820 (*tablejump_1): Replace nonimmediate_operand with
3821 indirect_branch_operand. Replace constraint "m" with "w".
3822 (*call_vzeroupper): Replace constraint "m" with "w".
3823 (*call): Likewise.
3824 (*call_rex64_ms_sysv_vzeroupper): Likewise.
3825 (*call_rex64_ms_sysv): Likewise.
3826 (*call_value_vzeroupper): Likewise.
3827 (*call_value): Likewise.
3828 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
3829 (*call_value_rex64_ms_sysv): Likewise.
a4235495 3830 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6025b127
L
3831
3832 * config/i386/predicates.md (indirect_branch_operand): New.
3833 (call_insn_operand): Support x32.
3834
7f8925a1
ME
38352011-07-20 Michael Eager <eager@eagercon.com>
3836
3837 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
3838
510a442a
RH
38392011-07-20 Richard Henderson <rth@redhat.com>
3840
3841 * cfg.c (dump_bb_info): Dump basic_block->flags.
3842 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
3843
00b40d0d
UB
38442011-07-20 Uros Bizjak <ubizjak@gmail.com>
3845
3846 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3847 of DImode hard registers in index.
3848 (ix86_legitimate_address_p): Allow subregs of base and index to span
3849 more than a word. Assert that subregs of base and index satisfy
3850 register_no_elim_operand predicates. Reject addresses where
3851 base and index have different modes.
3852
87f53554
RM
38532011-07-20 Robert Millan <rmh@gnu.org>
3854
3855 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
3856
742f29ab
UW
38572011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3858
3859 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
3860 removing now-unnecessary assignment.
3861
d05f3564
UW
38622011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3863
3864 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
3865 memory address space to the type's address space.
3866
8c352fa8 38672011-07-20 Georg-Johann Lay <avr@gjlay.de>
00b40d0d 3868
8c352fa8
GJL
3869 PR target/36467
3870 PR target/49687
00b40d0d
UB
3871 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
3872 and expand appropriately if there is a CONST_INT in operand2.
8c352fa8
GJL
3873 (usmulqihi3): New insn.
3874 (*sumulqihi3): New insn.
3875 (*osmulqihi3): New insn.
3876 (*oumulqihi3): New insn.
3877 (*muluqihi3.uconst): New insn_and_split.
3878 (*muluqihi3.sconst): New insn_and_split.
3879 (*mulsqihi3.sconst): New insn_and_split.
3880 (*mulsqihi3.uconst): New insn_and_split.
3881 (*mulsqihi3.oconst): New insn_and_split.
3882 (*ashifthi3.signx.const): New insn_and_split.
3883 (*ashifthi3.signx.const7): New insn_and_split.
3884 (*ashifthi3.zerox.const): New insn_and_split.
3885 (mulsqihi3): New insn.
3886 (muluqihi3): New insn.
3887 (muloqihi3): New insn.
3888 * config/avr/predicates.md (const_2_to_7_operand): New.
3889 (const_2_to_6_operand): New.
3890 (u8_operand): New.
3891 (s8_operand): New.
3892 (o8_operand): New.
3893 (s9_operand): New.
3894 (register_or_s9_operand): New.
3895
be31603a
KT
38962011-07-20 Kai Tietz <ktietz@redhat.com>
3897
3898 * builtins.c (fold_builtin_expect): See through the cast
3899 from truthvalue_type_node to long.
3900
c36193c6
MM
39012011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3902
3903 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
3904 where we can use them from the standard and altivec instruction
3905 sets, instead of always using the 3 operand VSX forms that require
3906 the destination to overlap one of the inputs.
3907 (vsx_fms*): Ditto.
3908 (vsx_fnma*): Ditto.
3909 (vsx_fnms*): Ditto.
3910
3911 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
3912 for DF types.
3913 (fmsdf4_fpr): Ditto.
3914 (nfmadf4_fpr): Ditto.
3915 (nfmsdf4_fpr): Ditto.
3916
02aec184
SL
39172011-07-20 Sandra Loosemore <sandra@codesourcery.com>
3918
3919 * genrecog.c (make_insn_sequence): Correct position numbering
3920 when filtering out match_scratch and match_dup.
3921
f8ecf734
RG
39222011-07-20 Richard Guenther <rguenther@suse.de>
3923
3924 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3925 against already removed statements.
3926 (forward_propagate_into_comparison): Remove dead defining stmts.
3927 (forward_propagate_into_gimple_cond): Likewise.
3928 (forward_propagate_into_cond): Simplify.
3929 (ssa_forward_propagate_and_combine): Handle changed cfg from
3930 forward_propagate_into_comparison.
3931 * tree-ssa-phiopt.c (conditional_replacement): Use proper
3932 locations for newly built statements.
3933
73451ae7
GJL
39342011-07-20 Georg-Johann Lay <avr@gjlay.de>
3935
3936 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
3937
c4100a35
AK
39382011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3939
3940 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
3941 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
3942
dca412a1
RG
39432011-07-20 Richard Guenther <rguenther@suse.de>
3944
3945 PR middle-end/18908
3946 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
3947 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
3948 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
3949
73d7e266
VM
39502011-07-20 Vladimir Makarov <vmakarov@redhat.com>
3951
3952 * config/frv/frv.c (frv_register_move_cost): Define explicitly
3953 costs for subclasses of GR_REGS.
3954
5e27a6d4
UB
39552011-07-20 Uros Bizjak <ubizjak@gmail.com>
3956
3957 PR target/49780
3958 * config/i386/predicates.md (no_seg_addres_operand): No more special.
3959 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3960 of DImode hard registers in base.
3961 (ix86_legitimate_address_p): Allow SImode and DImode base and index
3962 registers.
3963
74d8fa44
RG
39642011-07-20 Richard Guenther <rguenther@suse.de>
3965
5e27a6d4 3966 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
74d8fa44
RG
3967 (unify_nodes): Deal with that.
3968 (solve_graph): Likewise.
3969
b0e43da8
CLT
39702011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
3971
3972 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
3973 canonicalize left operand from ZERO_EXTEND to AND.
3974
a8c44c52
AS
39752011-07-20 Anatoly Sokolov <aesok@post.ru>
3976
3977 * target.def (class_max_nregs): New hook.
3978 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
3979 * doc/tm.texi: Regenerate.
3980 * targhooks.c (default_class_max_nregs): New function.
3981 * targhooks.h (default_class_max_nregs): Declare.
3982 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
3983 x_ira_reg_class_min_nregs arrays to unsigned char.
3984 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
3985 hook instead of CLASS_MAX_NREGS macro.
3986 * reginfo.c (restore_register_info): Ditto.
3987 * ira-conflicts.c (process_regs_for_copy): Use
3988 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3989 Change type rclass and aclass vars to reg_class_t.
3990 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
3991 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
3992 reg_class_t.
3993 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
3994 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3995
3996 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
3997 * config/i386/i386.c (ix86_class_max_nregs): New function.
3998 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
3999 instead of CLASS_MAX_NREGS macro.
4000 (TARGET_CLASS_MAX_NREGS): Define.
4001 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
4002 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
4003 * config/avr/avr.c (class_max_nregs): Remove function.
4004 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
4005 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
4006 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
4007 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
4008 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
4009 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
4010 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
4011 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
4012 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
4013 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
4014 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
4015 * config/score/score.h (CLASS_MAX_NREGS): Remove.
4016 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
4017 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
4018 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
4019
fd811f03
EB
40202011-07-19 Eric Botcazou <ebotcazou@adacore.com>
4021
4022 * cif-code.def (OVERWRITABLE): Fix typo and move around.
4023 (TARGET_OPTIMIZATION_MISMATCH): Delete.
4024 (EH_PERSONALITY): Fix typo.
4025 (NON_CALL_EXCEPTIONS): Fix message.
4026 (OPTIMIZATION_MISMATCH): Adjust message.
4027 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
4028
78767fd9
ILT
40292011-07-19 Ian Lance Taylor <iant@google.com>
4030
4031 * doc/install.texi (Configuration): Document
4032 --enable-build-poststage1-with-cxx.
4033
0baeec1b
RM
40342011-07-19 Robert Millan <rmh@gnu.org>
4035
4036 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
4037 (GLIBC_DYNAMIC_LINKER): Remove.
4038
4039 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
4040 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4041 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4042 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
4043 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
4044 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
4045
4046 * config/mips/linux.h: Remove everything except for ...
4047 (GLIBC_DYNAMIC_LINKER): ... this macro.
4048
4049 * config/mips/linux64.h: Remove everything except for ...
4050 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4051 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4052 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
4053 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
4054 (GNU_USER_LINK_EMULATIONN32): New macros.
4055
5e27a6d4
UB
4056 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
4057 Use the new headers.
0baeec1b 4058
754c3d5d
RS
40592011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4060
4061 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
4062 Add offset_known_p and size_known_p fields.
4063 (MEM_OFFSET_KNOWN_P): Update accordingly.
4064 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
4065 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
4066 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
4067 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
4068 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
4069 (init_emit_regs): Likewise.
4070
527210c4
RS
40712011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4072
4073 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
4074 (MEM_OFFSET): Change from returning an rtx to returning a
4075 HOST_WIDE_INT.
4076 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
4077 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
4078 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4079 (clear_mem_offset): Declare.
4080 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
4081 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
4082 MEM_OFFSET to get a HOST_WIDE_INT offset.
4083 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
4084 (adjust_offset_for_component_ref): Take a bool "known_p"
4085 parameter and a HOST_WIDE_INT "offset" parameter.
4086 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
4087 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
4088 than an rtx. Use clear_mem_offset to clear the offset.
4089 * cfgcleanup.c (merge_memattrs): Likewise.
4090 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
4091 * function.c (assign_parm_find_stack_rtl): Likewise.
4092 (assign_parm_setup_stack): Likewise.
4093 * print-rtl.c (print_rtx): Likewise.
4094 * reload.c (find_reloads_subreg_address): Likewise.
4095 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4096 * var-tracking.c (INT_MEM_OFFSET): Likewise.
4097 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
4098 (get_mem_align_offset): Likewise.
4099 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4100 (clear_mem_offset): New function.
4101 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
4102 offset rather than an rtx. Assume both the expressio and offset
4103 are available.
4104 (r10k_needs_protection_p_1): Update accordingly, checking the
4105 expression and offset availability here instead.
4106
f5541398
RS
41072011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4108
4109 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
4110 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
4111 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
4112 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
4113 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4114 (clear_mem_size): Declare.
4115 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4116 (clear_mem_size): New function.
4117 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
4118 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
4119 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
4120 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
4121 to clear the size.
4122 (nonoverlapping_memrefs_p): Likewise.
4123 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
4124 (expand_builtin_init_trampoline): Likewise.
4125 * calls.c (compute_argument_addresses): Likewise.
4126 * cfgcleanup.c (merge_memattrs): Likewise.
4127 * dce.c (find_call_stack_args): Likewise.
4128 * dse.c (record_store, scan_insn): Likewise.
4129 * dwarf2out.c (dw_sra_loc_expr): Likewise.
4130 * expr.c (emit_block_move_hints): Likewise.
4131 * function.c (assign_parm_find_stack_rtl): Likewise.
4132 * print-rtl.c (print_rtx): Likewise.
4133 * reload.c (find_reloads_subreg_address): Likewise.
4134 * rtlanal.c (may_trap_p_1): Likewise.
4135 * var-tracking.c (track_expr_p): Likewise.
4136 * varasm.c (assemble_trampoline_template): Likewise.
4137 * config/arm/arm.c (arm_print_operand): Likewise.
4138 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
4139 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
4140 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
4141 (expand_constant_setmem_prologue): Likewise.
4142 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
4143 * config/rs6000/rs6000.c (expand_block_move): Likewise.
4144 (adjacent_mem_locations): Likewise.
4145 * config/s390/s390.c (s390_expand_setmem): Likewise.
4146 (s390_expand_insv): Likewise.
4147 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
4148 (*extendqi<mode>2_short_displ): Likewise.
4149 * config/sh/sh.c (expand_block_move): Likewise.
4150 * config/sh/sh.md (extv, extzv): Likewise.
4151
f12144dd
RS
41522011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4153
4154 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
4155 (mem_attrs_htab_eq): ...here.
4156 (find_mem_attrs): Replace with...
4157 (set_mem_attrs): ...this function. Take a mem_attrs structure
4158 rather than individual fields.
4159 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4160 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4161 (set_mem_size, change_address, adjust_address_1, offset_address)
4162 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4163 Update accordingly.
4164
1c3f523e
RS
41652011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4166
4167 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
4168 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
4169 Provide a dummy definition of MEM_ADDR_SPACE for generators.
4170 (target_rtl): Add x_mode_mem_attrs.
4171 (mode_mem_attrs): New macro.
4172 (get_mem_attrs): New function.
4173 * emit-rtl.c (get_mem_attrs): Rename to...
4174 (find_mem_attrs): ...this.
4175 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4176 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4177 (set_mem_size, change_address, adjust_address_1, offset_address)
4178 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4179 Update accordingly.
4180 (init_emit_regs): Initialize mode_mem_attrs.
4181
3046b1a9
RG
41822011-07-19 Richard Guenther <rguenther@suse.de>
4183
4184 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
4185 TRUTH_*_EXPR handling.
4186 * tree-ssa-operands.c (get_expr_operands): Likewise.
4187 * tree-ssa-pre.c (fully_constant_expression): Likewise.
4188 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
4189 Likewise.
4190 (is_and_or_or): Likewise.
4191 (is_norm_cond_subset_of): Likewise.
4192
5d49b6a7
RG
41932011-07-19 Richard Guenther <rguenther@suse.de>
4194
4195 * tree.h (fold_build_pointer_plus_loc): New helper function.
4196 (fold_build_pointer_plus_hwi_loc): Likewise.
4197 (fold_build_pointer_plus): Define.
4198 (fold_build_pointer_plus_hwi): Likewise.
4199 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
4200 (fold_builtin_memory_op): Likewise.
4201 (fold_builtin_stpcpy): Likewise.
4202 (fold_builtin_memchr): Likewise.
4203 (fold_builtin_strstr): Likewise.
4204 (fold_builtin_strchr): Likewise.
4205 (fold_builtin_strrchr): Likewise.
4206 (fold_builtin_strpbrk): Likewise.
4207 (fold_builtin_strcat): Likewise.
4208 (expand_builtin_memory_chk): Likewise.
4209 (fold_builtin_memory_chk): Likewise.
4210 * c-typeck.c (build_unary_op): Likewise.
4211 * cgraphunit.c (thunk_adjust): Likewise.
4212 * fold-const.c (build_range_check): Likewise.
4213 (fold_binary_loc): Likewise.
4214 * omp-low.c (extract_omp_for_data): Likewise.
4215 (expand_omp_for_generic): Likewise.
4216 (expand_omp_for_static_nochunk): Likewise.
4217 (expand_omp_for_static_chunk): Likewise.
4218 * tree-affine.c (add_elt_to_tree): Likewise.
4219 * tree-data-ref.c (split_constant_offset_1): Likewise.
4220 * tree-loop-distribution.c (generate_memset_zero): Likewise.
4221 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
4222 * tree-predcom.c (ref_at_iteration): Likewise.
4223 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4224 (add_to_parts): Likewise.
4225 (create_mem_ref): Likewise.
4226 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4227 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
4228 (number_of_iterations_le): Likewise.
4229 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
4230 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4231 (vect_create_addr_base_for_vector_ref): Likewise.
4232 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
4233 (vect_create_cond_for_alias_checks): Likewise.
4234 * tree-vrp.c (extract_range_from_assert): Likewise.
4235 * config/alpha/alpha.c (alpha_va_start): Likewise.
4236 (alpha_gimplify_va_arg_1): Likewise.
4237 * config/i386/i386.c (ix86_va_start): Likewise.
4238 (ix86_gimplify_va_arg): Likewise.
4239 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4240 * config/mep/mep.c (mep_expand_va_start): Likewise.
4241 (mep_gimplify_va_arg_expr): Likewise.
4242 * config/mips/mips.c (mips_va_start): Likewise.
4243 (mips_gimplify_va_arg_expr): Likewise.
4244 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4245 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
4246 (rs6000_gimplify_va_arg): Likewise.
4247 * config/s390/s390.c (s390_va_start): Likewise.
4248 (s390_gimplify_va_arg): Likewise.
4249 * config/sh/sh.c (sh_va_start): Likewise.
4250 (sh_gimplify_va_arg_expr): Likewise.
4251 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4252 * config/spu/spu.c (spu_va_start): Likewise.
4253 (spu_gimplify_va_arg_expr): Likewise.
4254 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4255 Likewise.
4256 (xstormy16_gimplify_va_arg_expr): Likewise.
4257 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
4258 (xtensa_gimplify_va_arg_expr): Likewise.
4259
d906fd7f
RG
42602011-07-19 Richard Guenther <rguenther@suse.de>
4261
4262 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
4263 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
4264 handling.
4265
4266 PR middle-end/18908
4267 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
4268 result of BIT_*_EXPR to bitfield precision.
4269
1b14d815
RS
42702011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
4271
4272 PR tree-optimization/49742
4273 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
4274 as a potential write.
4275
d906fd7f
RG
42762011-07-19 Richard Guenther <rguenther@suse.de>
4277
4278 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
4279 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
4280 (forward_propagate_comparison): Simplify, remove obsolete code.
4281
53020648
RG
42822011-07-19 Richard Guenther <rguenther@suse.de>
4283
4284 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
4285 BIT_XOR_EXPR, same as the RTL expander does.
4286 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
4287 (verify_gimple_assign_unary): Likewise.
4288 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
4289 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
4290 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
4291
b8b2b009
JJ
42922011-07-19 Jakub Jelinek <jakub@redhat.com>
4293
4294 PR tree-optimization/49768
4295 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
4296 if offset is smaller than bitoffset, but offset+size is bigger
4297 than bitoffset.
4298
338f655d
IR
42992011-07-19 Ira Rosen <ira.rosen@linaro.org>
4300
4301 PR tree-optimization/49771
4302 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
4303 zero step, set segment length to the size of the data-ref's type.
4304
310bc633
MJ
43052011-07-18 Martin Jambor <mjambor@suse.cz>
4306
4307 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
4308 comments.
4309 (ipcp_values_pool): Declare.
4310 (ipcp_sources_pool): Likewise.
4311 (ipcp_lattice): Changed to forward declaration.
4312 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
4313 cannot_devirtualize.
4314 (ipa_node_params): New fields descriptors, lattices, known_vals,
4315 clone_for_all_contexts and node dead, removed fields params and
4316 count_scale.
4317 (ipa_set_param_count): Removed.
4318 (ipa_get_param_count): Made to work with descriptors vector.
4319 (ipa_get_param): Updated.
4320 (ipa_param_cannot_devirtualize_p): Removed.
4321 (ipa_param_types_vec_empty): Likewise.
4322 (ipa_set_param_used): New function.
4323 (ipa_get_param_used): Updated to use descriptors vector.
4324 (ipa_func_list): Removed.
4325 (ipa_init_func_list): Removed declaration.
4326 (ipa_push_func_to_list_1): Likewise.
4327 (ipa_pop_func_from_list): Likewise.
4328 (ipa_push_func_to_list): Removed.
4329 (ipa_lattice_from_jfunc): Remove declaration.
4330 (ipa_get_jf_pass_through_result): Declare.
4331 (ipa_get_jf_ancestor_result): Likewise.
4332 (ipa_value_from_jfunc): Likewise.
4333 (ipa_get_lattice): Update.
4334 (ipa_lat_is_single_const): New function.
4335 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
4336 (ipa_init_func_list): Likewise.
4337 (ipa_pop_func_from_list): Likewise.
4338 (ipa_get_param_decl_index): Fix coding style.
4339 (count_formal_params): Removed.
4340 (count_formal_params_1): Renamed to count_formal_params.
4341 (ipa_populate_param_decls): Update to use descriptors vector.
4342 (ipa_initialize_node_params): Likewise.
4343 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
4344 (ipa_analyze_params_uses): Likewise.
4345 (ipa_free_node_params_substructures): Likewise and free also lattices
4346 and known values.
4347 (duplicate_array): Removed.
4348 (ipa_edge_duplication_hook): Add the new edge to the list of edge
4349 clones.
4350 (ipa_node_duplication_hook): Update to use new lattices.
4351 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
4352 (ipa_free_all_structures_after_iinln): Likewise.
4353 (ipa_write_node_info): Update to use new lattices.
4354 (ipa_read_node_info): Likewise.
4355 (ipa_get_jf_pass_through_result): New function.
4356 (ipa_get_jf_ancestor_result): Likewise.
4357 (ipa_value_from_jfunc): Likewise.
4358 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
4359 * ipa-cp.c: Reimplemented.
4360 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
4361 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
4362 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
4363 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
4364 * doc/invoke.texi (devirt-type-list-size): Removed description.
4365 (ipa-cp-value-list-size): Added description.
4366
6774a66f
RH
43672011-07-18 Richard Henderson <rth@redhat.com>
4368
4369 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
4370 before calling create_basic_block.
4371
8b316874
JJ
43722011-07-18 Jakub Jelinek <jakub@redhat.com>
4373
4374 PR middle-end/49675
4375 * tree.c (build_common_builtin_nodes): Register
4376 __builtin_return_address, __cyg_profile_func_enter
4377 and __cyg_profile_func_exit.
4378
9f68560b
RH
43792011-07-18 Richard Henderson <rth@redhat.com>
4380
4381 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
4382 (add_labels_and_missing_jumps): ... here.
4383 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
4384
03126412
UB
43852011-07-18 Uros Bizjak <ubizjak@gmail.com>
4386
4387 PR target/47744
4388 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4389 of DImode hard registers in PLUS address chains.
4390
fbf80ef7
RO
43912011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4392
4393 PR bootstrap/49769
4394 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
4395 (alpha*-*-freebsd*): Likewise.
4396 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4397 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4398 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
4399 crtprec80.o, crtfastmath.o to extra_parts for all targets.
4400 (ia64*-*-elf*): Remove extra_parts.
4401 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
4402 (sparc64-*-linux*): Likewise.
4403 (sparc64-*-freebsd*): Likewise.
4404
4405 Revert:
4406 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
4407 (ia64*-*-linux*): Likewise.
4408 (mips64*-*-linux*): Likewise.
4409 (mips*-*-linux*): Likewise.
4410
daf633ba
DE
44112011-07-18 David Edelsohn <dje.gcc@gmail.com>
4412
4413 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
4414
4b4455e5
RG
44152011-07-18 Richard Guenther <rguenther@suse.de>
4416
4417 * gimplify.c (gimplify_expr): Use input_location, not saved_location
4418 when building new trees.
4419
e002c7cb
RG
44202011-07-18 Richard Guenther <rguenther@suse.de>
4421
4422 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
4423 expansion result to bitfield precision if required.
4424
e44dbbe1
RO
44252011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4426
4427 * config.gcc (i[3456x]86-*-netware*): Remove.
4428
4429 * gthr-nks.h: Remove.
4430 * configure.ac (enable_threads): Remove nks.
4431 * configure: Regenerate.
4432
4433 * config/i386/i386.c (ix86_encode_section_info): Remove netware
4434 reference.
4435 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
4436 <netware.h> reference.
4437
4438 * config/i386/netware-libgcc.c,
4439 gcc/config/i386/netware-libgcc.def,
4440 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
4441 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
4442 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
4443 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
4444
4445 * doc/extend.texi (Function Attributes,
4446 callee_pop_aggregate_return): Remove i?86-netware reference.
4447 * doc/install.texi (Configuration, --enable-threads): Remove nks.
4448
fd862017
JDA
44492011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4450
4451 PR target/49746
4452 Revert:
4453 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4454
4455 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
4456 patterns.
4457
1ff24749
EB
44582011-07-17 Eric Botcazou <ebotcazou@adacore.com>
4459
4460 PR middle-end/49732
4461 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
4462
a4a2c37d
MK
44632011-07-16 Matthias Klose <doko@ubuntu.com>
4464
4465 * doc/install.texi: Document --enable-static-libjava.
4466
ea6136a2
RH
44672011-07-15 Richard Henderson <rth@redhat.com>
4468
4469 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4470 Replace all three arguments by returning a VEC of edges.
4471 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
4472 pointers and counts.
4473 (fix_edges_for_rarely_executed_code): Merge ...
4474 (rest_of_handle_partition_blocks): ... into...
4475 (partition_hot_cold_basic_blocks): ... here. Return todo items if
4476 any work was performed.
4477 (pass_partition_blocks): Clear todo_flags_finish.
4478
6545e33e
PC
44792011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
4480 Jakub Jelinek <jakub@redhat.com>
4481 Jonathan Wakely <jwakely.gcc@gmail.com>
4482
4483 PR libstdc++/49745
4484 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
4485 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
4486
6feeed06
JM
44872011-07-15 Jason Merrill <jason@redhat.com>
4488
4489 PR testsuite/49741
4490 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
4491 rather than --tool_opts.
4492
44762055
BS
44932011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
4494
4495 * doc/plugins.texi (Building GCC plugins): gengtype needs its
0fa71447 4496 corresponding gtype.state.
44762055 4497
1be0310c
JDA
44982011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4499
4500 PR target/49723
4501 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
4502
12c5ffe5
EB
45032011-07-15 Eric Botcazou <ebotcazou@adacore.com>
4504
4505 PR target/48220
4506 * doc/md.texi (Standard Names): Document window_save.
4507 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
4508 expand_debug_expr and expand_debug_source_expr. If the target has
4509 a window_save instruction, adjust the ENTRY_VALUE_EXP.
4510 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
4511 SSA_NAME_VAR is a parameter.
4512 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
4513 * var-tracking.c (parm_reg_t): New type and associated vector type.
4514 (windowed_parm_regs): New variable.
4515 (adjust_insn): If the target has a window_save instruction and this
4516 is the instruction, make its effect on parameter registers explicit.
4517 (next_non_note_insn_var_location): New function.
4518 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
4519 (vt_add_function_parameter): If the target has a window_save insn,
4520 adjust the incoming RTL and record that in windowed_parm_regs.
4521 (vt_finalize): Free windowed_parm_regs.
4522
bcead286
BS
45232011-07-15 Bernd Schmidt <bernds@codesourcery.com>
4524
4525 * doc/invoke.texi (C6X Options): New section.
4526 * doc/md.texi (TI C6X family): New section.
4527 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
4528 tic6x-*-uclinux.
4529 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
4530 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
4531 Provide C6X definitions.
4532 * config/c6x/c6x.md: New file.
4533 * config/c6x/constraints.md: New file.
4534 * config/c6x/predicates.md: New file.
4535 * config/c6x/c6x-sched.md.in: New file.
4536 * config/c6x/c6x-sched.md: New file.
4537 * config/c6x/gensched.sh: New file.
4538 * config/c6x/c6x-mult.md.in: New file.
4539 * config/c6x/genmult.sh: New file.
4540 * config/c6x/c6x-mult.md: New file.
4541 * config/c6x/sync.md: New file.
4542 * config/c6x/c6x-protos.h: New file.
4543 * config/c6x/sfp-machine.h: New file.
4544 * config/c6x/c6x.c: New file.
4545 * config/c6x/c6x.h: New file.
4546 * config/c6x/crti.s: New file.
4547 * config/c6x/crtn.s: New file.
4548 * config/c6x/lib1funcs.asm: New file.
4549 * config/c6x/c6x-modes.def: New file.
4550 * config/c6x/genopt.sh: New file.
4551 * config/c6x/c6x.opt: New file.
4552 * config/c6x/c6x-tables.opt: New file.
4553 * config/c6x/c6x-opts.h: New file.
4554 * config/c6x/c6x-isas.def: New file.
4555 * config/c6x/elf.h: New file.
4556 * config/c6x/elf-common.h: New file.
4557 * config/c6x/uclinux-elf.h: New file.
4558 * config/c6x/t-c6x: New file.
4559 * config/c6x/t-c6x-elf: New file.
4560 * config/c6x/t-c6x-uclinux: New file.
4561 * config/c6x/t-c6x-softfp: New file.
4562 * config/c6x/gtd.c: New file.
4563 * config/c6x/gtf.c: New file.
4564 * config/c6x/ltd.c: New file.
4565 * config/c6x/ltf.c: New file.
4566 * config/c6x/ged.c: New file.
4567 * config/c6x/gef.c: New file.
4568 * config/c6x/led.c: New file.
4569 * config/c6x/lef.c: New file.
4570 * config/c6x/eqd.c: New file.
4571 * config/c6x/eqf.c: New file.
4572 * config/c6x/libgcc-c6xeabi.ver: New file.
4573
aef0e7a8
BS
4574 Revert
4575 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4576 PR rtl-optimization/11320
4577 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
4578 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
4579 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
4580 current_sched_info->compute_jump_reg_dependencies. Record which
4581 registers are used and which registers are set by the jump.
4582 Clear deps->reg_conditional_sets after a barrier.
4583 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
4584 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
4585 (init_deps): Initialize reg_conditional_sets.
4586 (free_deps): Clear reg_conditional_sets.
4587 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
4588 Mark registers live on entry of the fallthrough block and conditionally
4589 set as set by the jump. Mark registers live on entry of non-fallthrough
4590 blocks as used by the jump.
4591 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
4592 Mark new parameters as unused.
4593
9bed2f0d
AP
45942011-07-14 Andrew Pinski <pinskia@gmail.com>
4595
4596 PR tree-opt/49309
4597 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
4598 Use fold_build2_loc instead of build2.
4599 Use the correct type for the new tree.
4600
1f88caaa
BS
46012011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4602
4603 PR rtl-optimization/11320
4604 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
4605 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
4606
d772f97c 46072011-07-14 Georg-Johann Lay <avr@gjlay.de>
1f88caaa 4608
d772f97c
GJL
4609 PR target/49487
4610 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
4611 of REG.
4612 (*rotw<mode>): Use const_int_operand for operand2.
4613 Use match_scatch for operand3.
4614 (*rotb<mode>): Ditto
4615 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
4616
1a5d20a4
RG
46172011-07-14 Richard Guenther <rguenther@suse.de>
4618
4619 PR tree-optimization/49651
4620 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4621 handle dereferences with subvariables.
4622
5fbcc0ed
RG
46232011-07-14 Richard Guenther <rguenther@suse.de>
4624
4625 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
4626 (fold_stmt_1): Do it here directly on gimple and as a first thing.
4627
fbf3fee2
RG
46282011-07-14 Richard Guenther <rguenther@suse.de>
4629
4630 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
4631 not bool_var when folding bool_var != 1 or bool_var == 0.
4632
b953c2b8
BS
46332011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4634
4635 * haifa-sched.c (schedule_insns): Remove outdated comment.
4636 (schedule_block): When computing a known value for TODO_SPEC,
4637 just set it rather than using logical operations.
4638 (try_ready): Likewise. Use a local variable rather than a
4639 pointer to TODO_SPEC. Reorder an if statement to move the
4640 easy case to the then block.
4641 * sched-deps.c (dep_spec_p): New static function.
4642 (update_dep): Use it to decide whether to call
4643 change_spec_dep_to_hard.
4644 (get_back_and_forw_lists): Use it.
4645 (sd_resolve_dep): Likewise.
4646 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
4647 (haifa_note_mem_dep): Likewise.
4648 (check_dep): Likewise.
4649 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
4650 (sched_free_deps): Free in two passes.
4651
1f098f07
RS
46522011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
4653
4654 PR middle-end/49736
4655 * expr.c (all_zeros_p): Undo bogus part of last change.
4656
73059910
MK
46572011-07-14 Matthias Klose <doko@ubuntu.com>
4658
4659 * doc/extend.texi (optimize attribute): Fix typo.
4660
bd5d002e
RG
46612011-07-14 Richard Guenther <rguenther@suse.de>
4662
4663 * gimplify.c (gimplify_expr): Only do required conversions.
4664
eb1dcdff
GJL
46652011-07-14 Georg-Johann Lay <avr@gjlay.de>
4666
4667 PR target/43746
4668 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
4669 i.e. use default_elf_select_section.
4670 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
4671 (READONLY_DATA_SECTION_ASM_OP): Remove.
4672 (TARGET_ASM_NAMED_SECTION): Move from here...
4673 * config/avr/avr.c: ...to here.
03126412 4674 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
eb1dcdff
GJL
4675 (avr_asm_named_section): Make static.
4676
d31fb329
RO
46772011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4678
4679 PR bootstrap/49739
03126412
UB
4680 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
4681 and crtfastmath.o for Linux/x86.
d31fb329 4682
26965010
BS
46832011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4684
4685 * haifa-sched.c: Include "hashtab.h"
4686 (sched_no_dce): New global variable.
4687 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
4688 SHADOW_P): New macros.
4689 (last_clock_var, cycle_issued_insns): Move declarations.
4690 (must_backtrack): New static variable.
4691 (struct delay_pair): New structure.
4692 (delay_htab, delay_htab_i2): New static variables.
4693 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
4694 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
4695 functions.
4696 (dep_cost_1): If delay pairs exist, try to look up the insns and
4697 use the correct pair delay if we find them.
4698 (rank-for_schedule): Tweak priority for insns that must be scheduled
4699 soon to avoid backtracking.
4700 (queue_insn): Detect conditions which force backtracking.
4701 (ready_add): Likewise.
4702 (struct sched_block_state): Add member shadows_only_p.
4703 (struct haifa_save_data): New structure.
4704 (backtrack_queue): New static variable.
4705 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
4706 unschedule_insns_until, restore_last_backtrack_point,
4707 free_topmost_backtrack_point, free_backtrack_queue,
4708 estimate_insn_tick, estimate_shadow_tick): New functions.
4709 (prune_ready_list): New arg shadows_only_p. All callers changed.
4710 If true, remove everything that isn't SHADOW_P. Look up delay
03126412 4711 pairs and estimate ticks to avoid scheduling the first insn too early.
26965010
BS
4712 (verify_shadows): New function.
4713 (schedule_block): Add machinery to enable backtracking.
4714 (sched_init): Take sched_no_dce into account when setting
4715 DF_LR_RUN_DCE.
4716 (free_delay_pairs): New function.
4717 (init_h_i_d): Initialize INSN_EXACT_TICK.
4718 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
4719 * sched-deps.c (sd_unresolve_dep): New function.
4720 * sched-int. (struct haifa_sched_info): New fields save_state
4721 and restore_state.
4722 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
4723 feeds_backtrack_insn and shadow_p.
4724 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
4725 (sched_no_dce): Declare variable.
4726 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
4727 sd_unresolve_dep): Declare functions.
4728 * modulo-sched.c (sms_sched_info): Clear the two new fields.
4729 * sched-rgn.c (rgn_const_sched_info): Likewise.
4730 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4731 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
4732 (ebb_sched_info): Add them for the two new fields.
4733 (add_deps_for_risky_insns): Call add_delay_dependencies.
4734
1db75f6c
MM
47352011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
4736
4737 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
4738 Rename -mr11.
4739 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
4740 (rs6000_call_indirect_aix): Ditto.
4741 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
4742 (call_indirect_aix<ptrsize>_internal): Ditto.
4743 (call_indirect_aix<ptrsize>_nor11): Ditto.
4744 (call_indirect_aix<ptrsize>_internal2): Ditto.
4745 (call_value_indirect_aix<ptrsize>): Ditto.
4746 (call_value_indirect_aix<ptrsize>_internal): Ditto.
4747 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4748 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4749 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
4750
e2995714
JM
47512011-07-13 Jason Merrill <jason@redhat.com>
4752
4753 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
4754
4dfe3ad5
UW
47552011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4756
4757 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
4758 * config/spu/spu.md ("clrsb<mode>2"): New expander.
4759
dddc6762
TS
47602011-07-13 Thomas Schwinge <thomas@schwinge.name>
4761
4762 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
4763 * configure: Regenerate.
4764
b4d80e56
UW
47652011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4766
4767 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
4768 (asm_file_start): Remove.
4769 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
4770 free_bb_for_insn around code that modifies insns before
4771 restarting df analysis.
4772
9e34e53f
RO
47732011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4774
4775 PR target/49541
03126412 4776 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9e34e53f
RO
4777 (LINK_SPEC): ... here.
4778
51564684
BS
47792011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4780
4781 * haifa-sched.c (struct sched_block_state): New.
4782 (schedule_block): Move some local variables into such a structure.
4783
b3fe1584
RO
47842011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4785
4786 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
4787 * config/i386/t-crtpc: Remove.
4788 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4789 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
4790 tmake_file.
4791 (x86_64-*-darwin*): Likewise.
4792 (i[34567]86-*-linux*): Likewise.
4793 (x86_64-*-linux*): Likewise.
4794
4795 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
4796 Handle -mpc32, -mpc64, -mpc80.
4797
35d8090d
RO
47982011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4799
4800 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
4801 * config/alpha/t-crtfm: Remove.
4802 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
4803 * config/i386/t-crtfm: Remove.
4804 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
4805 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
4806 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
4807 * config/sparc/t-crtfm: Remove.
4808
4809 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
4810 (alpha*-*-freebsd*): Likewise.
4811 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
4812 (x86_64-*-darwin*): Likewise.
4813 (i[34567]86-*-linux*): Likewise.
4814 (x86_64-*-linux*): Likewise.
4815 (x86_64-*-mingw*): Likewise.
4816 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
4817 (ia64*-*-freebsd*): Likewise.
4818 (ia64*-*-linux*): Likewise.
4819 (mips64*-*-linux*): Likewise.
4820 (mips*-*-linux*): Likewise.
4821 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
4822 (sparc64-*-linux*): Likewise.
4823 (sparc64-*-freebsd*): Likewise.
4824
e141542e
RO
48252011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4826
4827 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
4828 * config/darwin-crt3.c: Move to ../libgcc/config.
4829 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4830 ($(T)crt3$(objext)): Remove.
4831 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
4832 ($(T)crt2$(objext)): Remove.
4833 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
4834 (powerpc64-*-darwin*): Likewise.
4835
72fbc381
L
48362011-07-13 H.J. Lu <hongjiu.lu@intel.com>
4837
03126412 4838 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
72fbc381
L
4839
4840 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
4841 (addsi_1_zext): This.
4842
727a65e6
BS
48432011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4844
4845 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
4846 * doc/tm.texi: Regenerate.
73451ae7 4847 * target.def (mergeable_rodata_prefix): New defhookpod.
727a65e6
BS
4848 * varasm.c (mergeable_string_section, mergeable_constant_section):
4849 Use it. Allocate name with alloca.
4850
cb77b6cf
L
48512011-07-13 H.J. Lu <hongjiu.lu@intel.com>
4852
4853 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
4854
36fc3799
RS
48552011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
4856
4857 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
4858 overlap check.
4859
953d0c90
RS
48602011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
4861
4862 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
4863 (count_type_elements): Delete.
4864 (complete_ctor_at_level_p): Declare.
4865 * expr.c (flexible_array_member_p): New function, split out from...
4866 (count_type_elements): ...here. Make static. Replace allow_flexarr
4867 parameter with for_ctor_p. When for_ctor_p is true, return the
4868 number of elements that should appear in the top-level constructor,
4869 otherwise return an estimate of the number of scalars.
4870 (categorize_ctor_elements): Replace p_must_clear with p_complete.
4871 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
4872 (complete_ctor_at_level_p): New function, borrowing union logic
4873 from old categorize_ctor_elements_1.
4874 (mostly_zeros_p): Return true if the constructor is not complete.
4875 (all_zeros_p): Update call to categorize_ctor_elements.
4876 * gimplify.c (gimplify_init_constructor): Update call to
4877 categorize_ctor_elements. Don't call count_type_elements.
4878 Unconditionally prevent clearing for variable-sized types,
4879 otherwise rely on categorize_ctor_elements to detect
4880 incomplete initializers.
4881
9111c715
RG
48822011-07-13 Richard Guenther <rguenther@suse.de>
4883
4884 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
4885 the final type is integral.
4886
a19af9c4
BS
48872011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4888
4889 * sched-int.h (struct _dep): Add member cost.
4890 (DEP_COST, UNKNOWN_DEP_COST): New macros.
4891 * sched-deps.c (init_dep_1): Initialize DEP_COST.
4892 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
4893 (sched_change_pattern): Reset it for dependent insns.
4894
2d1efe2d
RO
48952011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4896
4897 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
4898 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
4899 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
4900 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
4901 (CRT0_S, MCRT0_S): Remove.
4902 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
4903 Remove.
4904 (s-crt0): Remove.
4905 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
4906
e84a58ff
EB
49072011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4908
4909 * cse.c (insert_with_costs): Put semi-colon after empty loop body
4910 on the next line.
4911 * emit-rtl.c (push_to_sequence): Likewise.
4912 * haifa-sched.c (max_issue): Likewise.
4913 * matrix-reorg.c (add_allocation_site): Likewise.
4914 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4915 * reload.c (alternative_allows_const_pool_ref): Likewise.
4916 * sched-rgn.c (rgn_add_block): Likewise.
4917 (rgn_fix_recovery_cfg): Likewise.
4918 * tree.c (attribute_list_contained): Likewise.
4919
3a4ffde6
UB
49202011-07-12 Uros Bizjak <ubizjak@gmail.com>
4921
4922 * config/i386/i386.c: Tidy processor feature bitmasks.
4923 (m_P4_NOCONA): New.
4924
10b75750
AP
49252011-07-12 Andrew Pinski <pinskia@gmail.com>
4926
4927 PR rtl-opt/49474
4928 * cprop.c (find_implicit_sets): Correct the condition.
4929
4f42d714
RH
49302011-07-12 Richard Henderson <rth@redhat.com>
4931
4932 PR target/49713
4933 * dwarf2out.h (dwarf_frame_regnum): Remove.
4934 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
4935 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
4936 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
4937 (execute_dwarf2_frame): Initialize them.
4938 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
4939 users of the macros with the variables.
4940 (expand_builtin_dwarf_sp_column): Revert last change.
4941 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
4942 result of DWARF_FRAME_REGNUM into a local variable.
4943
3a5e4ad6
RH
49442011-07-12 Richard Henderson <rth@redhat.com>
4945
4946 PR target/49714
4947 * config/i386/i386.c (x86_output_mi_thunk): Use
4948 machopic_indirect_call_target instead of machopic_indirection_name
4949 directly.
4950
9e9bd455
LG
49512011-07-12 Laurent GUERBY <laurent@guerby.net>
4952 Eric Botcazou <ebotcazou@adacore.com>
4953
4954 * prefix.h: Wrap up in extern "C" block.
4955
4d652a18
HJ
49562011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
4957
4958 AMD bdver2 Enablement
4959 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
4960 (case ${target}): Add bdver2.
4961 * config/i386/driver-i386.c (host_detect_local_cpu): Let
4962 -march=native recognize bdver2 processors.
4963 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4964 bdver2 def_and_undef
4965 * config/i386/i386.c (struct processor_costs bdver2_cost): New
4966 bdver2 cost table.
4967 (m_BDVER2): New definition.
4968 (m_AMD_MULTIPLE): Includes m_BDVER2.
4969 (initial_ix86_tune_features): Add bdver2 tuning.
4970 (processor_target_table): Add bdver2 entry.
4971 (static const char *const cpu_names): Add bdver2 entry.
4972 (ix86_option_override_internal): Add bdver2 instruction sets.
4973 (ix86_issue_rate): Add bdver2.
4974 (ix86_adjust_cost): Add bdver2.
4975 (has_dispatch): Add bdver2.
4976 * config/i386/i386.h (TARGET_BDVER2): New definition.
4977 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
4978 (enum processor_type): Add PROCESSOR_BDVER2.
4979 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
4980 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
4981 description.
4982
5756d08c
RH
49832011-07-12 Richard Henderson <rth@redhat.com>
4984
4985 PR target/49714
4986 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
4987 destination address in memory on some paths.
4988
123148b5
BS
49892011-07-12 Bernd Schmidt <bernds@codesourcery.com>
4990
4991 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
4992 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
4993 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
4994 * function.c (locate_and_pad_parm): Take it into account.
4995 * target.def (function_arg_round_boundary): New hook.
4996 * targhooks.c (default_function_arg_round_boundary): New function.
4997 * targhooks.h (default_function_arg_round_boundary): Declare.
4998 * doc/tm.texi: Regenerate.
4999
b7a83ad8
RG
50002011-07-12 Richard Guenther <rguenther@suse.de>
5001
5002 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
5003 Do not perform no-op changes.
5004
12c4ecb1
RS
50052011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
5006
5007 * config/arm/predicates.md (neon_struct_operand): Make a normal
5008 predicate.
5009 (neon_struct_or_register_operand): New predicate.
5010 * config/arm/neon.md (movmisalign<mode>): Replace predicates
5011 with neon_struct_or_register_operand.
5012 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
5013 neon_struct_operand instead of memory_operand.
5014
ab079773
MJ
50152011-07-12 Martin Jambor <mjambor@suse.cz>
5016
5017 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
5018 * cgraph.c (cgraph_get_node_or_alias): Removed.
5019 (change_decl_assembler_name): Changed all calls to
5020 cgraph_get_node_or_alias to a call to cgraph_get_node.
5021 (cgraph_make_decl_local): Likewise.
5022 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
5023 * varasm.c (default_binds_local_p_1): Likewise.
5024 (decl_binds_to_current_def_p): Likewise.
5025
d5fed62d
JJ
50262011-07-12 Jakub Jelinek <jakub@redhat.com>
5027
5028 PR tree-optimization/49712
5029 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
5030
c0b6224a
BS
50312011-07-11 Bernd Schmidt <bernds@codesourcery.com>
5032
5033 * genautomata.c (add_arc): Return void. All callers changed.
5034 (make_automaton): Remove dead code.
5035
7263c6d7
RH
50362011-07-11 Richard Henderson <rth@redhat.com>
5037
5038 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
5039 (DW_FRAME_POINTER_REGNUM): New.
5040 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
5041 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
5042 (dwf_regno): New.
5043 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
5044 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
5045 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
5046 Use it.
5047 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
5048 * dwarf2out.h (dwarf_frame_regnum): New.
5049 (struct cfa_loc): Document the domain of the reg member.
5050
f9610d20
UB
50512011-07-11 Uros Bizjak <ubizjak@gmail.com>
5052
5053 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
5054 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
5055
96ae7458
JJ
50562011-07-11 Jakub Jelinek <jakub@redhat.com>
5057
5058 PR debug/49676
5059 * dwarf2out.c (int_shift_loc_descriptor): New function.
5060 (int_loc_descriptor): If shorter, emit i as
5061 (i >> shift), shift, DW_OP_shl for suitable shift value.
5062 Similarly, try to optimize large negative values using
5063 DW_OP_neg of a positive value if shorter.
5064 (size_of_int_shift_loc_descriptor): New function.
5065 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
5066 changes.
5067 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
5068 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
5069 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
5070 is shorter.
5071 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
5072 addend as added DW_OP_plus if it is shorter.
5073
feffaec4
RO
50742011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5075
5076 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
5077 (DTORS_SECTION_ASM_OP): Define.
5078
2d8d5935
RO
50792011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5080
5081 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
5082 * config/t-dfprules: Move to ../libgcc/config.
5083 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5084 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5085 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
5086 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
5087 Likewise.
5088 (i[34567]86-*-cygwin*): Likewise.
5089 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5090 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
5091 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
5092 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
5093 D64PBIT_FUNCS, D128PBIT_FUNCS.
5094
dcc95c20
RG
50952011-07-11 Richard Guenther <rguenther@suse.de>
5096
5097 * tree-vrp.c (simplify_conversion_using_ranges): Manually
5098 translate the source value-range through the conversion chain.
5099
28164eed
RS
51002011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
5101
5102 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
5103
f3054223
AL
51042011-07-11 Arthur Loiret <aloiret@debian.org>
5105
5106 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
5107 a bi-arch compiler defaulting to 31-bit. In this case:
5108 (tmake_file): Add s390/t-linux64.
5109 * doc/install.texi: Add s390-linux to the list of targets supporting
5110 --enable-targets=all.
5111
bd5ab709
AL
51122011-07-11 Arthur Loiret <aloiret@debian.org>
5113 Matthias Klose <doko@debian.org>
5114
5115 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
5116 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
5117 (tm_file): Add mips/linux64.h.
5118 (tmake_file): Add mips/t-linux64.
5119 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5120 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
5121 instead of hardcoded mabi=n32.
5122 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5123 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5124 convention.
5125
d3b7e946
AK
51262011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5127
5128 * passes.c (init_optimization_passes): Add invariant motion pass
5129 after induction variable optimization.
5130
7e4ec472 51312011-07-11 Georg-Johann Lay <avr@gjlay.de>
f9610d20 5132
7e4ec472
GJL
5133 PR target/39633
5134 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
5135 offsets 1..5 set cc0 in a usable way.
5136
0e65e631
RG
51372011-07-11 Romain Geissler <romain.geissler@gmail.com>
5138
5139 * tree.h (call_expr_arg): Remove.
5140 (call_expr_argp): Likewise.
5141
18970372
EB
51422011-07-11 Eric Botcazou <ebotcazou@adacore.com>
5143
5144 * config/sparc/sparc.md (save_register_window_1): Rename to...
5145 (window_save): ...this.
5146 * config/sparc/sparc.c (emit_save_register_window): Rename to...
5147 (emit_window_save): ...this.
5148 (sparc_expand_prologue): Adjust to above renaming.
5149
9e419e38
L
51502011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5151
5152 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
5153 of movabs for x32.
5154
3db72de3
RH
51552011-07-10 Richard Henderson <rth@redhat.com>
5156
5157 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
5158 run final, instead of emitting text directly.
5159
a1f91bca
L
51602011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5161
5162 * config/i386/i386.c (ix86_option_override_internal): Turn on
5163 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
5164 small PIC models for TARGET_X32.
5165
a50023f9
HPN
51662011-07-10 Hans-Peter Nilsson <hp@axis.com>
5167
9a0b29f0
HPN
5168 PR target/49684
5169 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
5170 $(LIBGCC2_CFLAGS).
5171
a50023f9
HPN
5172 PR bootstrap/49680
5173 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
5174 stray notes and debug insns by using prev_nonnote_nondebug_insn
5175 instead of PREV_INSN.
5176
948d330e
RH
51772011-07-09 Richard Henderson <rth@redhat.com>
5178
5179 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
5180 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
5181 * dwarf2out.c: ... here.
5182 (output_all_cfis): Remove.
5183 (dwarf2out_switch_text_section): Use output_cfis directly.
5184 (size_of_locs): Export.
5185 (output_loc_sequence, output_loc_sequence_raw): Export.
5186 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
5187 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
5188 output_cfa_loc_raw): Move to ...
5189 * dwarfcfi.c: ... here.
5190 * dwarf2out.h: Update decls.
5191
db42e39d
RH
51922011-07-09 Richard Henderson <rth@redhat.com>
5193
5194 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
5195 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
5196 * dwarf2cfi.c: ... here.
5197 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
5198 (DWARF_ROUND, DWARF_CIE_ID): Remove.
5199 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
5200 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
5201 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
5202
a8e5c0e7
RH
52032011-07-09 Richard Henderson <rth@redhat.com>
5204
5205 * dwarf2cfi.c (cie_return_save): New.
5206 (queue_reg_save): Use compare_reg_or_pc.
5207 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
5208 (dwarf2out_frame_debug_expr): Likewise.
5209 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
5210 (initial_return_save): Likewise.
5211 (execute_dwarf2_frame): Save and restore initial return save from
5212 the cie to the fde.
5213 * config/mips/mips.c (mips_frame_set): Remove special case for
5214 DWARF_FRAME_RETURN_COLUMN.
5215
4a8ee122
RH
52162011-07-09 Richard Henderson <rth@redhat.com>
5217
5218 * dwarf2cfi.c (lookup_cfa): Remove.
5219 (execute_dwarf2_frame): Assert queues are empty on entry.
5220 Setup initial cfa directly, not via lookup_cfa.
5221 Don't clear args_size state here.
5222
3edb53aa
RH
52232011-07-09 Richard Henderson <rth@redhat.com>
5224
5225 * dwarf2cfi.c (add_cfi_vec): New.
5226 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
5227 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
5228 (execute_dwarf2_frame): Set add_cfi_vec.
5229
ded49a7f
RH
52302011-07-09 Richard Henderson <rth@redhat.com>
5231
5232 * defaults.h (ASM_COMMENT_START): Move here...
5233 * dwarf2asm.c: ... from here.
5234 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
5235 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
5236 * varasm.c: Likewise.
5237
45fba6d1
RH
52382011-07-09 Richard Henderson <rth@redhat.com>
5239
5240 PR debug/49686
5241 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
5242 (create_cfi_notes): ... do it here instead.
5243
5b696ba2
JJ
52442011-07-09 Jakub Jelinek <jakub@redhat.com>
5245
5246 PR debug/49676
5247 * dwarf2out.c (size_of_int_loc_descriptor): New function.
5248 (address_of_int_loc_descriptor): Use it.
f9610d20 5249 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5b696ba2 5250
8662b2ba
RH
52512011-07-09 Richard Henderson <rth@redhat.com>
5252
5253 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
5254 (prologue, epilogue): New.
5255 (return, *rts): New.
5256 (blockage, setd, seti): New.
5257 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
5258 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
5259 (pdp11_saved_regno): New.
5260 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
5261 generate rtl instead of text.
5262 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
5263 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
5264 * config/pdp11/pdp11-protos.h: Update.
5265
28b21ebb
RH
52662011-07-09 Richard Henderson <rth@redhat.com>
5267
5268 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
5269 try to insert an rtl prologue here.
5270 (rs6000_output_function_epilogue): Similarly.
5271 * config/rs6000/rs6000.md (prologue): Emit a barrier to
5272 satisfy !TARGET_SCHED_PROLOG.
5273 (epilogue, sibcall_epilogue): Likewise.
5274
0a222ba7
EB
52752011-07-09 Eric Botcazou <ebotcazou@adacore.com>
5276
5277 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
5278 (FP_REG_P): Delete.
5279 (IN_OR_GLOBAL_P): Likewise.
5280
2fda8e14
JM
52812011-07-08 Jason Merrill <jason@redhat.com>
5282
4063e61b
JM
5283 PR c++/45437
5284 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
5285 compound assignment.
5286
2fda8e14
JM
5287 * cgraph.c (cgraph_add_to_same_comdat_group): New.
5288 * cgraph.h: Declare it.
5289 * ipa.c (function_and_variable_visibility): Make sure thunks
5290 have the right visibility.
5291
830f11fe
RH
52922011-07-08 Richard Henderson <rth@redhat.com>
5293
5294 PR bootstrap/49680
5295 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
5296 any tablejump vector.
5297
965b2557
RH
5298 PR bootstrap/49680
5299 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
5300 end of the prologue.
5301
70db9095
JJ
53022011-07-08 Jakub Jelinek <jakub@redhat.com>
5303
5304 PR target/49621
5305 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
f9610d20 5306 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
70db9095
JJ
5307 * config/rs6000/vector.md (vector_select_<mode>,
5308 vector_select_<mode>_uns): Change second operand of NE to
5309 CONST0_RTX (<MODE>mode) instead of const0_rtx.
5310 * config/rs6000/altivec.md (*altivec_vsel<mode>,
5311 *altivec_vsel<mode>_uns): Expect second operand of NE to be
5312 zero_constant of the corresponding vector mode.
5313 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
5314 Likewise.
5315
e92c5020
SP
53162011-07-08 Sebastian Pop <sebastian.pop@amd.com>
5317
5318 * graphite-dependences.c (build_alias_set_powerset): Remove
5319 continue from loop, add one more assert.
5320
3e4f8484 53212011-07-08 Georg-Johann Lay <avr@gjlay.de>
f9610d20 5322
3e4f8484
GJL
5323 PR target/46779
5324 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
5325 In particular, allow 8-bit values in r28 and r29.
5326 (avr_hard_regno_scratch_ok): Disallow any register that might be
5327 part of the frame pointer.
5328 (avr_hard_regno_rename_ok): Same.
5329 (avr_legitimate_address_p): Don't allow SUBREGs.
5330
0094f21b
JB
53312011-07-08 Julian Brown <julian@codesourcery.com>
5332
5333 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
5334 big-endian mode.
5335 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
5336 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
5337 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
5338 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
5339 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
5340 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
5341 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
5342 registers in big-endian mode.
5343
9ae60101
BS
53442011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5345
5346 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
5347 in terms of another.
5348 (write_attr_value): Write a cast if necessary.
5349
c0a6a1ef
BS
5350 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
5351 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
5352 (REG_WORDS_BIG_ENDIAN): Document.
5353 * doc/tm.texi: Regenerate.
5354 * reload.c (operands_match_p): Take it into account.
5355 (reload_adjust_reg_for_mode): Likewise.
5356 * rtlanal.c (subreg_get_info): Likewise.
5357
b862187a
RG
53582011-07-08 Richard Guenther <rguenther@suse.de>
5359
5360 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
5361 folding.
5362
e8e8c74b
KT
53632011-07-08 Kai Tietz <ktietz@redhat.com>
5364
5365 * fold-const.c (fold_truth_andor): Factored out truth_andor
5366 label from fold_binary as function.
5367 (fold_binary_loc): Replace truth_andor lable
5368 by function fold_truth_andor.
5369
6c3cb698
KY
53702011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
5371
5372 PR middle-end/49519
5373 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
5374 check if address is stored in register. If so - give up.
5375 (check_sibcall_argument_overlap_1): Do not perform check of
5376 overlapping when it is call to address.
5377
7d8d6d73 53782011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 5379
7d8d6d73
GJL
5380 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
5381 of magic '31'.
5382
69660a70
BS
53832011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5384
5385 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
5386 GET_MODE_BITSIZE where appropriate.
5387 (widen_leading, expand_parity, expand_ctz, expand_ffs,
5388 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
5389 expand_float, expand_fix): Likewise.
5390 * expr.c (convert_move, convert_modes, expand_expr_real_2,
5391 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
5392 * stor-layout.c (get_mode_bounds): Likewise.
5393 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
5394 Likewise.
5395 * convert.c (convert_to_integer): Likewise.
5396 * expmed.c (expand_shift_1): Likewise.
5397
86cdf393
BS
5398 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
5399 a bitsize.
5400
0d44736e
BS
5401 * optabs.c (expand_binop): Tighten conditions for doubleword
5402 expansions.
f9610d20 5403 (widen_bswap): Assert that mode bitsize and precision are the same.
0d44736e
BS
5404 * stor-layout.c (get_best_mode): Skip modes that have lower
5405 precision than bitsize.
5406 * recog.c (simplify_while_replacing): Assert that bitsize and
5407 precision are the same.
5408
2c50b2c3
RO
54092011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5410
5411 * Makefile.in (LIBGCOV): Remove.
5412 (libgcc.mvars): Remove LIBGCOV.
5413 * libgov.c: Move to ../libgcc.
5414
a039d7c2
RO
54152011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5416
5417 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
5418
e923ef41
MJ
54192011-07-08 Martin Jambor <mjambor@suse.cz>
5420
5421 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
5422 is too big for total scalarization.
5423
b709e189
RH
54242011-07-07 Richard Henderson <rth@redhat.com>
5425
5426 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
5427 (DBX_DEBUGGING_INFO): Undef.
5428
2867fa7c
RH
54292011-07-07 Richard Henderson <rth@redhat.com>
5430
5431 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
5432 Handle some opcodes specially for debugging.
5433 * print-rtl.c: Include dwarf2out.h
5434 (print_rtx): Handle NOTE_INSN_CFI.
5435 * Makefile.in (print-rtl.o): Update.
5436
7644b3c7
RH
54372011-07-07 Richard Henderson <rth@redhat.com>
5438
5439 * tree-pass.h (pass_dwarf2_frame): Declare.
5440 * passes.c (init_optimization_passes): Add it.
5441 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
5442 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
5443 make static, do not call add_cfis_to_fde.
5444 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
5445 dwarf2out_frame_init): Merge into...
5446 (execute_dwarf2_frame): ... here. New function.
5447 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
5448 saved_do_cfi_asm to a tri-state variable.
5449 (gate_dwarf2_frame, pass_dwarf2_frame): New.
5450 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
5451 if it has yet to be done. Don't call dwarf2cfi_function_init.
5452 * dwarf2out.h, debug.h: Update decls.
5453 * final.c (final_start_function): Don't call
5454 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
5455 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
5456 * toplev.c (lang_dependent_init): Likewise.
5457
a518b996
RH
54582011-07-07 Richard Henderson <rth@redhat.com>
5459
5460 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
5461 FDE_TABLE_INCREMENT): Replace with...
5462 (fde_vec): ... this, a new vector.
5463 (current_fde): Remove. Replace all users with cfun->fde.
5464 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
5465 (size_of_aranges, dwarf2out_finish): Likewise.
5466 (dwarf2out_alloc_current_fde): Break out from ...
5467 (dwarf2out_begin_prologue): ... here.
5468 (dwarf2out_frame_init): Remove.
5469 * dwarf2cfi.c: Update all users of current_fde.
5470 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
5471 * dwarf2out.h: Update decls.
5472 (dw_fde_node): Add fde_index member.
5473 * function.h (struct function): Add fde member.
5474
89e25f95
BS
54752011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5476 Richard Henderson <rth@redhat.com>
5477
5478 * dwarf2cfi.c (add_cfi): Remove.
5479 (dwarf2out_cfi_label): Remove force argument. Only generate the
5480 label name.
5481 (add_fde_cfi): Simplify the different code paths.
5482 (add_cie_cfi): New.
5483 (old_cfa, old_cfa_remember): New.
5484 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
5485 (last_reg_save_label): Remove.
5486 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
5487 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5488 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5489 dwarf2out_frame_debug_cfa_expression,
5490 dwarf2out_frame_debug_cfa_restore,
5491 dwarf2out_frame_debug_cfa_window_save,
5492 dwarf2out_frame_debug_expr): Remove label parameter.
5493 (cfi_label_required_p, add_cfis_to_fde): New.
5494 (dwarf2out_frame_debug_after_prologue): New.
5495 (dwarf2cfi_frame_init): Initialize old_cfa.
5496 (dwarf2out_frame_debug_restore_state): Likewise.
5497 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
5498 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
5499 * final.c (final_start_function): Call
5500 dwarf2out_frame_debug_after_prologue.
5501
bc5612ed
BS
55022011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5503 Richard Henderson <rth@redhat.com>
5504
5505 * dwarf2cfi.c (cfi_insn): New.
5506 (dwarf2out_cfi_label): Don't emit cfi label here.
5507 (add_fde_cfi): Create a NOTE_INSN_CFI.
5508 (dwarf2out_frame_debug): Setup cfi_insn.
5509 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
5510 (dwarf2out_cfi_begin_epilogue): Make static.
5511 (dwarf2out_frame_debug_restore_state): Make static.
5512 * dwarf2out.c (output_cfi_directive): Make static.
5513 (dwarf2out_emit_cfi): New.
5514 * dwarf2out.h: Update.
5515 * final.c (final): Remove CFI notes.
5516 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
5517 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
5518 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
5519 * insn-notes.def (NOTE_INSN_CFI): New.
5520 (NOTE_INSN_CFI_LABEL): New.
5521 * rtl.h (union rtunion_def): Add rt_cfi member.
5522 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
5523
647a1567
RH
55242011-07-07 Richard Henderson <rth@redhat.com>
5525
5526 * dwarf2cfi.c: New file.
5527 * Makefile.in (OBJS): Add it.
5528 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
5529 * gengtype.c (open_base_files): Include dwarf2out.h.
5530 * coretypes.h (enum var_init_status): Move from ...
5531 * rtl.h: ... here.
5532 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
5533 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
5534 expand_builtin_dwarf_sp_column, init_return_column_size,
5535 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
5536 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
5537 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
5538 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
5539 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
5540 compute_barrier_args_size, dwarf2out_args_size,
5541 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
5542 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
5543 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
5544 queue_reg_save, dwarf2out_flush_queued_reg_saves,
5545 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
5546 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5547 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5548 dwarf2out_frame_debug_cfa_expression,
5549 dwarf2out_frame_debug_cfa_restore,
5550 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
5551 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
5552 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
5553 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
5554 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
5555 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
5556 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
5557 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
5558 dw_loc_descr_node): Move to dwarf2out.h.
5559 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
5560 mem_loc_descriptor): Export.
5561 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
5562 (dwarf2out_frame_init): Extract CIE generation code to
5563 dwarf2cfi_frame_init.
5564
b286d9ed
EB
55652011-07-07 Eric Botcazou <ebotcazou@adacore.com>
5566
5567 PR target/49660
5568 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
5569 MASK_V8PLUS, remove commented out flag and reorder.
5570
c4603e7c
JJ
55712011-07-07 Jakub Jelinek <jakub@redhat.com>
5572
5573 PR c/49644
5574 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
5575 one non-complex and one complex argument, call c_save_expr on both
5576 operands.
5577
81361831
MJ
55782011-07-07 Martin Jambor <mjambor@suse.cz>
5579
5580 PR middle-end/49495
5581 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
5582 (verify_cgraph_node): Some functinality moved to
5583 verify_edge_corresponds_to_fndecl, call it.
5584
1e4b2746
JM
55852011-07-07 Joseph Myers <joseph@codesourcery.com>
5586
5587 * config.gcc (*local*): Remove.
5588 * doc/install-old.texi: Don't mention local configurations.
5589
d7ff1e11
JJ
55902011-07-07 Jakub Jelinek <jakub@redhat.com>
5591
5592 PR debug/49522
5593 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
5594 referencing debug insns that have been reset.
5595 (dead_debug_insert_before): Don't assert reg is non-NULL,
5596 instead return immediately if it is NULL.
5597
2492731a
JM
55982011-07-07 Joseph Myers <joseph@codesourcery.com>
5599
f9610d20 5600 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2492731a 5601
9d9c740d
BS
56022011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5603
5604 * hw-doloop.c: New file.
5605 * hw-doloop.h: New file.
5606 * Makefile.in (OBJS): Add hw-doloop.o.
5607 (hw-doloop.o): New rule.
5608 ($(obj_out_file)): Add hw-doloop.h dependency.
5609 * config/bfin/bfin.c: Include "hw-doloop.h".
5610 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
5611 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
5612 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
5613 type changed to hwloop_info. Return bool, true if the loop was
5614 successfully optimized. Remove code that was moved to
5615 hw-doloop.c, and adjust other parts.
5616 (hwloop_fail): New static function, containing parts that used
5617 to be in bfin_optimize_loop.
5618 (bfin_discover_loop, bfin_discover_loops, free_loops,
5619 bfin_reorder_loops): Remove.
5620 (hwloop_pattern_reg): New static function.
5621 (bfin_doloop_hooks): New variable.
5622 (bfin_reorg_loops): Remove most code, call reorg_loops.
5623 * config/bfin/bfin.md (doloop_end splitter): Also enable if
5624 loop counter is a memory_operand.
5625
f0ea7581
L
56262011-07-07 H.J. Lu <hongjiu.lu@intel.com>
5627
f9610d20 5628 * config.gcc: Support --with-multilib-list for x86 Linux targets.
f0ea7581
L
5629
5630 * configure.ac: Mention x86-64 for --with-multilib-list.
5631 * configure: Regenerated.
5632
5633 * config/i386/gnu-user64.h (SPEC_64): Support x32.
5634 (SPEC_32): Likewise.
5635 (ASM_SPEC): Likewise.
5636 (LINK_SPEC): Likewise.
5637 (TARGET_THREAD_SSP_OFFSET): Likewise.
5638 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
5639 (SPEC_X32): New.
5640
5641 * config/i386/i386.h (TARGET_X32): New.
5642 (TARGET_LP64): New.
5643 (LONG_TYPE_SIZE): Likewise.
5644 (POINTER_SIZE): Likewise.
5645 (POINTERS_EXTEND_UNSIGNED): Likewise.
5646 (OPT_ARCH64): Support x32.
5647 (OPT_ARCH32): Likewise.
5648
5649 * config/i386/i386.opt (mx32): New.
5650
5651 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
5652 (GLIBC_DYNAMIC_LINKERX32): Likewise.
5653 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
5654 (GLIBC_DYNAMIC_LINKERX32): Likewise.
5655
5656 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
5657 (BIONIC_DYNAMIC_LINKERX32): Likewise.
5658 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
5659
5660 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
5661
f9610d20 5662 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
f0ea7581
L
5663
5664 * doc/invoke.texi: Document -mx32.
5665
38460025
RS
56662011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
5667
5668 * doc/invoke.texi (mwords-little-endian): Deprecate.
5669 * config/arm/arm.opt (mwords-little-endian): Likewise.
5670 * config/arm/arm.c (arm_option_override): Warn about the deprecation
5671 of -mwords-little-endian.
5672
3f125532
RS
56732011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
5674
5675 * reload1.c (choose_reload_regs): Use mode sizes to check whether
5676 an old reload register completely defines the required value.
5677
bbc210ab
RG
56782011-07-07 Richard Guenther <rguenther@suse.de>
5679
5680 * fold-const.c (fold_unary_loc): Do not strip sign-changes
5681 for NEGATE_EXPR.
5682
29c5134a
RG
56832011-07-07 Richard Guenther <rguenther@suse.de>
5684
5685 * tree-vrp.c (simplify_conversion_using_ranges): New function.
5686 (simplify_stmt_using_ranges): Call it.
5687
0816a42a
KT
56882011-07-07 Kai Tietz <ktietz@redhat.com>
5689
5690 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
5691 (lookup_logical_inverted_value): Likewise.
5692 (simplify_bitwise_binary_1): Likewise.
5693 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
5694
3ce9f090
JM
56952011-07-07 Joseph Myers <joseph@codesourcery.com>
5696
5697 * gcc.c (%[Spec]): Don't document.
5698 (struct spec_list): Update comment.
5699 (do_spec_1): Don't handle %[Spec].
5700 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
5701
41dfca87
JM
57022011-07-07 Joseph Myers <joseph@codesourcery.com>
5703
5704 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
5705 default based on TARGET_ASM_NAMED_SECTION.
5706 * common/common-target.def (have_named_sections): Default to true.
5707 * common/config/default-common.c: Don't include tm.h.
5708 * common/config/picochip/picochip-common.c
5709 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
5710 * common/config/m32c/m32c-common.c: Remove.
5711 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
f9610d20
UB
5712 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5713 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5714 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 5715 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
f9610d20
UB
5716 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5717 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 5718
19c44640
JJ
57192011-07-07 Jakub Jelinek <jakub@redhat.com>
5720
5721 PR middle-end/49640
f9610d20
UB
5722 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
5723 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19c44640 5724
891a2e42
RO
57252011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5726
5727 PR libmudflap/49550
5728 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
5729
fbdd5d87
RO
57302011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5731
5732 PR target/39150
5733 * configure.ac (gcc_cv_as_hidden): Also accept
5734 x86_64-*-solaris2.1[0-9]*.
5735 (gcc_cv_as_cfi_directive): Likewise.
5736 (gcc_cv_as_comdat_group_group): Likewise.
5737 (set_have_as_tls): Likewise.
5738 * configure: Regenerate.
5739 * config.gcc (i[34567]86-*-solaris2*): Also handle
5740 x86_64-*-solaris2.1[0-9]*.
5741 * config.host (i[34567]86-*-solaris2*): Likewise.
5742 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
5743 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
5744 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
5745 (TARGET_LD_EMULATION): Use it.
5746 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
5747 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
5748 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
5749 (ASM_CPU64_DEFAULT_SPEC): Define.
5750 (ASM_CPU_SPEC): Use %(asm_cpu_default).
5751 (ASM_SPEC): Redefine.
5752 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
5753 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
f9610d20 5754 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
fbdd5d87
RO
5755 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
5756 configuration.
5757 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
5758
fcf7471a
RO
57592011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5760
5761 * config/sol2.h (ASM_SPEC): Split into ...
5762 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
5763 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
5764 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
5765 (ASM_SPEC): Use ASM_SPEC_BASE.
5766 * config/sparc/sol2.h (ASM_SPEC): Redefine.
5767
1e6a67d1 57682011-07-07 Georg-Johann Lay <avr@gjlay.de>
f9610d20 5769
1e6a67d1
GJL
5770 * config/avr/avr.md (*reload_insi): Change predicate #1 to
5771 const_int_operand. Ditto for peep2 producing this insn.
5772 Add argument to output_reload_insisf call.
5773 (*movsi,*movsf): Add argument to output_movsisf call.
5774 (*reload_insf): New insn and new peep2 to produce it.
5775 * config/avr/avr-protos.h (output_movsisf): Change prototype.
5776 (output_reload_insisf): Change prototype.
5777 * config/avr/avr.c (avr_asm_len): New function.
5778 (output_reload_insisf): Rewrite.
5779 (output_movsisf): Change prototype. output_reload_insisf for
5780 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
5781 (adjust_insn_length): Add argument to output_movsisf and
5782 output_reload_insisf call.
5783
6a4bdc79
BS
57842011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5785
5786 * emit-rtl.c (paradoxical_subreg_p): New function.
5787 * rtl.h (paradoxical_subreg_p): Declare.
5788 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
5789 apply_distributive_law, simplify_comparison, simplify_set): Use it.
5790 * cse.c (record_jump_cond, cse_insn): Likewise.
5791 * expr.c (force_operand): Likewise.
5792 * rtlanal.c (num_sign_bit_copies1): Likewise.
5793 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
5794 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
5795 (push_reload): Use precision to check for paradoxical subregs.
5796 * expmed.c (extract_bit_field_1): Likewise.
5797
46c9550f
BS
5798 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
5799 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
5800 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
5801 simplify_set, simplify_logical, expand_compound_operation,
5802 make_extraction, force_to_mode, if_then_else_cond, extended_count,
5803 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
5804 record_value_for_reg): Likewise.
5805 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
5806 * simplify-rtx. c (simplify_unary_operation_1,
5807 simplify_binary_operation_1, simplify_const_relational_operation):
5808 Likewise.
5809
5511bc5a
BS
5810 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
5811 instead of GET_MODE_BITSIZE where appropriate.
5812 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
5813 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
5814 init_num_sign_bit_copies_in_rep): Likewise.
5815 * cse.c (fold_rtx, cse_insn): Likewise.
5816 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
5817 * simplify-rtx.c (simplify_unary_operation_1,
5818 simplify_const_unary_operation, simplify_binary_operation_1,
5819 simplify_const_binary_operation, simplify_ternary_operation,
5820 simplify_const_relational_operation, simplify_subreg): Likewise.
5821 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
5822 simplify_if_then_else, simplify_set, expand_compound_operation,
5823 expand_field_assignment, make_extraction, if_then_else_cond,
5824 make_compound_operation, force_to_mode, make_field_assignment,
5825 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
5826 extended_count, try_widen_shift_mode, simplify_shift_const_1,
5827 simplify_comparison, record_promoted_value, simplify_compare_const,
5828 record_dead_and_set_regs_1): Likewise.
5829
d58c1a38
BS
5830 Revert:
5831 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
5832 shift_truncation_mask hook instead of performing modulo by width.
5833 Compare against mode precision, not bitsize.
d58c1a38 5834 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 5835 Use shift_truncation_mask instead of constructing the value manually.
d58c1a38 5836
76594d53
MM
58372011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5838
5839 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
5840 declaration.
5841 (rs6000_save_toc_in_prologue_p): Ditto.
5842
5843 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
5844 up the static chain (r11) during indirect function calls.
5845 (-msave-toc-indirect): New undocumented debug switch.
5846
5847 * config/rs6000/rs6000.c (struct machine_function): Add
5848 save_toc_in_prologue field to note whether the prologue needs to
5849 save the TOC value in the reserved stack location.
5850 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
5851 to save the TOC in the prologue, do so.
5852 (rs6000_trampoline_init): Don't allow creating AIX style
5853 trampolines if -mno-r11 is in effect.
5854 (rs6000_call_indirect_aix): New function to create AIX style
5855 indirect calls, adding support for -mno-r11 to suppress loading
5856 the static chain, and saving the TOC in the prologue instead of
5857 the call body.
5858 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
5859 TOC in the prologue.
5860
5861 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
5862 register numbers.
5863 (TOC_REGNUM): Ditto.
5864 (STATIC_CHAIN_REGNUM): Ditto.
5865 (ARG_POINTER_REGNUM): Ditto.
5866 (SFP_REGNO): Delete, unused.
5867 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
5868 function descriptor offsets.
5869 (TOC_SAVE_OFFSET_64BIT): Ditto.
5870 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
5871 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
5872 (AIX_FUNC_DESC_SC_32BIT): Ditto.
5873 (AIX_FUNC_DESC_SC_64BIT): Ditto.
f9610d20
UB
5874 (ptrload): New mode attribute for the appropriate load of a pointer.
5875 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
76594d53
MM
5876 (call_indirect_aix64): Ditto.
5877 (call_value_indirect_aix32): Ditto.
5878 (call_value_indirect_aix64): Ditto.
5879 (call_indirect_nonlocal_aix32_internal): Ditto.
5880 (call_indirect_nonlocal_aix32): Ditto.
5881 (call_indirect_nonlocal_aix64_internal): Ditto.
5882 (call_indirect_nonlocal_aix64): Ditto.
5883 (call): Rewrite AIX indirect function calls. Add support for
5884 eliminating the static chain, and for moving the save of the TOC
5885 to the function prologue.
5886 (call_value): Ditto.
5887 (call_indirect_aix<ptrsize>): Ditto.
5888 (call_indirect_aix<ptrsize>_internal): Ditto.
5889 (call_indirect_aix<ptrsize>_internal2): Ditto.
5890 (call_indirect_aix<ptrsize>_nor11): Ditto.
5891 (call_value_indirect_aix<ptrsize>): Ditto.
5892 (call_value_indirect_aix<ptrsize>_internal): Ditto.
5893 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5894 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5895 (call_nonlocal_aix32): Relocate in the rs6000.md file.
5896 (call_nonlocal_aix64): Ditto.
5897
5898 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
5899 -mno-r11 documentation.
5900
49d6830d
JW
59012011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5902
5903 PR other/49658
5904 * doc/extend.texi (Compound Literals): Fix typo.
5905
c884924f
JG
59062011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
5907
f9610d20 5908 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
c884924f 5909
bf588455
BS
59102011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
5911
5912 * configure.ac (plugin-version.h): Generate
5913 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
5914 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
5915 macros.
5916
5917 * configure: Regenerate.
5918
5919 * doc/plugins.texi (Building GCC plugins): Mention
5920 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
5921
d0edd768
BS
59222011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5923
5924 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
5925 * combine.c (make_extraction, gen_lowpart_or_truncate,
5926 apply_distributive_law, simplify_comparison,
5927 reg_truncated_to_mode, record_truncated_value): Use it.
5928 * cse.c (notreg_cost): Likewise.
5929 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
5930 * expr.c (convert_move, convert_modes): Likewise.
5931 * optabs.c (expand_binop, expand_unop): Likewise.
5932 * postreload.c (move2add_last_label): Likewise.
5933 * regmove.c (optimize_reg_copy_3): Likewise.
5934 * rtlhooks.c (gen_lowpart_general): Likewise.
5935 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5936
e5cabdfb
JM
59372011-07-06 Joseph Myers <joseph@codesourcery.com>
5938
5939 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
5940
2d0c270f
BS
59412011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5942
5943 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
5944 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
5945 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
5946 (simplify_const_unary_operation, simplify_binary_operation_1,
f9610d20
UB
5947 simplify_const_binary_operation, simplify_const_relational_operation):
5948 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2d0c270f
BS
5949 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
5950 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
5951 simplify_shift_const_1, simplify_comparison): Likewise.
5952 * expr.c (convert_modes): Likewise.
5953 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
f9610d20 5954 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2d0c270f
BS
5955 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
5956
f9c08345
BS
5957 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
5958
6d6c9525
RG
59592011-07-06 Richard Guenther <rguenther@suse.de>
5960
5961 PR tree-optimization/49645
5962 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
5963 register variables.
5964 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
5965 in type qualification here ...
5966 (copy_reference_ops_from_ref): ... not here.
5967 (vn_reference_lookup_3): ... or here.
5968 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
5969 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
5970
d1a6ec10
ILT
59712011-07-06 Ian Lance Taylor <iant@google.com>
5972
5973 * doc/install.texi (Configuration): It's
5974 --enable-gnu-indirect-function, not --enable-indirect-function.
5975
ff3e08af
BS
59762011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5977
5978 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
5979 shift_truncation_mask hook instead of performing modulo by width.
5980 Compare against mode precision, not bitsize.
ff3e08af 5981 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 5982 Use shift_truncation_mask instead of constructing the value manually.
ff3e08af 5983
a369b639
L
59842011-07-06 H.J. Lu <hongjiu.lu@intel.com>
5985
5986 PR middle-end/47383
5987 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
5988 address computation and convert to address_mode if needed.
5989
1a072294
RG
59902011-07-06 Richard Guenther <rguenther@suse.de>
5991
5992 * tree.c (build_common_tree_nodes_2): Merge with
5993 build_common_tree_nodes.
5994 * tree.h (build_common_tree_nodes): Adjust prototype.
5995 (build_common_tree_nodes_2): Remove.
5996 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
5997 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
5998
f2c3a8ce
JJ
59992011-07-05 Jakub Jelinek <jakub@redhat.com>
6000
6001 PR tree-optimization/49618
6002 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
6003 t recurse on the decl.
6004 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
6005 return true if expr isn't known to be defined in current
6006 TU or some other LTO partition.
6007
3aa439ed
MM
60082011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6009
6010 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
6011 override CASE_VALUES_THRESHOLD.
6012
6013 * stmt.c (toplevel): Include params.h.
6014 (case_values_threshold): Use the --param case-values-threshold
6015 value if non-zero, otherwise use machine dependent value.
6016 (expand_case): Use case_values_threshold.
6017
6018 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
6019
6020 * doc/invoke.texi (--param case-values-threshold): Document.
6021
49956667
RH
60222011-07-05 Richard Henderson <rth@redhat.com>
6023
6024 * dwarf2out.c (dwarf2out_cfi_label): Make static.
6025 (dwarf2out_flush_queued_reg_saves): Make static.
6026 (dwarf2out_reg_save): Remove.
6027 (dwarf2out_return_save): Remove.
6028 (dwarf2out_return_reg): Remove.
6029 (dwarf2out_reg_save_reg): Remove.
6030 (dwarf2out_def_cfa): Merge into ...
6031 (dwarf2out_frame_init): ... here.
6032 * dwarf2out.h, tree.h: Remove declarations as necessary.
6033
9f2ff8e5
RH
60342011-07-05 Richard Henderson <rth@redhat.com>
6035
c2b40eba
RH
6036 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
6037 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6038 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
6039 the alloc insn.
6040
7d3c6cd8
RH
6041 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
6042 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
6043 (process_epilogue): Don't call dwarf2out_def_cfa.
6044
5f740973
RH
6045 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
6046 indicate the return address save.
6047 (process_cfa_register): Likewise.
6048
a1880147
RH
6049 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
6050 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
6051
9f2ff8e5
RH
6052 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
6053 for ar.pfs save at alloc insn.
6054
ddc6e7d6
RH
60552011-07-05 Richard Henderson <rth@redhat.com>
6056
6057 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
6058 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6059 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
6060 stack pointer save.
6061 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
6062 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
6063 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
6064 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
6065
a3515605
RH
60662011-07-05 Richard Henderson <rth@redhat.com>
6067
6068 * config/vax/vax.md (define_c_enum unspecv): New. Define the
6069 VUNSPEC_* constants here instead of via define_constants.
6070 (VUNSPEC_PEM): New constant.
6071 (procedure_entry_mask): New insn.
6072 (prologue): New expander.
6073 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
6074 (vax_expand_prologue): Rename from vax_output_function_prologue;
6075 emit rtl instead of text.
6076 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6077 (print_operand): Add 'x' prefix.
6078
a7adbbcb
L
60792011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6080
6081 PR middle-end/47715
6082 * calls.c (precompute_register_parameters): Promote the function
6083 argument before checking non-legitimate constant.
6084
cec11ec4
SP
60852011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6086
6087 PR tree-optimization/47654
6088 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
6089 (lst_do_strip_mine_loop): Return an int.
6090 (lst_do_strip_mine): Same.
6091 (scop_do_strip_mine): Same.
6092 (scop_do_block): Loop blocking should strip-mine at least two loops.
6093 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
6094 (scop_do_interchange): Same.
6095 * graphite-poly.h (scop_do_interchange): Update declaration.
6096 (scop_do_strip_mine): Same.
6097
9b0d314a
SP
60982011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6099
6100 * graphite-clast-to-gimple.c (precision_for_value): Removed.
6101 (precision_for_interval): Removed.
6102 (gcc_type_for_interval): Use mpz_sizeinbase.
6103
81d6d080
SP
61042011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6105
6106 * graphite-ppl.h (value_max): Correct computation of max.
6107
369e3430
SP
61082011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6109
6110 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
6111
fce5dddd
RG
61122011-07-05 Richard Guenther <rguenther@suse.de>
6113
6114 * c-decl.c (c_init_decl_processing): Defer building common
6115 tree nodes to c_common_nodes_and_builtins.
6116
12037899
RL
61172011-07-05 Razya Ladelsky <razya@il.ibm.com>
6118
6119 PR tree-optimization/49580
f9610d20 6120 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12037899 6121 the loop's number of iterations.
f9610d20
UB
6122 * tree-parloops.c (transform_to_exit_first_loop): Add the
6123 handling of the loop's number of iterations before the call
12037899 6124 to gimple_duplicate_sese_tail.
28b21ebb 6125 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
6126 condition stmt to the preheader instead of iters_bb.
6127
509a31f8
L
61282011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6129
6130 PR rtl-optimization/47449
6131 * fwprop.c (forward_propagate_subreg): Don't propagate hard
6132 register nor zero/sign extended hard register.
6133
39becbac
RG
61342011-07-05 Richard Guenther <rguenther@suse.de>
6135
6136 PR tree-optimization/49518
6137 PR tree-optimization/49628
6138 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
6139 irrelevant and invariant data-references.
6140 (vect_analyze_data_ref_access): For invariant loads clear the
6141 group association.
6142
15923c25
JJ
61432011-07-04 Jakub Jelinek <jakub@redhat.com>
6144
af421d9c
JJ
6145 PR rtl-optimization/49619
6146 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
6147 pass VOIDmode as op0_mode to recursive call, and return temp even
6148 when different from tor, just if it is not IOR of the original
6149 PLUS arguments.
6150
707f9919
JJ
6151 PR rtl-optimization/49472
6152 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
6153 negating MULT, negate the second operand instead of first.
6154 (simplify_binary_operation_1) <case MULT>: If one operand is
f9610d20
UB
6155 a NEG and the other is MULT, don't attempt to optimize by negation
6156 of the MULT operand if it only moves the NEG operation around.
707f9919 6157
15923c25
JJ
6158 PR debug/49602
6159 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
6160 get_current_def return value if it can't be trusted to be
6161 the current value of the variable in the current bb.
6162
0d5e0c1b
UB
61632011-07-04 Uros Bizjak <ubizjak@gmail.com>
6164
6165 PR target/49600
6166 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
6167 general register to memory for !TARGET_INTER_UNIT_MOVES.
6168
db297e20
GJL
61692011-07-04 Georg-Johann Lay <avr@gjlay.de>
6170
6171 PR target/44643
6172 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
6173 instead of TREE_READONLY.
6174
f451d14d
GJL
61752011-07-04 Georg-Johann Lay <avr@gjlay.de>
6176
6177 * doc/extend.texi (AVR Built-in Functions): Update documentation
6178 of __builtin_avr_fmul*.
0d5e0c1b 6179 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
6180 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
6181 * config/avr/avr.md (fmul): Rename to fmul_insn.
6182 (fmuls): Rename to fmuls_insn.
6183 (fmulsu): Rename to fmulsu_insn.
6184 (fmul,fmuls,fmulsu): New expander.
6185 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
6186 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
6187 * config/avr/libgcc.S (__fmul): New function.
6188 (__fmuls): New function.
6189 (__fmulsu,__fmulsu_exit): New function.
6190
30f1e6de
RG
61912011-07-04 Richard Guenther <rguenther@suse.de>
6192
6193 PR tree-optimization/49615
6194 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
6195 basic-block index check.
6196
6dab9931
GJL
61972011-07-04 Georg-Johann Lay <avr@gjlay.de>
6198
6199 * longlong.h (count_leading_zeros, count_trailing_zeros,
6200 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
6201 resp. 64.
6202
b5066d8b
IR
62032011-07-03 Ira Rosen <ira.rosen@linaro.org>
6204
6205 PR tree-optimization/49610
6206 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
6207 a basic block.
6208
bc712852
EB
62092011-07-02 Eric Botcazou <ebotcazou@adacore.com>
6210 Olivier Hainque <hainque@adacore.com>
6211 Nicolas Setton <setton@adacore.com>
6212
6213 * tree.h (TYPE_ARTIFICIAL): New flag.
6214 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
6215 the DIE of the type if it is artificial.
6216 (gen_array_type_die): Likewise.
6217 (gen_enumeration_type_die): Likewise.
6218 (gen_struct_or_union_type_die): Likewise.
6219 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
6220 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
6221
8b1bdcc5
JJ
62222011-07-01 Jakub Jelinek <jakub@redhat.com>
6223
6224 * tree-object-size.c (pass_through_call): Handle
6225 BUILT_IN_ASSUME_ALIGNED.
6226
06e88d73
MJ
62272011-07-01 Martin Jambor <mjambor@suse.cz>
6228
6229 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
6230
6bbec3e1
L
62312011-07-01 H.J. Lu <hongjiu.lu@intel.com>
6232
6233 PR middle-end/48016
6234 * explow.c (update_nonlocal_goto_save_area): Use proper mode
6235 for stack save area.
6236 * function.c (expand_function_start): Likewise.
6237
e8fdf1cd
RG
62382011-07-01 Richard Guenther <rguenther@suse.de>
6239
6240 PR middle-end/49596
6241 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
6242 may have unknown refs.
6243
80d3dd38
KT
62442011-07-01 Kai Tietz <ktietz@redhat.com>
6245
6246 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
6247
179fc656
RO
62482011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6249
6250 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
6251 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
6252 (Specific, mips-sgi-irix6): Likewise.
6253
14a393a3
RO
62542011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6255
6256 PR libmudflap/49549
6257 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
6258
3aecd443
JJ
62592011-07-01 Jakub Jelinek <jakub@redhat.com>
6260
6261 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
6262 [idx]= and [idx1 ... idx2]= before initializers if needed for
6263 array initializers.
6264
7474f719
CL
62652011-07-01 Chen Liqin <liqin.gcc@gmail.com>
6266
6267 * config.gcc (score-*-elf): Remove score7.o.
6268 * config/score/t-score-elf: Likewise.
6269 * config/score/score.c: Merge score7 to score.c and
6270 remove forwarding functions.
6271 * config/score/score7.c: Deleted.
6272 * config/score/score7.h: Deleted.
6273
ab70d825
RG
62742011-07-01 Richard Guenther <rguenther@suse.de>
6275
6276 PR tree-optimization/49603
0d5e0c1b 6277 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 6278
1ac93f10
MJ
62792011-06-30 Martin Jambor <mjambor@suse.cz>
6280
6281 * tree-sra.c (struct access): Rename total_scalarization to
6282 grp_total_scalarization
6283 (completely_scalarize_var): New function.
6284 (sort_and_splice_var_accesses): Set total_scalarization in the
6285 representative access.
6286 (analyze_access_subtree): Propagate total scalarization accross the
6287 tree, no holes in totally scalarized trees, simplify coverage
6288 computation.
6289 (analyze_all_variable_accesses): Call completely_scalarize_var instead
6290 of completely_scalarize_record.
6291
97f309c3
RH
62922011-06-30 Richard Henderson <rth@redhat.com>
6293
6294 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
6295 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
6296 * config/i386/i386.c: Don't include dwarf2out.h.
6297 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
6298 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
6299 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
6300 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
6301 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
6302
ef284364
RH
63032011-06-30 Richard Henderson <rth@redhat.com>
6304
6305 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
6306 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6307 * final.c (final_scan_insn): Look for it, and invoke
6308 dwarf2out_frame_debug before the insn if found.
6309
c8412f97
RH
63102011-06-30 Richard Henderson <rth@redhat.com>
6311
6312 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
6313 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
6314
e3f903d8
RH
63152011-06-30 Richard Henderson <rth@redhat.com>
6316
6317 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
6318 Define a vector of this type.
6319 (regs_saved_in_regs): Use a VEC.
6320 (num_regs_saved_in_regs): Remove.
6321 (compare_reg_or_pc): New.
6322 (record_reg_saved_in_reg): Split out from...
6323 (dwarf2out_flush_queued_reg_saves): ... here.
6324 (clobbers_queued_reg_save): Update for VEC.
6325 (reg_saved_in): Likewise.
6326 (dwarf2out_frame_debug_init): Likewise.
6327 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
6328 (dwarf2out_frame_debug_cfa_register): Likewise.
6329
e2c9010a
EB
63302011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6331
6332 PR tree-optimization/49572
6333 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
6334 type of the RHS instead of that of the LHS for the expression type.
6335
dbb07bbc
EB
63362011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6337
6338 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
6339 unconditionally.
6340
1565af08
RG
63412011-06-30 Richard Guenther <rguenther@suse.de>
6342
6343 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
6344 * tree-ssa-structalias.c (create_variable_info_for): Do not
6345 add initial constraints for non-var-decls. Properly handle
6346 globals in other ltrans partitions.
6347 (intra_create_variable_infos): Manually create constraints for
6348 the fake no-alias parameter.
6349 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
6350 and assert there are no clones.
6351
42373e0b
RG
63522011-06-30 Richard Guenther <rguenther@suse.de>
6353
6354 PR tree-optimization/46787
6355 * tree-data-ref.c (dr_address_invariant_p): Remove.
6356 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 6357 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
6358 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6359 invariant loads.
6360
7aa62ea1
MJ
63612011-06-30 Martin Jambor <mjambor@suse.cz>
6362
6363 PR tree-optimization/49094
6364 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
6365 (build_accesses_from_assign): Use it.
6366
f60f32b3
JJ
63672011-06-30 Jakub Jelinek <jakub@redhat.com>
6368
d9048d16
JJ
6369 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6370 handling of BUILT_IN_ASSUME_ALIGNED.
6371
f60f32b3
JJ
6372 PR debug/49364
6373 * dwarf2out.c (output_abbrev_section): Don't return early
6374 if abbrev_die_table_in_use is 1.
6375 (dwarf2out_finish): Instead don't call output_abbrev_section
6376 nor emit abbrev_section_label in that case.
6377
7cce15d4
NC
63782011-06-30 Nick Clifton <nickc@redhat.com>
6379
6380 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
6381 for the V850E.
6382
ce7e54ff
JJ
63832011-06-30 Jakub Jelinek <jakub@redhat.com>
6384
6385 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6386 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
6387
83197f37
IR
63882011-06-30 Ira Rosen <ira.rosen@linaro.org>
6389
6390 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6391 both pattern and original statements if necessary.
6392 (vect_transform_loop): Likewise.
6393 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
6394 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
6395 Mark the pattern statement only if the original statement doesn't
6396 have its own uses.
6397 (process_use): Call vect_mark_relevant with additional parameter.
6398 (vect_mark_stmts_to_be_vectorized): Likewise.
6399 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
6400 (vect_analyze_stmt): Handle both pattern and original statements
6401 if necessary.
6402 (vect_transform_stmt): Don't store vectorized pattern statement
6403 in the original statement.
6404 (vect_is_simple_use_1): Use related pattern statement only if the
6405 original statement is irrelevant.
6406 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6407
dbb07bbc 64082011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 6409
dbb07bbc
EB
6410 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
6411 option.
6412 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
6413 entry.
5c0d88e6
CF
6414 (TARGET_AVX128_OPTIMAL): New definition.
6415 * config/i386/i386.c (initial_ix86_tune_features): Initialize
6416 X86_TUNE_AVX128_OPTIMAL entry.
6417 (ix86_option_override_internal): Enable the generation
6418 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
6419 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
6420 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
6421
931050d0
EB
64222011-06-29 Eric Botcazou <ebotcazou@adacore.com>
6423
6424 PR tree-optimization/49539
6425 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
6426 names by means of stmt_references_abnormal_ssa_name.
6427 (associate_plusminus): Call can_propagate_from before propagating
6428 from definition statements.
6429 (ssa_forward_propagate_and_combine): Remove superfluous newline.
6430
dfedbe40
RG
64312011-06-29 Richard Guenther <rguenther@suse.de>
6432
6433 * doc/invoke.texi: Document -scev dump modifier.
6434 * tree-pass.h (TDF_SCEV): New dump flag.
6435 * tree-dump.c (dump_option_value_in): Add scev.
6436 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
6437 * tree-scalar-evolution.c: Likewise.
6438
3a86cfeb
NS
64392011-06-29 Nathan Sidwell <nathan@codesourcery.com>
6440
6441 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
6442 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
6443 (__gnu_unwind_pr_common): Reconstruct additional indirection
6444 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 6445
f3678bfb
UW
64462011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6447
6448 PR rtl-optimization/49114
6449 * reload.c (struct replacement): Remove SUBREG_LOC member.
6450 (push_reload): Do not set it.
6451 (push_replacement): Likewise.
6452 (subst_reload): Remove dead code.
6453 (copy_replacements): Remove assertion.
6454 (copy_replacements_1): Do not handle SUBREG_LOC.
6455 (move_replacements): Likewise.
6456 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
6457 Detect subregs via recursive descent instead of via SUBREG_LOC.
6458
433ba0a5 64592011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 6460
433ba0a5
GJL
6461 * config/avr/avr.c (avr_encode_section_info): Dispatch to
6462 default_encode_section_info.
6463
73f6eabc
RS
64642011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
6465
6466 PR tree-optimization/49545
6467 * builtins.c (get_object_alignment_1): Update function comment.
6468 Do not use DECL_ALIGN for functions, but test
6469 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
6470 * fold-const.c (get_pointer_modulus_and_residue): Don't check
6471 for functions here.
6472 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6473
a0f33d3a
JJ
64742011-06-29 Jakub Jelinek <jakub@redhat.com>
6475
6476 PR debug/49567
0d5e0c1b
UB
6477 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
6478 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 6479
946c8b23 64802011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 6481
946c8b23 6482 PR target/34734
0d5e0c1b 6483 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
6484 about uninitialized data attributed 'progmem' from here...
6485 (avr_encode_section_info): ...to this new function.
6486 (TARGET_ENCODE_SECTION_INFO): New define.
6487 (avr_section_type_flags): For data in ".progmem.data", remove
6488 section flag SECTION_WRITE.
6489
9a63dee4 64902011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 6491
9a63dee4
GJL
6492 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
6493 _xmulhisi3_exit.
6494 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
6495 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
6496 (__umulhisi3): Ditto.
6497 * config/avr/avr.md (mulhisi3): New insn expender.
6498 (umulhisi3): New insn expender.
6499 (*mulhisi3_call): New insn.
6500 (*umulhisi3_call): New insn.
6501
4374ce45
JM
65022011-06-28 Joseph Myers <joseph@codesourcery.com>
6503
6504 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
6505
94759030
RH
65062011-06-28 Richard Henderson <rth@redhat.com>
6507
6508 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
6509 all code and arguments that handled pushes. Update all callers.
6510
d018b46e
RH
65112011-06-28 Richard Henderson <rth@redhat.com>
6512
6513 * config/arm/arm.c (arm_output_function_prologue): Don't call
6514 thumb1_output_function_prologue.
6515 (arm_expand_prologue): Avoid dead store.
6516 (number_of_first_bit_set): Use ctz_hwi.
6517 (thumb1_emit_multi_reg_push): New.
6518 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
6519 to emit the entire prologue as rtl.
6520 (thumb1_output_interwork): Split out from
6521 thumb1_output_function_prologue.
6522 (thumb1_output_function_prologue): Remove.
6523 (arm_attr_length_push_multi): Handle thumb1.
6524 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
6525 (prologue_thumb1_interwork): New.
6526 (*push_multi): Allow thumb1; use push_mult_memory_operand.
6527 * config/arm/predicates.md (push_mult_memory_operand): New.
6528
97269a23
EB
65292011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6530
6531 * config/sparc/sync.md (*stbar): Delete.
6532 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
6533
4a9206ce
EB
65342011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6535
6536 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
6537
6138f9bd
RO
65382011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6539
6540 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
6541 (TARGET_64BIT_DEFAULT): Define.
6542 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
6543 of tm_file.
6544 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
6545
a7d0d30f
JM
65462011-06-28 Joseph Myers <joseph@codesourcery.com>
6547
6548 * common.opt (in_lto_p): New Variable entry.
6549 * flags.h (in_lto_p): Move to common.opt.
6550 * gcc.c: Include params.h.
6551 (set_option_handlers): Also use common_handle_option and
6552 target_handle_option.
0d5e0c1b 6553 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
6554 * opts.c (debug_type_names): Move from toplev.c.
6555 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
6556 (common_handle_option): Return early in the driver for some options.
6557 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
6558 opts pointer.
a7d0d30f
JM
6559 * toplev.c (in_lto_p): Move to common.opt.
6560 (debug_type_names): Move to opts.c.
6561 * Makefile.in (OBJS): Remove opts.o.
6562 (OBJS-libcommon-target): Add opts.o.
6563 (gcc.o): Update dependencies.
6564
420863a9
KT
65652011-06-28 Kai Tietz <ktietz@redhat.com>
6566
0d5e0c1b 6567 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 6568
0498a2be
RR
65692011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6570
6571 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
6572 with '=' constraint modifier.
6573 (*divdf3_vfp): Likewise.
6574 ("*mulsf3_vfp"): Likewise.
6575 ("*muldf3_vfp"): Likewise.
6576 ("*mulsf3negsf_vfp"): Likewise.
6577 ("*muldf3negdf_vfp"): Likewise.
6578
4a68b724
NC
65792011-06-28 Nick Clifton <nickc@redhat.com>
6580
6581 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
6582 relaxation when performing an incremental link.
6583
72a32729
KT
65842011-06-28 Kai Tietz <ktietz@redhat.com>
6585
6586 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
6587 within BB from last to first.
6588
88a00ef7
JM
65892011-06-28 Joseph Myers <joseph@codesourcery.com>
6590
6591 * genattr-common.c: New. Based on genattr.c.
6592 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
6593 (MOSTLYCLEANFILES): Add insn-attr-common.h.
6594 (opts.o): Update dependencies.
6595 (.PRECIOUS): Add insn-attr-common.h.
6596 (simple_rtl_generated_h): Add insn-attr-common.h.
6597 (build/genattr-common.o): New.
6598 (genprogrtl): Add attr-common.
6599 * genattr.c (main): Include insn-attr-common.h. Don't generate
6600 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 6601 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 6602
880962ac
GJL
66032011-06-28 Georg-Johann Lay <avr@gjlay.de>
6604
4a68b724 6605 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 6606 avr-*-* and avr-*-rtems* targets.
4a68b724 6607
880962ac
GJL
6608 * config/avr/elf.h: New file.
6609 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
6610 (TARGET_ASM_SELECT_SECTION): Define.
6611 (INIT_SECTION_ASM_OP): Undefine.
6612 (FINI_SECTION_ASM_OP): Undefine.
6613 (READONLY_DATA_SECTION_ASM_OP): Undefine.
6614 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
6615 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
6616 * config/avr/avr.h:
6617 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
6618 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
6619 (MAX_OFILE_ALIGNMENT): Move to elf.h.
6620 (STRING_LIMIT): Move to elf.h.
6621 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
6622 (ASM_DECLARE_OBJECT_NAME): Remove.
6623 (ESCAPES): Remove.
6624 (ASM_OUTPUT_SKIP): Remove.
6625 (DWARF2_DEBUGGING_INFO): Remove.
6626 (OBJECT_FORMAT_ELF): Remove.
6627 (USER_LABEL_PREFIX): Remove.
6628 (ASM_OUTPUT_EXTERNAL): Remove.
6629 (ASM_OUTPUT_ASCII): Remove.
6630 (TYPE_ASM_OP): Remove.
6631 (SIZE_ASM_OP): Remove.
6632 (WEAK_ASM_OP): Remove.
6633 (STRING_ASM_OP): Remove.
6634 (SET_ASM_OP): Remove.
6635 (ASM_WEAKEN_LABEL): Remove.
6636 (TYPE_OPERAND_FMT): Remove.
6637 (ASM_DECLARE_FUNCTION_SIZE): Remove.
6638 (ASM_FINISH_DECLARE_OBJECT): Remove.
6639 (NO_DOLLAR_IN_LABEL): Remove.
6640 (ASM_GENERATE_INTERNAL_LABEL): Remove.
6641 (ASM_OUTPUT_CASE_LABEL): Remove.
6642 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
6643 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
6644 (gas_output_ascii): Remove.
6645 (gas_output_limited_string): Remove.
6646 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
6647 * config/avr/avr-protos.h
6648 (gas_output_ascii): Remove prototye.
6649 (gas_output_limited_string): Remove prototype.
6650
a1b5eb93
RE
66512011-06-27 Richard Earnshaw <rearnsha@arm.com>
6652
6653 PR target/48637
6654 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
6655 asm operands.
6656
310e71a8
JH
66572011-06-27 Jan Hubicka <jh@suse.cz>
6658
4a9206ce
EB
6659 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
6660 node instead of references in node.
310e71a8 6661
171da07a
RH
66622011-06-27 Richard Henderson <rth@redhat.com>
6663
6664 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
6665 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
6666 inside ifdef.
6667
dc2a58da
JJ
66682011-06-27 Jakub Jelinek <jakub@redhat.com>
6669
56300785
JJ
6670 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
6671
45d439ac
JJ
6672 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
6673 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
6674 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
6675 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
6676 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
6677 (evaluate_stmt, execute_fold_all_builtins): Handle
6678 BUILT_IN_ASSUME_ALIGNED.
6679 * tree-ssa-dce.c (propagate_necessity): Likewise.
6680 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6681 call_may_clobber_ref_p_1): Likewise.
6682 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
6683 (expand_builtin_assume_aligned): New function.
6684 * doc/extend.texi (__builtin_assume_aligned): Document.
6685
dc2a58da
JJ
6686 PR debug/49544
6687 * cselib.c (promote_debug_loc): If cselib_preserve_constants
6688 and l has two DEBUG_INSN owned locs instead of just one, adjust
6689 the second location's setting_insn too.
6690
0d72f628
RO
66912011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6692
6693 PR libmudflap/38738
6694 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
6695
bebd619e
NC
66962011-06-27 Nick Clifton <nickc@redhat.com>
6697
0d5e0c1b
UB
6698 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
6699 bit position of highest bit set into a count of the high zero bits.
bebd619e 6700
353b39fa
EB
67012011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6702
6703 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
6704
a7af037b
EB
67052011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6706
6707 PR lto/48492
6708 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
6709 to a NULL parent.
6710
1c86160a
RG
67112011-06-27 Richard Guenther <rguenther@suse.de>
6712
6713 PR tree-optimization/49394
6714 * passes.c (execute_one_pass): Restore current_pass after
6715 applying IPA transforms.
6716
5da49a9d
KT
67172011-06-27 Kai Tietz <ktietz@redhat.com>
6718
6719 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
6720 out of type precision after operation.
0d5e0c1b
UB
6721 (find_bswap): Take for limit value the integer auto-promotion
6722 into account.
5da49a9d 6723
9242213f
EB
67242011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6725
6726 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
6727 forward scan as well.
6728
db8b22ef
TG
67292011-06-27 Tristan Gingold <gingold@adacore.com>
6730
6731 PR target/44241
6732 * config/vms/vms-protos.h: New file.
6733 * config/vms/vms-crtlmap.map: New file.
6734 * config/vms/vms.c: New file.
6735 * config/vms/make-crtlmap.awk: New file.
6736 * config/vms/vms-crtl.h: File removed.
6737 * config/vms/vms-crtl-64.h: File removed.
6738 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
6739 * config/alpha/vms64.h: Do not include vms-crtl-64.h
6740 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
6741 clear some builtins on VMS. Calls vms_patch_builtins.
6742 (avms_asm_output_external): Remove.
6743 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
6744 (struct crtl_name_spec): Remove
6745 (DO_CTRL_NAMES): Remove.
6746 * config/ia64/vms.h (struct crtl_name_spec): Remove
6747 (DO_CTRL_NAMES): Remove.
6748 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
6749 clear some builtins on VMS. Calls vms_patch_builtins.
6750 (ia64_asm_output_external): Remove DO_CRTL_NAME.
6751 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 6752 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 6753
b213221d
TG
67542011-06-27 Tristan Gingold <gingold@adacore.com>
6755
6756 * config/alpha/alpha.c (alpha_end_function): Always generate .end
6757 directive on VMS.
6758
157b9300
EB
67592011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6760
6761 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
6762 the function receives nonlocal gotos.
6763
ccbf5bb4
RG
67642011-06-27 Richard Guenther <rguenther@suse.de>
6765
6766 PR tree-optimization/49536
6767 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6768 For non-scalar inner types use a scalar type according to
6769 the scalar inner mode.
6770
fe4cd14b
RG
67712011-06-27 Richard Guenther <rguenther@suse.de>
6772
6773 PR tree-optimization/49365
6774 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
6775
afc3f22f
RS
67762011-06-27 Richard Guenther <rguenther@suse.de>
6777
6778 PR tree-optimization/49169
6779 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
6780 the alignment of function decls.
6781
92590751 67822011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
6783
6784 PR target/47997
6785 * config/darwin.c (darwin_mergeable_string_section): Place string
6786 constants in '.cstring' rather than '.const' when CF/NSStrings are
6787 active.
6788
605354f3
EB
67892011-06-26 Eric Botcazou <ebotcazou@adacore.com>
6790
6791 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
6792 (emit_save_register_window): Likewise.
6793 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
6794 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
6795 Swap back %o7/%i7 in register naming.
6796
0e9197f5
IS
67972011-06-25 Iain Sandoe <iains@gcc.gnu.org>
6798
6799 PR driver/49371
6800 * config/darwin.c (darwin_override_options): Improve warning when
6801 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
6802 is given with fpie/fPIE.
6803 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
6804 * config/darwin9.h (PIE_SPEC): New.
53461199 6805
605354f3 68062011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
6807
6808 * timevar.c (timevar_print): Increase width for display of timevar
6809 name.
6810
f796c438
JJ
68112011-06-24 Jakub Jelinek <jakub@redhat.com>
6812
6813 PR c++/46400
6814 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
6815 instead of TYPE_CHAIN for chain_next for types.
6816
a7289eaf
RH
68172011-06-24 Richard Henderson <rth@redhat.com>
6818
6819 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
6820 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
6821 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
6822 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
6823 (sparc_flat_expand_prologue): Emit individual instructions
6824 instead of one of the above.
6825
c4b9a87e
ER
68262011-06-24 Easwaran Raman <eraman@google.com>
6827
6828 PR rtl-optimization/49429
6829 PR target/49454
6830 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
6831 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
6832 used to copy y into x.
6833 * calls.c (initialize_argument_information): Mark
6834 an argument addressable if it is passed by invisible reference.
6835 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
6836 if it is passed by reference.
6837
5ac6c59e
L
68382011-06-24 H.J. Lu <hongjiu.lu@intel.com>
6839
6840 PR rtl-optimization/49504
6841 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
6842 subtraction of a pointer in Pmode if pointers extend unsigned.
6843 (num_sign_bit_copies1): Likewise.
5ac6c59e 6844
b807e627
MJ
68452011-06-24 Martin Jambor <mjambor@suse.cz>
6846
6847 PR tree-optimizations/49516
6848 * tree-sra.c (sra_modify_assign): Choose the safe path for
6849 aggregate copies if we also did scalar replacements.
6850
9a1ea4b9
RR
68512011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6852
6853 PR target/49335
6854 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 6855 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 6856
949cfd0a
AK
68572011-06-24 Andi Kleen <ak@linux.intel.com>
6858
6859 * tree-sra.c (type_internals_preclude_sra_p): Add msg
6860 parameter. Split up ifs and report reason in *msg.
6861 (reject): Add.
6862 (find_var_candiate): Add msg variable.
6863 Split up ifs and report reason to reject.
6864 (find_param_candidates): Add msg variable.
6865 Pass msg to type_internals_preclude_sra_p.
6866
49e9c661 68672011-06-23 Jeff Law <law@redhat.com>
ad3577df 6868
b0c11403
JL
6869 PR middle-end/48770
6870 * reload.h (reload): Change to return a bool.
6871 * ira.c (ira): If requested by reload, run a fast DCE pass after
6872 reload has completed. Fix comment typo.
6873 * reload1.c (need_dce): New file scoped static.
6874 (reload): Set reload_completed here. Return whether or not a DCE
6875 pass after reload is needed.
6876 (delete_dead_insn): Set need_dce as needed.
6877
ad3577df
JL
6878 PR middle-end/49465
6879 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
6880 to detect threading through joiner block. If there was already
6881 an edge to the new target, then do not change the PHI nodes.
6882
7cf64710
JJ
68832011-06-23 Jakub Jelinek <jakub@redhat.com>
6884
6885 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
6886 get_pointer_alignment to see if base isn't sufficiently aligned.
6887
febb1302
JH
68882011-06-23 Jan Hubicka <jh@suse.cz>
6889
6890 PR tree-optimize/49373
6891 * tree-pass.h (all_late_ipa_passes): Declare.
6892 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
6893 (cgraph_optimize): Execute late passes; remove unreachable funcions
6894 after materialization.
6895 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
6896 LTOing.
febb1302
JH
6897 * passes.c (all_late_ipa_passes): Declare.
6898 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
6899 (init_optimization_passes): Move ipa_pta to late passes; schedule
6900 fixup_cfg at beggining of all_passes.
febb1302
JH
6901 (apply_ipa_transforms): New function.
6902 (execute_one_pass): When doing simple ipa pass, apply all transforms.
6903
4c77620d
JM
69042011-06-23 Joseph Myers <joseph@codesourcery.com>
6905
6906 * params.c: Include common/common-target.h. Don't include tm.h.
6907 (lang_independent_params): Move from toplev.c.
6908 (global_init_params): New.
6909 * params.h (global_init_params): Declare.
6910 * target.def (default_params): Move to common-target.def.
6911 * toplev.c (lang_independent_options): Remove.
6912 (lang_independent_params): Move to params.c.
6913 (general_init): Use global_init_params.
6914 * common/common-target.def (option_default_params): Move from
6915 target.def.
6916 * common/config/ia64/ia64-common.c: Include params.h.
6917 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6918 from ia64.c.
6919 * common/config/rs6000/rs6000-common.c: Include params.h.
6920 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6921 from rs6000.c.
6922 * common/config/sh/sh-common.c: Include params.h.
6923 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6924 from sh.c.
6925 * common/config/spu/spu-common.c: Include params.h.
6926 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6927 from spu.c.
6928 * config/ia64/ia64.c (ia64_option_default_params,
6929 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
6930 * config/rs6000/rs6000.c (rs6000_option_default_params,
6931 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
6932 * config/sh/sh.c (sh_option_default_params,
6933 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
6934 * config/spu/spu.c (spu_option_default_params,
6935 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
6936 * Makefile.in (OBJS): Remove params.o.
6937 (OBJS-libcommon-target): Add params.o.
6938 (params.o, $(common_out_object_file)): Update dependencies.
6939 * doc/tm.texi: Regenerate.
6940
6aad1e38
AM
69412011-06-23 Alan Modra <amodra@gmail.com>
6942
6943 PR bootstrap/49383
6944 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
6945 invocation for 2011-06-09 changes.
6946
4fb489e7
JJ
69472011-06-22 Jakub Jelinek <jakub@redhat.com>
6948
fb79f500
JJ
6949 PR libgomp/49490
6950 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
6951 use n ceil/ nthreads size for the first n % nthreads threads in the
6952 team instead of all threads except for the last few ones which
fb79f500
JJ
6953 get less work or none at all.
6954
4fb489e7
JJ
6955 PR debug/49496
6956 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
6957 uses.
6958
9c7c9f10
RG
69592011-06-22 Richard Guenther <rguenther@suse.de>
6960
6961 PR tree-optimization/49493
6962 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
6963 Refer to the alias target of variables.
6964 (associate_varinfo_to_alias_1): Remove.
6965 (ipa_pta_execute): Do not associate aliases with anything.
6966 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
6967 (cgraph_function_node): Likewise.
6968 (cgraph_function_or_thunk_node): Likewise.
6969 (varpool_variable_node): Likewise.
6970
7cf13d1f
NS
69712011-06-22 Nathan Sidwell <nathan@codesourcery.com>
6972
0d5e0c1b 6973 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
6974 * config.gcc (arm*-*-linux*): Default to gnu tls.
6975 (arm*-*-*): Add --with-tls option.
6976 (all_defaults): Add 'tls'.
6977
78a8eb4e
RH
69782011-06-22 Richard Henderson <rth@redhat.com>
6979
6980 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
6981 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6982 (dwarf2out_frame_debug_cfa_window_save): Rename from
6983 dwarf2out_window_save; make static.
6984 * tree.h (dwarf2out_window_save): Don't declare.
6985
6986 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
6987 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6988 (emit_save_register_window): Rename from gen_save_register_window;
6989 emit the insn and add REG_CFA_* notes.
6990 (sparc_expand_prologue): Update to match.
6991 * config/sparc/sparc.md (save_register_window_1): Simplify from
6992 save_register_window<P:mode>.
6993
3b4c46d7
L
69942011-06-22 H.J. Lu <hongjiu.lu@intel.com>
6995
6996 PR target/49497
6997 * config/i386/i386.md (*lea_general_2): Always allow SImode.
6998 (*lea_general_2_zext): Likewise.
6999 (imul to lea peepholes): Use const359_operand and check
7000 TARGET_PARTIAL_REG_STALL.
7001
7002 * config/i386/predicates.md (const359_operand): New.
7003
4399cf59
MM
70042011-06-22 Michael Matz <matz@suse.de>
7005
7006 * cgraphunit.c (assemble_thunk): Use correct return type.
7007
31a0c825 70082011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 7009 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
7010
7011 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
7012 (neon_output_shift_immediate): Ditto.
7013 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
7014 prototype.
7015 (neon_output_shift_immediate): Ditto.
7016 * config/arm/neon.md (vashl<mode>3): Modified constraint.
7017 (vashr<mode>3_imm): New insn pattern.
7018 (vlshr<mode>3_imm): Ditto.
7019 (vashr<mode>3): Modified constraint.
7020 (vlshr<mode>3): Ditto.
7021 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
7022 predicate.
7023 (imm_for_neon_rshift_operand): Ditto.
7024 (imm_lshift_or_reg_neon): Ditto.
7025 (imm_rshift_or_reg_neon): Ditto.
7026
7027 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
7028
ddb555ed
JJ
70292011-06-22 Jakub Jelinek <jakub@redhat.com>
7030
36dc1a88
JJ
7031 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
7032 builtin calls even if likelyvalue is not CONSTANT.
7033 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
7034 Return get_value_for_expr of first operand
7035 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
7036 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7037 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
7038 their non-checking counterparts.
7039 (call_may_clobber_ref_p_1): Likewise.
7040 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
7041 like their non-checking counterparts.
7042 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7043 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
7044 like their non-checking counterparts.
7045 (find_func_clobbers): Likewise.
7046 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
7047 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
7048
41cd4957
JJ
7049 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
7050 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
7051 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
7052 of base type reference as argument.
7053 (resolve_addr_in_expr): Likewise. Fix keep computation.
7054 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
7055 (convert_descriptor_to_mode): ... this. For wider types convert to
7056 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
7057 (typed_binop): New function.
7058 (scompare_loc_descriptor, ucompare_loc_descriptor,
7059 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
7060 default to unsigned type instead of signed.
7061
ddb555ed
JJ
7062 PR debug/47858
7063 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
7064 (gimple_build_debug_source_bind_stat): New prototype.
7065 (gimple_build_debug_source_bind): Define.
7066 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
7067 gimple_debug_source_bind_get_value,
7068 gimple_debug_source_bind_get_value_ptr,
7069 gimple_debug_source_bind_set_var,
7070 gimple_debug_source_bind_set_value): New inlines.
7071 * gimple.c (gimple_build_debug_source_bind_stat): New function.
7072 * gimple-pretty-print.c (dump_gimple_debug): Handle
7073 GIMPLE_DEBUG_SOURCE_BIND.
7074 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
7075 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7076 * tree-parloops.c (eliminate_local_variables,
7077 separate_decls_in_region): Likewise.
7078 (separate_decls_in_region_debug): Renamed from
7079 separate_decls_in_region_debug_bind. Handle
7080 gimple_debug_source_bind_p.
7081 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
7082 prototypes.
7083 (DECL_HAS_DEBUG_ARGS_P): Define.
7084 (struct tree_function_decl): Add has_debug_args_flag field.
7085 * tree.c (debug_args_for_decl): New variable.
7086 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
7087 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
7088 (rewrite_debug_stmt_uses): New function.
7089 (rewrite_stmt): Use it to rewrite debug stmt uses.
7090 * rtl.def (DEBUG_PARAMETER_REF): New.
7091 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
7092 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
7093 DEBUG_PARAMETER_REF.
7094 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
7095 * print-rtl.c (print_rtx): Likewise.
7096 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
7097 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
7098 debug stmts in the first bb.
7099 * tree-inline.c (remap_ssa_name): If remapping default def
7100 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
7101 a source bind debug stmt.
7102 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
7103 (maybe_move_debug_stmts_to_successors): Likewise.
7104 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
7105 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
7106 debug args vector from old_decl to new_decl.
7107 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
7108 or modified parameters, add debug bind stmts before call
0d5e0c1b 7109 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
7110 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
7111 on DECL_DEBUG_EXPRs from debug args vector.
7112 (expand_debug_source_expr): New function.
7113 (expand_debug_locations): Use it for source bind insns.
7114 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
7115 * var-tracking.c (prepare_call_arguments): Add debug args
7116 to call_arguments if any.
7117 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
7118 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
7119 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
7120 (get_ref_die_offset, parameter_ref_descriptor): New functions.
7121 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
7122 (gen_subprogram_die): Handle parameters identified by
7123 DEBUG_PARAMETER_REF.
7124
ccdc2164
NS
71252011-06-22 Nathan Sidwell <nathan@codesourcery.com>
7126
7127 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
7128 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
7129 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
7130 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
7131 (arm_tls_descseq_addr): New.
7132 (legitimize_tls_address): Add tlsdesc support.
7133 (arm_cannot_copy_insn_p): Check for tlscall.
7134 (arm_emit_tls_decoration): Likewise.
7135 * config/arm/arm.h (TARGET_GNU2_TLS): New.
7136 (OPTION_DEFAULT_SPECS): Add with-tls support.
7137 * config/arm/arm.md (R1_REGNUM): Define.
7138 (tlscall): New.
7139 * config/arm/arm.opt (tls_type): New enumeration type and values.
7140 (mtls-dialect): New switch.
7141 * config/arm/arm-opts.h (enum tls_type): New.
7142
70e41a6a
NP
71432011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
7144
7145 * attribs.c (register_attribute): Added assert to check that all
7146 attribute specs are registered with a name that is not empty and
7147 does not start with '_'.
7148 (decl_attributes): Avoid the lookup of the "naked" attribute spec
7149 if the function has no attributes.
7150 * tree.c (is_attribute_with_length_p): Removed.
7151 (is_attribute_p): Removed.
0d5e0c1b 7152 (private_is_attribute_p): New.
70e41a6a
NP
7153 (private_lookup_attribute): New.
7154 (lookup_attribute): Removed.
7155 (lookup_ident_attribute): New.
7156 (remove_attribute): Require the first argument to be in the form
7157 'text', not '__text__'. Updated asserts.
7158 (merge_attributes): Use lookup_ident_attributes instead of
7159 lookup_attribute.
7160 (merge_dllimport_decl_attributes): Use remove_attribute.
7161 (attribute_list_contained): Likewise.
7162 (attribute_list_equal): Immediately return 1 if the arguments are
7163 identical pointers.
7164 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
7165 'int'. Require the first argument to be in the form 'text', not
7166 '__text__'. Require the second argument to be an identifier.
7167 (lookup_attribute): Made inline. Require the first argument to be
7168 in the form 'text', not '__text__'.
7169 (private_is_attribute_p, private_lookup_attribute): New.
7170 Updated comments.
0d5e0c1b 7171
e0a8ecf2
AM
71722011-06-21 Andrew MacLeod <amacleod@redhat.com>
7173
7174 * builtins.c: Add sync_ or SYNC__ to builtin names.
7175 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
7176 * omp-low.c: Add sync_ or SYNC__ to builtin names.
7177
663827d3 71782011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 7179
663827d3
GJL
7180 PR target/33049
7181 * config/avr/avr.md (extzv): New expander.
7182 (*extzv): New insn.
7183 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
7184 * config/avr/constraints.md (C04): New constraint.
7185 * doc/md.texi (Machine Constraints): Document it.
7186
146aef0b
JJ
71872011-06-21 Jakub Jelinek <jakub@redhat.com>
7188
7189 PR middle-end/49489
7190 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
7191 unsignedp argument instead of 1 for clrsb_optab.
7192 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
7193 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
7194 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
7195 * optabs.c (widen_leading): Call widen_operand and expand_unop
7196 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 7197 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 7198
c0503294
GJL
71992011-06-21 Georg-Johann Lay <avr@gjlay.de>
7200
7201 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
7202
3801c801
BS
72032011-06-21 Bernd Schmidt <bernds@codesourcery.com>
7204
0bddee8e
BS
7205 * gensupport.c (add_define_attr): New static function.
7206 (is_predicable): Allow multi-alternative lists for the "predicable"
7207 attribute.
7208 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
7209 (process_one_cond_exec): Call alter_attrs_for_insn.
7210 * doc/md.texi (Defining Attributes): Mention some standard names.
7211 (Conditional Execution): Update documentation for "predicable".
7212
3801c801
BS
7213 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
7214 __builtin_clrsbll): Document.
7215 * doc/rtl.texi (clrsb): New entry.
7216 * optabs.c (widen_leading): Renamed from widen_clz. New argument
7217 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
7218 (expand_unop): Handle clrsb_optab.
7219 (init_optabs): Initialize it.
7220 * optabs.h (enum optab_index): New entry OTI_clrsb.
7221 (clrsb_optab): Define.
7222 * genopinit.c (optabs): Add an entry for it.
7223 * builtins.c (expand_builtin): Handle clrsb builtin functions.
7224 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
7225 BUILT_IN_CLRSBLL): New.
7226 * rtl.def (CLRSB): New code.
7227 * dwarf2out.c (mem_loc_descriptor): Handle it.
7228 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7229 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
7230 and popcount.
7231 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
7232 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
7233 (__ctzDI2): Move declaration.
7234 * config/bfin/bfin.md (clrsbsi2): New expander.
7235 (signbitssi2): Use the CLRSB rtx.
7236 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
7237 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
7238
55f01229
RG
72392011-06-21 Richard Guenther <rguenther@suse.de>
7240
637c11bd 7241 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 7242
5181cd6a
IR
72432011-06-21 Ira Rosen <ira.rosen@linaro.org>
7244
7245 PR tree-optimization/49478
7246 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
7247 with constant operand.
7248
e4ee3d70
RG
72492011-06-21 Richard Guenther <rguenther@suse.de>
7250
7251 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 7252
7b7ec6c5
RG
72532011-06-21 Richard Guenther <rguenther@suse.de>
7254
7255 PR tree-optimization/49483
7256 * tree-vect-stmts.c (vectorizable_assignment): Also handle
7257 VIEW_CONVERT_EXPR conversions.
7258
1b916ca6
JM
72592011-06-21 Joseph Myers <joseph@codesourcery.com>
7260
7261 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
7262 * config/avr/avr-tables.opt: New file (generated).
7263 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
7264 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
7265 avr-mcus.def.
7266 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
7267 (avr_option_override): Don't process -mmcu= argument here. Set
7268 avr_current_device using avr_mcu_index.
637c11bd 7269 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
7270 * config/avr/avr.opt (mmcu=): Use Enum.
7271 * config/avr/t-avr (avr-devices.o): Update dependencies.
7272 ($(srcdir)/config/avr/avr-tables.opt): New.
7273 * target.def (help): Remove.
7274 * doc/tm.texi.in (TARGET_HELP): Remove.
7275 * doc/tm.texi: Regenerate.
7276 * opts.c: Don't include target.h.
7277 (common_handle_option): Don't call targetm.help.
7278 * system.h (TARGET_HELP): Poison.
7279 * Makefile.in (opts.o): Update dependencies.
7280
7ecfa34f
RO
72812011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7282
7283 * config/usegld.h: New file.
7284 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
7285 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 7286 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
7287 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
7288 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
7289 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
7290 Define.
7ecfa34f
RO
7291 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
7292 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
7293 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
7294 (STACK_CHECK_STATIC_BUILTIN): Define.
7295 * config/sol2.opt (compat-bsd): Remove.
7296 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
7297 * config/sol2-bi.h: New file.
7298 * config/sol2-gld.h: Remove.
7299 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
7300 (NO_DBX_BNSYM_ENSYM): Remove.
7301 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7302 (STACK_CHECK_STATIC_BUILTIN): Remove.
7303 Test USE_GLD instead of TARGET_GNU_LD.
7304 * config/i386/sol2-10.h: Rename to ...
7305 * config/i386/sol2-bi.h .. this.
7306 (SUBTARGET_EXTRA_SPECS): Redefine.
7307 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
7308 (MULTILIB_DEFAULTS): Remove.
7309 (DEFAULT_ARCH32_P): Define.
7310 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
7311 (ARCH64_SUBDIR): Define.
7312 Test USE_GLD instead of TARGET_GNU_LD.
7313 (I386_EMULATION): Rename to ...
7314 (ARCH32_EMULATION): ... this.
7315 (X86_64_EMULATION): Rename to ...
7316 (ARCH64_EMULATION): ... this.
7317 (TARGET_LD_EMULATION): Remove.
7318 (LINK_ARCH_SPEC): Remove.
7319 * config/i386/sol2-gas.h: Remove.
7320 * config/i386/t-sol2-10: Rename to ...
7321 * config/i386/t-sol2-64: ... this.
7322 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
7323 (AS_SPARC64_FLAG): Define.
7324 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
7325 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
7326 depending on TARGET_CPU_DEFAULT.
7327 (CPP_CPU_SPEC): Redefine.
7328 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
7329 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
7330 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
7331 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
7332 ASM_ARCH_DEFAULT_SPEC): Redefine.
7333 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7334 LINK_ARCH_DEFAULT_SPEC.
7335 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
7336 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
7337 (ARCH64_SUBDIR): Define.
7338 (LINK_ARCH64_SPEC): Redefine.
7339 (CC1_SPEC): Redefine.
7340 (OPTION_DEFAULT_SPECS): Redefine.
7341 (MULTILIB_DEFAULTS): Define.
7342 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
7343 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
7344 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
7345 (NO_DBX_BNSYM_ENSYM): Remove.
7346 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7347 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
7348 (TARGET_ASM_NAMED_SECTION): Likewise.
7349 (STACK_CHECK_STATIC_BUILTIN): Remove.
7350 * config/sparc/sol2-bi.h: Remove.
7351 * config/sparc/sol2-gas-bi.h: Remove.
7352 * config/sparc/sol2-gas.h: Remove.
7353 * config/sparc/sol2-gld-bi.h: Remove.
7354 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
7355 common parts ...
7356 (*-*-solaris2*): ... here.
7357
4b583c43 73582011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 7359
4b583c43 7360 PR other/43564
637c11bd
UB
7361 * ipa-inline.c (can_inline_edge_p): Check
7362 !DECL_DISREGARD_INLINE_LIMITS.
7363
3bb556ad 73642011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 7365
3bb556ad
CB
7366 PR middle-end/49139
7367 * cgraphunit.c (process_function_and_variable_attributes): warn when
7368 always_inline functions that are not inline.
637c11bd
UB
7369 * ipa-inline-transform.c (inline_transform): Always call
7370 optimize_inline.
7371 * tree-inline.c (tree_inlinable_function_p): Use error instead
7372 of sorry.
3bb556ad 7373 (expand_call_inline): Likewise.
637c11bd 7374
f1ee724c
JJ
73752011-06-21 Jakub Jelinek <jakub@redhat.com>
7376
7377 * Makefile.in (dg_target_exps): Set.
7378 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
7379 instead of 7, try to divide it more evenly.
7380
73812011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 7382
931050d0 7383 PR target/49089
97ef5ae6
CF
7384 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
7385 (avx256_split_unaligned_store): New definition.
7386 (ix86_option_override_internal): Enable avx256 unaligned load/store
7387 splitting only when avx256_split_unaligned_load/store is set.
7388
998c75b6
BS
73892011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7390
7391 * regrename.c (scan_rtx_reg): Handle the case where we write to an
7392 open chain in a smaller mode without failing the entire block.
7393
3a769784
AM
73942011-06-21 Alan Modra <amodra@gmail.com>
7395
7396 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
7397 CONST high part large-toc address.
7398 (rs6000_tls_referenced_p): Make static.
7399 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
7400
c2954af9
RR
74012011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7402
7403 PR target/49385
7404 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
7405 one of the operands is a register.
7406
a95015b6
KT
74072011-06-20 Kai Tietz <ktietz@redhat.com>
7408
637c11bd
UB
7409 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
7410 operations in combination with binary and.
a95015b6 7411
49a30d00
BS
74122011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7413
7414 * regrename.c (do_replace): Don't update notes.
7415
3bae1d98
AM
74162011-06-20 Alan Modra <amodra@gmail.com>
7417
7418 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
7419 of toc-relative address in CONST.
7420 (rs6000_delegitimize_address): Recognize changed address.
7421 (rs6000_legitimize_reload_address): Likewise.
7422 (rs6000_emit_move): Don't force these constants to memory.
7423 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
7424 toc-relative address in CONST.
7425 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
7426 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
7427
10937b0c
L
74282011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7429
637c11bd 7430 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
7431 (count_trailing_zeros): Likewise.
7432
0c587260
L
74332011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7434
7435 PR other/49325
7436 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
7437 .init_array can be used with .ctors on targets.
7438 * configure: Regenerated.
7439
c020c92b
EB
74402011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7441
7442 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
7443 if the element type is volatile.
7444
cd35bcf7
JH
74452011-06-18 Jan Hubicka <jh@suse.cz>
7446
7447 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
7448 extra name aliases.
7449 (lto_symtab_resolve_can_prevail_p): Likewise.
7450 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
7451 * cgraphbuild.c (record_reference): Remove extra body alias code.
7452 (mark_load): Likewise.
7453 (mark_store): Likewise.
7454 * cgraph.h (varpool_node): Remove extra_name filed;
7455 add alias_of and extraname_alias.
7456 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
7457 (varpool_alias_aliased_node): New inline function.
7458 (varpool_variable_node): New function.
7459 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
7460 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
7461 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
7462 (input_varpool_node): Likewise.
7463 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
7464 (varpool_externally_visible_p): Remove extra body alias code.
7465 (function_and_variable_visibility): Likewise.
7466 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
7467 (ipa_pta_execute): Use it.
7468 * varpool.c (varpool_remove_node): Remove extra name alias code.
7469 (varpool_mark_needed_node): Likewise.
7470 (varpool_analyze_pending_decls): Analyze aliases.
7471 (assemble_aliases): New functoin.
7472 (varpool_assemble_decl): Use it.
7473 (varpool_create_variable_alias): New function.
7474 (varpool_extra_name_alias): Rewrite.
7475 (varpool_for_node_and_aliases): New function.
7476
c96b4102
JJ
74772011-06-18 Jakub Jelinek <jakub@redhat.com>
7478
7479 PR target/49411
7480 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
7481 last_arg_constant and last argument doesn't match its predicate,
7482 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
7483 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
7484 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
7485 spelling of error message.
7486 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
7487 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
7488 const_0_to_255_operand instead of const_int_operand.
7489
7490 Revert:
7491 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7492
7493 * config/i386/sse.md (blendbits): Remove mode attribute.
7494 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7495 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7496 Check integer value of operand 3 in insn constraint.
7497
9a2091cd
HPN
74982011-06-17 Hans-Peter Nilsson <hp@axis.com>
7499
7500 PR rtl-optimization/48542
7501 * reload.c (find_equiv_reg): Stop looking when finding a
7502 setjmp-type call.
7503 * reload1.c (reload_as_needed): Invalidate all reload
7504 registers when crossing a setjmp-type call.
7505
361b51c0
JL
75062011-06-16 Jeff Law <law@redhat.com>
7507
7508 * tree-ssa-threadupdate.c (struct redirection_data): New field
7509 intermediate_edge.
7510 (THREAD_TARGET2): Define.
637c11bd 7511 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
7512 (lookup_redirection_data): Drop useless argument. Extract the
7513 outgoing_edge and intermediate edge from E. Callers updated.
7514 (copy_phi_args, update_destination_phis): New functions.
7515 (fix_duplicate_block_edges): Likewise.
7516 (create_edge_and_update_destination_phis): Duplicate all the edges
7517 hung off e->aux. Use copy_phi_args.
7518 (create_duplicates): Use fix_duplicate_block_edges.
7519 (fixup_template_block): Likewise.
7520 (redirect_edges): If necessary, redirect the joiner block's incoming
7521 edge to the duplicate of the joiner block.
7522 (thread_block): Don't muck up loops when threading through a joiner
7523 block.
637c11bd 7524 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
7525 (mark_threaded_blocks, register_jump_thread): Likewise.
7526 * tree-flow.h (register_jump_thread): Add new argument. Callers
7527 updated.
7528 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
7529 (thread_across_edge): Handle threading through a joiner block.
637c11bd 7530
ee460e75
MJ
75312011-06-16 Martin Jambor <mjambor@suse.cz>
7532
7533 PR tree-optimization/49343
7534 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
7535 calculate offset, provide 2nd operand for the new COMPONENT_REF.
7536
a285ba2e
IS
75372011-06-16 Iain Sandoe <iains@gcc.gnu.org>
7538
7539 * config/darwin-protos.h (machopic_select_rtx_section): Move to
7540 inside RTX_CODE ifdef.
7541
0703f020
TV
75422011-06-16 Tom de Vries <tom@codesourcery.com>
7543
7544 PR target/45098
637c11bd
UB
7545 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
7546 Disallow NULL pointer for pointer arithmetic.
0703f020 7547
900c07da
RR
75482011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7549
7550 PR target/49398
7551 Revert.
7552 2011-06-10 Wei Guozhi <carrot@google.com>
7553
7554 PR target/45335
7555 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
7556 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
7557 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
7558 related peephole2.
7559 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
7560 related peephole2.
7561 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
7562 (arm_legitimate_ldrd_p): New prototype.
7563 (arm_output_ldrd): New prototype.
7564 * config/arm/arm.c (arm_check_ldrd_operands): New function.
7565 (arm_legitimate_ldrd_p): New function.
7566 (arm_output_ldrd): New function.
7567
c020c92b 75682011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
7569
7570 PR middle-end/46500
7571 * doc/tm.texi.in: Update Copyright date.
7572 * doc/tm.texi: Regenerate.
7573 * targhooks.c (default_setup_incoming_varargs): Replace
7574 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7575 (default_pretend_outgoing_varargs_named): Likewise.
7576 (hook_pass_by_reference_must_pass_in_stack): Likewise.
7577 (hook_callee_copies_named): Likewise.
7578 (default_function_arg_advance): Likewise.
7579 (default_function_arg): Likewise.
7580 (default_function_incoming_arg): Likewise.
7581 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7582 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7583 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7584 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7585 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7586 * targhooks.h (default_setup_incoming_varargs): Likewise.
7587 (default_pretend_outgoing_varargs_named): Likewise.
7588 (hook_pass_by_reference_must_pass_in_stack): Likewise.
7589 (hook_callee_copies_named): Likewise.
7590 (default_function_arg_advance): Likewise.
7591 (default_function_arg): Likewise.
7592 (default_function_incoming_arg): Likewise.
7593 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7594 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7595 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7596 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7597 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7598 * target.def (pass_by_reference): Likewise.
7599 (setup_incoming_varargs, strict_argument_naming): Likewise.
7600 (pretend_outgoing_varargs_named, callee_copies): Likewise.
7601 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
7602 (function_incoming_arg): Likewise.
7603 * target.h: Don't include "tm.h" .
7604 (cumulative_args_t): New typedef.
7605 [GCC_TM_H] (get_cumulative_args): New static inline function.
7606 [GCC_TM_H] (pack_cumulative_args): Likewise.
7607 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
7608 argument type with cumulative_args_t.
7609 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
7610 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
7611 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7612 (frv_arg_partial_bytes, frv_function_arg): Likewise.
7613 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
7614 (frv_function_arg_1): Likewise.
7615 * config/s390/s390.c (s390_pass_by_reference): Likewise.
7616 (s390_function_arg_advance, s390_function_arg): Likewise.
7617 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7618 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
7619 (m32c_strict_argument_naming): Likewise.
7620 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
7621 (spu_function_arg_advance): Likewise.
7622 (spu_setup_incoming_varargs): Likewise. Make static.
7623 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
7624 Remove prototype.
7625 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
7626 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7627 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
7628 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
7629 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
7630 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
7631 (mep_pass_by_reference, mep_function_arg): Likewise.
7632 (mep_function_arg_advance): Likewise.
7633 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7634 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
7635 (m32r_function_arg, m32r_function_arg_advance): Likewise.
7636 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
7637 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7638 (ix86_function_arg, ix86_pass_by_reference): Likewise.
7639 (ix86_setup_incoming_varargs): Likewise.
7640 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7641 (sh_strict_argument_naming): Likewise.
7642 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
7643 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
7644 (sh_function_arg_advance, sh_function_arg): Likewise.
7645 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7646 (pdp11_function_arg_advance): Likewise.
7647 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7648 Likewise.
7649 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
7650 * config/avr/avr.c (avr_function_arg): Likewise.
7651 (avr_function_arg_advance): Likewise.
7652 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7653 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
7654 (xtensa_function_arg_1): Likewise.
637c11bd
UB
7655 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
7656 Likewise.
d5cc9181
JR
7657 (xstormy16_function_arg): Likewise.
7658 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7659 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7660 (fr30_function_arg_advance): Likewise.
7661 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7662 (lm32_function_arg, lm32_function_arg_advance): Likewise.
7663 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7664 (moxie_function_arg, moxie_function_arg_advance): Likewise.
7665 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
7666 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7667 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
7668 (cris_function_arg, cris_function_incoming_arg): Likewise.
7669 (cris_function_arg_advance, cris_function_arg_1): Likewise.
7670 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7671 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
7672 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
7673 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7674 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
7675 (mn10300_arg_partial_bytes): Likewise.
7676 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7677 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
7678 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
7679 (ia64_function_arg_1): Likewise.
7680 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7681 (m68k_function_arg): Likewise.
7682 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
7683 (rs6000_function_arg, setup_incoming_varargs): Likewise.
7684 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
7685 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
7686 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
7687 (picochip_arg_advance): Likewise.
7688 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7689 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
7690 (mcore_function_arg_advance): Likewise.
7691 * config/score/score.c (score_pass_by_reference): Likewise.
7692 (score_function_arg_advance): Likewise.
7693 (score_arg_partial_bytes): Likewise. Make static.
7694 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
7695 * config/arm/arm.c (arm_arg_partial_bytes): Replace
7696 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7697 (arm_function_arg, arm_function_arg_advance): Likewise.
7698 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
7699 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7700 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
7701 (pa_function_arg): Likewise.
7702 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
7703 (mips_function_arg, mips_function_arg_advance): Likewise.
7704 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
7705 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
7706 * config/vax/vax.c (vax_function_arg): Likewise.
7707 (vax_function_arg_advance): Likewise.
7708 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7709 (h8300_function_arg_advance): Likewise.
7710 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7711 (v850_strict_argument_naming, v850_function_arg): Likewise.
7712 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
7713 (v850_setup_incoming_varargs): Likewise.
7714 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7715 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
7716 (mmix_function_arg, mmix_pass_by_reference): Likewise.
7717 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
7718 with const void *.
7719 * config/bfin/bfin.c (setup_incoming_varargs): Replace
7720 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7721 (bfin_function_arg_advance, bfin_function_arg): Likewise.
7722 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
7723 * calls.c (emit_call_1): Change type of args_so_far to
7724 cumulative_args_t. Changed all callers.
7725 (initialize_argument_information): Likewise.
7726 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
7727 * dse.c (get_call_args): Likewise.
7728 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7729 * function.c (pass_by_reference, reference_callee_copied): Likewise.
7730 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
7731 New member args_so_far_v. Changed all users.
7732 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
7733 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7734 * config/mips/mips.c (mips_output_args_xfer): Likewise.
7735 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7736 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
7737 * config/microblaze/microblaze.c (microblaze_expand_prologue):
7738 Likewise.
d5cc9181
JR
7739 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
7740 m32r_pass_by_reference.
7741
51312233
IR
77422011-06-16 Ira Rosen <ira.rosen@linaro.org>
7743
7744 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
7745 argument to be a VEC of statements.
637c11bd
UB
7746 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
7747 assert that pattern statements have to have their vector type set.
51312233
IR
7748 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
7749 Change the first argument to be a VEC of statements. Update
7750 documentation.
7751 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
7752 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
7753 (vect_recog_widen_mult_pattern): Change the first argument to be a
7754 VEC of statements. Update documentation. Check that the constant is
7755 INTEGER_CST. Support multiplication by a constant that fits an
7756 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
7757 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
7758 call. Handle additional pattern statements if necessary.
7759
fd4df33d
NC
77602011-06-16 Nick Clifton <nickc@redhat.com>
7761
7762 PR target/49427
7763 * config.gcc: Set cpu_type to v850 for any V850 architecture.
7764 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
7765 md_file, extra_modes, out_file and extra_options are these are all
7766 deduced from cpu_type.
7767
fbd05da0
GJL
77682011-06-16 Georg-Johann Lay <avr@gjlay.de>
7769
7770 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
7771 truncation mask to 63.
7772
0ad8bb3b
GJL
77732011-06-16 Georg-Johann Lay <avr@gjlay.de>
7774
7775 PR target/49313
7776 PR target/29524
7777 * longlong.h: Add AVR support:
7778 (count_leading_zeros): New macro.
7779 (count_trailing_zeros): New macro.
7780 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
7781 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
7782 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
7783 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
7784 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
7785 (LIB2FUNCS_EXCLUDE): Add _clz.
7786 * config/avr/libgcc.S (XCALL): Move up in file.
7787 (XJMP): New C Macro.
7788 (DEFUN): New asm macro.
7789 (ENDF): New asm macro.
7790 (__ffssi2): New function.
7791 (__ffshi2): New function.
7792 (__loop_ffsqi2): New function.
7793 (__ctzsi2): New function.
7794 (__ctzhi2): New function.
7795 (__clzdi2): New function.
7796 (__clzsi2): New function.
7797 (__clzhi2): New function.
7798 (__paritydi2): New function.
7799 (__paritysi2): New function.
7800 (__parityhi2): New function.
59c1e10b 7801 (__parityqi2): New function.
0ad8bb3b
GJL
7802 (__popcounthi2): New function.
7803 (__popcountsi2): New function.
7804 (__popcountdi2): New function.
7805 (__popcountqi2): New function.
7806 (__bswapsi2): New function.
7807 (__bswapdi2): New function.
7808 (__ashldi3): New function.
7809 (__ashrdi3): New function.
7810 (__lshrdi3): New function.
7811 Fix suspicous lines.
7812
12430896
RG
78132011-06-16 Richard Guenther <rguenther@suse.de>
7814
7815 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
7816 the same as x != 0.
637c11bd
UB
7817 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
7818 to (bool) X & 1.
12430896
RG
7819 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
7820 equality compares against zero for the lower bit.
7821
09302442
JJ
78222011-06-16 Jakub Jelinek <jakub@redhat.com>
7823
7824 PR tree-optimization/49419
7825 * tree-vrp.c (execute_vrp): Call init_range_assertions
7826 before estimate_numbers_of_iterations, call
7827 free_number_of_iterations_estimates before calling
7828 remove_range_assertions.
7829
81c41166
RE
78302011-06-16 Revital Eres <revital.eres@linaro.org>
7831
7832 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
7833 (struct partial_schedule): Add rows_length field.
7834 (verify_partial_schedule): Check rows_length.
7835 (ps_insert_empty_row): Handle rows_length.
7836 (create_partial_schedule): Likewise.
7837 (free_partial_schedule): Likewise.
7838 (reset_partial_schedule): Likewise.
7839 (create_ps_insn): Remove rest_count argument.
7840 (remove_node_from_ps): Update rows_length.
7841 (add_node_to_ps): Update rows_length and call create_ps_insn
7842 without passing row_rest_count.
7843 (rotate_partial_schedule): Update rows_length.
7844
d24dc7b3
RE
78452011-06-16 Revital Eres <revital.eres@linaro.org>
7846
7847 * ddg.c (add_intra_loop_mem_dep): New function.
7848 (build_intra_loop_deps): Call it.
7849
361b51c0 78502011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
7851
7852 * df-problems.c (df_lr_local_compute): Manually CSE
7853 PIC_OFFSET_TABLE_REGNUM.
7854 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
7855 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
7856
85ce9375
JH
78572011-06-13 Jan Hubicka <jh@suse.cz>
7858
7859 * cgraphunit.c (handle_alias_pairs): New function.
7860 (cgraph_finalize_compilation_unit): Use it.
7861 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
7862 as externally visible.
7863
a577c405
RG
78642011-06-15 Richard Guenther <rguenther@suse.de>
7865
7866 * expr.c (expand_expr_real_2): Reduce all integral types to
7867 bitfield precision.
7868 (expand_expr_real_1): Likewise.
7869
93536c97
MJ
78702011-06-15 Martin Jambor <mjambor@suse.cz>
7871
7872 PR tree-optimization/48613
7873 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
7874 ipa_node_params_vector is NULL.
fd4df33d 7875
ba45cfc4
JJ
78762011-06-15 Jakub Jelinek <jakub@redhat.com>
7877
7878 PR debug/49382
7879 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
7880 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
7881 location in the list, even if it is modified before first real insn.
ba45cfc4 7882 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 7883 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 7884
6fc5966f
AM
78852011-06-15 Alexander Monakov <amonakov@ispras.ru>
7886
7887 PR target/49349
7888 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
7889 (fence_to_rewind). Use it to notice when bookkeeping will be placed
7890 above a fence. Update comments.
7891 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
7892 placed just above it. Do not allow NULL place_to_insert.
7893
9d5e7640
IR
78942011-06-15 Ira Rosen <ira.rosen@linaro.org>
7895
7896 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
7897 (slpeel_tree_peel_loop_to_edge): Don't call
7898 remove_dead_stmts_from_loop.
7899 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7900 remove irrelevant pattern statements. For irrelevant statements
7901 check if it is the last statement of a detected pattern, use
7902 corresponding pattern statement instead.
7903 (destroy_loop_vec_info): No need to remove pattern statements,
7904 only free stmt_vec_info.
7905 (vect_transform_loop): For irrelevant statements check if it is
7906 the last statement of a detected pattern, use corresponding
7907 pattern statement instead.
7908 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
7909 pattern statements. Set basic block for the new statement.
7910 (vect_pattern_recog): Update documentation.
7911 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
7912 operands of pattern statements.
7913 (vectorizable_call): Fix printing. In case of a pattern statement
7914 use the lhs of the original statement when creating a dummy
7915 statement to replace the original call.
7916 (vect_analyze_stmt): For irrelevant statements check if it is
7917 the last statement of a detected pattern, use corresponding
7918 pattern statement instead.
7919 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
7920 statements use gsi of the original statement.
7921
677f3fa8
JM
79222011-06-14 Joseph Myers <joseph@codesourcery.com>
7923
7924 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
7925 common/common-target-def.h.
7926 * target.def (default_target_flags, handle_option,
7927 supports_split_stack, optimization_table, init_struct,
7928 except_unwind_info, unwind_tables_default, have_named_sections):
7929 Move to common/common-target.def.
7930 * target.h (enum opt_levels, struct default_options): Move to
7931 common/common-target.h.
7932 * targhooks.c (default_except_unwind_info,
7933 dwarf2_except_unwind_info, sjlj_except_unwind_info,
7934 default_target_handle_option, empty_optimization_table): Move to
7935 common/common-targhooks.c.
7936 * targhooks.h (default_except_unwind_info,
7937 dwarf2_except_unwind_info, sjlj_except_unwind_info,
7938 default_target_handle_option, empty_optimization_table): Move to
7939 common/common-targhooks.h.
7940 * common/common-target-def.h: Include common/common-targhooks.h.
7941 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
7942 defined.
7943 * common/common-target.def (handle_option, option_init_struct,
7944 option_optimization_table, default_target_flags,
7945 except_unwind_info, supports_split_stack, unwind_tables_default,
7946 have_named_sections): Move from target.def.
7947 (HOOK_PREFIX): Undefine at end of file.
7948 * common/common-target.h: Include input.h.
7949 (enum opt_levels, struct default_options): Move from target.h.
7950 * common/common-targhooks.c, common/common-targhooks.h: New.
7951 * config.gcc (target_has_targetm_common): Default to yes.
7952 (moxie*): Set target_has_targetm_common=no.
7953 (hppa*-*-*): Don't set target_has_targetm_common=yes.
7954 * doc/tm.texi: Regenerate.
7955 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
7956 (C_TARGET_DEF_H): Add common/common-targhooks.h.
7957 (GCC_OBJS): Remove vec.o.
7958 (OBJS): Remove hooks.o and vec.o.
7959 (OBJS-libcommon-target): Add vec.o, hooks.o and
7960 common/common-targhooks.o.
7961 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
7962 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
7963 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
7964 cfglayout.o, $(out_object_file), $(common_out_object_file)):
7965 Update dependencies.
7966 (common/common-targhooks.o): New.
637c11bd 7967 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
7968 * common/config/pa/pa-common.c: Include more headers. Take
7969 copyright dates from pa.c.
7970 (pa_option_optimization_table, pa_handle_option,
7971 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
7972 TARGET_HANDLE_OPTION): Move from pa.c.
7973 * common/config/alpha/alpha-common.c,
7974 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
7975 common/config/bfin/bfin-common.c,
7976 common/config/cris/cris-common.c,
7977 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
7978 common/config/h8300/h8300-common.c,
7979 common/config/i386/i386-common.c,
7980 common/config/ia64/ia64-common.c,
7981 common/config/iq2000/iq2000-common.c,
7982 common/config/lm32/lm32-common.c,
7983 common/config/m32c/m32c-common.c,
7984 common/config/m32r/m32r-common.c,
7985 common/config/m68k/m68k-common.c,
7986 common/config/mcore/mcore-common.c,
7987 common/config/mep/mep-common.c,
7988 common/config/microblaze/microblaze-common.c,
7989 common/config/mips/mips-common.c,
7990 common/config/mmix/mmix-common.c,
7991 common/config/mn10300/mn10300-common.c,
7992 common/config/pdp11/pdp11-common.c,
7993 common/config/picochip/picochip-common.c,
7994 common/config/rs6000/rs6000-common.c,
7995 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
7996 common/config/score/score-common.c, common/config/sh/sh-common.c,
7997 common/config/sparc/sparc-common.c,
7998 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
7999 common/config/vax/vax-common.c,
8000 common/config/xstormy16/xstormy16-common.c,
8001 common/config/xtensa/xtensa-common.c: New.
8002 * config/alpha/alpha.c: Include common/common-target.h.
8003 (alpha_option_optimization_table, alpha_handle_option,
8004 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8005 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
8006 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
8007 * config/arm/arm.c (arm_option_optimization_table,
8008 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8009 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
8010 arm-common.c.
8011 * config/avr/avr.c (avr_option_optimization_table,
8012 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8013 to avr-common.c.
8014 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
8015 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
8016 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
8017 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
8018 * config/cris/cris.c (cris_option_optimization_table,
8019 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8020 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
8021 cris-common.c.
8022 * config/fr30/fr30.c (fr30_option_optimization_table,
8023 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
8024 to fr30-common.c.
8025 * config/frv/frv.c (frv_option_optimization_table,
8026 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
8027 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
8028 * config/h8300/h8300.c (h8300_option_optimization_table,
8029 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8030 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
8031 * config/i386/i386-protos.h (ix86_handle_option): Declare.
8032 * config/i386/i386.c: Include common/common-target.h.
8033 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
8034 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
8035 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
8036 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
8037 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
8038 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
8039 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
8040 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
8041 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
8042 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
8043 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
8044 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
8045 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
8046 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
8047 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
8048 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
8049 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
8050 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
8051 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
8052 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
8053 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
8054 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
8055 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
8056 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
8057 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
8058 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
8059 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
8060 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
8061 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
8062 ix86_option_optimization_table, ix86_option_init_struct,
8063 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
8064 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8065 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
8066 i386-common.c.
8067 * config/i386/t-i386 (i386.o): Update dependencies.
8068 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
8069 * config/ia64/ia64.c (ia64_option_optimization_table,
8070 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8071 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8072 ia64_handle_option): Move to ia64-common.c.
8073 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
8074 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
8075 * config/lm32/lm32.c (lm32_option_optimization_table,
8076 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8077 to lm32-common.c.
8078 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
8079 m32c-common.c.
8080 * config/m32r/m32r.c (m32r_option_optimization_table,
8081 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8082 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8083 m32r_handle_option): Move to m32r-common.c.
8084 (m32r_memory_move_cost): Remove comment referring to
8085 TARGET_HANDLE_OPTION.
8086 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
8087 Move to m68k-common.c.
8088 * config/mcore/mcore.c (mcore_option_optimization_table,
8089 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8090 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
8091 * config/mep/mep.c (mep_option_optimization_table,
8092 mep_handle_option, TARGET_HANDLE_OPTION,
8093 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
8094 Move to mep-common.c.
8095 * config/microblaze/microblaze.c
8096 (microblaze_option_optimization_table,
8097 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8098 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
8099 * config/mips/mips.c (mips_handle_option,
8100 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8101 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
8102 mips-common.c.
8103 * config/mmix/mmix.c (mmix_option_optimization_table,
8104 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8105 Move to mmix-common.c.
8106 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8107 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
8108 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8109 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
8110 * config/pa/pa.c: Include common/common-target.h.
8111 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8112 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8113 pa_handle_option): Move to pa-common.c.
8114 (pa_option_override): Use targetm_common.except_unwind_info.
8115 (pa_asm_output_mi_thunk, pa_function_section): Use
8116 targetm_common.have_named_sections.
8117 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
8118 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8119 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8120 pdp11_handle_option, pdp11_option_init_struct): Move to
8121 pdp11-common.c.
8122 * config/picochip/picochip.c (picochip_option_optimization_table,
8123 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
8124 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
8125 * config/rs6000/rs6000.c: Include common/common-target.h.
8126 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
8127 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
8128 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
8129 rs6000_handle_option): Move to rs6000-common.c.
8130 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8131 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
8132 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8133 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
8134 * config/s390/s390.c (processor_flags_table,
8135 s390_option_optimization_table, s390_option_init_struct,
8136 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
8137 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8138 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
8139 * config/s390/s390.h (processor_flags_table): Declare.
8140 * config/score/score.c (score_option_optimization_table,
8141 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8142 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
8143 score_handle_option): Move to score-common.c.
8144 * config/sh/sh.c (sh_option_optimization_table,
8145 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8146 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8147 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
8148 * config/sparc/sparc.c: Include common/common-target.h.
8149 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8150 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
8151 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
8152 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
8153 spu_option_init_struct): Move to spu-common.c.
8154 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8155 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
8156 * config/v850/v850.c (small_memory_physical_max,
8157 v850_handle_memory_optionn v850_handle_option,
8158 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8159 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
8160 v850-common.c.
637c11bd 8161 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
8162 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
8163 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8164 Move to xtensa-common.c.
8165 * cfglayout.c: Include common/common-target.h.
8166 (fixup_reorder_chain): Use targetm_common.have_named_sections.
8167 * cfgrtl.c: Include common/common-target.h.
8168 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
8169 targetm_common.have_named_sections.
8170 * dbxout.c: Include common/common-target.h.
8171 (dbxout_function_end): Use targetm_common.have_named_sections.
8172 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
8173 targetm_common.except_unwind_info.
8174 * dwarf2out.c: Include common/common-target.h.
8175 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
8176 dwarf2out_begin_prologue, dwarf2out_frame_init,
8177 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
8178 targetm_common.except_unwind_info.
8179 * except.c: Include common/common-target.h.
8180 (init_eh, finish_eh_generation,
8181 output_one_function_exception_table): Use
8182 targetm_common.except_unwind_info.
637c11bd 8183 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
8184 * explow.c: Include common/common-target.h.
8185 * expr.c: Include common/common-target.h.
637c11bd 8186 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
8187 * function.c: Include common/common-target.h.
8188 (expand_function_end): Use targetm_common.except_unwind_info.
8189 * haifa-sched.c: Include common/common-target.h.
637c11bd 8190 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
8191 * lto-opts.c: Include common/common-target.h instead of target.h.
8192 (lto_reissue_options): Use targetm_common.handle_option.
8193 * opts.c: Include common/common-target.h.
8194 (target_handle_option): Use targetm_common.handle_option.
8195 (init_options_struct): Update comment referring to
8196 targetm.target_option.optimization. Use
8197 targetm_common.default_target_flags,
8198 targetm_common.unwind_tables_default and
8199 targetm_common.option_init_struct.
8200 (default_options_optimization): Use
8201 targetm_common.option_optimization_table.
8202 (finish_options): Use targetm_common.except_unwind_info,
8203 targetm_common.unwind_tables_default,
8204 targetm_common.have_named_sections and
8205 targetm_common.supports_split_stack.
8206 * toplev.c: Include common/common-target.h.
8207 (process_options): Use targetm_common.have_named_sections.
8208 * tree-tailcall.c: Include common/common-target.h.
637c11bd 8209 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 8210 * tree.c: Include common/common-target.h.
637c11bd 8211 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
8212 * varasm.c: Include common/common-target.h.
8213 (resolve_unique_section, hot_function_section,
8214 default_function_section): Use targetm_common.have_named_sections.
8215
d26c7090
ER
82162011-06-14 Easwaran Raman <eraman@google.com>
8217
8218 PR rtl-optimization/44194
8219 * dse.c: Include tree-flow.h
8220 (insn_info): Add new field non_frame_wild_read.
8221 (group_info): Add new fields escaped_n and escaped_p.
8222 (kill_on_calls): New variable.
8223 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
8224 (dse_step0): Initialize kill_on_calls.
8225 (can_escape): New function.
8226 (set_usage_bits): Add additional parameter; record information
8227 about escaped locations.
637c11bd 8228 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
8229 (dse_step2_nospill): Set kill_on_calls based on
8230 group->escaped_n and group->escaped_n.
8231 (add_wild_read): Refactor into...
8232 (reset_active_stores): ... New function, and
8233 (free_read_records): ... New function.
8234 (add_non_frame_wild_read): New function.
8235 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 8236 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
8237 (dse_step5_nospill): Call scan_reads_nospill for instructions
8238 marked as non_frame_wild_read.
637c11bd 8239 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 8240
c49a6962
JM
82412011-06-14 Joseph Myers <joseph@codesourcery.com>
8242
8243 * common/common-target-def.h, common/common-target.def,
8244 common/common-target.h, common/config/default-common.c,
8245 common/config/pa/pa-common.c: New files.
8246 * Makefile.in (common_out_file, common_out_object_file,
8247 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
8248 (OBJS-libcommon-target): Include $(common_out_object_file).
8249 (prefix.o): Update dependencies.
8250 ($(common_out_object_file), common/common-target-hooks-def.h,
8251 s-common-target-hooks-def-h): New.
8252 (s-tm-texi): Also check timestamp on common-target.def.
8253 (build/genhooks.o): Update dependencies.
8254 * config.gcc (common_out_file, target_has_targetm_common): Define.
8255 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
8256 TARGET_ALWAYS_STRIP_DOTDOT.
8257 * configure.ac (common_out_object_file): Define.
8258 (common_out_file, common_out_object_file): Substitute.
8259 (common): Create directory.
8260 * configure: Regenerate.
8261 * doc/tm.texi.in (targetm_common): Document.
8262 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
8263 * doc/tm.texi: Regenerate.
8264 * genhooks.c (hook_array): Also include common/common-target.def.
8265 * prefix.c (tm.h): Don't include.
8266 (common/common-target.h): Include.
8267 (ALWAYS_STRIP_DOTDOT): Don't define.
8268 (update_path): Use targetm_common.always_strip_dotdot instead of
8269 ALWAYS_STRIP_DOTDOT.
8270 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
8271
22c5fa5f
DL
82722011-06-14 David Li <davidxl@google.com>
8273
8274 * passes.c (execute_function_todo): Remove TODO_dump_func.
8275 (execute_one_pass): Remove TODO_dump_func.
8276 (execute_function_dump): New function.
8277 * tree-vrp.c: Remove TODO_dump_func.
8278 * regrename.c: Remove TODO_dump_func.
8279 * fwprop.c: Remove TODO_dump_func.
8280 * tree-into-ssa.c: Remove TODO_dump_func.
8281 * tree-complex.c: Remove TODO_dump_func.
8282 * tracer.c: Remove TODO_dump_func.
8283 * tree-loop-distribution.c: Remove TODO_dump_func.
8284 * postreload-gcse.c: Remove TODO_dump_func.
8285 * postreload.c: Remove TODO_dump_func.
8286 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
8287 * tree-tailcall.c: Remove TODO_dump_func.
8288 * ipa-cp.c: Remove TODO_dump_func.
8289 * final.c: Remove TODO_dump_func.
8290 * tree-emutls.c: Remove TODO_dump_func.
8291 * omp-low.c: Remove TODO_dump_func.
8292 * tree-ssa-dse.c: Remove TODO_dump_func.
8293 * tree-ssa-uncprop.c: Remove TODO_dump_func.
8294 * auto-inc-dec.c: Remove TODO_dump_func.
8295 * reorg.c: Remove TODO_dump_func.
8296 * tree-ssa-copyrename.c: Remove TODO_dump_func.
8297 * tree-ssa-ccp.c: Remove TODO_dump_func.
8298 * compare-elim.c: Remove TODO_dump_func.
8299 * mode-switching.c: Remove TODO_dump_func.
8300 * modulo-sched.c: Remove TODO_dump_func.
8301 * tree-call-cdce.c: Remove TODO_dump_func.
8302 * cse.c: Remove TODO_dump_func.
8303 * web.c: Remove TODO_dump_func.
8304 * tree-stdarg.c: Remove TODO_dump_func.
8305 * lto-streamer-out.c: Remove TODO_dump_func.
8306 * tree-ssa-math-opts.c: Remove TODO_dump_func.
8307 * tree-ssa-dom.c: Remove TODO_dump_func.
8308 * tree-nrv.c: Remove TODO_dump_func.
8309 * loop-init.c: Remove TODO_dump_func.
8310 * gimple-low.c: Remove TODO_dump_func.
8311 * ipa-inline.c: Remove TODO_dump_func.
8312 * tree-ssa-sink.c: Remove TODO_dump_func.
8313 * jump.c: Remove TODO_dump_func.
8314 * ifcvt.c: Remove TODO_dump_func.
8315 * tree-ssa-loop.c: Remove TODO_dump_func.
8316 * recog.c: Remove TODO_dump_func.
8317 * dse.c: Remove TODO_dump_func.
8318 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
8319 * matrix-reorg.c: Remove TODO_dump_func.
8320 * tree-eh.c: Remove TODO_dump_func.
8321 * regmove.c: Remove TODO_dump_func.
8322 * function.c: Remove TODO_dump_func.
8323 * tree-vectorizer.c: Remove TODO_dump_func.
8324 * ipa-split.c: Remove TODO_dump_func.
8325 * gcse.c: Remove TODO_dump_func.
8326 * tree-if-conv.c: Remove TODO_dump_func.
8327 * init-regs.c: Remove TODO_dump_func.
8328 * tree-ssa-phiopt.c: Remove TODO_dump_func.
8329 * implicit-zee.c: Remove TODO_dump_func.
8330 * lower-subreg.c: Remove TODO_dump_func.
8331 * bt-load.c: Remove TODO_dump_func.
8332 * tree-dfa.c: Remove TODO_dump_func.
8333 * except.c: Remove TODO_dump_func.
8334 * emit-rtl.c: Remove TODO_dump_func.
8335 * store-motion.c: Remove TODO_dump_func.
8336 * cfgexpand.c: Remove TODO_dump_func.
8337 * tree-cfgcleanup.c: Remove TODO_dump_func.
8338 * cfgcleanup.c: Remove TODO_dump_func.
8339 * tree-ssa-pre.c: Remove TODO_dump_func.
8340 * tree-sra.c: Remove TODO_dump_func.
8341 * tree-mudflap.c: Remove TODO_dump_func.
8342 * tree-ssa-copy.c: Remove TODO_dump_func.
8343 * cfglayout.c: Remove TODO_dump_func.
8344 * tree-ssa-forwprop.c: Remove TODO_dump_func.
8345 * tree-ssa-dce.c: Remove TODO_dump_func.
8346 * ira.c: Remove TODO_dump_func.
8347 * tree-ssa.c: Remove TODO_dump_func.
8348 * integrate.c: Remove TODO_dump_func.
8349 * tree-optimize.c: Remove TODO_dump_func.
8350 * tree-ssa-phiprop.c: Remove TODO_dump_func.
8351 * tree-object-size.c: Remove TODO_dump_func.
8352 * combine.c: Remove TODO_dump_func.
8353 * bb-reorder.c: Remove TODO_dump_func.
8354 * cprop.c: Remove TODO_dump_func.
8355 * var-tracking.c: Remove TODO_dump_func.
8356 * tree-profile.c: Remove TODO_dump_func.
8357 * tree-vect-generic.c: Remove TODO_dump_func.
8358 * reg-stack.c: Remove TODO_dump_func.
8359 * sched-rgn.c: Remove TODO_dump_func.
8360 * tree-ssa-structalias.c: Remove TODO_dump_func.
8361 * tree-switch-conversion.c: Remove TODO_dump_func.
8362 * tree-cfg.c: Remove TODO_dump_func.
8363 * tree-ssa-reassoc.c: Remove TODO_dump_func.
8364 * combine-stack-adj.c: Remove TODO_dump_func.
8365 * dce.c: Remove TODO_dump_func.
8366 * tree-ssanames.c: Remove TODO_dump_func.
8367 * regcprop.c: Remove TODO_dump_func.
8368
fa465762
L
83692011-06-14 H.J. Lu <hongjiu.lu@intel.com>
8370
8371 PR middle-end/47364
8372 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
8373 and properly handle result not in Pmode.
8374
7d8d16c3
RM
83752011-06-14 Robert Millan <rmh@gnu.org>
8376
8377 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
8378 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
8379 `config/linux.h'.
8380
8381 * config/i386/kfreebsd-gnu64.h: New file.
8382 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
8383 with `i386/kfreebsd-gnu64.h'.
8384
8385 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
8386 (GNU_USER_LINK_EMULATION64): New macros.
8387 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
8388 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
8389 of hardcoding `elf_i386' and `elf_x86_64'.
8390
0ccef3d2
NC
83912011-06-14 Nick Clifton <nickc@redhat.com>
8392
8393 PR target/49403
8394 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
8395
8396 PR target/49402
8397 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
8398
8a76c4a0
JJ
83992011-06-14 Jakub Jelinek <jakub@redhat.com>
8400
1ace6185
JJ
8401 PR fortran/49103
8402 * tree.h (DECL_NONSHAREABLE): Define.
8403 (struct tree_decl_common): Change decl_common_unused to
8404 decl_nonshareable_flag.
8405 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
8406 Ignore vars with DECL_NONSHAREABLE bit set.
8407 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
8408 on stores to automatic aggregate vars.
8409
8a76c4a0
JJ
8410 PR rtl-optimization/49390
8411 Revert:
8412 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
8413
8414 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8415 MEM_ALIAS_SET.
8416
b4a9343c
ZD
84172011-06-14 Zdenek Dvorak <ook@ucw.cz>
8418 Tom de Vries <tom@codesourcery.com>
8419
8420 PR target/45098
8421 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
8422 Document changed semantics.
8423 (max_stmt_executions, max_stmt_executions_int): Declare.
8424 * tree-data-ref.c (estimated_loop_iterations)
8425 (estimated_loop_iterations_int): Move functions...
8426 * tree-ssa-loop-niter.c (estimated_loop_iterations)
8427 (estimated_loop_iterations_int): here.
8428 (record_estimate): Change nb_iterations_upper_bound and
8429 nb_iterations_estimate semantics.
8430 (max_stmt_executions, max_stmt_executions_int): New function.
8431 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
8432 (max_stmt_executions_tree): this.
8433 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
8434 estimated_loop_iterations_tree.
8435 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
8436 max_stmt_executions_int instead of estimated_loop_iterations_int.
8437 * predict.c (predict_loops): Idem.
8438 * tree-parloops.c (parallelize_loops): Idem.
8439 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
8440 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
8441 (init_omega_for_ddr_1): Idem.
8442 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
8443 (loop_prefetch_arrays): Idem
8444 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
8445 max_stmt_executions instead of estimated_loop_iterations.
8446 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
8447 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
8448 instead of nb_iterations_upper_bound.
8449
d2640c43
JH
84502011-06-13 Jan Hubicka <jh@suse.cz>
8451
8452 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
8453
40873cdd
RH
84542011-06-14 Richard Henderson <rth@redhat.com>
8455
8456 PR debug/48459
8457 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
8458 (based_loc_descr): Assert it's true.
8459 (compute_frame_pointer_to_fb_displacement): Set it, rather than
8460 aborting immediately.
8461
73e8cb24
SL
84622011-06-14 Sanjin Liu <scliu@faraday-tech.com>
8463 Mingfeng Wu <mingfeng@faraday-tech.com>
8464
8465 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
8466
f835f0a7
JH
84672011-06-13 Jan Hubicka <jh@suse.cz>
8468
8469 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
8470
ee6f1177
JH
84712011-06-13 Jan Hubicka <jh@suse.cz>
8472
8473 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
8474 similarly to DECL_COMDAT.
8475 * cgraphunit.c (cgraph_analyze_function): Likewise.
8476 * ipa.c (function_and_variable_visibility): Likewise.
8477
618abf9a
JH
84782011-06-13 Jan Hubicka <jh@suse.cz>
8479
8480 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
8481 BINFO_VIRTUALS when streaming for ltrans unit.
8482
a45fe02f
DE
84832011-06-13 David Edelsohn <dje.gcc@gmail.com>
8484
8485 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
8486 (movdi_internal64): Same.
8487
84882011-06-13 Edmar Wienskoski <edmar@freescale.com>
8489
e641e495 8490 PR target/44618
7d8d16c3
RM
8491 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
8492 a set of similar patterns, where the MATCH_OPERAND for the function
8493 argument is replaced with individual references to hardware registers.
a45fe02f
DE
8494 (save_fpregs_<mode>): Ditto
8495 (restore_gpregs_<mode>): Ditto
8496 (return_and_restore_gpregs_<mode>): Ditto
8497 (return_and_restore_fpregs_<mode>): Ditto
8498 (return_and_restore_fpregs_aix_<mode>): Ditto
8499
8775a18b
JH
85002011-06-13 Jan Hubicka <jh@suse.cz>
8501
8502 * ipa-utils.c (postorder_stack): New structure.
8503 (ipa_reverse_postorder): Handle aliases.
8504
85052011-06-13 Jan Hubicka <jh@suse.cz>
8506
8507 * ipa-inline.c (reset_edge_caches): Walk aliases.
8508 (update_caller_keys): Do not test inlinability of aliases.
8509 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
8510 (do_estimate_growth): Fix typo.
8511
6c69a029
JH
85122011-06-13 Jan Hubicka <jh@suse.cz>
8513
8514 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
8515 (can_remove_node_now_p): ... here; handle same comdat groups.
8516 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
8517 (inline_call): Update use of can_remove_node_now_p.
8518
10c63ba4 85192011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 8520
10c63ba4 8521 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
8522 condition to disallow non-identical memory locations.
8523 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
8524 preference to bit manipulation instructions.
495f8c14 8525
9aa3f5c5
JH
85262011-06-13 Jan Hubicka <jh@suse.cz>
8527
8528 * cgraph.c (cgraph_for_node_thunks_and_aliases,
8529 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
8530 (nonremovable_p): New function.
8531 (cgraph_can_remove_if_no_direct_calls_p): New function.
8532 (used_from_object_file_p): New functoin.
10c63ba4
EB
8533 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
8534 references from aliases.
9aa3f5c5
JH
8535 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
8536 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
8537 (want_inline_function_called_once_p): Use it; accept aliases called
8538 once, too.
9aa3f5c5
JH
8539 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
8540
30cecf17
RR
85412011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8542
8543 PR target/48454
8544 * config/arm/neon.md (vec_pack_trunc): Set the lengths
8545 correctly for the case with Quad vectors.
8546
29f85237
JJ
85472011-06-13 Jakub Jelinek <jakub@redhat.com>
8548 Ira Rosen <ira.rosen@linaro.org>
8549
8550 PR tree-optimization/49352
8551 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
8552 all, make sure loop_use_stmt after the loop is a def stmt of a used
8553 SSA_NAME that is the only one defined inside of the loop. Don't
8554 check for COND_EXPR and GIMPLE_BINARY_RHS.
8555 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
8556 check_reduction is true.
8557
c3e3f090
JH
85582011-06-11 Jan Hubicka <jh@suse.cz>
8559
8560 PR middle-end/49373
8561 * ipa.c (cgraph_externally_visible_p): Check resolution info.
8562
516e0768
JH
85632011-06-11 Jan Hubicka <jh@suse.cz>
8564
8565 PR middle-end/48836
8566 * ipa-inline-transform.c: Include tree-pass.h
8567 (inline_transform): Set TODO_update_ssa_only_virtuals.
8568 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
8569
903b0a8b
JH
85702011-06-11 Jan Hubicka <jh@suse.cz>
8571
8572 PR middle-end/49378
8573 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
8574 aliases and thunks.
8575
44542f8e
IR
85762011-06-12 Ira Rosen <ira.rosen@linaro.org>
8577
8578 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
8579 Take number of iterations to peel into account for equally frequent
8580 misalignment values.
8581
ea89702b
JH
85822011-06-11 Jan Hubicka <jh@suse.cz>
8583
637c11bd
UB
8584 * lto-streamer-out.c (produce_symtab): Stream out the newly
8585 represented aliases.
ea89702b 8586
380ed5ed
JH
85872011-06-11 Jan Hubicka <jh@suse.cz>
8588
637c11bd
UB
8589 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
8590 varying args.
380ed5ed
JH
8591 (ipa_update_after_lto_read): Likewise.
8592 (ipa_write_node_info): Do not sream call_with_var_arguments.
8593 (ipa_read_node_info): Likewise.
8594
00cfc363
JH
85952011-06-11 Jan Hubicka <jh@suse.cz>
8596
8597 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
8598
39e2db00
JH
85992011-06-11 Jan Hubicka <jh@suse.cz>
8600
8601 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
8602 (lto_symtab_resolve_can_prevail_p): Likewise.
8603 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
8604 * cgraph.c (same_body_aliases_done): New global var.
8605 (cgraph_same_body_alias_1): Rename to ...
8606 (cgraph_create_function_alias): ... this one; reorg to new
8607 representation.
8608 (cgraph_same_body_alias): Use cgraph_create_function_alias;
8609 record references when asked to.
8610 (cgraph_add_thunk): Fix formating.
8611 (cgraph_get_node): Kill same body alias code.
8612 (cgraph_node_for_asm): Likewise.
8613 (cgraph_remove_same_body_alias): Remove.
8614 (cgraph_remove_node): Kill same body alias code.
8615 (cgraph_mark_address_taken_node): Mark also the aliased function
8616 as having address taken.
8617 (dump_cgraph_node): Dump same body aliases.
8618 (cgraph_for_node_thunks_and_aliases): Update for new alias
8619 representation.
8620 (cgraph_for_node_and_aliases): Likewise.
8621 * cgraph.h (same_body): Kll pointer.
8622 (same_body_alias): Update comment.
8623 (same_body_aliases_done): Declare.
8624 (cgraph_remove_same_body_alias): Remove declaration.
8625 (cgraph_create_function_alias): Declare.
8626 (cgraph_process_same_body_aliases): Declare.
8627 (cgraph_function_with_gimple_body_p): Check for alias.
8628 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
8629 (cgraph_alias_aliased_node): New function.
8630 (cgraph_function_node): Update for new aliases.
8631 (cgraph_function_or_thunk_node): Likewise.
8632 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
8633 (inline_call): Remove dead aliases.
10c63ba4
EB
8634 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
8635 name hack for same body aliases.
39e2db00
JH
8636 (clone_of_p): Look through aliases.
8637 (verify_cgraph_node): Verify aliases.
8638 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
8639 (cgraph_process_same_body_aliases): New function.
8640 (process_function_and_variable_attributes): Disable weakref warning on
8641 alias.
8642 (cgraph_analyze_functions): Handle aliases.
8643 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
8644 (assemble_thunks): Rename to ...
8645 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
8646 (cgraph_expand_function): Remove alias output code.
8647 (cgraph_output_in_order): Skip aliases.
8648 (cgraph_preserve_function_body_p): Aliases don't need preserving.
8649 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
8650 (ipa_record_reference): Do not assert on alias references.
8651 (ipa_ref_has_aliases_p): New function.
8652 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
8653 (ipa_ref_has_aliases_p): Declare.
8654 * lto-cgraph.c (lto_output_node): Handle aliases.
8655 (input_node): Likewise.
8656 * lto-streamer-out.c (lto_output): Skip aliases.
8657 (produce_symtab): Kill same_body_alias code.
8658 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
8659 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
8660 * ipa-inline.c (update_caller_keys): Walk aliases.
8661 (inline_small_functions): Fix thinko in previous patch.
8662 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
8663 (function_and_variable_visibility): Do not walk same body aliases.
8664 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
8665 (ipa_pta_execute): Use it.
8666
9ee65b55
UB
86672011-06-11 Uros Bizjak <ubizjak@gmail.com>
8668
8669 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
8670 (*vec_dupv2df): Rename from vec_dupv2df.
8671 (vec_dupv2df): New expander.
8672
86732011-06-11 Uros Bizjak <ubizjak@gmail.com>
8674
8675 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
8676
86772011-06-11 Uros Bizjak <ubizjak@gmail.com>
8678
8679 * config/i386/i386.md: Use default value in "isa" attribute.
8680 * config/i386/sse.md: Ditto.
8681 * config/i386/mmx.md: Ditto.
8682
ba68a139
WG
86832011-06-10 Wei Guozhi <carrot@google.com>
8684
8685 PR target/45335
8686 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8687 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8688 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8689 related peephole2.
8690 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8691 related peephole2.
8692 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8693 (arm_legitimate_ldrd_p): New prototype.
8694 (arm_output_ldrd): New prototype.
8695 * config/arm/arm.c (arm_check_ldrd_operands): New function.
8696 (arm_legitimate_ldrd_p): New function.
8697 (arm_output_ldrd): New function.
8698
deced1e2
XDL
86992011-06-10 David Li <davidxl@google.com>
8700
8701 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
8702 * passes.c (passr_eq): New function.
8703 (create_pass_tab): New function.
8704 (pass_traverse): New function.
8705 (dump_one_pass): New function.
8706 (dump_pass_list): New function.
8707 (dump_passes): New function.
8708
71fb4f92
JH
87092011-06-10 Jan Hubicka <jh@suse.cz>
8710
8711 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
8712 setting the nothrow flag.
8713 * ipa-reference.c (propagate): Skip aliases.
8714 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
8715 (propagate_nothrow): Skip aliases; do not update cgraph.
8716 (local_pure_const): Do not update cgraph.
8717 * tree-profile.c (tree_profiling): Do fixup_cfg.
8718
41817394
JH
87192011-06-10 Jan Hubicka <jh@suse.cz>
8720
8721 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
8722 (cgraph_local_node_p): ... here; handle aliases.
8723 (has_addr_references_p): Break out from ...;
8724 (cgraph_remove_unreachable_nodes) ... here.
8725
fb37c1de
JH
87262011-06-10 Jan Hubicka <jh@suse.cz>
8727
8728 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
8729 * common.opt (flag_inline_functions_called_once): Do not
8730 initialize to 1.
fb37c1de 8731
0818c24c
JH
87322011-06-10 Jan Hubicka <jh@suse.cz>
8733
8734 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
8735 (ipcp_initialize_node_lattices): Do not deal with aliases;
8736 Do not try to propagate through thunks.
0818c24c
JH
8737 (ipcp_change_tops_to_bottom): Do not deal with aliases.
8738
c8246dbe
JH
87392011-06-10 Jan Hubicka <jh@suse.cz>
8740
9ee65b55
UB
8741 * ipa-prop.c (ipa_write_node_info): Stream jump functions
8742 for indirect calls.
c8246dbe
JH
8743 (ipa_read_node_info): Likewise.
8744
d7e2a1c1
BS
87452011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8746
8747 PR lto/49302
8748 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
8749 (build_and_insert_call): Likewise.
8750 (build_and_insert_ref): New.
8751 (gimple_expand_builtin_pow): Minor cleanup.
8752 (gimple_expand_builtin_cabs): New.
8753 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 8754
749f25d8
JH
87552011-06-10 Jan Hubicka <jh@suse.cz>
8756
8757 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
8758 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
8759 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
8760 (ipcp_propagate_stage): Skip aliases when propagating.
8761 (ipcp_need_redirect_p): Skip aliases.
8762 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
8763 collect_callers_of_node.
8764 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
8765 for aliases.
8766 (ipa_compute_jump_functions): Look through aliases.
8767
8340fbd7
RO
87682011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8769
8770 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
8771
9aaa7e47
HPN
87722011-06-10 Hans-Peter Nilsson <hp@axis.com>
8773
8774 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
8775 Adjust comments.
8776 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
8777
f1724940
JH
87782011-06-10 Jan Hubicka <jh@suse.cz>
8779
8780 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
8781 Update call of gimple_get_virt_method_for_binfo.
8782 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
8783 refuse_thunks parameter.
8784 (gimple_fold_call): Update.
8785 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
8786
a6f834c5
JH
87872011-06-10 Jan Hubicka <jh@suse.cz>
8788
8789 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
8790 (not_all_callers_have_enough_arguments_p): ... this one; turn into
8791 worker for cgraph_for_node_and_aliases.
8792 (convert_callers_for_node): Break out from ...
8793 (convert_callers): ... here.
8794 (modify_function): Use collect_callers_of_node.
8795 (ipa_early_sra): Use cgraph_for_node_and_aliases.
8796
7871eee3
RG
87972011-06-10 Richard Guenther <rguenther@suse.de>
8798
8799 PR tree-optimization/49361
8800 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
8801 when not already in gimple form.
8802
dae957ae
RG
88032011-06-10 Richard Guenther <rguenther@suse.de>
8804
8805 PR bootstrap/49344
8806 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
8807 FOR_EACH_PHI_OR_STMT_USE.
8808
a5b1779f
JH
88092011-06-10 Jan Hubicka <jh@suse.cz>
8810
8811 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
8812 (clone_inlined_nodes): ... here.
8813 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
8814 to real destination prior inlining.
8815 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
8816 can_early_inline_edge_p, want_early_inline_function_p,
8817 want_early_inline_function_p, want_inline_small_function_p,
8818 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
8819 edge_badness, update_all_callee_keys, lookup_recursive_calls,
8820 add_new_edges_to_heap, inline_small_functions, flatten_function,
8821 inline_always_inline_functions, early_inline_small_functions): Use
8822 cgraph_function_or_thunk_node.
8823 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
8824 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
8825 (do_estimate_edge_growth_1): Break out from ...
8826 (do_estimate_growth) ... here; walk aliases.
8827 (inline_generate_summary): Skip aliases.
8828
c1ae3ca5
RG
88292011-06-10 Richard Guenther <rguenther@suse.de>
8830
9ee65b55
UB
8831 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
8832 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 8833
b504a918
PC
88342011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
8835
8836 * tree.h (error_operand_p): Add.
8837 * dbxout.c (dbxout_type_fields): Use the latter.
8838 * c-decl.c (add_stmt): Likewise.
8839 * gimplify.c (omp_add_variable, omp_notice_variable,
8840 gimplify_scan_omp_clauses): Likewise.
8841
3f5ea9dc 88422011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 8843
3f5ea9dc
GJL
8844 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
8845 when a value is actually passed in regs.
8846
b11b0904 88472011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 8848 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
8849
8850 * doc/invoke.texi (SPARC options): Add -mflat.
8851 * config/sparc/sparc.opt: Likewise.
8852 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
8853 (sparc_flat_expand_prologue): Declare.
8854 (sparc_flat_expand_epilogue): Likewise.
8855 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
8856 (CPP_ENDIAN_SPEC): Replace with...
8857 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
8858 (CPP_SPEC): Adjust to above change.
8859 (EXTRA_SPECS): Likewise.
8860 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
8861 (INCOMING_REGNO): Likewise.
8862 (OUTGOING_REGNO): Likewise.
8863 (LOCAL_REGNO): Likewise.
8864 (SETUP_FRAME_ADDRESSES): Likewise.
8865 (FIXED_REGISTERS): Set 0 for %fp.
8866 (CALL_USED_REGISTERS): Likewise.
8867 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
8868 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
8869 (RETURN_ADDR_REGNUM): Define.
8870 (RETURN_ADDR_RTX): Use it.
8871 (INCOMING_RETURN_ADDR_REGNUM): Define.
8872 (INCOMING_RETURN_ADDR_RTX): Use it.
8873 (DWARF_FRAME_RETURN_COLUMN): Likewise.
8874 (EH_RETURN_REGNUM): Define.
8875 (EH_RETURN_STACKADJ_RTX): Use it.
8876 (EH_RETURN_HANDLER_RTX): Delete.
8877 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
8878 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
8879 Delete.
8880 (struct machine_function): Add frame_size, apparent_frame_size,
8881 frame_base_reg, frame_base_offset, n_global_fp_regs and
8882 save_local_in_regs_p fields.
8883 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
8884 sparc_frame_base_offset, sparc_n_global_fp_regs,
8885 sparc_save_local_in_regs_p): New macros.
8886 (sparc_option_override): Error out if -fcall-saved-REG is specified
8887 for Out registers.
8888 (eligible_for_restore_insn): Fix formatting.
8889 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
8890 (eligible_for_sibcall_delay): Likewise.
8891 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
8892 (sparc_legitimate_address_p): Adjust to above change.
8893 (save_global_or_fp_reg_p): New predicate.
8894 (return_addr_reg_needed_p): Likewise.
8895 (save_local_or_in_reg_p): Likewise.
8896 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
8897 (SORR_SAVE, SORR_RESTORE): Delete.
8898 (sorr_pred_t): New typedef.
8899 (sorr_act_t): New enum.
8900 (save_or_restore_regs): Rename to...
8901 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
8902 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
8903 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
8904 mechanism. Add CFI information for double-word saves in 32-bit mode.
8905 (emit_adjust_base_to_offset): New function extracted from...
8906 (emit_save_or_restore_regs): ...this. Rename the rest to...
8907 (emit_save_or_restore_regs_global_fp_regs): ...this.
8908 (emit_save_or_restore_regs_local_in_regs): New function.
8909 (gen_create_flat_frame_[123]): New functions.
8910 (sparc_expand_prologue): Use SIZE local variable. Adjust.
8911 (sparc_flat_expand_prologue): New function.
8912 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
8913 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
8914 (sparc_flat_expand_epilogue): New function.
8915 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
8916 (output_return): Likewise.
8917 (output_sibcall): Likewise.
8918 (sparc_output_mi_thunk): Likewise.
8919 (sparc_frame_pointer_required): Likewise.
8920 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
8921 function optimization.
8922 * config/sparc/sparc.md (flat): New attribute.
8923 (prologue): Add TARGET_FLAT handling.
8924 (save_register_window): Disable if TARGET_FLAT.
8925 (create_flat_frame_[123]): New patterns.
8926 (epilogue): Add TARGET_FLAT handling.
8927 (sibcall_epilogue): Likewise.
8928 (eh_return): New expander.
8929 (eh_return_internal): New insn and splitter.
8930 (return_internal): Add TARGET_FLAT handling.
8931 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
8932 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
8933 (nonlocal_goto): Add TARGET_FLAT handling.
8934 * config/sparc/t-elf: Add -mflat multilib.
8935 * config/sparc/t-leon: Likewise.
8936
fede8efa
JH
89372011-06-10 Jan Hubicka <jh@suse.cz>
8938
8939 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
8940 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
8941 (self_recursive_p): Use cgraph_function_node.
8942 (propagate_pure_const): Likewise.
8943 (propagate_nothrow): Likewise.
8944 * ipa-reference.c (ipa_reference_get_not_read_global): Use
8945 cgraph_function_node.
8946 (propagate_bits): Likewise.
8947 (propagate): Likewise.
8948
0127c76f
RR
89492011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8950 Richard Earnshaw <rearnsha@arm.com>
8951
9ee65b55 8952 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
8953 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
8954 (*thumb2_movdi_vfp): Delete.
8955 (*arm_movdi_vfp_cortexa8): Delete.
8956 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
8957 (*movdi_vfp_cortexa8): Likewise.
8958
f93fe5a0
RG
89592011-06-10 Richard Guenther <rguenther@suse.de>
8960
8961 * stor-layout.c (initialize_sizetypes): Give names to all
8962 sizetype kinds.
8963
f2164f87
IR
89642011-06-10 Ira Rosen <ira.rosen@linaro.org>
8965
8966 PR tree-optimization/49318
8967 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
8968 irrelevant pattern statements.
8969
3f91c962
HPN
89702011-06-10 Hans-Peter Nilsson <hp@axis.com>
8971
3d223145
HPN
8972 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
8973
3f91c962
HPN
8974 PR bootstrap/49354
8975 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
8976 to last assignment.
8977
b125ad45
JH
89782011-06-09 Jan Hubicka <jh@suse.cz>
8979
8980 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
8981 do not recompute reachable flag.
8982 (cgraph_finalize_function, cgraph_analyze_functions): Set
8983 redefined_extern_inline here.
8984
be330ed4
JH
89852011-06-09 Jan Hubicka <jh@suse.cz>
8986
8987 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
8988 (cgraph_only_called_directly_p): ... this one; bring offline.
8989 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
8990 varpool_used_from_object_file_p): Drop names from the declaratoin.
8991 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
8992 collect_callers_of_node): New.
8993 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
8994 (cgraph_edge_recursive_p): Use cgraph_function_node.
8995 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
8996 (cgraph_node_cannot_be_local_p_1): Break out from ...
8997 (cgraph_node_can_be_local_p): ... here; walk aliases.
8998 (cgraph_for_node_thunks_and_aliases): New function.
8999 (cgraph_for_node_and_aliases): New function.
9000 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
9001 (cgraph_make_node_local) ... here; use
9002 cgraph_for_node_thunks_and_aliases.
be330ed4 9003 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
9004 (cgraph_set_nothrow_flag) ... here;
9005 use cgraph_for_node_thunks_and_aliases.
be330ed4 9006 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
9007 (cgraph_set_const_flag) ... here;
9008 use cgraph_for_node_thunks_and_aliases.
be330ed4 9009 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
9010 (cgraph_set_pure_flag) ... here;
9011 use cgraph_for_node_thunks_and_aliases.
be330ed4 9012 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
9013 (cgraph_propagate_frequency) ... here; use
9014 cgraph_for_node_thunks_and_aliases.
be330ed4 9015 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
9016 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
9017 New functions.
be330ed4
JH
9018 (collect_callers_of_node_1, collect_callers_of_node): New functions.
9019
2ea91d6b
HPN
90202011-06-10 Hans-Peter Nilsson <hp@axis.com>
9021
9022 PR rtl-optimization/49154
9023 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
9024 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
9025 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
9026 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
9027 * config/cris/cris.h (cris_register_move_cost): Remove
9028 !TARGET_V32 code. Tweak comments.
9029
9cf4fb5a
JH
90302011-06-09 Jan Hubicka <jh@suse.cz>
9031
9032 * cgraphbuild.c (record_eh_tables): Mark personality function as having
9033 address taken.
9034
6049a4c8
HPN
90352011-06-10 Hans-Peter Nilsson <hp@axis.com>
9036
c577822e 9037 PR rtl-optimization/49154
9ee65b55
UB
9038 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
9039 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 9040
54e1e4f7 9041 PR rtl-optimization/49154
6049a4c8
HPN
9042 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
9043 register classes.
9044 * doc/tm.texi: Regenerate.
9045
3be68b64
KK
90462011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
9047
9048 PR target/49307
9049 * config/sh/sh.md (UNSPEC_CHKADD): New.
9050 (chk_guard_add): New define_insn_and_split.
9051 (symGOT_load): Use chk_guard_add instead of blockage.
9052
bf806a90
KT
90532011-06-09 Kai Tietz <ktietz@redhat.com>
9054
9055 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
9056
d5a9738b
EB
90572011-06-09 Eric Botcazou <ebotcazou@adacore.com>
9058
9059 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
9060
527e82c2
WG
90612011-06-09 Wei Guozhi <carrot@google.com>
9062
9063 PR target/46975
9064 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
9065 (peephole2 for conditional move): Generate 16 bit instructions.
9066
b8bc3a43
UB
90672011-06-09 Uros Bizjak <ubizjak@gmail.com>
9068
9069 * config/i386/i386.md (*movdi_internal_rex64): Merge
9070 alternatives 6 and 8.
9071
4745da6e
DL
90722011-06-09 David Li <davidxl@google.com>
9073
9074 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9075 * passes.c (passr_eq): New function.
9076 (create_pass_tab): New function.
9077 (pass_traverse): New function.
9078 (dump_one_pass): New function.
9079 (dump_pass_list): New function.
9080 (dump_passes): New function.
9081
bdf67bcb
DL
90822011-06-09 David Li <davidxl@google.com>
9083
9084 * tree-complex.c (tree_lower_complex): Gate cleanup.
9085 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
9086 (execute_optimize_stdarg): Ditto.
9087 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
9088 (execute_cleanup_eh_1): Ditto.
9089 (execute_cleanup_eh): Ditto.
9090 * gcse.c (gate_rtl_pre): Ditto.
9091 (execute_rtl_pre): Ditto.
9092 * except.c (finish_eh_generation): Ditto.
9093 (convert_to_eh_region_ranges): Ditto.
9094 * cprop.c (one_cprop_pass): Ditto.
9095
547fdef8
BS
90962011-06-09 Bernd Schmidt <bernds@codesourcery.com>
9097
9098 PR target/48673
9099 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
9100 in all basic blocks.
9101
10e48e39
RO
91022011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9103
9104 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
9105 (HAVE_ENABLE_EXECUTE_STACK): Define.
9106 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
9107 (HAVE_ENABLE_EXECUTE_STACK): Define.
9108 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
9109 (HAVE_ENABLE_EXECUTE_STACK): Define.
9110 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
9111 (ENABLE_EXECUTE_STACK): Remove.
9112 (HAVE_ENABLE_EXECUTE_STACK): Define.
9113 [IN_LIBGCC2]: Don't include <windows.h>.
9114 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9115 (HAVE_ENABLE_EXECUTE_STACK): Define.
9116 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
9117 (HAVE_ENABLE_EXECUTE_STACK): Define.
9118 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
9119 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
9120 (HAVE_ENABLE_EXECUTE_STACK): Define.
9121 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
9122 (HAVE_ENABLE_EXECUTE_STACK): Define.
9123 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
9124 (HAVE_ENABLE_EXECUTE_STACK): Define.
9125 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9126 (HAVE_ENABLE_EXECUTE_STACK): Define.
9127 * config/alpha/alpha.c (alpha_trampoline_init): Test
9128 HAVE_ENABLE_EXECUTE_STACK.
9129 * config/i386/i386.c (ix86_trampoline_init): Likewise.
9130 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9131 (sparc64_initialize_trampoline): Likewise.
9132 * libgcc2.c [L_enable_execute_stack]: Remove.
9133 * system.h (ENABLE_EXECUTE_STACK): Poison.
9134 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
9135 * doc/tm.texi: Regenerate.
9136 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
9137
8ced31fe
JJ
91382011-06-09 Jakub Jelinek <jakub@redhat.com>
9139
9140 PR middle-end/49308
9141 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
9142 variable. After resetting and rescanning insn continue with previous
9143 statement.
9144
ee610fcd
RO
91452011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9146
9147 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
9148 (gcc_cv_ld_hidden): Likewise.
9149 * configure: Regenerate.
9150 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
9151 (ix86_stack_protect_fail): Mark unused.
9152 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
9153 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
9154 [TARGET_MACHO]: Don't define.
9155 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
9156 (TARGET_STACK_PROTECT_FAIL): Likewise.
9157 (rs6000_stack_protect_fail): Mark unused.
9158 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 9159 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 9160
8f2e22ff
AK
91612011-06-08 Andi Kleen <ak@linux.intel.com>
9162
9163 * varasm.c (get_section): Print location of other conflict
9164 for section conflicts.
9165
815cecbe
AK
91662011-06-08 Andi Kleen <ak@linux.intel.com>
9167
9168 * config/i386/driver-i386.c (host_detect_local_cpu):
9169 Add model 0x2d Intel CPU.
9170
1460ec5c
AK
91712011-06-08 Andi Kleen <ak@linux.intel.com>
9172
9173 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
9174 (globalize_reg): Add decl parameter. Compute location. Pass location
9175 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
9176 * rtl.h (globalize_reg): Update prototype.
9177 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
9178
df17530a
MX
91792011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
9180
9181 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
9182
409fed48
KK
91832011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9184
9185 PR target/49305
9186 * config/sh/predicates.md (general_movsrc_operand): Check
9187 mode for memory with indexed address for QI and HImode.
9188 (general_movdst_operand): Likewise.
9189
87c16a45
NP
91902011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
9191
b8bc3a43 9192 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 9193
49931fcb
AO
91942011-06-08 Alexandre Oliva <aoliva@redhat.com>
9195
9196 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
9197 (num_ssa_operands): Likewise.
9198 (op_iter_init_phiuse): Forward-declare.
9199 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
9200
29494d1f
NC
92012011-06-08 Nick Clifton <nickc@redhat.com>
9202
9203 * doc/invoke.texi (ARM Options): Update description of
9204 -mthumb-interwork.
9205
4ffae7ff
L
92062011-06-08 H.J. Lu <hongjiu.lu@intel.com>
9207
9208 * config/i386/driver-i386.c (host_detect_local_cpu): Support
9209 unknown Intel family 0x6 CPUs.
9210
d9c77712
MJ
92112011-06-08 Martin Jambor <mjambor@suse.cz>
9212
9213 * tree-sra.c (mark_rw_status): Removed.
9214 (analyze_access_subtree): New parameter parent instead of
9215 mark_read and mark_write, propagate from that.
9216
b1def36c
JB
92172011-06-08 Julian Brown <julian@codesourcery.com>
9218
9219 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
9220 for double-precision helper functions in hard-float mode if only
9221 single-precision arithmetic is supported in hardware.
9222
6c8e9fc9
AM
92232011-06-08 Alexander Monakov <amonakov@ispras.ru>
9224
9225 PR rtl-optimization/49303
9226 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
9227 code_motion_path_driver returned 0 or 1.
9228 (sel_region_finish): Clear h_d_i_d.
9229
c2bbcb0d
KK
92302011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9231
9232 * config/sh/sh.c (prepare_move_operands): Set pic register
9233 appropriately for global and local dynamic tls models even
9234 if flag_pic is unset.
9235
6976ae51
JM
92362011-06-07 Jason Merrill <jason@redhat.com>
9237
9238 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
9239
bb5b1f5e
XDL
92402011-06-07 Xinliang David Li <davidxl@google.com>
9241 * passes.c (enable_disable_pass): Handle assembler name.
9242 (is_pass_explicitly_enabled_or_disabled): Ditto.
9243
91ffe356
RO
92442011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9245
9246 PR tree-optimization/48497
9247 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
9248
06bc3ec7
BS
92492011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9250
9251 PR tree-optimization/46728
9252 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
9253 to use gimple_val_nonnegative_real_p.
9254 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
9255 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 9256
c074d740
L
92572011-06-07 H.J. Lu <hongjiu.lu@intel.com>
9258
9259 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
9260
8973b112
SG
92612011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
9262
9263 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
9264 constant vectors.
9265
67b88453
RG
92662011-06-07 Richard Guenther <rguenther@suse.de>
9267
9268 * stor-layout.c (initialize_sizetypes): Initialize all
9269 sizetypes based on target definitions.
9270 (set_sizetype): Remove.
9271 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
9272 * tree.h (set_sizetype): Remove.
9273
1dcad079
NC
92742011-06-07 Nick Clifton <nickc@redhat.com>
9275
9276 * config.gcc: Unify V850 architecture options and add support for
9277 newer V850 architectures.
9278 * config/v850/t-v850e: Delete.
9279
009db074
RG
92802011-06-07 Richard Guenther <rguenther@suse.de>
9281
9282 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
9283 Call set_sizetype from here.
9284
f373314f
AS
92852011-06-07 Andrew Stubbs <ams@codesourcery.com>
9286
9287 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
9288 (*maddhisi4tb, *maddhisi4tt): New define_insns.
9289
c536876e
AS
92902011-06-07 Bernd Schmidt <bernds@codesourcery.com>
9291 Andrew Stubbs <ams@codesourcery.com>
9292
9293 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
9294 multiplies.
9295 * doc/md.texi (Canonicalization of Instructions): Document widening
9296 multiply canonicalization.
9297
308dc890
JJ
92982011-06-07 Jakub Jelinek <jakub@redhat.com>
9299
9300 PR gcov-profile/49299
b8bc3a43 9301 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 9302
383d9c83
IR
93032011-06-07 Ira Rosen <ira.rosen@linaro.org>
9304
9305 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
9306 a pointer.
9307 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
9308 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
9309 vect_recog_pow_pattern): Likewise.
9310 (vect_pattern_recog_1): Remove declaration.
9311 (widened_name_p): Remove declaration. Add new argument to specify
9312 whether to check that both types are either signed or unsigned.
9313 (vect_recog_widen_mult_pattern): Update documentation. Handle
9314 unsigned patterns and multiplication by constants.
9315 (vect_pattern_recog_1): Update vect_recog_func references. Use
9316 statement information from the statement returned from pattern
9317 detection functions.
9318 (vect_pattern_recog): Update vect_recog_func reference.
9319 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
9320 multiplication by a constant use the type of the other operand.
9321
4de4b0f2
RS
93222011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
9323
9324 PR rtl-optimization/49145
9325 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
9326
a9d24544
JJ
93272011-06-06 Jakub Jelinek <jakub@redhat.com>
9328
99a5e049
JJ
9329 PR debug/49262
9330 * dwarf2out.c (native_encode_initializer): Decrement count in each
9331 iteration.
9332
04902d4c
JJ
9333 PR debug/49294
9334 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
9335 non-MODE_INT modes.
9336
a9d24544
JJ
9337 PR c++/49264
9338 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
9339 if stmt folded into nothing.
b8bc3a43
UB
9340 * tree-inline.c (fold_marked_statements): If a builtin at the end of
9341 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
9342 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
9343 to be NULL. Don't compute count and frequency if new_call is NULL.
9344
47c79d56
DN
93452011-06-04 Diego Novillo <dnovillo@google.com>
9346
9347 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
9348 (cgraph.o): Likewise.
9349 (cgraphunit.o): Likewise.
9350 * cgraphunit.c: Include lto-streamer.h
9351 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
9352 if LTO is enabled.
9353 * lto-streamer-in.c (unpack_value_fields): Call
9354 streamer_hooks.unpack_value_fields if set.
9355 (lto_materialize_tree): For unhandled nodes, first try to
9356 call lto_streamer_hooks.alloc_tree, if it exists.
9357 (lto_input_ts_decl_common_tree_pointers): Move reading of
9358 DECL_INITIAL to lto_streamer_read_tree.
9359 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
9360 (lto_streamer_read_tree): New.
9361 (lto_reader_init): Rename from lto_init_reader.
9362 Move initialization code to lto/lto.c.
9363 * lto-streamer-out.c (pack_value_fields): Call
9364 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
9365 (lto_output_tree_ref): For tree nodes that are not normally indexable,
9366 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 9367 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
9368 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
9369 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
9370 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
9371 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
9372 (lto_streamer_write_tree): New.
9373 (lto_output): Call lto_streamer_init directly.
9374 (lto_writer_init): Remove.
9375 * lto-streamer.c (streamer_hooks): New.
9376 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
9377 instead of lto_preload_common_nodes.
9378 (lto_is_streamable): Move from lto-streamer.h
9379 (lto_streamer_hooks_init): New.
9380 (streamer_hooks): New.
9381 (streamer_hooks_init): New.
9382 * lto-streamer.h (struct output_block): Forward declare.
9383 (struct lto_input_block): Likewise.
9384 (struct data_in): Likewise.
9385 (struct bitpack_d): Likewise.
9386 (struct streamer_hooks): Declare.
9387 (streamer_hooks): Declare.
9388 (lto_streamer_hooks_init): Declare.
9389 (lto_streamer_write_tree): Declare.
9390 (lto_streamer_read_tree): Declare.
9391 (streamer_hooks_init): Declare.
9392 (lto_is_streamable): Move to lto-streamer.c
9393
22afe143
AK
93942011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9395
9396 * longlong.h (smul_ppmm): The resulting register pair contains the
9397 higher order word first.
9398
3906ea1b
BS
93992011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9400
9401 PR tree-optimization/46728
9402 * builtins.c (powi_table): Remove.
9403 (powi_lookup_cost): Remove.
9404 (powi_cost): Remove.
9405 (expand_powi_1): Remove.
9406 (expand_powi): Remove.
9407 (expand_builtin_pow_root): Remove.
9408 (expand_builtin_pow): Remove.
9409 (expand_builtin_powi): Eliminate handling of constant exponent.
9410 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 9411
3598cabd
AO
94122011-06-06 Alexandre Oliva <aoliva@redhat.com>
9413
9414 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
9415
a7a110bb
AO
94162011-06-06 Alexandre Oliva <aoliva@redhat.com>
9417
9418 * dce.c (reset_unmarked_insns_debug_uses): New.
9419 (delete_unmarked_insns): Skip debug insns.
9420 (prescan_insns_for_dce): Likewise.
9421 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
9422 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
9423 active reg can be found.
9424 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
9425 (convert_regs_1): Use it.
9426
6d8402ac
AO
94272011-06-06 Alexandre Oliva <aoliva@redhat.com>
9428
9429 * tree-pretty-print.c (dump_function_header): Add flags.
9430 Don't dump decl_uid with nouid.
9431 * tree-pretty-print.h (dump_function_header): Adjust.
9432 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
9433 * passes.c (pass_init_dump_file): Pass dump_flags on.
9434 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
9435
f75e1f1e
AO
94362011-06-06 Alexandre Oliva <aoliva@redhat.com>
9437
9438 PR bootstrap/49270
9439 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
9440
275311c4
MP
94412011-06-06 Mikael Pettersson <mikpe@it.uu.se>
9442
9443 PR tree-optimization/49243
9444 * calls.c (setjmp_call_p): Also check if fndecl has the
9445 returns_twice attribute.
9446
aa4203e7
RO
94472011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9448
9449 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
9450 -ffast-math etc.
9451
48f9d59a
RH
94522011-06-06 Richard Henderson <rth@redhat.com>
9453 Georg-Johann Lay <avr@gjlay.de>
9454
9455 PR target/42210
9456 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
9457 New predicates.
9458 * config/avr/avr.md ("insv"): New insn expander.
9459 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
9460 "*insv.not.io", "*insv.reg"): New insns.
9461
11494830
HPN
94622011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
9463
9464 PR target/49285
b8bc3a43
UB
9465 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
9466 to nonimmediate_operand from memory_operand for the operand that is to
9467 be forced to memory by the expander. Lose the constraints.
11494830 9468
679e70df
EB
94692011-06-05 Eric Botcazou <ebotcazou@adacore.com>
9470
9471 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
9472 EH return when delayed branches are disabled.
9473
4d3d7f15
UB
94742011-06-05 Uros Bizjak <ubizjak@gmail.com>
9475
9476 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
9477 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
9478 calculation.
9479 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
9480 Simplify MODE_V1DF and MODE_V2SF handling.
9481 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
9482 Simplify MODE_SF handling.
9483
a45c0557
JH
94842011-06-04 Jan Hubicka <jh@suse.cz>
9485
9486 PR tree-optimization/48893
9487 PR tree-optimization/49091
9488 PR tree-optimization/49179
9489 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
9490 Bounds check.
9491
26740835
JH
94922011-06-04 Jan Hubicka <jh@suse.cz>
9493
9494 PR lto/48954
b8bc3a43
UB
9495 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
9496 bitmaps.
26740835 9497
014ab419
JW
94982011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
9499
9500 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
9501
407bcba7
JJ
95022011-06-04 Jakub Jelinek <jakub@redhat.com>
9503
9504 PR target/49281
9505 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
9506 to be strictly smaller than 1 << shiftcount.
9507
e3195c52
JH
95082011-06-04 Jan Hubicka <jh@suse.cz>
9509
9510 PR tree-optimize/48929
9511 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
9512 of empty predicate.
9513
047d33a0
AO
95142011-06-04 Alexandre Oliva <aoliva@redhat.com>
9515
9516 PR debug/48333
9517 * calls.c (emit_call_1): Prefer the __builtin declaration of
9518 builtin functions.
9519
dc587809
DN
95202011-06-03 Diego Novillo <dnovillo@google.com>
9521
9522 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
9523 (lto_input_tree_pointers): Likewise.
9524 * lto-streamer-out.c (pack_value_fields): Likewise.
9525 (lto_output_tree_pointers): Likewise.
9526 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
9527 and OPTIMIZATION_NODE.
9528
58cd1d70
RO
95292011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9530
9531 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
9532 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
9533 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
9534 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
9535 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
9536 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
9537 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
9538 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
9539 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
9540 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
9541 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
9542 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
9543 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
9544 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
9545 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
9546 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
9547 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
9548 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
9549 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
9550 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
9551 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
9552 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
9553 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
9554 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
9555 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
9556 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
9557 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
9558 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
9559 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
9560 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
9561 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
9562 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
9563 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
9564 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
9565 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
9566 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
9567 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
9568 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
9569 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
9570 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
9571 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
9572 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
9573 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
9574 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
9575 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
9576 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
9577 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
9578 * system.h (MD_UNWIND_SUPPORT): Poison.
9579 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
9580 * doc/tm.texi: Regenerate.
9581 * unwind-dw2.c: Include md-unwind-support.h instead of
9582 MD_UNWIND_SUPPORT.
9583 * config/ia64/unwind-ia64.c: Likewise.
9584 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
9585
10c63ba4 95862011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
9587
9588 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
9589
1b7a0148
RH
95902011-06-03 Richard Henderson <rth@redhat.com>
9591 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9592
9593 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
9594 (sigill_hdlr): Correct insn, insn size.
9595 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
9596
737346fa
RO
95972011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9598
9599 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
9600 t-slibgcc-dummy.
9601 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
9602 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
9603 * config/mips/t-iris: Remove.
9604 * config/mips/t-irix6: New file.
9605 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
9606
c192cee6
RO
96072011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9608
9609 * Makefile.in (LIB2ADDEHDEP): Remove.
9610 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
9611 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
9612 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
9613 * config/t-darwin (LIB2ADDEHDEP): Remove.
9614 * config/t-freebsd (LIB2ADDEHDEP): Remove.
9615 * config/t-linux (LIB2ADDEHDEP): Remove.
9616
d5828cc7
DN
96172011-06-03 Diego Novillo <dnovillo@google.com>
9618
9619 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
9620 (lto_register_var_decl_in_symtab): Likewise.
9621 (lto_register_function_decl_in_symtab): Likewise.
9622 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 9623 logic to uniquify_nodes.
d5828cc7 9624
ee33b5f0
RO
96252011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9626
9627 * config/alpha/t-osf5: Remove.
9628 * config/alpha/t-osf-pthread: Remove.
9629 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
9630 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
9631
16868d84
JB
96322011-06-03 Julian Brown <julian@codesourcery.com>
9633
9634 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
9635 (strongarm1110): Use strongarm tuning.
4d3d7f15 9636 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
9637 * config/arm/arm.c (arm_strongarm_tune): New.
9638 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9639 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
9640 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
9641 setting, using previous defaults or 1 for Cortex-A5.
9642 (arm_option_override): Set max_insns_skipped from current tuning.
9643
1cec1285
NS
96442011-06-03 Nathan Sidwell <nathan@codesourcery.com>
9645
9646 * doc/install.texi (Options specification): Document --with-specs.
9647
eed55426
RR
96482011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9649
9650 * config/arm/neon.md (orndi3_neon): Actually split it.
9651
d5b6cc25
AO
96522011-06-02 Alexandre Oliva <aoliva@redhat.com>
9653
9654 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
9655 * var-tracking.c (reverse_op): Limite recurse depth to 5.
9656
2ba42841
AO
96572011-06-02 Alexandre Oliva <aoliva@redhat.com>
9658
9659 PR debug/47590
9660 * target.def (delay_sched2, delay_vartrack): New.
9661 * doc/tm.texi.in: Update.
9662 * doc/tm.texi: Rebuild.
9663 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
9664 * var-tracking.c (gate_handle_var_tracking): Likewise.
9665 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
9666 (bfin_flag_var_tracking): Drop.
9667 (output_file_start): Don't save and override flag_var_tracking.
9668 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
9669 (bfin_reorg): Test original variables.
9670 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9671 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
9672 (ia64_flag_var_tracking): Drop.
9673 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9674 (ia64_file_start): Don't save and override flag_var_tracking.
9675 (ia64_override_options_after_change): Ditto
9676 flag_schedule_insns_after_reload.
9677 (ia64_reorg): Test original variables.
9678 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
9679 (picochip_flag_var_tracking): Drop.
9680 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9681 (picochip_option_override): Don't save and override
9682 flag_schedule_insns_after_reload.
9683 (picochip_asm_file_start): Ditto flag_var_tracking.
9684 (picochip_reorg): Test original variables.
9685 * config/spu/spu.c (spu_flag_var_tracking): Drop.
9686 (TARGET_DELAY_VARTRACK): Define.
9687 (spu_var_tracking): New.
9688 (spu_machine_dependent_reorg): Call it.
9689 (asm_file_start): Don't save and override flag_var_tracking.
9690
a700b5f0
KK
96912011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
9692
9693 PR target/49163
9694 * config/sh/predicates.md (general_movsrc_operand): Return 0
9695 for memory and memory subreg of which address is an invalid
9696 indexed address for QI and HImode.
9697 (general_movdst_operand): Likewise.
9698
76015c34
EB
96992011-06-02 Eric Botcazou <ebotcazou@adacore.com>
9700
9701 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
9702 edges only, when there is a non-local label in the function.
9703 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
9704
4e76acd2
UB
97052011-06-02 Uros Bizjak <ubizjak@gmail.com>
9706
9707 * config/i386/constraints.md (Y3): New register constraint.
9708 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
9709 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
9710 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
9711 *sse2_interleave_lowv2df.
9712
288f605f
JB
97132011-06-02 Julian Brown <julian@codesourcery.com>
9714
9715 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
9716 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
9717 (arm_cortex_a5_tune): New.
9718
7ec70105
JB
97192011-06-02 Julian Brown <julian@codesourcery.com>
9720
153668ec
JB
9721 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
9722 * config/arm/arm.c (arm_default_branch_cost): New.
9723 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9724 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
9725 (arm_fa726_tune): Set branch_cost field using
9726 arm_default_branch_cost.
9727 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
9728 current_tune structure.
9729 * dojump.c (tm_p.h): Include file.
9730
97312011-06-02 Julian Brown <julian@codesourcery.com>
9732
9733 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
9734 tuning.
7ec70105
JB
9735 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
9736 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
9737 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
9738 field.
9739 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
9740 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
9741 (arm_fa726te_tune): Add prefer_constant_pool setting.
9742 (arm_v6t2_tune, arm_cortex_tune): New.
9743 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
9744 prefer_constant_pool setting.
9745
aad61732
UB
97462011-06-02 Uros Bizjak <ubizjak@gmail.com>
9747
4e76acd2
UB
9748 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
9749 switch statement.
aad61732
UB
9750 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
9751 (*movdf_internal) <case 6,7,8>: Ditto.
9752
4e76acd2 9753 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
9754 * config/i386/sse.md (vec_set<mode>_0): Merge with
9755 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
9756 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
9757 *vec_extractv2di_1_sse.
9758 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
9759 and *vec_concatv2di_rex64_sse.
9760
6e588138
SH
97612011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
9762
9763 PR target/48807
9764 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
9765 of cgraph_local_info for null before attempting to use it.
9766
bc6d3f91
EB
97672011-06-02 Eric Botcazou <ebotcazou@adacore.com>
9768
9769 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
9770 (current_function_dynamic_alloc_count): Delete.
9771 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
9772 (expand_builtin_nonlocal_goto): Remove obsolete comment.
9773 (expand_builtin_update_setjmp_buf): Remove dead code.
9774 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
9775 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
9776 support.
9777 * function.c (instantiate_virtual_regs): Likewise.
9778 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
9779 for a block with a single abnormal incoming edge.
9780 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 9781 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
9782 * config/sparc/sparc-protos.h (load_got_register): Declare.
9783 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
9784 (load_got_register): Make global.
9785 (sparc_frame_pointer_required): Add 'static'.
9786 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
9787 (sparc_builtin_setjmp_frame_value): New function.
9788 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
9789 (save_stack_nonlocal): New expander.
9790 (restore_stack_nonlocal): Likewise.
9791 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
9792 (nonlocal_goto_internal): New insn.
9793 (goto_handler_and_restore): Delete.
9794 (builtin_setjmp_setup): Likewise.
9795 (do_builtin_setjmp_setup): Likewise.
9796 (setjmp): Likewise.
9797 (builtin_setjmp_receiver): New expander.
9798
69282fee
DL
97992011-06-01 David Li <davidxl@google.com>
9800
9801 PR middle-end/49261
9802 * tree-pretty-print.c (dump_function_header): Format cleanup.
9803
e95873dd
KK
98042011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
9805
9806 PR target/49238
9807 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
9808 needed when original operands are used for msw_skip comparison.
9809
88c15821
JJ
98102011-06-01 Jakub Jelinek <jakub@redhat.com>
9811
9812 PR debug/49250
9813 * var-tracking.c (add_uses, add_stores): Don't call
9814 cselib_subst_to_values on ENTRY_VALUE.
9815
07233947
DN
98162011-06-01 Diego Novillo <dnovillo@google.com>
9817
9818 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
9819 output_record_start with LTO_null instead of output_zero.
9820 (lto_output_ts_binfo_tree_pointers): Likewise.
9821 (lto_output_tree): Likewise.
9822 (output_eh_try_list): Likewise.
9823 (output_eh_region): Likewise.
9824 (output_eh_lp): Likewise.
9825 (output_eh_regions): Likewise.
9826 (output_bb): Likewise.
9827 (output_function): Likewise.
9828 (output_unreferenced_globals): Likewise.
9829 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
9830 instead of NUM_TREE_CODES.
9831 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
9832 (lto_output_int_in_range): Change << to >> when shifting VAL.
9833
4ee3537a
DN
98342011-06-01 Diego Novillo <dnovillo@google.com>
9835
9836 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
9837 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
9838
02972eaf
RS
98392011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
9840
9841 PR target/45074
9842 * optabs.h (valid_multiword_target_p): Declare.
9843 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
9844 doing multi-word operations.
9845 * optabs.c (expand_binop): Likewise.
9846 (expand_doubleword_bswap): Likewise.
9847 (expand_absneg_bit): Likewise.
9848 (expand_unop): Likewise.
9849 (expand_copysign_bit): Likewise.
9850 (multiword_target_p): New function.
9851
4d41c2d1
RS
98522011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
9853
9854 PR rtl-optimization/48830
9855 PR rtl-optimization/48808
9856 PR rtl-optimization/48792
9857 * reload.c (push_reload): Check contains_reg_of_mode.
9858 * reload1.c (strip_paradoxical_subreg): New function.
9859 (gen_reload_chain_without_interm_reg_p): Use it to handle
9860 paradoxical subregs.
9861 (emit_output_reload_insns, gen_reload): Likewise.
9862
5f57dccb
DL
98632011-06-01 David Li <davidxl@google.com>
9864
9865 * predict.c : Change pass name
9866 * ipa.c: Ditto.
9867 * dce.c: Ditto.
9868 * tree-profile.c: Ditto.
9869 * except.c: Ditto.
9870
ea6cf778
DL
98712011-06-01 David Li <davidxl@google.com>
9872
9873 * tree-pretty-print.c (dump_function_header): New function.
9874 * final.c (rest_of_clean_state): Use header dumper.
9875 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
9876 * passes.c (pass_init_dump_file): Use header dumper.
9877
ebdc0d4b
JJ
98782011-06-01 Jakub Jelinek <jakub@redhat.com>
9879
eeeb9b49
JJ
9880 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
9881 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
9882 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
9883 New functions.
9884 (mem_loc_descriptor): Use them.
9885
ebdc0d4b
JJ
9886 * var-tracking.c (create_entry_value): New function.
9887 (vt_add_function_parameter): Use it.
9888
0699e415
RO
98892011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9890
9891 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
9892 Include <signal.h>, <ucontext.h>.
9893 (sigill_caught): Define.
9894 (sigill_hdlr): New function.
9895 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
9896 insns can be executed.
aad61732 9897 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
9898 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
9899
ca24c5ad
RO
99002011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9901
9902 * config/t-slibgcc-darwin: Move to ...
aad61732 9903 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
9904 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
9905 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
9906 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 9907 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
9908 Remove i386/t-crtstuff from tmake_file.
9909 (i[34567]86-*-solaris2*): Remove t-svr4,
9910 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
9911 t-slibgcc-dummy.
9912 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
9913 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
9914 sparc/t-crtfm from tmake_file.
9915 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
9916 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
9917 Remove extra_parts.
9918 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
9919 * config/i386/t-nwld (SHLIB_LINK): Remove.
9920 * config/i386/t-rtems-i386: Rename to ...
9921 * config/i386/t-rtems: ... this.
9922 ($(T)crti.o, $(T)crtn.o): Remove.
9923 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
9924 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
9925 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
9926 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
9927 EXTRA_MULTILIB_PARTS): Remove.
9928 * config/sparc/t-sol2-64: Likewise.
9929 * config/sparc/t-sol2: Remove.
9930 * config/sparc/t-crtin: Remove.
9931 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
9932 * config/i386/gmon-sol2.c: Remove.
9933 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
9934 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
9935 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
9936 * config/i386/sol2-gc1.asm: Remove.
9937 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
9938 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
9939 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
9940 * config/t-slibgcc-sld: Remove.
9941
a78d13c3
JJ
99422011-06-01 Jakub Jelinek <jakub@redhat.com>
9943
9944 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
9945 base_type_for_mode with op_mode instead of mode.
9946
572070ef
PB
99472011-06-01 Paul Brook <paul@cpodesourcery.com>
9948
9949 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
9950 Cortex-A15.
9951 * config/arm/arm-tune.md: Regenerate.
9952 * config/arm/arm-tables.opt: Regenerate.
9953 * config/arm/arm.c (FL_DIV): Rename...
9954 (FL_THUMB_DIV): ... to this.
9955 (FL_ARM_DIV): Define.
9956 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
9957 (arm_arch_hwdiv): Remove.
9958 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
9959 (arm_issue_rate): Add cortexr5.
9960 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
9961 __ARM_ARCH_EXT_IDIV__.
9962 (TARGET_IDIV): Define.
9963 (arm_arch_hwdiv): Remove.
9964 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
9965 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
9966 (divsi3, udivsi3): New patterns.
9967 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
9968 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
9969
11026b51
MJ
99702011-06-01 Martin Jambor <mjambor@suse.cz>
9971
9972 * ipa-utils.c (ipa_dfs_info): New field scc_no.
9973 * ipa-utils.c (searchc): Set scc_no.
9974
b6156cf2
MJ
99752011-06-01 Martin Jambor <mjambor@suse.cz>
9976
9977 * ipa-utils.c (searchc_env): New field allow_overwritable.
9978 (searchc): do not ignore edges to overwritable nodes if indicated
9979 by env->allow_overwritable.
9980 (ipa_reduced_postorder): Set env.allow_overwritable.
9981
6807da97
RG
99822011-06-01 Richard Guenther <rguenther@suse.de>
9983
9984 * tree.c (free_lang_data): Do not reset boolean_type_node nor
9985 char_type_node.
9986 * lto-streamer.c (lto_record_common_node): Take node pointer,
9987 do not register types.
9988 (lto_preload_common_nodes): Explicitly skip preloading nodes
9989 that differ between frontends.
9990
66bd20e7 99912011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
9992
9993 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
9994 NON_FLOAT_REGS.
9995
66bd20e7 99962011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
9997
9998 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
9999 parameter value for dump. Dump cost on outermost call only.
10000 (rs6000_memory_move_cost): Dump cost on outermost call only.
10001
7351d8da
JJ
100022011-05-31 Jakub Jelinek <jakub@redhat.com>
10003
ead7c399
JJ
10004 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
10005 DW_OP_GNU_convert ops.
10006
509f4495
JJ
10007 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
10008 cselib_preserve_constants.
10009 (cselib_lookup_1): If cselib_preserve_constants,
10010 a new VALUE is being created for REG and there is a VALUE for the
10011 same register in wider mode, add another loc with lowpart SUBREG of
10012 the wider VALUE.
10013 (cselib_subst_to_values): Handle ENTRY_VALUE.
10014 * var-tracking.c (replace_expr_with_values): Return NULL for
10015 ENTRY_VALUE too.
10016 * dwarf2out.c (convert_descriptor_to_signed): New function.
10017 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
10018 instead of two shifts.
10019 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
10020 the right mode if needed.
10021 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
10022 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
10023 convert_descriptor_to_signed.
10024 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
10025 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
10026
7351d8da
JJ
10027 PR target/48688
10028 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
10029
5cc93ee0
UB
100302011-05-31 Uros Bizjak <ubizjak@gmail.com>
10031
10032 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
10033 of X87MODEI12 and SWI48x instead of SSEMODEI24.
10034 (SWI248x): New mode iterator, rename from X87MODEI.
10035 (X87MODEI): Remove mode iterator.
10036 (X87MODEI12): Ditto.
10037 (SSEMODEI24): Ditto.
10038
f0686e78
AO
100392011-05-31 Alexandre Oliva <aoliva@redhat.com>
10040
10041 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
10042 * doc/invoke.texi: Document max-vartrack-expr-depth.
10043 * var-tracking.c (EXPR_DEPTH): New.
10044 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
10045
f3308413
AO
100462011-05-31 Alexandre Oliva <aoliva@redhat.com>
10047
10048 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
10049 * config/i386/sse.md: Add n to negated FMA pattern names.
10050
28c14a04
AO
100512011-05-31 Alexandre Oliva <aoliva@redhat.com>
10052
10053 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
10054
70efc82d
AO
100552011-05-31 Alexandre Oliva <aoliva@redhat.com>
10056
5cc93ee0 10057 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 10058
6ba5d856
UB
100592011-05-31 Uros Bizjak <ubizjak@gmail.com>
10060
10061 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
10062 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
10063
100642011-05-31 Uros Bizjak <ubizjak@gmail.com>
10065
10066 * config/i386/i386.md (*movtf_internal): Avoid allocating general
10067 registers. Penalize F*r->o alternative to prevent partial memory
10068 stalls. Slightly penalize *roF->*r alternative. Generate SSE
10069 CONST_DOUBLE immediates when optimizing function for size. Do not move
10070 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10071 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
10072 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
10073 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
10074 alternatives.
10075 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
10076
10077 (fp_register_operand splitters): Use fp_register_operand
10078 constraint. Do not use FP_REG_P in insn condition.
10079 (any_fp_register_operand splitters): Use any_fp_register_operand
10080 constraint. Do not use ANY_FP_REG_P in insn condition.
10081
533c07c5
JH
100822011-05-31 Jan Hubicka <jh@suse.cz>
10083
10084 * cgraph.h (cgraph_inline_failed_t): Give enum a name
10085 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
10086 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
10087 (lto_output_edge): Use output_enum and var_len_unsigned.
10088 (lto_output_varpool_node): Likewise.
10089 (input_overwrite_node): Do not take resolution parameter;
10090 extract it from a bitpack.
10091 (input_node): Do not read resolution; use input_enum and
10092 var_len_unsigned.
10093 (input_varpool_node): Likewise.
10094 (input_edge): Likewise.
10095 (input_cgraph_1): Likewise.
10096
2611db71
RG
100972011-05-31 Richard Guenther <rguenther@suse.de>
10098
10099 * gimple.c (gimple_register_canonical_type): Do not register
10100 any types via gimple_register_type.
10101
b9e57365
JH
101022011-05-31 Jan Hubicka <jh@suse.cz>
10103
10104 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
10105 of thunks.
10106
35979cc2
JJ
101072011-05-31 Jakub Jelinek <jakub@redhat.com>
10108
10109 PR rtl-optimization/49235
10110 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
10111 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
10112
8f7de592
IR
101132011-05-31 Ira Rosen <ira.rosen@linaro.org>
10114
10115 PR tree-optimization/49093
10116 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
10117 data references.
10118
8d8a3bda
DS
101192011-05-31 Dodji Seketeli <dodji@redhat.com>
10120
10121 PR debug/49047
10122 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 10123 for concrete functions containing the code of cloned functions.
8d8a3bda 10124
2e87621c
RG
101252011-05-31 Richard Guenther <rguenther@suse.de>
10126
10127 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
10128 to ...
10129 (forward_propagate_into_comparison_1): ... this.
10130 (forward_propagate_comparison): Rename to ...
10131 (forward_propagate_into_comparison): ... this. Split out
10132 real forward propagation code to ...
10133 (forward_propagate_comparison): ... this.
10134 (forward_propagate_into_gimple_cond): Remove looping.
10135 (forward_propagate_into_cond): Likewise.
10136 (simplify_not_neg_expr): Return whether we have done something.
10137 (simplify_gimple_switch): Likewise.
10138 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
10139 (ssa_forward_propagate_and_combine): ... this. Re-structure
10140 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 10141 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
10142 (pass_forwprop): Adjust.
10143
5a880d5d
ILT
101442011-05-30 Ian Lance Taylor <iant@google.com>
10145
10146 * godump.c (go_format_type): Correct length of name added to
10147 obstack for anonymous field.
10148
5f133038
KK
101492011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
10150
10151 PR target/49186
10152 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
10153 part of the second operand is 0.
10154
b17d5426
UB
101552011-05-30 Uros Bizjak <ubizjak@gmail.com>
10156
10157 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
10158 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
10159 to memory for !TARGET_MEMORY_MISMATCH_STALL.
10160 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 10161 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
10162 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
10163 when optimizing function for size. Do not move CONST_DOUBLEs
10164 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
10165 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
10166 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
10167 check for ANY_FP_REGNO_P instead.
10168 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
10169 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
10170 function for speed.
10171 * config/i386/i386.c (ix86_option_override_internal): Do not
10172 set TARGET_INTEGER_DFMODE_MOVES here.
10173
a0cd843f
L
101742011-05-30 H.J. Lu <hongjiu.lu@intel.com>
10175
10176 PR target/49168
aad61732 10177 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 10178
006a5f38
JJ
101792011-05-30 Jakub Jelinek <jakub@redhat.com>
10180
10181 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
10182 DW_TAG_rvalue_reference_type even for
10183 -gdwarf-4 -fno-debug-types-section.
10184
6e96f98a
BS
101852011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10186
10187 PR tree-optimization/46728
10188 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
10189 (build_and_insert_binop): New.
10190 (gimple_expand_builtin_pow): Reorder args for
10191 build_and_insert_call; use build_and_insert_binop; add more
10192 optimizations for fractional exponents.
b17d5426 10193
4f60111f
NF
101942011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
10195
10196 PR bootstrap/49190
10197
10198 Revert:
10199 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10200
10201 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10202 tree_common.
10203 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10204 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10205 TS_BASE instead of TS_COMMON.
10206 * varasm.c (assemble_name): Remove assert.
10207
3fd7879d
RS
102082011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
10209
10210 * config.gcc: Keep obselete list sorted.
10211
80060f7a
JJ
102122011-05-30 Jakub Jelinek <jakub@redhat.com>
10213 Eric Botcazou <ebotcazou@adacore.com>
10214
10215 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
10216 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
10217 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
10218 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
10219 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
10220
17e99cdb
RG
102212011-05-30 Richard Guenther <rguenther@suse.de>
10222
10223 * gimple.c (gimple_types_compatible_p_1): Compare record
10224 and union type members properly.
10225
42b05b6e
RG
102262011-05-30 Richard Guenther <rguenther@suse.de>
10227
10228 PR tree-optimization/49210
6ba5d856
UB
10229 * ipa-split.c (split_function): Care for the case where the call
10230 result is not trivially convertible to the result holding variable.
42b05b6e 10231
f3321158
RG
102322011-05-30 Richard Guenther <rguenther@suse.de>
10233
10234 PR tree-optimization/49218
10235 * tree-vrp.c (adjust_range_with_scev): Properly check whether
10236 overflow occured.
10237
d12d8efe
RG
102382011-05-30 Richard Guenther <rguenther@suse.de>
10239
10240 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
10241 New function split out from ...
10242 (forward_propagate_into_gimple_cond): ... here. Adjust.
10243 (forward_propagate_into_cond): Likewise.
10244 (forward_propagate_comparison): Also propagate into
10245 comparisons on assignment RHS. Change return value to
10246 behave similar to forward_propagate_into_cond.
10247 (tree_ssa_forward_propagate_single_use_vars): Handle
10248 strict-overflow warnings properly for forward_propagate_comparison.
10249
df33b41f
RO
102502011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10251
10252 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
10253 from plugin linker.
10254 * configure: Regenerate.
10255
69940d4d
IR
102562011-05-30 Ira Rosen <ira.rosen@linaro.org>
10257
10258 PR tree-optimization/49199
10259 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 10260 non-reduction operands are either defined in the loop or by induction.
69940d4d 10261
226c52aa
XDL
102622011-05-29 Xinliang David Li <davidxl@google.com>
10263
10264 * opts-global.c (handle_common_deferred_options): Handle new options.
10265 * passes.c (register_one_dump_file): Call register_pass_name.
10266 (execute_one_pass): Check explicit enable/disable flag.
10267 (passr_hash): New function.
10268 (passr_eq): Ditto.
10269 (register_pass_name): Ditto.
10270 (get_pass_by_name): Ditto.
10271 (pass_hash): Ditto.
10272 (pass_eq): Ditto.
10273 (enable_pass): Ditto.
10274 (disable_pass): Ditto.
10275 (is_pass_explicitly_enabled_or_disabled): Ditto.
10276
491d8eed
UB
102772011-05-29 Uros Bizjak <ubizjak@gmail.com>
10278
10279 * config/i386/i386.md (*movoi_internal_avx): Use
10280 standard_sse_constant_opcode for alternative 0.
10281 (*movti_internal_sse): Ditto.
10282 (*movti_internal_rex64): Use standard_sse_constant_opcode for
10283 alternative 2.
10284 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
10285 sselog1 type moves.
10286 (*movsi_internal): Ditto.
10287 (*movdi_internal): Ditto. Add ssecvt type moves.
10288
eb93b31f
EB
102892011-05-29 Eric Botcazou <ebotcazou@adacore.com>
10290
10291 PR target/48830
10292 * rtlanal.c (simplify_subreg_regno): Adjust comment.
10293
3f831b7d
JJ
102942011-05-29 Jakub Jelinek <jakub@redhat.com>
10295
10296 PR rtl-optimization/49095
10297 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
10298 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
10299
ee3ee488
RS
103002011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10301
10302 PR target/43995
10303 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
10304 recurse_p argument. Only follow register copies if it is set,
10305 and prevent mips_find_pic_call_symbol from recursing.
10306 (mips_find_pic_call_symbol): Add a recurse_p argument.
10307 Pass it to mips_pic_call_symbol_from_set.
10308 (mips_annotate_pic_calls): Update accordingly.
10309
65f3dedb
RS
103102011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10311
10312 * emit-rtl.c (try_split): Use a loop to search for
10313 NOTE_INSN_CALL_ARG_LOCATIONs.
10314
61e374ab
RG
103152011-05-29 Richard Guenther <rguenther@suse.de>
10316
10317 PR tree-optimization/49217
10318 * ipa-pure-const.c (propagate_pure_const): Fix typos.
10319
fac009a8
JH
103202011-05-28 Jan Hubicka <jh@suse.cz>
10321
10322 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
10323 length.
10324 (string_slot_free): Remove
10325 (create_output_block): Initialize obstack.
10326 (destroy_output_block): Free obstack.
10327 (lto_string_index): Add PERSISTENT parameter; do not duplicate
10328 the string unless it needs to be added into the hash.
10329 (lto_output_string_with_length): Add persistent attribute;
10330 handle NULL strings.
10331 (lto_output_string): Add PERSISTENT parameter.
10332 (output_string_cst, output_identifier): Simplify.
10333 (lto_output_location_bitpack): Update.
10334 (lto_output_builtin_tree): Update.
10335 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
10336 (lto_output_string, lto_output_string_with_length): Remove
10337 declarations; functions are static now.
fac009a8 10338
fa766006
JH
103392011-05-28 Jan Hubicka <jh@suse.cz>
10340
10341 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
10342 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
10343 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
10344 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
10345 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
10346 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
10347 unpack_ts_decl_with_vis_value_fields,
10348 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
10349 lto_get_builtin_tree): Use enum and variable length i/o.
10350 * basic-block.h (profile_status_d): Add PROFILE_LAST.
10351 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
10352 New functions.
10353 (bp_pack_enum, bp_unpack_enum): New macros.
10354
e092158b
RS
103552011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10356
10357 * genrecog.c: Remove redundant forward declarations.
10358
7ca2afa0
RS
103592011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10360
10361 * config.gcc: Deprecate mips*-*-openbsd*.
10362
a601a53a
RS
103632011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10364
10365 PR bootstrap/49195
10366 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
10367 for match_op_dup.
10368
fc64b448
AP
103692011-05-27 Andrew Pinski <pinskia@gmail.com>
10370
10371 PR middle-end/48981
10372 * gengtype.c (vec_prefix_type): New function.
10373 (note_def_vec): Use vec_prefix_type and change the length
10374 attribute to be based on the prefix.
10375 * vec.c: Include coretypes.h before vec.h.
10376 (struct vec_prefix): Remove.
10377 (vec_gc_p_reserve): Change the offsetof to sizeof.
10378 (vec_gc_p_reserve_exact): Likewise.
10379 (vec_heap_p_reserve): Likewise.
10380 (vec_heap_p_reserve_exact): Likewise.
10381 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
10382 (vec_stack_p_reserve): Change the offsetof to sizeof.
10383 (vec_stack_p_reserve_exact): Likewise.
10384 * vec.h (struct vec_prefix): New struct definition.
10385 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
10386 (VEC_T_GTY(T,B)): Likewise.
10387 (DEF_VEC_FUNC_P(T)): Use prefix field.
10388 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
10389 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
10390
ba869341
BS
103912011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10392
10393 PR tree-optimization/46728
10394 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
10395 (powi_as_mults): Add gimple_set_location.
10396 (build_and_insert_call): New.
10397 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
10398 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 10399
d296760d
AM
104002011-05-27 Alexander Monakov <amonakov@ispras.ru>
10401
10402 * doc/contrib.texi: Update copyright years.
10403 (Contributors): Add Zdenek Sojka.
10404
38e01f9e
NF
104052011-05-27 Nathan Froyd <froydnj@codesourcery.com>
10406
10407 * c-decl.c (c_push_function_context): Copy the current statement
10408 list stack.
10409 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
10410 (finish_struct): Call building_stmt_list_p instead of checking
10411 cur_stmt_list.
10412 * c-parser.c (c_parser_postfix_expression): Likewise.
10413 * c-typeck.c (c_end_compound_stmt): Likewise.
10414 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
10415 * tree-iterator.c (stmt_list_cache): Change to a VEC.
10416 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
10417 (free_stmt_list): Likewise.
10418 * tree.h (struct tree_statement_list): Include typed_tree instead
10419 of tree_common.
10420 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
10421 as TS_TYPED instead of TS_COMMON.
10422
8950516e 104232011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 10424 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
10425
10426 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
10427 (HAVE_AS_IX86_TLSGDPTL): Define.
10428 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
10429 (HAVE_AS_IX86_TLSLDMPLT): Define.
10430 * configure: Regenerate.
10431 * config.in: Regenerate.
10432 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
10433 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
10434 TARGET_SUN_TLS, use @tlsgdplt or @plt.
10435 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
10436 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
10437 @tlsldmplt or @plt.
10438 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
10439
b0bd15f7
BS
104402011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10441
10442 * sched-int.h (struct _haifa_deps_insn_data): New members cond
10443 and reverse_cond.
10444 (INSN_COND, INSN_REVERSE_COND): New macros.
10445 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
10446 once.
10447 (sched_get_condition_with_rev): Cache the results, and look them up
10448 if possible.
10449 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
10450 are clobbered by the current insn.
10451 * target.def (exposed_pipline): New sched data hook.
10452 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
10453 * doc/tm.texi: Regenerate.
10454
fa65a9cf
BS
104552011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10456
10457 PR tree-optimization/49170
10458 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
10459 sincos or cexp.
b0bd15f7 10460
c2299dfe
RG
104612011-05-27 Richard Guenther <rguenther@suse.de>
10462
10463 PR middle-end/49189
10464 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
10465 of comparisons.
10466
a95b23b4
BS
104672011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10468
10469 * haifa-sched.c (sched_scan_info): Remove.
10470 (schedule_block): Call sched_extend_luids rather than sched_init_luids
10471 with NULL args.
10472 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
10473 Remove functions.
10474 (sched_scan): Remove.
10475 (sched_extend_luids): Renamed from luids_extend_insn and no longer
10476 static. All callers changed.
10477 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
10478 static. All callers changed.
10479 (sched_init_luids): Remove all arguments except the first. All
10480 callers changed. Don't use sched_scan.
10481 (haifa_init_h_i_d): Likewise.
10482 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
10483 manually rather than using sched_init_luids. Likewise with
10484 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
10485 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
10486 rather than sched_init_luids with NULL args.
10487 * sel-sched-ir.c (new_insns): Remove variable.
10488 (sched_scan): New static function, previously in haifa-sched.c. Remove
10489 all arguments but the first two; all callers changed.
10490 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
10491 rather than sched_init_luids.
10492 (sel_init_bbs): Remove second argument. All callers changed.
10493 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
10494 with NULL arguments.
10495 (create_insn_rtx_from_pattern): Likewise.
10496 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
10497 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
10498 (sched_init_insn_luid, sched_extend_luids): Declare.
10499 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
10500 declarations.
10501
f8f972fc
RB
105022011-05-27 Richard Guenther <rguenther@suse.de>
10503
10504 PR middle-end/49177
10505 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
10506 A CMP B ? (T) true : (T) false for non-integral types T again.
10507
51a9ed47
JH
105082011-05-27 Jan Hubicka <jh@suse.cz>
10509
10510 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
10511 so 0 means NULL string.
10512 (lto_output_string_with_length): ... here.
f8f972fc
RB
10513 (lto_output_string, output_string_cst, output_identifier): Update
10514 handling of NULL strings.
51a9ed47
JH
10515 (lto_output_location_bitpack): New function.
10516 (lto_output_location): Use it.
10517 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
10518 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
10519 len values.
10520 * lto-streamer-in.c (string_for_index): Break out from ...; offset
10521 values by 1.
491d8eed 10522 (input_string_internal): ... here;
f8f972fc
RB
10523 (input_string_cst, input_identifier, lto_input_string): Update handling
10524 of NULL strings.
51a9ed47
JH
10525 (lto_input_location_bitpack): New function
10526 (lto_input_location): Use it.
f8f972fc
RB
10527 (unpack_ts_type_common_value_fields): Pack align & alias in var len
10528 values.
51a9ed47
JH
10529 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
10530 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
10531 (bp_pack_value): Sanity check the value range.
10532 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
10533 New functions.
10534 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
10535 New functions.
10536
66bd20e7 105372011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
10538
10539 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
10540 call_arg_location instructions down the floor.
10541
574e418a
VM
105422011-05-26 Vladimir Makarov <vmakarov@redhat.com>
10543
10544 PR rtl-optimization/49154
10545 * ira.c (setup_pressure_classes): Process class without sublcasses
10546 as a candidate for pressure classes.
10547
6a1a787e
RS
105482011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
10549
10550 PR rtl-optimization/48575
10551 * genrecog.c (position_type): New enum.
10552 (position): New structure.
10553 (decision): Use position structure instead of a string.
10554 (root_pos, peep2_insn_pos_list): New variables.
10555 (next_position, compare_positions): New functions.
10556 (new_decision): Use position structures instead of strings.
10557 (maybe_both_true): Likewise.
10558 (change_state): Likewise.
10559 (write_tree): Likewise.
10560 (make_insn_sequence): Likewise.
10561
92e948a8
NF
105622011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10563
10564 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
10565 TS_BASE instead of TS_COMMON.
10566 (find_decls_types_r): Check for TS_TYPED structure before looking at
10567 TREE_TYPE.
10568 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
10569 Add chain field.
10570 (BLOCK_CHAIN): Use new chain field.
10571
66bd20e7 105722011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
10573
10574 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
10575 moves expensive on Power7 also.
10576
1f498652
RG
105772011-05-26 Richard Guenther <rguenther@suse.de>
10578
10579 * fold-const.c (fold_unary_loc): Remove bogus code.
10580
a2fc3e63
NF
105812011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10582
10583 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10584 tree_common.
10585 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10586 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10587 TS_BASE instead of TS_COMMON.
10588 * varasm.c (assemble_name): Remove assert.
10589
d11bf18f
BS
105902011-05-26 Bernd Schmidt <bernds@codesourcery.com>
10591
10592 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
10593 substituted first.
10594 * libgcc-std.ver: Delete file.
10595
ac8e1875
RG
105962011-05-26 Richard Guenther <rguenther@suse.de>
10597
10598 PR tree-optimization/48702
10599 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
10600 only when we know the base address is within bounds.
10601 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
10602 assume the base address of TARGET_MEM_REFs is in bounds.
10603
7e32e652
RO
106042011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10605
10606 PR target/49099
10607 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
10608 declaration in TARGET_SOLARIS.
10609
66bd20e7 106102011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
10611
10612 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 10613 The instruction is then expanded explicitly.
43660e0b
HS
10614 (supported_compare): Callable instruction.
10615 (compare): Likewise.
10616
1537737f
JJ
106172011-05-26 Jakub Jelinek <jakub@redhat.com>
10618
10619 PR c++/49165
10620 * gimplify.c (shortcut_cond_r): Don't special case
10621 COND_EXPRs if they have void type on one of their arms.
10622
7b1ac803
BS
106232011-05-26 Bernd Schmidt <bernds@codesourcery.com>
10624
10625 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
10626 to reduce duplication, and to achieve a slightly more logical order
10627 of operations.
10628
1aa9438f
JJ
106292011-05-26 Jakub Jelinek <jakub@redhat.com>
10630
10631 PR tree-optimization/49161
10632 * tree-vrp.c (struct case_info): New type.
10633 (compare_case_labels): Sort case_info structs instead of
10634 trees, and not primarily by CASE_LABEL uids but by
10635 label_for_block indexes.
10636 (find_switch_asserts): Put case labels into struct case_info
10637 array instead of TREE_VEC, adjust sorting, compare label_for_block
10638 values instead of CASE_LABELs.
10639
50fed7bf
RR
106402011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10641
10642 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
10643 ("orndi3_neon"): Likewise.
10644 ("bic<mode>3_neon"): Likewise.
10645
48df3fa6
IR
106462011-05-26 Ira Rosen <ira.rosen@linaro.org>
10647
10648 PR tree-optimization/49038
10649 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
10650 Ensure at least one epilogue iteration if required by data
10651 accesses with gaps.
10652 * tree-vectorizer.h (struct _loop_vec_info): Add new field
10653 to mark loops that require peeling for gaps.
10654 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
10655 (vect_get_known_peeling_cost): Take peeling for gaps into
10656 account.
10657 (vect_transform_loop): Generate epilogue if required by data
10658 access with gaps.
10659 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
10660 loop as requiring an epilogue if there are gaps in the end of
10661 the strided group.
10662
53febcba
ILT
106632011-05-25 Ian Lance Taylor <iant@google.com>
10664
10665 * godump.c (go_format_type): Output the first field with a usable
10666 Go type, if any.
10667
dbbc4d4c
ILT
106682011-05-25 Ian Lance Taylor <iant@google.com>
10669
10670 * godump.c (go_format_type): Check for invalid type names, pointer
10671 target types, and struct field types.
10672
f03a5402
JM
106732011-05-25 Jason Merrill <jason@redhat.com>
10674
10675 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
10676
c497c412
UB
106772011-05-25 Uros Bizjak <ubizjak@gmail.com>
10678
10679 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
10680
e470affe
L
106812011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10682
10683 * config/i386/i386.md (*movqi_extv_1)): Put back
10684 "register_operand" check in "type" calculation.
10685 (*movqi_extzv_2): Likewise.
10686
6c81b2bc
L
106872011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10688
c497c412 10689 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 10690
0c007eb2
BS
106912011-05-25 Bernd Schmidt <bernds@codesourcery.com>
10692
10693 PR bootstrap/49160
10694 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
10695 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
10696 __divxc3, __divtc3): Wrap definitions in #ifndef.
10697
521ca78e
L
106982011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10699
10700 PR target/49142
10701 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
10702 "register_operand" check and replace q_regs_operand with
10703 QIreg_operand in "type" calculation.
10704 (*movqi_extv_1): Likewise.
10705 (*movqi_extzv_2_rex64): Likewise.
10706 (*movqi_extzv_2): Likewise.
10707
10708 * config/i386/predicates.md (QIreg_operand): New.
10709
29f8b844
RG
107102011-05-25 Richard Guenther <rguenther@suse.de>
10711
10712 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10713 type-based offset disambiguation, streamline MEM_REF and
10714 TARGET_MEM_REF handling.
10715
74838de3
L
107162011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10717
10718 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
10719 (bdesc_special_args): Add pause intrinsic.
10720
10721 * config/i386/i386.md (UNSPEC_PAUSE): New.
10722 (pause): Likewise.
10723 (*pause): Likewise.
10724 * config/i386/ia32intrin.h (__pause): Likewise.
10725
10726 * doc/extend.texi (X86 Built-in Functions): Add documentation for
10727 pause intrinsic.
10728
d24ad7d6
BS
107292011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10730
10731 PR tree-optimization/46728
10732 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
10733 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 10734
d9f8303f
NF
107352011-05-25 Nathan Froyd <froydnj@codesourcery.com>
10736
10737 * tree.h (struct tree_exp): Inherit from struct tree_typed.
10738 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
10739 instead of TS_COMMON.
10740
cdbf4541
BS
107412011-05-25 Bernd Schmidt <bernds@codesourcery.com>
10742
10743 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
10744 LIBGCC2_GNU_PREFIX is defined.
10745 (__N): New macro.
10746 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
10747 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
10748 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
10749 __clz_tab): Define using __N.
10750 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
10751 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
10752 * target.def (libfunc_gnu_prefix): New hook.
10753 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
10754 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
10755 * doc/tm.texi: Regenerate.
10756 * system.h (LIBGCC2_GNU_PREFIX): Poison.
10757 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
10758 account.
10759 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
10760 (init_optabs): Likewise for the bswap libfuncs.
10761 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
10762 and divide.
10763 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
10764 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
10765 * libgcc-std.ver: Remove.
10766 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
10767 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
10768 libgcc-std.ver.
10769 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10770 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
10771 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
10772 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
10773 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
10774 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10775 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10776 * config/fixed-bit.h (FIXED_OP): Define differently depending on
10777 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
10778 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
10779
f242c0a5
JH
107802011-05-25 Jan Hubicka <jh@suse.cz>
10781
10782 * lto-streamer-out.c (output_record_start): Use lto_output_enum
10783 (lto_output_tree): Use output_record_start.
10784 * lto-streamer-in.c (input_record_start): Use lto_input_enum
10785 (lto_get_pickled_tree): Use input_record_start.
10786 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
10787 (lto_value_range_error): New function.
10788 * lto-streamer.h (lto_value_range_error): Declare.
10789 (lto_output_int_in_range, lto_input_int_in_range): New functions.
10790 (lto_output_enum, lto_input_enum): New macros.
10791
a11e0df4
EB
107922011-05-25 Eric Botcazou <ebotcazou@adacore.com>
10793
10794 * common.opt (flag_stack_usage_info): New variable.
10795 (-Wstack-usage): New option.
10796 * doc/invoke.texi (Warning options): Document -Wstack-usage.
10797 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
10798 <OPT_fstack_usage>: Likewise.
10799 * toplev.c (output_stack_usage): Handle -Wstack-usage.
10800 * calls.c (expand_call): Test flag_stack_usage_info variable instead
10801 of flag_stack_usage.
10802 (emit_library_call_value_1): Likewise.
10803 * explow.c (allocate_dynamic_stack_space): Likewise.
10804 * function.c (instantiate_virtual_regs ): Likewise.
10805 (prepare_function_start): Likewise.
10806 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
10807 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
10808 * config/arm/arm.c (arm_expand_prologue): Likewise.
10809 (thumb1_expand_prologue): Likewise.
10810 * config/avr/avr.c (expand_prologue): Likewise.
10811 * config/i386/i386.c (ix86_expand_prologue): Likewise.
10812 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10813 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
10814 * config/mips/mips.c (mips_expand_prologue): Likewise.
10815 * config/pa/pa.c (hppa_expand_prologue): Likewise.
10816 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10817 * config/s390/s390.c (s390_emit_prologue): Likewise.
10818 * config/sh/sh.c (sh_expand_prologue): Likewise.
10819 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10820 * config/spu/spu.c (spu_expand_prologue): Likewise.
10821
e7cfe241
RG
108222011-05-25 Richard Guenther <rguenther@suse.de>
10823
10824 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
10825 (gimple_canonical_types_compatible_p): Likewise.
10826
c5235f4c
JH
108272011-05-25 Jan Hubicka <jh@suse.cz>
10828
10829 PR middle-end/49062
10830 * ipa.c (function_and_variable_visibility): Only add to same
10831 comdat group list if DECL_ONE_ONLY.
10832
8242a0f6
AB
108332011-05-25 Andrey Belevantsev <abel@ispras.ru>
10834
10835 PR rtl-optimization/49014
10836 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
10837
642a011d
JJ
108382011-05-25 Jakub Jelinek <jakub@redhat.com>
10839
10840 PR target/49128
10841 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
10842
30a435d8
VM
108432011-05-24 Vladimir Makarov <vmakarov@redhat.com>
10844
10845 PR rtl-optimization/48757
10846 * ira-build.c (loop_with_eh_edge_p): Rename to
10847 loop_with_complex_edge_p, check edges on complexity, make function
10848 conditional.
10849 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
10850 conditional.
10851
24d1bbc7
EB
108522011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10853
10854 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
10855 force flag_ira_share_save_slots to 0.
10856
65773087
EB
108572011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10858
10859 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
10860 (vt_initialize): Set PROLOGUE_BB unconditionally.
10861 Add block comment about CFA_BASE_RTX machinery.
10862 Reset FP_CFA_OFFSET to -1 on all invalid paths.
10863 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
10864
4e26ba90
NP
108652011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
10866
10867 PR objc/48187
10868 * c-parser.c (c_parser_objc_class_instance_variables): More robust
10869 parsing of syntax error in ObjC instance variable lists. In
10870 particular, avoid an infinite loop if there is a stray ']'.
10871 Updated error message.
10872
936fd13c
ILT
108732011-05-24 Ian Lance Taylor <iant@google.com>
10874
10875 * godump.c (go_define): Don't accept a string immediately after
10876 another operand.
10877
f17333e3
ILT
108782011-05-24 Ian Lance Taylor <iant@google.com>
10879
10880 * godump.c (struct godump_container): Add invalid_hash field.
10881 (go_format_type): Return false if type is found in invalid_hash.
10882 (go_output_typedef): Add invalid type to invalid_hash.
10883 (go_finish): Create and delete invalid_hash.
10884
d24ad7d6 108852011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 10886
78be79d5
BS
10887 PR tree-optimization/46728
10888 * tree-ssa-math-opts.c (powi_table): New.
10889 (powi_lookup_cost): New.
10890 (powi_cost): New.
10891 (powi_as_mults_1): New.
10892 (powi_as_mults): New.
10893 (gimple_expand_builtin_powi): New.
10894 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
10895 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 10896
caee412b
RO
108972011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10898
10899 PR target/3746
10900 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
10901 mips-tdump native.
10902 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
10903 * mips-tdump.c: Likewise.
10904
5eed4f27
L
109052011-05-24 H.J. Lu <hongjiu.lu@intel.com>
10906
10907 PR target/49128
10908 * config/i386/driver-i386.c (host_detect_local_cpu): Always
10909 add -mno-XXX. Handle FMA.
10910
8c5fdaae
VM
109112011-05-24 Vladimir Makarov <vmakarov@redhat.com>
10912
10913 PR rtl-optimization/48633
10914 * ira-build.c (loop_with_eh_edge_p): New function.
10915 (mark_loops_for_removal): Use it.
10916
109172011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
10918
10919 PR rtl-optimization/48971
10920 * ira.c (setup_pressure_classes): Don't check register move cost
10921 for classes with one registers. Don't add pressure class if there
10922 is a pressure class with the same available hard registers.
10923 Check contains_reg_of_mode. Fix a typo in collecting
10924 temp_hard_regset. Ignore hard registers not belonging to a class.
10925
df1f7315
UB
109262011-05-24 Uros Bizjak <ubizjak@gmail.com>
10927
10928 PR target/49133
10929 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
10930
ee0cb37c
EB
109312011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10932 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10933
10934 PR gcov-profile/48845
10935 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
10936
6a20ce76
RG
109372011-05-24 Richard Guenther <rguenther@suse.de>
10938
10939 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
10940 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
10941 (gimple_types_compatible_p_1): Adjust.
10942 (iterative_hash_canonical_type): Do not bother about complete vs.
10943 incomplete types.
10944 (gimple_canonical_types_compatible_p): Likewise.
10945
2fcb858c
RO
109462011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10947
10948 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
10949
96d91dcf
RG
109502011-05-24 Richard Guenther <rguenther@suse.de>
10951
10952 PR bootstrap/49078
10953 * gimple.c (gimple_register_canonical_type): Revert
10954 previous change.
10955 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
10956 does not for a tree for the case where it matters. Cache
10957 pointer-type alias-sets.
10958
1ed1641d
JM
109592011-05-24 Joseph Myers <joseph@codesourcery.com>
10960
10961 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
10962 (OBJS): Remove options.o, opts-common.o and prefix.o.
10963 (OBJS-libcommon-target): New.
10964 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
10965 (BACKEND): Include libcommon-target.a.
10966 (MOSTLYCLEANFILES): Include libcommon-target.a.
10967 (libcommon-target.a): New.
10968 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
10969 prefix.o.
10970
57dfdff0
JM
109712011-05-23 Joseph Myers <joseph@codesourcery.com>
10972
10973 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
10974 parts of output shared with the driver.
10975 * optc-gen.awk: Don't generate parts of output not shared with the
10976 driver.
10977 * opth-gen.awk: Remove GCC_DRIVER conditionals.
10978 * doc/options.texi (SourcerInclude): Mention options-save.c.
10979 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
10980 (OBJS): Add options-save.o.
10981 (options-save.c, options-save.o): New.
10982 (options.o): Update dependencies.
10983 (gcc-options.o): Remove.
10984 (mostlyclean): Remove options-save.c.
10985
0e0d82a7
JJ
109862011-05-23 Jakub Jelinek <jakub@redhat.com>
10987
9166988f
JJ
10988 PR debug/49032
10989 * dbxout.c: Include cgraph.h.
10990 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
10991 and without value expr, return NULL if no varpool node exists for
10992 it or if it is not needed.
10993 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
10994
0e0d82a7
JJ
10995 PR c/49120
10996 * c-decl.c (start_decl): Convert expr to void_type_node.
10997
65712d5c
RS
109982011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
10999
11000 PR rtl-optimization/48826
11001 * emit-rtl.c (try_split): When splitting a call that is followed
11002 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
11003
9025085e
JJ
110042011-05-23 Jakub Jelinek <jakub@redhat.com>
11005
11006 * cfgexpand.c (expand_debug_expr): For unused non-addressable
11007 parameters passed in memory prefer using DECL_INCOMING_RTL over
11008 the pseudos it will be copied into.
11009
34a061be
L
110102011-05-23 H.J. Lu <hongjiu.lu@intel.com>
11011
11012 PR target/47315
11013 * config/i386/i386.c (ix86_option_override_internal): Save the
11014 initial options after checking vzeroupper.
11015
c375a3a4
DL
110162011-05-23 David Li <davidxl@google.com>
11017
11018 PR tree-optimization/48988
11019 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
11020 Initialize has_valid_pred for each pred chain.
11021
e1caba18
RG
110222011-05-23 Richard Guenther <rguenther@suse.de>
11023
11024 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
11025 (iterative_hash_gimple_type): Always hash type names.
11026
dde05067
NF
110272011-05-23 Nathan Froyd <froydnj@codesourcery.com>
11028
11029 * c-typeck.c (build_function_call_vec): Tweak call to
11030 check_function_arguments.
11031
094f6ab3
RG
110322011-05-23 Richard Guenther <rguenther@suse.de>
11033
11034 PR tree-optimization/49115
11035 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
11036 is not necessarily carried out, do not claim it kills the ref.
11037 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
11038
9a9822e1
RG
110392011-05-23 Richard Guenther <rguenther@suse.de>
11040
11041 PR middle-end/15419
11042 * builtins.c (fold_builtin_memory_op): Be less restrictive about
11043 what pointer types we accept for folding.
11044
c8028650
RO
110452011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11046
11047 * gthr-gnat.c: Remove.
11048 * gthr-gnat.h: Remove.
11049 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
11050 * config/t-freebsd (LIB2ADDEH): Likewise.
11051 * config/t-linux (LIB2ADDEH): Likewise.
11052 * config/t-sol2 (LIB2ADDEH): Likewise.
11053 * config/ia64/t-vms (LIB2ADDEH): Likewise.
11054 * configure.ac (target_thread_file): Remove gnat handling.
11055 * configure: Regenerate.
11056 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
11057
15882fe9
TG
110582011-05-23 Tristan Gingold <gingold@adacore.com>
11059 Eric Botcazou <ebotcazou@adacore.com>
11060
11061 * gcov.c (create_file_names): If no object directory is specified,
11062 keep the directory of the file.
11063
da90c957
RO
110642011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11065
11066 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
11067 * configure: Regenerate.
11068
7bba408b
JJ
110692011-05-23 Jakub Jelinek <jakub@redhat.com>
11070
11071 PR middle-end/48973
11072 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
11073 failed and the comparison has a single bit signed type, use
11074 constm1_rtx instead of const1_rtx for true value.
11075 (do_store_flag): If ops->type is single bit signed type, disable
11076 signel bit test optimization and pass -1 instead of 1 as last
11077 parameter to emit_store_flag_force.
11078
bc69f7ff
TV
110792011-05-23 Tom de Vries <tom@codesourcery.com>
11080
11081 PR target/45098
11082 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
11083 function.
11084 (infer_loop_bounds_from_undefined): Use new function.
11085
29cedf8e
RS
110862011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11087
11088 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
11089 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
11090 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
11091 and -O0 otherwise.
11092 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
11093
afe8b6ec
EB
110942011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11095
11096 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
11097 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
11098 returns true.
11099
872dab53
RS
111002011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11101
11102 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
11103
145f6c5b
EB
111042011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11105
11106 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
11107 UNSPEC_MOVE_PIC pattern.
11108
8ac79835
EB
111092011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11110
11111 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
11112 (sparc-*-rtems*): Likewise.
11113 (sparc64-*-elf*): Likewise.
11114 (sparc64-*-rtems*): Likewise.
11115 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
11116 * config/sparc/t-crtin: New file.
11117 * config/sparc/t-sol2 (crti.o): Delete rule.
11118 (crtn.o): Likewise.
11119 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
11120 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
11121 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
11122 (ENDFILE_SPEC): Add crtn.o.
11123
5fb43dd8
TV
111242011-05-22 Tom de Vries <tom@codesourcery.com>
11125
11126 PR middle-end/48689
11127 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
11128 CODE_CONTAINS_STRUCT (TS_COMMON).
11129
ccb1b17b
JJ
111302011-05-22 Jakub Jelinek <jakub@redhat.com>
11131
11132 PR middle-end/49029
11133 * expmed.c (extract_fixed_bit_field): Test whether target can be used
11134 only after deciding which mode to use.
11135
50ad7db2
TV
111362011-05-22 Tom de Vries <tom@codesourcery.com>
11137
11138 PR target/45098
dc0a3366 11139 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
11140 for call to get_shiftadd_cost.
11141
ef230b38
UB
111422011-05-22 Uros Bizjak <ubizjak@gmail.com>
11143
11144 PR target/49104
11145 * config/i386/cpuid.h (bit_MMXEXT): New define.
11146
15f072f9
NC
111472011-05-22 Nick Clifton <nickc@redhat.com>
11148
11149 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
11150 initialisation of non-existant args[2] element. Use args[] array
11151 not arg[] array to pass arguments to build_function_type_list.
11152
e38fdc94
IR
111532011-05-22 Ira Rosen <ira.rosen@linaro.org>
11154
11155 PR tree-optimization/49087
ef230b38 11156 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 11157
5b018c65
JM
111582011-05-21 Jason Merrill <jason@redhat.com>
11159
11160 PR c++/49092
11161 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
11162 static storage duration.
11163
abd9a770
EB
111642011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11165
11166 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
11167 frame pointer.
11168
bd9a3248
EB
111692011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11170
11171 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
11172 false if there are call-saved registers here...
11173 (sparc_can_use_return_insn_p): ...but here instead.
11174 (save_or_restore_regs): Fix thinko.
11175 (sparc_expand_prologue): Use current_function_is_leaf.
11176 (sparc_frame_pointer_required): Likewise.
11177
a5dfec9a
NC
111782011-05-21 Nick Clifton <nickc@redhat.com>
11179
11180 PR target/49098
11181 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
11182
555c3771
NP
111832011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
11184
11185 * gengtype.c (walk_type): Implemented "atomic" GTY option.
11186 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
11187
86fa5de4
JM
111882011-05-21 Joseph Myers <joseph@codesourcery.com>
11189
11190 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
11191 * optc-gen.awk: Move common code to opt-read.awk.
11192 * opth-gen.awk: Likewise.
ef230b38 11193 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 11194
bce33ab2
NF
111952011-05-20 Nathan Froyd <froydnj@codesourcery.com>
11196
11197 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
11198
e6450c11
TV
111992011-05-20 Tom de Vries <tom@codesourcery.com>
11200
11201 PR target/45098
11202 * tree-ssa-loop-ivopts.c: Include expmed.h.
11203 (get_shiftadd_cost): New function.
11204 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
11205
0e8b84ec
JJ
112062011-05-20 Jakub Jelinek <jakub@redhat.com>
11207
11208 PR bootstrap/49086
11209 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
11210 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
11211
946bdf67
JM
112122011-05-20 Joseph Myers <joseph@codesourcery.com>
11213
11214 * Makefile.in: Update comment referring to $(OBJS-common).
11215
c53aafdf
ILT
112162011-05-20 Ian Lance Taylor <iant@google.com>
11217
11218 * godump.c (go_output_typedef): Put enum constants in the macro
11219 hash table to avoid duplicate Go const definitions.
11220
2691e6d7
JM
112212011-05-20 Joseph Myers <joseph@codesourcery.com>
11222
11223 * Makefile.in (LIBDEPS): Add libcommon.a.
11224 (LIBS): Likewise.
11225 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
11226 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
11227 pretty-print.o and version.o.
11228 (OBJS-libcommon): New.
11229 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
11230 (BACKEND): Add libcommon.a.
11231 (MOSTLYCLEANFILES): Likewise.
11232 (libcommon.a): New.
11233 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
11234 (cpp$(exeext)): Likewise.
11235 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
11236 pretty-print.o and input.o.
11237 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
11238 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
11239 (errors.o): Remove.
11240 (mips-tfile): Don't explicitly use version.o.
11241 (mips-tdump): Likewise.
11242 (gcov.o): Depend on $(DIAGNOSTIC_H).
11243 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
11244 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
11245 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
11246 * gcov-dump.c: Include intl.h and diagnostic.h.
11247 (main): Initialize diagnostics.
11248 * gcov.c: Include diagnostic.h.
11249 (fnotice): Remove.
11250 (main): Initialize diagnostics.
11251 * lto-wrapper.c: Include diagnostic.h.
11252 (main): Initialize diagnostics.
11253
252b3e8c
MM
112542011-05-20 Michael Matz <matz@suse.de>
11255
11256 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
11257
2ee36ba6
MM
112582011-05-20 Michael Matz <matz@suse.de>
11259 Richard Guenther <rguenther@suse.de>
11260
11261 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
11262 use lto_streamer_cache_append directly instead of returning a VEC.
11263 (preload_common_node): Remove.
11264 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
11265 track seen nodes.
11266 (lto_streamer_cache_create): Call lto_preload_common_nodes.
11267
90ff582f
RG
112682011-05-20 Richard Guenther <rguenther@suse.de>
11269
11270 PR tree-optimization/49079
11271 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
11272 MEM_REFs correctly for the trailing array access detection.
11273 Special case constants the same way as decls for overall size
11274 constraining.
11275
3cda91d8
UB
112762011-05-20 Uros Bizjak <ubizjak@gmail.com>
11277
11278 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
11279 argument expansion.
11280
6c66f733
JJ
112812011-05-20 Jakub Jelinek <jakub@redhat.com>
11282
11283 PR tree-optimization/49073
3cda91d8
UB
11284 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
11285 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
11286 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
11287
0ea80a16
RG
112882011-05-20 Richard Guenther <rguenther@suse.de>
11289
11290 PR middle-end/48849
11291 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
11292 of pointer types the same way the middle-end does.
11293
fb291a1e
RG
112942011-05-20 Richard Guenther <rguenther@suse.de>
11295
3cda91d8
UB
11296 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
11297 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 11298
37cb25ed
QN
112992011-05-19 Quentin Neill <quentin.neill@amd.com>
11300
11301 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
11302 (fma4_fmaddsub): Likewise
11303
a30726a4
JH
113042011-05-19 Jan Hubicka <jh@suse.cz>
11305
11306 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
11307 (GIMPLE_TYPE_PAIR_SIZE): New macro.
11308 (type_pair_cache): New static var.
11309 (lookup_type_pair): Use fixed sized custom hash; make inline.
11310 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
11311 calls of lookup_type_pair.
11312 (print_gimple_types_stats): Remove cache stats.
11313 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
11314 and gtc_ob.
11315
0955cf61
UB
113162011-05-19 Uros Bizjak <ubizjak@gmail.com>
11317
11318 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
11319 when TARGET_RDRND is active.
11320 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
11321 Generate dummy SImode target register when target is NULL.
11322
12d844c8
JM
113232011-05-19 Joseph Myers <joseph@codesourcery.com>
11324
11325 * config/arm/arm-fpus.def: New.
11326 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
11327 arm-fpus.def.
11328 * config/arm/arm-tables.opt: Regenerate.
11329 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
11330 (arm_option_override): Don't decode FPU name to string here.
11331 * config/arm/arm.opt (mfpu=): Use Enum.
11332 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
11333 Update dependencies.
11334
9e350e99
JM
113352011-05-19 Joseph Myers <joseph@codesourcery.com>
11336
11337 * collect2.c: Include diagnostic.h.
11338 (fatal_perror, fatal, error, fancy_abort): Remove.
11339 (main): Set progname. Call xmalloc_set_program_name and
11340 diagnostic_initialize.
11341 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
11342 scan_libraries, resolve_lib_name): Call fatal_error instead of
11343 fatal and fatal_perror.
11344 * collect2.h (error, fatal, fatal_perror): Don't declare.
11345 * tlink.c: Include diagnostic-core.h.
11346 (recompile_files): Call fatal_error instead of fatal_perror.
11347 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
11348 pretty-print.o and input.o.
11349 (collect2.o, tlink.o): Update dependencies.
11350
86ff4081
RO
113512011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11352
11353 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
11354
2ca48caa
RO
113552011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11356
11357 PR target/40483
11358 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
11359 COMDAT group syntax, both SPARC and x86 variants.
11360 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
11361 * configure: Regenerate.
11362 * config/sol2.h (TARGET_SOLARIS): Define.
11363 (PUSHSECTION_FORMAT): Remove.
11364 (SECTION_NAME_FORMAT): Define.
11365 * config/sol2.c: Include hashtab.h.
11366 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
11367 expansion, using SECTION_NAME_FORMAT.
11368 (solaris_comdat_htab): New variable.
11369 (struct comdat_entry): Define.
11370 (comdat_hash): New function.
11371 (comdat_eq): New function.
11372 (solaris_elf_asm_comdat_section): New function.
11373 (solaris_define_comdat_signature): New function.
11374 (solaris_code_end): New function.
11375 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
11376 (solaris_code_end): Declare.
11377 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
11378 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
11379 solaris_code_end.
11380 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
11381 Remove ATTRIBUTE_UNUSED.
11382 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
11383 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 11384 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
11385 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
11386 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
11387 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
11388 (PUSHSECTION_FORMAT): Remove.
11389 (SECTION_NAME_FORMAT): Redefine.
11390
da5fb469
KT
113912011-05-19 Kai Tietz <ktietz@redhat.com>
11392
11393 * tree-cfg.c (verify_gimple_assign_binary): Barf on
11394 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
11395 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
11396
1651e703 113972011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
11398 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11399
11400 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
11401
e497b9bd
RG
114022011-05-19 Richard Guenther <rguenther@suse.de>
11403
11404 PR middle-end/48985
11405 * tree-object-size.c (addr_object_size): If the pointed-to
11406 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
11407
31b3ca64
RG
114082011-05-19 Richard Guenther <rguenther@suse.de>
11409
11410 * gimple.c (gimple_types_compatible_p_1): Compare names of
11411 the types themselves.
11412 (iterative_hash_gimple_type): And hash them that way.
11413 (gimple_register_type_1): If we register a main variant properly
11414 initialize the leader to ourselves.
11415
bb8d292d
TV
114162011-05-19 Tom de Vries <tom@codesourcery.com>
11417
11418 PR target/45098
11419 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
11420 get_loop_invariant_expr_id.
11421 (get_loop_invariant_expr_id): Use get_expr_id.
11422 (parm_decl_cost): New function.
11423 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
11424 Improve bound cost estimation. Use different inv_expr_id for elim and
11425 express cases.
11426
a53c5024
TV
114272011-05-19 Tom de Vries <tom@codesourcery.com>
11428
11429 PR target/45098
11430 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
11431 cost_base.cost == 0.
11432
31f9eb59
L
114332011-05-18 H.J. Lu <hongjiu.lu@intel.com>
11434
11435 PR target/49002
66bd20e7
EB
11436 * config/i386/sse.md
11437 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
11438 load cast.
31f9eb59 11439
681056ae
JJ
114402011-05-18 Jakub Jelinek <jakub@redhat.com>
11441
11442 PR tree-optimization/49039
11443 * tree-vrp.c (extract_range_from_binary_expr): For
11444 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
11445 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
11446
b5ee6752
TV
114472011-05-18 Tom de Vries <tom@codesourcery.com>
11448
11449 PR target/45098
11450 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
11451
0bda47a3
UB
114522011-05-18 Uros Bizjak <ubizjak@gmail.com>
11453
11454 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
11455 (*tls_global_dynamic_64): Ditto.
11456 (*tls_local_dynamic_base_32_gnu): Ditto.
11457 (*tls_local_dynamic_base_64): Ditto.
11458 (tls_initial_exec_64_sun): Ditto.
11459
033b0805
SH
114602011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
11461
11462 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
11463 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
11464 bf592-none.
11465 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
11466 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
11467 * config/bfin/bfin.c (bfin_cpus): Add bf592.
11468 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 11469 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
11470 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
11471 * config/bfin/elf.h (LIB_SPEC): Add bf592.
11472
ba163417
JM
114732011-05-18 Joseph Myers <joseph@codesourcery.com>
11474
11475 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 11476 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
11477 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
11478 target_thread_pointer, arm_structure_size_boundary, struct
11479 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
11480 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
11481 (arm_option_override) Don't process most enumerated option values here.
11482 Don't process target_fpe_name here. Work with integer not string for
11483 structure size boundary; use separate diagnostics for each case.
ba163417
JM
11484 * config/arm/arm.h (enum float_abi_type, enum
11485 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
11486 to arm-opts.h.
11487 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
11488 arm_structure_size_boundary): Remove.
11489 * config/arm/arm.opt (mabi=): Use Enum and Init.
11490 (arm_abi_type): New Enum and EnumValue entries.
11491 (mfloat-abi=): Use Enum and Init.
11492 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 11493 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
11494 (mfp16-format=): Use Enum and Init.
11495 (arm_fp16_format_type): New Enum and EnumValue entries.
11496 (mstructure-size-boundary=): Use UInteger and Init.
11497 (mtp=): Use Enum and Init.
11498 (arm_tp_type): New Enum and EnumValue entries.
11499
179184e3
RG
115002011-05-18 Richard Guenther <rguenther@suse.de>
11501
11502 PR tree-optimization/49018
11503 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
11504 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
11505 gimple_has_side_effects.
11506
93b2a207
RG
115072011-05-18 Richard Guenther <rguenther@suse.de>
11508
11509 * gimple.c (gimple_register_type_1): New function, split out from ...
11510 (gimple_register_type): ... here. Avoid infinite recursion.
11511
b010117a
IR
115122011-05-18 Ira Rosen <ira.rosen@linaro.org>
11513
11514 PR tree-optimization/41881
11515 * tree-vectorizer.h (struct _loop_vec_info): Add new field
11516 reduction_chains along with a macro for its access.
11517 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
11518 (destroy_loop_vec_info): Free reduction chains.
11519 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
11520 (vect_is_slp_reduction): New function.
11521 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
11522 (vect_create_epilog_for_reduction): Support SLP reduction chains.
11523 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
11524 definition types for reduction chains.
11525 (vect_supported_load_permutation_p): Don't allow permutations for
11526 reduction chains.
11527 (vect_analyze_slp_instance): Support reduction chains.
11528 (vect_analyze_slp): Try to build SLP instance from reduction chains.
11529 (vect_get_constant_vectors): Handle reduction chains.
11530 (vect_schedule_slp_instance): Mark the first statement of the
11531 reduction chain as reduction.
11532
e14c1050
IR
115332011-05-18 Ira Rosen <ira.rosen@linaro.org>
11534
11535 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
11536 names for group elements access.
11537 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
11538 reduction chains as well. Remove data reference and interleaving
11539 related words from the fields names.
11540 * tree-vect-loop.c (vect_transform_loop): Use new names for group
11541 elements access.
11542 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
11543 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
11544 vect_update_interleaving_chain, vect_same_range_drs,
11545 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
11546 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
11547 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
11548 vect_analyze_group_access, vect_analyze_data_ref_access,
11549 vect_create_data_ref_ptr, vect_transform_strided_load,
11550 vect_record_strided_load_vectors): Likewise.
11551 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
11552 vect_model_load_cost, vectorizable_store, vectorizable_load,
11553 vect_remove_stores, new_stmt_vec_info): Likewise.
11554 * tree-vect-slp.c (vect_build_slp_tree,
11555 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
11556
51c213f7
RG
115572011-05-18 Richard Guenther <rguenther@suse.de>
11558
11559 PR middle-end/48989
11560 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
11561 operand verification.
11562 (verify_gimple_assign_binary): Likewise.
11563 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
11564 to non-1-precision BOOLEAN_TYPEs.
11565
8f5e5434
TV
115662011-05-18 Tom de Vries <tom@codesourcery.com>
11567
11568 PR target/45098
11569 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
11570
116bc3a4
JJ
115712011-05-18 Jakub Jelinek <jakub@redhat.com>
11572
11573 PR tree-optimization/49000
11574 * tree-ssa.c (execute_update_addresses_taken): Call
11575 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
11576 be rewritten and decl has been marked for renaming, reset
11577 the debug stmt.
11578
26a8964c
JM
115792011-05-17 Joseph Myers <joseph@codesourcery.com>
11580
11581 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
11582 enum_opts_set when testing if attributes have set -mfpmath=.
11583
82bd45d7
RS
115842011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11585
11586 * config/mips/mips.c (mips_handle_option): Remove unused variable.
11587
267ffce3
UB
115882011-05-17 Uros Bizjak <ubizjak@gmail.com>
11589
11590 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
11591 info->entry with 0
11592 * tree-inline.c (maybe_inline_call_in_expr): Initialize
11593 id.transform_lang_insert_block with NULL.
11594
115952011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
11596
11597 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
11598 (output_fp_compare): Change args 3 and 4 to bool.
11599 (ix86_expand_call): Change arg 6 to bool.
11600 (ix86_attr_length_immediate_default): Change arg 2 to bool.
11601 (ix86_attr_length_vex_default): Change arg 3 to bool.
11602 * config/i386/i386.md: Update all uses.
11603 * config/i386/i386.c: Ditto.
11604 (ix86_flags_dependent): Change return type to bool.
11605
5beaf664
RG
116062011-05-17 Richard Guenther <rguenther@suse.de>
11607
11608 * gimple.c (type_hash_pair_compare): Fix comparison.
11609
008bad7a
RG
116102011-05-17 Richard Guenther <rguenther@suse.de>
11611
11612 * gimple.c (iterative_hash_gimple_type): Simplify singleton
11613 case some more, fix final hash value of the non-singleton case.
11614
36461340
RG
116152011-05-17 Richard Guenther <rguenther@suse.de>
11616
11617 PR bootstrap/49013
11618 Revert
11619 2011-05-16 Richard Guenther <rguenther@suse.de>
11620
11621 * gimple.c (gimple_types_compatible_p_1): Use names of the
11622 type itself, not its main variant.
11623 (iterative_hash_gimple_type): Likewise.
11624
6b6a59f3
RG
116252011-05-17 Richard Guenther <rguenther@suse.de>
11626
11627 * gimple.c (gimple_register_canonical_type): Use the main-variant
11628 leader for computing the canonical type.
11629
4ffc4134
NC
116302011-05-17 Nick Clifton <nickc@redhat.com>
11631
a1d8754e
NC
11632 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
11633 moves.
11634
4ffc4134
NC
11635 * config/rx/rx.md: Add peephole to remove redundant extensions
11636 after loads.
39960f7a
NC
11637 (bitset_in_memory): Use rx_restricted_mem_operand.
11638 (bitinvert_in_memory): Likewise.
11639 (bitclr_in_memory): Likewise.
4ffc4134 11640
b3db92ac
KI
116412011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
11642 Nick Clifton <nickc@redhat.com>
11643
11644 * config/rx/rx.md: Add peepholes to match a register move followed
11645 by a comparison of the moved register. Replace these with an
11646 addition of zero that does both actions in one instruction.
11647
8637e32a
JJ
116482011-05-17 Jakub Jelinek <jakub@redhat.com>
11649
11650 PR target/48986
11651 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
11652 predicate to allow CONST_INT.
11653 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
11654
8023568e
JM
116552011-05-16 Joseph Myers <joseph@codesourcery.com>
11656
11657 * opts-common.c (opt_enum_arg_to_value): New.
11658 * opts.h (opt_enum_arg_to_value): Declare.
11659 * config/i386/i386.opt (fpmath): Remove.
11660 (mfpmath=): Use Enum, Init and Save.
11661 (fpmath_unit): New Enum and EnumValue entries.
11662 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
11663 name for function fpmath state.
11664 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
11665 * config/i386/i386.c: Include diagnostic.h.
11666 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 11667 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 11668 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 11669 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
11670 (x86_function_specific_save, ix86_function_specific_restore):
11671 Don't handle fpmath state specially.
11672 (ix86_function_specific_print): Pass fpmath state to
11673 ix86_target_string instead of printing in this function.
11674 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
11675 Handle enum attributes.
11676 (IX86_ATTR_ENUM, ix86_opt_enum): New.
11677 (ix86_valid_target_attribute_tree): Update option_strings
11678 handling. Handle fpmath as enum option.
11679 (ix86_can_inline_p): Update field names for function fpmath state.
11680 (ix86_expand_builtin): Update call to ix86_target_string.
11681 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
11682 (ix86_fpmath): Remove.
11683 * config/i386/t-i386 (i386.o): Update dependencies.
11684
9e8d926e
JM
116852011-05-16 Joseph Myers <joseph@codesourcery.com>
11686
11687 PR preprocessor/48677
11688 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
11689 from decoded_options[0], not from itself.
11690
f6449011
UB
116912011-05-16 Uros Bizjak <ubizjak@gmail.com>
11692
11693 * config/i386/constraints.md (z): New constraint.
11694 * config/i386/i386.c (c): New mode attribute.
11695 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
11696 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
11697 constraint for operand 0.
11698 (*call_vzeroupper): Ditto.
11699 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
11700 (*call_rex64_ms_sysv_vzeroupper): Ditto.
11701 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
11702 Use "lzm" constraint for operand 0.
11703 (*call_pop_vzeroupper): Ditto.
11704 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
11705 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
11706 constraint for operand 0.
11707 (*sibcall_vzeroupper): Ditto.
11708 (*sibcall_rex64_ms_sysv): Ditto.
11709 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
11710 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
11711 *sibcall_pop_1. Use "Uz" constraint for operand 0.
11712 (*sibcall_pop_vzeroupper): Ditto.
11713 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
11714 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
11715 mode iterator. Use "<c>zm" constraint for operand 1.
11716 (*call_value_vzeroupper): Ditto.
11717 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 11718 for operand 1.
f6449011
UB
11719 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
11720 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
11721 *call_value_pop_1. Use "lzm" constraint for operand 1.
11722 (*call_value_pop_vzeroupper): Ditto.
11723 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
11724 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
11725 mode iterator. Use "Uz" constraint for operand 1.
11726 (*sibcall_value_vzeroupper): Ditto.
11727 (*sibcall_value_rex64_ms_sysv): Ditto.
11728 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
11729 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
11730 constraint for operand 1.
11731 (*sibcall_value_pop_vzeroupper): Ditto.
11732 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
11733 and "z" constraint for operand 2.
11734 (*tls_global_dynamic_32_gnu): Ditto.
11735 (*tls_local_dynamic_base_32_gnu): Ditto.
11736 (*tls_local_dynamic_base_64): Ditto.
11737 (*tls_local_dynamic_32_once): Ditto.
11738 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
11739 Update all callers.
11740 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
11741
c11b6902
RG
117422011-05-16 Richard Guenther <rguenther@suse.de>
11743
11744 * gimple.c (gimple_types_compatible_p_1): Use names of the
11745 type itself, not its main variant.
11746 (iterative_hash_gimple_type): Likewise.
11747
1e83b5f1
RG
117482011-05-16 Richard Guenther <rguenther@suse.de>
11749
f6449011
UB
11750 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
11751 always visit pointer target and function result and argument types.
1e83b5f1 11752
62e36382
JM
117532011-05-16 Jason Merrill <jason@redhat.com>
11754
11755 PR c++/48999
11756 * tree-inline.c (copy_statement_list): Put back recursion.
11757
687027a4
GJL
117582011-05-16 Georg-Johann Lay <avr@gjlay.de>
11759
11760 PR target/27663
11761 PR target/41076
11762 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
11763 * config/avr/avr.md ("*ior<mode>qi.byte0",
11764 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
11765
f24a5190
GJL
117662011-05-16 Georg-Johann Lay <avr@gjlay.de>
11767
11768 PR target/45099
11769 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
11770 register is needed for a function argument.
11771
3066f593
RG
117722011-05-16 Richard Guenther <rguenther@suse.de>
11773
11774 * gimple.c (struct type_hash_pair): New type.
11775 (type_hash_pair_compare): New function.
f6449011 11776 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 11777
b2ab2cf4
RE
117782011-05-16 Revital Eres <revital.eres@linaro.org>
11779
f6449011 11780 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 11781
dfb737fc
UB
117822011-05-15 Uros Bizjak <ubizjak@gmail.com>
11783
11784 * config/i386/i386.md (floating point move splitters): Fix
11785 usage of standard_80387_constant_p.
f6449011 11786 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 11787
8caa1de0
UB
117882011-05-15 Uros Bizjak <ubizjak@gmail.com>
11789
11790 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
11791
8a519095
EB
117922011-05-14 Eric Botcazou <ebotcazou@adacore.com>
11793
11794 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
11795 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
11796 (tree_ssa_lim_finalize): Likewise.
11797
479fecd3
UB
117982011-05-14 Uros Bizjak <ubizjak@gmail.com>
11799
11800 * config/i386/constraint.md (Yd, Yx): New register constraints.
11801 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
11802 Yd conditional register constraint.
11803 (*movtf_internal): Use standard_sse_constant_opcode.
11804 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
11805 Yx conditional register constraint.
11806 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
11807 Yd conditional register constraint. Use standard_sse_constant_p to
11808 check for valid SSE constants and call standard_sse_constant_opcode to
11809 output SSE insn.
11810 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
11811 constants and call standard_sse_constant_opcode to output SSE insn.
11812 * config/i386/i386.c (ix86_option_ovverride_internal): Set
11813 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
11814 optimize_size is set.
11815 (standard_sse_constant_opcode): Output conditional AVX insn templates.
11816
2d8c9ad5
TB
118172011-05-14 Tobias Burnus <burnus@net-b.de>
11818
11819 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
11820
411a20d6
MJ
118212011-05-13 Martin Jambor <mjambor@suse.cz>
11822
11823 * ipa-prop.c (ipa_cst_from_jfunc): New function.
11824 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
11825 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
11826 (evaluate_conditions_for_ipcp_clone): Removed.
11827 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
11828 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
11829 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
11830
dc764d10
EB
118312011-05-13 Eric Botcazou <ebotcazou@adacore.com>
11832
11833 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
11834 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
11835 lieu of MAY_HAVE_DEBUG_STMTS.
11836 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
11837 debug statements if !MAY_HAVE_DEBUG_STMTS.
11838
9f47a24e
MT
118392011-05-13 Martin Thuresson <martint@google.com>
11840
11841 PR gcov-profile/47793
11842 * libgcov.c (gcov_exit): Support relative profile paths.
11843 * doc/invoke.texi (-fprofile-dir): Update for above change.
11844
b8a71aed
RG
118452011-05-13 Richard Guenther <rguenther@suse.de>
11846
11847 * gimple.c (gimple_canonical_types_compatible_p): Do not use
11848 type-pair caching, do not compare hashes.
11849
eb9f9259
NF
118502011-05-13 Nathan Froyd <froydnj@codesourcery.com>
11851
11852 PR middle-end/48965
11853 * tree-cfg.c (edge_to_cases_cleanup): Return true.
11854 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
11855
3c6cbf7a
KT
118562011-05-13 Kai Tietz <ktietz@redhat.com>
11857
11858 * gimplify.c (gimplify_expr): Make sure operand is boolified.
11859 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
11860 compatible type for TRUTH_NOT_EXPR.
11861
2e7f5dc0
L
118622011-05-13 H.J. Lu <hongjiu.lu@intel.com>
11863
dc764d10 11864 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
11865 (ix86_hard_regno_mode_ok): Change return value to bool. Use
11866 can_create_pseudo_p ().
11867
e834e95c
RG
118682011-05-13 Richard Guenther <rguenther@suse.de>
11869
11870 PR lto/48978
11871 * gimple.c (iterative_hash_gimple_type): Revert change in
11872 pointer target and function result and argument hashing.
11873
34203483
UB
118742011-05-13 Uros Bizjak <ubizjak@gmail.com>
11875
11876 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
11877 (*movxf_internal_nointeger): Ditto.
11878 (*movdf_internal_rex64): Ditto.
11879 (*movdf_internal): Ditto.
11880 (*movdf_internal_nointeger): Ditto.
11881 (*movsf_internal): Ditto.
11882 (sincos splitters): Use can_create_pseudo ().
11883
7eb68c06
JM
118842011-05-13 Joseph Myers <joseph@codesourcery.com>
11885
11886 * config/i386/i386-opts.h: New.
11887 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
11888 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
11889 ix86_section_threshold): Remove.
11890 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
11891 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
11892 OPT_mbranch_cost_.
11893 (ix86_option_override_internal): Don't decode strings for options
11894 other than -march=, -mtune= and -mfpmath=. Don't allow for
11895 __attribute__ uses in remaining diagnostics for options with
34203483 11896 string arguments. Don't check for integer arguments being negative.
7eb68c06 11897 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 11898 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
11899 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
11900 ix86_branch_cost, ix86_section_threshold): Remove.
11901 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
11902 HeaderInclude.
11903 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
11904 but not Var.
11905 (masm=): Use Enum and Init.
11906 (asm_dialect): New Enum and EnumValue entries.
11907 (mbranch-cost=): Use UInteger.
11908 (mlarge-data-threshold=): Use UInteger and Init.
11909 (mcmodel=): Use Enum and Init.
11910 (cmodel): New Enum and EnumValue entries.
11911 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
11912 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
11913 mregparm=): Use UInteger.
11914 (mstringop-strategy=): Use Enum and Init.
11915 (stringop_alg): New Enum and EnumValue entries.
11916 (mtls-dialect=): Use Enum and Init.
11917 (tls_dialect): New Enum and EnumValue entries.
11918 (mabi=): Use Enum and Init.
11919 (calling_abi): New Enum and EnumValue entries.
11920 (mveclibabi=): Use Enum and Init.
11921 (ix86_veclibabi): New Enum and EnumValue entries.
11922
f67e203c
NC
119232011-05-13 Nick Clifton <nickc@redhat.com>
11924
34203483
UB
11925 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
11926 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 11927
221df0b6
KT
119282011-05-13 Kai Tietz <ktietz@redhat.com>
11929
11930 PR middle-end/48984
11931 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
11932 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
11933 (gimple_boolify): Check for cast for boolean_type_node instead for
11934 BOOLEAN_TYPE.
11935
208cb8cb
RG
119362011-05-13 Richard Guenther <rguenther@suse.de>
11937
11938 PR tree-optimization/48172
11939 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
11940 multiplying by number of iterations for equal step.
11941 (vect_create_cond_for_alias_checks): Likewise.
11942
b88ecf55
AS
119432011-05-13 Andreas Schwab <schwab@redhat.com>
11944
11945 * configure.ac: Use AS_HELP_STRING throughout.
11946 * configure: Regenerate.
11947
569b527e
L
119482011-05-12 H.J. Lu <hongjiu.lu@intel.com>
11949
34203483 11950 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
11951 (ix86_emit_restore_regs_using_mov): Likewise.
11952 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11953
8b9a1428
AS
119542011-05-12 Anatoly Sokolov <aesok@post.ru>
11955
11956 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
11957 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
11958 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
11959 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
11960 RTX_OK_FOR_OLO10_P): ...here.
11961 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
11962 SYMBOLIC_CONST.
11963
1d15f620
KT
119642011-05-12 Kai Tietz <ktietz@redhat.com>
11965
11966 * gimplify.c (gimple_boolify): Re-boolify expression
11967 arguments even if expression type is of kind BOOLEAN_TYPE.
11968 (gimplify_boolean_expr): Removed.
11969 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
11970 and XOR. Additional take care that we keep expression's type.
11971 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
11972 of TRUTH_AND|OR|XOR_EXPR.
11973
c2b5fc8d
JJ
119742011-05-12 Jakub Jelinek <jakub@redhat.com>
11975
11976 PR tree-optimization/48975
11977 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
11978 on all bbs here and free and clear ifc_bbs at the end.
11979
61332f77
RG
119802011-05-12 Richard Guenther <rguenther@suse.de>
11981
11982 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
11983 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
11984 until after simple checks.
11985 (gimple_types_compatible_p): Likewise.
11986 (iterative_hash_gimple_type): Always hash pointer targets
11987 and function return and argument types.
11988 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
11989 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
11990 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
11991 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
11992 completely in the simple compare section.
11993 (gimple_register_canonical_type): Query the cache again after
11994 registering.
11995
e2a3a5f1
RG
119962011-05-12 Richard Guenther <rguenther@suse.de>
11997
11998 PR tree-optimization/48172
11999 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
12000 the number of iterations from the segment size calculation.
12001 (vect_create_cond_for_alias_checks): Adjust.
12002
2c703f3a
JJ
120032011-05-12 Jakub Jelinek <jakub@redhat.com>
12004
12005 PR debug/48967
12006 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
12007 if validate_subreg fails.
12008
120092011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
12010
12011 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
12012 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
12013 early.
12014
87e91fca
DD
120152011-05-12 DJ Delorie <dj@redhat.com>
12016
d53903d6 12017 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
12018 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
12019 created builtin into rx_builtins array.
12020 (rx_builtin_decl): New function.
34203483 12021 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 12022
5f2f13fd
DD
120232011-05-12 DJ Delorie <dj@redhat.com>
12024 Nick Clifton <nickc@redhat.com>
12025
12026 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
12027 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
12028 (rx_is_legitimate_address): Add pre-decrement and post-increment
12029 addressing in HImode and QImode. Fix test for out of range
12030 REG+INT addressing.
87e91fca 12031 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 12032 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 12033 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 12034 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 12035
57421f45
JM
120362011-05-11 Jason Merrill <jason@redhat.com>
12037
12038 * tree.c (type_hash_canon): Use struct tree_type_non_common.
12039
898c90c0
EB
120402011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12041
12042 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
12043 reindent the subsequent block.
12044
79bec923
ST
120452011-05-11 Satoru Takabayashi <satorux@google.com>
12046 Paul Pluzhnikov <ppluzhnikov@google.com>
12047
34203483 12048 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
12049 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
12050 * config.in: Add LINKER_HASH_STYLE.
12051 * configure.ac: Add --with-linker-hash-style.
12052 * configure: Regenerate.
79bec923 12053
d0340959
RG
120542011-05-11 Richard Guenther <rguenther@suse.de>
12055
12056 PR middle-end/48964
12057 * gimple.c (iterative_hash_canonical_type): Fix typo.
12058
cb032fee
UB
120592011-05-11 Uros Bizjak <ubizjak@gmail.com>
12060
12061 * config/i386/i386.c (legitimize_tls_address)
479fecd3 12062 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
12063 expanders directly for TARGET_GNU2_TLS. Determine pic and
12064 __tls_get_addr symbol reference here. Update call to
12065 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 12066 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
12067 expanders directly for TARGET_GNU2_TLS. Determine
12068 __tls_get_addr symbol reference here. Update call to
12069 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
12070 unique UNSPEC REG_EQUIV to libcall block.
12071 (ix86_tls_get_addr): Declare static.
12072 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
12073 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
12074 Do not determine pic and __tls_get_addr symbol reference here. Do not
12075 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
12076 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
12077 (tls_global_dynamic_64): Add operand 2. Do not determine
12078 __tls_get_addr symbol reference here. Do not call
12079 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
12080 (tls_local_dynamic_base64): Ditto for operand 1.
12081
6d3cc8f0
EB
120822011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12083
12084 * function.c (expand_function_start): Initialize stack_check_probe_note
12085 only if the generic stack checking mechanism is used.
12086
51e020fc
RG
120872011-05-11 Richard Guenther <rguenther@suse.de>
12088
12089 PR tree-optimization/15256
12090 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
12091 (A & B) | C, combine (A op CST1) op CST2.
12092 (tree_ssa_forward_propagate_single_use_vars): Only bother to
12093 visit assigns that have uses.
12094
51545682
NF
120952011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12096
cb032fee 12097 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
12098 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
12099 (unpack_ts_type_common_value_fields): ...this. Update comment.
12100 (unpack_value_fields): Adjust for renaming.
12101 (lto_input_ts_type_tree_pointers): Split into...
12102 (lto_input_ts_type_common_tree_pointer): ...this and...
12103 (lto_input_ts_type_non_common_tree_pointers): ...this.
12104 (lto_input_tree_pointers): Adjust for above split.
12105 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
12106 (pack_ts_type_common_value_fields): ...this. Update comment.
12107 (lto_output_ts_type_tree_pointers): Split into...
12108 (lto_output_ts_type_common_tree_pointers): ...this and...
12109 (lto_output_ts_type_non_common_tree_pointers): ...this.
12110 (lto_output_tree_pointers): Adjust for above split.
12111 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
12112 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
12113 * stor-layout.c (vector_type_mode): Adjust location of mode field.
12114 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
12115 Define.
12116 (struct tree_type): Split into...
12117 (struct tree_type_common: ...this and...
12118 (struct tree_type_with_lang_specific): ...this and...
12119 (struct tree_type_non_common): ...this. Adjust accessor macros
12120 accordingly.
12121 (TYPE_VALUES_RAW): Define.
12122 (union tree_node): Update for above changes.
12123 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
12124 TS_TYPE_NON_COMMON.
12125 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
12126 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
12127 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
12128 * treestructu.def (TS_TYPE): Remove.
12129 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
12130 Define.
12131
b03c3082
JJ
121322011-05-11 Jakub Jelinek <jakub@redhat.com>
12133
12134 PR debug/48159
12135 * tree-ssa.c (reset_debug_uses): New function.
12136 * tree-flow.h (reset_debug_uses): New prototype.
12137 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
12138 * tree-loop-distribution.c (generate_loops_for_partition): Call
12139 reset_debug_uses on the stmts that will be removed. Keep around
12140 all debug stmts, don't count them as bits in partition bitmap.
12141 (generate_builtin): Don't count debug stmts or labels as bits in
12142 partition bitmap.
12143
b5e04de5
RG
121442011-05-11 Richard Guenther <rguenther@suse.de>
12145
12146 * gimple.c (gimple_type_hash_1): Merge with ...
12147 (gimple_type_hash): ... this.
12148 (gtc_visit): Remove mode parameter and simplify accordingly.
12149 (gimple_types_compatible_p_1): Likewise.
12150 (gimple_types_compatible_p): Likewise.
12151 (iterative_hash_gimple_type): Likewise.
12152 (visit): Likewise.
12153 (gimple_type_eq): Adjust.
12154
fc6970e4
RE
121552011-05-11 Revital Eres <revital.eres@linaro.org>
12156
12157 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
12158 enters the branch create an anti edge in the opposite direction
12159 to prevent the creation of reg-moves.
12160 * modulo-sched.c: Adjust comment to reflect the fact we are
12161 scheduling closing branch.
12162 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
12163 (stage_count): New field in struct partial_schedule.
12164 (calculate_stage_count): New function.
12165 (normalize_sched_times): Rename to reset_sched_times and handle
12166 incrementing the sched time of the nodes by a constant value
12167 passed as parameter.
12168 (duplicate_insns_of_cycles): Skip closing branch.
12169 (sms_schedule_by_order): Schedule closing branch.
12170 (ps_insn_find_column): Handle closing branch.
12171 (sms_schedule): Call reset_sched_times and adjust the code to
12172 support scheduling of the closing branch.
12173 (ps_insert_empty_row): Update calls to normalize_sched_times
12174 and rotate_partial_schedule functions.
12175
41a58a92
RG
121762011-05-11 Richard Guenther <rguenther@suse.de>
12177
12178 PR middle-end/48953
12179 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
12180
e9f8dcf9
JM
121812011-05-11 Joseph Myers <joseph@codesourcery.com>
12182
cb032fee
UB
12183 * opts.c (finish_options): Move warning settings from process_options.
12184 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 12185
10c224a9
RG
121862011-05-11 Richard Guenther <rguenther@suse.de>
12187
12188 PR tree-optimization/18041
12189 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
12190 (simplify_bitwise_binary): ... this. Handle operand conversions
12191 by applying them to the result instead.
12192 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
12193
825b27de
RG
121942011-05-11 Richard Guenther <rguenther@suse.de>
12195
12196 * gimple.c (gimple_canonical_types_compatible_p): Split out
12197 from gimple_types_compatible_p and friends. Do not recurse
12198 to pointed-to types.
12199 (gimple_canonical_type_eq): Use it.
12200 (iterative_hash_canonical_type): Split out from
12201 iterative_hash_gimple_type and friends. Do not recurse
12202 to pointed-to types.
12203 (gimple_canonical_type_hash): Use it, allocate the hash here.
12204
ca756625
RE
122052011-05-11 Revital Eres <revital.eres@linaro.org>
12206
12207 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
12208 recognizing doloop.
12209
b8abece3
RE
122102011-05-11 Revital Eres <revital.eres@linaro.org>
12211
12212 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
12213 instead of PREV_INSN.
12214
ce7b3761
RE
122152011-05-11 Revital Eres <revital.eres@linaro.org>
12216
12217 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
12218 * loop-doloop.c (doloop_condition_get): Likewise.
12219 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
12220 (doloop_end): New.
12221 * config/arm/arm.md (*addsi3_compare0): Remove "*".
12222
a9dc9d37
NF
122232011-05-10 Nathan Froyd <froydnj@codesourcery.com>
12224
12225 * tree.def (CASE_LABEL_EXPR): Add an operand.
12226 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
12227
96703596
JM
122282011-05-10 Joseph Myers <joseph@codesourcery.com>
12229
12230 * c-decl.c (c_override_global_bindings_to_false): Remove.
12231 (global_bindings_p): Don't check
12232 c_override_global_bindings_to_false.
12233 * c-tree.h (c_override_global_bindings_to_false): Remove.
12234 * c-typeck.c (composite_type): Don't set
12235 c_override_global_bindings_to_false.
12236
dbcc9f08
MM
122372011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12238
12239 PR target/48857, 48495
12240 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
12241 (VSX_MODE): Ditto.
12242 (VSX_MOVE_MODE): Ditto.
12243 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
12244 VSX vector types. Add V2DImode.
12245 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
12246 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
12247 (MODES_TIEABLE_P): Ditto.
12248
12249 * config/rs6000/rs6000.c (rs6000_emit_move): Use
12250 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
12251 VSX_VECTOR_MODE.
12252 (init_cumulative_args): Ditto.
12253 (rs6000_function_arg_boundary): Ditto.
12254 (rs6000_function_arg_advance_1): Ditto.
12255 (rs6000_function_arg): Ditto.
12256 (rs6000_function_ok_for_sibcall): Ditto.
12257 (emit_frame_save): Ditto.
12258 (rs6000_function_value): Ditto.
12259 (rs6000_libcall_value): Ditto.
12260
4a68b4ca
JM
122612011-05-10 Joseph Myers <joseph@codesourcery.com>
12262
12263 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12264 i386/darwin-lib.h to $libgcc_tm_file.
12265 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
12266
bcb521e9
JM
122672011-05-10 Joseph Myers <joseph@codesourcery.com>
12268
12269 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
12270
f10d3ac9
JM
122712011-05-10 Joseph Myers <joseph@codesourcery.com>
12272
cb032fee 12273 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
12274 * config/rs6000/rs6000-tables.opt: New file (generated).
12275 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
12276 rs6000/rs6000-tables.opt to extra_options.
12277 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
12278 * config/rs6000/rs6000.c (rs6000_select): Remove.
12279 (processor_target_table): Move contents to rs6000-cpus.def.
12280 (darwin_rs6000_override_options): Check
12281 global_options_set.x_rs6000_cpu_index instead of
12282 rs6000_select[1].string.
12283 (rs6000_option_override_internal): Likewise.
12284 (rs6000_handle_option): Don't assert that global structures are in
12285 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
12286 (rs6000_default_cpu): New variable.
12287 (rs6000_file_start): Set it instead of local default_cpu. Check
12288 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
12289 global_options_set.x_rs6000_tune_index instead of rs6000_select.
12290 (rs6000_darwin_file_start): Check rs6000_default_cpu and
12291 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
12292 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
12293 rs6000_select): Remove.
12294 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
12295 Remove.
12296 (mcpu=, mtune=): Use Var, Init, Enum and Save.
12297 * config/rs6000/t-rs6000
12298 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
12299 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12300 global_options_set.x_rs6000_cpu_index instead of
12301 rs6000_select[1].string.
12302 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12303 global_options_set.x_rs6000_cpu_index instead of
12304 rs6000_select[1].string.
12305
80cf2e08
JM
123062011-05-10 Joseph Myers <joseph@codesourcery.com>
12307
12308 * config.gcc (libgcc_tm_file): Define instead of including files
12309 from ../../libgcc/config/ in tm_file.
cb032fee 12310 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
12311 * configure: Regenerate.
12312 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
12313 libgcc_tm.h, cs-libgcc_tm.h): New.
12314 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
12315 (clean): Remove libgcc_tm.h.
12316 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
12317 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
12318 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
12319
fd01a351
GJL
123202011-05-10 Georg-Johann Lay <avr@gjlay.de>
12321
12322 PR target/48896
12323 * config/avr/avr.c (avr_ret_register): Return unsigned int
12324 instead of int.
12325 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
12326 it to avr_libcall_value.
12327 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
12328 expand_expr.
12329 (avr_expand_binop_builtin): Ditto.
12330 (avr_expand_unop_builtin): Ditto.
12331
34cc3c86
DD
123322011-05-10 DJ Delorie <dj@redhat.com>
12333
12334 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
12335 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
12336 * config/rx/rx.c (rx_align_for_label): Add label and
12337 uses_threshold parameters. Do not align when the label is not
12338 used enough.
12339 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
12340
be173289
RG
123412011-05-10 Richard Guenther <rguenther@suse.de>
12342
12343 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
12344 a series of conversions and apply foldings similar to what
12345 fold-const does.
12346 (tree_ssa_forward_propagate_single_use_vars): Call it.
12347
e7f78021
JJ
123482011-05-10 Jakub Jelinek <jakub@redhat.com>
12349
6ae70ea2
JJ
12350 PR tree-optimization/48611
12351 PR tree-optimization/48794
12352 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
12353 referenced from RESX or EH_DISPATCH arguments.
12354
e7f78021
JJ
12355 PR debug/48928
12356 * dfp.c (decimal_to_decnumber): Handle conversion from
12357 dconst{1,2,m1,half}.
12358
fca132b9
UB
123592011-05-09 Uros Bizjak <ubizjak@gmail.com>
12360
12361 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
12362 for !flag_prefer_avx128.
12363 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
12364
e4c03378
EB
123652011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12366
12367 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
12368 (fold_ternary_loc): Use expr_location_or.
12369
805d6a75
L
123702011-05-09 H.J. Lu <hongjiu.lu@intel.com>
12371
12372 PR debug/48853
12373 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
12374 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
12375 Pmode and mem_mode is not VOIDmode.
12376
e4c03378 123772011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 12378
e4c03378
EB
12379 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
12380 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 12381
51e7f377
UB
123822011-05-09 Uros Bizjak <ubizjak@gmail.com>
12383
12384 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
12385 (const_pow2_1_to_8_operand): Ditto.
12386 (const_pow2_1_to_128_operand): Ditto.
12387 (const_pow2_1_to_32768_operand): Ditto.
12388 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
12389 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
12390 in insn constraint to check integer value of operand 3.
12391 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
12392
12393 (PINSR_MODE): New mode iterator.
12394 (sse2p4_1): New mode attribute.
12395 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
12396 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
12397 iterator. Use const_int_operand instead of
12398 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
12399 exact_log2 in insn constraint to check integer value of operand 3.
12400
124012011-05-09 Uros Bizjak <ubizjak@gmail.com>
12402
12403 * config/i386/sse.md (blendbits): Remove mode attribute.
12404 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12405 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12406 Check integer value of operand 3 in insn constraint.
12407
0ca8de87
RG
124082011-05-09 Richard Guenther <rguenther@suse.de>
12409
12410 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
12411 for diagnostics.
12412 (lto_symtab_merge): Likewise. Do not register types here.
12413 (lto_symtab_merge_decls_2): Likewise.
12414 (lto_symtab_merge_decls_1): Likewise.
12415 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
12416 * gimple.c (enum gtc_mode): Declare.
12417 (gimple_types_compatible_p): Make static.
12418
a9e6994a
AK
124192011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12420
12421 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
12422 temporary register to match Pmode.
12423
fb55d62e
UB
124242011-05-09 Uros Bizjak <ubizjak@gmail.com>
12425
12426 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
12427 and *vec_concatv4si_1_avx.
12428
eb1485a6
UB
124292011-05-09 Uros Bizjak <ubizjak@gmail.com>
12430
12431 PR rtl-optimization/48927
12432 * ira-conflicts.c (commutative_constraint_p): Use
12433 recog_data.alternative_enabled_p to disable alternatives where
12434 "enabled" attribute is false.
12435 (get_dup_num): Ditto.
12436 * ira-lives.c (single_reg_class): Ditto.
12437 (ira_implicitly_set_insn_hard_regs): Ditto.
12438
c46d001a
EB
124392011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12440
12441 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
12442 (dataflow_set_preserve_mem_locs): Likewise.
12443
124442011-05-09 Philipp Thomas <pth@suse.de>
12445
6d9e7c41
PT
12446 * config/mep/mep.c (mep_validate_vliw): Syntax description
12447 should not be translated.
12448
d371df6f
JM
124492011-05-09 Joseph Myers <joseph@codesourcery.com>
12450
12451 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
12452 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 12453 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
12454 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
12455 MIPS_ARCH_OPTION_NATIVE): Define.
12456 * config/mips/mips.c (mips_cpu_info_table): Move contents to
12457 mips-cpus.def.
12458 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
12459 mips_parse_cpu): Remove.
12460 (mips_cpu_info_from_opt, mips_default_arch): New.
12461 (mips_handle_option): Don't assert that global structures are in
12462 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
12463 (mips_option_override): Use new variables and functions to set
eb1485a6 12464 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
12465 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
12466 definition.
12467 * config/mips/mips.opt (march=): Use ToLower and Enum.
12468 (mips): Use ToLower, Enum and Var.
12469 (mtune=): Use ToLower and Enum.
12470 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
12471
4fc07af9
JH
124722011-05-08 Jan Hubicka <jh@suse.cz>
12473
12474 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
12475 Arrange type pairs to be UID ordered.
12476 (gimple_lookup_type_leader): Make inline.
12477
2cf320a8
NC
124782011-05-09 Nick Clifton <nickc@redhat.com>
12479
61d6def5
NC
12480 PR target/48899
12481 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
12482 PROCESSOR_DEFAULT.
12483
2cf320a8
NC
12484 PR target/48897
12485 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
12486 variable 's'.
12487
4f82319d
CLT
124882011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
12489
12490 * combine.c (simplify_comparison): Abstract out parts into...
12491 (simplify_compare_const): ... new function.
12492 (try_combine): Generalize parallel arithmetic/compare combining
12493 to call simplify_compare_const() and CANONICALIZE_COMPARE().
12494
74605a11
JH
124952011-05-08 Jan Hubicka <jh@suse.cz>
12496
12497 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
12498 (cgraph_create_virtual_clone): Call hooks once virtual clone
12499 is finished.
74605a11 12500 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
12501 * ipa-cp.c (ipcp_estimate_growth): Use
12502 estimate_ipcp_clone_size_and_time.
74605a11
JH
12503 * ipa-inline-transform.c (clone_inlined_nodes): Update.
12504 * lto-cgraph.c (input_node): Update.
12505 * ipa-inline.c (recursive_inlining): Update.
12506 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
12507 (evaluate_conditions_for_known_args): Break out from ...
12508 (evaluate_conditions_for_edge): ... here.
12509 (evaluate_conditions_for_ipcp_clone): New function.
12510 (inline_node_duplication_hook): Update clone summary based
12511 on parameter map.
12512 (estimate_callee_size_and_time): Rename to ...
12513 (estimate_node_size_and_time): take NODE instead of EDGE;
12514 take POSSIBLE_TRUTHS as argument.
12515 (estimate_callee_size_and_time): Update.
12516 (estimate_ipcp_clone_size_and_time): New function.
12517 (do_estimate_edge_time): Update.
12518
5c049507
RG
125192011-05-08 Richard Guenther <rguenther@suse.de>
12520
12521 PR middle-end/48908
12522 PR middle-end/48905
12523 * expmed.c (expand_shift_1): Compute adjusted constant shift
12524 amount manually.
12525
f64c36ba
EB
125262011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12527
12528 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
12529
c461a957
EB
125302011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12531
12532 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
12533
7c74e556
JW
125342011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
12535
12536 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
12537
b4c0a884
JH
125382011-05-07 Jan Hubicka <jh@suse.cz>
12539
a9bcb3f0
EB
12540 * ipa-inline-transform.c (inline_call): Account when program size
12541 decreases.
b4c0a884 12542 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
12543 (edge_badness): Reorganize to be power 2 based; fix thinko when
12544 computing badness for negative growth; update comments to match
12545 reality; better dumps.
b4c0a884 12546
c99c0026
EB
125472011-05-07 Eric Botcazou <ebotcazou@adacore.com>
12548
12549 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
12550 type to bool and adjust comment.
12551 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
12552 (fold_mathfn_compare): Remove calls to global_bindings_p.
12553 (fold_inf_compare): Likewise.
12554 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
12555 * c-tree.h (global_bindings_p): Adjust prototype.
12556 * c-decl.c (global_bindings_p): Return bool and simplify.
12557
1400c8e5
ZD
125582011-05-07 Zdenek Dvorak <ook@ucw.cz>
12559
12560 PR tree-optimization/48837
12561 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
12562 when accumulator transformation is performed.
12563
5d0878e7
JH
125642011-05-06 Jan Hubicka <jh@suse.cz>
12565
a9bcb3f0
EB
12566 * i386.h (ix86_tune_indices): Add
12567 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 12568 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
12569 * i386.c (initial_ix86_tune_features): Add
12570 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
12571 (software_prefetching_beneficial_p): Remove predicate.
12572 (ix86_option_override_internal): Use new macro.
12573
58696ce5
JH
125742011-05-06 Jan Hubicka <jh@suse.cz>
12575
12576 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
12577
c47d0034
JH
125782011-05-06 Jan Hubicka <jh@suse.cz>
12579
12580 * cgraph.c (cgraph_add_thunk): Create real function node instead
12581 of alias node; finalize it and mark needed/reachale; arrange visibility
12582 to be right and add it into the corresponding same comdat group list.
12583 (dump_cgraph_node): Dump thunks.
12584 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
12585 cgraph_function_with_gimple_body_p,
12586 cgraph_first_function_with_gimple_body,
c47d0034
JH
12587 cgraph_next_function_with_gimple_body): New functions.
12588 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
12589 New macros.
12590 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
12591 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12592 * cgraphunit.c (cgraph_finalize_function): Only look into possible
12593 devirtualization when optimizing.
12594 (verify_cgraph_node): Verify thunks.
12595 (cgraph_analyze_function): Analyze thunks.
12596 (cgraph_mark_functions_to_output): Output thunks only in combination
12597 with function they are assigned to.
12598 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
12599 alias into normal node.
12600 (assemble_thunks): New functoin.
12601 (cgraph_expand_function): Use it.
12602 * lto-cgraph.c (lto_output_node): Stream thunks.
12603 (input_overwrite_node): Stream in thunks.
12604 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
12605 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
12606 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
12607 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
12608 (inline_analyze_function): Do not care about thunk jump functions.
12609 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
12610 * ipa-prop.c (ipa_prop_write_jump_functions): Use
12611 cgraph_function_with_gimple_body_p.
12612 * passes.c (do_per_function_toporder): Use
12613 cgraph_function_with_gimple_body_p.
c47d0034
JH
12614 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12615 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
12616 (function_called_by_processed_nodes_p): Likewise.
12617
d8f426ec
JM
126182011-05-06 Joseph Myers <joseph@codesourcery.com>
12619
12620 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
12621 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
12622 entries.
12623 (mabi=): Replace with separate entries for mabi=altivec,
12624 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
12625 mabi=ieeelongdouble and mabi=ibmlongdouble.
12626 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
12627 check for -mabi=spe without SPE ABI support here.
12628 (rs6000_handle_option): Replace OPT_mabi_ handling with
12629 OPT_mabi_altivec and OPT_mabi_spe handling.
12630
80bde45b
CC
126312011-05-06 Cary Coutant <ccoutant@google.com>
12632
12633 * dwarf2out.c (contains_subprogram_definition): New function.
12634 (should_move_die_to_comdat): Call it.
12635
a91926b9
JL
126362011-05-06 Jeff Law <law@redhat.com>
12637
12638 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
12639 remove_ctrl_stmt_and_useless_edges.
12640 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
12641 (fixup_template_block, thread_single_edge): Likewise.
12642 (mark_threaded_blocks): Use THREAD_TARGET.
12643
1fc1b66d
AM
126442011-05-06 Alan Modra <amodra@gmail.com>
12645
12646 PR target/48900
12647 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12648 const0_rtx as the arg to the dummy __tls_get_addr libcall.
12649
e194de64
UB
126502011-05-06 Uros Bizjak <ubizjak@gmail.com>
12651
12652 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
12653 constraint modifier to "r".
12654
d740dc9e
JM
126552011-05-06 Joseph Myers <joseph@codesourcery.com>
12656
12657 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
12658 fall through for OPT_mcmodel_.
12659
cab78b15
AK
126602011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12661
12662 * config/s390/s390.c (s390_asm_trampoline_template): Comment
12663 instruction sizes.
e194de64 12664 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 12665
ee6824ae
RR
126662011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12667
eb1485a6
UB
12668 PR target/47930
12669 * config/arm/arm.opt (marm): Document it.
12670 (mthumb): Reject negative variant.
ee6824ae 12671
9ef58464
UB
126722011-05-06 Uros Bizjak <ubizjak@gmail.com>
12673
12674 PR target/48898
12675 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12676 Fix typo in "ccvt" variable name.
12677
155b6176
TG
126782011-05-06 Tristan Gingold <gingold@adacore.com>
12679
12680 PR target/48895
12681 * config/vms/vms-ar.c (main): Remove cwd variable.
12682
3becc47b
JJ
126832011-05-06 Jakub Jelinek <jakub@redhat.com>
12684
12685 PR debug/48902
12686 * var-tracking.c (prepare_call_arguments): Move else before #endif.
12687
3d528853
NF
126882011-05-05 Nathan Froyd <froydnj@codesourcery.com>
12689
12690 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
12691 * gimplify.c (gimplify_switch_expr): Likewise.
12692 * omp-low.c (expand_omp_sections): Likewise.
12693 * tree-eh.c (lower_try_finally_switch): Likewise.
12694 (lower_eh_dispatch): Likewise.
12695 * tree.h (build_case_label): Declare.
12696 * tree.c (build_case_label): Define.
12697
deb5046b
JM
126982011-05-05 Jason Merrill <jason@redhat.com>
12699
12700 PR c++/40975
12701 * tree-inline.c (copy_tree_r): Use copy_statement_list.
12702 (copy_statement_list): Don't recurse.
12703 * stor-layout.c (copy_self_referential_tree_r): Don't allow
12704 STATEMENT_LIST.
12705
013c0411
JM
127062011-05-05 Joseph Myers <joseph@codesourcery.com>
12707
12708 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
12709 through from -mfpu= handling.
12710 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
12711
a0905f8b
BS
127122011-05-05 Bernd Schmidt <bernds@codesourcery.com>
12713
12714 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
12715 POST_MODIFY.
12716
fc4538e4
SE
127172011-05-05 Steve Ellcey <sje@cup.hp.com>
12718
12719 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
12720 for 11.31.
12721 (hppa[12]*-*-hpux11*): Ditto.
12722 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
12723 * config/ia64/hpux-unix2003.h: New.
12724 * config/pa/pa-hpux1131.opt: New.
12725 * config/pa/pa-hpux1131.h: New.
12726 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
12727 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 12728 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 12729
1e30c578
JJ
127302011-05-05 Jakub Jelinek <jakub@redhat.com>
12731
12732 PR debug/48853
12733 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
12734 instead of mode as 3rd argument to recursive call.
12735 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
12736 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
12737 VOIDmode.
12738 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
12739 don't give up if mode is Pmode and mem_mode is not VOIDmode.
12740 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
12741 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
12742
d19eb620
JB
127432011-05-05 Julian Brown <julian@codesourcery.com>
12744
12745 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
12746 parenthesis in D-register case.
12747
c860fe8c
JM
127482011-05-05 Joseph Myers <joseph@codesourcery.com>
12749
12750 * opt-functions.awk (var_type_struct): Handle Enum options.
12751 * optc-gen.awk: Don't check range of variables of character type.
12752 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
12753 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
12754 rs6000_sdata_name, rs6000_explicit_options): Remove.
12755 (rs6000_option_override_internal): Check for -malign-power here.
12756 Use global_options_set instead of rs6000_explicit_options.
12757 (rs6000_parse_fpu_option): Remove.
12758 (rs6000_handle_option): Access variables via opts and opts_set
12759 pointers. Use error_at and warning_at. Add fall-through
12760 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
12761 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
12762 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
12763 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
12764 here. Don't use rs6000_parse_fpu_option.
12765 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
12766 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
12767 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
12768 (mrecip=): Use Var.
12769 (mspe): Use Var and Save.
12770 (mtraceback=): Use Enum and Var.
12771 (rs6000_traceback_type): New Enum and EnumValue entries.
12772 (mfloat-gprs=): Use Enum, Var and Save.
12773 (rs6000_float_gprs): New Enum and EnumValue entries.
12774 (mlong-double-): use Var and Save.
12775 (msched-costly-dep=, minsert-sched-nops=): Use Var.
12776 (malign-): Use Enum and Var.
12777 (rs6000_alignment_flags): New Enum and EnumValue entries.
12778 (mfpu=): Use Enum.
12779 (fpu_type_t): New Enum and EnumValue entries.
12780 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12781 global_options_set instead of rs6000_explicit_options.
12782 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12783 global_options_set instead of rs6000_explicit_options.
12784 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12785 global_options_set instead of rs6000_explicit_options.
12786 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12787 global_options_set instead of rs6000_explicit_options.
12788 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
12789 global_options_set instead of rs6000_explicit_options.
12790 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12791 global_options_set instead of rs6000_explicit_options.
12792 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
12793 definition.
12794 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12795 global_options_set instead of rs6000_explicit_options.
12796 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
12797 (rs6000_cmodel): New Enum and EnumValue entries.
12798 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12799 global_options_set instead of rs6000_explicit_options.
12800 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
12801 (mtls-size=): Use Enum and Var.
12802 (rs6000_tls_size): New Enum and EnumValue entries.
12803
0691dde9
MM
128042011-05-05 Michael Matz <matz@suse.de>
12805
12806 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
12807 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
12808 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
12809 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
12810 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
12811 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
12812 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
12813 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
12814 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
12815 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
12816 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
12817 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
12818 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
12819 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
12820 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
12821 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
12822
86529a49
RG
128232011-05-05 Richard Guenther <rguenther@suse.de>
12824
12825 * expmed.c (expand_variable_shift): Rename to ...
12826 (expand_shift_1): ... this. Take an expanded shift amount.
12827 For rotates recurse directly not building trees for the shift amount.
12828 (expand_variable_shift): Wrap around expand_shift_1.
12829 (expand_shift): Adjust.
12830
d0228c2e
JJ
128312011-05-05 Jakub Jelinek <jakub@redhat.com>
12832
12833 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
12834
907a08d9
EB
128352011-05-05 Eric Botcazou <ebotcazou@adacore.com>
12836
12837 * tree.h (get_pending_sizes): Remove prototype.
12838 (put_pending_size): Likewise.
12839 (put_pending_sizes): Likewise.
12840 * stor-layout.c (pending_sizes): Delete.
12841 (get_pending_sizes): Likewise.
12842 (put_pending_size): Likewise.
12843 (put_pending_sizes): Likewise.
12844 (variable_size): Do not call put_pending_size and tidy up.
12845 * function.h (struct function): Remove dont_save_pending_sizes_p.
12846 * lto-streamer-in.c (input_function): Do not stream it.
12847 * lto-streamer-out.c (output_function): Likewise.
12848 * tree-inline.c (initialize_cfun): Do not copy it.
12849 * c-decl.c (store_parm_decls): Do not set it.
12850 * omp-low.c (create_task_copyfn): Likewise.
12851 * tree-optimize.c (tree_rest_of_compilation): Likewise.
12852
386d9c57
UB
128532011-05-05 Uros Bizjak <ubizjak@gmail.com>
12854
12855 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
12856 conditions.
12857 (*movdf_internal): Ditto.
12858 (*movdf_internal_nointeger): Ditto.
12859 (*movsf_internal): Ditto.
12860
a04a722b
JM
128612011-05-05 Joseph Myers <joseph@codesourcery.com>
12862
12863 * c-decl.c (finish_decl): Don't call get_pending_sizes.
12864 (grokparm): Add parameter expr. Pass it to grokdeclarator.
12865 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
12866 (c_variable_size): Remove.
12867 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
12868 call put_pending_sizes.
12869 (get_parm_info): Add parameter expr. Use it to set
12870 arg_info->pending_sizes.
12871 (store_parm_decls): Use arg_info->pending_sizes instead or calling
12872 get_pending_sizes.
12873 * c-parser.c (c_parser_parms_declarator): Update call to
12874 c_parser_parms_list_declarator.
12875 (c_parser_parms_list_declarator): Take parameter expr. Update
12876 call to push_parm_decl. Update recursive call. Don't call
12877 get_pending_sizes. Update calls to get_parm_info.
12878 (c_parser_objc_method_definition): Update calls to
12879 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 12880 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
12881 (c_parser_objc_method_decl): Add parameter expr. Update call to
12882 grokparm.
386d9c57 12883 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
12884 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
12885 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
12886
c92a6f97
MH
128872011-05-05 Michael Hope <michael.hope@linaro.org>
12888
386d9c57
UB
12889 PR pch/45979
12890 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
12891 __ARM_EABI__ hosts.
c92a6f97 12892
07ea0048
UW
128932011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12894
12895 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
12896 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
12897 (spu_output_mi_thunk): New function.
12898
d634bfa1
RO
128992011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12900
12901 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
12902 targetm.asm_out.print_operand.
12903 * config/sol2.c: Include target.h.
12904
40fda55b
JH
129052011-05-04 Jan Hubicka <jh@suse.cz>
12906
12907 * ipa-inline.c (reset_edge_caches): New function.
12908 (update_caller_keys): Add check_inlinablity_for; do not
12909 reset edge caches; remove now unnecesary loop.
386d9c57 12910 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
12911 (update_all_callee_keys): Likewise.
12912 (inline_small_functions): Sanity check cache; update code
12913 recomputing it.
12914
0360f70d
BS
129152011-05-04 Bernd Schmidt <bernds@codesourcery.com>
12916
12917 PR rtl-optimization/47612
12918 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
12919 as the last insn of the sequence to be moved.
12920
7a994646
TB
129212011-05-04 Tobias Burnus <burnus@net-b.de>
12922
12923 PR fortran/48864
12924 * doc/invoke.texi (Ofast): Document that it
12925 enables Fortran's -fno-protect-parens.
12926
7a2f7208
UB
129272011-05-04 Uros Bizjak <ubizjak@gmail.com>
12928
12929 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
12930
a2d42931
EB
129312011-05-04 Eric Botcazou <ebotcazou@adacore.com>
12932
12933 * stor-layout.c (variable_size): Do not issue errors.
12934
f81b1a3d
RG
129352011-05-04 Richard Guenther <rguenther@suse.de>
12936
12937 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
12938 for array-ref indices.
12939 (tree_coverage_counter_addr): Likewise.
12940 (build_fn_info_type): Use size_int for index types.
12941 (build_gcov_info): Likewise.
12942
c62c040f
RG
129432011-05-04 Richard Guenther <rguenther@suse.de>
12944
12945 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
12946 to build_int_cst.
12947 * c-typeck.c (really_start_incremental_init): Use bitsize_int
12948 for constructor indices.
12949 (push_init_level): Likewise.
12950
1e3287d0
RG
129512011-05-04 Richard Guenther <rguenther@suse.de>
12952
12953 * explow.c (promote_mode): Move variable declarations before code.
12954
6c32445b
NF
129552011-05-04 Nathan Froyd <froydnj@codesourcery.com>
12956
12957 * tree.h (build_function_type_array): Declare.
12958 (build_varargs_function_type_array): Declare.
12959 (build_function_type_vec, build_varargs_function_type_vec): Define.
12960 * tree.c (build_function_type_array_1): New function.
12961 (build_function_type_array): New function.
12962 (build_varargs_function_type_array): New function.
12963
fdabf269
RS
129642011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
12965
12966 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
12967 before setting STMT_VINFO_TYPE.
12968
a207915a
UW
129692011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12970
12971 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
12972 instead of spu_pass_by_reference.
12973
5e617be8
AK
129742011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12975
12976 * calls.c (emit_library_call_value_1): Invoke
12977 promote_function_mode hook on libcall arguments.
12978 * explow.c (promote_function_mode, promote_mode): Handle TYPE
12979 argument being NULL.
12980 * targhooks.c (default_promote_function_mode): Lisewise.
12981 * config/s390/s390.c (s390_promote_function_mode): Likewise.
12982 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
12983
12984 * doc/tm.texi: Document that TYPE argument might be NULL.
12985
486d04be
SH
129862011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12987
12988 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
12989
9b19b026
SH
129902011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12991
12992 From Bernd Schmidt
12993 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
12994
502bc3df
RO
129952011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12996
12997 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
12998 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
12999 Move ...
13000 * mips-tfile.c: ... here.
13001 Don't include coretypes.h, tm.h, filenames.h.
13002 (saber_stop): Remove definition and all calls.
13003 [__SABER__]: Remove.
13004 (__LINE__): Remove default.
13005 (Size_t, Ptrdiff_t): Remove definitions.
13006 Replace by size_t, ptrdiff_t.
13007 [!MIPS_DEBUGGING_INFO]: Remove.
13008 (SHASH_SIZE, THASH_SIZE): Remove defaults.
13009 (progname): Add const.
13010 (STATIC): Remove.
13011 Replace all uses by static.
13012 (ALIGN_SYMTABLE_OFFSET): Remove default.
13013 * mips-tdump.c: Don't include coretypes.h, tm.h.
13014 Remove !MIPS_IS_STAB guard.
13015 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
13016 $(TM_H), filenames.h dependencies.
13017 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
13018
991eb6ef
SH
130192011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13020
13021 From Jie Zhang
13022 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
13023 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
13024
420ccc84
SH
130252011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13026
13027 From Bernd Schmidt
13028 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
13029 account and save/restore RETS.
13030 (PROFILE_BEFORE_PROLOGUE): Define.
13031 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
13032 the push insn to use predecrement.
13033
9f8d69ee
SH
130342011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
13035
13036 From Jie Zhang
13037 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
13038
662c03f4
NC
130392011-05-04 Nick Clifton <nickc@redhat.com>
13040
13041 * config/mn10300/mn10300.c: Include cfgloop.h.
13042 (DUMP): New macro.
13043 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
13044 Lcc or a FLcc insn into the instruction stream.
13045 (mn10300_block_contains_call): New function. Returns true if the
13046 given basic block contains a CALL insn.
13047 (mn10300_loop_contains_call_insn): New function. Returns true if
13048 the given loop contains a CALL insn.
13049 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
13050 to use the SETLB and Lcc or FLcc insns.
13051 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
13052 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
13053 * config/mn10300/mn10300.opt (msetlb): New option. Used to
13054 disable the SETLB optimization.
13055 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
13056 __SETLB__ or __NO_SETLB__.
13057 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
13058 (movsf_internal): Handle MDR register.
13059 (cmpsi): Make visible.
13060 (setlb): New pattern.
13061 (Lcc): New pattern.
13062 (FLcc): New pattern.
13063
843b6915
UB
130642011-05-04 Uros Bizjak <ubizjak@gmail.com>
13065
13066 PR target/48860
13067 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
13068 for reg<->xmm moves.
13069 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
13070 (vec_concatv2di_rex64_sse): Ditto.
13071 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
13072 (*vec_extractv2di_1_rex64): Ditto.
13073
13074 Revert:
13075 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13076
13077 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13078 reg<->xmm moves.
13079 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
13080
d35936ab
RG
130812011-05-04 Richard Guenther <rguenther@suse.de>
13082
13083 * tree.h (int_const_binop): Remove notrunc argument.
13084 * fold-const.c (int_const_binop): Remove notrunc argument. Always
13085 create integer constants that are properly truncated.
13086 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
13087 (const_binop): Remove zero notrunc argument to int_const_binop.
13088 (size_binop_loc): Likewise.
13089 (fold_div_compare): Likewise.
13090 (maybe_canonicalize_comparison_1): Likewise.
13091 (fold_comparison): Likewise.
13092 (fold_binary_loc): Likewise.
13093 (multiple_of_p): Likewise.
13094 * expr.c (store_constructor): Likewise.
13095 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13096 (maybe_fold_stmt_addition): Likewise.
13097 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
13098 * stor-layout.c (layout_type): Likewise.
13099 * tree-data-ref.c (tree_fold_divides_p): Likewise.
13100 * tree-sra.c (build_ref_for_offset): Likewise.
13101 (build_user_friendly_ref_for_offset): Likewise.
13102 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
13103 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13104 * tree-ssa-loop-niter.c (inverse): Likewise.
13105 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13106 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
13107 * tree-switch-conversion.c (check_range): Likewise.
13108 (build_constructors): Likewise.
13109 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
13110 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
13111 (extract_range_from_assert): Likewise.
13112 (vrp_int_const_binop): Likewise.
13113 (extract_range_from_binary_expr): Likewise.
13114 (extract_range_from_unary_expr): Likewise.
13115 (check_array_ref): Likewise.
13116 (find_case_label_range): Likewise.
13117 (simplify_div_or_mod_using_ranges): Likewise.
13118 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
13119 comparing case labels for merging.
13120
8992c063
MW
131212011-05-03 Mark Wielaard <mjw@redhat.com>
13122
13123 * dwarf2out.c (debug_str_hash_forced): Removed.
13124 (gen_label_for_indirect_string): Removed.
13125 (get_debug_string_label): Removed.
13126 (AT_string_form): Generate label directly.
13127 (output_indirect_string): Test indirect_string_node for
13128 DW_FORM_strp instead of checking label and refcount.
13129 (prune_indirect_string): Removed.
13130 (prune_unused_types): Don't check debug_str_hash_forced or
13131 call prune_indirect_string.
13132
4868e6ea
AO
131332011-05-04 Alexandre Oliva <aoliva@redhat.com>
13134
13135 PR other/48093
13136 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
13137
01a5c0ab
AO
131382011-05-04 Alexandre Oliva <aoliva@redhat.com>
13139
13140 PR debug/47994
13141 PR debug/47919
13142 * combine.c (try_combine): Skip debug insns at m_split tests.
13143
6ac00218
MW
131442011-04-26 Mark Wielaard <mjw@redhat.com>
13145
13146 PR42288
13147 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
13148 when info_section_emitted.
13149
3af42a7b
JM
131502011-05-03 Joseph Myers <joseph@codesourcery.com>
13151
13152 * config/mips/mips-opts.h: New.
13153 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
13154 to mips-opts.h.
13155 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
13156 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
13157 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
13158 via opts pointer.
13159 * config/mips/mips.h (enum mips_code_readable_setting): Move to
13160 mips-opts.h.
13161 (mips_abi, mips_code_readable): Don't declare.
843b6915 13162 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
13163 (mabi=): Use Enum and Var.
13164 (mips_abi): New Enum and EnumValue entries.
13165 (mcode-readable=): Use Enum and Var.
13166 (mips_code_readable_setting): New Enum and EnumValue entries.
13167 (mr10k-cache-barrier=): Use Enum and Var.
13168 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
13169
1cb1a99f
JH
131702011-05-03 Jan Hubicka <jh@suse.cz>
13171
13172 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
13173 replace hash by pointer map.
13174 (cgraph_node_set_element_def, cgraph_node_set_element,
13175 const_cgraph_node_set_element, varpool_node_set_element_def,
13176 varpool_node_set_element, const_varpool_node_set_element): Remove.
13177 (free_cgraph_node_set, free_varpool_node_set): New function.
13178 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
13179 * tree-emutls.c: Free varpool node set.
13180 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
13181 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13182 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
13183 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13184 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
13185 Move here from ipa.c; implement using pointer_map
13186 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
13187 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13188 debug_cgraph_node_set, varpool_node_set_new,
13189 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13190 dump_varpool_node_set, debug_varpool_node_set):
13191 Move to ipa-uitls.c.
13192 * passes.c (ipa_write_summaries): Update.
13193
7f31f4db
SH
131942011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13195
7a2f7208
UB
13196 From Mike Frysinger:
13197 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
13198 bf542/bf544/bf547/bf548/bf549.
7f31f4db 13199
b70fce6d
UB
132002011-05-03 Uros Bizjak <ubizjak@gmail.com>
13201
13202 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
13203
265b1d82
SH
132042011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13205
13206 From Bernd Schmidt:
13207 * config/bfin/bfin.md (MOVCC): New mode_macro.
13208 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
13209 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
13210 comments from generated assembly.
13211
f0b568f3
SH
132122011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13213
13214 From Bernd Schmidt
13215 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
13216 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
13217 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
13218 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
13219 * config/bfin/lib1funcs.asm (___muldi3): New function.
13220
2c67cf6e
NF
132212011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13222
13223 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
13224 build_function_type_list instead of build_function_type.
13225 Rearrange initialization of `args' to do so.
13226
f9ac28ad
NF
132272011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13228
13229 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
13230 instead of build_function_type.
13231
22b8798c
NF
132322011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13233
13234 * config/rs6000/rs6000.c (spe_init_builtins): Call
13235 build_function_type_list instead of build_function_type.
13236 (paired_init_builtins, altivec_init_builtins): Likewise.
13237 (builtin_function_type): Likewise.
13238
4cb44528
NF
132392011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13240
13241 * config/sh/sh.c (sh_media_init_builtins): Call
13242 build_function_type_list instead of build_function_type.
13243
4c203a6a
NF
132442011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13245
13246 * config/sparc/sparc.c (sparc_file_end): Call
13247 build_function_type_list instead of build_function_type.
13248
d6a3d62b
NF
132492011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13250
13251 * config/alpha/alpha.c (alpha_init_builtins): Call
13252 build_function_type_list instead of build_function_type.
13253
de530b86
NF
132542011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13255
13256 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
13257 build_function_type_list instead of build_function_type.
13258
baeec5f2
NF
132592011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13260
13261 * config/iq2000/i2000.c (iq2000_init_builtins): Call
13262 build_function_type_list instead of build_function_type.
13263 Delete `endlink' variable.
13264
c19afe52
NF
132652011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13266
13267 * config/avr/avr.c (avr_init_builtins): Call
13268 build_function_type_list instead of build_function_type.
13269
a341df0a
NF
132702011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13271
13272 * config/picochip/picochip.c (picochip_init_builtins): Call
13273 build_function_type_list instead of build_function_type.
13274 Delete `endlink' variable.
13275
2102b1e1
NF
132762011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13277
13278 * config/bfin/bfin.c (bfin_init_builtins): Call
13279 build_function_type_list instead of build_function_type.
13280
9f111209
SH
132812011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13282
13283 From Bernd Schmidt
13284 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
13285 that's not CONST_INT. Seemingly redundant check is due to PR39768.
13286
7071d064
SH
132872011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13288
13289 From Jie Zhang:
13290 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
13291 libbffastfp overrides libgcc when -mfast-fp.
13292
748f7574 132932011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
13294
13295 Originally from Bernd Schmidt
13296 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
13297 * config/bfin/bfin.c (override_options): Test it and error if
13298 TARGET_FDPIC.
13299
1a3a9152
SH
133002011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13301
13302 Originally From Bernd Schmidt
13303 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
13304 FD-PIC.
13305
7134c090
JL
133062011-05-03 Jeff Law <law@redhat.com>
13307
13308 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
13309 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
13310 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
13311 than accessing AUX field directly. Free the AUX field before
13312 clearing it.
7134c090
JL
13313 (thread_block, thread_through_loop_header): Likewise.
13314 (thread_single_edge, mark_threaded_blocks): Likewise.
13315 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
13316 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 13317
2c7eebae
BS
133182011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13319
13320 * function.c (init_function_start): Call decide_function_section.
13321 * varasm.c (decide_function_section): New function.
13322 (assemble_start_function): When not using
13323 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
13324 or first_function_block_is_cold.
13325 * rtl.h (decide_function_section): Declare.
13326
17038fcf
JJ
133272011-05-03 Uros Bizjak <ubizjak@gmail.com>
13328 Jakub Jelinek <jakub@redhat.com>
13329
13330 PR target/48774
13331 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
13332 only succeed if req_mode is the same as set_mode.
13333
3810076b
BS
133342011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13335
13336 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
13337 * genemit.c (gen_exp): Handle RETURN.
13338 * emit-rtl.c (verify_rtx_sharing): Likewise.
13339 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
13340 * rtl.c (copy_rtx): RETURN is shared.
13341 * rtl.h (enum global_rtl_index): Add GR_RETURN.
13342 (ret_rtx): New.
13343 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
13344 * config/s390/s390.c (s390_emit_epilogue): Likewise.
13345 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
13346 * config/cris/cris.c (cris_expand_return): Likewise.
13347 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
13348 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
13349 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
13350 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
13351 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
13352 Likewise.
13353 * config/v850/v850.c (expand_epilogue): Likewise.
13354 * config/bfin/bfin.c (bfin_expand_call): Likewise.
13355 * config/arm/arm.md (epilogue): Likewise.
13356 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
13357 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
13358 variable to ret_reg.
13359
9efdb4ad
RG
133602011-05-03 Richard Guenther <rguenther@suse.de>
13361
13362 PR lto/48846
13363 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
13364 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
13365 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
13366
60a45536
RG
133672011-05-03 Richard Guenther <rguenther@suse.de>
13368
13369 * c-decl.c (grokdeclarator): Instead of looking at
13370 TREE_OVERFLOW check if the constant fits in the index type.
13371
3188ed59
RS
133722011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13373
13374 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
13375 (vec_store_lanes<mode><mode>): Likewise.
13376
272c6793
RS
133772011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13378
13379 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
13380 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
13381 convert_optab_index values.
13382 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
13383 * genopinit.c (optabs): Initialize the new optabs.
13384 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
13385 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
13386 (expand_STORE_LANES): New functions.
13387 * tree.h (build_array_type_nelts): Declare.
13388 * tree.c (build_array_type_nelts): New function.
13389 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
13390 (vect_model_load_cost): Likewise.
13391 (vect_store_lanes_supported, vect_load_lanes_supported)
13392 (vect_record_strided_load_vectors): Declare.
13393 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
13394 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
13395 (vect_transform_strided_load): Split out statement recording into...
13396 (vect_record_strided_load_vectors): ...this new function.
13397 * tree-vect-stmts.c (create_vector_array, read_vector_array)
13398 (write_vector_array, create_array_ref): New functions.
13399 (vect_model_store_cost): Add store_lanes_p argument.
13400 (vect_model_load_cost): Add load_lanes_p argument.
13401 (vectorizable_store): Try to use store-lanes functions for
13402 interleaved stores.
13403 (vectorizable_load): Likewise load-lanes and loads.
13404 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
13405 to vect_model_store_cost.
13406 (vect_build_slp_tree): Likewise vect_model_load_cost.
13407
0f6d54f7
RS
134082011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13409
13410 * hooks.h (hook_bool_mode_uhwi_false): Declare.
13411 * hooks.c (hook_bool_mode_uhwi_false): New function.
13412 * target.def (array_mode_supported_p): New hook.
13413 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
13414 * doc/tm.texi: Regenerate.
13415 * stor-layout.c (mode_for_array): New function.
13416 (layout_type): Use it.
13417 * config/arm/arm.c (arm_array_mode_supported_p): New function.
13418 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
13419
b15eacc7
EB
134202011-05-03 Eric Botcazou <ebotcazou@adacore.com>
13421
13422 PR target/48723
13423 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
13424 for -fstack-check if the size to allocate is negative.
13425
575bfb00
LC
134262011-05-02 Lawrence Crowl <crowl@google.com>
13427
13428 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
13429 (timevar_cond_start): New for starting a timer only when it is not
13430 already running.
13431 (timevar_cond_stop): New for stopping a timer when it was not already
13432 running.
13433
13434 * timevar.c (timevar_stop): Enable start/stop timers to start again.
13435 (timevar_cond_start): New as above.
13436 (timevar_cond_stop): New as above.
13437
13438 * timevar.def: Add start/stop timers for compiler phases,
13439 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
13440 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
13441 and TV_PHASE_FINALIZE.
13442 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
13443 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
13444 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
13445 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
13446 Make unused TV_OVERLOAD into a start/stop timer.
13447
13448 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
13449 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
13450 to indicate that they are start/stop timers.
13451
13452 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
13453 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
13454 Move initialization to do_compile.
13455 (do_compile): Add initialization from above.
13456 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
13457
13458 * c-decl.c (c_write_global_declarations): Add start/stop of
13459 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
13460
13461 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
13462 or TV_PARSE_INLINE, as appropriate.
13463 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
13464 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
13465
3533b943
JM
134662011-05-02 Jason Merrill <jason@redhat.com>
13467
13468 PR c++/40975
13469 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
13470
2609a0ce
SM
134712011-05-02 Simon Martin <simartin@users.sourceforge.net>
13472
13473 PR c/35445
13474 * c-decl.c (finish_decl): Only create a composite if the types are
13475 compatible.
13476
6b0e4cbb
JM
134772011-05-02 Joseph Myers <joseph@codesourcery.com>
13478
13479 * config/fr30/fr30-protos.h (Mmode): Don't define.
13480 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
13481 definition where used.
13482 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
13483 define. Expand definitions where used.
13484 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
13485 Expand definitions where used.
13486 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
13487 rx_function_arg, rx_function_arg_advance,
13488 rx_function_arg_boundary): Expand definitions of those macros.
13489 * config/v850/v850-protos.h (Mmode): Don't define. Expand
13490 definition where used.
13491
4e938ce6
UB
134922011-05-02 Uros Bizjak <ubizjak@gmail.com>
13493
13494 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13495 reg<->xmm moves.
13496 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
13497 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
13498 with *movv2sf_internal_rex64_avx.
13499 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
13500 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
13501 Use %v prefix in insn mnemonic to handle TARGET_AVX.
13502 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
13503 "vex" in "prefix" attribute calculation.
13504 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
13505
36019c19
SH
135062011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
13507
7a2f7208
UB
13508 PR target/47951
13509 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
13510 inputs match the output.
36019c19 13511
f69ea688
AS
135122011-05-02 Andreas Schwab <schwab@linux-m68k.org>
13513
13514 PR target/47955
13515 * config/m68k/m68k.c (m68k_expand_prologue): Set
13516 current_function_static_stack_size.
13517
c33406f5
JH
135182011-05-02 Jan Hubicka <jh@suse.cz>
13519
13520 * lto-streamer.c (lto_streamer_cache_insert_1,
13521 lto_streamer_cache_lookup, lto_streamer_cache_create,
13522 lto_streamer_cache_delete): Use pointer map instead of hashtable.
13523 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
13524
47c94d21
JM
135252011-05-02 Joseph Myers <joseph@codesourcery.com>
13526
13527 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
13528 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
13529 config/m68k/t-opts: New files.
13530 * config/m68k/m68k-tables.opt: New file (generated).
13531 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
13532 extra_options and m68k/t-opts to tmake_file.
13533 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
13534 (all_isas): Initialize using m68k-isas.def.
13535 (all_microarchs): Initialize using m68k-microarchs.def.
13536 (m68k_find_selection): Remove.
13537 (m68k_handle_option): Don't assert that global structures are in
13538 use. Use error_at. Access variables via opts pointer. Don't
13539 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
13540 directly for -m68020-40 and -m68020-60.
13541 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
13542 m68k_tune_entry here.
13543 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
13544 to m68k-opts.h.
13545 (m68k_library_id_string): Remove declaration.
4e938ce6 13546 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
13547 (m68k_library_id_string): New Variable.
13548 (march=, mcpu=, mtune=): Use Enum and Var.
13549
e562bf36
RG
135502011-05-02 Richard Guenther <rguenther@suse.de>
13551
13552 * varasm.c (output_constructor_regular_field): Compute zero-based
13553 index with double-ints. Make sure to ICE instead of producing
13554 wrong code.
13555 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
13556 in asserts. Properly use a signed type.
13557
6bec6c98
UB
135582011-05-02 Uros Bizjak <ubizjak@gmail.com>
13559
13560 * config/i386/sse.md (V): New mode iterator.
13561 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
13562 TARGET_SSE2.
13563 (V_256): Rename from AVX256MODE.
13564 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
13565 condition to all users.
13566 (VF1): Ditto.
13567 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
13568 condition to all users.
13569 (VF_128): Make V4SF mode unconditional.
13570 (VF_256): Rename from AVX256MODEF2P.
13571 (VI4F_128): Rename from SSEMODE4S.
13572 (VI8F_128): Rename from SSEMODE2D.
13573 (VI4F_256): Rename from AVX256MODE8P.
13574 (VI8F_256): Rename from AVX256MODE4P.
13575 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
13576 (ssescalarmodesuffix): Remove SF and DF modes.
13577 (SSEMODE124): Remove.
13578 (SSEMODE1248): Ditto.
13579 (SSEMODEF2P): Ditto.
13580 (AVXMODEF2P): Ditto.
13581 (AVXMODEFDP): Ditto.
13582 (AVXMODEFSP): Ditto.
13583 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
13584 unconditional.
13585 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
13586 unconditional.
13587 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
13588 xop_pcmov_<mode>256. Use V mode iterator.
13589
13590 Adjust RTX patterns globally for renamed mode attributes.
13591
2dfdcb4b
UW
135922011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13593
13594 * haifa-sched.c (sched_emit_insn): Emit insn before first
13595 non-scheduled insn. Inform back-end about new insn. Add
13596 new insn to scheduled_insns list.
13597
90bc4623
RG
135982011-05-02 Richard Guenther <rguenther@suse.de>
13599
13600 PR tree-optimization/48822
13601 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
13602 (process_scc): Indicate which iteration we start.
13603
bc0fe8cb
JH
136042011-05-02 Jan Hubicka <jh@suse.cz>
13605
13606 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
13607 (lto_section_overrun): New.
13608 * lto-section-out.c (append_block): Rename to ...
13609 (lto_append_block): ... this one; export.
13610 (lto_output_1_stream): Move lto lto-streamer.h
13611 (lto_output_data_stream): Update.
13612 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
13613 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
13614 functions.
13615
f070a9d1
RG
136162011-05-02 Richard Guenther <rguenther@suse.de>
13617
13618 * tree.c (tree_code_counts): New global array.
13619 (record_node_allocation_statistics): Count individual tree codes.
13620 (dump_tree_statistics): Dump individual code stats.
13621
09dfe187
JH
136222011-05-01 Jan Hubicka <jh@suse.cz>
13623
13624 * ipa-inline.c (caller_growth_limits): Fix thinko when
13625 looking for largest stack frame.
13626 * ipa-inline.h (dump_inline_summary): Declare.
13627 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
13628 on stack usage.
13629 (dump_inline_summary): Export.
13630 (debug_inline_summary): Declare as DEBUG_FUNCTION.
13631
6f76a878
AS
136322011-05-01 Anatoly Sokolov <aesok@post.ru>
13633
13634 * reginfo.c (memory_move_cost): Change rclass argument type form
13635 'enum reg_class' to reg_class_t.
13636 * reload.h (memory_move_cost): Update prototype.
13637 * postreload.c reload_cse_simplify_set): Change type dclass var to
13638 reg_class_t.
13639 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
13640 Update prototype.
13641 (ira_allocate_and_set_costs): Change aclass argument type form
13642 'enum reg_class' to reg_class_t.
6bec6c98 13643 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
13644 Change aclass argument type to reg_class_t.
13645 (update_conflict_hard_reg_costs): Change type aclass and pref vars
13646 to reg_class_t.
13647 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
13648 memory_move_cost call.
13649
13650 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
13651 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
13652 Change type tmp var to reg_class_t.
13653
9a4ac625
JH
136542011-04-30 Jan Hubicka <jh@suse.cz>
13655
13656 * ipa-inline.c (can_inline_edge_p): Disregard limits when
13657 inlining into function with flatten attribute.
13658 (want_inline_small_function_p): Be more realistic about inlining
13659 cold calls where callee size grows.
13660
dd8352ee
JH
136612011-04-30 Jan Hubicka <jh@suse.cz>
13662
13663 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
13664 flags.
13665
46e43d2b
AS
136662011-04-30 Anatoly Sokolov <aesok@post.ru>
13667
13668 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13669 PRINT_OPERAND_PUNCT_VALID_P): Remove.
13670 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
13671 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
13672 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13673 (print_operand): Rename to...
13674 (sparc_print_operand): ...this. Make static. Adjust
13675 sparc_print_operand function call.
13676 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
13677 functions.
13678
ecb62563
JH
136792011-04-30 Jan Hubicka <jh@suse.cz>
13680
6bec6c98 13681 PR middle-end/48752
ecb62563
JH
13682 * ipa-inline.c (early_inliner): Disable when doing late
13683 addition of function.
13684
edb9b69e
JJ
136852011-04-30 Jakub Jelinek <jakub@redhat.com>
13686
be80a87e
JJ
13687 * dwarf2out.c (get_address_mode): New inline.
13688 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
13689 if not dwarf_strict emit
13690 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
13691 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
13692 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
13693 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
13694 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
13695 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
13696 mem_loc_descriptor callers.
13697 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13698 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
13699 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
13700 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
13701 (base_types): New variable.
13702 (get_base_type_offset, calc_base_type_die_sizes,
13703 base_type_for_mode, mark_base_types, base_type_cmp,
13704 move_marked_base_types): New functions.
13705 (calc_die_sizes): Assert that die_offset is 0 or equal to
13706 next_die_offset.
13707 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
13708 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
13709 callers. If not dwarf_strict, call mem_loc_descriptor even for
13710 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
13711 (gen_subprogram_die): Don't give up on call site parameters
13712 with non-integral or large integral modes. Adjust
13713 mem_loc_descriptor callers.
13714 (prune_unused_types): Call prune_unused_types_mark on base_types
13715 vector entries.
13716 (resolve_addr): Call mark_base_types.
13717 (dwarf2out_finish): Call move_marked_base_types.
13718
edb9b69e
JJ
13719 PR tree-optimization/48809
13720 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
13721 type.
13722 (gen_inbound_check): Don't compute index_expr - range_min in utype
13723 again, instead reuse SSA_NAME initialized in build_arrays.
13724 Remove two useless gsi_for_stmt calls.
13725
a6545a3d
JL
137262011-04-29 Jeff Law <law@redhat.com>
13727
13728 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
13729
af8bca3c
MJ
137302011-04-29 Martin Jambor <mjambor@suse.cz>
13731
13732 * cgraph.h (cgraph_postorder): Remove declaration.
13733 * ipa-utils.h (ipa_free_postorder_info): Declare.
13734 (ipa_reverse_postorder): Likewise.
13735 * cgraphunit.c: Include ipa-utils.h.
13736 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
13737 * ipa-inline.c: Include ipa-utils.h.
13738 (ipa_inline): Update call to ipa_reverse_postorder.
13739 * ipa-pure-const.c (propagate_pure_const): Update call to
13740 ipa_reduced_postorder and ipa_print_order. Call
13741 ipa_free_postorder_info to clean up.
13742 (propagate_nothrow): Likewise.
13743 * ipa-reference.c (propagate): Removed a useless call to
13744 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
13745 and ipa_print_order. Call ipa_free_postorder_info to clean up.
13746 * ipa.c: Include ipa-utils.h.
13747 (ipa_profile): Update call to ipa_reverse_postorder.
13748 (cgraph_postorder): Moved to...
13749 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
13750 (ipa_utils_print_order): Renamed to ipa_print_order.
13751 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
13752 comments.
13753 (ipa_free_postorder_info): New function.
13754 * passes.c: Include ipa-utils.h.
13755 (do_per_function_toporder): Update call to ipa_reverse_postorder.
13756 (ipa_write_summaries): Likewise.
13757 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
13758 (cgraphunit.o): Likewise.
13759 (ipa.o): Likewise.
13760 (ipa-inline.o): Likewise.
13761
b15c64ee
JH
137622011-04-29 Jan Hubicka <jh@suse.cz>
13763
13764 * gcc.dg/tree-ssa/inline-10.c: New testcase.
13765 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
13766 * ipa-inline.h (clause_t): Turn into unsigned int.
13767 * ipa-inline-analysis.c (add_clause): Do more simplification.
13768 (and_predicates): Shortcut more cases.
13769 (predicates_equal_p): Move forward; check that clauses are properly
13770 ordered.
13771 (or_predicates): Shortcut more cases.
13772 (edge_execution_predicate): Rewrite as...
13773 (set_cond_stmt_execution_predicate): ... this function; handle
13774 __builtin_constant_p.
13775 (set_switch_stmt_execution_predicate): New .
13776 (compute_bb_predicates): New.
13777 (will_be_nonconstant_predicate): Update TODO.
13778 (estimate_function_body_sizes): Use compute_bb_predicates
13779 and free them later, always try to estimate if stmt is constant.
13780 (estimate_time_after_inlining, estimate_size_after_inlining):
13781 Gracefully handle optimized out edges.
13782 (read_predicate): Fix off by one error.
13783
a88fdc2a
NP
137842011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
13785
13786 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
13787
d984c8ef
XDL
137882011-04-27 Xinliang David Li <davidxl@google.com>
13789
13790 * tree-profile.c (init_ic_make_global_vars): Set
13791 tls attribute on ic vars.
13792 * coverage.c (coverage_end_function): Initialize
13793 function_list with zero.
13794
45a2c477
RG
137952011-04-29 Richard Guenther <rguenther@suse.de>
13796
13797 * builtins.c (fold_builtin_classify_type): Use integer_type_node
13798 for the type of the result.
13799 (fold_builtin_isascii): Likewise.
13800 (fold_builtin_toascii): Use integer_type_node where appropriate.
13801 (fold_builtin_logb): Likewise.
13802 (fold_builtin_frexp): Likewise.
13803 (fold_builtin_strstr): Likewise.
13804 (fold_builtin_strpbrk): Likewise.
13805 (fold_builtin_fputs): Likewise.
13806 (fold_builtin_sprintf): Likewise.
13807 (fold_builtin_snprintf): Likewise.
13808 (fold_builtin_printf): Likewise.
13809 (do_mpfr_remquo): Use a proper type for the assigned constant.
13810 (do_mpfr_lgamma_r): Likewise.
13811 * dwarf2out.c (resolve_one_addr): Use size_int.
13812 * except.c (init_eh): Likewise.
13813 (assign_filter_values): Use integer_type_node for filter values.
13814 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
13815 indices.
13816 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
13817 for EH region numbers.
13818 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
13819 for the shift amount.
13820
eb6c3df1
RG
138212011-04-29 Richard Guenther <rguenther@suse.de>
13822
13823 * expr.h (expand_shift): Rename to ...
13824 (expand_variable_shift): ... this.
13825 (expand_shift): Take a constant shift amount.
13826 * expmed.c (expand_shift): Rename to ...
13827 (expand_variable_shift): ... this.
13828 (expand_shift): New wrapper around expand_variable_shift.
13829 * expr.c (convert_move, emit_group_load_1, emit_group_store,
13830 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
13831 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
13832 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
13833 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
13834 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
13835 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
13836 emit_store_flag_1, emit_store_flag): Likewise.
13837 * builtins.c (expand_builtin_signbit): Likewise.
13838 * calls.c (load_register_parameters): Likewise.
13839 * function.c (assign_parm_setup_block): Likewise.
13840 * lower-subreg.c (resolve_shift_zext): Likewise.
13841 * optabs.c (widen_bswap, expand_abs_nojump,
13842 expand_one_cmpl_abs_nojump, expand_float): Likewise.
13843 * spu/spu.c (spu_expand_extv): Likewise.
13844 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13845
9f616812
RG
138462011-04-29 Richard Guenther <rguenther@suse.de>
13847
13848 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
13849 for the remapped region number.
13850 * predict.c (build_predict_expr): Use integer_type_node for the
13851 predict kind.
13852 * fold-const.c (fold_binary_loc): Use integer_type_node for
13853 the shift amount. Use a proper type for the PLUS_EXPR operand.
13854
b823cdfe
MM
138552011-04-29 Michael Matz <matz@suse.de>
13856
13857 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
13858 other trees that just builtins.
13859 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
13860
413581ba
RG
138612011-04-29 Richard Guenther <rguenther@suse.de>
13862
13863 * tree-nested.c (get_trampoline_type): Use size_int.
13864 (get_nl_goto_field): Likewise.
13865 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
13866 for all indexes.
13867 (lower_eh_constructs_2): Likewise.
13868 (lower_resx): Likewise.
13869 (lower_eh_dispatch): Likewise.
13870 * tree-mudflap.c (mf_build_string): Use size_int.
13871 (mudflap_register_call): Use integer_type_node for the flag.
13872 (mudflap_enqueue_constant): Use size_int.
13873 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
13874 instead of rebuilding it.
13875
5c04e9f4
RG
138762011-04-29 Richard Guenther <rguenther@suse.de>
13877
13878 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
13879 Handle OBJ_TYPE_REF.
13880 (find_func_aliases_for_call): Use it more consistently.
13881
5c24671b
AO
138822011-04-29 Alexandre Oliva <aoliva@redhat.com>
13883
13884 * haifa-sched.c (last_nondebug_scheduled_insn): New.
13885 (rank_for_schedule): Use it.
13886 (schedule_block): Set it.
13887
10adac51
XDL
138882011-04-28 David Li <davidxl@google.com>
13889
13890 * tree.c (crc32_string): Use crc32_byte.
13891 (crc32_byte): New function.
13892 * tree.h (crc32_byte): New function.
13893 * gcov.c (read_graph_file): Handle new cfg_cksum.
13894 (read_count_file): Ditto.
13895 * profile.c (instrument_values): Ditto.
13896 (get_exec_counts): Ditto.
13897 (read_profile_edge_counts): Ditto.
13898 (compute_branch_probabilities): Ditto.
13899 (compute_value_histograms): Ditto.
13900 (branch_prob): Ditto.
13901 (end_branch_prob): Ditto.
13902 * coverage.c (read_counts_file): Ditto.
13903 (get_coverage_counts): Ditto.
13904 (tree_coverage_counter_addr): Ditto.
13905 (coverage_checksum_string): Ditto.
13906 (coverage_begin_output): Ditto.
13907 (coverage_end_function): Ditto.
13908 (build_fn_info_type): Ditto.
13909 (build_fn_info_value): Ditto.
13910 * libgcov.c (gcov_exit): Ditto.
13911 * gcov-dump.c (tag_function): Ditto.
13912 (compute_checksum): Remove.
13913
5d6358a5
AM
139142011-04-29 Alan Modra <amodra@gmail.com>
13915
13916 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13917 unspec plus offset. Tidy macho code.
13918
85ad2ef5
MJ
139192011-04-29 Martin Jambor <mjambor@suse.cz>
13920
13921 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
13922 node instead of a decl. Update all callers.
13923 * cgraph.h: Update declaration.
13924
437f4a00
IR
139252011-04-28 Ira Rosen <ira.rosen@linaro.org>
13926
13927 PR tree-optimization/48765
13928 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
13929 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
13930 to indicate if loop aware SLP is being used. Scan the statements
13931 and update the vectorization factor according to the type of
13932 vectorization before statement analysis.
13933 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
13934 pass it to vect_analyze_loop_operations.
13935 (vectorizable_reduction): Set number of copies to 1 in case of pure
13936 SLP statement.
13937 * tree-vect-stmts.c (vectorizable_conversion,
13938 vectorizable_assignment, vectorizable_shift,
13939 vectorizable_operation, vectorizable_type_demotion,
13940 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
13941 Likewise.
13942 (vectorizable_condition): Move the check that it is not SLP
13943 vectorization before the number of copies check.
13944 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
13945 to vectorize the loop using SLP.
13946
c6fc44f3
JJ
139472011-04-28 Jakub Jelinek <jakub@redhat.com>
13948
13949 PR middle-end/48597
13950 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
13951 inline asm.
13952
6c0170ea
JM
139532011-04-28 Joseph Myers <joseph@codesourcery.com>
13954
13955 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
13956 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
13957 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13958 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13959 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
13960 linux*.h headers.
6bec6c98 13961 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
13962 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13963 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13964 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 13965 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
13966 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
13967 REG_NAME.
13968 * config/i386/linux.h (REG_NAME): Don't define.
13969 * config/i386/linux64.h (REG_NAME): Don't define.
13970 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
13971 Undefine before defining.
13972
970dabbd
JH
139732011-04-28 Jan Hubicka <jh@suse.cz>
13974
6bec6c98
UB
13975 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
13976 nonconstant_names array.
970dabbd
JH
13977 (estimate_function_body_sizes): Build nonconstant_names array; handle
13978 BUILT_IN_CONSTANT_P.
13979
8d3e3924
RG
139802011-04-28 Richard Guenther <rguenther@suse.de>
13981
13982 PR bootstrap/48804
13983 Revert
13984 2011-04-28 Richard Guenther <rguenther@suse.de>
13985
13986 * tree-ssa-structalias.c (solve_constraints): Build succ graph
13987 as late as possible.
6bec6c98 13988
8576f20a
RG
139892011-04-28 Richard Guenther <rguenther@suse.de>
13990
13991 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
13992 (debug_constraint): Do it here.
13993 (dump_constraints): And here.
13994 (rewrite_constraints): And here.
13995 (dump_constraint_edge): Remove.
13996 (dump_constraint_graph): Rewrite to produce DOT output.
13997 (solve_constraints): Build succ graph as late as possible.
13998 Dump constraint graphs before and after solving.
13999
e38811ce
RG
140002011-04-28 Richard Guenther <rguenther@suse.de>
14001
14002 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14003 New function split out from ...
14004 (find_func_aliases): ... here. Call it.
14005 (find_func_aliases_for_call): Likewise.
14006
fbaf0d0c
GDR
140072011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
14008
14009 * internal-fn.h (internal_fn_name_array): Declare.
14010 (internal_fn_flags_array): Likewise.
14011
cbb734aa
UB
140122011-04-27 Uros Bizjak <ubizjak@gmail.com>
14013
14014 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
14015 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
14016 Move from sse.md.
14017 (ssemodefsuffix): Remove.
14018 (ssevecmodesuffix): New mode attribute.
14019 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
14020 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
14021 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
14022 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
14023 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
14024 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
14025 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
14026 ssemodesuffix mode attribute.
14027 (float splitters): Use ssevecmodesuffix mode attribute.
14028 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
14029 (sseinsmode): Rename from avxvecmode.
14030 (avxsizesuffix): Rename from avxmodesuffix.
14031 (sseintvecmode): Rename from avxpermvecmode.
14032 (ssedoublevecmode): Rename from ssedoublesizemode.
14033 (ssehalfvecmode): Rename from avxhalfvecmode.
14034 (ssescalarmode): Rename from avxscalarmode.
14035 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
14036 templates for ssemodesuffix mode attribute.
14037 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
14038 mode attribute.
14039
14040 Adjust RTX patterns globally for renamed mode attributes.
14041
991278ab
JH
140422011-04-27 Jan Hubcika <jh@suse.cz>
14043
14044 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
14045 * ipa-inline-analysis.c: Include alloc-pool.h.
14046 (edge_predicate_pool): New.
14047 (trye_predicate_p): New function
14048 (false_predicate_p): New function.
14049 (add_clause): Sanity check that false clauses are "optimized";
14050 never add clauses to predicate that is already known to be false.
14051 (and_predicate): Use flase_predicate_p.
14052 (evaulate_predicate): Rename to ...
14053 (evaluate_predicate): ... this one; update all callers; assert
14054 that false is not listed among possible truths.
14055 (dump_predicate): Use true_predicate_p.
14056 (account_size_time): Use false_predicate_p.
14057 (evaulate_conditions_for_edge): Rename to ...
14058 (evaluate_conditions_for_edge) ... this one.
14059 (edge_set_predicate): New function.
14060 (inline_edge_duplication_hook): Duplicate edge predicates.
14061 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 14062 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
14063 (dump_inline_summary): Update.
14064 (estimate_function_body_sizes): Set edge predicates.
14065 (estimate_calls_size_and_time): Handle predicates.
14066 (estimate_callee_size_and_time): Update.
14067 (remap_predicate): Add toplev_predicate; update comment.
14068 (remap_edge_predicates): New function.
14069 (inline_merge_summary): Compute toplev predicate; update.
14070 (read_predicate): New function.
14071 (read_inline_edge_summary): Use it.
14072 (inline_read_section): Likewise.
14073 (write_predicate): New function.
14074 (write_inline_edge_summary): Use it.
14075 (inline_write_summary): Likewise.
14076 (inline_free_summary): Free alloc pool and edge summary vec.
14077
648b5f85
RG
140782011-04-27 Richard Guenther <rguenther@suse.de>
14079
14080 * tree-ssa-structalias.c (changed_count): Remove.
14081 (changed): Use a bitmap.
14082 (unify_nodes): Adjust.
14083 (do_sd_constraint): Likewise.
14084 (do_ds_constraint): Likewise.
14085 (do_complex_constraint): Likewise.
14086 (solve_graph): Likewise.
14087
4d5dcfb2
JH
140882011-04-27 Jan Hubicka <jh@suse.cz>
14089
14090 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
14091
200eb7d2
UB
140922011-04-27 Uros Bizjak <ubizjak@gmail.com>
14093
14094 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
14095 (avx_vperm2f128_*_operand): Ditto.
14096 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
14097 Use avx_vpermilp_parallel in insn condition.
14098 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
14099 Use avx_vperm2f128_parallel in insn condition.
14100
7d6e2521
RG
141012011-04-27 Richard Guenther <rguenther@suse.de>
14102
14103 * Makefile.in (tree-ssa-structalias.o): Remove
14104 gt-tree-ssa-structalias.h dependency.
14105 (GTFILES): Remove tree-ssa-structalias.c.
14106 * tree.c (allocate_decl_uid): New function.
14107 (make_node_stat): Use it.
14108 (copy_node_stat): Likewise.
14109 * tree.h (allocate_decl_uid): Declare.
14110 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
14111 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
14112 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 14113 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
14114 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
14115 (struct heapvar_map): Likewise.
14116 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
14117 heapvar_insert): Likewise.
14118 (make_heapvar_for): Rename to ...
14119 (make_heapvar): ... this. Simplify.
14120 (fake_var_decl_obstack): New global var.
14121 (build_fake_var_decl): New function.
14122 (make_constraint_from_heapvar): Adjust.
14123 (handle_lhs_call): Likewise.
14124 (create_function_info_for): Likewise.
14125 (intra_create_variable_infos): Likewise.
14126 (init_alias_vars): Allocate fake_var_decl_obstack.
14127 (init_alias_heapvars, delete_alias_heapvars): Remove.
14128 (compute_points_to_sets): Do not call init_alias_heapvars.
14129 (ipa_pta_execute): Likewise.
14130 (delete_points_to_sets): Free fake_var_decl_obstack.
14131
526ed6c2
UW
141322011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14133
14134 * config/spu/divmovti4.c (union qword_UTItype): New data type.
14135 (si_from_UTItype, si_to_UTItype): New functions.
14136 (__udivmodti4): Use them to implement type-punning.
14137 * config/spu/multi3.c (union qword_TItype): New data type.
14138 (si_from_TItype, si_to_TItype): New functions.
14139 (__multi3): Use them to implement type-punning.
14140
c187d33c
UW
141412011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14142
14143 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
14144
40982661
JH
141452011-04-27 Jan Hubicka <jh@suse.cz>
14146
14147 * ipa-prop.c (function_insertion_hook_holder): New holder.
14148 (ipa_add_new_function): New function.
200eb7d2
UB
14149 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
14150 Register/deregister holder.
40982661 14151
9aef53ee
RG
141522011-04-27 Richard Guenther <rguenther@suse.de>
14153
14154 PR tree-optimization/48772
200eb7d2 14155 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 14156
f63d806d
RG
141572011-04-27 Richard Guenther <rguenther@suse.de>
14158
14159 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
14160 TARGET_MEM_REF handling.
14161
e1ea7451
NC
141622011-04-27 Nick Clifton <nickc@redhat.com>
14163
9b5db25d
NC
14164 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
14165 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
14166 (REG_CLASS_NAMES): Likewise.
14167 (REG_CLASS_CONTENTS): Likewise.
14168 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14169 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14170 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
14171 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
14172 (EVEN_REGS): New macro. Alias for QUAD_REGS.
14173 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
14174 duplicate register classes.
97d20907 14175 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
14176 (frv_register_move_cost): Likewise.
14177
e1ea7451
NC
14178 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
14179 end of the regno_reg_class array.
14180
5c2f94b4
JJ
141812011-04-27 Jakub Jelinek <jakub@redhat.com>
14182
14183 PR c/48742
14184 * c-typeck.c (build_binary_op): Don't wrap arguments if
14185 int_operands is true.
14186
57a944d7
KK
141872011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
14188
14189 PR target/48767
14190 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
14191 targetm.calls.must_pass_in_stack for void type.
14192
898b8927
JH
141932011-04-26 Jan Hubicka <jh@suse.cz>
14194
14195 * cgraphbuild.c (build_cgraph_edges): Update call
14196 of cgraph_create_edge and cgraph_create_indirect_edge.
14197 * cgraph.c (cgraph_create_edge_including_clones,
14198 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
14199 cgraph_update_edges_for_call_stmt_node): Do not take nest
14200 argument; do not initialize call_stmt_size/time.
14201 (dump_cgraph_node): Do not dump nest.
14202 (cgraph_clone_edge): Do not take loop_nest argument;
14203 do not propagate it; do not clone call_stmt_size/time.
14204 (cgraph_clone_node): Likewise.
14205 (cgraph_create_virtual_clone): Update.
14206 * cgraph.h (struct cgraph_edge): Remove
14207 call_stmt_size/call_stmt_time/loop_nest.
14208 (cgraph_create_edge, cgraph_create_indirect_edge,
14209 cgraph_create_edge_including_clones, cgraph_clone_node): Update
14210 prototype.
14211 * tree-emutls.c (gen_emutls_addr): Update.
14212 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
14213 loop_nest; handle indirect calls, too.
14214 (clone_inlined_nodes): Do not care about updating inline summaries.
14215 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
14216 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
14217 stream call_stmt_size/call_stmt_time/loop_nest.
14218 * ipa-inline.c (edge_badness): Update.
14219 (ipa_inline): dump summaries after inlining.
14220 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 14221 New.
898b8927
JH
14222 (inline_edge_summary): New function.
14223 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
14224 (inline_edge_removal_hook): Handle edge summaries.
14225 (inline_edge_duplication_hook): New hook.
14226 (inline_summary_alloc): Alloc hooks.
14227 (initialize_growth_caches): Do not register removal hooks.
14228 (free_growth_caches); Do not free removal hook.
14229 (dump_inline_edge_summary): New function.
14230 (dump_inline_summary): Use it.
14231 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
14232 (inline_update_callee_summaries): New function.
14233 (inline_merge_summary): Use it.
14234 (do_estimate_edge_time, do_estimate_edge_growth): Update.
14235 (read_inline_edge_summary): New function.
14236 (inline_read_section): Use it.
14237 (write_inline_edge_summary): New function.
14238 (inline_write_summary): Use it.
14239 (inline_free_summary): Free edge new holders.
14240 * tree-inline.c (copy_bb): Update.
14241
ffa03772
JM
142422011-04-26 Jason Merrill <jason@redhat.com>
14243
14244 * tree-eh.c (lower_try_finally_switch): Create the label along with
14245 the CASE_LABEL_EXPR.
14246
6d7b45ad
DM
142472011-04-26 David S. Miller <davem@davemloft.net>
14248 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14249
14250 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
14251 * configure: Regenerate.
14252
df10b6d4
MM
142532011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14254
14255 PR target/48258
14256 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
14257 reduction.
14258 (VEC_reduc): New code iterator and splitters for vector reduction.
14259 (VEC_reduc_name): Ditto.
14260 (VEC_reduc_rtx): Ditto.
14261 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
14262 (reduc_<VEC_reduc_name>_v4sf): Ditto.
14263
14264 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14265 support for extracting SF on VSX.
14266
14267 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
14268 generating xscvspdp.
14269 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
14270 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
14271 double add, minimum, maximum vector reduction.
14272 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
14273 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
14274 optimize double vector reduction.
14275 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
14276
35a5db04
JM
142772011-04-26 Joseph Myers <joseph@codesourcery.com>
14278
14279 * config/fr30/fr30.h (inhibit_libc): Don't define.
14280 * config/m32r/m32r-protos.h: Correct comment.
14281 * config/v850/v850.h (GHS_default_section_names,
14282 GHS_current_section_names): Use tree, not union tree_node *.
14283
2f964ad6
XDL
142842011-04-26 Xinliang David Li <davidxl@google.com>
14285
200eb7d2 14286 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
14287 * c-family/c-opts.c (c_common_handle_option): Set
14288 warn_maybe_uninitialized.
14289 * opts.c (common_handle_option): Ditto.
14290 * common.opt: New option.
14291 * tree-ssa.c (warn_uninit): Add one more parameter.
14292 (warn_uninitialized_var): Pass warning code.
14293 * tree-flow.h: Interface change.
14294
9c7bd91a
RO
142952011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14296
200eb7d2 14297 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
14298 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
14299 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
14300
c2f36e21
RO
143012011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14302
14303 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
14304 * config/mips/mips.opt (mmips-tfile): Remove.
14305
14306 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
14307 mips-tdump reference to ...
200eb7d2 14308 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
14309 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
14310 reference by Tru64 UNIX.
14311
2c9da85b
JJ
143122011-04-26 Jakub Jelinek <jakub@redhat.com>
14313
0c5f6539
JJ
14314 PR debug/48768
14315 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
14316 is error_mark_node, set value to NULL.
14317
2c9da85b
JJ
14318 PR tree-optimization/48734
14319 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
14320 if return value from maybe_fold_*_comparsions isn't something
14321 the code is prepared to handle.
14322
77fa1d54
UB
143232011-04-26 Uros Bizjak <ubizjak@gmail.com>
14324
14325 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
14326 mode check.
14327 (ext_QIreg_nomode_operands): Remove.
14328 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
14329 (*andsi_1): Ditto.
14330 (*andhi_1): Ditto.
14331
0e2a6c2b
AS
143322011-04-26 Andrew Stubbs <ams@codesourcery.com>
14333
14334 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
14335
961562d8
RB
143362011-04-26 Richard Guenther <rguenther@suse.de>
14337
14338 * c-typeck.c (build_unary_op): Do not expand array-refs via
14339 pointer arithmetic. Only adjust qualifiers for function types.
14340
143412011-04-26 Richard Guenther <rguenther@suse.de>
14342
14343 PR middle-end/48694
14344 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
14345 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
14346 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
14347 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 14348
a0d260fc
PC
143492011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
14350
6bec6c98 14351 * doc/extend.texi: Document __underlying_type.
a0d260fc 14352
4d583bb9
SB
143532011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
14354
14355 * config/rs6000/titan.md (automata_option "progress"): Remove.
14356
1f3fcdc3
JL
143572011-04-25 Jeff Law <law@redhat.com>
14358
14359 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
14360
e5b0dad8
JK
143612011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14362
14363 * system.h (ENUM_BITFIELD): Remove.
14364
5157a881 143652011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 14366 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
14367
14368 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
14369 for STORE_FLAG_VALUE==-1 case.
14370
ed4c109e
RS
143712011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
14372
14373 PR target/43804
14374 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
14375 LEGITIMATE_PIC_OPERAND_P.
14376
f3181aa2
JH
143772011-04-24 Jan Hubicka <jh@suse.cz>
14378
14379 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
14380 WPA hack.
77fa1d54
UB
14381 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
14382 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
14383 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
14384 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
14385 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
14386 Sanity check predicate length.
14387 (remap_predicate): Likewise; sanity check jump functions.
14388 (inline_read_section, inline_write_summary): Sanity check
14389 predicate length.
14390
5307cbaa
PC
143912011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
14392
14393 PR other/48748
14394 * doc/extend.texi (Type Traits): Document __is_standard_layout,
14395 __is_literal_type, and __is_trivial; update throughout about
14396 possibly cv-qualified void types.
14397
bebd5f99
GP
143982011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
14399
14400 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
14401 testsuite and make it version agnostic.
14402
7ee28a74
JH
144032011-04-22 Jan Hubicka <jh@suse.cz>
14404
14405 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
14406
16997bc0
JJ
144072011-04-23 Jakub Jelinek <jakub@redhat.com>
14408
14409 PR c/48685
14410 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
14411 to VOID_TYPE even around MODIFY_EXPR.
14412
f94d4ab1
MS
144132011-04-22 Mike Stump <mikestump@comcast.net>
14414
1a84c183 14415 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
14416 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
14417 comment.
14418
632b4f8e
JH
144192011-04-22 Jan Hubicka <jh@suse.cz>
14420
14421 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
14422 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
14423 ipa-prop.c; update all uses.
632b4f8e 14424 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
14425 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
14426 merge summary of inlined function into former caller.
632b4f8e
JH
14427 * ipa-inline.c (max_benefit): Remove.
14428 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
14429 (update_caller_keys): Use
14430 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
14431 (update_callee_keys): Likewise.
14432 (update_all_callee_keys): Likewise.
77fa1d54
UB
14433 (inline_small_functions): Do not collect max_benefit; do not reset
14434 estimated_growth; call free_growth_caches and initialize_growth_caches.
14435 * ipa-inline.h (struct condition, type clause_t, struct predicate,
14436 struct size_time_entry): New structures.
632b4f8e 14437 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
14438 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
14439 and estimated_growth.
632b4f8e
JH
14440 (edge_growth_cache_entry): New structure.
14441 (node_growth_cache, edge_growth_cache): New global vars.
14442 (estimate_growth): Turn into inline.
14443 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
14444 initialize_growth_caches, free_growth_caches): Declare.
14445 (estimate_edge_growth): Rewrite.
14446 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
14447 (reset_node_growth_cache, reset_edge_growth_cache): New inline
14448 functions.
632b4f8e
JH
14449 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
14450 (NUM_CONDITIONS): New constant.
14451 (predicate_conditions): New enum.
14452 (IS_NOT_CONSTANT): New constant.
14453 (edge_removal_hook_holder): New var.
14454 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
14455 (true_predicate, single_cond_predicate, false_predicate,
14456 not_inlined_predicate, add_condition, add_clause, and_predicates,
14457 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
14458 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
14459 evaulate_conditions_for_edge): New functions.
14460 (inline_summary_alloc): Move to heap.
14461 (inline_node_removal_hook): Clear condition and entry vectors.
14462 (inline_edge_removal_hook): New function.
14463 (initialize_growth_caches, free_growth_caches): New function.
14464 (dump_inline_summary): Update.
14465 (edge_execution_predicate): New function.
14466 (will_be_nonconstant_predicate): New function.
14467 (estimate_function_body_sizes): Compute BB and constantness predicates.
14468 (compute_inline_parameters): Do not clear estimated_growth.
14469 (estimate_edge_size_and_time): New function.
14470 (estimate_calls_size_and_time): New function.
14471 (estimate_callee_size_and_time): New function.
14472 (remap_predicate): New function.
14473 (inline_merge_summary): New function.
14474 (do_estimate_edge_time): New function based on...
14475 (estimate_edge_time): ... this one.
14476 (do_estimate_edge_growth): New function.
14477 (do_estimate_growth): New function based on....
14478 (estimate_growth): ... this one.
14479 (inline_analyze_function): Analyze after deciding on jump functions.
14480 (inline_read_section): New function.
14481 (inline_read_summary): Use it.
14482 (inline_write_summary): Write all the new data.
14483 * ipa-prop.c (ipa_get_param_decl_index): Export.
14484 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
14485 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
14486 Declare.
14487 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
14488 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
14489 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
14490 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
14491 cgraph_edge_inlinable_p): Remove.
14492 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
14493 (cgraph_process_new_functions): Update call of
14494 compute_inline_parameters.
632b4f8e 14495
1df5b0db
RG
144962011-04-22 Richard Guenther <rguenther@suse.de>
14497
14498 * tree.c (build_int_cst): Properly create canonicalized integer
14499 constants.
14500 (build_int_cst_type): Remove scary comments.
14501
ae01169c
XDL
145022011-04-22 Xinliang David Li <davidxl@google.com>
14503
14504 * toplev.c (process_options): Enable -Werror=coverage-mismatch
14505 by default when -Wno-error is not specified.
14506 * opts-global.c (decode_options): Remove call to
14507 control_warning_options.
14508
93dfac24
JJ
145092011-04-22 Jakub Jelinek <jakub@redhat.com>
14510
14511 PR tree-optimization/48717
14512 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
14513 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
14514
1b5f5069
JM
145152011-04-22 Joseph Myers <joseph@codesourcery.com>
14516
14517 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
14518 definition where used.
14519
144f4153
JJ
145202011-04-22 Jakub Jelinek <jakub@redhat.com>
14521
14522 PR c/48716
14523 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
14524 TREE_STATIC variables declared inside of some OpenMP construct.
14525
f9fd305b
MJ
145262011-04-22 Martin Jambor <mjambor@suse.cz>
14527
14528 PR middle-end/48585
1d284ec5 14529 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 14530
49819fef
AM
145312011-04-22 Alexander Monakov <amonakov@ispras.ru>
14532
14533 PR c/36750
14534 * c-typeck.c (pop_init_level): Do not warn about initializing
14535 with ` = {0}'.
14536
401f6699
AM
145372011-04-22 Alan Modra <amodra@gmail.com>
14538
14539 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
14540 when returning call_cookie.
14541 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
14542 pointers, to functions with no more vector args than the current
14543 function, and some non-local calls for ABI_V4.
14544 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
14545 sibcall_nonlocal_aix64): Combine to ..
14546 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
14547 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
14548 (sibcall_value_nonlocal_aix<mode>): ..likewise.
14549 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
14550 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
14551 operand.
14552 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
14553 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
14554 sibcall_value_symbolic_64): Delete.
14555
903d1e67
XDL
145562011-04-21 Xinliang David Li <davidxl@google.com>
14557
14558 * cgraph.h: Remove pid.
14559 * cgraph.c: Remove pid.
14560 * value-prof.c (init_node_map): New function.
14561 (del_node_map): New function.
14562 (find_func_by_funcdef_no): New function.
14563 (gimple_ic_transform): Call new function.
14564 * cgraphunit.c (cgraph_finalize_function): Remove pid.
14565 * function.c (get_last_funcdef_no): New function.
14566 * function.h (get_last_funcdef_no): New function.
14567 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
14568 to libgcov function.
14569 (tree-profiling): Call node map init and delete function.
14570
7378e95f
ILT
145712011-04-21 Ian Lance Taylor <iant@google.com>
14572
14573 * godump.c (go_format_type): Use exported Go name for anonymous
14574 field name.
14575
e84a6fcf
NF
145762011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14577
14578 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
14579 Call builtin_function_type_list instead of builtin_function_type.
14580 (UNARY, BINARY, TRINARY, QUAD): Likewise.
14581
4fe058e2
NF
145822011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14583
14584 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
14585 build_function_type_list instead of build_function_type.
14586 Delete variable `endlink'.
14587
1ba0a2d2
NF
145882011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14589
14590 * config/s390/s390.c (s390_init_builtins): Call
14591 build_function_type_list instead of build_function_type.
14592
c0676219
NF
145932011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14594
14595 * config/ia64/ia64.c (ia64_init_builtins): Call
14596 build_function_type_list instead of builtin_function_type.
14597
6ddfda8a
ER
145982011-04-21 Easwaran Raman <eraman@google.com>
14599
3a6448ea 14600 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
14601 (add_stack_var): ...and its reference here...
14602 (expand_stack_vars): ...and here.
14603 (stack_var_cmp): Sort by descending order of size.
14604 (partition_stack_vars): Change heuristic.
1d284ec5 14605 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
14606 (dump_stack_var_partition): Add newline after each partition.
14607
23756963
DA
146082011-04-21 Dimitrios Apostolou <jimis@gmx.net>
14609 Jeff Law <law@redhat.com>
14610
77fa1d54 14611 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
14612 * gengtype.c (matching_file_name_substitute): Likewise.
14613
aa2a43d2
RG
146142011-04-21 Richard Guenther <rguenther@suse.de>
14615
14616 PR lto/48703
1d284ec5 14617 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 14618
4d931f41
EB
146192011-04-21 Eric Botcazou <ebotcazou@adacore.com>
14620
14621 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
14622
f103fa7a
RG
146232011-04-21 Richard Guenther <rguenther@suse.de>
14624
14625 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
14626 file name.
14627
e19f6650
RG
146282011-04-21 Richard Guenther <rguenther@suse.de>
14629
14630 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14631 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
14632 Use DECL_P, not SSA_VAR_P.
14633 (ptr_derefs_may_alias_p): Likewise.
14634 (ptr_deref_may_alias_ref_p_1): Likewise.
14635 (decl_refs_may_alias_p): Likewise.
14636 (refs_may_alias_p_1): Likewise.
14637 (ref_maybe_used_by_call_p_1): Likewise.
14638 (call_may_clobber_ref_p_1): Likewise.
14639 (indirect_ref_may_alias_decl_p): Assume indirect refrences
14640 are either MEM_REF or TARGET_MEM_REF.
14641 (indirect_refs_may_alias_p): Likewise.
14642 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
14643 for MEM_EXPR of indirect calls.
14644
9d1831bb
TG
146452011-04-21 Tristan Gingold <gingold@adacore.com>
14646
14647 * vmsdbgout.c (write_srccorr): Compute file length from the string.
14648 (dst_file_info_struct): Remove flen field.
14649 (lookup_filename): Remove code that set flen field.
14650
f199c029
TG
146512011-04-21 Tristan Gingold <gingold@adacore.com>
14652
14653 * config/ia64/ia64.c (ia64_start_function): Add a guard.
14654
2894086e
UB
146552011-04-21 Uros Bizjak <ubizjak@gmail.com>
14656
14657 PR target/48708
14658 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
14659 vec_extract and vec_concat for non-SSE4_1 targets.
14660
53f94a5c
RG
146612011-04-21 Richard Guenther <rguenther@suse.de>
14662
14663 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
14664 return statements.
14665
f0dca5ba
JM
146662011-04-21 Joseph Myers <joseph@codesourcery.com>
14667
14668 * config/i386/cygming.h (union tree_node, TREE): Don't define or
14669 undefine.
14670 (FILE): Don't undefine.
14671
984514ac
JM
146722011-04-21 Joseph Myers <joseph@codesourcery.com>
14673
14674 * config/alpha/alpha.c (struct machine_function): Use rtx, not
14675 struct rtx_def *.
14676 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
14677 struct rtx_def *.
14678 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 14679 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
14680 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
14681 rtx_def *.
14682 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
14683 definitions where used.
14684 * config/microblaze/microblaze.h (struct microblaze_args): Use
14685 rtx, not struct rtx_def *.
14686 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
14687 rtx_def *.
2894086e
UB
14688 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
14689 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
14690 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
14691 not struct rtx_def *.
14692 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
14693 struct rtx_def *.
14694 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
14695 rtx_def *.
2894086e 14696 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 14697
0b5a2724
RS
146982011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14699
14700 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
14701 operand_equal_p to compare DR_BASE_ADDRESSes.
14702 (vect_check_interleaving): Likewise.
14703
4b18d683
RS
147042011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14705
14706 PR target/46329
14707 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
14708 for all Neon struct constants.
14709
1a627b35
RS
147102011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14711
14712 * target.def (legitimate_constant_p): New hook.
14713 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
14714 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
14715 * doc/tm.texi: Regenerate.
14716 * hooks.h (hook_bool_mode_rtx_true): Declare.
14717 * hooks.c (hook_bool_mode_rtx_true): Define.
14718 * system.h (LEGITIMATE_CONSTANT_P): Poison.
14719 * calls.c (precompute_register_parameters): Replace uses of
14720 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
14721 (emit_library_call_value_1): Likewise.
14722 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
14723 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
14724 * ira-costs.c (scan_one_insn): Likewise.
14725 * recog.c (general_operand, immediate_operand): Likewise.
14726 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
14727 * reload1.c (init_eliminable_invariants): Likewise.
14728
14729 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
14730 mode argument.
14731 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
14732 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
14733 argument.
14734 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14735 * config/alpha/predicates.md (input_operand): Update call to
14736 alpha_legitimate_constant_p.
14737
14738 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
14739 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
14740 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
14741 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14742 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
14743 (arm_legitimate_constant_p): New functions.
14744 (arm_cannot_force_const_mem): Make static.
14745
14746 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
14747
14748 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
14749 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
14750 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
14751 instead of bfin_legitimate_constant_p.
14752 (bfin_legitimate_constant_p): Make static. Add a mode argument.
14753 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14754
14755 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
14756
14757 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
14758
14759 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
14760 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
14761 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14762 (frv_legitimate_constant_p): Make static. Add a mode argument.
14763
14764 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
14765 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
14766 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
14767
14768 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
14769 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
14770 * config/i386/i386.c (legitimate_constant_p): Rename to...
14771 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
14772 argument.
14773 (ix86_cannot_force_const_mem): Update accordingly.
14774 (ix86_legitimate_address_p): Likewise.
14775 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14776 * config/i386/i386.md: Update commentary.
14777
14778 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
14779 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
14780 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14781 (ia64_legitimate_constant_p): Make static. Add a mode argument.
14782
14783 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
14784
14785 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
14786 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
14787 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14788 (lm32_legitimate_constant_p): Make static. Add a mode argument.
14789
14790 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
14791 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
14792 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
14793
14794 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
14795 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14796 (m32r_legitimate_constant_p): New function.
14797
14798 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
14799 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
14800 LEGITIMATE_CONSTANT_P.
14801 (LEGITIMATE_CONSTANT_P): Delete.
14802 * config/m68k/m68k.c (m68k_expand_prologue): Call
14803 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
14804 (m68k_legitimate_constant_p): New function.
14805 * config/m68k/m68k.md: Update comments.
14806
14807 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
14808 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14809 (mcore_legitimate_constant_p): New function.
14810
14811 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
14812 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
14813 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
14814 Add a mode argument.
14815 (mep_legitimate_address): Update accordingly.
14816 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14817
14818 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
14819 Delete.
14820 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
14821 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
14822 static. Check OP's mode for VOIDmode.
14823 (microblaze_legitimate_constant_p): New function.
14824 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14825
14826 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
14827 * config/mips/mips.c (mips_legitimate_constant_p): New function.
14828 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
14829 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14830 * config/mips/predicates.md: Update comments.
14831
14832 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
14833 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
14834 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14835 (mmix_legitimate_constant_p): Make static, return a bool, and take
14836 a mode argument.
14837 (mmix_print_operand_address): Update accordingly.
14838
14839 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
14840 Delete.
14841 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
14842 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
14843 static. Add a mode argument.
1a627b35
RS
14844 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14845
14846 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
14847
14848 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
14849 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14850 (pa_legitimate_constant_p): New function.
14851
14852 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
14853
14854 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
14855 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14856 (pdp11_legitimate_constant_p): New function.
14857
14858 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
14859 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14860 (rs6000_legitimate_constant_p): New function.
14861
14862 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
14863 (rx_legitimate_constant_p): ...this.
14864 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
14865 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
14866 (rx_legitimate_constant_p): ...this.
14867 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14868 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
14869
14870 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
14871 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
14872 * config/s390/s390.c (legitimate_constant_p): Rename to...
14873 (s390_legitimate_constant_p): ...this. Make static, return a bool,
14874 and add a mode argument.
14875 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14876
14877 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
14878
14879 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
14880 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14881 (sh_legitimate_constant_p): New function.
14882
14883 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
14884 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
14885 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14886 (legitimate_constant_p): Rename to...
14887 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
14888 argument.
14889 (constant_address_p): Update accordingly.
14890
14891 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
14892 argument and return a bool.
14893 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
14894 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14895 (spu_legitimate_constant_p): Add a mode argument and return a bool.
14896 (spu_rtx_costs): Update accordingly.
14897 * config/spu/predicates.md (vec_imm_operand): Likewise.
14898
14899 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
14900
14901 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
14902 * config/v850/v850.c (v850_legitimate_constant_p): New function.
14903 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14904
14905 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
14906 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
14907 * config/vax/vax.c (legitimate_constant_p): Likewise.
14908
14909 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
14910 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14911 (xtensa_legitimate_constant_p): New function.
14912
fbbf66e7
RS
149132011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14914
14915 * target.def (cannot_force_const_mem): Add a mode argument.
14916 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
14917 * doc/tm.texi: Regenerate.
14918 * hooks.h (hook_bool_mode_rtx_false): Declare.
14919 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
14920 (hook_bool_mode_const_rtx_true): Likewise.
14921 (hook_bool_mode_rtx_false): New function.
14922 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
14923 to be non-VOID. Update call to cannot_force_const_mem.
14924 (find_reloads): Update accordingly.
14925 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
14926 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
14927 argument.
14928 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
14929 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
14930 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
14931 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
14932 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
14933 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
14934 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
14935 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14936 (m68k_cannot_force_const_mem): ...this new function.
14937 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
14938 argument.
14939 (mips_const_insns, mips_legitimize_const_move): Update calls.
14940 (mips_secondary_reload_class): Likewise.
14941 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14942 (pa_cannot_force_const_mem): ...this new function.
2894086e 14943 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
14944 (rs6000_cannot_force_const_mem): ...this new function.
14945 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
14946 argument.
14947 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
14948 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
14949 to...
14950 (xtensa_cannot_force_const_mem): ...this new function.
14951
b861891b
NF
149522011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14953
14954 * config/mips/mips.c (mips16_build_function_stub): Call
14955 build_function_type_list instead of build_function_type.
14956 (mips16_build_call_stub): Likewise.
14957
34149ed5
NF
149582011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14959
14960 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
14961 instead of build_function_type.
14962
12526412
NF
149632011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14964
14965 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
14966 instead of build_function_type.
14967
3b84d61f
UB
149682011-04-20 Uros Bizjak <ubizjak@gmail.com>
14969
14970 PR target/48678
14971 * config/i386/i386.md (insv): Change operand 0 constraint to
14972 "register_operand". Change operand 1 and 2 constraint to
14973 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
14974 * config/i386/sse.md (sse4_1_pinsrb): Export.
14975 (sse2_pinsrw): Ditto.
14976 (sse4_1_pinsrd): Ditto.
14977 (sse4_1_pinsrq): Ditto.
14978 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
14979 * config/i386/i386.c (ix86_expand_pinsr): New.
14980
4a25752b
ER
149812011-04-20 Easwaran Raman <eraman@google.com>
14982
14983 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
14984 containing union type only with -fstrict-aliasing.
14985
04695783
JM
149862011-04-20 Jim Meyering <meyering@redhat.com>
14987
14988 Remove useless if-before-free tests.
14989 * calls.c (expand_call, save_area): Likewise.
14990 * cfgcleanup.c (try_forward_edges): Likewise.
14991 * collect2.c (collect_execute): Likewise.
14992 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
14993 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
14994 * coverage.c (coverage_checksum_string): Likewise.
14995 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
14996 * cselib.c (cselib_init): Likewise.
14997 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
14998 (df_set_clean_cfg): Likewise.
14999 * function.c (free_after_compilation): Likewise.
15000 * gcc.c (do_spec_1, main): Likewise.
15001 * gcov.c (create_file_names): Likewise.
15002 * gensupport.c (identify_predicable_attribute): Likewise.
15003 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
15004 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
15005 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
15006 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
15007 * ipa-pure-const.c (local_pure_const): Likewise.
15008 * ipa-reference.c (propagate): Likewise.
15009 * ira-costs.c (free_ira_costs): Likewise.
15010 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
15011 * matrix-reorg.c (mat_free): Likewise.
15012 * prefix.c (get_key_value): Likewise.
15013 * profile.c (compute_value_histograms): Likewise.
15014 * reload1.c (free_reg_equiv): Likewise.
15015 * sched-deps.c (free_deps): Likewise.
15016 * sel-sched-ir.c (fence_clear): Likewise.
15017 * sese.c (set_rename, if_region_set_false_region): Likewise.
15018 * tree-data-ref.c (free_rdg): Likewise.
15019 * tree-eh.c (lower_try_finally): Likewise.
15020 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
15021 * tree-ssa-live.c (delete_var_map): Likewise.
15022 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
15023 * tree-ssa-pre.c (phi_trans_add): Likewise.
15024
6788475a
JJ
150252011-04-20 Jakub Jelinek <jakub@redhat.com>
15026
15027 PR tree-optimization/48611
15028 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
15029 beyond ERT_MUST_NOT_THROW region.
15030
0eda4033
CM
150312011-04-20 Catherine Moore <clm@codesourcery.com>
15032
15033 * config/mips/mips.opt (mfix-24k): New.
15034 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
15035 * config/mips/mips.md (length): Increase by 4 for stores if
15036 fixing 24K errata.
15037 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
15038 all noreorder if fixing 24K errata.
15039 * doc/invoke.texi: Document mfix-24k.
15040
01475747
CLT
150412011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
15042
15043 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 15044 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 15045
bc2c1a60
AS
150462011-04-20 Andrew Stubbs <ams@codesourcery.com>
15047
15048 * config/arm/arm.c (arm_gen_constant): Move movw support ....
15049 (const_ok_for_op): ... to here.
15050
583722ee
KT
150512011-04-20 Kai Tietz <ktietz@redhat.com>
15052
2894086e
UB
15053 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
15054 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 15055
422c0989
AS
150562011-04-20 Andrew Stubbs <ams@codesourcery.com>
15057
15058 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
15059
d7978bff
RG
150602011-04-20 Richard Guenther <rguenther@suse.de>
15061
15062 PR tree-optimization/47892
15063 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
15064 are if-convertible.
15065
818412ba
EB
150662011-04-20 Eric Botcazou <ebotcazou@adacore.com>
15067
15068 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
15069
b501ce4e
TG
150702011-04-20 Tristan Gingold <gingold@adacore.com>
15071
15072 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
15073
516edfdd
GJL
150742011-04-20 Georg-Johann Lay <avr@gjlay.de>
15075
15076 PR target/18145
15077
15078 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
15079 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
15080 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
15081 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
15082 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
15083
15084 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
15085 New prototype.
15086
15087 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
15088 (avr_asm_named_section, avr_asm_output_aligned_common,
15089 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
15090 New functions to update...
15091 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
15092 (avr_asm_init_sections): Overwrite section callbacks for
15093 data_section, bss_section.
15094 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
15095 from here to...
15096 (avr_file_end): ...here.
15097
dafc9511
RG
150982011-04-20 Richard Guenther <rguenther@suse.de>
15099
15100 PR middle-end/48695
15101 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 15102 objects and types here. Adjust for their offset before comparing.
dafc9511 15103
1da0876c
RS
151042011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15105
15106 * tree-vect-stmts.c (vectorizable_store): Only chain one related
15107 statement per copy.
15108
25583c4f
RS
151092011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15110
15111 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
15112 (GIMPLE_H): Include $(INTERNAL_FN_H).
15113 (OBJS-common): Add internal-fn.o.
15114 (internal-fn.o): New rule.
15115 * internal-fn.def: New file.
15116 * internal-fn.h: Likewise.
15117 * internal-fn.c: Likewise.
15118 * gimple.h: Include internal-fn.h.
15119 (GF_CALL_INTERNAL): New gf_mask.
15120 (gimple_statement_call): Put fntype into a union with a new
15121 internal_fn field.
15122 (gimple_build_call_internal): Declare.
15123 (gimple_build_call_internal_vec): Likewise.
15124 (gimple_call_same_target_p): Likewise.
15125 (gimple_call_internal_p): New function.
15126 (gimple_call_internal_fn): Likewise.
15127 (gimple_call_fntype): Return null for internal calls.
15128 (gimple_call_set_fntype): Assert that the function is not internal.
15129 (gimple_call_set_fn): Likewise.
15130 (gimple_call_set_fndecl): Likewise.
15131 (gimple_call_set_internal_fn): New function.
15132 (gimple_call_addr_fndecl): Handle null functions.
15133 (gimple_call_return_type): Likewise null types.
15134 * gimple.c (gimple_build_call_internal_1): New function.
15135 (gimple_build_call_internal): Likewise.
15136 (gimple_build_call_internal_vec): Likewise.
15137 (gimple_call_same_target_p): Likewise.
15138 (gimple_call_flags): Handle calls to internal functions.
15139 (gimple_call_fnspec): New function.
15140 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
15141 (gimple_has_side_effects): Handle null functions.
15142 (gimple_rhs_has_side_effects): Likewise.
15143 (gimple_call_copy_skip_args): Handle calls to internal functions.
15144 * cfgexpand.c (expand_call_stmt): Likewise.
15145 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
15146 * gimple-fold.c (gimple_fold_call): Handle null functions.
15147 (gimple_fold_stmt_to_constant_1): Don't fold
15148 calls to internal functions.
15149 * gimple-low.c (gimple_check_call_args): Handle calls to internal
15150 functions.
15151 * gimple-pretty-print.c (dump_gimple_call): Likewise.
15152 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
15153 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
15154 (do_warn_unused_result): Likewise.
15155 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
15156 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
15157 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
15158 the target of a call.
15159 (initialize_hash_element): Update accordingly.
15160 (hashable_expr_equal_p): Use gimple_call_same_target_p.
15161 (iterative_hash_hashable_expr): Handle calls to internal functions.
15162 (print_expr_hash_elt): Likewise.
15163 * tree-ssa-pre.c (can_value_number_call): Likewise.
15164 (eliminate): Handle null functions.
15165 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
15166 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
15167 (find_func_aliases): Likewise.
15168 * value-prof.c (gimple_ic_transform): Likewise.
15169 (gimple_indirect_call_to_profile): Likewise.
15170 * lto-streamer-in.c (input_gimple_stmt): Likewise.
15171 * lto-streamer-out.c (output_gimple_stmt): Likewise.
15172
1a3118e9
JH
151732011-04-19 Jan Hubicka <jh@suse.cz>
15174
15175 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
15176 * ipa-inline.c (inline_small_functions): Compute summaries first,
15177 populate heap later.
1a3118e9 15178
fee8b6da
JH
151792011-04-19 Jan Hubicka <jh@suse.cz>
15180
15181 * cgraph.h (save_inline_function_body): Remove.
15182 * ipa-inline-transform.c: New file, broke out of...
15183 * ipa-inline.c: ... this one; Update toplevel comment.
15184 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
15185 make global.
15186 (update_noncloned_frequencies): Move to ipa-inline-transform.c
15187 (cgraph_mark_inline_edge): Rename to inline_call; move to
15188 ipa-inline-transform.c.
15189 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
15190 move to ipa-inline-transform.c
15191 (recursive_inlining, inline_small_functions, flatten_function,
15192 ipa_inline, inline_always_inline_functions,
15193 early_inline_small_functions): Update.
15194 (inline_transform): Move to ipa-inline-transform.c.
15195 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
15196 Declare.
15197 * Makefile.in (ipa-inline-transform.o): New file.
15198 * cgraphunit.c (save_inline_function_body): Move to
15199 ipa-inline-transform.c
15200
f0679612
DD
152012011-04-19 DJ Delorie <dj@redhat.com>
15202
15203 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
15204 registers if we already know there aren't any.
15205 (m32c_emit_epilogue): Don't emit a barrier here.
15206 (m32c_emit_eh_epilogue): Likewise.
15207 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
15208 operands at expand time.
15209 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
15210 int" wchar type.
15211 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
15212 duplicates. Provide aliases instead.
15213 * config/m32c/prologue.md (eh_return): Emit a barrier here.
15214 (eh_epilogue): Add a "(return)" here as a hint to other parts of
15215 the compiler.
15216
32257ddc
AS
152172011-04-19 Anatoly Sokolov <aesok@post.ru>
15218
15219 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
15220 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
15221 (general_or_i64_p, sparc_register_move_cost): New function.
15222
60bea929
RO
152232011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15224
15225 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 15226 Add lynx, mipssde. Sort table.
60bea929 15227
444b3995 152282011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 15229
9d12f71a
EB
15230 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
15231 not negative.
444b3995 15232
d708ce50
JJ
152332011-04-19 Jakub Jelinek <jakub@redhat.com>
15234
15235 PR target/48678
15236 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
15237 is a SUBREG with non-MODE_INT mode inside of it.
15238
49c471e3
MJ
152392011-04-19 Martin Jambor <mjambor@suse.cz>
15240
15241 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
15242 also according to actual contants.
15243 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
15244 (gimple_fold_call): Use it.
15245 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
15246
0004f992
MJ
152472011-04-19 Martin Jambor <mjambor@suse.cz>
15248
15249 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
15250 non-pointer assignments.
15251
40591473
MJ
152522011-04-19 Martin Jambor <mjambor@suse.cz>
15253
15254 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
15255 account anc_offset and otr_type from the indirect edge info.
15256 * ipa-prop.c (get_ancestor_addr_info): New function.
15257 (compute_complex_ancestor_jump_func): Assignment analysis moved to
15258 get_ancestor_addr_info, call it.
15259 (ipa_note_param_call): Do not initialize information about polymorphic
15260 calls, return the indirect call graph edge. Remove the last
15261 parameter, adjust all callers.
15262 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
15263 parameters. Initialize polymorphic information in the indirect edge.
15264
abe36b81
EB
152652011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15266
15267 PR lto/48148
15268 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
15269 the types if they have different enumeration identifiers.
15270
e6416b30
JH
152712011-04-19 Jan Hubicka <jh@suse.cz>
15272
15273 * cgraph.h (cgraph_optimize_for_size_p): Declare.
15274 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
15275 * predict.c (cgraph_optimize_for_size_p): Break out from ...
15276 (optimize_function_for_size_p) ... here.
15277
d39132ea
RG
152782011-04-19 Richard Guenther <rguenther@suse.de>
15279
15280 PR lto/48207
15281 * tree.c (free_lang_data): Do not reset the decl-assembler-name
15282 langhook.
15283
ff7037dc
EB
152842011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15285
15286 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
15287 if DECL_NO_INLINE_WARNING_P is set on the function.
15288
c1ee2892
BS
152892011-04-19 Bernd Schmidt <bernds@codesourcery.com>
15290
15291 PR fortran/47976
15292 * reload1.c (inc_for_reload): Return void. All callers changed.
15293 (emit_input_reload_insns): Don't try to delete previous output
15294 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
15295
152962011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
15297
15298 * gengtype.h: Updated copyright year.
15299 (struct input_file_st): Add inpisplugin field.
15300 (type_fileloc): New function.
15301 * gengtype.c
15302 (write_typed_struct_alloc_def): Add gcc_assert.
15303 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
15304 (write_typed_alloc_defns): Don't output for plugin files.
15305 (input_file_by_name): Clear inpisplugin field.
15306 (main): Set inpisplugin field for plugin files.
15307
897e0a89
NP
153082011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
15309
15310 * gengtype-state.c (string_eq): New.
15311 (read_state): Use string_eq instead of strcmp when creating the
15312 state_ident_tab.
15313
363ee90e
WG
153142011-04-19 Wei Guozhi <carrot@google.com>
15315
15316 PR target/47855
15317 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
15318 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
15319 linkage.
15320 * config/arm/constraints.md (Uu): New constraint.
15321 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
15322
18a24fed
TG
153232011-04-19 Tristan Gingold <gingold@adacore.com>
15324
15325 * config.gcc (-*-*-*vms): Added.
15326 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
15327 definitions moved.
15328 * config/vms/vms-ld.c: New file.
15329 * config/vms/vms-ar.c: New file.
15330 * config/vms/t-vmsnative: New file.
15331
1c13f168
XDL
153322011-04-18 Xinliang David Li <davidxl@google.com>
15333
15334 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
15335
84825707
JJ
153362011-04-18 Jakub Jelinek <jakub@redhat.com>
15337
15338 PR middle-end/48661
15339 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
15340 if TREE_TYPE (v) is non-NULL.
15341
15342 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
15343 gimple_get_virt_mehtod_for_binfo.
15344 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
15345 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
15346 callers.
15347 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15348
7d4f8d02 153492011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
15350 Steve Ellcey <sje@cup.hp.com>
15351
7d4f8d02
EB
15352 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
15353 use its mode as source mode if it isn't VOIDmode.
7254cb57 15354
474e8e70
DCR
153552011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
15356
15357 * doc/passes.texi: Fill crossref nodes.
15358
cff41484
JM
153592011-04-18 Jim Meyering <meyering@redhat.com>
15360
7d4f8d02 15361 Fix doubled-word typos in comments and strings
cff41484
JM
15362 * config/alpha/vms-unwind.h: s/for for/for/
15363 * config/arm/unwind-arm.h: Likewise.
15364 * config/microblaze/microblaze.c: Likewise.
15365 * config/sh/constraints.md: s/in in/in/
15366 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
15367
f60c2554
UB
153682011-04-18 Uros Bizjak <ubizjak@gmail.com>
15369
15370 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
15371 (AVX_FLOAT_MODE_P): Ditto.
15372 (AVX128_VEC_FLOAT_MODE_P): Ditto.
15373 (AVX256_VEC_FLOAT_MODE_P): Ditto.
15374 (AVX_VEC_FLOAT_MODE_P): Ditto.
15375 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
15376 (UNSPEC_MASKSTORE): Ditto.
15377 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
15378 Merge from <sse>_movmsk<ssemodesuffix> and
15379 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
15380 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
15381 iterator.
15382 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
15383 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
15384 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
15385
09a2806f
JH
153862011-04-18 Jan Hubicka <jh@suse.cz>
15387
8a8dccb2
JH
15388 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
15389
09a2806f
JH
15390 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
15391 (want_inline_function_called_once_p): Break out the logic from
15392 ipa_inline.
15393 (edge_badness): Ensure that profile is not misupdated.
15394 (lookup_recursive_calls): Prioritize by call frequencies.
15395 (inline_small_functions): Move program size estimates here;
15396 actually process whole queue even when unit growth has been
15397 met. (to properly compute inline_failed reasons and for the
f60c2554 15398 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
15399 (ipa_inline): Remove unit summary code; first inline hot calls
15400 of functions called once, cold calls next.
15401 (order, nnodes): Remove unused variables.
15402 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
15403 (GTFILES): Remove ipa-inline.c
15404 * sel-sched.c (fill_insns): Silence uninitialized var warning.
15405
3eea52ef
EB
154062011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15407
15408 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
15409
229a1c59 154102011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 15411 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
15412
15413 * arm.c (neon_builtin_type_bits): Remove.
15414 (typedef enum neon_builtin_mode): New.
15415 (T_MAX): Don't define.
15416 (typedef enum neon_builtin_datum): Remove bits, codes[],
15417 num_vars and base_fcode. Add mode, code and fcode.
15418 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
15419 VAR10): Change accordingly.
15420 (neon_builtin_data[]): Change accordingly
15421 (arm_init_neon_builtins): Change accordingly.
15422 (neon_builtin_compare): Remove.
15423 (locate_neon_builtin_icode): Remove.
15424 (arm_expand_neon_builtin): Change accordingly.
15425
15426 * arm.h (enum arm_builtins): Move to ...
15427 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
15428
15429 * arm.c (arm_builtin_decl): Declare.
15430 (TARGET_BUILTIN_DECL): Define.
15431 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
15432 (arm_builtin_decls[]): New.
15433 (arm_init_neon_builtins): Store builtin declarations in
15434 arm_builtin_decls[].
15435 (arm_init_tls_builtins): Likewise.
15436 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
15437 (arm_builtin_decl): New.
15438
75e802cc
RG
154392011-04-18 Richard Guenther <rguenther@suse.de>
15440
15441 * tree.c (upper_bound_in_type): Build properly canonicalized
15442 INTEGER_CSTs.
15443 (lower_bound_in_type): Likewise.
15444
3b45a007
RG
154452011-04-18 Richard Guenther <rguenther@suse.de>
15446
15447 * gimple.h (gimple_call_addr_fndecl): New function.
15448 (gimple_call_fndecl): Use it.
15449 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
15450 for direct calls.
15451 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
15452 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
15453
d25a79ea
RG
154542011-04-18 Richard Guenther <rguenther@suse.de>
15455
15456 PR middle-end/48650
15457 * tree.c (build_string): STRING_CST is now derived from tree_typed.
15458
7d5fc814
EB
154592011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15460
15461 PR lto/48492
15462 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
15463 DECL_IN_CONSTANT_POOL without RTL.
15464
7e7cfcf6
UW
154652011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
15466 Ira Rosen <ira.rosen@linaro.org>
15467
15468 PR target/48252
15469 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
15470 to match neon_vzip/vuzp/vtrn_internal.
15471 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
15472 outputs explicitly dependent on both inputs.
15473 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
15474
49eab32e
JJ
154752011-04-18 Jakub Jelinek <jakub@redhat.com>
15476
15477 PR tree-optimization/48616
15478 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
15479 whether the shift is by scalar or vector based on whether all SLP
15480 scalar stmts have the same rhs.
15481
e54170f4
CLT
154822011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
15483
15484 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
15485 memory operands.
15486
b14ee6c9
RS
154872011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
15488
269e0e18 15489 PR target/43700
b14ee6c9
RS
15490 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
15491 registers.
15492
10158cd3
JH
154932011-04-17 Jan Hubicka <jh@suse.cz>
15494
15495 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
15496 * cgrpahunit.c (cgraph_finalize_function): Do not set
15497 finalized_by_frontend.
10158cd3
JH
15498 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15499 finalized_by_frontend.
15500
2e9bb6ba
JH
155012011-04-17 Jan Hubicka <jh@suse.cz>
15502
15503 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
15504 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
15505 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
15506 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
15507 method.
2e9bb6ba
JH
15508 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
15509 gimple-fold.c
15510 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
15511
beb628e1
EB
155122011-04-17 Eric Botcazou <ebotcazou@adacore.com>
15513
15514 PR lto/48538
15515 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
15516 is non-null before accessing it.
15517 (input_cgraph): Remove trailing spaces.
15518
3e2fdd24
RE
155192011-04-17 Revital Eres <revital.eres@linaro.org>
15520
15521 * params.def (sms-min-sc): New param flag.
15522 * modulo-sched.c (sms_schedule): Use it.
15523 * doc/invoke.texi (sms-min-sc): Document it.
15524
4c0f7679
JH
155252011-04-17 Jan Hubicka <jh@suse.cz>
15526
15527 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
15528 present, also set gimple_call_set_cannot_inline.
15529 * ipa-inline.c: Update toplevel comment.
15530 (MAX_TIME): Remove.
15531 (cgraph_clone_inlined_nodes): Fix linebreaks.
15532 (cgraph_check_inline_limits): Restructure to ...
15533 (caller_growth_limits): ... this one; be more tolerant
15534 on growth in nested inline chains; add explanatory comment;
15535 fix stack accounting thinko introduced by previous patch.
15536 (cgraph_default_inline_p): Remove.
15537 (report_inline_failed_reason): New function.
15538 (can_inline_edge_p): New function.
15539 (can_early_inline_edge_p): New function.
15540 (leaf_node_p): Move upwards in file.
15541 (want_early_inline_function_p): New function.
15542 (want_inline_small_function_p): New function.
15543 (want_inline_self_recursive_call_p): New function.
15544 (cgraph_edge_badness): Rename to ...
15545 (edge_badness) ... this one; fix linebreaks.
15546 (update_edge_key): Update call of edge_baddness; add
15547 detailed dump about queue updates.
15548 (update_caller_keys): Use can_inline_edge_p and
15549 want_inline_small_function_p.
15550 (cgraph_decide_recursive_inlining): Rename to...
15551 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
15552 want_inline_self_recursive_call_p; simplify and remove no longer
15553 valid FIXME.
4c0f7679
JH
15554 (cgraph_set_inline_failed): Remove.
15555 (add_new_edges_to_heap): Use can_inline_edge_p and
15556 want_inline_small_function_p.
15557 (cgraph_decide_inlining_of_small_functions): Rename to ...
15558 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
15559 can/want predicates; cleanup debug ouput; work edges till fibheap
15560 is exhausted and do not stop once unit growth is reached; remove
15561 later loop processing remaining edges.
4c0f7679
JH
15562 (cgraph_flatten): Rename to ...
15563 (flatten_function): ... this one; use can_inline_edge_p
15564 and can_early_inline_edge_p predicates.
15565 (cgraph_decide_inlining): Rename to ...
15566 (ipa_inline): ... this one; remove unreachable nodes before
15567 inlining functions called once; simplify the pass.
15568 (cgraph_perform_always_inlining): Rename to ...
15569 (inline_always_inline_functions): ... this one; use
f60c2554 15570 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
15571 (cgraph_decide_inlining_incrementally): Rename to ...
15572 (early_inline_small_functions): ... this one; simplify
15573 using new predicates; cleanup; make dumps prettier.
15574 (cgraph_early_inlining): Rename to ...
15575 (early_inliner): newer inline regular functions into always-inlines;
15576 fix updating of call stmt summaries.
15577 (pass_early_inline): Update for new names.
15578 (inline_transform): Fix formating.
15579 (gate_cgraph_decide_inlining): Rename to ...
15580 (pass_ipa_inline): ... this one.
15581 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
15582 * ipa-inline-analysis.c (dump_inline_summary): Update.
15583 (compute_inline_parameters): Do not compute disregard_inline_limits;
15584 look for mismatching arguments.
15585 (estimate_growth): Fix handlig of non-trivial self recursion.
15586 (inline_read_summary): Do not read info->disregard_inline_limits.
15587 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
15588 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
15589 and move all checks into can_inline_edge_p predicate; re-enable code
15590 comparing optimization levels.
4c0f7679
JH
15591 (expand_call_inline): Do not test inline_forbidden_into_p.
15592 * Makefile.in (ipa-inline.o): Update arguments.
15593
54333b7c
RE
155942011-04-17 Revital Eres <revital.eres@linaro.org>
15595
15596 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
15597
42c2bf92
RE
155982011-04-17 Revital Eres <revital.eres@linaro.org>
15599
15600 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
15601
b183e9e0
MM
156022011-04-17 Michael Matz <matz@suse.de>
15603
15604 PR tree-optimization/48622
15605 PR lto/48645
15606 * ipa-inline-analysis.c (inline_read_summary): Read size/time
15607 in same order as they're written.
15608
b8a17fa2
JDA
156092011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15610
15611 * config/pa/predicates.md: Reorganize and simplify predicates.
15612 Eliminate duplicate code checks.
15613 (arith_operand): Rename to arith14_operand
15614 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
15615 * config/pa/pa.md: Use renamed operands.
15616 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
15617 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
15618 arith11_operand, adddi3_operand, indexed_memory_operand,
15619 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
15620 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
15621 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
15622 move_dest_operand, move_src_operand, prefetch_cc_operand,
15623 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
15624 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
15625 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
15626 div_operand, int5_operand, movb_comparison_operator,
15627 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
15628 arith_double_operand, ireg_operand, lhs_lshift_operand,
15629 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
15630 integer_store_memory_operand): Likewise.
15631 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
15632 (integer_store_memory_operand, read_only_operand,
15633 function_label_operand, borx_reg_operand,
15634 non_hard_reg_operand): Likewise.
15635 (eq_neq_comparison_operator): Delete unused operator.
15636 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
15637 function_label_operand.
15638 (emit_move_sequence): Likewise.
15639
8dfb9f16
UB
156402011-04-16 Uros Bizjak <ubizjak@gmail.com>
15641
15642 * config/i386/sse.md (sseunpackmode): New mode attribute.
15643 (ssepackmode): Ditto.
15644 (vec_pack_trunc_<mode>): Macroize expander from
15645 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
15646 (vec_unpacks_lo_<mode>): Macroize expander from
15647 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15648 (vec_unpacks_hi_<mode>): Macroize expander from
15649 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15650 (vec_unpacku_lo_<mode>): Macroize expander from
15651 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15652 (vec_unpacku_hi_<mode>): Macroize expander from
15653 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15654 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
15655 ix86_expand_sse4_unpack.
15656 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
15657
e7f23018
JH
156582011-04-16 Jan Hubicka <jh@suse.cz>
15659
15660 * cgraphbuild.c: Include ipa-inline.h.
15661 (reset_inline_failed): Use initialize_inline_failed.
15662 * cgraph.c: Include ipa-inline.h.
15663 (cgraph_create_node_1): Do not initialize estimated_growth.
15664 (initialize_inline_failed): More to ipa-inline-analysis.c
15665 (dump_cgraph_node): Do not dump inline flags.
15666 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
15667 and disregard_inline_limits flags.
15668 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
15669 time, size, estimated_growth.
8dfb9f16
UB
15670 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
15671 Update.
e7f23018
JH
15672 * cgraphunit.c (cgraph_decide_is_function_needed): Use
15673 DECL_DISREGARD_INLINE_LIMITS.
15674 (cgraph_analyze_function): Do not initialize
15675 node->local.disregard_inline_limits.
15676 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15677 inlinable, versionable and disregard_inline_limits.
15678 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
15679 cgraph_check_inline_limits, cgraph_default_inline_p,
15680 cgraph_edge_badness, update_caller_keys, update_callee_keys,
15681 add_new_edges_to_heap): Update.
15682 (cgraph_decide_inlining_of_small_function): Update; set
15683 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
15684 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
15685 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
15686 * ipa-inline.h (inline_summary): Add inlinable, versionable,
15687 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
15688 time, size and estimated_growth parameters.
e7f23018
JH
15689 (estimate_edge_growth): Update.
15690 (initialize_inline_failed): Declare.
15691 * ipa-split.c: Include ipa-inline.h
15692 (execute_split_functions): Update.
15693 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
15694 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
15695 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
15696 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
15697 estimated_growth to INT_MIN.
15698 (inline_node_duplication_hook): Likewise.
15699 (dump_inline_summary): Dump new fields.
15700 (compute_inline_parameters): Update.
15701 (estimate_edge_time, estimate_time_after_inlining,
15702 estimate_size_after_inlining, estimate_growth, inline_read_summary,
15703 inline_write_summary):
15704 (initialize_inline_failed): Move here from cgraph.c.
15705 * tree-sra.c: Include ipa-inline.h.
15706 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
15707 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
15708 ipa-inline.h.
e7f23018 15709
e81b8564
UB
157102011-04-16 Uros Bizjak <ubizjak@gmail.com>
15711
15712 * config/i386/sse.md (V16): New mode iterator.
15713 (VI1, VI8): Ditto.
15714 (AVXMODEQI, AVXMODEDI): Remove.
15715 (sse2, sse3): New mode attribute.
15716 (mov<mode>): Use V16 mode iterator.
15717 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
15718 (push<mode>1): Use V16 mode iterator.
15719 (movmisalign<mode>): Ditto.
15720 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15721 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
15722 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15723 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
15724 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
15725 avx_movdqu<avxmodesuffix>.
15726 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
15727 *avx_movdqu<avxmodesuffix>.
15728 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
15729 avx_lddqu<avxmodesuffix>.
15730 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
15731 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
15732 avx_movnt<AVXMODEDI:mode>.
15733 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
15734 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
15735
4743d438
BS
157362011-04-16 Bernd Schmidt <bernds@codesourcery.com>
15737
15738 PR target/48629
15739 * haifa-sched.c (prune_ready_list, schedule_block): Use
15740 sched_pressure_p rather than flag_sched_pressure.
15741
748f7574 157422011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
15743
15744 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
15745 cgraph_get_node instead of cgraph_get_create_node.
15746
2ba172e0
JJ
157472011-04-15 Jakub Jelinek <jakub@redhat.com>
15748
15749 * cfgexpand.c (expand_debug_expr): Use
15750 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
15751
63d2a353
MM
157522011-04-15 Michael Matz <matz@suse.de>
15753
15754 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
15755 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
15756 * function.c (gimplify_parameters): Ditto.
15757 * gimplify.c (gimplify_vla_decl): Ditto.
15758
15759 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
15760 (gimple_call_set_alloca_for_var): New inline function.
15761 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
15762 * gimple.c (gimple_build_call_from_tree): Remember
15763 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
15764 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
15765
15766 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
15767 calls if they were for VLA objects.
15768
dee74c34
MJ
157692011-04-15 Martin Jambor <mjambor@suse.cz>
15770
15771 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
15772 of ADR_EXPRs.
15773
8e5837bc
MJ
157742011-04-15 Martin Jambor <mjambor@suse.cz>
15775
15776 PR middle-end/48601
15777 * tree-emutls.c (lower_emutls_function_body): Call
15778 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
15779 result is non-NULL.
15780
0dc33c3c
NP
157812011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
15782
15783 * c-decl.c (detect_field_duplicates): Call
15784 objc_detect_field_duplicates instead of objc_get_interface_ivars.
15785
edcdea5b
NF
157862011-04-15 Nathan Froyd <froydnj@codesourcery.com>
15787
15788 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
15789 * gimple.c (gimple_asm_clobbers_memory_p): Define.
15790 * ipa-pure-const.c (check_stmt): Call it.
15791 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
15792
8456558d
RG
157932011-04-15 Richard Guenther <rguenther@suse.de>
15794
15795 PR tree-optimization/48290
15796 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
15797 Properly decide inhibiting propagation based on the valueized
15798 operand. Do loop-closed SSA form preserving here ...
15799 (init_copy_prop): ... not here.
15800
266446be
L
158012011-04-15 H.J. Lu <hongjiu.lu@intel.com>
15802
15803 PR target/48612
15804 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
15805 (*ieee_smax<mode>3): Likewise.
15806
17465c6e
AK
158072011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15808
15809 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
15810 Replace match_operand with match_dup for the third operand in
15811 these expanders.
15812
bce204e5
MK
158132011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15814
15815 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
15816 to track processing of conditionals. Update all callers.
15817 (try_combine, simplify_if_then_else): Update.
15818
3162fdf4
MK
158192011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15820
15821 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
15822 -fsched-pressure.
15823
79002a57 158242011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 15825
79002a57
GJL
15826 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
15827 instead of match_operand for operand 3.
15828
4fd3a105
RS
158292011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
15830
15831 * recog.h (insn_operand_data): Add an "allows_mem" field.
15832 * genoutput.c (output_operand_data): Initialize it.
15833 * optabs.c (maybe_legitimize_operand_same_code): New function.
15834 (maybe_legitimize_operand): Use it when matching the original
15835 op->value.
15836
ad19c4be
EB
158372011-04-15 Eric Botcazou <ebotcazou@adacore.com>
15838
15839 * gimplify.c: Fix issues in comments throughout.
15840 (voidify_wrapper_expr): Fix long line.
15841 (build_stack_save_restore): Likewise.
15842 (gimplify_loop_expr): Likewise.
15843 (gimplify_compound_lval): Likewise.
15844 (gimplify_init_ctor_eval): Likewise.
15845 (gimplify_modify_expr_rhs): Likewise.
15846 (omp_notice_threadprivate_variable): Likewise.
15847
b25aa0e8 158482011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 15849
b25aa0e8
EB
15850 * cfgexpand.c (expand_call_stmt): Convert the function type to the
15851 original one if this is not a builtin function.
e7925582 15852
09db7afe
JJ
158532011-04-14 Jakub Jelinek <jakub@redhat.com>
15854
15855 PR target/48605
15856 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
15857 offset it as needed based on top 2 bits in operands[3], change
15858 MEM mode to SFmode and mask those 2 bits away from operands[3].
15859
c59633d9
NP
158602011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
15861
15862 * c-parser.c (c_parser_objc_protocol_definition): Updated for
15863 change from objc_declare_protocols() to objc_declare_protocol().
15864
5e60198b
UB
158652011-04-14 Uros Bizjak <ubizjak@gmail.com>
15866
15867 * config/i386/sse.md (sse4_1): New mode attribute.
15868 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
15869 avx_blend<ssemodesuffix><avxmodesuffix> and
15870 sse4_1_blend<ssemodesuffix> using VF mode iterator.
15871 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
15872 avx_blendv<ssemodesuffix><avxmodesuffix> and
15873 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
15874 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
15875 avx_dp<ssemodesuffix><avxmodesuffix> and
15876 sse4_1_dp<ssemodesuffix> using VF mode iterator.
15877 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
15878 (sse4_1_packusdw): Merge with *avx_packusdw.
15879 (sse4_1_pblendvb): Merge with *avx_pblendvb.
15880 (sse4_1_pblendw): Merge with *avx_pblendw.
15881 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
15882 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
15883 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
15884 VF mode iterator.
15885 (sse4_1_round<ssescalarmodesuffix>): Merge with
15886 *avx_round<ssescalarmodesuffix>.
15887 (aesenc): Merge with *avx_aesenc.
15888 (aesenclast): Merge with *avx_aesenclast.
15889 (aesdec): Merge with *avx_aesdec.
15890 (aesdeclast): Merge with *avx_aesdeclast.
15891 (pclmulqdq): Merge with *pclmulqdq.
15892 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
15893 New predicate.
15894 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
15895
6f197850
L
158962011-04-14 H.J. Lu <hongjiu.lu@intel.com>
15897
15898 PR middle-end/48608
15899 * cfgexpand.c (get_decl_align_unit): Renamed to ...
15900 (align_local_variable): This. Update DECL_ALIGN.
15901 (add_stack_var): Updated.
15902 (expand_one_stack_var): Likewise.
15903
4a5ba3ed
RG
159042011-04-14 Richard Guenther <rguenther@suse.de>
15905
15906 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
15907 Remove.
15908 (dse_initialize_block_local_data, dse_leave_block,
15909 record_voperand_set, get_stmt_uid): Likewise.
15910 (dse_possible_dead_store_p): Allow any kind of killing stmt.
15911 (dse_optimize_stmt): Remove voperand set handling code.
15912 Simplify and improve to handle any kind of killing stmt.
15913 (dse_record_phi): Remove.
15914 (dse_enter_block): Simplify.
15915 (tree_ssa_dse): Likewise.
15916 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
15917
10a5dd5d
JH
159182011-04-14 Jan Hubicka <jh@suse.cz>
15919
15920 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
15921 * cgraph.h (struct inline_summary): Move to ipa-inline.h
15922 (cgraph_local_info): Remove inline_summary.
15923 * ipa-cp.c: Include ipa-inline.h.
15924 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
15925 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
15926 accesor.
15927 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
15928 (input_overwrite_node): Do not set inline summary.
15929 (input_node): Do not stream inline summary.
15930 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
15931 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
15932 growth; we do not have inline parameters computed for that anyway.
15933 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
15934 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
15935 (inline_summary_t): New type and VECtor.
15936 (debug_inline_summary, dump_inline_summaries): Declare.
15937 (inline_summary): Use VOCtor.
15938 (estimate_edge_growth): Kill hack computing call stmt size directly.
15939 * lto-section-in.c (lto_section_name): Add inline section.
15940 * ipa-inline-analysis.c: Include lto-streamer.h
15941 (node_removal_hook_holder, node_duplication_hook_holder): New holders
15942 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
15943 (inline_summary_vec): Define.
15944 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
15945 dump_inline_summaries): New functions.
5e60198b
UB
15946 (estimate_function_body_sizes): Properly compute size/time of outgoing
15947 calls.
15948 (compute_inline_parameters): Alloc inline_summary; do not compute
15949 size/time of incomming calls.
10a5dd5d
JH
15950 (estimate_edge_time): Avoid missing time summary hack.
15951 (inline_read_summary): Read inline summary info.
15952 (inline_write_summary): Write inline summary info.
15953 (inline_free_summary): Free all hooks and inline summary vector.
15954 * lto-streamer.h: Add LTO_section_inline_summary section.
15955 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
15956 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
15957
b602d918
RS
159582011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15959
15960 * tree-vectorizer.h (vect_strided_store_supported): Add a
15961 HOST_WIDE_INT argument.
15962 (vect_strided_load_supported): Likewise.
15963 (vect_permute_store_chain): Return void.
15964 (vect_transform_strided_load): Likewise.
15965 (vect_permute_load_chain): Delete.
15966 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
15967 count argument. Check that the count is a power of two.
15968 (vect_strided_load_supported): Likewise.
15969 (vect_permute_store_chain): Return void. Update after above changes.
15970 Assert that the access is supported.
15971 (vect_permute_load_chain): Likewise.
15972 (vect_transform_strided_load): Return void.
15973 * tree-vect-stmts.c (vectorizable_store): Update calls after
15974 above interface changes.
15975 (vectorizable_load): Likewise.
15976 (vect_analyze_stmt): Don't check for strided powers of two here.
15977
ab4472fa
RG
159782011-04-14 Richard Guenther <rguenther@suse.de>
15979
15980 PR tree-optimization/48590
15981 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15982 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15983 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
15984 BUILT_IN_STACK_SAVE.
15985 * tree-ssa-dce.c (propagate_necessity): Handle
15986 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15987
32dabdaf
NP
159882011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
15989
15990 * c-parser.c (c_parser_objc_class_declaration): Updated call to
15991 objc_declare_class.
15992
daade206
RG
159932011-04-14 Richard Guenther <rguenther@suse.de>
15994
15995 * tree.h (get_object_alignment_1): Declare.
15996 * builtins.c (get_object_alignment_1): Split out worker from ...
15997 (get_object_alignment): ... here.
15998 * fold-const.c (get_pointer_modulus_and_residue): Use
15999 get_object_alignment_1.
16000
920e8172
RS
160012011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16002
16003 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
16004 type parameter.
16005 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
16006 parameter. Generalise code to handle arrays as well as vectors.
16007 (vect_setup_realignment): Update accordingly.
16008 * tree-vect-stmts.c (vectorizable_store): Likewise.
16009 (vectorizable_load): Likewise.
16010
5ce1ee7f
RS
160112011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
16012
16013 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
16014 within the per-copy loop.
16015
6438fe33 160162011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
16017
16018 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
16019 in the dump file.
16020
6438fe33 160212011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
16022
16023 * doc/options.texi (Negative): Explicitly mention that the
16024 Negative chain must be circular.
16025
61e46a7d
NF
160262011-04-14 Nathan Froyd <froydnj@codesourcery.com>
16027
16028 * function.h (block_chainon): Declare.
16029 * function.c (block_chainon): Define.
16030
43ea6502 160312011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 16032 Eric Weddington <eric.weddington@atmel.com>
748f7574 16033 Georg-Johann Lay <avr@gjlay.de>
5e60198b 16034
f60c2554 16035 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
16036 New Includes
16037 (avr_init_builtins, avr_expand_builtin,
16038 avr_expand_delay_cycles, avr_expand_unop_builtin,
16039 avr_expand_binop_builtin ): New functions.
16040 (avr_builtin_id): New enum
16041 (struct avr_builtin_description): New struct
16042 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
16043 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 16044
43ea6502 16045 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 16046 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
16047 UNSPECV_DELAY_CYCLES): new enumeration values
16048 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
16049 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
16050 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
16051 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
16052 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
16053 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
16054 "fmulsu"): New insns
5e60198b 16055
43ea6502
AS
16056 * config/avr/avr-c.c: fix line endings
16057 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
16058 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
16059 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
16060 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
16061 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 16062
43ea6502
AS
16063 * doc/extend.texi (AVR Built-in Functions): New node
16064 (Target Builtins): Add documentation of AVR
16065 built-in functions.
16066
8a9b55f3
GJL
160672011-04-14 Georg-Johann Lay <avr@gjlay.de>
16068
16069 PR target/44643
16070 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
16071 alone. Error if non-const data has attribute progmem.
16072
94bd1825
NF
160732011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16074
16075 * tree.h (struct tree_constructor): Include tree_typed instead of
16076 tree_common.
16077 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
16078 TS_TYPED instead of TS_COMMON.
16079
5e60198b 160802011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
16081
16082 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
16083 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
16084 (sse2_psadbw): Merge with *avx_psadbw.
16085 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
16086 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
16087 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
16088 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
16089 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
16090 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
16091 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
16092 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
16093 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
16094 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
16095 (ssse3_palignrti): Merge with *avx_palignrti.
16096
4b1a4694
NF
160972011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16098
16099 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
16100 * tree-ssanames.c (fini_ssanames): VEC_free it.
16101 (make_ssa_name_fn): Update for VECness of free_ssanames.
16102 (release_ssa_name, release_dead_ssa_names): Likewise.
16103 * tree.h (struct tree_ssa_name): Include tree_typed instead of
16104 tree_common.
16105 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
16106 TS_TYPED instead of TS_COMMON.
16107
4da3b811
NF
161082011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16109
16110 * postreload-gcse.c (gcse_after_reload_main): Add calls to
16111 statistics_counter_event.
16112 * tree-ssa-copyrename.c (stats): Define.
16113 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
16114 statistics_counter_event.
16115 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
16116 (bswap_stats, widen_mul_stats): Define.
16117 (insert_reciprocals): Increment rdivs_inserted.
16118 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
16119 rfuncs_inserted. Add calls to statistics_counter_event.
16120 (execute_cse_sincos_1): Increment inserted.
16121 (execute_cse_sincos): Zeroize sincos_stats. Add call to
16122 statistics_counter_event.
16123 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
16124 of bswap_stats. Add calls to statistics_counter_event.
16125 (convert_mult_to_widen): Increment widen_mults_inserted.
16126 (convert_plusminus_to_widen): Increment maccs_inserted.
16127 (convert_mult_to_fma): Increment fmas_inserted.
16128 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
16129 calls to statistics_counter_event.
16130
89fa552a
VM
161312011-04-13 Vladimir Makarov <vmakarov@redhat.com>
16132
16133 PR rtl-optimization/48455
16134 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
16135 `temp_costs->mem_cost'.
16136
03dfc36d
JH
161372011-04-13 Jan Hubicka <jh@suse.cz>
16138
16139 * ipa-inline.h: New file.
16140 * ipa-inline-analysis.c: New file. Broken out of ...
16141 * ipa-inline.c: ... this file; update toplevel comment;
16142 include ipa-inline.h
16143 (inline_summary): Move to ipa-inline.h
16144 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
16145 ipa-inline-analysis.c.
7d4f8d02
EB
16146 (cgraph_estimate_time_after_inlining): Rename to
16147 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
16148 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
16149 to estimate_edge_growth.
16150 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
16151 rename to estimate_size_after_inlining.
16152 (cgraph_mark_inline_edge): Update for new naming convention.
16153 (cgraph_check_inline_limits): Likewise.
16154 (cgraph_edge_badness): Likewise.
16155 (cgraph_decide_recursive_inlining): Likewise.
16156 (cgraph_decide_inlining_of_small_functions): Likewise.
16157 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
16158 (cgraph_estimate_growth): Rename to estimate_growth; move to
16159 ipa-inline-analysis.c.
03dfc36d
JH
16160 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
16161 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
16162 (compute_inline_parameters): Likewise.
16163 (compute_inline_parameters_for_current): Likewise.
16164 (pass_inline_parameters): Likewise.
16165 (inline_indirect_intraprocedural_analysis): Likewise.
16166 (analyze_function): Rename to inline_analyze_function; likewise.
16167 (add_new_function): Move to ipa-inline-analysis.c.
16168 (inline_generate_summary): Likewise.
16169 (inline_read_summary): Likewise.
16170 (inline_write_summary): Likewise.
16171 * Makefile.in (ipa-inline-analysis.c): New file.
16172
7673c962
RO
161732011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16174
16175 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
16176 * configure: Regenerate.
16177
9698252f
NF
161782011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16179
16180 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
16181 instead of tree_common.
16182 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
16183 Likewise.
16184 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
16185 TS_TYPED rather than TS_COMMON.
16186 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
16187
3a7bfdd5
GJL
161882011-04-01 Georg-Johann Lay <avr@gjlay.de>
16189
16190 PR target/45263
86d83530
GJL
16191 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
16192 r20 around calls of __tablejump_elpm__
3a7bfdd5 16193
20790697
JJ
161942011-04-13 Jakub Jelinek <jakub@redhat.com>
16195
16196 PR middle-end/48591
16197 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
16198 NULL.
16199 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
16200
094d7661
BS
162012011-04-13 Bernd Schmidt <bernds@codesourcery.com>
16202
16203 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
16204 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
16205 (cfi_vec): New typedef.
16206 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
16207 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
16208 (cie_cfi_vec): New static variable.
16209 (cie_cfi_head): Delete.
16210 (add_cfi): Accept a cfi_vec * as first argument. All callers and
16211 declaration changed. Use vector rather than list operations.
16212 (new_cfi): Don't initialize the dw_cfi_next field.
16213 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
16214 rather than list operations.
16215 (lookup_cfa): Use vector rather than list operations.
16216 (output_cfis): New argument upto. Accept a cfi_vec rather than
16217 a dw_cfi_ref list head as argument. All callers changed.
16218 Iterate over the vector using upto as a maximum index.
16219 (output_all_cfis): New static function.
16220 (output_fde): Use vector rather than list operations. Use the
16221 new upto argument for output_cfis rather than manipulating a
16222 list.
16223 (dwarf2out_begin_prologue): Change initializations to match
16224 new struct members.
16225 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
16226 from the vector length rather than searching for the end of a list.
16227 Use output_all_cfis.
16228 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
16229
673a5740
NC
162302011-04-13 Nick Clifton <nickc@redhat.com>
16231
16232 * config/rx/rx.md (movmemsi): Do not use this pattern when
16233 volatile pointers are involved.
16234
1ee8b298
UB
162352011-04-13 Uros Bizjak <ubizjak@gmail.com>
16236
16237 * config/i386/sse.md (pinsrbits): Remove.
16238 (sse2_packsswb): Merge with *avx_packsswb.
16239 (sse2_packssdw): Merge with *avx_packssdw.
16240 (sse2_packuswb): Merge with *avx_packuswb.
16241 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
16242 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
16243 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
16244 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
16245 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
16246 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
16247 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
16248 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
16249 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
16250 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
16251 (sse2_loadld): Merge with *avx_loadld.
16252 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
16253 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
16254 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
16255 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
16256 (vec_concatv2di): Merge with *vec_concatv2di_avx.
16257
81f653d6
NF
162582011-04-12 Nathan Froyd <froydnj@codesourcery.com>
16259
16260 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
16261 calling TREE_CHAIN.
16262 * print-tree.c (print_node): Likewise.
16263 * tree-inline.c (copy_tree_r): Likewise.
16264 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
16265 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
16266 instead of TS_COMMON.
16267 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
16268 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
16269 (copy_node_stat): Zero TREE_CHAIN only if necessary.
16270 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
16271 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
16272 ...and these...
16273 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
16274 * tree.h: ...here.
16275 (TREE_CHAIN): Check for a TS_COMMON structure.
16276 (TREE_TYPE): Check for a TS_TYPED structure.
16277
748f7574 162782011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
16279
16280 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16281 cgraph_get_create_node instead of cgraph_node.
16282
eb345401
NP
162832011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16284
16285 * c-parser.c (c_parser_initelt): Updated call to
16286 objc_build_message_expr.
16287 (c_parser_postfix_expression): Likewise.
16288
a6c46762
KT
162892011-04-12 Kai Tietz <ktietz@redhat.com>
16290
16291 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
16292 MASK_MS_BITFIELD_LAYOUT bit.
16293
b4ccfed9
JJ
162942011-04-12 Jakub Jelinek <jakub@redhat.com>
16295
16296 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
16297 assert it is always true.
16298 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
16299 moves.
16300
0d8a2528
NP
163012011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16302
16303 * c-parser.c (c_lex_one_token): Rewritten conditional used when
16304 compiling Objective-C to be more efficient.
16305
06bd234a
AF
163062011-04-12 Axel Freyn <axel-freyn@gmx.de>
16307
16308 * opts-common.c (decode_cmdline_options_to_array): Remove variable
16309 argv_copied.
16310
28569ac3
RS
163112011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16312
16313 * recog.h, genoutput.c, optabs.c: Revert last patch.
16314
ae59e00d
RR
163152011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16316
81b1e7eb
UB
16317 PR target/48090
16318 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 16319
cff1b7e0
RS
163202011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16321
16322 * recog.h (insn_operand_data): Add an "allows_mem" field.
16323 * genoutput.c (output_operand_data): Initialize it.
16324 * optabs.c (maybe_legitimize_operand_same_code): New function.
16325 (maybe_legitimize_operand): Use it when matching the original
16326 op->value.
16327
77059241
RS
163282011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16329
16330 * genpreds.c (process_define_predicate): Move most processing
16331 to gensupport.c. Continue to validate the expression.
16332 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
16333 (process_define_predicate): Move processing to gensupport.c.
16334 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
16335 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
16336 (compute_predicate_codes): Moved from genrecog.c. Add lineno
16337 argument.
16338 (valid_predicate_name_p): New function, split out from old
16339 genpreds.c:process_define_predicate.
16340 (process_define_predicate): New function, combining code from
16341 old genpreds.c and genrecog.c functions.
16342 (process_rtx): Call it for DEFINE_PREDICATE and
16343 DEFINE_SPECIAL_PREDICATE.
16344
6308e208
RS
163452011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16346
16347 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
16348 size of a '%A' memory reference.
16349 (T_DREG, T_QREG): New neon_builtin_type_bits.
16350 (arm_init_neon_builtins): Assert that the load and store operands
16351 are neon_struct_operands.
16352 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
16353 (NEON_ARG_MEMORY): New builtin_arg.
16354 (neon_dereference_pointer): New function.
16355 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
16356 Handle NEON_ARG_MEMORY.
16357 (arm_expand_neon_builtin): Update after above interface changes.
16358 Use NEON_ARG_MEMORY for loads and stores.
16359 * config/arm/predicates.md (neon_struct_operand): New predicate.
16360 * config/arm/iterators.md (V_two_elem): Tweak formatting.
16361 (V_three_elem): Use BLKmode for accesses that have no associated mode.
16362 (V_four_elem): Tweak formatting.
16363 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
16364 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
16365 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
16366 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
16367 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
16368 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
16369 (neon_vst4<mode>): Replace pointer operand with a memory operand.
16370 Use %A in the output template.
16371 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
16372 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
16373 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
16374 the width of the memory access. Remove post-increment.
16375 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
16376
e5db8f2f
NC
163772011-04-12 Nick Clifton <nickc@redhat.com>
16378
16379 * config/v850/v850.c (expand_prologue): Do not use the CALLT
16380 instruction for interrupt handlers if the target is the basic V850
16381 architecture.
16382 (expand_epilogue): Likewise.
16383
74f091d6
JJ
163842011-04-12 Jakub Jelinek <jakub@redhat.com>
16385
16386 PR rtl-optimization/48549
16387 * combine.c (propagate_for_debug): Also stop after BB_END of
16388 this_basic_block. Process LAST and just stop processing after it.
16389 (combine_instructions): If last_combined_insn has been deleted,
16390 set last_combined_insn to its PREV_INSN.
16391
f20ca725
RG
163922011-04-12 Richard Guenther <rguenther@suse.de>
16393
16394 PR tree-optimization/46076
16395 * gimple.h (struct gimple_statement_call): Add fntype field.
16396 (gimple_call_fntype): Adjust.
16397 (gimple_call_set_fntype): New function.
16398 * gimple.c (gimple_build_call_1): Set the call function type.
16399 * gimplify.c (gimplify_call_expr): Preserve the function
16400 type the frontend used for the call.
16401 (gimplify_modify_expr): Likewise.
16402 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
16403 function type.
16404 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
16405 function type.
16406 * tree-ssa.c (useless_type_conversion_p): Function pointer
16407 conversions are useless.
16408
a358e188
MJ
164092011-04-12 Martin Jambor <mjambor@suse.cz>
16410
16411 * cgraph.h (cgraph_node): Remove function declaration.
16412 (cgraph_create_node): Declare.
16413 (cgraph_get_create_node): Likewise.
16414 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
16415 Updated all callers.
16416 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
16417 the decl does not already exist. Call cgraph_get_create_node instead
16418 of cgraph_node.
16419 (cgraph_get_create_node): New function.
16420 (cgraph_same_body_alias): Update comment.
16421 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
16422 assert it does not return NULL.
16423 (cgraph_update_edges_for_call_stmt): Likewise.
16424 (cgraph_clone_edge): Likewise.
16425 (cgraph_create_virtual_clone): Likewise.
16426 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
16427 instead of cgraph_node.
16428 (cgraph_add_new_function): Call cgraph_create_node or
16429 cgraph_get_create_node instead of cgraph_node.
16430 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
16431 instead of cgraph_node.
16432 (record_eh_tables): Likewise.
16433 (mark_address): Likewise.
16434 (mark_load): Likewise.
16435 (build_cgraph_edges): Call cgraph_get_create_node instead
16436 of cgraph_node.
16437 (rebuild_cgraph_edges): Likewise.
16438 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
16439 instead of cgraph_node.
16440 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
16441 cgraph_node.
16442 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
16443 cgraph_create_node instead of cgraph_node.
16444 * c-decl.c (finish_function): Call cgraph_get_create_node instead
16445 of cgraph_node.
16446 * lto-cgraph.c (input_node): Likewise.
16447 * lto-streamer-in.c (input_function): Likewise.
16448 * varasm.c (mark_decl_referenced): Likewise.
16449 (assemble_alias): Likewise.
16450
fe660d7b
MJ
164512011-04-12 Martin Jambor <mjambor@suse.cz>
16452
16453 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
16454 instead of cgraph_node and assert it does not return NULL.
16455 * lto-streamer-in.c (lto_read_body): Likewise.
16456 * omp-low.c (new_omp_context): Likewise.
16457 (create_task_copyfn): Likewise.
16458 * tree-emutls.c (lower_emutls_function_body): Likewise.
16459 * matrix-reorg.c (transform_allocation_sites): Likewise.
16460
bae5cddf
JJ
164612011-04-12 Jakub Jelinek <jakub@redhat.com>
16462
16463 PR c/48552
16464 * c-typeck.c (build_asm_expr): Error out on attempts to use
16465 void type outputs or inputs for constraints that allow reg or
16466 don't allow memory.
16467
06eb52ca
CLT
164682011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
16469 Richard Earnshaw <rearnsha@arm.com>
16470
16471 PR target/48250
16472 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
16473 to use sign-magnitude offsets. Reject unsupported unaligned
16474 cases. Add detailed description in comments.
16475 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
16476 condition from TARGET_32BIT to TARGET_ARM.
16477
648a616b
NF
164782011-04-11 Nathan Froyd <froydnj@codesourcery.com>
16479
16480 * tree.h (struct typed_tree): New.
16481 (struct tree_common): Include it instead of tree_base.
16482 (TREE_TYPE): Update for new location of type field.
16483 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
16484 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
16485 (union tree_node): Add typed field.
16486 * treestruct.def (TS_TYPED): New.
16487 * lto-streamer.c (check_handled_ts_structures): Handle it.
16488 * tree.c (MARK_TS_TYPED): New macro.
16489 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
16490
1e6d1da0
EB
164912011-04-11 Eric Botcazou <ebotcazou@adacore.com>
16492
16493 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
16494 (force_nonfallthru): Do not alter the loop nest if no basic block
16495 was created.
16496
164972011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
16498
16499 * config/i386/sse.md (VI): New mode iterator.
16500 (SSEMODEI): Remove.
16501 (AVX256MODEI): Ditto.
16502 (AVXMODEF4P): Ditto.
16503 (avxvecpsmode): Ditto.
16504 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
16505 (sse2_andnot<mode>3): New expander.
16506 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
16507 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
16508 (<any_logic:code><mode>3): Use VI mode iterator.
16509 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
16510 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
16511 (*andnottf3): Handle AVX three-operand constraints.
16512 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
16513
b1372d5d 165142011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 16515 Robert Millan <rmh@gnu.org>
b1372d5d
JM
16516
16517 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
16518 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
16519 GNU_USER_DYNAMIC_LINKER64): Define.
16520 (REG_NAME): Don't undefine.
16521 (MD_UNWIND_SUPPORT): Undefine.
16522 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
16523 (REG_NAME): Don't undefine.
16524 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 16525 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 16526
761c0c6e
JM
165272011-04-11 Joseph Myers <joseph@codesourcery.com>
16528
16529 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
16530 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
16531
26e0228f
XDL
165322011-04-11 Xinliang David Li <davidxl@google.com>
16533
16534 * value-profile.c (check_ic_target): New function.
16535 (gimple_ic_transform): Sanity check indirect call target.
16536 * gimple-low.c (gimple_check_call_args): Interface change.
16537 (gimple_check_call_matching_types): New function.
16538 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
16539
165402011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
16541
16542 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
16543 tree-pretty-print.h & realmpfr.h.
16544
a58dfa49
VM
165452011-04-11 Vladimir Makarov <vmakarov@redhat.com>
16546
16547 PR middle-end/48464
16548 * ira.c (setup_pressure_classes): Fix typo in loop condition.
16549 (setup_allocno_and_important_classes): Ditto.
16550
107fd1c1
JM
165512011-04-11 Joseph Myers <joseph@codesourcery.com>
16552
16553 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
16554 GNU_USER_DYNAMIC_LINKER.
16555 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
16556 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16557 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
16558 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16559 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16560 GNU_USER_TARGET_OS_CPP_BUILTINS.
16561 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
16562 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16563 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16564 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16565 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
16566 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16567 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16568 GNU_USER_TARGET_OS_CPP_BUILTINS.
16569 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16570 GNU_USER_DYNAMIC_LINKER.
16571 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16572 GNU_USER_TARGET_OS_CPP_BUILTINS.
16573 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
16574 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16575 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
16576 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16577 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
16578 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
16579 GNU_USER_DYNAMIC_LINKER64): Remove.
16580 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
16581 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16582 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16583 GNU_USER_DYNAMIC_LINKER.
16584 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16585 GNU_USER_TARGET_OS_CPP_BUILTINS.
16586 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16587 GNU_USER_TARGET_OS_CPP_BUILTINS.
16588 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
16589 to GNU_USER_TARGET_OS_CPP_BUILTINS.
16590 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16591 GNU_USER_TARGET_OS_CPP_BUILTINS.
16592 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
16593 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
16594 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16595 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
16596 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16597 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16598 GNU_USER_DYNAMIC_LINKER.
16599 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16600 GNU_USER_TARGET_OS_CPP_BUILTINS.
16601 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
16602 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16603 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16604 GNU_USER_DYNAMIC_LINKER.
16605 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16606 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16607 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
16608 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16609 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16610 GNU_USER_DYNAMIC_LINKER.
16611 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
16612 GNU_USER_DYNAMIC_LINKERN32.
16613 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
16614 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
16615 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
16616 GNU_USER_DYNAMIC_LINKER32.
16617 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
16618 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16619 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16620 GNU_USER_DYNAMIC_LINKER.
16621 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16622 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16623 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
16624 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 16625 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
16626 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
16627 GNU_USER_DYNAMIC_LINKER32.
16628 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16629 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
16630 GNU_USER_DYNAMIC_LINKER.
16631 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
16632 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16633 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16634 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
16635 GNU_USER_DYNAMIC_LINKER64.
16636 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
16637 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16638 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16639 GNU_USER_DYNAMIC_LINKER.
16640 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
16641 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16642 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16643 GNU_USER_DYNAMIC_LINKER.
16644 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
16645 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16646 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16647 GNU_USER_DYNAMIC_LINKER32.
16648 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16649 GNU_USER_DYNAMIC_LINKER64.
16650 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16651 GNU_USER_DYNAMIC_LINKER64.
16652 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
16653 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16654 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
16655 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 16656 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 16657
e24609cf
JM
166582011-04-11 Joseph Myers <joseph@codesourcery.com>
16659
16660 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
16661 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
16662 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
16663 GNU_USER_DYNAMIC_LINKER.
16664 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16665 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
16666 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
16667 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
16668 GNU_USER_DYNAMIC_LINKER64.
16669 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16670 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
16671 GNU_USER_LINK_EMULATION.
16672 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
16673 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
16674 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
16675 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
16676 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
16677 CPP_SPEC, CC1_SPEC): Remove.
16678 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
16679 (GNU_USER_DYNAMIC_LINKER): Define.
16680 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
16681 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
16682 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
16683 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
16684 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
16685 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
16686 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16687 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
16688 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
16689 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
16690 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
16691 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
16692 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
16693 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
16694 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
16695 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16696 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16697 GNU_USER_DYNAMIC_LINKER.
16698 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16699 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16700 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16701 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16702 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16703 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16704 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
16705 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
16706 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 16707 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 16708
b8ce4e94
KT
167092011-04-11 Kai Tietz <ktietz@redhat.com>
16710
16711 PR target/9601
16712 PR target/11772
16713 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
16714 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
16715 comment.
16716 (ix86_is_msabi_thiscall): Removed.
16717 (ix86_is_type_thiscall): Likewise.
16718 (ix86_get_callcvt): New function.
16719 (ix86_comp_type_attributes): Simplify check.
16720 (ix86_function_regparm): Use ix86_get_callcvt for calling
16721 convention attribute checks.
16722 (ix86_return_pops_args): Likewise.
16723 (ix86_static_chain): Likewise.
16724 (x86_this_parameter): Likewise.
16725 (x86_output_mi_thunk): Likewise.
16726 (ix86_function_type_abi): Optimize check for types without attributes.
16727 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
16728 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
16729 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
16730 by flag-values.
16731 (IX86_BASE_CALLCVT): Helper macro.
16732 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16733 Use ix86_get_callcvt for calling convention attribute checks and avoid
16734 symbol-decoration for stdcall in TARGET_RTD case.
16735 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
16736 Likewise.
16737 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
16738 for declaration.
16739
798dd0ba
UB
167402011-04-11 Uros Bizjak <ubizjak@gmail.com>
16741
16742 * config/i386/sse.md (VI_128): New mode iterator.
16743 (VI12_128): Rename from SSEMODE12.
16744 (VI14_128): Rename from SSEMODE14.
16745 (VI124_128): New mode iterator.
16746 (VI24_128): Rename from SSEMODE248.
16747 (VI248_128): Rename from SSEMODE248.
16748 (SSEMODE124C8): Remove.
16749 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
16750 (*sse2_<plusminus_insn><mode>3): Merge with
16751 *avx_<plusminus_insn><mode>3.
16752 (*mulv8hi3): Merge with *avx_mulv8hi3.
16753 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
16754 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
16755 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
16756 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
16757 (ashr<mode>3): Merge with *avx_ashr<mode>3.
16758 (lshr<mode>3): Merge with *avx_lshr<mode>3.
16759 (ashl<mode>3): Merge with *avx_ashl<mode>3.
16760 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
16761 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
16762 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16763 (*<smaxmin:code>v8hi3): Ditto.
16764 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
16765 (*<smaxmin:code>v16qi3): Ditto.
16766 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
16767 (*sse2_eq<mode>3): Ditto.
16768 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
16769 (*sse2_gt<mode>3): Ditto.
16770 (vcondv2di): Split out of vcond<mode>.
16771 (vconduv2di): Split out of vcondu<mode>.
16772
956011be
RG
167732011-04-11 Richard Guenther <rguenther@suse.de>
16774
16775 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
16776 before calling tree_low_cst.
16777
e6313a78
RG
167782011-04-11 Richard Guenther <rguenther@suse.de>
16779
16780 * stor-layout.c (layout_type): Compute all array index size operations
16781 in the original type.
16782 (initialize_sizetypes): Add comment.
16783 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
16784
e69d7376
JM
167852011-04-11 Joseph Myers <joseph@codesourcery.com>
16786
16787 * common.opt (Tbss=, Tdata=, Ttext=): New options.
16788
9f9ebcdf
MJ
167892011-04-11 Martin Jambor <mjambor@suse.cz>
16790
16791 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
16792 of cgraph_node, handle NULL return value.
16793 (cgraph_global_info): Likewise.
16794 (cgraph_rtl_info): Likewise.
16795 * tree-inline.c (estimate_num_insns): Likewise.
16796 * gimplify.c (unshare_body): Likewise.
16797 (unvisit_body): Likewise.
16798 (gimplify_body): Likewise.
16799 * predict.c (optimize_function_for_size_p): Likewise.
16800 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
16801 (call_may_clobber_ref_p_1): Likewise.
16802 * varasm.c (function_section_1): Likewise.
16803 (assemble_start_function): Likewise.
16804
581985d7
MJ
168052011-04-11 Martin Jambor <mjambor@suse.cz>
16806
16807 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
16808 of cgraph_node.
16809 * final.c (rest_of_clean_state): Likewise.
16810 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
16811 * passes.c (pass_init_dump_file): Likewise.
16812 (execute_all_ipa_transforms): Likewise.
16813 (function_called_by_processed_nodes_p): Likewise.
16814 * predict.c (maybe_hot_frequency_p): Likewise.
16815 (probably_never_executed_bb_p): Likewise.
16816 (compute_function_frequency): Likewise.
16817 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
16818 (unnest_nesting_tree_1): Likewise.
16819 (lower_nested_functions): Likewise.
16820 * tree-optimize.c (execute_fixup_cfg): Likewise.
16821 (tree_rest_of_compilation): Likewise.
16822 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
16823 * tree-sra.c (ipa_early_sra): Likewise.
16824 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
16825 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
16826 * ipa.c (record_cdtor_fn): Likewise.
16827 * ipa-inline.c (cgraph_early_inlining): Likewise.
16828 (compute_inline_parameters_for_current): Likewise.
16829 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16830 * ipa-pure-const.c (local_pure_const): Likewise.
16831 * ipa-split.c (split_function): Likewise.
16832 (execute_split_functions): Likewise.
16833 * cgraphbuild.c (build_cgraph_edges): Likewise.
16834 (rebuild_cgraph_edges): Likewise.
16835 (cgraph_rebuild_references): Likewise.
16836 (remove_cgraph_callee_edges): Likewise.
16837 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
16838 (verify_cgraph_node): Likewise.
16839 (cgraph_analyze_functions): Likewise.
16840 (cgraph_preserve_function_body_p): Likewise.
16841 (save_inline_function_body): Likewise.
16842 (save_inline_function_body): Likewise.
16843 * tree-inline.c (copy_bb): Likewise.
16844 (optimize_inline_calls): Likewise.
16845
57dbdc5a
MJ
168462011-04-11 Martin Jambor <mjambor@suse.cz>
16847
16848 PR tree-optimization/48195
16849 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
16850 ipa_check_create_edge_args.
16851 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
16852 ipa_check_create_edge_args.
16853 * ipa-inline.c (inline_generate_summary): Do not call
16854 ipa_check_create_node_params and ipa_check_create_edge_args.
16855 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
16856 ipa_check_create_edge_args.
16857
d108e679
AS
168582011-04-09 Anatoly Sokolov <aesok@post.ru>
16859
16860 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
16861 instead of loop.
16862 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16863 * function.c (record_hard_reg_sets): Likewise.
16864 * ira.c (compute_regs_asm_clobbered): Likewise.
16865 * sched-deps.c (sched_analyze_1): Likewise.
16866 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
16867
3411bc59
XDL
168682011-04-09 Xinliang David Li <davidxl@google.com>
16869
16870 PR tree-optimization/PR48484
16871 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
16872 has_valid_pred lazily
16873
b365495a
DS
168742011-04-09 Duncan Sands <baldrick@free.fr>
16875
16876 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
16877
68bc509a
EB
168782011-04-08 Eric Botcazou <ebotcazou@adacore.com>
16879
16880 * combine.c (combine_validate_cost): Adjust comments. Set registered
16881 cost of I0 to zero at the end, if any.
16882
041e059f
XDL
168832011-04-08 Xinliang David Li <davidxl@google.com>
16884
68bc509a
EB
16885 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
16886 to insane profile data.
041e059f 16887
444b3995
XDL
168882011-04-08 Xinliang David Li <davidxl@google.com>
16889
16890 * ipa-cp.c (ipcp_update_profiling): Correct
16891 negative scale factor due to insane profile data.
16892
6a801cf2
XDL
168932011-04-08 Xinliang David Li <davidxl@google.com>
16894
16895 * final.c (dump_basic_block_info): New function.
16896 (final): Dump basic block.
16897 (final_scan_insn): Remove old dump.
16898
d5f3624e
SK
168992011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
16900
68bc509a
EB
16901 PR target/47829
16902 * config.gcc (i386-*-freebsd): Disable unwind table generation for
16903 crtbegin/crtend.
d5f3624e 16904
42821aff
MM
169052011-04-08 Michael Matz <matz@suse.de>
16906
16907 PR middle-end/48389
16908 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
16909 functions.
16910 (rebuild_jump_labels): Call rebuild_jump_labels_1.
16911 * rtl.h (rebuild_jump_labels_chain): Declare.
16912 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
16913 insns inserted on edges.
16914
ad7be009
JM
169152011-04-08 Joseph Myers <joseph@codesourcery.com>
16916
16917 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
16918 * config/arm/arm-arches.def: New.
16919 * config/arm/arm-opts.h: New.
16920 * config/arm/genopt.sh: New.
16921 * config/arm/arm-tables.opt: New (generated).
16922 * config/arm/arm.c (arm_handle_option, arm_target_help,
16923 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
16924 (all_architectures): Get most table contents from arm-arches.def.
16925 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
16926 arm_selected_tune here.
16927 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
16928 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
16929 (march=, mcpu=, mtune=): Use Enum and Var.
16930 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
16931 (arm.o): Update dependencies.
ecbb6fb7 16932
42821aff 169332011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
16934
16935 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
16936 of header_file.
16937 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
16938 (write_typed_alloc_defns): Likewise.
16939 (main): Calls write_typed_alloc_defns with output_header.
16940
8d189b3f
VM
169412011-04-08 Vladimir Makarov <vmakarov@redhat.com>
16942
68bc509a 16943 PR inline-asm/48435
8d189b3f
VM
16944 * ira-color.c (setup_profitable_hard_regs): Add comments.
16945 Don't take prohibited hard regs into account.
16946 (setup_conflict_profitable_regs): Rename to
16947 get_conflict_profitable_regs.
16948 (check_hard_reg_p): Check prohibited hard regs.
16949
44f370bf
NF
169502011-04-08 Nathan Froyd <froydnj@codesourcery.com>
16951
16952 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
16953 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
16954 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
16955
483d7ad3
JDA
169562011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16957
16958 PR target/48366
16959 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 16960 move from floating point to shift amount register.
483d7ad3
JDA
16961 (emit_move_sequence): Remove secondary reload support for floating
16962 point to shift amount amount register copies.
16963 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
16964 amount register copies.
16965 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
16966 register, return false if mode isn't a scalar integer mode.
16967 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
16968
97e03fa1
RG
169692011-04-08 Richard Guenther <rguenther@suse.de>
16970
16971 * gimple.c (gimple_call_flags): Remove kludge.
16972
9d40778b
AM
169732011-04-08 Alexander Monakov <amonakov@ispras.ru>
16974
16975 * sel-sched.c (sel_region_init): Move call to
16976 sel_setup_region_sched_flags after setup_current_loop_nest.
16977
19ac7892
AB
169782011-04-08 Andrey Belevantsev <abel@ispras.ru>
16979
16980 PR rtl-optimization/48272
19ac7892
AB
16981 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
16982 init_insn_reg_pressure_info. Adjust a caller.
16983 * sched-int.h (init_insn_reg_pressure_info): Declare.
16984 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
16985 when sched-pressure is enabled.
16986
0f8c63cc
RG
169872011-04-08 Richard Guenther <rguenther@suse.de>
16988
16989 * gimple.c (gimple_set_modified): Do not queue calls to
16990 MODIFIED_NORETURN_CALLS here ...
16991 * tree-ssa-operands.c (update_stmt_operands): ... but here.
16992
5e5a425e
RG
169932011-04-08 Richard Guenther <rguenther@suse.de>
16994
16995 PR lto/48467
16996 * toplev.c (lang_dependent_init): Do not open asm_out_file
16997 in WPA mode, nor perform debug machinery initialization.
16998 (finalize): Do not unlink asm_out_file in WPA mode.
16999
9bfc434b
RG
170002011-04-08 Richard Guenther <rguenther@suse.de>
17001
17002 * gimple.h (gimple_call_fntype): New function.
17003 (gimple_call_return_type): Use it.
17004 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
17005 * gimple-low.c (gimple_check_call_args): Likewise.
17006 * gimple.c (gimple_call_flags): Likewise.
17007 (gimple_call_arg_flags): Likewise.
17008 (gimple_call_return_flags): Likewise.
17009 * tree-cfg.c (verify_gimple_call): Likewise.
17010 (do_warn_unused_result): Likewise.
17011 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
17012 * value-prof.c (gimple_ic_transform): Fix fndecl check.
17013
7c1f0b40
DM
170142011-04-08 Dmitry Melnik <dm@ispras.ru>
17015
17016 PR rtl-optimization/48235
17017 * sel-sched.c (code_motion_process_successors): Recompute the last
17018 insn in basic block if control flow changed.
17019 (code_motion_path_driver): Ditto. Recompute the first insn as well.
17020 Update condition for ilist_remove.
17021
ea4d630f
AM
170222011-04-08 Alexander Monakov <amonakov@ispras.ru>
17023
17024 PR rtl-optimization/48302
17025 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
17026 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
17027 it to record added preheader blocks.
17028 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
17029 on to sel_add_loop_preheaders.
17030 (sel_region_init): Move call to setup_current_loop_nest after
17031 sel_init_bbs.
17032
07643d76
AM
170332011-04-08 Alexander Monakov <amonakov@ispras.ru>
17034
17035 PR target/48273
17036 * cfgloop.h (loop_has_exit_edges): New helper.
17037 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
17038 non-clonable.
17039 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
17040 that have no exit edges.
17041
1f3b2b4e
AM
170422011-04-08 Alexander Monakov <amonakov@ispras.ru>
17043
17044 PR rtl-optimization/48442
17045 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
17046 all callers. Adjust assert.
17047
554f1948
JJ
170482011-04-08 Jakub Jelinek <jakub@redhat.com>
17049
17050 PR tree-optimization/48377
17051 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
17052 is_packed to true even for types with smaller TYPE_ALIGN than
17053 TYPE_SIZE.
17054
ddf72388
RG
170552011-04-08 Richard Guenther <rguenther@suse.de>
17056
17057 PR bootstrap/48513
17058 * doc/tm.texi: Re-generate.
17059
0c27e2d8
WG
170602011-04-08 Wei Guozhi <carrot@google.com>
17061
17062 PR target/47855
17063 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
17064 * config/arm/arm.c (arm_attr_length_push_multi): New function.
17065 * config/arm/arm.md (*push_multi): Change the length computation to
17066 call a C function.
17067
07c5f94e
AS
170682011-04-08 Anatoly Sokolov <aesok@post.ru>
17069
17070 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
17071 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
17072 * doc/tm.texi: Regenerate.
17073 * system.h (ASM_OUTPUT_BSS): Poison.
17074 * varasm.c (asm_output_bss): Remove function.
17075 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 17076
07c5f94e
AS
17077 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
17078 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
17079 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
17080 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17081 Likewise.
17082 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17083 Likewise.
17084 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17085 Likewise.
17086 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17087
5f2c36e1
JM
170882011-04-07 Joseph Myers <joseph@codesourcery.com>
17089
17090 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
17091 EnumValue lines.
17092
39e7722b
JM
170932011-04-07 Joseph Myers <joseph@codesourcery.com>
17094
17095 * config/m68k/m68k.c (m68k_handle_option): Don't handle
17096 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
17097 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
17098 OPT_mcpu32.
17099 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17100 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
17101 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
17102 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
17103 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
17104 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
17105 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17106 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
17107 options. Don't map other m68k options manually. Don't handle
17108 old-style options as canonical.
17109 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 17110 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 17111
cf103ca4
EB
171122011-04-07 Eric Botcazou <ebotcazou@adacore.com>
17113
17114 * basic-block.h (force_nonfallthru): Move to...
17115 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
17116 (force_nonfallthru): ...here.
17117 * cfghooks.c (force_nonfallthru): New function.
17118 * cfgrtl.c (force_nonfallthru): Rename into...
17119 (rtl_force_nonfallthru): ...this.
17120 (commit_one_edge_insertion): Do not set AUX field.
17121 (commit_edge_insertions): Do not discover new basic blocks.
17122 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
17123 (cfg_layout_rtl_cfg_hooks): Likewise.
17124 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
17125 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
17126 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
17127
14431f58
AS
171282011-04-07 Anatoly Sokolov <aesok@post.ru>
17129
17130 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17131 Remove macros.
17132
3729983c
UB
171332011-04-07 Uros Bizjak <ubizjak@gmail.com>
17134
17135 * config/i386/sse.md: Update copyright year.
17136 (avxcvtvecmode): Remove.
17137 (sse_movhlps): Merge with *avx_movhlps.
17138 (sse_movlhps): Merge with *avx_movlhps.
17139 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
17140 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
17141 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
17142 (sse_loadhps): Merge with *avx_loadhps.
17143 (sse_storelps): Merge with *avx_storelps.
17144 (sse_loadlps): Merge with *avx_loadlps.
17145 (sse_movss): Merge with *avx_movss.
17146 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
17147 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
17148 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
17149 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
17150 (vec_set<mode>_0): Ditto.
17151 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
17152 (sse4_1_insertps): Merge with *avx_insertps.
17153 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
17154 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
17155 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
17156 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
17157 (sse2_storehpd): Merge with *avx_storehpd.
17158 (sse2_loadhpd): Merge with *avx_loadhpd.
17159 (sse2_loadlpd): Merge with *avx_loadlpd.
17160 (sse2_movsd): Merge with *avx_movsd.
17161 (*vec_concatv2df): Merge with *vec_concatv2df.
17162
4e626909
JJ
171632011-04-07 Jakub Jelinek <jakub@redhat.com>
17164
17165 PR debug/48343
17166 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 17167 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
17168 (try_combine): Add last_combined_insn parameter, pass it instead of
17169 i3 to propagate_for_debug.
17170
3729983c 171712011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
17172
17173 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
17174 to handle MDR <-> data register transfers.
17175 (movhi_internal): Likewise.
17176
20c03367
AM
171772011-04-07 Alan Modra <amodra@gmail.com>
17178
17179 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
17180 previous stack info.
17181
bf22920b
TV
171822011-04-07 Tom de Vries <tom@codesourcery.com>
17183
17184 PR target/43920
17185 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
17186 flow_find_cross_jump. Swap variables to implement backward replacement.
17187 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
17188
823918ae
TV
171892011-04-07 Tom de Vries <tom@codesourcery.com>
17190
17191 PR target/43920
17192 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
17193 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
17194 and bb2.
17195 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
17196 src1 or src2. Redirect edges to the last basic block. Update
17197 frequency and count on multiple basic blocks in case of fallthru.
823918ae 17198
472c95f5
TV
171992011-04-07 Tom de Vries <tom@codesourcery.com>
17200
17201 PR target/43920
17202 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
17203 function.
3729983c
UB
17204 (old_insns_match_p): Change return type. Replace return false/true
17205 with return dir_none/dir_both. Use can_replace_by.
17206 (flow_find_cross_jump): Add dir_p parameter. Init replacement
17207 direction from dir_p. Register replacement direction in dir, last_dir
17208 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
17209 merge_dir. Return replacement direction in dir_p.
17210 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
17211 return type of old_insns_match_p.
17212 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
17213 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
17214 flow_find_cross_jump.
17215 * basic-block.h (enum replace_direction): New type.
17216 (flow_find_cross_jump): Add parameter to declaration.
17217
a95d4000
UB
172182011-04-06 Uros Bizjak <ubizjak@gmail.com>
17219
17220 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
17221 (AVXMODEDCVTPS2DQ): Ditto.
17222 (VEC_FLOAT_MODE): Ditto.
17223 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
17224 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17225 (<any_logic:code><mode>3): Use VF mode iterator.
17226 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
17227 Use VF mode iterator.
17228 (copysign<mode>3): Use VF mode iterator.
17229 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
17230 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17231 (*<any_logic:code><MODEF:mode>3): Merge with
17232 *avx_<any_logic:code><MODEF:mode>3.
17233 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
17234 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
17235 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
17236 (avx_cvtdq2ps<avxmodesuffix>): Remove.
17237 (sse2_cvtdq2ps): Use %v modifier.
17238 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
17239 (avx_cvtps2dq<avxmodesuffix>): Remove.
17240 (sse2_cvtps2dq): Use %v modifier.
17241 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
17242 (avx_cvttps2dq<avxmodesuffix>): Remove.
17243 (sse2_cvttps2dq): Use %v modifier.
17244 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
17245 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
17246 (sse2_cvtsd2siq): Fix insn template.
17247 (sse2_cvtsd2siq_2): Ditto.
17248 (sse2_cvttsd2siq): Ditto.
17249 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
17250 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
17251
ad01c437
JM
172522011-04-06 Joseph Myers <joseph@codesourcery.com>
17253
17254 * gcov-io.c: Use GCC Runtime Library Exception.
17255
fe846284
JJ
172562011-04-06 Jakub Jelinek <jakub@redhat.com>
17257
17258 PR debug/48466
17259 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
17260 as base_reg whatever register reg has been eliminated to, instead
17261 of hardcoding STACK_POINTER_REGNUM.
17262
acce4e77
JM
172632011-04-06 Joseph Myers <joseph@codesourcery.com>
17264
17265 * doc/tm.texi.in: Document C target hooks as separate from general
17266 target hooks.
17267 * doc/tm.texi: Regenerate.
17268 * genhooks.c (struct hook_desc): Add docname field.
17269 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
17270 docname field.
17271 (hook_array): Include c-target.def.
17272 (emit_documentation): Use docname field in output.
17273 (emit_init_macros): Take docname argument. Only emit definitions
17274 for hooks matching docname.
17275 (main): Expect additional arguments in all cases. Pass argument
17276 to emit_init_macros.
17277 * target.def: Move initial macro definitions and comments to
17278 target-hooks-macros.h.
17279 (gcc_targetcm): Move to c-family/c-target.def.
17280 * target.h (targetcm): Move declaration to c-family/c-target.h.
17281 * targhooks.c (default_handle_c_option): Move to
17282 c-family/c-opts.c.
17283 * targhooks.h (default_handle_c_option): Move declaration to
17284 c-family/c-common.h.
17285 * target-hooks-macros.h: New file.
17286 * config.gcc (target_has_targetcm): Define and use to add to
17287 c_target_objs and cxx_target_objs.
17288 * config/default-c.c: New file.
17289 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
17290 of target.h and target-def.h.
17291 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
17292 (darwin_objc_construct_string, darwin_cfstring_ref_p,
17293 darwin_check_cfstring_format_arg): Make static.
17294 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17295 TARGET_STRING_OBJECT_REF_TYPE_P,
17296 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
17297 * config/darwin-protos.h (darwin_objc_construct_string,
17298 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
17299 declare.
17300 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17301 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 17302 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
17303 * config/t-darwin (darwin-c.o): Update dependencies.
17304 * system.h (TARGET_HAS_TARGETCM): Poison.
17305 * Makefile.in (TARGET_H): Update.
17306 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
17307 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
17308 (default-c.o): New target.
17309 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 17310 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
17311 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
17312 c-target.def.
17313 (build/genhooks.o): Update dependencies.
17314
275b4baa 173152011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 17316
275b4baa
RG
17317 * ipa-inline.c (enum inlining_mode): Remove.
17318 (cgraph_flatten): Use some other token.
17319 (cgraph_edge_early_inlinable_p): New function, split out from ...
17320 (cgraph_perform_always_inlining): New function, split out from ...
17321 (cgraph_decide_inlining_incrementally): ... here.
17322 (cgraph_mark_inline_edge): Adjust.
17323 (cgraph_early_inlining): Re-structure.
17324 (pass_early_inline): Require SSA form.
17325
f15b8bdf 173262011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
17327 Julian Brown <julian@codesourcery.com>
17328 Mark Shinwell <shinwell@codesourcery.com>
17329
17330 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
17331 LO_REGS only for Thumb-1.
17332 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
17333 be used in short instructions when optimising for size on Thumb-2.
17334
516426da
EB
173352011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17336
17337 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
17338 associated with user returns to be preserved.
17339
96621ebf
TG
173402011-04-06 Tristan Gingold <gingold@adacore.com>
17341
f15b8bdf
EB
17342 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
17343 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
17344 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
17345 if XCOFF_DEBUGGING_INFO.
17346
07c0852e
UB
173472011-04-06 Uros Bizjak <ubizjak@gmail.com>
17348
17349 * config/i386/i386.md (attribute isa): New.
17350 (attribute enabled): New.
17351 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
17352 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
17353 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
17354 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
17355 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
17356 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17357 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
17358 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
17359
17360 * config/i386/sse.md (VF): New mode iterator.
17361 (VF1): Ditto.
17362 (VF2): Ditto.
17363 (VF_128): Ditto.
17364 (SSEMODEF4): Remove.
17365 (attribute sse): Handle V8SF and V4DF modes.
17366 (<absneg:code><mode>2): Use VF mode iterator.
17367 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
17368 mode iterator.
17369 (<plusminus_insn><mode>3): Use VF mode iterator.
17370 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17371 Use VF mode iterator.
17372 (<sse>_vm<plusminus_insn><mode>3): Merge with
17373 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
17374 (mul<mode>3): Use VF mode iterator.
17375 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
17376 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
17377 mode iterator.
17378 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
17379 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
17380 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
17381 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
17382 mode iterator.
17383 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
17384 Use VF1 mode iterator.
17385 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
17386 (sqrt<VF2:mode>2): New expander.
17387 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
17388 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
17389 and sqrtv2df2. Use VF mode iterator.
17390 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
17391 mode iterator.
17392 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
17393 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
17394 Use VF1 mode iterator.
17395 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
17396 (<smaxmin:code><mode>3): Use VF mode iterator.
17397 (*<smaxmin:code><mode>3_finite): Merge with
17398 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
17399 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17400 (<sse>_vm<smaxmin:code><mode>2): Merge with
17401 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
17402 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
17403 mode iterator.
17404 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
17405 mode iterator.
17406 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
17407 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
17408 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
17409 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
17410 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
17411 VF mode iterator.
17412 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
17413 Use VF_128 mode iterator.
17414 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
17415 mode iterator.
17416 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
17417 VF_128 mode iterator.
17418 (vcond<mode>): Use VF mode iterator.
17419 * config/i386/predicates.md (sse_comparison_operator): Merge with
17420 avx_comparison_float_operator. Do not declare as special_predicate.
17421 * config/i386/i386.c (struct builtin_description): Update for renamed
17422 compare patterns.
17423 (ix86_expand_args_builtin): Ditto.
17424 (ix86_expand_sse_compare_mask): Ditto.
17425
ff5d142c
RG
174262011-04-06 Richard Guenther <rguenther@suse.de>
17427
17428 * tree-inline.c (estimate_num_insns): For calls simply account
17429 for all passed arguments and a used return value.
17430
d7d1d041 174312011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 17432
d7d1d041
RG
17433 PR tree-optimization/47663
17434 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
17435 call_stmt_time fields.
17436 (cgraph_edge_inlinable_p): Declare.
17437 (cgraph_edge_recursive_p): New inline function.
17438 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
17439 (cgraph_clone_edge): Copy it.
17440 * ipa-inline.c (cgraph_estimate_edge_time): New function.
17441 Account for call stmt time.
17442 (cgraph_estimate_time_after_inlining): Take edge argument.
17443 (cgraph_estimate_edge_growth): Account call stmt size.
17444 (cgraph_estimate_size_after_inlining): Take edge argument.
17445 (cgraph_mark_inline_edge): Adjust.
17446 (cgraph_check_inline_limits): Likewise.
17447 (cgraph_recursive_inlining_p): Remove.
17448 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
17449 (cgraph_decide_recursive_inlining): Take edge argument and
17450 adjust.
17451 (cgraph_decide_inlining_of_small_functions): Do not avoid
17452 diags for recursive inlining here.
17453 (cgraph_flatten): Adjust.
17454 (cgraph_decide_inlining_incrementally): Likewise.
17455 (estimate_function_body_sizes): Remove call cost handling.
17456 (compute_inline_parameters): Initialize caller edge call costs.
17457 (cgraph_estimate_edge_growth): New function.
17458 (cgraph_estimate_growth): Use it.
17459 (cgraph_edge_badness): Likewise.
17460 (cgraph_check_inline_limits): Take an edge argument.
17461 (cgraph_decide_inlining_of_small_functions): Adjust.
17462 (cgraph_decide_inlining): Likewise.
17463 * tree-inline.c (estimate_num_insns): Only account for call
17464 return value if it is used.
17465 (expand_call_inline): Avoid diagnostics on recursive inline
17466 functions here.
17467 * lto-cgraph.c (lto_output_edge): Output edge call costs.
17468 (input_edge): Input edge call costs.
17469
2feb95f7
RO
174702011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17471
17472 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
17473
26fbd9c2
JW
174742011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
17475
17476 * doc/invoke.texi (Spec Files): Fix typo.
17477
694dc0ca
EB
174782011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17479
17480 * profile.c (branch_prob): Move declaration of local variable. Remove
17481 obsolete ??? comment. Expand the location explicitly instead of using
17482 the LOCATION_FILE and LOCATION_LINE macros.
17483
4925d0d5
WG
174842011-04-06 Wei Guozhi <carrot@google.com>
17485
17486 PR target/47855
17487 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
17488 (arm_cond_branch): Likewise.
17489 (arm_cond_branch_reversed): Likewise.
17490 (arm_jump): Likewise.
17491 (push_multi): Likewise.
17492 * config/arm/constraints.md (Py): New constraint.
17493
f55dfa2f
NF
174942011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17495
17496 PR bootstrap/48471
17497 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
17498 Move these...
17499 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
17500 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
17501 #ifdef DBX_DEBUGGING_INFO.
17502
fca96842
BS
175032011-04-05 Bernd Schmidt <bernds@codesourcery.com>
17504
17505 PR bootstrap/48403
17506 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
17507 if old and new states differ.
17508
30b83e38
JM
175092011-04-05 Joseph Myers <joseph@codesourcery.com>
17510
17511 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
17512 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
17513 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17514 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
17515 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
17516 mcfv4e): Use Alias.
17517 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
17518 ColdFire options to -mcpu= options.
17519
277a9aa5
JL
175202011-04-05 Jeff Law <law@redhat.com>
17521
17522 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
17523 check if BB is a successor of LOOP->header and return
17524 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
17525
c1e2610e
SB
175262011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17527
17528 * cprop.c (struct reg_use): Remove.
17529 (reg_use_table): Make an array of RTX.
17530 (find_used_regs, constprop_register, local_cprop_pass,
17531 bypass_block): Simplify users of reg_use_table.
17532 (cprop_insn): Likewise. Iterate if copy propagation succeeded
17533 on one of the uses found by find_used_regs.
17534
e532f586
NF
175352011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17536
17537 PR bootstrap/48469
17538 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
17539 declaration.
17540
3fb7c055
NF
175412011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17542
17543 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
17544 as an rtx.
17545 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
17546
b71b43d9
SB
175472011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17548
17549 PR middle-end/48441
17550 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
17551
b405b274
NF
175522011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17553
17554 * combine.c: Include obstack.h.
17555 (struct insn_link): Define.
17556 (uid_log_links): Adjust type.
17557 (FOR_EACH_LOG_LINK): New macro.
17558 (insn_link_obstack): Declare.
17559 (alloc_insn_link): Define.
17560 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
17561 type of link variables.
17562 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
17563 (try_combine, record_promoted_values, distribute_notes): Likewise.
17564 (distribute_links): Likewise. Tweak prototype.
17565 (clear_log_links): Delete.
17566 (adjust_for_new_dest): Call alloc_insn_link.
17567 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
17568
6409abe3
NF
175692011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17570
17571 * gcse.c (modify_mem_list): Convert to an array of VECs.
17572 (canon_modify_mem_list, compute_transp): Tweak formatting.
17573 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
17574 (load_killed_in_block_p): Likewise.
17575 (record_last_mem_set_info): Likewise.
17576 (clear_modify_mem_tables): Likewise.
17577
170d8157
TV
175782011-04-05 Tom de Vries <tom@codesourcery.com>
17579
17580 PR middle-end/48461
17581 * function.c (emit_use_return_register_into_block): Only define if
17582 HAVE_return.
17583
c5911a55
EB
175842011-04-05 Eric Botcazou <ebotcazou@adacore.com>
17585
17586 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
17587
abd016e6
JM
175882011-04-05 Joseph Myers <joseph@codesourcery.com>
17589
17590 * config/rx/rx-opts.h: New.
17591 * config/rx/rx.c (rx_cpu_type): Remove.
17592 (rx_handle_option): Don't assert that global structures are in
17593 use. Access variables via opts pointer. Defer most handling of
17594 OPT_mint_register_. Use error_at.
17595 (rx_option_override): Handle deferred OPT_mint_register_ here.
17596 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
17597 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
17598 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
17599 (rx_cpu_types): New Enum and EnumValue entries.
17600 (mint-register=): Use Defer and use Var accordingly.
17601
1ed13f83
NF
176022011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17603
17604 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
17605 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
17606 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
17607 Move these...
17608 (debug_free_queue, debug_nesting, symbol_queue_index):
17609 ...and these...
17610 * dbxout.c: ...to here. Make static.
17611
6ce1edcf
NF
176122011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17613
17614 * gcse.c (modify_pair): Define. Define a VEC of it.
17615 (canon_modify_mem_list): Convert to an array of VECs.
17616 (free_insn_expr_list_list): Delete.
17617 (clear_modify_mem_tables): Call VEC_free instead.
17618 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
17619 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
17620 (canon_list_insert, compute_transp): Likewise.
17621
c201ac94
TV
176222011-04-05 Tom de Vries <tom@codesourcery.com>
17623
17624 PR target/43920
17625 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
17626 for size.
17627
4c029f40
TV
176282011-04-05 Tom de Vries <tom@codesourcery.com>
17629
17630 PR target/43920
17631 * function.c (emit_use_return_register_into_block): New function.
17632 (thread_prologue_and_epilogue_insns): Use
17633 emit_use_return_register_into_block.
17634
2a562b0a
TV
176352011-04-05 Tom de Vries <tom@codesourcery.com>
17636
17637 PR target/43920
17638 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
17639 insn.
17640
0248bceb
TV
176412011-04-05 Tom de Vries <tom@codesourcery.com>
17642
17643 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
17644
ffa94123
YZ
176452011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
17646
798dd0ba
UB
17647 * config/arm/arm.md (define_constants for unspec): Replace with
17648 define_c_enum.
17649 (define_constants for unspecv): Replace with define_c_enum.
17650 * config/arm/neon.md (define_constants for unspec): Replace with
17651 define_c_enum.
ffa94123 17652
3b8f9b46
RH
176532011-04-04 Richard Henderson <rth@redhat.com>
17654
720cf80f 17655 PR bootstrap/48400
3b8f9b46
RH
17656 * dwarf2out.c (output_line_info): Always emit line info from
17657 at least one section.
17658 (dwarf2out_init): Create text_section_line_info here ...
17659 (set_cur_line_info_table): ... not here.
17660
720cf80f 176612011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
17662
17663 PR target/48380
17664 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 17665 not called.
e5b0e1ca 17666
720cf80f 17667 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 17668
196565d4
SB
176692011-04-04 Steven Bosscher <steven@gcc.gnu.org>
17670
b77f9eab
SB
17671 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
17672 (expr_equiv_p): Remove.
17673 (insert_set_in_table): Look at <dest, src> pair instead of expr.
17674 (hash_scan_set): Update call to insert_set_in_table.
17675 (dump_hash_table): Dump <dest, src> pair.
17676 (lookup_set): Simplify. Lookup <dest, src> pair.
17677 (compute_transp): Remove, fold heavily simplified code into...
17678 (compute_local_properties): ...here. Expect COMP and TRANSP
17679 unconditionally.
17680 (find_avail_set): Take set directly from struct expr.
17681 (find_bypass-set): Likewise.
17682 (bypass_block): Likewise.
17683 (cprop_insn): Likewise. Remove redundant INSN_P test.
17684
384d7a55
SB
17685 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
17686 checks on form of COND from find_implicit_sets to here.
17687 (find_implicit_sets): Cleanup control flow. Split critical edges
17688 if it exposes implicit sets. Allocate/resize implicit_sets as
17689 necessary.
17690 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
17691 changed something. Run df_analyze after find_implicit_sets if any
17692 edges were split. Do not allocate implicit_sets here.
17693
3084ce69
SB
17694 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
17695 (gcse_obstack): Renamed to cprop_obstack.
17696 (GNEW, GNEWVEC, GNEWVAR): Remove.
17697 (gmalloc): Remove.
17698 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
17699 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
17700 (gcse_alloc): Likewise, and rename to cprop_alloc.
17701 (alloc_gcse_men, free_gcse_mem): Remove.
17702 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
17703 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
17704 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
17705
196565d4
SB
17706 * cprop.c (oprs_not_set_p): Remove.
17707 (mark_set, mark_clobber): Remove.
17708 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
17709 (reg_not_set_p): New function.
17710 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
17711 (cprop_insn): Likewise.
17712 (cprop_jump): Use FOR_EACH_EDGE.
17713
9b69cf83
BS
177142011-04-04 Bernd Schmidt <bernds@codesourcery.com>
17715
17716 PR bootstrap/48403
17717 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
17718 (rank_for_schedule): Use scheduled_insns vector instead of
17719 last_scheduled_insn.
17720 (ok_for_early_queue_removal): Likewise.
17721 (queue_to_ready): Search forward in nonscheduled_insns_begin if
17722 we have a dbg_cnt.
17723 (choose_ready): Likewise.
17724 (commit_schedule): Use VEC_iterate.
17725 (schedule_block): Initialize nonscheduled_insns_begin. If we have
17726 a dbg_cnt, use it and ensure the first insn is in the ready list.
17727 (haifa_sched_init): Allocate scheduled_insns.
17728 (sched_extend_ready_list): Don't allocate it; reserve space.
17729 (haifa_sched_finish): Free it.
17730
24f48c2f
JM
177312011-04-04 Joseph Myers <joseph@codesourcery.com>
17732
17733 * optc-gen.awk: Always remove type from Variable entry before
17734 recording in var_seen.
17735
8effe856
EB
177362011-04-04 Eric Botcazou <ebotcazou@adacore.com>
17737
17738 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
17739 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
17740 call to tidy_fallthru_edges.
17741
413519ae
JM
177422011-04-04 Joseph Myers <joseph@codesourcery.com>
17743
17744 * doc/options.texi (ToLower): Document.
3729983c 17745 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
17746 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
17747 * opts.h (cl_option): Add cl_tolower field.
17748 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
17749 arguments with lowercase strings.
17750 * config/rx/rx.opt (mcpu=): Add ToLower.
17751 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
17752 argument.
17753
7d34a1b0
RS
177542011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
17755
17756 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
17757
c30e7434
RS
177582011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
17759
17760 * config/vax/vax.c: Include reload.h.
17761
112a861d
AS
177622011-04-04 Anatoly Sokolov <aesok@post.ru>
17763
17764 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
17765 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17766 (sparc_preferred_reload_class): New function.
17767
e8c6bb74
JJ
177682011-04-04 Jakub Jelinek <jakub@redhat.com>
17769
2aeaa366 17770 PR debug/48401
e8c6bb74
JJ
17771 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
17772 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
17773
2c081caf
NF
177742011-04-03 Nathan Froyd <froydnj@codesourcery.com>
17775
17776 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
17777 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
17778
53802f27
AS
177792011-04-03 Anatoly Sokolov <aesok@post.ru>
17780
17781 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
17782 (ASM_OUTPUT_ALIGNED_BSS): Define.
17783
e89964e3
MM
177842011-04-03 Michael Matz <matz@suse.de>
17785
17786 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
17787 and next_slot members.
17788 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
17789 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
17790 (lto_streamer_cache_append): Declare.
17791 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
17792 unsigned index, remove offset parameter, ensure that we append
17793 or update existing entries.
17794 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
17795 parameter, update next_slot for append.
17796 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
17797 parameter.
17798 (lto_streamer_cache_insert_at): Likewise.
17799 (lto_streamer_cache_append): New function.
17800 (lto_streamer_cache_lookup): Use unsigned index.
17801 (lto_streamer_cache_get): Likewise.
17802 (lto_record_common_node): Don't test tree_node_can_be_shared.
17803 (preload_common_node): Adjust call to lto_streamer_cache_insert.
17804 (lto_streamer_cache_delete): Don't free offsets member.
17805 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
17806 (lto_output_string_with_length): Use lto_output_data_stream.
17807 (lto_output_tree_header): Remove ix parameter, don't write it.
17808 (lto_output_builtin_tree): Likewise.
17809 (lto_write_tree): Adjust callers to above, don't track and write
17810 offset, write unsigned index.
17811 (output_unreferenced_globals): Don't emit all global vars.
17812 (write_global_references): Use unsigned indices.
17813 (lto_output_decl_state_refs): Likewise.
17814 (write_symbol): Likewise.
17815 * lto-streamer-in.c (lto_input_chain): Move earlier.
17816 (input_function): Use unsigned index.
17817 (input_alias_pairs): Don't read and then ignore all global vars.
17818 (lto_materialize_tree): Remove ix_p parameter, don't read index,
17819 don't pass it back, use lto_streamer_cache_append.
17820 (lto_register_var_decl_in_symtab): Use unsigned index.
17821 (lto_register_function_decl_in_symtab): Likewise.
17822 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
17823 index.
17824 (lto_get_builtin_tree): Don't read index, use
17825 lto_streamer_cache_append.
17826 (lto_read_tree): Adjust call to lto_materialize_tree.
17827
17828 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
17829 don't use function calls in arguments to MIN.
17830
17831 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
17832 twice.
17833
17834 * gimple.c (gimple_type_leader_entry): Mark deletable.
17835
b9a5b5b2
AM
178362011-04-03 Alan Modra <amodra@gmail.com>
17837
17838 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
17839
ac6a641b
MM
178402011-04-03 Michael Matz <matz@suse.de>
17841
17842 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
17843 an integer.
17844 * tree.h (tree_decl_non_common.vindex): Adjust comment.
17845
0038d4e0
MM
178462011-04-03 Michael Matz <matz@suse.de>
17847
e9c18386 17848 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
17849 * gimple-fold.c (canonicalize_constructor_val): Accept being called
17850 without function context.
17851 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
17852 current_function_decl and cfun.
17853
91f2fae8
MM
178542011-04-03 Michael Matz <matz@suse.de>
17855
17856 * tree.c (decl_init_priority_insert): Don't create entry for
17857 default priority.
17858 (decl_fini_priority_insert): Ditto.
17859 (fields_compatible_p, find_compatible_field): Remove.
17860 * tree.h (fields_compatible_p, find_compatible_field): Remove.
17861 * gimple.c (gimple_compare_field_offset): Adjust block comment.
17862
da29e070
EB
178632011-04-03 Eric Botcazou <ebotcazou@adacore.com>
17864
17865 * combine.c (try_combine): Remove useless local variable.
17866
4979c28b 178672011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 17868 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
17869
17870 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
17871 non-variable offsets and compare the remaining bases of the two
17872 accesses instead of looking for exact same data-ref.
17873
b4ddcaee
KT
178742011-04-02 Kai Tietz <ktietz@redhat.com>
17875
f90298e1
KT
17876 PR target/48416
17877 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
17878
b4ddcaee
KT
17879 * i386.c (ix86_is_msabi_thiscall): New helper function.
17880 (ix86_is_type_thiscall): New helper function.
17881 (ix86_comp_type_attributes): Handle thiscall for method-functions
17882 special.
17883 (init_cumulative_args): Likewise.
17884 (find_drap_reg): Likewise.
17885 (ix86_static_chain): Likewise.
17886 (x86_this_parameter): Likewise.
17887 (x86_output_mi_thunk): Likewise.
17888
2a9d769a 178892011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
17890 Nicolas Setton <setton@adacore.com>
17891 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
17892
17893 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
17894 (add_gnat_descriptive_type_attribute): New function.
17895 (gen_array_type_die): Call it.
17896 (gen_enumeration_type_die): Likewise.
17897 (gen_struct_or_union_type_die): Likewise.
17898 (modified_type_die): Likewise.
17899 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
17900 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
17901 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
17902
15a03a11
JJ
179032011-04-01 Jakub Jelinek <jakub@redhat.com>
17904
17905 PR bootstrap/48148
17906 * dwarf2out.c (resolve_addr): Don't call force_decl_die
17907 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
17908
17909 Revert:
17910 2011-03-17 Richard Guenther <rguenther@suse.de>
17911
17912 PR bootstrap/48148
17913 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17914 origin for decls in other ltrans units.
17915 (input_varpool_node): Likewise.
17916
19228b93
JJ
179172011-04-01 Jakub Jelinek <jakub@redhat.com>
17918
17919 PR middle-end/48335
17920 * expr.c (expand_assignment): Handle all possibilities
17921 if TO_RTX is CONCAT.
e9c18386 17922 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
17923 (store_split_bit_field): If SUBREG_REG (op0) or
17924 op0 itself has smaller mode than word, return it
17925 for offset 0 and const0_rtx for out-of-bounds stores.
17926 If word is const0_rtx, skip it.
17927
88cb339e
N
179282011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
17929
17930 * config/h8300/h8300.c (print_operand_address): Rename to...
17931 (h8300_print_operand_address): ...this. Make static. Adjust comments.
17932 Call h8300_print_operand and h8300_print_operand_address instead of
17933 print_operand and print_operand_address. Declare.
17934 (print_operand): Renake to...
17935 (h8300_print_operand): ...this. Make static. Adjust comments.
17936 Call h8300_print_operand instead of print_operand. Declare.
17937 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
17938 (h8300_register_move_cost): Likewise.
17939 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
17940 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
17941 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
17942 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
17943 * config/h8300/h8300-protos.h (print_operand): Delete.
17944 (print_operand_address): Delete.
17945
756d6ee9
RH
179462011-04-01 Richard Henderson <rth@redhat.com>
17947
17948 PR 48400
17949 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
17950 in strict mode before dwarf4. Re-order tests to early out
17951 before switching sections.
17952
ceaaaeab
NF
179532011-04-01 Nathan Froyd <froydnj@codesourcery.com>
17954
17955 * config/h8300/constraints.md: New file.
17956 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
17957 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
17958 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
17959 * config/h8300/predicates.md (bit_operand): Likewise.
17960 (incdec_operand): Use satisfies_constraint_M and
17961 satisfies_constraint_O. Don't use C code block.
17962 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
17963 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
17964 (compute_mov_length): Use satisfies_constraint_G.
17965 (fix_bit_operand): Use satisfies_constraint_U.
17966 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
17967 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
17968 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
17969 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
17970 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
17971 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
17972 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17973 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
17974 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
17975 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
17976 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
17977 (EXTRA_MEMORY_CONSTRAINT): Delete.
17978
08ae38e0
AP
179792011-04-01 Andrew Pinski <pinskia@gmail.com>
17980 Michael Meissner <meissner@linux.vnet.ibm.com>
17981
17982 PR target/48262
17983 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
17984 operands, as per the specifications.
17985
17986 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
17987 (vec_extract_evenv4sf): Ditto.
17988 (vec_extract_evenv8hi): Ditto.
17989 (vec_extract_evenv16qi): Ditto.
17990 (vec_extract_oddv4si): Ditto.
17991
bdb0b0f6
MW
179922011-03-31 Mark Wielaard <mjw@redhat.com>
17993
17994 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
17995 high_pc attribute if the CU has no associated code. Only output
17996 DW_AT_entry_pc for CU if not generating strict dwarf and
17997 dwarf_version < 4.
17998
722279e4
BS
179992011-04-01 Bernd Schmidt <bernds@codesourcery.com>
18000
18001 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
18002 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
18003 out of ...
18004 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
18005 * final.c (final_start_function): Call the new function rather
18006 than using a NULL argument for dwarf2out_frame_debug.
18007
c5dd277d
BS
18008 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
18009 that contains the prologue.
18010
ec4efea9
BS
18011 * haifa-sched.c (queue_insn): New arg REASON. All callers
18012 changed. Print it in debugging output.
18013
2a6a0d80
BS
18014 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
18015
86014d07
BS
18016 * sched-ebb.c (begin_schedule_ready): Remove second argument.
18017 Split most of the code into...
18018 (begin_move_insn): ... here. New function.
18019 (ebb_sched_info): Add a pointer to it.
18020 * haifa-sched.c (scheduled_insns): New static variable.
18021 (sched_extend_ready_list): Allocate it.
18022 (schedule_block): Use it to record the order of scheduled insns.
18023 Perform RTL changes to move insns only after all scheduling
18024 decisions have been made.
18025 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
18026 begin_move_insn field.
18027 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
18028 * sched-int.h (struct haifa_sched_info): Remove second argument
18029 from begin_schedule_ready hook. Add new member begin_move_insn.
18030 * sched-rgn.c (begin_schedule_ready): Remove second argument.
18031 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
18032
9d701248
BS
18033 * haifa-sched.c (prune_ready_list): New function, broken out of
18034 schedule_block.
18035 (schedule_block): Use it.
18036
1ca1dad5
UW
180372011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18038
18039 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
18040
49568e45
KT
180412011-04-01 Kai Tietz <ktietz@redhat.com>
18042
18043 * config.gcc (*-*-mingw*): Allow as option the
18044 posix threading model.
07c0852e 18045 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
18046 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
18047 definition.
18048 (CPP_SPEC): Add pthread/no-pthread handling.
18049 (LIB_SPEC): Likewise.
18050 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
18051 (LIB_SPEC): Likewise.
18052 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
18053 flag to pass -pthread option for shared libgcc build.
18054 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
18055 for shared libgcc build.
18056 * config/i386/t-mingw-pthread: New file.
18057 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
18058 New define to enable use of library pthread by default.
18059 * config/i386/mingw.opt (pthread): New driver option.
18060 (no-pthread): New driver option.
e9c18386 18061 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
18062 * config/i386/mingw-w64.opt: Likewise.
18063
748f7574 180642011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
18065
18066 * c-decl.c (grokdeclarator): Fix formatting.
18067
f04713ee
RS
180682011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18069
18070 * expr.c (emit_block_move_via_movmem): Use n_generator_args
18071 instead of n_operands.
18072 (set_storage_via_setmem): Likewise.
18073 * optabs.c (maybe_gen_insn): Likewise.
18074 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
18075 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
18076 (mips_expand_builtin_direct): Likewise.
18077 * config/spu/spu.c (expand_builtin_args): Likewise.
18078
b29387ee
RS
180792011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18080
18081 * recog.h (insn_data_d): Add n_generator_args.
18082 * genoutput.c (data): Likewise.
18083 (output_insn_data): Print it.
18084 (max_opno, num_dups): Delete.
18085 (scan_operands): Just fill in "d->operand[...]".
18086 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
18087
e792559a
RS
180882011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18089
18090 * gensupport.h (pattern_stats): New structure.
18091 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
18092 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
18093 (max_operand_1, max_operand_vec): Delete.
18094 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
18095
e8110d6f
NF
180962011-03-31 Nathan Froyd <froydnj@codesourcery.com>
18097
18098 * emit-rtl.c (emit_pattern_after_setloc): New function.
18099 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
18100 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
18101 (emit_pattern_after): New function.
18102 (emit_insn_after, emit_jump_insn_after): Call it.
18103 (emit_call_insn_after, emit_debug_insn_after): Likewise.
18104 (emit_pattern_before_setloc): New function.
18105 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
18106 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
18107 Likewise.
18108 (emit_pattern_before): New function.
18109 (emit_insn_before, emit_jump_insn_before): Call it.
18110 (emit_call_insn_before, emit_debug_insn_before): Likewise.
18111
576f85f1
RH
181122011-03-31 Richard Henderson <rth@redhat.com>
18113
18114 * dwarf2out.c (dw_separate_line_info_ref): Remove.
18115 (dw_separate_line_info_entry): Remove.
18116 (enum dw_line_info_opcode): New.
18117 (dw_line_info_entry): Use it.
18118 (dw_line_info_table, dw_line_info_table_p): New.
18119 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
18120 (line_info_table, line_info_label_num): Remove.
18121 (line_info_table_in_use): Remove.
18122 (separate_line_info_table): Remove.
18123 (separate_line_info_table_allocated): Remove.
18124 (separate_line_info_table_in_use): Remove.
18125 (LINE_INFO_TABLE_INCREMENT): Remove.
18126 (line_info_label_num): New.
18127 (cur_line_info_table): New.
18128 (text_section_line_info, cold_text_section_line_info): New.
18129 (separate_line_info): New.
18130 (SEPARATE_LINE_CODE_LABEL): Remove.
18131 (print_dwarf_line_table): Remove.
18132 (debug_dwarf): Don't dump it.
18133 (output_one_line_info_table): New.
18134 (output_line_info): Use it.
18135 (new_line_info_table): New.
18136 (set_cur_line_info_table): New.
18137 (dwarf2out_switch_text_section): Use it.
18138 (dwarf2out_begin_function): Likewise.
18139 (push_dw_line_info_entry): New.
18140 (dwarf2out_source_line): Rewrite for new line info tables.
18141 (dwarf2out_init): Remove dead initailizations.
18142
300d83d9
JM
181432011-03-31 Joseph Myers <joseph@codesourcery.com>
18144
18145 * opts.h (cl_option): Add comments to fields. Add bit-fields for
18146 various flags.
18147 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
18148 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
18149 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
18150 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
18151 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
18152 * opt-functions.awk (flag_init, switch_bit_fields): New.
18153 (switch_flags): Don't handle flags moved to bit-fields. Don't
18154 generate CL_MISSING_OK or CL_SAVE.
18155 * optc-gen.awk: Update to generate bit-field output as well as
18156 flags field.
18157 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
18158 bit-field instead of CL_REJECT_DRIVER flag.
18159 * opts-common.c (generate_canonical_option,
18160 decode_cmdline_option): Use bit-fields instead of CL_* flags.
18161 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
18162 instead of CL_REJECT_NEGATIVE flag.
18163 * toplev.c (print_switch_values): Use cl_report bit-field instead
18164 of CL_REPORT flag.
18165
d4d73ce2
EB
181662011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18167
18168 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
18169 a zero minimum index only if it is redundant.
18170
b8faca75
VM
181712011-03-31 Vladimir Makarov <vmakarov@redhat.com>
18172
18173 PR rtl-optimization/48381
18174 * ira-color.c (assign_hard_reg): Use hard reg set intersection
18175 instead of ira_class_hard_reg_index for calculating conflicting
18176 hard registers.
18177
7d11cebe
SB
181782011-03-31 Steven Bosscher <steven@gcc.gnu.org>
18179
18180 * cprop.c: Clean up hash table building.
18181 (reg_avail_info): Remove.
18182 (oprs_available_p): Remove.
18183 (record_last_reg_set_info): Remove.
18184 (record_last_set_info): Remove.
18185 (reg_available_p): New function.
18186 (gcse_constant_p): Do not treat unfolded conditions as constants.
18187 (make_set_regs_unavailable): New function.
18188 (hash_scan_set): Simplify with new reg_available_p.
18189 (compute_hash_table_work): Traverse insns stream only once.
18190 Do not compute reg_avail_info. Traverse insns in reverse order.
18191 Record implicit sets after recording explicit sets from the block.
18192
98faf84f
MM
181932011-03-31 Michael Matz <matz@suse.de>
18194
e9c18386 18195 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 18196
f52d97da
AS
181972011-03-31 Anatoly Sokolov <aesok@post.ru>
18198
18199 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
18200 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
18201 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18202 (h8300_mode_dependent_address_p): New function.
18203 (h8300_get_index): Make static.
18204
e16b6fd0
JL
182052011-03-31 Jeff Law <law@redhat.com>
18206
10c51983
JL
18207 * reload1.c (elimination_effects): Fix typo in recent change.
18208
e9c18386 18209 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
18210 typo potentially leading to null pointer dereference.
18211
18212 * caller-save.c (new_saved_hard_reg): Eliminate return value.
18213 (setup_save_areas): Corresponding changes to avoid useless
18214 assignments.
18215
18216 * jump.c (reversed_comparison_code_parts): Avoid successive return
18217 statements when REVERSE_CONDITION is defined.
18218
18219 * expr.c (expand_assignment): Avoid useless assignments.
18220 (expand_expr_real_1): Likewise.
18221 (expand_expr_real_2): Avoid useless statements.
18222
18223 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
18224
18225 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18226
18227 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
18228 statements.
18229
18230 * stmt.c (expand_expr_stmt): Avoid useless assignment.
18231
eb1eb914
JM
182322011-03-31 Joseph Myers <joseph@codesourcery.com>
18233
18234 PR target/47109
18235 * doc/tm.texi.in (TARGET_VERSION): Remove.
18236 * doc/tm.texi: Regenerate.
18237 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
18238 * collect2.c (main): Don't use TARGET_VERSION.
18239 * mips-tdump.c (main): Don't use TARGET_VERSION.
18240 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 18241 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
18242 * config/rs6000/vxworksae.h: Remove.
18243 * config/alpha/alpha.h (TARGET_VERSION): Remove.
18244 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
18245 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
18246 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
18247 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18248 * config/arm/arm.h (TARGET_VERSION): Remove.
18249 * config/arm/coff.h (TARGET_VERSION): Remove.
18250 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
18251 * config/arm/elf.h (TARGET_VERSION): Remove.
18252 * config/arm/freebsd.h (TARGET_VERSION): Remove.
18253 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
18254 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
18255 * config/arm/pe.h (TARGET_VERSION): Remove.
18256 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
18257 * config/arm/semi.h (TARGET_VERSION): Remove.
18258 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
18259 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
18260 * config/arm/vxworks.h (TARGET_VERSION): Remove.
18261 * config/avr/avr.h (TARGET_VERSION): Remove.
18262 * config/bfin/bfin.h (TARGET_VERSION): Remove.
18263 * config/fr30/fr30.h (TARGET_VERSION): Remove.
18264 * config/frv/frv.h (TARGET_VERSION): Remove.
18265 * config/h8300/h8300.h (TARGET_VERSION): Remove.
18266 * config/i386/cygwin.h (TARGET_VERSION): Remove.
18267 * config/i386/darwin.h (TARGET_VERSION): Remove.
18268 * config/i386/darwin64.h (TARGET_VERSION): Remove.
18269 * config/i386/djgpp.h (TARGET_VERSION): Remove.
18270 * config/i386/freebsd.h (TARGET_VERSION): Remove.
18271 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
18272 * config/i386/gnu.h (TARGET_VERSION): Remove.
18273 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
18274 * config/i386/i386elf.h (TARGET_VERSION): Remove.
18275 * config/i386/linux.h (TARGET_VERSION): Remove.
18276 * config/i386/linux64.h (TARGET_VERSION): Remove.
18277 * config/i386/lynx.h (TARGET_VERSION): Remove.
18278 * config/i386/mingw32.h (TARGET_VERSION): Remove.
18279 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
18280 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
18281 * config/i386/netware.h (TARGET_VERSION): Remove.
18282 * config/i386/nto.h (TARGET_VERSION): Remove.
18283 * config/i386/openbsd.h (TARGET_VERSION): Remove.
18284 * config/i386/vxworks.h (TARGET_VERSION): Remove.
18285 * config/ia64/elf.h (TARGET_VERSION): Remove.
18286 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
18287 * config/ia64/hpux.h (TARGET_VERSION): Remove.
18288 * config/ia64/linux.h (TARGET_VERSION): Remove.
18289 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18290 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
18291 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18292 * config/lm32/lm32.h (TARGET_VERSION): Remove.
18293 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
18294 * config/m32c/m32c.h (TARGET_VERSION): Remove.
18295 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
18296 * config/m32r/m32r.h (TARGET_VERSION): Remove.
18297 * config/m68k/linux.h (TARGET_VERSION): Remove.
18298 * config/m68k/m68k.h (TARGET_VERSION): Remove.
18299 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
18300 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
18301 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
18302 * config/mep/mep.h (TARGET_VERSION): Remove.
18303 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
18304 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18305 * config/mips/iris6.h (MACHINE_TYPE): Remove.
18306 * config/mips/linux.h (TARGET_VERSION): Remove.
18307 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
18308 * config/mips/vxworks.h (TARGET_VERSION): Remove.
18309 * config/mmix/mmix.h (TARGET_VERSION): Remove.
18310 * config/mn10300/linux.h (TARGET_VERSION): Remove.
18311 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
18312 * config/pa/pa.h (TARGET_VERSION): Remove.
18313 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
18314 * config/picochip/picochip.h (TARGET_VERSION): Remove.
18315 * config/rs6000/aix.h (TARGET_VERSION): Remove.
18316 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
18317 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
18318 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
18319 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
18320 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
18321 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
18322 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
18323 * config/rs6000/linux.h (TARGET_VERSION): Remove.
18324 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
18325 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
18326 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
18327 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
18328 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
18329 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
18330 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
18331 * config/s390/linux.h (TARGET_VERSION): Remove.
18332 * config/s390/s390.h (TARGET_VERSION): Remove.
18333 * config/s390/tpf.h (TARGET_VERSION): Remove.
18334 * config/score/score.h (TARGET_VERSION): Remove.
18335 * config/sh/linux.h (TARGET_VERSION): Remove.
18336 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
18337 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
18338 * config/sh/sh.h (TARGET_VERSION): Remove.
18339 * config/sh/sh64.h (TARGET_VERSION): Remove.
18340 * config/sh/superh.h (TARGET_VERSION): Remove.
18341 * config/sh/vxworks.h (TARGET_VERSION): Remove.
18342 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
18343 * config/sparc/linux.h (TARGET_VERSION): Remove.
18344 * config/sparc/linux64.h (TARGET_VERSION): Remove.
18345 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
18346 TARGET_NAME32, TARGET_NAME): Remove.
18347 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
18348 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
18349 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
18350 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
18351 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
18352 * config/spu/spu.h (TARGET_VERSION): Remove.
18353 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
18354 * config/v850/v850.h (TARGET_VERSION): Remove.
18355 * config/vax/linux.h (TARGET_VERSION): Remove.
18356 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
18357 * config/xtensa/elf.h (TARGET_VERSION): Remove.
18358 * config/xtensa/linux.h (TARGET_VERSION): Remove.
18359
ace31bca
EB
183602011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18361
18362 PR target/48142
18363 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
18364 frame-related from frame-unrelated adjustments to the stack pointer.
18365
76f9db36
JJ
183662011-03-31 Jakub Jelinek <jakub@redhat.com>
18367
18368 * common.opt (fdebug-types-section): Move earlier.
18369 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
18370
b7826465
AT
183712011-03-31 Andreas Tobler <andreast@fgznet.ch>
18372
18373 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
18374 var.
18375
1290e54c
NF
183762011-03-30 Nathan Froyd <froydnj@codesourcery.com>
18377
18378 * tree.h (CASE_CHAIN): Define.
18379 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
18380 (gimple_redirect_edge_and_branch): Likewise.
18381
bddc98e1
VM
183822011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18383
18384 PR middle-end/48367
18385 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
18386 calculation.
18387
c865e437
JL
183882011-03-30 Jeff Law <law@redhat.com>
18389
b3750213 18390 * PR bootstrap/48371
c865e437
JL
18391 * reload1.c (reload): Fix botch in last change.
18392
18393 * reload.h (struct reload): Fix typo introduced in last change.
18394
2cdf9574
JM
183952011-03-30 Joseph Myers <joseph@codesourcery.com>
18396
18397 * config/arm/arm.opt (mhard-float, msoft-float): Mark
18398 Undocumented. Remove help text.
18399 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
18400 -mhard-float.
18401
666a21a2
JM
184022011-03-30 Joseph Myers <joseph@codesourcery.com>
18403
18404 * doc/options.texi (NegativeAlias): Document.
18405 (Alias): Mention NegativeAlias.
18406 * opt-functions.awk: Handle NegativeAlias.
e9c18386 18407 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
18408 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
18409 * opts.h (CL_NEGATIVE_ALIAS): Define.
18410 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
18411 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
18412 OPT_mspe_.
18413 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
18414 Alias entries.
18415 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
18416 mno-spe and mno-isel instead of mspe=no and -misel=no.
18417
0fa4e351
MW
184182011-03-29 Mark Wielaard <mjw@redhat.com>
18419
18420 * common.opt (fdebug-types-section): New flag.
18421 * doc/invoke.texi: Document new -fno-debug-types-section flag.
18422 * dwarf2out.c (use_debug_types): New define.
18423 (struct die_struct): Mark die_id with GTY desc use_debug_types.
18424 (print_die): Guard output of type unit signatures using
18425 use_debug_types.
18426 (build_abbrev_table): Replace assert of dwarf_version >= 4
18427 with assert on use_debug_types.
18428 (size_of_die): Likewise.
18429 (unmark_dies): Likewise.
18430 (value_format): Decide AT_ref_external form on use_debug_types.
18431 (output_die): Replace dwarf_version version check guard with
18432 use_debug_types where appropriate.
18433 (modified_type_die): Likewise.
18434 (gen_reference_type_die): Likewise.
18435 (dwarf2out_start_source_file): Likewise.
18436 (dwarf2out_end_source_file): Likewise.
18437 (prune_unused_types_walk_attribs): Likewise.
18438 (dwarf2out_finish): Likewise.
18439
4648deb4
VM
184402011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18441
18442 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
18443
4f431835
RS
184442011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18445
18446 PR rtl-optimization/48332
18447 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
18448 mode of input operand N and modeN to its actual mode.
18449
f2034d06
JL
184502011-03-30 Jeff Law <law@redhat.com>
18451
18452 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
18453 define accessor macro.
18454 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
18455 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
18456 (reg_equiv_init): Likewise.
18457 (reg_equivs_size): New variable.
18458 (reg_equiv_init_size): Remove.
18459 (allocate_initial_values): Move prototype to here from....
18460 * integrate.h (allocate_initial_values): Remove prototype.
18461 * integrate.c: Include reload.h.
18462 (allocate_initial_values): Corresponding changes.
18463 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
18464 (fix_reg_equiv_init, no_equiv): Corresponding changes.
18465 (update_equiv_regs): Corresponding changes.
18466 (ira): Corresponding changes.
18467 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
18468 (push_secondary_reload): Corresponding changes.
18469 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
18470 (make_memloc, find_reloads_address): Corresponding changes.
18471 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
18472 (find_reloads_address_1): Corresponding changes.
18473 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
18474 (refers_to_regno_for_reload_p): Corresponding changes.
18475 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
18476 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
18477 * reload1.c: Include ggc.h.
18478 (grow_reg_equivs): New function.
18479 (replace_pseudos_in, reload): Corresponding changes.
18480 (calculate_needs_all_insns, alter_regs): Corresponding changes.
18481 (eliminate_regs_1, elimination_effects): Corresponding changes.
18482 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
18483 (delete_output_reload): Likewise.
18484 * caller-save.c (mark_referenced_regs): Corresponding changes.
18485 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
18486 * frv/predicates.md (frv_load_operand): Corresponding changes.
18487 * microblaze/microblaze.c (double_memory_operand): Corresponding
18488 changes.
18489 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
18490 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 18491 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
18492 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
18493 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
18494 changes.
18495 * pa/pa.c (emit_move_sequence): Corresponding changes.
18496 * vax/vax.c (nonindexed_address_p): Corresponding changes.
18497
159b81b0
RS
184982011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18499
18500 PR target/47551
18501 * config/arm/arm.c (coproc_secondary_reload_class): Handle
18502 structure modes. Don't check neon_vector_mem_operand for
18503 vector or structure modes.
18504
a6217191
RS
185052011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18506 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18507
18508 PR target/43590
18509 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
18510 operand 1 and reshuffle the operands to match.
18511 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
18512
bd837408
CS
185132011-03-30 Christian Schüler <cschueler@gmx.de>
18514
6955d771 18515 PR driver/48208
bd837408 18516 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 18517
6955d771 18518 PR driver/48260
bd837408
CS
18519 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
18520 handler function.
18521 * config/darwin.opt: Added '-arch' option.
18522
e9c0470a
NC
185232011-03-30 Nick Clifton <nickc@redhat.com>
18524
18525 * config/rx/rx.md: Add peepholes and patterns to combine
18526 extending loads and simple arithmetic instructions.
18527 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
18528 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
18529 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 18530 modes to use pre-decrement and post-increment addressing.
e9c18386 18531 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 18532 addresses.
e9c18386
UB
18533 (rx_print_operand): Add support for %Q. Fix handling of %Q.
18534 (rx_memory_move_cost): Adjust cost of stores.
18535 (rx_adjust_insn_length): New function.
e9c0470a 18536
8a87e7ab
JJ
185372011-03-30 Jakub Jelinek <jakub@redhat.com>
18538
18539 PR c/48305
18540 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18541 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
18542 matching arg00/arg01 types.
18543
12486e03
EB
185442011-03-30 Eric Botcazou <ebotcazou@adacore.com>
18545
18546 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
18547 last_location to UNKNOWN_LOCATION.
18548
0b99eef6
L
185492011-03-30 H.J. Lu <hongjiu.lu@intel.com>
18550
18551 PR target/48349
18552 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
18553 FLOAT_SSE_REGS.
18554
023592aa
JM
185552011-03-30 Joseph Myers <joseph@codesourcery.com>
18556 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18557
18558 PR bootstrap/48337
18559 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
18560 Init(PROCESSOR_V7).
18561 (sparc_cpu): Likewise.
18562 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
18563 PROCESSOR_V7.
18564
ad3b266b
VM
185652011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18566
18567 PR target/48336
18568 PR middle-end/48342
18569 PR rtl-optimization/48345
18570 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
18571 hard regs for given mode from profitable regs when doing secondary
18572 allocation.
18573
633c9126
JL
185742011-03-29 Jeff Law <law@redhat.com>
18575
18576 PR bootstrap/48327
18577 * tree-ssa-threadupdate.c (struct redirection_data): Remove
18578 do_not_duplicate field.
18579 (lookup_redirection_data): Corresponding changes.
18580 (create_duplicates): Always create a template block.
18581 (redirect_edges): Remove code which reused the original block
18582 when it was going to become unreachable code.
18583 (thread_block): Don't set do_not_duplicate field.
18584
eb50f63a
JM
185852011-03-29 Joseph Myers <joseph@codesourcery.com>
18586
18587 * lto-opts.c (register_user_option_p, lto_register_user_option):
18588 Make type argument unsigned.
18589 * lto-streamer.h (lto_register_user_option): Make type argument
18590 unsigned.
18591 * opth-gen.awk: Make CL_* macros unsigned.
18592 * opts-common.c (find_opt): Make lang_mask argument unsigned.
18593 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
18594 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
18595 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
18596 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
18597 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
18598 (find_opt): Make lang_mask argument unsigned.
18599
76763a6d
VM
186002011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18601
18602 PR rtl-optimization/48331
18603 PR rtl-optimization/48334
18604 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
18605 for any used algorithm.
18606
5c82436e
VM
186072011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18608
18609 * ira-conflicts.c (build_object_conflicts): Add unused attribute
18610 to parent_max.
18611
7a81008b
UB
186122011-03-29 Uros Bizjak <ubizjak@gmail.com>
18613
18614 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
18615 (alpha_option_override): Don't set alpha_sr_alias_set.
18616 (emit_frame_store_1): Use gen_frame_mem rather than calling
18617 set_mem_alias_set.
18618 (alpha_expand_epilogue): Ditto.
18619
86c8d1f6
IR
186202011-03-29 Ira Rosen <ira.rosen@linaro.org>
18621
18622 PR tree-optimization/48290
18623 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
18624 vectorization, check that relevant phis in the basic block after
18625 the inner loop are really inner loop's exit phis.
18626
0d12220f
RS
186272011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
18628
e8cf17e7 18629 PR debug/48190
0d12220f
RS
18630 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
18631 (cached_dw_loc_list_def): New structure.
18632 (cached_dw_loc_list): New typedef.
18633 (cached_dw_loc_list_table): New variable.
18634 (cached_dw_loc_list_table_hash): New function.
18635 (cached_dw_loc_list_table_eq): Likewise.
18636 (add_location_or_const_value_attribute): Take a bool cache_p.
18637 Cache the list when the parameter is true.
18638 (gen_formal_parameter_die): Update caller.
18639 (gen_variable_die): Likewise.
18640 (dwarf2out_finish): Likewise.
18641 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
18642 while generating debug info for the decl.
18643 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
18644 (dwarf2out_init): Initialize cached_dw_loc_list_table.
18645 (resolve_addr): Cache the result of resolving a chain of
18646 location lists.
18647
1756cb66
VM
186482011-03-28 Vladimir Makarov <vmakarov@redhat.com>
18649
18650 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
18651 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 18652
1756cb66
VM
18653 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
18654 after regstat_init_n_sets_and_refs.
18655
18656 * ira.c: Add more comments at the top.
18657 (setup_stack_reg_pressure_class, setup_pressure_classes):
18658 Add comments how we compute the register pressure classes.
18659 (setup_allocno_and_important_classes): Add more comments.
18660 (setup_class_translate_array, reorder_important_classes)
18661 (setup_reg_class_relations): Add comments.
18662
18663 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
18664 start of the file.
18665
18666 * ira-color.c: Add 2011 to the Copyright line.
18667 (assign_hard_reg): Add more comments.
18668 (improve_allocation): Ditto.
18669
18670 * ira-costs.c: Add 2011 to the Copyright line.
18671 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
18672 comments.
18673 (setup_regno_cost_classes_by_mode): Ditto.
18674
18675 Initial patches from ira-improv branch:
18676
18677 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
18678
f60c2554 18679 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
18680 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
18681 (ira_create_allocno): Remove initialization of
18682 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
18683 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
18684 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18685 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
18686 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
18687 Initialize ALLOCNO_ADD_DATA.
18688 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
18689 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
18690 ALLOCNO_REG.
18691 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
18692 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
18693
18694 * ira.c (ira_reallocate): Remove.
18695 (setup_pressure_classes): Call
18696 ira_init_register_move_cost_if_necessary. Use
18697 ira_register_move_cost instead of ira_get_register_move_cost.
18698 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
18699 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
18700
18701 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
18702 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18703 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
18704 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
18705 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
18706 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
18707 Fix formatting.
7a81008b 18708 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
18709 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
18710 (struct allocno_color_data): New.
18711 (allocno_color_data_t): New typedef.
18712 (allocno_color_data): New definition.
18713 (ALLOCNO_COLOR_DATA): New macro.
18714 (struct object_color_data): New.
18715 (object_color_data_t): New typedef.
18716 (object_color_data): New definition.
18717 (OBJECT_COLOR_DATA): New macro.
18718 (update_copy_costs, calculate_allocno_spill_cost): Call
18719 ira_init_register_move_cost_if_necessary. Use
18720 ira_register_move_cost instead of ira_get_register_move_cost.
18721 (move_spill_restore, update_curr_costs): Ditto.
18722 (allocno_spill_priority): Make it inline.
7a81008b 18723 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
18724 (struct coalesce_data, coalesce_data_t): New.
18725 (allocno_coalesce_data): New definition.
18726 (ALLOCNO_COALESCE_DATA): New macro.
18727 (merge_allocnos, coalesced_allocno_conflict_p): Use
18728 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
18729 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
18730 (coalesce_allocnos): Ditto.
18731 (setup_coalesced_allocno_costs_and_nums): Ditto.
18732 (collect_spilled_coalesced_allocnos): Ditto.
18733 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
18734 (setup_slot_coalesced_allocno_live_ranges): Ditto.
18735 (coalesce_spill_slots): Ditto.
18736 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
18737 free allocno_coalesce_data.
18738
18739 * ira-conflicts.c: Fix formatting.
18740 (process_regs_for_copy): Call
18741 ira_init_register_move_cost_if_necessary. Use
18742 ira_register_move_cost instead of ira_get_register_move_cost.
18743 (build_object_conflicts): Optimize.
18744
18745 * ira-costs.c (record_reg_classes): Optimize. Call
18746 ira_init_register_move_cost_if_necessary. Use
18747 ira_register_move_cost, ira_may_move_in_cost, and
18748 ira_may_move_out_cost instead of ira_get_register_move_cost and
18749 ira_get_may_move_cost.
18750 (record_address_regs): Ditto.
18751 (scan_one_insn): Optimize.
18752 (find_costs_and_classes): Optimize.
18753 (process_bb_node_for_hard_reg_moves): Call
18754 ira_init_register_move_cost_if_necessary. Use
18755 ira_register_move_cost instead of ira_get_register_move_cost.
18756
18757 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
18758 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
18759 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
18760 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
18761 definitions.
18762 (ira_initiate_emit_data, ira_finish_emit_data)
18763 (create_new_allocno): New functions.
7a81008b 18764 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
18765 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
18766 Use ira_register_move_cost instead of ira_get_register_move_cost.
18767
18768 * ira-int.h: Fix some comments.
7a81008b
UB
18769 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
18770 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
18771 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
18772 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
18773 add_data.
18774 (struct ira_allocno): Make mode and aclass a bitfield. Move other
18775 bitfield after mode. Make hard_regno a short int. Make
18776 hard_regno short. Remove first_coalesced_allocno and
18777 next_coalesced_allocno. Move mem_optimized_dest_p,
18778 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
18779 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
18780 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
18781 temp, colorable_p. Add new member add_data.
18782 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
18783 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
18784 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
18785 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
18786 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
18787 (ALLOCNO_ADD_DATA): New macro.
18788 (ira_emit_data_t): New typedef.
18789 (struct ira_emit_data): New. Move mem_optimized_dest_p,
18790 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
18791 from struct ira_allocno.
18792 (ALLOCNO_EMIT_DATA): New macro.
18793 (ira_allocno_emit_data, allocno_emit_reg): New.
18794 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 18795 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
18796 (OBJECT_ADD_DATA): New macro.
18797 (ira_reallocate): Remove.
18798 (ira_initiate_emit_data, ira_finish_emit_data): New.
18799 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
18800 (ira_init_register_move_cost_if_necessary): New.
18801 (ira_object_conflict_iter_next): Merge into
18802 ira_object_conflict_iter_cond.
7a81008b 18803 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 18804
f60c2554 18805 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
18806 ira_init_register_move_cost_if_necessary. Use
18807 ira_register_move_cost instead of ira_get_register_move_cost.
18808
18809 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
18810
18811 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
18812
18813 * ira-costs.c: Fix formatting.
18814 (cost_classes, cost_classes_num): Remove.
18815 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
18816 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
18817 (cost_classes_del, cost_classes_htab): New.
18818 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
18819 (initiate_regno_cost_classes, setup_cost_classes): New.
18820 (setup_regno_cost_classes_by_aclass): New.
7a81008b 18821 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
18822 (record_reg_classes): Use regno_cost_classes instead of
18823 cost_classes. Move checking opposite operand up.
18824 (record_address_regs): Use regno_cost_classes
18825 instead of cost_classes.
18826 (scan_one_insn): Ditto. Use always general register.
18827 (print_allocno_costs): Use regno_cost_classes instead of
18828 cost_classes.
18829 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
18830 (find_costs_and_classes): Set up cost classes for each registers.
18831 Use also their mode for this. Use regno_cost_classes instead of
18832 cost_classes.
18833 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
18834 cost_classes.
18835 (free_ira_costs, ira_init_costs): Don't use cost_classes.
18836 (ira_costs, ira_set_pseudo_classes): Call
18837 initiate_regno_cost_classes and finish_regno_cost_classes.
18838
18839 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
18840
18841 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
18842
18843 * target.def (ira_cover_classes): Remove.
18844
7a81008b 18845 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
18846
18847 * doc/tm.texi.in: Ditto.
18848
18849 * ira-conflicts.c: Remove mentioning cover classes from the file.
18850 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 18851 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
18852
18853 * targhooks.c (default_ira_cover_classes): Remove.
18854
18855 * targhooks.h (default_ira_cover_classes): Ditto.
18856
18857 * haifa-sched.c: Remove mentioning cover classes from the file.
18858 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
18859 ira_pressure_classes and ira_pressure_classes_num instead of
18860 ira_reg_class_cover_size and ira_reg_class_cover. Use
18861 sched_regno_pressure_class instead of sched_regno_cover_class.
18862 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
18863 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18864
18865 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
18866 classes from the file.
18867 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
18868 (struct object_hard_regs, struct object_hard_regs_node): New.
18869 (struct ira_object): New members profitable_hard_regs,
18870 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
18871 (struct ira_allocno): Rename cover_class to aclass. Rename
18872 cover_class_cost and updated_cover_class_cost to class_cost and
18873 updated_class_cost. Remove splay_removed_p and
18874 left_conflict_size. Add new members colorable_p.
18875 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
18876 (ALLOCNO_COLORABLE_P): New macro.
18877 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
18878 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
18879 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
18880 (OBJECT_...): Rename parameter C to O.
18881 (OBJECT_PROFITABLE_HARD_REGS): New macro.
18882 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
18883 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
18884 (struct target_ira_int): New members x_ira_max_memory_move_cost,
18885 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
18886 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
18887 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
18888 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
18889 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
18890 x_ira_reg_class_subunion.
18891 (ira_max_memory_move_cost, ira_max_register_move_cost)
18892 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
18893 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
18894 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 18895 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
18896 (ira_reg_class_union): Rename to ira_reg_class_subunion.
18897 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
18898 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18899 (ira_tune_allocno_costs_and_cover_classes): Rename to
18900 ira_tune_allocno_costs.
18901 (ira_debug_hard_regs_forest): New.
18902 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
18903 (ira_object_conflict_iter_next): Fix comments.
7a81008b 18904 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
18905 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
18906 cover_class to aclass.
18907 (ira_allocate_and_accumulate_costs): Ditto.
18908 (ira_allocate_and_set_or_copy_costs): Ditto.
18909
18910 * opts.c (decode_options): Remove ira_cover_class check.
18911
18912 * ira-color.c: Remove mentioning cover classes from the file. Use
18913 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
18914 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
18915 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
18916 (splay-tree.h): Remove include.
18917 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
18918 before copy_freq_compare_func.
18919 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
18920 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
18921 New definitions.
18922 (hard_regs_roots, hard_regs_node_vec): Ditto.
18923 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
18924 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
18925 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
18926 (create_new_object_hard_regs_node): Ditto.
18927 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 18928 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
18929 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
18930 Ditto.
18931 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
18932 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
18933 (remove_unused_object_hard_regs_nodes): Ditto.
18934 (enumerate_object_hard_regs_nodes): Ditto.
18935 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
18936 (object_hard_regs_subnode_t): Ditto.
18937 (struct object_hard_regs_subnode): Ditto.
18938 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
18939 (setup_object_hard_regs_subnode_index): Ditto.
18940 (get_object_hard_regs_subnodes_num): Ditto.
18941 (form_object_hard_regs_nodes_forest): Ditto.
18942 (finish_object_hard_regs_nodes_tree): Ditto.
18943 (finish_object_hard_regs_nodes_forest): Ditto.
18944 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 18945 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
18946 (pseudos_have_intersected_live_ranges_p): Rename to
18947 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
18948 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
18949 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
18950 (update_copy_costs): Remove assert. Skip cost update if the hard
18951 reg does not belong the class.
18952 (assign_hard_reg): Process only profitable hard regs.
18953 (uncolorable_allocnos_num): Make it scalar.
18954 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18955 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
18956 and ira_reg_class_max_nregs.
18957 (bucket_allocno_compare_func): Check frequency first.
18958 (sort_bucket): Add compare function as a parameter.
18959 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
18960 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
18961 (push_allocno_to_stack): Rewrite for checking new allocno
18962 colorability.
7a81008b 18963 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
18964 (push_only_colorable): Pass new parameter to sort_bucket.
18965 (push_allocno_to_spill): Remove.
18966 (allocno_spill_priority_compare): Make it inline and rewrite.
18967 (splay_tree_allocate, splay_tree_free): Remove.
18968 (allocno_spill_sort_compare): New function.
18969 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
18970 build and use splay tree. Choose first allocno in uncolorable
18971 allocno bucket to spill. Remove setting spill cost.
18972 (all_conflicting_hard_regs): Remove.
18973 (setup_allocno_available_regs_num): Check only profitable hard
18974 regs. Print info about hard regs nodes.
18975 (setup_allocno_left_conflicts_size): Remove.
18976 (put_allocno_into_bucket): Don't call
7a81008b 18977 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
18978 (improve_allocation): New.
18979 (color_allocnos): Call setup_profitable_hard_regs,
18980 form_object_hard_regs_nodes_forest, improve_allocation,
18981 finish_object_hard_regs_nodes_forest. Setup spill cost.
18982 (print_loop_title): Use pressure classes.
18983 (color_allocnso): Ditto.
18984 (do_coloring): Remove allocation and freeing splay_tree_node_pool
18985 and allocnos_for_spilling.
18986 (ira_sort_regnos_for_alter_reg): Don't setup members
18987 {first,next}_coalesced_allocno.
18988 (color): Remove allocating and freeing removed_splay_allocno_vec.
18989 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
18990 prohibited_class_mode_regs.
18991
18992 * ira-lives.c: Remove mentioning cover classes from the file. Fix
18993 formatting.
18994 (update_allocno_pressure_excess_length): Use pressure classes.
18995 (inc_register_pressure, dec_register_pressure): Check for pressure
18996 class.
18997 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
18998 pressure class. Use ira_reg_class_nregs instead of
18999 ira_reg_class_max_nregs.
19000 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
19001 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
19002 (single_reg_class): Use ira_reg_class_nregs instead of
19003 ira_reg_class_max_nregs.
19004 (process_bb_node_lives): Use pressure classes.
19005
19006 * ira-emit.c: Remove mentioning cover classes from the file. Use
19007 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
19008 (change_loop): Use pressure classes.
19009 (modify_move_list): Call ira_set_allocno_class instead of
19010 ira_set_allocno_cover_class.
19011
19012 * ira-build.c: Remove mentioning cover classes from the file. Use
19013 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
19014 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
19015 ALLOCNO_UPDATED_CLASS_COST instead of
19016 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
19017 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
19018 (ira_create_allocno): Remove initialization of
19019 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
19020 ALLOCNO_COLORABLE_P.
19021 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
19022 Update conflict regs for the objects.
19023 (create_cap_allocno): Remove assert. Don't propagate
19024 ALLOCNO_AVAILABLE_REGS_NUM.
19025 (ira_free_allocno_costs): New function.
19026 (finish_allocno): Change a part of code into call of
19027 ira_free_allocno_costs.
19028 (low_pressure_loop_node_p): Use pressure classes.
19029 (object_range_compare_func): Don't compare classes.
19030 (setup_min_max_conflict_allocno_ids): Ditto.
19031
19032 * loop-invariant.c: Remove mentioning cover classes from the file.
19033 Use ira_pressure_classes and ira_pressure_classes_num instead of
19034 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
19035 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
19036 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19037 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
19038 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
19039 STACK_REG_COVER_CLASS.
19040 (get_regno_cover_class): Rename to get_regno_pressure_class.
19041 (move_loop_invariants): Initialize and finalize regstat.
19042
19043 * ira.c: Remove mentioning cover classes from the file. Add
19044 comments about coloring without cover classes. Use ALLOCNO_CLASS
19045 instead of ALLOCNO_COVER_CLASS. Fix formatting.
19046 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
19047 setup_class_subset_and_memory_move_costs.
19048 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
19049 (setup_cover_and_important_classes): Rename to
19050 setup_allocno_and_important_classes.
19051 (setup_class_translate_array): New.
19052 (setup_class_translate): Call it for allocno and pressure classes.
19053 (cover_class_order): Rename to allocno_class_order.
19054 (comp_reg_classes_func): Use ira_allocno_class_translate instead
19055 of ira_class_translate.
19056 (reorder_important_classes): Set up ira_important_class_nums.
19057 (setup_reg_class_relations): Set up ira_reg_class_superunion.
19058 (print_class_cover): Rename to print_classes. Add parameter.
19059 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
19060 Print pressure classes too.
19061 (find_reg_class_closure): Rename to find_reg_classes. Don't call
19062 setup_reg_subclasses.
7a81008b 19063 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
19064 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19065 (setup_prohibited_class_mode_regs): Use
7a81008b 19066 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
19067 (clarify_prohibited_class_mode_regs): New function.
19068 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
19069 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
19070 (ira_init_once): Initialize them.
19071 (free_register_move_costs): Process them.
19072 (ira_init): Move calls of find_reg_classes and
19073 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
19074 Call clarify_prohibited_class_mode_regs.
19075 (ira_no_alloc_reg): Remove.
19076 (too_high_register_pressure_p): Use pressure classes.
19077
19078 * sched-deps.c: Remove mentioning cover classes from the file.
19079 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
19080 ira_pressure_classes and ira_pressure_classes_num instead of
19081 ira_reg_class_cover_size and ira_reg_class_cover.
19082 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
19083 sched_regno_pressure_class instead of sched_regno_cover_class.
19084 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
19085 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19086
19087 * ira.h: Add 2010 to Copyright.
19088 (ira_no_alloc_reg): Remove external.
19089 (struct target_ira): Rename x_ira_hard_regno_cover_class,
19090 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
19091 x_ira_class_translate to x_ira_hard_regno_allocno_class,
19092 x_ira_allocno_classes_num, x_ira_allocno_classes, and
19093 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
19094 x_ira_pressure_classes, x_ira_pressure_class_translate, and
19095 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
19096 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
19097 x_ira_no_alloc_regs.
7a81008b 19098 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
19099 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
19100 ira_allocno_classes_num and ira_allocno_classes.
19101 (ira_class_translate): Rename to ira_allocno_class_translate.
19102 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
19103 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
19104 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19105 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
19106 (ira_no_alloc_regs): New.
19107
19108 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
19109 classes from the file. Use ALLOCNO_CLASS instead of
19110 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
19111 ALLOCNO_COVER_CLASS_COST.
19112 (regno_cover_class): Rename to regno_aclass.
19113 (record_reg_classes): Use ira_reg_class_subunion instead of
19114 ira_reg_class_union.
19115 (record_address_regs): Check overflow.
19116 (scan_one_insn): Ditto.
7a81008b 19117 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
19118 (print_pseudo_costs): Use REG_N_REFS.
19119 (find_costs_and_classes): Use classes intersected with them on the
19120 1st pass. Check overflow. Use ira_reg_class_subunion instead of
19121 ira_reg_class_union. Use ira_allocno_class_translate and
19122 regno_aclass instead of ira_class_translate and regno_cover_class.
19123 Modify code for finding regno_aclass. Setup preferred classes for
19124 the next pass.
19125 (setup_allocno_cover_class_and_costs): Rename to
19126 setup_allocno_class_and_costs. Use regno_aclass instead of
19127 regno_cover_class. Use ira_set_allocno_class instead of
19128 ira_set_allocno_cover_class.
19129 (init_costs, finish_costs): Use regno_aclass instead of
19130 regno_cover_class.
19131 (ira_costs): Use setup_allocno_class_and_costs instead of
19132 setup_allocno_cover_class_and_costs.
19133 (ira_tune_allocno_costs_and_cover_classes): Rename to
19134 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
19135 by processing objects. Use ira_reg_class_max_nregs instead of
19136 ira_reg_class_nregs.
19137
19138 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
19139
19140 * sched-int.h: Remove mentioning cover classes from the file.
19141 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
19142
19143 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
19144 classes from the file.
19145 (struct reg_pref): Rename coverclass into allocnoclass.
19146 (reg_cover_class): Rename to reg_allocno_class.
19147
7a81008b 19148 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
19149
19150 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
19151
19152 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
19153
19154 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
19155
19156 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
19157
19158 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
19159
19160 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
19161
19162 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
19163
19164 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
19165
19166 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
19167
19168 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
19169 (i386_ira_cover_classes): Ditto.
19170
19171 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
19172
19173 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
19174
19175 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
19176
19177 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
19178
19179 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
19180
19181 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
19182
19183 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
19184 (mips_ira_cover_classes): Ditto.
19185
19186 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
19187
19188 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
19189
19190 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
19191
19192 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
19193
19194 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
19195
19196 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
19197 (IRA_COVER_CLASSES_VSX): Ditto.
19198
19199 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
19200 (rs6000_ira_cover_classes): Ditto.
19201
19202 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
19203
19204 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
19205
19206 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
19207
19208 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
19209
19210 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
19211
19212 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
19213
19214 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
19215
19216 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
19217
19218 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
19219
19220 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
19221
2b80199f
JJ
192222011-03-29 Jakub Jelinek <jakub@redhat.com>
19223
71dae1fe
JJ
19224 PR debug/48253
19225 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
19226 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
19227 dw_fde_unlikely_section_end_label, cold_in_std_section,
19228 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
19229 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
19230 fields.
19231 (output_fde): Use dw_fde_second_{begin,end} if second is
19232 true, otherwise dw_fde_{begin,end}.
19233 (output_call_frame_info): Test dw_fde_second_begin != NULL
19234 instead of dw_fde_switched_sections.
19235 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
19236 fields, initialize new fields. Initialize in_std_section
19237 unconditionally from the first partition.
19238 (dwarf2out_end_epilogue): Don't override dw_fde_end when
19239 dw_fde_second_begin is non-NULL.
19240 (dwarf2out_switch_text_section): Stop initializing removed
19241 dw_fde_struct fields, initialize new fields, initialize
19242 also dw_fde_end here. Set dw_fde_switch_cfi even when
19243 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
19244 (struct var_loc_list_def): Add last_before_switch field.
19245 (arange_table, arange_table_allocated, arange_table_in_use,
19246 ARANGE_TABLE_INCREMENT, add_arange): Removed.
19247 (size_of_aranges): Count !in_std_section and !second_in_std_section
19248 hunks in fdes, instead of looking at arange_table_in_use.
19249 (output_aranges): Add aranges_length argument, don't call
19250 size_of_aranges here. Instead of using aranges_table*
19251 emit ranges for fdes when !in_std_section resp.
19252 !second_in_std_section.
19253 (dw_loc_list): Break ranges crossing section switch.
19254 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 19255 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
19256 (gen_subprogram_die): Don't call add_arange. Use
19257 dw_fde_{begin,end} for first partition and if switched
19258 section dw_fde_second_{begin,end} for the second.
19259 (var_location_switch_text_section_1,
19260 var_location_switch_text_section): New functions.
19261 (dwarf2out_begin_function): Initialize cold_text_section even
19262 when function_section () isn't text_section.
19263 (prune_unused_types): Don't walk arange_table.
19264 (dwarf2out_finish): Don't needlessly test
19265 flag_reorder_blocks_and_partition when testing cold_text_section_used.
19266 If info_section_emitted, call size_of_aranges and if it indicates
19267 non-empty .debug_aranges, call output_aranges with the computed
19268 size. Stop using removed dw_fde_struct fields, use
19269 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
19270 for second.
19271
2b80199f
JJ
19272 PR debug/48203
19273 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
19274 create ENTRY_VALUE if incoming or address of incoming's MEM
19275 is a hard REG.
19276 * dwarf2out.c (mem_loc_descriptor): Don't emit
19277 DW_OP_GNU_entry_value of DW_OP_fbreg.
19278 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
19279 on ENTRY_VALUE is able to find the canonical parameter VALUE.
19280 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
19281 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
19282 ENTRY_VALUE_EXPs.
19283 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
19284 is a REG_P or MEM_P with REG_P address, compute hash directly
19285 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
19286 (preserve_only_constants): Don't clear VALUES forwaring
19287 ENTRY_VALUE to some other VALUE.
19288
8a445129
RS
192892011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
19290
19291 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
19292 instead of GEN_INT.
19293
c82fee88
EB
192942011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19295
19296 * cfgexpand.c (expand_gimple_cond): Always set the source location and
19297 block before expanding the statement.
19298 (expand_gimple_stmt_1): Likewise. Set them here...
19299 (expand_gimple_stmt): ...and not here. Tidy.
19300 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
19301 unknown.
19302
e45425ec
SB
193032011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19304
19305 * Makefile.in: New rule for cprop.o.
19306 * gcse.c: Move constant/copy propagation to cprop.c.
19307 (compute_local_properties): Only handle expression tables.
19308 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
19309 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
19310 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
19311 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 19312 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
19313 compute_cprop_data, find_used_regs, try_replace_reg,
19314 find_avail_set, cprop_jump, constprop_register, cprop_insn,
19315 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
19316 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
19317 find_bypass_set, reg_killed_on_edge, bypass_block,
19318 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
19319 execute_rtl_cprop, pass_rtl_cprop): Move to...
19320 * cprop.c: ...here. New file, constant/copy propagation for RTL
19321 moved from gcse.c to here with minor cleanups in duplicated code.
19322
c09d5426
L
193232011-03-28 H.J. Lu <hongjiu.lu@intel.com>
19324
19325 * config/i386/i386.c (flag_opts): Fix a typo in
19326 -mavx256-split-unaligned-store.
19327
9eaa7740
AS
193282011-03-28 Anatoly Sokolov <aesok@post.ru>
19329
19330 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19331 LIBCALL_VALUE): Remove macros.
19332 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19333 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19334 (h8300_function_value, h8300_libcall_value,
19335 h8300_function_value_regno_p): New functions.
19336
dcec2be2
AS
193372011-03-28 Anatoly Sokolov <aesok@post.ru>
19338
19339 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
19340
520af9ec
JL
193412011-03-28 Jeff Law <law@redhat.com>
19342
19343 * tree-ssa-threadupdate.c (redirect_edges): Call
19344 create_edge_and_update_destination_phis as needed.
19345 (create_edge_and_update_destination_phis): Accept new BB argument.
19346 All callers updated.
19347 (thread_block): Do not update the profile when threading around
19348 intermediate blocks.
19349 (thread_single_edge): Likewise.
19350 (determine_bb_domination_status): If BB is not a successor of the
19351 loop header, return NONDOMINATING.
19352 (register_jump_thread): Note when we register a jump thread around
19353 an intermediate block.
19354 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
19355 (thread_across_edge): Use it.
19356
7450b54f
TG
193572011-03-28 Tristan Gingold <gingold@adacore.com>
19358
19359 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
19360 when for_return is 2.
19361
649beb33
JL
193622011-03-28 Jeff Law <law@redhat.com>
19363
19364 * var-tracking.c (canonicalize_values_mark): Delete unused
19365 lhs assignment.
19366 (canonicalize_values_star, set_variable_part): Likewise.
19367 (clobber_variable_part, delete_variable_part): Likewise.
19368
d5b8da97
SB
193692011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19370
19371 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
19372
322dd859
MJ
193732011-03-28 Martin Jambor <mjambor@suse.cz>
19374
19375 * tree-inline.c (expand_call_inline): Do not check that destination
19376 node is analyzed.
19377 (optimize_inline_calls): Assert that destination node is analyzed.
19378 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
19379 not call tree_lowering_passes.
19380 * cgraph.h (cgraph_analyze_function): Declare.
19381 * cgraphunit.c (cgraph_analyze_function): Make public.
19382
aa53e58b
JM
193832011-03-28 Joseph Myers <joseph@codesourcery.com>
19384
19385 * config/sparc/sparc-opts.h: New.
19386 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
19387 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
19388 (sparc_option_override): Store processor_type enumeration rather
19389 than string in cpu_default. Remove name and enumeration from
19390 cpu_table. Directly default -mcpu then default -mtune from -mcpu
19391 without using sparc_select. Use target_flags_explicit instead of
19392 fpu_option_set.
19393 * config/sparc/sparc.h (enum processor_type): Move to
19394 sparc-opts.h.
19395 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
19396 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
19397 HeaderInclude entry.
19398 (mcpu=, mtune=): Use Var and Enum.
19399 (sparc_processor_type): New Enum and EnumValue entries.
19400
dd350eba
RO
194012011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19402 Iain Sandoe <iains@gcc.gnu.org>
19403
19404 PR target/48245
19405 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
19406
1b29f05e
EB
194072011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19408
19409 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
19410 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
19411 Insert new statements at it in lieu of STMT.
19412 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
19413 * tree-vect-stmts.c (vectorizable_store): Likewise.
19414 (vectorizable_load): Likewise.
19415
506e6808
UB
194162011-03-28 Uros Bizjak <ubizjak@gmail.com>
19417
19418 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
19419 (divtf3): Ditto.
19420 (multf3): Ditto.
19421 (subtf3): Ditto.
19422
2e939ee9
L
194232011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19424
19425 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
19426 unaligned 256bit load/store.
19427 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
19428 (*avx_movdqu<avxmodesuffix>): Likewise.
19429
5e85ab88
JDA
194302011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19431
19432 PR target/48288
19433 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
19434 * config/pa/pa.md (iordi3): Use new predicate in expander.
19435 (iorsi3): Likewise.
19436
47be3d6d
AS
194372011-03-27 Anatoly Sokolov <aesok@post.ru>
19438
506e6808 19439 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 19440 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
19441 * config/mips/mips-protos.h (mips_function_value): Remove.
19442 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
19443 (mips_function_value_1): ... this. Make static. Handle receiving
19444 the function type in 'fn_decl_or_type' argument.
19445 (mips_function_value, mips_libcall_value,
19446 mips_function_value_regno_p): New function.
19447 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19448 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19449
d253656a
L
194502011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19451
19452 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
19453 and -mavx256-split-unaligned-store.
19454 (ix86_option_override_internal): Split 32-byte AVX unaligned
19455 load/store by default.
19456 (ix86_avx256_split_vector_move_misalign): New.
19457 (ix86_expand_vector_move_misalign): Use it.
19458
19459 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
19460 -mavx256-split-unaligned-store.
19461
19462 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
19463 256bit load/store. Generate unaligned store on misaligned memory
19464 operand.
19465 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
19466 256bit load/store.
19467 (*avx_movdqu<avxmodesuffix>): Likewise.
19468
19469 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
19470 -mavx256-split-unaligned-store.
19471
1ea9206a
RS
194722011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19473
19474 PR target/38598
19475 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
19476 Update commentary.
19477
b99ce2a8
RS
194782011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19479
19480 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
19481 opno arguments with an expand_operand. Use create_input_operand.
19482 (mips_prepare_builtin_target): Delete.
19483 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
19484 functions.
19485 (mips_expand_builtin_direct): Use create_output_operand and
19486 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
19487 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
19488 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
19489
69d52339
IR
194902011-03-27 Ira Rosen <ira.rosen@linaro.org>
19491
19492 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
19493 function.
19494 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
19495
ba5e9aca
EB
194962011-03-26 Eric Botcazou <ebotcazou@adacore.com>
19497
19498 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
19499 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
19500 basic blocks and call commit_edge_insertions directly.
19501 (fixup_abnormal_edges): Move from here to...
19502 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
19503 on the edges and return whether some have actually been inserted.
19504 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
19505 compensation code.
19506
5d369d58
AB
195072011-03-26 Andrey Belevantsev <abel@ispras.ru>
19508
19509 PR rtl-optimization/48144
19510 * sel-sched-ir.c (merge_history_vect): Factor out from ...
19511 (merge_expr_data): ... here.
19512 (av_set_intersect): Rename to av_set_code_motion_filter.
19513 Update all callers. Call merge_history_vect when an expression
19514 is found in both sets.
19515 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
19516
f082c000
AM
195172011-03-26 Alan Modra <amodra@gmail.com>
19518
19519 * config/rs6000/predicates.md (word_offset_memref_op): Handle
19520 cmodel medium addresses.
19521 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
19522 64-bit gpr loads and stores.
19523 (rs6000_secondary_reload_ppc64): New function.
19524 * config/rs6000/rs6000-protos.h: Declare it.
19525 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
19526
8ac5e12e
AM
195272011-03-26 Alan Modra <amodra@gmail.com>
19528
19529 PR target/47487
19530 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
19531 GNU Go in traceback table.
19532
c2654ded
RH
195332011-03-25 Richard Henderson <rth@redhat.com>
19534
19535 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
19536 if there are exactly 6 operands.
19537 (set_storage_via_setmem): Similarly.
19538
ba78087b
KT
195392011-03-25 Kai Tietz <ktietz@redhat.com>
19540
19541 * collect2.c (write_c_file_stat): Handle backslash
19542 as right-hand directory separator.
19543 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
19544 checking just for slash.
19545 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
19546 instead of checking for trailing slash.
19547 * gcc.c (record_temp_file): Use filename_cmp instead
19548 of strcmp.
19549 (do_spec_1): Likewise.
19550 (replace_outfile_spec_function): Likewise.
19551 (is_directory): Use filename_ncmp instead of strncmp.
19552 (print_multilib_info): Likewise.
19553 * gcov.c (find_source): Use filename_cmp instead
19554 instead of strcmp.
19555 (make_gcov_file_name): Fix order of slash/backslash
19556 checks.
19557 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
19558 (add_standard_paths): Likewise.
19559 * mips-tfile.c (saber_stop): Handle backslash.
19560 * prefix.c (update_path): Use filename_ncmp instead of
19561 strncmp.
19562 * profile.c (output_location): Use filename_cmp instead
19563 of strcmp.
19564 * read-md.c (handle_toplevel_file): Handle backslash.
19565 * tlink.c (frob_extension): Likewise.
19566 * tree-cfg.c (same_line_p): Use filename_cmp instead of
19567 strcmp.
19568 * tree-dump.c (dequeue_and_dump): Handle backslash.
19569 * tree.c (get_file_function_name): Likewise.
19570 * gengtype.c (read_input_list): Likewise.
19571 (get_file_realbasename): Likewise.
19572 (get_output_file_with_visibility): Use filename_cmp
19573 instead of strcmp.
19574
75f6ec9a
RS
195752011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
19576
19577 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
19578 case to VFPv1.
19579
6c4e2997
NF
195802011-03-25 Nathan Froyd <froydnj@codesourcery.com>
19581
19582 * fold-const.c (expr_location_or): New function.
19583 (fold_truth_not_expr): Call it.
19584
0edf1bb2
JL
195852011-03-25 Jeff Law <law@redhat.com>
19586
19587 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
19588 va_end.
19589 * c-family/c-common.c (def_fn_type): Likewise.
19590 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
19591 * emit-rtl.c (gen_rtvec): Likewise.
19592 * lto/lto-lang.c (def_fn_type): Likewise.
19593
fdc2de95
RG
195942011-03-25 Richard Guenther <rguenther@suse.de>
19595
19596 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
19597 also generate copies.
19598 (fini_copy_prop): Handle constant values properly.
19599
21385db0
JJ
196002011-03-25 Jakub Jelinek <jakub@redhat.com>
19601
19602 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
19603 mode size instead of bitsize with DWARF2_ADDR_SIZE.
19604 (hash_loc_operands, compare_loc_operands): Handle
19605 DW_OP_GNU_entry_value.
19606
6510e8bb
KT
196072011-03-25 Kai Tietz <ktietz@redhat.com>
19608
19609 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
19610 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
19611 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
19612 comment and use macro TARGET_64BIT_MS_ABI instead.
19613 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
19614 and change default behavior for 32-bit MS_ABI.
19615 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
19616 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
19617 32-bit, too.
19618 (ix86_cfun_abi): Likewise.
19619 (ix86_maybe_switch_abi): Adjust comment.
19620 (init_cumulative_args): Check for bit-ness in MS_ABI case.
19621 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
19622 instead of checking for SYSV_ABI.
19623 (ix86_nsaved_sseregs): Likewise.
19624 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
19625 to 16 bytes.
19626 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
19627 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
19628 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
19629 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
19630 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
19631
34019e28
RG
196322011-03-25 Richard Guenther <rguenther@suse.de>
19633
19634 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
19635 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19636 (verify_gimple): Remove.
19637 * tree-cfg.c (verify_gimple_call): Merge verification
19638 from verify_stmts.
19639 (verify_gimple_phi): Merge verification from verify_stmts.
19640 (verify_gimple_label): New function.
19641 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
19642 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19643 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
19644 (verify_stmts): Rename to verify_gimple_in_cfg.
19645 (verify_gimple_in_cfg): New function.
19646 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
19647 * tree-ssa.c (verify_ssa): Likewise.
19648 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
19649
605896f5
RG
196502011-03-25 Richard Guenther <rguenther@suse.de>
19651
19652 * passes.c (init_optimization_passes): Add FRE pass after
19653 early SRA.
19654
7baa7c13
BS
196552011-03-25 Bernd Schmidt <bernds@codesourcery.com>
19656 Andrew Stubbs <ams@codesourcery.com>
19657
19658 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
19659 for Cortex-A8.
19660 (arm_movdi_vfp_cortexa8): New pattern.
19661 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
19662 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
19663 instructions when tuning for Cortex-A8. Set attribute "arch".
19664 * config/arm/arm.md: Move include arm-tune.md up a bit.
19665 (define_attr "arch"): Add "onlya8" and "nota8" values.
19666 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
19667
45dbce1b
NF
196682011-03-25 Nathan Froyd <froydnj@codesourcery.com>
19669
4ff08abf 19670 PR bootstrap/48282
45dbce1b
NF
19671 Revert:
19672 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19673
19674 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19675 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
19676 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19677 * passes.c (init_optimization_passes): Move
19678 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19679
ac9a30ae
KT
196802011-03-25 Kai Tietz <ktietz@redhat.com>
19681
19682 * c-typeck.c (comptypes_internal): Replace target
19683 hook call of comp_type_attributes by version in tree.c file.
19684 * gimple.c (gimple_types_compatible_p_1): Likewise.
19685 * tree-ssa.c (useless_type_conversion_p): Likewise.
19686 * tree.c (build_type_attribute_qual_variant): Likewise.
19687 (attribute_value_equal): New static helper function.
19688 (comp_type_attributes): New function.
19689 (merge_attributes): Use attribute_value_equal for comparison.
19690 (attribute_list_contained): Likewise.
19691 * tree.h (comp_type_attributes): New prototype.
19692
afdac116
RG
196932011-03-25 Richard Guenther <rguenther@suse.de>
19694
19695 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
19696 of complex types at -O0.
19697 (verify_gimple_assign_binary): Likewise.
19698 (verify_gimple_assign_ternary): Likewise.
19699
ec6165f8
MW
197002011-03-24 Mark Wielaard <mjw@redhat.com>
19701
19702 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
19703 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
19704
2a5ac39a
MW
197052011-03-24 Mark Wielaard <mjw@redhat.com>
19706
19707 PR debug/48041
19708 * dwarf2out.c (output_abbrev_section): Only write table when
19709 abbrev_die_table_in_use > 1.
19710
e533b2a4
RH
197112011-02-24 Richard Henderson <rth@redhat.com>
19712
19713 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
19714 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
19715 (alpha_expand_unaligned_load_words): Use extql.
19716 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
19717 (emit_insxl): Handle all modes for consistency.
19718
0b2a7367
RH
197192011-02-24 Richard Henderson <rth@redhat.com>
19720
19721 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
19722 (alpha_expand_unaligned_load): Likewise.
19723 (alpha_expand_unaligned_store): Likewise.
19724 (alpha_expand_unaligned_load_words): Likewise.
19725 (alpha_expand_unaligned_store_words): Likewise.
19726 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
19727 (alpha_split_lock_test_and_set_12): Likewise.
19728 (print_operand, alpha_fold_builtin_extxx): Likewise.
19729 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
19730 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
19731 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
19732 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
19733 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
19734 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
19735 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
19736 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
19737 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
19738 (extwl, extll, extql): Similarly.
19739 (inswh, inslh, insqh): Similarly.
19740 (mskbl, mskwl, mskll, mskql): Similarly.
19741 (mskwh, msklh, mskqh): Similarly.
19742
315b2bef
RH
197432011-02-24 Richard Henderson <rth@redhat.com>
19744
19745 * config/alpha/alpha.md (attribute isa): Add er, ner.
19746 (attribute enabled): Handle them.
19747 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
19748
67102517
RH
197492011-02-24 Richard Henderson <rth@redhat.com>
19750
19751 * config/alpha/alpha.md (attribute isa): Add vms.
19752 (attribute enabled): Handle it.
19753 (*movsf): Merge *movsf_{nofix,fix,nofp}.
19754 (*movdf): Merge *movdf_{nofix,fix,nofp}.
19755 (*movtf): Rename from *movtf_internal for consistency.
19756 (*movsi): Merge with *movsi_nt_vms.
19757 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
19758 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
19759 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
19760 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
19761
6aba5cb4
RH
197622011-02-24 Richard Henderson <rth@redhat.com>
19763
19764 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
19765 (extendqisi2, extendhisi2): Likewise.
19766 (extendqidi2): Simplify BWX/non-BWX expansions.
19767 (extendhidi2): Similarly.
19768
bdfb351b
RH
197692011-02-24 Richard Henderson <rth@redhat.com>
19770
19771 * config/alpha/alpha.md (attribute isa): New.
19772 (attribute enabled): New.
19773 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
19774 (zero_extendqisi2, zero_extendqidi2): Similarly.
19775 (zero_extendhisi2, zero_extendhidi2): Similarly.
19776 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
19777
6abe71eb
RH
197782011-02-24 Richard Henderson <rth@redhat.com>
19779
19780 * config/alpha/predicates.md (input_operand): Revert last change;
19781 update comment to mention 32-bit VMS rather than Windows.
19782
7114321e
NF
197832011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19784
19785 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19786 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
19787 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19788 * passes.c (init_optimization_passes): Move
19789 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19790
c8679567
EB
197912011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19792
19793 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
19794
27173058
UB
197952011-03-24 Uros Bizjak <ubizjak@gmail.com>
19796
19797 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
19798 correctly.
19799
6f0c9f06
JJ
198002011-03-24 Jakub Jelinek <jakub@redhat.com>
19801
19802 PR debug/48204
19803 * simplify-rtx.c (simplify_const_unary_operation): Call
19804 real_convert when changing mode class with FLOAT_EXTEND.
19805
662666e5
NC
198062011-03-24 Nick Clifton <nickc@redhat.com>
19807
19808 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
19809 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
19810 * config/rx/rx.c (rx_option_override): Set align_jumps,
19811 align_loops and align_labels if not set by the user.
19812 (rx_align_for_label): New function.
19813 (rx_max_skip_for_label): New function.
19814 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
19815 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
19816 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
19817 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
19818 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
19819
2b99b2b8
RS
198202011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19821
19822 PR rtl-optimization/48263
19823 * optabs.c (expand_binop_directly): Reinstate convert_modes code
19824 and original commutative_p handling. Use maybe_gen_insn.
19825
ccecd6ea
AK
198262011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19827
19828 * reload.c (find_reloads_subreg_address): Add address_reloaded
19829 parameter and return true there if the full address has been
19830 reloaded.
19831 (find_reloads_toplev): Pass address_reloaded flag.
19832 (find_reloads_address_1): Don't use address_reloaded parameter.
19833
67295642
JL
198342011-03-24 Jeff Law <law@redhat.com>
19835
19836 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
19837 unused variable "ann".
19838 (remove_unused_locals): Likewise.
19839
19840 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
19841 statement.
19842
19843 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
19844 after it is freed.
19845
212aa74f
AK
198462011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19847
19848 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
19849 for invalid symbolic addresses.
19850 (s390_secondary_reload): Don't use s390_check_symref_alignment for
19851 larl operands.
19852
fe784e0d
EB
198532011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19854
19855 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
19856 the argument in calls to fold_truth_not_expr.
19857
63ee8641
NF
198582011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19859
19860 * tree.c (record_node_allocation_statistics): New function.
19861 (make_node_stat, copy_node_stat, build_string): Call it.
19862 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
19863 (build1_stat, build_omp_clause): Likewise.
19864
61be2a1c
RS
198652011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19866
19867 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
19868 last commit.
19869
a881aaa7
RG
198702011-03-24 Richard Guenther <rguenther@suse.de>
19871
19872 PR tree-optimization/48271
19873 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
19874 blocks that still exist.
19875
dbaa912c
RG
198762011-03-24 Richard Guenther <rguenther@suse.de>
19877
19878 PR tree-optimization/48270
19879 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
19880 not free datarefs before ddrs.
19881
1d60cc55
EB
198822011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19883
19884 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
19885 from the address built for a reference with variable offset.
19886
c78dd519
UB
198872011-03-24 Uros Bizjak <ubizjak@gmail.com>
19888
19889 PR target/48237
19890 * config/i386/i386.md (*movdf_internal_rex64): Do not split
19891 alternatives that can be handled with movq or movabsq insn.
19892 (*movdf_internal): Disable for !TARGET_64BIT.
19893 (*movdf_internal_nointeger): Ditto.
19894 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
19895
b25b9e8f
NF
198962011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19897
19898 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
19899 (FUNCTION_ARG_ADVANCE): Likewise.
19900 * tm.texi.in: Change references to them to hook references.
19901 * tm.texi: Regenerate.
c78dd519 19902 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
19903 (default_function_incoming_arg): Likewise.
19904 (default_function_arg_advance): Likewise.
c78dd519 19905 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
19906 (function_arg_advance): Likewise.
19907 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
19908
190b2187
RG
199092011-03-24 Richard Guenther <rguenther@suse.de>
19910
19911 PR middle-end/48269
19912 * tree-object-size.c (addr_object_size): Do not double-account
19913 for MEM_REF offsets.
19914
a183b5c7
DN
199152011-03-24 Diego Novillo <dnovillo@google.com>
19916
19917 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 19918 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
19919 (lto_input_data_block): Move from lto-opts.c. Make extern.
19920 Update all users.
19921 (lto_input_string): Rename from input_string. Make extern.
19922 Update all users.
19923 * lto-streamer-out.c (lto_output_string_with_length): Rename from
19924 output_string_with_length.
19925 Output 0 to indicate a non-NULL string. Update all callers to
19926 not emit 0.
19927 (lto_output_string): Rename from output_string. Make extern.
19928 Update all users.
19929 (lto_output_decl_state_streams): Make extern.
19930 (lto_output_decl_state_refs): Make extern.
19931 * lto-streamer.h (lto_input_string): Declare.
19932 (lto_input_data_block): Declare.
19933 (lto_output_string): Declare.
19934 (lto_output_string_with_length): Declare.
19935 (lto_output_decl_state_streams): Declare.
19936 (lto_output_decl_state_refs): Declare.
19937
cfef45c8
RG
199382011-03-24 Richard Guenther <rguenther@suse.de>
19939
19940 PR tree-optimization/46562
19941 * tree.c (build_invariant_address): New function.
19942 * tree.h (build_invariant_address): Declare.
19943 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
19944 a renamed function moved ...
19945 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
19946 Take valueization callback parameter.
19947 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
19948 * gimple-fold.h: New file.
19949 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
19950 (ccp_fold, fold_const_aggregate_ref,
19951 fold_ctor_reference, fold_nonarray_ctor_reference,
19952 fold_array_ctor_reference, fold_string_cst_ctor_reference,
19953 get_base_constructor): Move ...
19954 * gimple-fold.c: ... here.
19955 (gimple_fold_stmt_to_constant_1): New function
19956 split out from ccp_fold. Take a valueization callback parameter.
19957 Valueize all operands.
19958 (gimple_fold_stmt_to_constant): New wrapper function.
19959 (fold_const_aggregate_ref_1): New function split out from
19960 fold_const_aggregate_ref. Take a valueization callback parameter.
19961 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
19962 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
19963 invariant POINTER_PLUS_EXPRs to invariant form.
19964 (vn_valueize): New function.
19965 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
19966 * tree-vrp.c (vrp_valueize): New function.
19967 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
19968 to fold statements to constants.
19969 * tree-ssa-pre.c (eliminate): Properly guard propagation of
19970 function declarations.
19971 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
19972 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
19973
5e0a7e40
RS
199742011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19975
19976 * config/h8300/predicates.md (jump_address_operand): Fix register
19977 mode check.
19978
bfe068c3
IR
199792011-03-24 Ira Rosen <ira.rosen@linaro.org>
19980
19981 * doc/invoke.texi (max-stores-to-sink): Document.
19982 * params.h (MAX_STORES_TO_SINK): Define.
19983 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
19984 if either vectorization or if-conversion is disabled.
19985 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
19986 tree-vect-data-refs.c vect_equal_offsets.
19987 (dr_equal_offsets_p): New function.
19988 (find_data_references_in_bb): Remove static.
19989 * tree-data-ref.h (find_data_references_in_bb): Declare.
19990 (dr_equal_offsets_p): Likewise.
19991 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
19992 (vect_drs_dependent_in_basic_block): Update calls to
19993 vect_equal_offsets.
19994 (vect_check_interleaving): Likewise.
19995 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
19996 (cond_if_else_store_replacement): Rename to...
19997 (cond_if_else_store_replacement_1): ... this. Change arguments and
19998 documentation.
19999 (cond_if_else_store_replacement): New function.
20000 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
20001 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
20002
4908b0bf
CLT
200032011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
20004
20005 PR target/46934
20006 * config/arm/arm.md (casesi): Use the gen_int_mode() function
20007 to subtract lower bound instead of GEN_INT().
20008
2be478a2
JW
200092011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
20010
20011 PR other/48179
20012 PR other/48221
20013 PR other/48234
20014 * doc/extend.texi (Alignment): Move section to match order in TOC.
20015 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
20016 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
20017
0c617be4
JL
200182011-03-23 Jeff Law <law@redhat.com>
20019
20020 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
20021 before removing the edge.
20022
20023 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
20024 it may have been freed by redirect_branch_edge or
20025 redirect_edge_succ_nodup.
20026
58da96fe
RG
200272011-03-23 Richard Guenther <rguenther@suse.de>
20028
c78dd519 20029 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
20030 (check_va_list_escapes): Likewise.
20031 (check_all_va_list_escapes): Likewise.
20032
b8beb4d1
RG
200332011-03-23 Richard Guenther <rguenther@suse.de>
20034
20035 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
20036 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
20037 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
20038 (alias.o): Likewise.
20039 (ipa-type-escape.o): Remove.
20040 (ipa-struct-reorg.o): Likewise.
20041 (GTFILES): Remove ipa-struct-reorg.c.
20042 * alias.c: Do not include ipa-type-escape.h.
20043 * tree-ssa-alias.c: Likewise.
20044 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
20045 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
20046 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
20047 and ipa-type-escape passes.
20048 * tree-pass.h (pass_ipa_type_escape): Remove.
20049 (pass_ipa_struct_reorg): Likewise.
20050 * ipa-struct-reorg.h: Remove.
20051 * ipa-struct-reorg.c: Likewise.
20052 * ipa-type-escape.h: Likewise.
20053 * ipa-type-escape.c: Likewise.
20054 * doc/invoke.texi (-fipa-struct-reorg): Remove.
20055 (--param struct-reorg-cold-struct-ratio): Likewise.
20056 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20057 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20058 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
20059
f137aa63
AK
200602011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20061
20062 * config/s390/2084.md: Enable all insn reservations also for z9_ec
20063 cpu attribute value.
20064 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
20065 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
20066 * config/s390/s390.c (processor_flags_table): New constant array.
20067 (s390_handle_arch_option): Remove.
20068 (s390_handle_option): Remove s390_handle_arch_option invocations
20069 and OPT_mwarn_framesize_ handling.
20070 (s390_option_override): Remove s390_handle_arch_option invocation.
20071 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
20072 warnings.
20073 * config/s390/s390.md (cpu attribute): Add z9_ec value.
20074 * config/s390/s390.opt (s390_tune, s390_arch)
20075 (march=): Replace s390_arch_option enum and values with
20076 processor_type. Set variable name to s390_arch. Set
20077 initialization value.
20078 (mtune=): Replace s390_arch_option with processor_type. Set
20079 variable name to s390_tune. Set initialization value.
20080
bf90208f
JB
200812011-03-23 Julian Brown <julian@codesourcery.com>
20082
20083 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
20084 accesses which are not naturally aligned.
20085
3460fdf3
RS
200862011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20087
20088 PR target/47553
20089 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
20090
a5c7d693
RS
200912011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20092
20093 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
20094 parameter from "int" to "enum insn_code".
20095 (expand_operand_type): New enum.
20096 (expand_operand): New structure.
20097 (create_expand_operand): New function.
20098 (create_fixed_operand, create_output_operand): Likewise
20099 (create_input_operand, create_convert_operand_to): Likewise.
20100 (create_convert_operand_from, create_address_operand): Likewise.
20101 (create_integer_operand): Likewise.
20102 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
20103 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20104 (expand_insn, expand_jump_insn): Likewise.
20105 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
20106 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
20107 (expand_movstr, expand_builtin___clear_cache): Likewise.
20108 (expand_builtin_lock_release): Likewise.
20109 * explow.c (allocate_dynamic_stack_space): Likewise.
20110 (probe_stack_range): Likewise. Allow check_stack to FAIL,
20111 and use the default handling in that case.
20112 * expmed.c (check_predicate_volatile_ok): Delete.
20113 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
20114 (emit_cstore): Likewise.
20115 * expr.c (emit_block_move_via_movmem): Likewise.
20116 (set_storage_via_setmem, expand_assignment): Likewise.
20117 (emit_storent_insn, try_casesi): Likewise.
20118 (emit_single_push_insn): Likewise. Allow the expansion to fail.
20119 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
20120 (expand_vec_shift_expr, expand_binop_directly): Likewise.
20121 (expand_twoval_unop, expand_twoval_binop): Likewise.
20122 (expand_unop_direct, emit_indirect_jump): Likewise.
20123 (emit_conditional_move, vector_compare_rtx): Likewise.
20124 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
20125 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
20126 (expand_sync_lock_test_and_set): Likewise.
20127 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
20128 (emit_unop_insn): Likewise.
20129 (expand_copysign_absneg): Change icode to an insn_code.
20130 (create_convert_operand_from_type): New function.
20131 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
20132 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20133 (expand_insn, expand_jump_insn): Likewise.
20134 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
20135 than const_int_operand for operand 2.
20136
78fadbab
AK
201372011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20138
20139 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
20140 if possible.
20141
5f02387d
NF
201422011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20143
20144 * emit-rtl.c (emit_pattern_before_noloc): New function.
20145 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
20146 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
20147 (emit_pattern_after_noloc): New function.
20148 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
20149 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
20150
fdf3e18a
NF
201512011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20152
20153 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
20154 (__ffsDI2): Likewise.
20155
42d085c1
RH
201562011-03-22 Richard Henderson <rth@redhat.com>
20157
20158 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
20159 of !TARGET_ABI_OPEN_VMS.
20160 (alpha_trampoline_init, alpha_start_function): Likewise.
20161 (alpha_expand_epilogue, alpha_file_start): Likewise.
20162 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
20163 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
20164 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
20165 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
20166 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
20167
cabbe12a
JM
201682011-03-22 Joseph Myers <joseph@codesourcery.com>
20169
20170 * config/s390/s390-opts.h: New.
20171 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
20172 s390_arch_flags, s390_warn_framesize, s390_stack_size,
20173 s390_stack_guard): Remove.
20174 (s390_handle_arch_option): Return void. Take enum
20175 s390_arch_option value instead of string and searching array.
20176 (s390_handle_option): Don't assert that global structures are in
20177 use. Access variables via opts pointer. Use error_at. Don't use
20178 sscanf for -mstack-guard= or -mstack-size=. Update call to
20179 s390_handle_arch_option.
20180 (s390_option_override): Update call to s390_handle_arch_option.
20181 (s390_emit_prologue): Use %d format for s390_stack_size in
20182 diagnostic. Use %wd for HOST_WIDE_INT.
20183 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
20184 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
20185 * config/s390/s390.opt (config/s390/s390-opts.h): New
20186 HeaderInclude entry.
20187 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
20188 s390_arch_flags, s390_warn_framesize): New Variable entries.
20189 (s390_arch_option): New Enum and EnumValue entries.
20190 (march=): Use Enum instead of Var.
20191 (mstack-guard=, mstack-size=): Use UInteger and Var.
20192 (mtune=): Use Enum.
20193
05b12036
JM
201942011-03-22 Joseph Myers <joseph@codesourcery.com>
20195
20196 * config/score/score.c (score_handle_option): Don't assert that
20197 global structures are in use. Access target_flags via opts
20198 pointer. Use value of -march= option to determine target_flags
20199 settings.
20200 * config/score/score.opt (march=): Use Enum.
20201 (score_arch): New Enum and EnumValue entries.
20202
dd51e35a
JM
202032011-03-22 Joseph Myers <joseph@codesourcery.com>
20204
20205 * config/mep/mep.c (option_mtiny_specified): Remove.
20206 (mep_option_override): Move register handling for -mivc2 from
20207 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
20208 instead of option_mtiny_specified.
20209 (mep_handle_option): Access target_flags via opts pointer. Don't
20210 assert that global structures are in use. Defer part of -mivc2
20211 handling and move it to mep_option_override.
20212 * config/mep/mep.opt (IVC2): New Mask entry.
20213 (mivc2): Use Var and Defer instead of Mask.
20214
4a8d3d91
JM
202152011-03-22 Joseph Myers <joseph@codesourcery.com>
20216
20217 * config/v850/v850-opts.h: New.
20218 * config/v850/v850.c (small_memory): Replace with
20219 small_memory_physical_max array. Make that array static const.
20220 (v850_handle_memory_option): Take integer value of argument. Take
20221 gcc_options pointer, option text and location. Return void.
20222 Update for changes to small memory structures.
20223 (v850_handle_option): Access target_flags via opts pointer. Don't
20224 assert that global structures are in use. Update calls to
20225 v850_handle_memory_option.
c78dd519
UB
20226 (v850_encode_data_area): Update references to small memory settings.
20227 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
20228 (enum small_memory_type): Move to v850-opts.h.
20229 * config/v850/v850.opt (config/v850/v850-opts.h): New
20230 HeaderInclude entry.
20231 (small_memory_max): New Variable entry.
20232 (msda): Replace by pair of options msda= and msda-. Use UInteger.
20233 (mtda, mzda): Likewise.
20234
117fdbfa
JM
202352011-03-22 Joseph Myers <joseph@codesourcery.com>
20236
20237 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
20238 pointer. Don't assert that global structures are in use.
20239
d715091c
JM
202402011-03-22 Joseph Myers <joseph@codesourcery.com>
20241
20242 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
20243 via opts pointer. Don't assert that global structures are in use.
20244
1bb721dc
JM
202452011-03-22 Joseph Myers <joseph@codesourcery.com>
20246
20247 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
20248 (munix=93): Use Var.
20249 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
20250 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
20251 * config/pa/pa-opts.h: New.
20252 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
20253 (pa_handle_option): Don't assert that global structures are in
20254 use. Access target_flags via opts pointer. Don't handle
20255 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
20256 OPT_munix_98 here.
20257 (pa_option_override): Handle deferred OPT_mfixed_range_.
20258
cd8d8754
JM
202592011-03-22 Joseph Myers <joseph@codesourcery.com>
20260
20261 * config/mn10300/mn10300-opts.h: New.
20262 * config/mn10300/mn10300.c (mn10300_processor,
20263 mn10300_tune_string): Remove.
20264 (mn10300_handle_option): Don't assert that global structures are
20265 in use. Access mn10300_processor via opts pointer. Don't handle
20266 OPT_mtune_ here.
20267 * config/mn10300/mn10300.h (enum processor_type): Move to
20268 mn10300-opts.h.
20269 (mn10300_processor): Remove.
20270 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
20271 HeaderInclude entry.
20272 (mn10300_processor): New Variable entry.
20273 (mtune=): Use Var.
20274
24e6e6b1
JM
202752011-03-22 Joseph Myers <joseph@codesourcery.com>
20276
20277 * config/microblaze/microblaze.c: Don't include opts.h.
20278 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
20279 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
20280 (mno-clearbss): Use Var and Warn.
20281
8a784afb
JM
202822011-03-22 Joseph Myers <joseph@codesourcery.com>
20283
20284 * config/m32r/m32r-opts.h: New.
20285 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
20286 (m32r_handle_option): Don't assert that global structures are in
20287 use. Access target_flags and m32r_cache_flush_func via opts
20288 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
20289 OPT_mno_flush_trap here.
20290 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
20291 include of m32r-opts.h.
20292 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
20293 HeaderInclude entry.
20294 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
20295 (mmodel=): Use Enum and Var.
20296 (m32r_model): New Enum and EnumValue entries.
20297 (mno-flush-trap): Use Var.
20298 (msdata=): Use Enum and Var.
20299 (m32r_sdata): New Enum and EnumValue entries.
20300
bbfc9a8c
JM
203012011-03-22 Joseph Myers <joseph@codesourcery.com>
20302
20303 * config/m32c/m32c.c: Don't include opts.h.
20304 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
20305 m32c_handle_option): Remove.
20306 (m32c_option_override): Check global_options_set.x_target_memregs
20307 instead of target_memregs_set.
20308 * config/m32c/m32c.h (target_memregs): Remove.
20309 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
20310 variable.
20311
e24b8335
JM
203122011-03-22 Joseph Myers <joseph@codesourcery.com>
20313
20314 * config/iq2000/iq2000-opts.h: New.
20315 * config/iq2000/iq2000.c: Don't include opts.h.
20316 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 20317 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
20318 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
20319 HeaderInclude entry.
20320 (iq2000_tune): New Variable entry.
20321 (march=): Add comment. Use Enum.
20322 (iq2000_arch): New Enum and EnumValue entries.
20323 (mcpu=): Use Enum and Var.
20324 (iq2000_tune): New Enum and EnumValue entries.
20325
e6cc0c98
JM
203262011-03-22 Joseph Myers <joseph@codesourcery.com>
20327
20328 * config/ia64/ia64-opts.h: New.
20329 * config/ia64/ia64.c (ia64_tune): Remove.
20330 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
20331 here. Use error_at.
20332 (ia64_option_override): Handle deferred OPT_mfixed_range_.
20333 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
20334 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
20335 HeaderInclude entry.
20336 (ia64_tune): New Variable entry.
20337 (mfixed-range=): Use Defer and Var.
20338 (mtune=): Use Enum and Var.
20339 (ia64_tune): New Enum and EnumValue entries.
20340
db25893c
JM
203412011-03-22 Joseph Myers <joseph@codesourcery.com>
20342
20343 * config/frv/frv-opts.h: New.
20344 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
20345 frv-opts.h.
20346 (frv_cpu_type): Remove.
20347 * config/frv/frv.c: Don't include opts.h.
20348 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 20349 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
20350 (frv_cpu_type): New Variable entry.
20351 (frv_cpu): New Enum and EnumValue entries.
20352
6c223f5d
JM
203532011-03-22 Joseph Myers <joseph@codesourcery.com>
20354
20355 * config/cris/cris.c (cris_handle_option): Access target_flags via
20356 opts pointer. Don't assert that global structures are in use.
20357 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
20358 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
20359
bbd399cf
JM
203602011-03-22 Joseph Myers <joseph@codesourcery.com>
20361
20362 * config/bfin/bfin-opts.h: New.
20363 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
20364 bfin_si_revision, bfin_workarounds): Remove.
20365 (bfin_cpus): Make static const.
20366 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
20367 not bfin_lib_id_given.
20368 (bfin_handle_option): Don't set bfin_lib_id_given. Access
20369 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 20370 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
20371 * config/bfin/bfin.h: Include bfin-opts.h.
20372 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
20373 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
20374 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
20375 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
20376 entries.
20377
5e1b4d5a
JM
203782011-03-22 Joseph Myers <joseph@codesourcery.com>
20379
20380 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
20381 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
20382 or -msoft-float here.
20383 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
20384 -msoft-float and -mhard-float.
c78dd519 20385 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
20386 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20387 msoft-float.
20388 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
20389 -msoft-float.
20390 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
20391 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
20392 not mhard-float.
20393 (LIBGCC_SPEC): Don't handle -msoft-float.
20394 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
20395 -mhard-float.
20396 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20397 msoft-float.
20398 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
20399 -mfloat-abi=*, not -msoft-float and -mhard-float.
20400 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
20401 -msoft-float.
20402 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
20403 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
20404 mhard-float and msoft-float.
20405 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
20406 mfloat-abi=soft in comments, not mhard-float and msoft-float.
20407 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20408 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
20409 mhard-float.
20410 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
20411 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
20412 msoft-float.
20413 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
20414 not mhard-float.
20415 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
20416 not msoft-float.
20417
800d1de1
RH
204182011-03-22 Richard Henderson <rth@redhat.com>
20419
20420 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
20421 TARGET_ABI_WINDOWS_NT.
20422 (alpha_output_function_end_prologue): Likewise.
20423 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
20424 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20425 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
20426 (trap, *movsi_nt_vms): Likewise.
20427 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
20428 (*tablejump_osf_nt_internal): Remove.
20429 * config/alpha/predicates.md (input_operand): Only test Pmode.
20430
c59ddd2b
JM
204312011-03-22 Joseph Myers <joseph@codesourcery.com>
20432
20433 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
20434 via opts pointer. Use error_at. Don't assert that global
20435 structures are in use.
20436
1333f97f
JM
204372011-03-22 Joseph Myers <joseph@codesourcery.com>
20438
20439 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
20440 (ix86_handle_option): Access ix86_isa_flags and
20441 ix86_isa_flags_explicit via opts pointer. Don't assert that
20442 global structures are in use.
20443 (ix86_function_specific_save, ix86_function_specific_restore):
20444 Update ix86_isa_flags_explicit field name.
c78dd519 20445 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
20446 (ix86_isa_flags_explicit): Rename TargetSave entry to
20447 x_ix86_isa_flags_explicit.
20448
75db85d8
RH
204492011-03-22 Richard Henderson <rth@redhat.com>
20450
20451 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
20452 (alpha_option_override, direct_return): Likewise.
20453 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
20454 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
20455 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
20456 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20457 (alpha_expand_epilogue, alpha_end_function): Likewise.
20458 (alpha_init_libfuncs): Likewise.
20459 (struct machine_function): Remove unicosmk members.
20460 (print_operand) ['t']: Remove.
20461 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
20462 unicosmk_output_module_name, unicosmk_output_common,
20463 current_section_align, unicosmk_output_text_section_asm_op,
20464 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
20465 unicosmk_section_type_flags, unicosmk_unique_section,
20466 unicosmk_asm_named_section, unicosmk_insert_attributes,
20467 unicosmk_output_align, unicosmk_defer_case_vector,
20468 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
20469 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
20470 unicosmk_output_ssib, unicosmk_add_call_info_word,
20471 unicosmk_extern_head, unicosmk_output_default_externs,
20472 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
20473 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
20474 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
20475 * config/alpha/alpha-protos.h: Update.
20476 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
20477 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
20478 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
20479 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
20480 (*mulsi_se, mulvsi3): Likewise.
20481 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
20482 (*divmodsi_internal, call, call_value, realign): Likewise.
20483 (moddi3, umoddi3): Likewise; remove duplicate expander.
20484 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
20485 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
20486 (*movdi_nofix): Remove r/U alternative.
20487 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
20488 * config/alpha/constraints.md ("U"): Remove.
20489 * config/alpha/predicates.md (call_operand"): Don't test
20490 TARGET_ABI_UNICOSMK.
20491
96e45421
JM
204922011-03-22 Joseph Myers <joseph@codesourcery.com>
20493
20494 * target.def (handle_option): Take gcc_options and
20495 cl_decoded_option pointers and location_t.
20496 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
20497 * doc/tm.texi: Regenerate.
20498 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
20499 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
20500 * lto-opts.c (lto_reissue_options): Generate option structure for
20501 targetm.handle_option call.
20502 * opts.c (target_handle_option): Update call to
20503 targetm.handle_option. Remove assertions about values now passed
20504 down to hook.
20505 * targhooks.c (default_target_handle_option): New.
20506 * targhooks.h (default_target_handle_option): Declare.
20507 * config/alpha/alpha.c: Include opts.h.
20508 (alpha_handle_option): Update to new hook interface.
20509 * config/arm/arm.c: Include opts.h.
20510 (arm_handle_option): Update to new hook interface.
20511 * config/arm/t-arm (arm.o): Update dependencies.
20512 * config/bfin/bfin.c: Include opts.h.
20513 (bfin_handle_option): Update to new hook interface.
20514 * config/cris/cris.c: Include opts.h.
20515 (cris_handle_option): Update to new hook interface.
20516 * config/frv/frv.c: Include opts.h.
20517 (frv_handle_option): Update to new hook interface.
20518 * config/i386/i386.c: Include opts.h.
20519 (ix86_handle_option): Update to new hook interface.
20520 (ix86_valid_target_attribute_inner_p): Generate option structure
20521 for call to ix86_handle_option.
20522 * config/i386/t-i386 (i386.o): Update dependencies.
20523 * config/ia64/ia64.c: Include opts.h.
20524 (ia64_handle_option): Update to new hook interface.
20525 * config/ia64/t-ia64 (ia64.o): Update dependencies.
20526 * config/iq2000/iq2000.c: Include opts.h.
20527 (iq2000_handle_option): Update to new hook interface.
20528 * config/m32c/m32c.c: Include opts.h.
20529 (m32c_handle_option): Update to new hook interface.
20530 * config/m32r/m32r.c: Include opts.h.
20531 (m32r_handle_option): Update to new hook interface.
20532 * config/m68k/m68k.c: Include opts.h.
20533 (m68k_handle_option): Update to new hook interface.
20534 * config/mep/mep.c: Include opts.h.
20535 (mep_handle_option): Update to new hook interface.
20536 * config/microblaze/microblaze.c: Include opts.h.
20537 (microblaze_handle_option): Update to new hook interface.
20538 * config/mips/mips.c: Include opts.h.
20539 (mips_handle_option): Update to new hook interface.
20540 * config/mn10300/mn10300.c: Include opts.h.
20541 (mn10300_handle_option): Update to new hook interface.
20542 * config/pa/pa.c: Include opts.h.
20543 (pa_handle_option): Update to new hook interface.
20544 * config/pdp11/pdp11.c: Include opts.h.
20545 (pdp11_handle_option): Update to new hook interface.
20546 * config/rs6000/rs6000.c: Include opts.h.
20547 (rs6000_handle_option): Update to new hook interface.
20548 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
20549 * config/rx/rx.c: Include opts.h.
20550 (rx_handle_option): Update to new hook interface.
20551 * config/s390/s390.c: Include opts.h.
20552 (s390_handle_option): Update to new hook interface.
20553 * config/score/score.c: Include opts.h.
20554 (score_handle_option): Update to new hook interface.
20555 * config/sh/sh.c: Include opts.h.
20556 (sh_handle_option): Update to new hook interface.
20557 * config/sparc/sparc.c: Include opts.h.
20558 (sparc_handle_option): Update to new hook interface.
20559 * config/v850/v850.c: Include opts.h.
20560 (v850_handle_option): Update to new hook interface.
20561
66017846
JM
205622011-03-22 Joseph Myers <joseph@codesourcery.com>
20563
20564 * gcc.c (driver_unknown_option_callback): Only permit and save
20565 unknown -Wno- options.
20566 (driver_wrong_lang_callback): Save options directly instead of via
20567 driver_unknown_option_callback.
20568
e8b97ccd
EB
205692011-03-22 Eric Botcazou <ebotcazou@adacore.com>
20570
20571 * combine.c (simplify_set): Try harder to find the best CC mode when
20572 simplifying a nested COMPARE on the RHS.
20573
ebb9f8b0
JM
205742011-03-22 Joseph Myers <joseph@codesourcery.com>
20575
20576 * config/alpha/gnu.h: Remove.
20577 * config/arc: Remove directory.
20578 * config/arm/netbsd.h: Remove.
20579 * config/arm/t-pe: Remove.
20580 * config/crx: Remove directory.
20581 * config/i386/netbsd.h: Remove.
20582 * config/m68hc11: Remove directory.
20583 * config/m68k/uclinux-oldabi.h: Remove.
20584 * config/mcore/mcore-pe.h: Remove.
20585 * config/mcore/t-mcore-pe: Remove.
20586 * config/netbsd-aout.h: Remove.
20587 * config/rs6000/gnu.h: Remove.
20588 * config/sh/sh-symbian.h: Remove.
20589 * config/sh/symbian-base.c: Remove.
20590 * config/sh/symbian-c.c: Remove.
20591 * config/sh/symbian-cxx.c: Remove.
20592 * config/sh/symbian-post.h: Remove.
20593 * config/sh/symbian-pre.h: Remove.
20594 * config/sh/t-symbian: Remove.
20595 * config/svr3.h: Remove.
20596 * config/vax/netbsd.h: Remove.
20597 * config.build: Don't handle i[34567]86-*-pe.
20598 * config.gcc: Remove handling of deprecations for most deprecated
20599 targets.
20600 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
20601 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
20602 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
20603 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
20604 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
20605 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
20606 Remove cases.
20607 * config.host: Don't handle i[34567]86-*-pe.
20608 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
20609 (ASM_SPEC32): Don't handle -mcall-gnu.
20610 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
20611 -mcall-gnu.
20612 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
20613 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
20614 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
20615 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
20616 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
20617 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
20618 conditional on SYMBIAN.
20619 * configure.ac: Don't handle powerpc*-*-gnu*.
20620 * configure: Regenerate.
20621 * doc/extend.texi (interrupt attribute): Don't mention CRX.
20622 * doc/install-old.texi (m6811, m6812): Don't mention.
20623 * doc/install.texi (arc-*-elf*): Don't document multilib option.
20624 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
20625 (m68k-uclinuxoldabi): Don't mention.
20626 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
20627 Remove.
20628 (-mcall-gnu): Remove.
20629 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
20630 families): Remove constraint documentation.
20631
999a7d80
MS
206322011-03-22 Marius Strobl <marius@FreeBSD.org>
20633
20634 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
20635 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
20636 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
20637
45540bcf
MM
206382011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20639
20640 PR target/48226
20641 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
20642 vector when peeking at the next token for vector, don't expand the
20643 keywords.
20644
980a0ff4
GJL
206452011-03-21 Georg-Johann Lay <avr@gjlay.de>
20646
20647 * config/avr/avr-protos.h (expand_epilogue): Change prototype
20648 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
20649 * config/avr/avr.c (init_cumulative_args)
20650 (avr_function_arg_advance): Use it.
20651 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
20652 sibcall epilogues.
20653 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
20654 (avr_function_ok_for_sibcall): ...this new function.
20655 (avr_lookup_function_attribute1): New static Function.
20656 (avr_naked_function_p, interrupt_function_p)
20657 (signal_function_p, avr_OS_task_function_p)
20658 (avr_OS_main_function_p): Use it.
20659 * config/avr/avr.md ("sibcall", "sibcall_value")
20660 ("sibcall_epilogue"): New expander.
20661 ("*call_insn", "*call_value_insn"): New insn.
20662 ("call_insn", "call_value_insn"): Remove
20663 ("call", "call_value", "epilogue"): Change expander to handle
20664 sibling calls.
20665
49168734
NC
206662011-03-21 Nick Clifton <nickc@redhat.com>
20667
20668 * doc/invoke.texi (Overall Options): Move closing brace to end of
20669 options list.
20670 (Optimization Options): Add missing @gol.
20671 (Directory Options): Likewise.
20672 (i386 and x86-64 Options): Likewise.
20673 (RS6000 and PowerPC Options): Likewise.
20674 (i386 and x86-64 Windows Options): Likewise.
20675 (V850 Options): Add text missing from descriptions.
20676
bdfe906f
RH
206772011-03-22 Richard Henderson <rth@redhat.com>
20678
20679 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
20680 (avr_incoming_return_addr_rtx): New.
20681 (emit_push_byte): New.
20682 (expand_prologue): Use it. Remove incorrect dwarf annotation for
20683 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
20684 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
20685 (emit_pop_byte): New.
20686 (expand_epilogue): Use it. Pop frame pointer by bytes.
20687 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
20688 (INCOMING_RETURN_ADDR_RTX): New.
20689 (INCOMING_FRAME_SP_OFFSET): New.
20690 (ARG_POINTER_CFA_OFFSET): New.
20691 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
20692 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
20693 (pophi): Remove.
20694
d090a5aa
RH
20695 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
20696
fdf3e18a
NF
206972011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20698
20699 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
20700 (FUNCTION_ARG_ADVANCE): Likewise.
20701 * tm.texi.in: Change references to them to hook references.
20702 * tm.texi: Regenerate.
20703 * targhooks.c (default_function_arg): Eliminate check for target
20704 macro.
20705 (default_function_incoming_arg): Likewise.
20706 (default_function_arg_advance): Likewise.
c78dd519 20707 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
20708 (function_arg_advance): Likewise.
20709 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
20710
009d3fcf
NF
207112011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20712
20713 * tree.c (build_call_1): New function.
20714 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
20715
7bec30e1
RG
207162011-03-22 Richard Guenther <rguenther@suse.de>
20717
20718 PR tree-optimization/48228
20719 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
20720 for single-arg PHIs.
20721
0b7e851b
AB
207222011-03-22 Andrey Belevantsev <abel@ispras.ru>
20723
20724 PR rtl-optimization/48143
20725 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
20726 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
20727 sse2_cvtps2pd): Likewise.
20728
d89afca5
AK
207292011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20730
20731 * recog.c (canonicalize_change_group): Use validate_unshare_change.
20732
f471fe72
RG
207332011-03-22 Richard Guenther <rguenther@suse.de>
20734
20735 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
20736 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
20737 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
20738 and REALIGN_LOAD_EXPR.
20739 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
20740 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
20741 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
20742 DOT_PROD_EXPR case ...
20743 (expand_expr_real_2): ... here.
20744 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
20745 and REALIGN_LOAD_EXPR.
20746 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
20747 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
20748 (vect_create_epilog_for_reduction): Likewise.
20749 (vectorizable_reduction): Likewise.
20750 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
20751 * tree-vect-stmts.c (vectorizable_load): Likewise.
20752
f2f81d57
EB
207532011-03-22 Eric Botcazou <ebotcazou@adacore.com>
20754
20755 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
20756
ab081dd6
AK
207572011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20758
20759 * config/s390/s390.c (s390_delegitimize_address): Fix offset
20760 handling for PLTOFF/GOTOFF.
20761
6fd5332b
NC
207622011-03-22 Nick Clifton <nickc@redhat.com>
20763
20764 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
20765 trailing backslash from the end of the macro definition.
20766
01841ac0
AK
207672011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20768
20769 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
20770 and PLT unspecs.
20771
2ef6ce06
RS
207722011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
20773
20774 * expr.h (prepare_operand): Move to...
20775 * optabs.h (prepare_operand): ...here and change the insn code
20776 parameter from "int" to "enum insn_code".
20777 (insn_operand_matches): Declare.
20778 * expr.c (init_expr_target): Use insn_operand_matches.
20779 (compress_float_constant): Likewise.
20780 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
20781 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
20782 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
20783 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
20784 Likewise.
2ef6ce06
RS
20785 (gen_cond_trap): Likewise.
20786 (prepare_operand): Likewise. Change icode to an insn_code.
20787 (insn_operand_matches): New function.
20788 * reload.c (find_reloads_address_1): Use insn_operand_matches.
20789 * reload1.c (gen_reload): Likewise.
20790 * targhooks.c (default_secondary_reload): Likewise.
20791
9e43ad68
UB
207922011-03-21 Uros Bizjak <ubizjak@gmail.com>
20793
9a96da32
UB
20794 * config/alpha/alpha.md (unspec): New define_c_enum.
20795 (unspecv): Ditto.
20796
207972011-03-21 Uros Bizjak <ubizjak@gmail.com>
20798
20799 PR debug/48214
9e43ad68
UB
20800 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
20801 between a call and its CALL_ARG_LOCATION note.
20802
31408f60
EB
208032011-03-21 Eric Botcazou <ebotcazou@adacore.com>
20804
20805 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
20806
208072011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
20808
20809 PR c/42544
20810 PR c/48197
20811 * c-common.c (shorten_compare): If primopN is first sign-extended
20812 to opN and then zero-extended to result type, set primopN to opN.
20813
9dfd55f5
DJ
208142011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
20815
20816 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
20817 for barrier handlers.
20818
f3c33d9d
MM
208192011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20820
20821 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
20822 UNSPEC constants to be in the unspec enumeration, and redefine
20823 all UNSPECV constants to be in the unspecv enumeration, so that
20824 dumps print which unspec/unspec_volatile this is.
20825 * config/rs6000/vector.md (UNSPEC_*): Ditto.
20826 * config/rs6000/paired.md (UNSPEC_*): Ditto.
20827 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
20828 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
20829 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
20830
20831 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
20832 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
20833 UNSPECV_LWSYNC, since these are used as unspec_volatile.
20834 * config/rs6000/sync.md (isync, lwsync): Ditto.
20835
ac43f774
RG
208362011-03-21 Richard Guenther <rguenther@suse.de>
20837
20838 * params.def (lto-min-partition): Fix typo.
20839
411cdbd8
RG
208402011-03-21 Richard Guenther <rguenther@suse.de>
20841
20842 PR c/47939
20843 * c-decl.c (grokdeclarator): Drop to the main variant only
20844 for array types. Drop flag_gen_aux_info check.
20845
1cd9e416
RG
208462011-03-21 Richard Guenther <rguenther@suse.de>
20847
20848 PR translation/47911
20849 * params.def (lto-partitions): Fix typo.
20850 (lto-min-partition): Fix wording.
20851
ada5ad67
AT
208522011-03-21 Andreas Tobler <andreast@fgznet.ch>
20853
20854 * config/rs6000/t-freebsd: Remove duplication from file.
20855
f9613c9a
RG
208562011-03-21 Richard Guenther <rguenther@suse.de>
20857
20858 PR middle-end/47661
20859 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
20860
9bfbc1eb
RG
208612011-03-21 Richard Guenther <rguenther@suse.de>
20862
20863 PR lto/48210
20864 * params.def (lto-partitions): Require at least 1 partition.
20865
a2268084
RO
208662011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20867
20868 * gthr-solaris.h: Remove.
20869 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
20870 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
20871 (LIB_SPEC): Likewise.
20872 * config/sol2.opt (threads): Remove.
9e43ad68 20873 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
20874 (sparc*-*-solaris2*): Likewise.
20875 * configure.ac (enable_threads): Enable solaris support.
20876 * configure: Regenerate.
9e43ad68 20877 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
20878 * doc/install.texi (Configuration, --enable-threads=lib): Remove
20879 solaris.
20880
c43d9a1b
RO
208812011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20882
20883 * config.gcc: Obsolete *-*-solaris2.8*.
20884 * doc/install.texi (Specific, *-*-solaris2*): Document it.
20885
084239f4
RO
208862011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20887
20888 PR bootstrap/48135
20889 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
20890 reference. Solaris 8 perl works.
20891
64cadbe7
RO
208922011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20893
20894 PR bootstrap/48135
20895 * doc/install.texi (Prerequisites): Move jar etc. up.
20896 Explain support library version requirements.
20897
eb975109
RO
208982011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20899
20900 PR bootstrap/48135
20901 * doc/install.texi (Prerequisites): Move Perl to build
20902 requirements. Always necessary on Solaris 2 with Sun ld.
20903
8a509ffd
RO
209042011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20905
20906 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
20907 binutils 2.21.
20908 (Specific, i?86-*-solaris2.[89]): Likewise.
20909 (Specific, i?86-*-solaris2.10): Likewise.
20910 (Specific, mips-sgi-irix6): Likewise.
20911 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
20912 Update for binutils 2.21.
20913
8fbc58a1
RO
209142011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20915
20916 * configure.ac (gcc_cv_lto_plugin): Fix typo.
20917 Allow -fuse-linker-plugin for non-default plugin linker.
20918 * configure: Regenerate.
20919
7e84ad0b
NP
209202011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
20921
20922 PR bootstrap/48167
20923 * gengtype.c (files_rules): Added rule for cp/parser.h.
20924
2f36e14b
JJ
209252011-03-21 Jakub Jelinek <jakub@redhat.com>
20926
20927 PR target/48213
20928 * config/s390/s390.c (s390_delegitimize_address): Don't call
20929 lowpart_subreg if orig_x has BLKmode.
20930
62d784f7
KT
209312011-03-21 Kai Tietz <ktietz@redhat.com>
20932
20933 PR target/12171
9e43ad68
UB
20934 * doc/plugins.texi: Adjust documentation for plugin register_callback.
20935 * tree.h (attribute_spec): Add new member affects_type_identity.
20936 * attribs.c (empty_attribute_table): Adjust attribute_spec
20937 initializers.
62d784f7
KT
20938 * config/alpha/alpha.c: Likewise.
20939 * config/arc/arc.c: Likewise.
20940 * config/arm/arm.c: Likewise.
20941 * config/avr/avr.c: Likewise.
20942 * config/bfin/bfin.c: Likewise.
20943 * config/crx/crx.c: Likewise.
20944 * config/darwin.h: Likewise.
20945 * config/h8300/h8300.c: Likewise.
20946 * config/i386/cygming.h: Likewise.
20947 * config/i386/i386.c: Likewise.
20948 * config/ia64/ia64.c: Likewise.
20949 * config/m32c/m32c.c: Likewise.
20950 * config/m32r/m32r.c: Likewise.
20951 * config/m68hc11/m68hc11.c: Likewise.
20952 * config/m68k/m68k.c: Likewise.
20953 * config/mcore/mcore.c: Likewise.
20954 * config/mep/mep.c: Likewise.
20955 * config/microblaze/microblaze.c: Likewise.
20956 * config/mips/mips.c: Likewise.
20957 * config/rs6000/rs6000.c: Likewise.
20958 * config/rx/rx.c: Likewise.
20959 * config/sh/sh.c: Likewise.
20960 * config/sol2.h: Likewise.
20961 * config/sparc/sparc.c: Likewise.
20962 * config/spu/spu.c: Likewise.
20963 * config/stormy16/stormy16.c: Likewise.
20964 * config/v850/v850.c: Likewise.
20965
54833ec0
CLT
209662011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
20967
20968 * simplify-rtx.c (simplify_binary_operation_1): Handle
20969 (xor (and A B) C) case when B and C are both constants.
20970
14a41392
MX
209712011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
20972
20973 * tree-dfa.c (add_referenced_var): Fix typo in comment.
20974
806c3492
EB
209752011-03-20 Eric Botcazou <ebotcazou@adacore.com>
20976
20977 PR bootstrap/48168
20978 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
20979
65e0a0f3
JJ
209802011-03-20 Jakub Jelinek <jakub@redhat.com>
20981
20982 PR rtl-optimization/48156
20983 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
20984 assume df and df_lr are not NULL.
20985
b6a75dda
RR
209862011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20987
20988 PR debug/48023
20989 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
20990 between a call and its CALL_ARG_LOCATION note.
20991
5969b52d
KK
209922011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
20993
20994 PR debug/48178
20995 * config/sh/sh.c (find_barrier): Don't emit a constant pool
20996 between a call and its corresponding CALL_ARG_LOCATION note.
20997
f773c2bd
AS
209982011-03-19 Anatoly Sokolov <aesok@post.ru>
20999
21000 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
21001 instead of loop. Use HARD_REGISTER_NUM_P predicate.
21002 * haifa-sched.c (setup_ref_regs): Ditto.
21003 * caller-save.c (add_used_regs_1): Ditto.
21004 * dse.c (look_for_hardregs): Ditto.
21005 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
21006 * sched-rgn.c (check_live_1): Ditto.
21007
8bf872f9
JM
210082011-03-18 Joseph Myers <joseph@codesourcery.com>
21009
21010 * c-decl.c (diagnose_mismatched_decls): Give an error for
21011 redefining a typedef with variably modified type.
21012
ff8e2159
JM
210132011-03-18 Joseph Myers <joseph@codesourcery.com>
21014
21015 * c-decl.c (grokfield): Don't allow typedefs for structures or
21016 unions with no tag by default.
21017 * doc/extend.texi (Unnamed Fields): Update.
21018
16cc4440
UB
210192011-03-18 Uros Bizjak <ubizjak@gmail.com>
21020
21021 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
21022 Rewrite using indirect functions.
21023 (lwp_slwpcb): Ditto.
21024 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
21025 (avx_vinsertf128<mode>): Ditto.
21026
e101e12e
AK
210272011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21028
21029 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
21030 unspecs.
21031
4627c7fb
AK
210322011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21033
21034 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 21035 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 21036
2d36b47f
MK
210372011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
21038
21039 PR rtl-optimization/48170
21040 * gcse.c (hoist_code): Remove bogus asserts.
21041
2a3d7659
JL
210422011-03-18 Georg-Johann Lay <avr@gjlay.de>
21043
21044 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
21045 computation for prologue/epilogue.
21046
34c3ef05
RO
210472011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21048
21049 * Makefile.in (check-consistency): Remove.
21050
81f2b976
JJ
210512011-03-18 Jakub Jelinek <jakub@redhat.com>
21052
21053 PR debug/48176
21054 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
21055 arange_table_in_use is 0, but either text_section_used or
21056 cold_text_section_used is true. Don't call it if
21057 !info_section_emitted.
21058
68fd7765
AS
210592011-03-18 Anatoly Sokolov <aesok@post.ru>
21060
21061 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
21062 FUNCTION_VALUE_REGNO_P): Remove.
21063 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
21064 Remove.
21065 * config/avr/avr.c (avr_ret_register): Make static inline.
21066 (avr_function_value_regno_p): New function.
21067 (avr_libcall_value): Make static. Add 'func' argument.
21068 (avr_function_value): Make static. Rename 'func' argument to
21069 'fn_decl_or_type', forward it to avr_libcall_value. Call
21070 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 21071 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 21072
b4ef8aac
JM
210732011-03-18 Jason Merrill <jason@redhat.com>
21074
21075 PR c++/23372
21076 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
21077
09a52fc3
RG
210782011-03-18 Richard Guenther <rguenther@suse.de>
21079
21080 * doc/install.texi (--enable-gold): Remove.
21081 (--with-plugin-ld): Document.
21082 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
21083
2a3d7659 210842011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
21085
21086 PR middle-end/47790
21087 * expr.c (optimize_bitfield_assignment_op): Revamp to work
21088 again after expansion changes.
21089
2abbb0fe
CLT
210902011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
21091
21092 * combine.c (try_combine): Do simplification only call of
21093 subst() on i2 even when i1 is present. Update comments.
21094
2efd0aa6
KK
210952011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
21096
21097 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
21098 and UNSPEC_PCREL_SYMOFF.
21099
30a49b23
AK
211002011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21101
21102 * config/s390/s390.md: Use define_c_enum for the unspec constant
21103 definitions.
21104
419e1853
JJ
211052011-03-18 Richard Henderson <rth@redhat.com>
21106 Jakub Jelinek <jakub@redhat.com>
21107
21108 PR bootstrap/48161
21109 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
21110 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
21111
24da2019
AS
211122011-03-17 Anatoly Sokolov <aesok@post.ru>
21113
21114 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21115 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
21116 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
21117 Change return type to bool.
21118 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21119
a82ff31f
JJ
211202011-03-17 Jakub Jelinek <jakub@redhat.com>
21121
8b29c87a
JJ
21122 PR debug/48163
21123 * var-tracking.c (prepare_call_arguments): If CALL target
21124 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
21125 pc instead of looking it up using cselib_lookup and use
21126 Pmode for it if x has VOIDmode.
21127 * dwarf2out.c (gen_subprogram_die): If also both first and
21128 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
21129
a82ff31f
JJ
21130 PR debug/48163
21131 * function.c (assign_parms): For data.passed_pointer parms
21132 use MEM of data.entry_parm instead of data.entry_parm itself
21133 as DECL_INCOMING_RTL.
21134 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
21135 also when passed and declared mode is the same, DECL_RTL
21136 is a MEM with pseudo as address and DECL_INCOMING_RTL is
21137 a MEM too.
21138
82ce305c
JL
211392011-03-16 Jeff Law <law@redhat.com>
21140
21141 PR rtl-optimization/37273
21142 * ira-costs.c (scan_one_insn): Detect constants living in memory and
21143 handle them like argument loads from stack slots. Do not double
21144 count memory for memory constants and argument loads from stack slots.
21145
fe58e02b
L
211462011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21147
21148 PR debug/48160
21149 * var-tracking.c (prepare_call_arguments): Check SUBREG.
21150
6fc4dbc7
L
211512011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21152
21153 PR target/48171
21154 * config/i386/i386.opt: Add Save to -mavx and -mfma.
21155
db3ed0b3
JJ
211562011-03-17 Jakub Jelinek <jakub@redhat.com>
21157
8054a389
JJ
21158 PR bootstrap/48153
21159 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
21160 if dwarf_strict.
21161 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
21162 Clear call_arg_locations and call_arg_loc_last always.
21163
db3ed0b3
JJ
21164 PR middle-end/48152
21165 * var-tracking.c (prepare_call_arguments): If argument needs to be
21166 passed by reference, adjust argtype and mode.
21167
1bce4ff3
RG
211682011-03-17 Richard Guenther <rguenther@suse.de>
21169
21170 PR middle-end/48134
21171 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
21172 a value make sure to fold the statement.
21173
7c71147d
CLT
211742011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
21175
21176 PR target/43872
21177 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
21178 return condition with !cfun->calls_alloca.
21179
0e1ee172
RG
211802011-03-17 Richard Guenther <rguenther@suse.de>
21181
21182 PR bootstrap/48148
21183 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21184 origin for decls in other ltrans units.
21185 (input_varpool_node): Likewise.
21186
f8bce518
RG
211872011-03-17 Richard Guenther <rguenther@suse.de>
21188
21189 PR middle-end/48165
21190 * tree-object-size.c (compute_object_offset): Properly return
21191 the offset operand of MEM_REFs as sizetype.
21192
1b6fa860
JJ
211932011-03-17 Jakub Jelinek <jakub@redhat.com>
21194
dabd47e7
JJ
21195 PR rtl-optimization/48141
21196 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
21197 * dse.c: Include params.h.
21198 (active_local_stores_len): New variable.
21199 (add_wild_read, dse_step1): Clear it when setting active_local_stores
21200 to NULL.
21201 (record_store, check_mem_read_rtx): Decrease it when removing
21202 from the chain.
21203 (scan_insn): Likewise. Increase it when adding to chain, if it
21204 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
21205 set active_local_stores to NULL before the addition.
21206 * Makefile.in (dse.o): Depend on $(PARAMS_H).
21207
1b6fa860
JJ
21208 PR rtl-optimization/48141
21209 * dse.c (record_store): If no positions are needed in an insn
21210 that cannot be deleted, at least unchain it from active_local_stores.
21211
7b5cb7d6
DS
212122011-03-16 Dodji Seketeli <dodji@redhat.com>
21213
21214 PR debug/47510
21215 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
21216 (lookup_type_die_strip_naming_typedef): ... here.
21217 (get_context_die): Use it.
21218 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
21219 the anonymous struct named by the naming typedef.
21220
585e9d9d
L
212212011-03-16 H.J. Lu <hongjiu.lu@intel.com>
21222
21223 PR target/48154
21224 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
21225 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21226
6261ab0e
JL
212272011-03-16 Jeff Law <law@redhat.com>
21228
21229 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 21230 check for operands of conditional. Allow type to be a pointer.
6261ab0e 21231
0b0081ec
RG
212322011-03-16 Richard Guenther <rguenther@suse.de>
21233
21234 PR tree-optimization/48149
21235 * fold-const.c (fold_binary_loc): Fold
21236 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
21237
64a3d647
RG
212382011-03-16 Richard Guenther <rguenther@suse.de>
21239
21240 PR tree-optimization/26134
21241 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
21242 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
21243 (non_rewritable_mem_ref_base): Handle complex type component
21244 accesses, constrain offsets for vector and complex extracts
21245 more properly.
21246
ef13324e
RG
212472011-03-16 Richard Guenther <rguenther@suse.de>
21248
21249 PR tree-optimization/48146
21250 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
21251 operands avoiding the need for renaming.
21252
f0eddb90
RG
212532011-03-16 Richard Guenther <rguenther@suse.de>
21254
21255 * gimple-fold.c (maybe_fold_reference): Open-code relevant
21256 constant folding. Move MEM_REF canonicalization first.
21257 Rely on fold_const_aggregate_ref for initializer folding.
21258 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
21259
e42348b8
JJ
212602011-03-16 Jakub Jelinek <jakub@redhat.com>
21261
29f10e71
JJ
21262 PR middle-end/48136
21263 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21264 arg0/arg1 or their arguments are always fold converted to matching
21265 types.
21266
e42348b8
JJ
21267 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
21268 to nargs.
21269
55b46574
RO
212702011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21271
21272 PR lto/46944
21273 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
21274 Handle in-tree gold.
21275 (ld_vers): Extract binutils version for gold.
21276 (gcc_cv_ld_hidden): Handle gold here.
21277 (gcc_cv_lto_plugin): Determine level of linker plugin support.
21278 * configure: Regenerate.
21279 * config.in: Regenerate.
21280 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
21281 -fuse-linker-plugin otherwise.
21282 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
21283 (LINK_COMMAND_SPEC): Use it.
21284 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
21285
2b1c5433
JJ
212862011-03-16 Jakub Jelinek <jakub@redhat.com>
21287
c2969d8e
JJ
21288 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
21289 * calls.c: Remove debug.h include.
21290 (emit_call_1): Don't call virtual_call_token debug hook.
21291 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
21292 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
21293 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
21294 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
21295 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
21296 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
21297 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
21298 dwarf2out_virtual_call): Remove.
21299 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
21300 copy_call_info and virtual_call hooks.
21301 (dwarf2out_init): Don't initialize vcall_insn_table,
21302 debug_dcall_section and debug_vcall_section.
21303 (prune_unused_types): Don't mark nodes from dcall_table.
21304 (dwarf2out_finish): Don't output dcall or vcall tables.
21305 * final.c (final_scan_insn): Don't call direct_call or
21306 virtual_call debug hooks.
21307 * debug.h (struct gcc_debug_hooks): Remove direct_call,
21308 virtual_call_token, copy_call_info and virtual_call hooks.
21309 (debug_nothing_uid): Remove prototype.
21310 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
21311 copy_call_info and virtual_call hooks.
21312 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21313 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
21314 * debug.c (do_nothing_debug_hooks): Likewise.
21315 (debug_nothing_uid): Remove.
21316 * doc/invoke.texi (-fenable-icf-debug): Remove.
21317 * common.opt (-fenable-icf-debug): Likewise.
21318
325f5379
JJ
21319 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
21320 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
21321 call's MEM. Handle functions returning aggregate through a hidden
21322 first pointer. For virtual calls add clobbered pc to call arguments
21323 chain.
21324 * dwarf2out.c (gen_subprogram_die): Emit
21325 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
21326 can't be emitted.
21327
a58a8e4b
JJ
21328 PR debug/45882
21329 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
21330 * rtl.h (ENTRY_VALUE_EXP): Define.
21331 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
21332 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
21333 * print-rtl.c (print_rtx): Likewise.
21334 * gengtype.c (adjust_field_rtx_def): Likewise.
21335 * var-tracking.c (vt_add_function_parameter): Adjust
21336 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
21337 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
21338 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
21339 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
21340 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
21341
2b1c5433
JJ
21342 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
21343 Call var_location debug hook even on CALL_INSNs.
21344 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
21345 * rtl.def (ENTRY_VALUE): New.
21346 * dwarf2out.c: Include cfglayout.h.
21347 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21348 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
21349 (struct call_arg_loc_node): New type.
21350 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
21351 tail_call_site_count): New variables.
21352 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
21353 DW_TAG_GNU_call_site_parameter.
21354 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
21355 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
21356 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
21357 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
21358 and DW_AT_GNU_all_source_call_sites.
21359 (mem_loc_descriptor): Handle ENTRY_VALUE.
21360 (add_src_coords_attributes): Don't add enything if
21361 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
21362 (dwarf2out_abstract_function): Save and clear call_arg_location,
21363 call_site_count and tail_call_site_count around dwarf2out_decl call.
21364 (gen_call_site_die): New function.
21365 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
21366 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
21367 (dwarf2out_function_decl): Clear call_arg_locations,
21368 call_arg_loc_last, set call_site_count and tail_call_site_count
21369 to -1 and free block_map.
21370 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
21371 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
21372 followed by any real instructions.
21373 (dwarf2out_begin_function): Set call_site_count and
21374 tail_call_site_count to 0.
21375 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
21376 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
21377 attempt to force a DIE for it and worst case remove the attribute.
21378 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
21379 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
21380 the decl itself.
21381 * var-tracking.c: Include tm_p.h.
21382 (vt_stack_adjustments): For calls call note_register_arguments.
21383 (argument_reg_set): New variable.
21384 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
21385 ensure the VALUE is resolved.
21386 (call_arguments): New variable.
21387 (prepare_call_arguments): New function.
21388 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
21389 (struct expand_loc_callback_data): Add ignore_cur_loc field.
21390 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
21391 always use the best expression.
21392 (vt_expand_loc): Add ignore_cur_loc argument.
21393 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
21394 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
21395 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
21396 note for all calls.
21397 (vt_add_function_parameter): Use cselib_lookup_from_insn.
21398 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
21399 argument. Don't call cselib_preserve_only_values and
21400 cselib_reset_table.
21401 (note_register_arguments): New function.
21402 (vt_initialize): Compute argument_reg_set. Call
21403 vt_add_function_parameters before processing basic blocks instead of
21404 afterwards. For calls call prepare_call_arguments before calling
21405 cselib_process_insn.
21406 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
21407 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
21408 (var-tracking.o): Depend on $(TM_P_H).
21409 * cfglayout.h (insn_scope): New prototype.
21410 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
21411 * cfglayout.c (insn_scope): No longer static.
21412 * insn-notes.def (CALL_ARG_LOCATION): New.
21413 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
21414 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
21415 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
21416 nothing for DECL_EXTERNAL BLOCK_VARS.
21417
9ef13bd0
AM
214182011-03-16 Alan Modra <amodra@gmail.com>
21419
21420 PR target/45844
21421 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21422 create invalid offset address for vsx splat insn.
21423 * config/rs6000/predicates.md (splat_input_operand): New.
21424 * config/rs6000/vsx.md (vsx_splat_*): Use it.
21425
56b67510
XDL
214262011-03-15 Xinliang David Li <davidxl@google.com>
21427
21428 PR c/47837
21429 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
21430 (normalize_preds): New function.
21431 (is_use_properly_guarded): Normalize def predicates.
21432
80fffdef
RR
214332011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21434
732f37c6 21435 PR target/46788
80fffdef
RR
21436 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
21437 in the output template.
21438
930672ad
RG
214392011-03-15 Richard Guenther <rguenther@suse.de>
21440
21441 PR middle-end/47650
21442 * tree-pretty-print.c (dump_function_declaration): Properly
21443 dump unprototyped and varargs function types.
21444
c7ee7b45
RG
214452011-03-15 Richard Guenther <rguenther@suse.de>
21446
21447 PR tree-optimization/13954
21448 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
21449 and friends.
21450
b2ad5e37
RG
214512011-03-15 Richard Guenther <rguenther@suse.de>
21452
21453 PR tree-optimization/48037
21454 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
21455 selects into BIT_FIELD_REFs.
21456 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
21457 vector select.
21458
7ee93d4e
JJ
214592011-03-15 Jakub Jelinek <jakub@redhat.com>
21460
21461 PR tree-optimization/48129
21462 * builtins.c (fold_builtin_snprintf): Convert to type of
21463 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
21464 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
21465
e106efc7
RG
214662011-03-15 Richard Guenther <rguenther@suse.de>
21467
21468 PR tree-optimization/41490
21469 * tree-ssa-dce.c (propagate_necessity): Handle returns without
21470 value but with VUSE.
21471 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
21472 return statements.
21473 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
21474 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
21475 * tree-tailcall.c (find_tail_calls): Ignore returns.
21476
17dea42f
RG
214772011-03-15 Richard Guenther <rguenther@suse.de>
21478
21479 PR middle-end/48031
21480 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
21481 or variable-indexed array accesses when in gimple form.
21482
01c77a60
RG
214832011-03-15 Richard Guenther <rguenther@suse.de>
21484
16cc4440 21485 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 21486
77b0791e
AM
214872011-03-15 Alan Modra <amodra@gmail.com>
21488
21489 PR target/48032
21490 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
21491 presume symbol_refs without a symbol_ref_decl are suitably
21492 aligned, nor other trees we may see here. Handle anchor symbols.
21493 (legitimate_constant_pool_address_p): Comment. Add mode param.
21494 Check cmodel=medium addresses. Adjust all calls.
21495 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
21496 creating cmodel=medium optimized access to locals.
21497 * config/rs6000/constraints.md (R): Pass QImode to
21498 legitimate_constant_pool_address_p.
21499 * config/rs6000/predicates.md (input_operand): Pass mode to
21500 legitimate_constant_pool_address_p.
21501 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
21502 Update prototype.
21503
35f61ba4
MM
215042011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21505
21506 PR target/48053
21507 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
21508 64-bit constants being loaded into registers other than GPRs such
21509 as loading 0 into a VSX register.
21510
07332e6d
RO
215112011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21512
16cc4440 21513 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 21514
de888d90
JJ
215152011-03-14 Jakub Jelinek <jakub@redhat.com>
21516
ba3ceb2d
JJ
21517 PR middle-end/47917
21518 * builtins.c (fold_builtin_snprintf): New function.
21519 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
21520 (fold_builtin_4): Likewise.
21521
2e64f8b8
JJ
21522 PR middle-end/38878
21523 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
21524 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
21525 and C - X == X also strip nops from +/-/p+ operand.
21526 When optimizing -X == C, fold C to arg0's type.
21527
de888d90
JJ
21528 PR debug/47946
21529 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
21530 emit it as add_AT_int instead of add_AT_unsigned.
21531
215322011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
21533
21534 * unwind-dw2.c: Include sys/sdt.h if it exists.
21535 (_Unwind_DebugHook): Use STAP_PROBE2.
21536 * config.in, configure: Rebuild.
21537 * configure.ac: Check for sys/sdt.h.
21538
d34abfd2
UB
215392011-03-14 Uros Bizjak <ubizjak@gmail.com>
21540
21541 * config/i386/i386.md (ROUND_FLOOR): New constant.
21542 (ROUND_CEIL): Ditto.
21543 (ROUND_TRUNC): Ditto.
21544 (ROUND_MXCSR): Ditto.
21545 (ROUND_NO_EXC): Ditto.
21546 (rint<mode>2): Use new defines instead of numerical constants.
21547 (floor<mode>2): Ditto.
21548 (ceil<mode>2): Ditto.
21549 (btrunc<mode>2): Ditto.
21550 * config/i386/i386-builtin-types.def: Define ROUND function type
21551 aliases.
21552 * config/i386/i386.c (enum ix86_builtins): Add
21553 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
21554 (struct builtin_description): Add
21555 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
21556 (ix86_expand_sse_round): New static function.
21557 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
21558 function types.
21559 (ix86_builtin_vectorized_function): Handle
21560 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21561
87f9e23d
TT
215622011-03-14 Tom Tromey <tromey@redhat.com>
21563
21564 * c-parser.c (c_parser_asm_string_literal): Clear
21565 warn_overlength_strings.
21566
b3ab9ea2
TT
215672011-03-14 Tom Tromey <tromey@redhat.com>
21568
21569 * c-parser.c (disable_extension_diagnostics): Save
21570 warn_overlength_strings.
21571 (restore_extension_diagnostics): Restore warn_overlength_strings.
21572
6bd73dd8
JJ
215732011-03-14 Jakub Jelinek <jakub@redhat.com>
21574
21575 * BASE-VER: Change to 4.7.0.
21576
7f4d6e1b
RG
215772011-03-14 Richard Guenther <rguenther@suse.de>
21578
21579 PR middle-end/48098
21580 * tree.c (build_vector_from_val): Adjust assert to requirements
21581 and reality.
21582
c6104ef1
JJ
215832011-03-14 Jakub Jelinek <jakub@redhat.com>
21584
21585 PR bootstrap/48102
d34abfd2 21586 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 21587
dfa95e19
AT
215882011-03-14 Andreas Tobler <andreast@fgznet.ch>
21589
f60c2554 21590 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
21591 terms of target_flags_explicit. Adjust copyright year.
21592
21593 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
21594 * config/rs6000/t-freebsd: New file. Add override for
21595 LIB2FUNCS_EXTRA.
21596
bb322018
CD
215972011-03-13 Chris Demetriou <cgd@google.com>
21598
21599 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
21600 (-fno-diagnostics-show-option): this, to reflect current default.
21601 (-Werror=): Update text about -fno-diagnostics-show-option.
21602
12b1c80b
PB
216032011-03-12 Peter Bergner <bergner@vnet.ibm.com>
21604
21605 PR target/48053
21606 * config/rs6000/predicates.md (easy_vector_constant_add_self,
21607 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
21608 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
21609 mode is not V2DImode or V2DFmode.
21610 (vspltis_constant): Do not handle V2DImode and V2DFmode.
21611 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
21612 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
21613 registers to 0.
21614 (movdi_internal64): Likewise.
21615
57d598f7
SP
216162011-03-12 Sebastian Pop <sebastian.pop@amd.com>
21617
21618 PR tree-optimization/47127
21619 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
21620 parameter.
21621 (set_cloog_options): Same.
21622 (scop_to_clast): Same.
21623 (print_clast_stmt): Do not call cloog_state_malloc and
21624 cloog_state_free.
21625 (print_generated_program): Same.
21626 (gloog): Same.
21627 * graphite-clast-to-gimple.h (cloog_state): Declared.
21628 (scop_to_clast): Adjust declaration.
21629 * graphite.c (cloog_state): Defined here.
21630 (graphite_initialize): Call cloog_state_malloc.
21631 (graphite_finalize): Call cloog_state_free.
21632
f231b5ff
JM
216332011-03-11 Jason Merrill <jason@redhat.com>
21634
21635 * attribs.c (lookup_attribute_spec): Take const_tree.
21636 * tree.h: Adjust.
21637
6a4e2bd5
JM
216382011-03-11 Joseph Myers <joseph@codesourcery.com>
21639
21640 * config/sparc/sparc.c (sparc_option_override): Use
21641 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
21642
a758fd67
RG
216432011-03-11 Richard Guenther <rguenther@suse.de>
21644
21645 PR tree-optimization/48067
21646 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
21647 multiplication result will be only used once on the target
21648 stmt.
21649
03dfda54
RG
216502011-03-11 Richard Guenther <rguenther@suse.de>
21651
21652 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
21653
5f11a50a
RG
216542011-03-11 Richard Guenther <rguenther@suse.de>
21655
21656 PR lto/48073
21657 * tree.c (find_decls_types_r): Do not walk types only reachable
21658 from IDENTIFIER_NODEs.
21659
4074f163
JJ
216602011-03-11 Jakub Jelinek <jakub@redhat.com>
21661
21662 PR middle-end/48044
21663 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
21664 all vnode->force_output nodes as needed.
21665
30f7cdcd
JM
216662011-03-11 Jason Merrill <jason@redhat.com>
21667
21668 PR c++/48069
21669 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
21670 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
21671
62ecfeb8
MJ
216722011-03-11 Martin Jambor <mjambor@suse.cz>
21673
21674 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
21675 cgraph_node.
21676
e89e03ab
JJ
216772011-03-11 Jakub Jelinek <jakub@redhat.com>
21678
21679 PR tree-optimization/48063
21680 * ipa-inline.c (cgraph_decide_inlining): Don't try to
21681 inline functions called once if !tree_can_inline_p (node->callers).
21682
efbe978b 216832011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 21684
efbe978b
EB
21685 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
21686 extra_objs.
9d6193a7
CL
21687 * config/score/score3.c: Delete.
21688 * config/score/score3.h: Delete.
21689 * config/score/mul-div.S: Delete.
21690 * config/score/sfp-machine.h: Add new file.
21691 * config/score/constraints.md: Add new file.
21692 * config/score/t-score-softfp: Add new file.
efbe978b 21693 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
21694 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
21695 (score7_extra_constraint): Delete.
efbe978b 21696 (score7_option_override): Remove unused code.
9d6193a7
CL
21697 * config/score/score.c: Remove score3 and score5 define and code.
21698 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 21699 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
21700 * config/score/score.opt: Remove score3 and score5 options.
21701
5de27cca
JDA
217022011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21703
21704 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
21705 when _HPUX_SOURCE is defined.
21706 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
21707
18d92053
JM
217082011-03-10 Jason Merrill <jason@redhat.com>
21709
21710 PR c++/48029
21711 * stor-layout.c (layout_type): Don't set structural equality
21712 on arrays of incomplete type.
21713 * tree.c (type_hash_eq): Handle comparing them properly.
21714
67a2f76d
JJ
217152011-03-10 Jakub Jelinek <jakub@redhat.com>
21716
21717 PR debug/48043
18d92053 21718 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
21719 result mode matches original rtl mode.
21720
d845b2f9
NC
217212011-03-10 Nick Clifton <nickc@redhat.com>
21722
21723 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 21724 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 21725
db7ec035
JJ
217262011-03-09 Jakub Jelinek <jakub@redhat.com>
21727
21728 PR rtl-optimization/47866
21729 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
21730 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
21731 if target wasn't scalar.
21732 * function.c (assign_stack_temp_for_type): Assert that neither
21733 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
21734 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
21735 macro.
21736 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
21737
5d304e47
AK
217382011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21739
21740 * config/s390/s390-protos.h (s390_label_align): New prototype.
21741 * config/s390/s390.c (s390_label_align): New function.
21742 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
21743
93b826f0
MM
217442011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
21745
21746 PR target/47755
21747 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
21748 V2DI/V2DF constants. Only all 0's or all 1's are easy.
21749 (output_vec_const_move): Ditto.
21750
ef78aed6
AS
217512011-03-08 Anatoly Sokolov <aesok@post.ru>
21752
21753 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
21754 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
21755 * config/mips/mips.c (mips_preferred_reload_class): Make static.
21756 Change 'rclass' argument and result type to reg_class_t.
21757 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21758
5f892aa0
GJL
217592011-03-08 Georg-Johann Lay <avr@gjlay.de>
21760
9e43ad68
UB
21761 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21762 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
21763 (TARGET_MEMORY_MOVE_COST): Define.
21764 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 21765
32bd2409
JJ
217662011-03-08 Jakub Jelinek <jakub@redhat.com>
21767
530a4800
JJ
21768 PR debug/47881
21769 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
21770 removed anything.
21771
32bd2409
JJ
21772 PR tree-optimization/48022
21773 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
21774 for EQ/NE_EXPR.
21775
c7148991
JJ
217762011-03-07 Jakub Jelinek <jakub@redhat.com>
21777
21778 PR debug/47991
21779 * var-tracking.c (find_use_val): Return NULL for
21780 cui->sets && cui->store_p BLKmode MEMs.
21781
43070a6e
AS
217822011-03-07 Anatoly Sokolov <aesok@post.ru>
21783
21784 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
21785 Remove.
21786 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
21787 xstormy16_print_operand_address): Remove.
21788 * config/stormy16/stormy16.c (xstormy16_print_operand,
21789 xstormy16_print_operand_address): Make static.
21790 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21791
efbe978b 217922011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
21793
21794 PR target/47862
21795 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21796 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
21797 before definition.
21798
cec8ac0b
ZD
217992011-03-07 Zdenek Dvorak <ook@ucw.cz>
21800
21801 PR bootstrap/48000
21802 * cfgloopmanip.c (fix_bb_placements): Return immediately
21803 if FROM is BASE_LOOP's header.
21804
59527282
PW
218052011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
21806
21807 * gimplify.c (gimplify_function_tree): Fix building calls
21808 to __builtin_return_address.
21809
617718f7
AM
218102011-03-07 Alan Modra <amodra@gmail.com>
21811
21812 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
21813 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
21814 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
21815 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
21816 return_mode args.
21817 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
21818 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
21819 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
21820 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
21821 * config/rs6000/rs6000.c
21822 (rs6000_elf_end_indicate_exec_stack): Rename to..
21823 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
21824 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
21825 (rs6000_file_start): ..here.
21826 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
21827 file scope variables.
21828 (call_ABI_of_interest): New function.
21829 (init_cumulative_args): Set above vars when function return value
21830 is a float, vector, or small struct.
21831 (rs6000_function_arg_advance_1): Likewise for function args.
21832 (rs6000_va_start): Set rs6000_passes_float if variable arg function
21833 references float args.
21834
38528d50
MX
218352011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
21836
21837 * doc/cfg.texi: Remove "See" before @ref.
21838 * doc/invoke.texi: Likewise.
21839
f42cf4f4
JM
218402011-03-05 Jason Merrill <jason@redhat.com>
21841
21842 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
21843
804a304d
AG
218442011-03-05 Anthony Green <green@moxielogic.com>
21845
21846 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
21847
634ee309
ZD
218482011-03-05 Zdenek Dvorak <ook@ucw.cz>
21849
21850 PR rtl-optimization/47899
21851 * cfgloopmanip.c (fix_bb_placements): Fix first argument
21852 to flow_loop_nested_p when moving the loop upward.
21853
6fe471c8
RE
218542011-03-05 Richard Earnshaw <rearnsha@arm.com>
21855
21856 PR target/47719
21857 * arm.md (movhi_insn_arch4): Accept any immediate constant.
21858
cc58ceee
JJ
218592011-03-05 Jakub Jelinek <jakub@redhat.com>
21860
21861 PR tree-optimization/47967
21862 * ipa-cp.c (build_const_val): Return NULL instead of creating
21863 VIEW_CONVERT_EXPR for mismatching sizes.
21864 (ipcp_create_replace_map): Return NULL if build_const_val failed.
21865 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
21866 give up on versioning.
21867
ea868305
AM
218682011-03-05 Alan Modra <amodra@gmail.com>
21869
21870 PR target/47986
21871 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21872 full cmodel medium/large lo_sum + high addresses.
21873
bc6ce334
AK
218742011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21875
21876 * config/s390/s390.c (s390_decompose_address): Reject non-literal
21877 pool references in UNSPEC_LTREL_OFFSET.
21878
87e7b310
JH
218792011-03-04 Jan Hubicka <jh@suse.cz>
21880
21881 PR lto/47497
21882 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
21883 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
21884 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
21885 Add node pointers.
87e7b310
JH
21886 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
21887 cgraph_add_thunk): Add node pointers.
21888 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
21889 associated to right node.
21890 (input_node): Update use of cgraph_same_body_alias
21891 and cgraph_add_thunk.
21892
d9c64246
CF
218932011-03-04 Changpeng Fang <changpeng.fang@amd.com>
21894
21895 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
21896 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
21897 modes when the flag -mprefer-avx128 is on.
d9c64246 21898
08707076
RS
218992011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
21900
21901 * dwarf2out.c (compare_loc_operands): Fix address handling.
21902
52517c81
AM
219032011-03-04 Alan Modra <amodra@gmail.com>
21904
21905 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
21906
b147c5b9
RG
219072011-03-04 Richard Guenther <rguenther@suse.de>
21908
21909 PR middle-end/47968
21910 * expmed.c (extract_bit_field_1): Prefer vector modes that
21911 vec_extract patterns can handle.
21912
8750672f
RG
219132011-03-04 Richard Guenther <rguenther@suse.de>
21914
21915 PR middle-end/47975
21916 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
21917
9eac0f2a
RH
219182011-03-04 Richard Henderson <rth@redhat.com>
21919
21920 * explow.c (emit_stack_save): Remove 'after' parameter.
21921 (emit_stack_restore): Likewise.
21922 * expr.h: Update to match.
21923 * builtins.c, calls.c, stmt.c: Likewise.
21924 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
21925 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
21926 * function.c (expand_function_end): Insert the emit_stack_save
21927 sequence before parm_birth_insn instead of after.
21928
dfee1406
UB
219292011-03-03 Uros Bizjak <ubizjak@gmail.com>
21930
21931 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
21932 (ssse3_pmaddubsw128): Ditto.
21933 (ssse3_pmaddubsw): Ditto.
21934
f1d4c3de
SE
219352011-03-03 Steve Ellcey <sje@cup.hp.com>
21936
21937 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
21938
71f3a3f5
JJ
219392011-03-03 Jakub Jelinek <jakub@redhat.com>
21940
423ed416
JJ
21941 PR c/47963
21942 * gimplify.c (omp_add_variable): Only call omp_notice_variable
21943 on TYPE_SIZE_UNIT if it is a DECL.
21944
71f3a3f5
JJ
21945 PR debug/47283
21946 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
21947 first operand is not is_gimple_mem_ref_addr, try to fold it.
21948 If the operand still isn't is_gimple_mem_ref_addr, clear
21949 MEM_EXPR on op0.
21950
4b1a5c0d
RG
219512011-03-03 Richard Guenther <rguenther@suse.de>
21952
21953 PR middle-end/47283
21954 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
21955 match comment.
21956 (refs_may_alias_p_1): For release branches return true if
21957 we are confused by our input.
21958
b46616fd
AK
219592011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21960
21961 * config/s390/s390.c (s390_function_value): Rename to ...
21962 (s390_function_and_libcall_value): ... this.
21963 (s390_function_value): New function.
21964 (s390_libcall_value): New function.
dfee1406 21965 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
21966 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
21967 target macro definitions.
21968 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
21969
46d8fabb
JM
219702011-03-02 Joseph Myers <joseph@codesourcery.com>
21971
21972 * config/i386/freebsd64.h (CC1_SPEC): Define.
21973 * config/i386/linux64.h (CC1_SPEC): Define.
21974 * config/i386/x86-64.h (CC1_SPEC): Don't define.
21975
6b1ce545
AS
219762011-03-02 Anatoly Sokolov <aesok@post.ru>
21977
21978 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21979 Remove.
21980 * config/stormy16/stormy16.c: Include reload.h.
21981 (xstormy16_memory_move_cost): New function.
21982 (TARGET_MEMORY_MOVE_COST): Define.
21983
34161e98
RS
219842011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
21985
21986 PR rtl-optimization/47925
21987 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
21988 with side effects. Remove the more-specific check for volatile asms.
21989
f60a97cf
AM
219902011-03-02 Alan Modra <amodra@gmail.com>
21991
21992 PR target/47935
21993 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
21994 toc relative addresses for valid offsets.
21995
f2ca11ca
RG
219962011-03-01 Richard Guenther <rguenther@suse.de>
21997
21998 PR tree-optimization/47890
21999 * tree-vect-loop.c (get_initial_def_for_induction): Set
22000 related stmt properly.
22001
7a00d9ea
RG
220022011-03-01 Richard Guenther <rguenther@suse.de>
22003
22004 PR lto/47924
22005 * lto-streamer.c (lto_record_common_node): Also register
22006 the canonical type.
22007
06c7edcc
RG
220082011-03-01 Richard Guenther <rguenther@suse.de>
22009
22010 PR lto/46911
22011 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22012 Do not stream DECL_ABSTRACT_ORIGIN.
22013 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
22014 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
22015 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22016 Do not stream DECL_ABSTRACT_ORIGIN.
22017 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
22018 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
22019
998871e9
AS
220202011-02-28 Anatoly Sokolov <aesok@post.ru>
22021
22022 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
22023 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 22024 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
22025 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
22026 Add 'outgoing' argument.
22027 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
22028 function.
22029 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22030 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22031
94369251
KT
220322011-02-28 Kai Tietz <kai.tietz@onevision.com>
22033
22034 PR debug/28047
22035 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
22036 (lookup_filename): Likewise.
b2e2ea67 22037 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 22038
80a832cd
JJ
220392011-02-28 Bernd Schmidt <bernds@codesourcery.com>
22040 Jakub Jelinek <jakub@redhat.com>
22041
22042 PR middle-end/47893
22043 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
22044 (assign_stack_local_1): Change last argument type to int.
22045 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
22046 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 22047 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
22048 (assign_stack_local): Adjust caller.
22049 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
22050 of assign_stack_local, pass 0 as last argument.
22051 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
22052 callers.
22053
1b500976
JJ
220542011-02-28 Jakub Jelinek <jakub@redhat.com>
22055
f61c6f34
JJ
22056 PR debug/47283
22057 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
22058 Use target address_mode and pointer_mode hooks instead of hardcoded
22059 Pmode and ptr_mode. Handle some simple cases of extending if
22060 POINTERS_EXTEND_UNSIGNED < 0.
22061 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
22062 Call convert_debug_memory_address.
22063 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
22064 convert_debug_memory_address.
22065
1b500976
JJ
22066 PR middle-end/46790
22067 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
22068 * configure: Regenerated.
22069 * config.in: Regenerated.
22070 * varasm.c (default_function_section): Return NULL
b2e2ea67 22071 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 22072
2f2935b6
MJ
220732011-02-28 Martin Jambor <mjambor@suse.cz>
22074
22075 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
22076 the description to match the printed values.
22077
474086eb
RG
220782011-02-28 Richard Guenther <rguenther@suse.de>
22079
22080 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
22081 of the copied scope tree.
22082
15bf6f3a
RW
220832011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22084
22085 * doc/extend.texi (Function Attributes): Avoid deeply (and
22086 wrongly) nested tables.
22087
f6b439c9
JJ
220882011-02-27 Jakub Jelinek <jakub@redhat.com>
22089
22090 PR middle-end/47903
22091 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
22092 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
22093 r isn't op0 nor op1.
22094
1d8ca2c7
GJL
220952011-02-23 Georg-Johann Lay <avr@gjlay.de>
22096
22097 * config/avr/avr.md: Remove magic comment for emacs.
22098
593fca4b
GJL
220992011-02-23 Georg-Johann Lay <avr@gjlay.de>
22100
22101 PR target/45261
22102 * config/avr/avr.c (avr_option_override): Use error on bad options.
22103 (avr_help): New function.
22104 (TARGET_HELP): Define.
22105
6609216e
GJL
221062011-02-22 Georg-Johann Lay <avr@gjlay.de>
22107
22108 PR target/42240
22109 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
22110 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
22111
03d458af
GP
221122011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
22113
22114 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
22115 (ARM Options): Ditto.
22116 (i386 and x86-64 Options): Ditto.
22117 (RX Options): Ditto.
22118 (SPARC Options): Ditto.
22119
1c379b78
TC
221202011-02-26 Tijl Coosemans <tijl@coosemans.org>
22121
22122 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
22123 FreeBSD 6 and later. Generally use cpu generic.
22124
d5ed058c 221252011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 22126
d5ed058c
GP
22127 * doc/cpp.texi: Update copyright years.
22128
509d65dd 221292011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 22130
509d65dd 22131 PR target/46898
308d39cd
SB
22132 * config/lm32/lm32.md (ashrsi3): Added needed variable.
22133
509d65dd 221342011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 22135
509d65dd 22136 PR target/46898
308d39cd
SB
22137 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
22138 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
22139 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
22140 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 22141 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
22142 (gen_int_relational): Move declarations to start of function.
22143
822ba6d7
EB
221442011-02-25 Eric Botcazou <ebotcazou@adacore.com>
22145
22146 PR tree-optimization/45470
22147 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
22148 can throw internally only.
22149 * tree-vect-stmts.c (vectorizable_call): Likewise.
22150
ef795fc2
AS
221512011-02-24 Anatoly Sokolov <aesok@post.ru>
22152
22153 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
22154 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22155 * config/stormy16/stormy16-protos.h
22156 (xstormy16_preferred_reload_class): Remove.
22157 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
22158 static. Change 'rclass' argument and return type to reg_class_t.
22159 (TARGET_PREFERRED_RELOAD_CLASS,
22160 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22161
1c3277ee
RG
221622011-02-24 Richard Guenther <rguenther@suse.de>
22163
22164 * lto-streamer-in.c (input_bb): Do not find referenced vars
22165 in debug statements.
22166
67e18edb
JM
221672011-02-23 Jason Merrill <jason@redhat.com>
22168
22169 * common.opt (fabi-version): Document v5 and v6.
22170
b14fad9d
RG
221712011-02-23 Richard Guenther <rguenther@suse.de>
22172
22173 PR tree-optimization/47849
22174 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
22175
7fcf46f5
JZ
221762011-02-23 Jie Zhang <jie@codesourcery.com>
22177
22178 * opts-common.c (decode_cmdline_option): Print empty string
22179 argument as "" in decoded->orig_option_with_args_text.
22180 * gcc.c (execute): Print empty string argument as ""
22181 in the verbose output.
22182 (do_spec_1): Keep empty string argument.
22183
f85b70fd
NF
221842011-02-23 Nathan Froyd <froydnj@codesourcery.com>
22185
22186 * config.gcc: Declare score-* and crx-* obsolete.
22187
b152a615
JZ
221882011-02-23 Jie Zhang <jie@codesourcery.com>
22189
22190 PR rtl-optimization/47763
22191 * web.c (web_main): Ignore naked clobber when replacing register.
22192
bb6e77bc
AS
221932011-02-22 Anatoly Sokolov <aesok@post.ru>
22194
22195 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22196 Remove.
22197
68bf6491
SP
221982011-02-22 Sebastian Pop <sebastian.pop@amd.com>
22199
22200 PR doc/47848
22201 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
22202
88ee1fc7
MS
222032011-02-22 Mike Stump <mikestump@comcast.net>
22204
22205 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
22206 assembler.
22207 * configure: Regenerate.
22208
6042d1dd
CLT
222092011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
22210
22211 PR rtl-optimization/46002
22212 * ira-color.c (update_copy_costs): Change class intersection
22213 test to reg_class_contents[] test of 'hard_regno'.
22214
7de97f9e
JM
222152011-02-21 Joseph Myers <joseph@codesourcery.com>
22216
22217 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
22218 than Driver option.
22219 * config/hpux11.opt (mt): Likewise.
22220 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
22221 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
22222 * config/vax/elf.opt (mno-asm-pic): Likewise.
22223 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
22224
d1d46f9f
MS
222252011-02-21 Mike Stump <mikestump@comcast.net>
22226
22227 PR target/47822
22228 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
22229 tree so we can get save the type.
22230 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
22231 for CFString instead of trying to use past the end of the builtins.
22232 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
22233 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
22234 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
22235 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
22236 Rename to darwin_builtin_cfstring.
22237 (darwin_init_cfstring_builtins): Return the built type.
22238
23e0d930
UB
222392011-02-21 Uros Bizjak <ubizjak@gmail.com>
22240
22241 PR target/47840
22242 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
22243 (_mm256_insert_epi64): Use _mm_insert_epi64.
22244
192997cf
AS
222452011-02-21 Anatoly Sokolov <aesok@post.ru>
22246
22247 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22248 * config/stormy16/stormy16-protos.h
22249 (xstormy16_mode_dependent_address_p): Remove.
22250 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
22251 Make static. Change return type to bool. Change argument type to
22252 const_rtx. Remove dead code.
22253 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22254
e292d003
RG
222552011-02-21 Richard Guenther <rguenther@suse.de>
22256
22257 PR lto/47820
22258 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22259 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22260 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
22261 TUs context.
23e0d930 22262 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
22263 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22264
77f846e9
RG
222652011-02-20 Richard Guenther <rguenther@suse.de>
22266
22267 PR lto/47822
22268 * tree.c (free_lang_data_in_decl): Clean builtins from
22269 the TU decl BLOCK_VARS.
23e0d930 22270
b2cddfc8
AO
222712011-02-19 Alexandre Oliva <aoliva@redhat.com>
22272
22273 PR debug/47620
22274 PR debug/47630
22275 * haifa-sched.c (fix_tick_ready): Skip tick computation
22276 for debug insns.
22277
becf4c11
RG
222782011-02-19 Richard Guenther <rguenther@suse.de>
22279
22280 PR lto/47647
22281 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
22282 Remove lazy BLOCK_VARS streaming.
22283 (lto_input_ts_block_tree_pointers): Likewise.
22284 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
22285
27f98305
JM
222862011-02-19 Joseph Myers <joseph@codesourcery.com>
22287
22288 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
22289
064bf3f4
JM
222902011-02-19 Joseph Myers <joseph@codesourcery.com>
22291
22292 * config/i386/biarch32.h, config/i386/mach.h,
22293 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
22294
9215ddc3
JJ
222952011-02-19 Jakub Jelinek <jakub@redhat.com>
22296
22297 PR target/47800
22298 * config/i386/i386.md (peephole2 for shift and plus): Use
22299 operands[1] original mode in the first insn.
22300
8b021004
MS
223012011-02-18 Mike Stump <mikestump@comcast.net>
22302
65ded153 22303 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 22304
f84ae14c
JH
223052011-02-18 Jan Hubicka <jh@suse.cz>
22306
22307 PR middle-end/47788
65ded153
EB
22308 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
22309 to zero when the function is not inlinable at all.
f84ae14c 22310
eddabc80
JDA
223112011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22312
22313 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
22314 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
22315 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
22316 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
22317 * config/pa/t-pa64: Likewise.
22318 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
22319
ca3da783
JJ
223202011-02-18 Jakub Jelinek <jakub@redhat.com>
22321
22322 PR driver/47787
22323 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
22324
430aa868
JDA
223252011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22326
22327 PR target/47792
22328 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
22329
4bf7ff7e
AS
223302011-02-18 Anatoly Sokolov <aesok@post.ru>
22331
22332 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22333 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
22334 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
22335 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22336 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
22337 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
22338 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
22339 m32r_load_postinc_p, m32r_store_preinc_predec_p,
22340 m32r_legitimate_address_p): New functions.
22341 * config/m32r/constraints.md (constraint "S"): Don't use
22342 STORE_PREINC_PREDEC_P.
22343 (constraint "U"): Don't use LOAD_POSTINC_P.
22344
7efcf910
CLT
223452011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
22346
22347 PR rtl-optimization/46178
22348 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
22349 compute ira_hard_regno_cover_class[].
22350
237d6259
RG
223512011-02-18 Richard Guenther <rguenther@suse.de>
22352
22353 PR lto/47798
22354 * lto-streamer.h (lto_global_var_decls): Declare.
22355 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
22356 statics for global var processing.
22357
12d80acc
RG
223582011-02-18 Richard Guenther <rguenther@suse.de>
22359
22360 PR tree-optimization/47737
22361 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
22362 edge dominance check.
22363
abfea58d
JJ
223642011-02-18 Jakub Jelinek <jakub@redhat.com>
22365
22366 PR debug/47780
22367 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
22368 avoid invalid rtx sharing.
22369
f73c8882
GP
223702011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
22371
22372 * doc/cpp.texi (Obsolete Features): Add background on the
22373 origin of assertions.
22374
d764a8e6
IS
223752011-02-17 Iain Sandoe <iains@gcc.gnu.org>
22376
22377 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 22378 objc_abi == 2.
d764a8e6
IS
22379 * config/darwin.c (output_objc_section_asm_op): Added support for
22380 ABI v1 and v2.
22381 (is_objc_metadata): New.
22382 (darwin_objc2_section): New.
22383 (darwin_objc1_section): New.
22384 (machopic_select_section): Added support for ABI v1 and v2.
22385 (darwin_emit_objc_zeroed): New.
22386 (darwin_output_aligned_bss): Detect objc metadata and treat it
22387 appropriately.
22388 (darwin_asm_output_aligned_decl_common): Same.
22389 (darwin_asm_output_aligned_decl_local): Same.
22390 * config/darwin-sections.def: Updated for ABI v1 and v2.
22391 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
22392 compiling Objective-C code for the NeXT runtime, default to using
22393 ABI version 0 for 32-bit, and version 2 for 64-bit.
22394
0a8134ca
JM
223952011-02-17 Joseph Myers <joseph@codesourcery.com>
22396
22397 * common.opt (optimize_fast): New Variable.
22398 * opts.c (default_options_optimization): Use opts->x_optimize_fast
22399 instead of local variable ofast.
22400
0a256240
NP
224012011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
22402
22403 * doc/invoke.texi (fobjc-abi-version): Documented.
22404 (fobjc-nilcheck): Documented.
22405 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
22406 version.
22407
fa381cb2
JM
224082011-02-17 Joseph Myers <joseph@codesourcery.com>
22409
22410 PR driver/47390
22411 * common.opt (export-dynamic): New Driver option.
22412 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
22413
5437eaa6
JM
224142011-02-17 Joseph Myers <joseph@codesourcery.com>
22415
22416 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
22417
bb7e6d55
AO
224182011-02-17 Alexandre Oliva <aoliva@redhat.com>
22419 Jan Hubicka <jh@suse.cz>
22420
22421 PR debug/47106
22422 PR debug/47402
22423 * cfgexpand.c (account_used_vars_for_block): Remove.
22424 (estimated_stack_frame_size): Use referenced vars.
22425 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
22426 that were referenced in the original function. Test src_fn
22427 rather than cfun. Drop redundant get_var_ann.
22428 (setup_one_parameter): Drop redundant get_var_ann.
22429 (declare_return_variable): Likewise.
22430 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
22431 (copy_arguments_for_versioning): Drop redundant get_var_ann.
22432 * ipa-inline.c (compute_inline_parameters): Do not compute
22433 disregard_inline_limits here.
bb7e6d55
AO
22434 (compute_inlinable_for_current, pass_inlinable): New.
22435 (pass_inline_parameters): Require PROP_referenced_vars.
22436 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 22437 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
22438 (cgraph_analyze_function): Set .disregard_inline_limits.
22439 * tree-sra.c (convert_callers): Compute inliner parameters
22440 only for functions already in SSA form.
22441
f181a8a7
JM
224422011-02-17 Joseph Myers <joseph@codesourcery.com>
22443
22444 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
22445 -mlittle-endian-data.
22446
c6869789
JM
224472011-02-17 Joseph Myers <joseph@codesourcery.com>
22448
22449 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
22450 -mno-fpu, not -fpu and -no-fpu.
22451 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
22452 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
22453
fbf4bfd3
UB
224542011-02-17 Uros Bizjak <ubizjak@gmail.com>
22455
22456 PR target/43653
22457 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
22458 input reload with PLUS RTX.
22459
70be5dc7
JM
224602011-02-16 Joseph Myers <joseph@codesourcery.com>
22461
22462 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
22463 of InverseVar(MDMX).
22464
30b1646e
JM
224652011-02-16 Joseph Myers <joseph@codesourcery.com>
22466
22467 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
22468 --m4-340.
22469
ab7b71e9
JM
224702011-02-16 Joseph Myers <joseph@codesourcery.com>
22471
22472 * config/mn10300/mn10300.opt (mno-crt0): New.
22473
466f3f08
JM
224742011-02-16 Joseph Myers <joseph@codesourcery.com>
22475
22476 * config/m68k/uclinux.opt (static-libc): New Driver option.
22477
8226cd7b
JM
224782011-02-16 Joseph Myers <joseph@codesourcery.com>
22479
22480 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
22481
45cab1d7
JM
224822011-02-16 Joseph Myers <joseph@codesourcery.com>
22483
22484 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
22485 %{muser-extend-enabled}.
22486
65aab64f
RG
224872011-02-16 Richard Guenther <rguenther@suse.de>
22488
22489 PR tree-optimization/47738
22490 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
22491 the TODO from tree_predictive_commoning.
22492
fc2fa4fb
JL
224932011-02-15 Jeff Law <law@redhat.com>
22494
22495 Revert
22496 2011-01-25 Jeff Law <law@redhat.com>
22497
22498 PR rtl-optimization/37273
22499 * ira-costs.c (scan_one_insn): Detect constants living in memory and
22500 handle them like argument loads from stack slots. Do not double
22501 count memory for memory constants and argument loads from stack slots.
22502
e3a69bb4
MM
225032011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22504
22505 PR target/47755
22506 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
22507 mode for vector constants. Remove code that checks for TImode.
22508
de650422
AO
225092011-02-15 Alexandre Oliva <aoliva@redhat.com>
22510
22511 PR debug/47106
22512 PR debug/47402
22513 * cgraph.h (compute_inline_parameters): Return void.
22514 * ipa-inline.c (compute_inline_parameters): Adjust.
22515
30925d94
AO
225162011-02-15 Alexandre Oliva <aoliva@redhat.com>
22517
22518 PR debug/47106
22519 PR debug/47402
22520 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
22521 rather than decl.
22522 * cfgexpand.c (estimated_stack_frame_size): Likewise.
22523 * ipa-inline.c (compute_inline_parameters): Adjust.
22524
1b9a784a
AO
225252011-02-15 Alexandre Oliva <aoliva@redhat.com>
22526
22527 PR debug/47106
22528 PR debug/47402
22529 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
22530 Adjust all users. Pass FN to...
22531 * tree-flow-inline.h (first_referenced_var): ... this. Add
22532 fn argument.
22533 * ipa-struct-reorg.c: Adjust.
22534 * tree-dfa.c: Adjust.
22535 * tree-into-ssa.c: Adjust.
22536 * tree-sra.c: Adjust.
22537 * tree-ssa-alias.c: Adjust.
22538 * tree-ssa-live.c: Adjust.
22539 * tree-ssa.c: Adjust.
22540 * tree-ssanames.c: Adjust.
22541 * tree-tailcall.c: Adjust.
22542
27c6b086
AO
225432011-02-15 Alexandre Oliva <aoliva@redhat.com>
22544
22545 PR debug/47106
22546 PR debug/47402
22547 * tree-flow.h (referenced_var_lookup): Add fn parameter.
22548 Adjust all callers.
22549 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
22550 * tree-flow-inline.h: Adjust.
22551 * gimple-pretty-print.c: Adjust.
22552 * tree-into-ssa.c: Adjust.
22553 * tree-ssa.c: Adjust.
22554 * cfgexpand.c: Adjust.
22555
679e8183
NF
225562011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22557
fbf4bfd3
UB
22558 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
22559 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22560 (EXTRA_CONSTRAINT): Delete.
22561 * config/iq2000/constraints.md: New file.
22562 * config/iq2000/iq2000.md: Include it.
679e8183
NF
22563 (define_insn ""): Delete.
22564 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
22565 unsupported constraint letters from patterns.
22566 (call_value, call_value_internal1): Likewise.
22567 (call_value_multiple_internal1): Likewise.
22568
a45d420a
NC
225692011-02-15 Nick Clifton <nickc@redhat.com>
22570
22571 * config/mn10300/mn10300.c: Include tm-constrs.h.
22572 (struct liw_data): New data structure describing an LIW candidate
22573 instruction.
22574 (extract_bundle): Use struct liw_data. Allow small integer
22575 operands for some instructions.
22576 (check_liw_constraints): Use struct liw_data. Remove swapped
22577 parameter. Add comments describing the checks. Fix bug when
22578 assigning the source of liw1 to the source of liw2.
22579 (liw_candidate): Delete. Code moved into extract_bundle.
22580 (mn10300_bundle_liw): Use struct liw_data. Check constraints
22581 before swapping.
22582 * config/mn10300/predicates.md (liw_operand): New predicate.
22583 Allows registers and small integer constants.
22584 * config/mn10300/constraints.md (O): New constraint. Accetps
22585 integers in the range -8 to +7 inclusive.
22586 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
22587 for moving a small integer into a register. Give this alternative
22588 LIW attributes.
22589 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
22590 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
22591 using the J,K,L and M constraints,
22592 (liw): Remove SI mode on second operands to allow for HI and QI
22593 mode values.
22594 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
22595 instruction.
22596
48feba28
RG
225972011-02-15 Richard Guenther <rguenther@suse.de>
22598
22599 PR tree-optimization/47743
22600 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
22601 for a non-type-compatible VN lookup bail out.
22602
ad1c1eeb
NF
226032011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22604
22605 * config/fr30/constraints.md: New file.
22606 * config/fr30/fr30.md: Include it.
22607 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
22608 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22609 (EXTRA_CONSTRAINT): Delete.
22610
49ac143d
NF
226112011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22612
22613 * config/frv/constraints.md: New file.
22614 * config/frv/predicates.md: Include it.
22615 * config/frv/frv.c (reg_class_from_letter): Delete.
22616 (frv_option_override): Don't initialize it.
22617 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
22618 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
22619 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
22620 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22621 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
22622 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22623 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
22624 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
22625 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
22626 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
22627 (REG_CLASS_FROM_CONSTRAINT): Delete.
22628
c95f9494
JJ
226292011-02-15 Jakub Jelinek <jakub@redhat.com>
22630
22631 PR middle-end/47581
22632 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
22633 if frame size is 0 in a leaf function.
22634
13aed611
RO
226352011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22636
22637 PR pch/14940
22638 * config/alpha/host-osf.c: New file.
22639 * config/alpha/x-osf: New file.
22640 * config.host (alpha*-dec-osf*): Use it.
22641
b09c3081
AS
226422011-02-14 Anatoly Sokolov <aesok@post.ru>
22643
22644 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22645 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
22646 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
22647 (rx_mode_dependent_address_p): ...this. Make static. Change argument
22648 type to const_rtx.
22649 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22650
d634083b
NF
226512011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22652
22653 * config/stormy16/constraints.md: New file.
22654 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
22655 Use satisfies_constraint_Q and satisfies_constraint_R.
22656 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
22657 Delete.
22658 (xstormy16_legitiamte_address_p): Declare.
22659 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
22660 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22661 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 22662 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
22663 Un-staticize.
22664 (xstormy16_extra_constraint_p): Delete.
22665
c7dd803e
EB
226662011-02-14 Eric Botcazou <ebotcazou@adacore.com>
22667
22668 PR tree-optimization/46494
22669 * loop-unroll.c (split_edge_and_insert): Adjust comment.
22670 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
22671 (pass_rtl_loop_done): Add TODO_verify_flow.
22672 * fwprop.c (pass_rtl_fwprop): Likewise.
22673 * modulo-sched.c (pass_sms): Likewise.
22674 * tree-ssa-dom.c (pass_dominator): Likewise.
22675 * tree-ssa-loop-ch.c (pass_ch): Likewise.
22676 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
22677 (pass_tree_loop_done): Likewise.
22678 * tree-ssa-pre.c (execute_pre): Likewise.
22679 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22680 * tree-ssa-sink.c (pass_sink_code): Likewise.
22681 * tree-vrp.c (pass_vrp): Likewise.
22682
c6150df6
NF
226832011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22684
c7dd803e
EB
22685 * config/v850/constraints.md: New file.
22686 * config/v850/v850.md: Include it.
22687 * config/v850/predicates.md (reg_or_0_operand): Use
22688 satisfies_constraint_G.
22689 (special_symbolref_operand): Use satisfies_constraint_K.
22690 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
22691 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
22692 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
22693 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22694 (EXTRA_CONSTRAINT): Delete.
22695 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
22696 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
22697 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 22698
30dd1ea3
AS
226992011-02-14 Anatoly Sokolov <aesok@post.ru>
22700
22701 PR target/47696
22702 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
22703 description.
22704
944f4bb3
NF
227052011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22706
22707 * config/mcore/constraints.md: New file.
22708 * config/mcore/mcore.md: Include it.
22709 * config/mcore/mcore.c (reg_class_from_letter): Delete.
22710 * config/mcore/mcore.h (reg_class_from_letter): Delete.
22711 (REG_CLASS_FROM_LETTER): Delete.
22712 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
22713 insn_const_int_ok_for_constraint.
22714 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
22715 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
22716 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22717 (EXTRA_CONSTRAINT): Delete.
22718
ad56a54c
RO
227192011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22720
22721 PR ada/41929
22722 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
22723 (IS_SIGHANDLER): Define.
22724 (sparc64_is_sighandler): New function, split off from
22725 sparc64_fallback_frame_state.
22726 (sparc_is_sighandler): New function, split off from
22727 sparc_fallback_frame_state.
22728 (sparc64_fallback_frame_state): Merge with ...
22729 (sparc_fallback_frame_state): ... this into ...
22730 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
22731 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
22732 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
22733 stack instead of hardcoded offsets.
ad56a54c 22734
fbf4bfd3 227352011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
22736
22737 PR target/45808
22738 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
22739
029c8f3e
RW
227402011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22741
22742 * configure: Regenerate.
22743
a016dc83
JM
227442011-02-12 Joseph Myers <joseph@codesourcery.com>
22745
22746 PR driver/45731
22747 * gcc.c (asm_options): Correct spec matching --target-help.
22748
8957a0ec
MJ
227492011-02-12 Martin Jambor <mjambor@suse.cz>
22750
22751 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
22752 to gimple call error.
22753
6ef828bc
MS
227542011-02-12 Mike Stump <mikestump@comcast.net>
22755
22756 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
22757 comments in backslash regions.
22758
a4015be5
MS
227592011-02-12 Mike Stump <mikestump@comcast.net>
22760 Jakub Jelinek <jakub@redhat.com>
22761 Iain Sandoe <iains@gcc.gnu.org>
22762
22763 PR target/47324
22764 * dwarf2out.c (output_cfa_loc): When required, apply the
22765 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
22766 (output_loc_sequence): Likewise.
22767 (output_loc_operands_raw): Likewise.
22768 (output_loc_sequence_raw): Likewise.
22769 (output_cfa_loc): Likewise.
22770 (output_loc_list): Suppress register number adjustment when
22771 calling output_loc_sequence()
22772 (output_die): Likewise.
22773
5378dda2
AS
227742011-02-12 Anatoly Sokolov <aesok@post.ru>
22775
22776 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
22777 Remove macros.
22778 * config/xtensa/xtensa.c (xtensa_register_move_cost,
22779 xtensa_memory_move_cost): New functions.
22780 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
22781
f3d533d3
AO
227822011-02-12 Alexandre Oliva <aoliva@redhat.com>
22783
22784 PR lto/47225
22785 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
22786 in the current directory.
22787 * configure: Rebuilt.
22788
9d53403c
IS
227892011-02-12 Iain Sandoe <iains@gcc.gnu.org>
22790
22791 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 22792 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
22793 correct indents of the preceding block.
22794
a350a6c8
IS
227952011-02-12 Iain Sandoe <iains@gcc.gnu.org>
22796
22797 * gcc.c (driver_handle_option): Concatenate the argument to -F with
22798 the switch.
22799
bab79a40
JM
228002011-02-11 Joseph Myers <joseph@codesourcery.com>
22801
22802 * common.opt (nostartfiles): New Driver option.
22803
1bbc6693
XDL
228042011-02-11 Xinliang David Li <davidxl@google.com>
22805
22806 PR tree-optimization/47707
22807 * tree-chrec.c (convert_affine_scev): Keep type precision.
22808
1da7d8c0
EB
228092011-02-11 Eric Botcazou <ebotcazou@adacore.com>
22810
22811 PR tree-optimization/47420
22812 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
22813
228142011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
22815
22816 PR rtl-optimization/47614
22817 * rtl.h (check_for_inc_dec): Declare.
22818 * dse.c (check_for_inc_dec): Externalize...
22819 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
22820 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
22821
4df47bca
JM
228222011-02-11 Joseph Myers <joseph@codesourcery.com>
22823
22824 PR driver/47678
22825 * gcc.c (main): Do not compile inputs if there were errors in
22826 option handling.
22827 * opts-common.c (read_cmdline_option): Check for wrong language
22828 after other error checks.
22829
61502ca8
NF
228302011-02-11 Nathan Froyd <froydnj@codesourcery.com>
22831
22832 * cgraph.c: Fix comment typos.
22833 * cgraph.h: Likewise.
22834 * cgraphunit.c: Likewise.
22835 * ipa-cp.c: Likewise.
22836 * ipa-inline.c: Likewise.
22837 * ipa-prop.c: Likewise.
22838 * ipa-pure-const.c: Likewise.
22839 * ipa-ref.c: Likewise.
22840 * ipa-reference.c: Likewise.
22841
b63f974e
JJ
228422011-02-11 Jakub Jelinek <jakub@redhat.com>
22843
d50c5e0c
JJ
22844 PR debug/47684
22845 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 22846
6dd2a13c
RO
228472011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22848
22849 PR testsuite/47400
22850 * doc/sourcebuild.texi (Require Support): Document
22851 dg-require-ascii-locale.
22852
4a087ccf
MX
228532011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
22854
22855 * doc/lto.texi (Write summary): Fix missing parentheses.
22856
a4403164
DD
228572011-02-10 DJ Delorie <dj@redhat.com>
22858
22859 * config/m32c/m32c.c (m32c_option_override): Disable
22860 -fcombine-stack-adjustments until flag value tracking and compare
22861 optimization can be rewritten.
22862
4fac45bd
PB
228632011-02-10 Peter Bergner <bergner@vnet.ibm.com>
22864
22865 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
22866 PROCESSOR_POWER7.
22867 (PROCESSOR_DEFAULT64): Likewise.
22868
72602cd1
RH
228692011-02-10 Richard Henderson <rth@redhat.com>
22870
22871 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
22872 change from 2011-02-03.
22873 * config/rx/rx.c (flags_from_code): Likewise.
22874 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
22875 is valid, n/pz otherwise.
22876 (rx_select_cc_mode): Return CCmode if Y is not zero.
22877
ea57f573
RG
228782011-02-10 Richard Guenther <rguenther@suse.de>
22879
ea4c3e65 22880 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 22881
92b1d23b
RG
228822011-02-10 Richard Guenther <rguenther@suse.de>
22883
22884 PR tree-optimization/47677
22885 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
22886
525a2d06
JJ
228872011-02-10 Jakub Jelinek <jakub@redhat.com>
22888
22889 PR target/47665
22890 * combine.c (make_compound_operation): Only change shifts into
22891 multiplication for SCALAR_INT_MODE_P.
22892
06c969bd
JZ
228932011-02-10 Jie Zhang <jie@codesourcery.com>
22894
22895 PR testsuite/47622
22896 Revert
22897 2011-02-05 Jie Zhang <jie@codesourcery.com>
22898 PR debug/42631
22899 * web.c (entry_register): Don't clobber the number of the
22900 first uninitialized reference in used[].
22901
282ec48e
RG
229022011-02-09 Richard Guenther <rguenther@suse.de>
22903
22904 PR tree-optimization/47664
22905 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
22906 all edges again.
22907
df98c3e8
DE
229082011-02-09 David Edelsohn <dje.gcc@gmail.com>
22909
d0f21cd6
DE
22910 PR target/46481
22911 PR target/47032
df98c3e8
DE
22912 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
22913 PROCESSOR_POWER7.
22914 (PROCESSOR_DEFAULT64): Same.
22915 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
22916
67b6839f
RO
229172011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22918
22919 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
22920
4fd73214
MJ
229212011-02-09 Martin Jambor <mjambor@suse.cz>
22922
22923 PR middle-end/45505
22924 * tree-sra.c (struct access): New flags grp_scalar_read and
22925 grp_scalar_write. Changed description of assignment read and write
22926 flags.
22927 (dump_access): Dump new flags, reorder all of them.
22928 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
22929 to detect multiple scalar reads.
22930 (analyze_access_subtree): Use the new scalar read write flags instead
22931 of the old flags. Adjusted comments.
22932
91140cd3
DD
229332011-02-08 DJ Delorie <dj@redhat.com>
22934
22935 PR target/47548
22936 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
22937 patterns.
22938
4254bbfe
JM
229392011-02-08 Joseph Myers <joseph@codesourcery.com>
22940
22941 * config/m68k/uclinux.opt: New.
22942 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
22943
f1fda84e
JM
229442011-02-08 Joseph Myers <joseph@codesourcery.com>
22945
22946 * config/cris/elf.opt (sim): New Driver option.
22947
4933ae74
JM
229482011-02-08 Joseph Myers <joseph@codesourcery.com>
22949
22950 * config/xtensa/elf.opt: New.
22951 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
22952
4ad70280
JM
229532011-02-08 Joseph Myers <joseph@codesourcery.com>
22954
22955 * config/vax/elf.opt: New.
22956 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
22957
20893707
JM
229582011-02-08 Joseph Myers <joseph@codesourcery.com>
22959
22960 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
22961
b8e7038e
JM
229622011-02-08 Joseph Myers <joseph@codesourcery.com>
22963
22964 * config/gnu-user.opt: New.
22965 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
22966 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
22967 *-*-uclinux*): Use gnu-user.opt.
22968
e1c5225a
TS
229692011-02-08 Thomas Schwinge <thomas@schwinge.name>
22970
22971 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
22972 * config/i386/gnu.h (CPP_SPEC): Likewise.
22973
5e46b0c6
ILT
229742011-02-08 Ian Lance Taylor <iant@google.com>
22975
22976 * common.opt (fcx-limited-range): Add SetByCombined flag.
22977 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
22978 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
22979 (fassociative-math, freciprocal-math): Likewise.
22980 (funsafe-math-optimizations): Likewise.
22981 * opth-gen.awk: Handle SetByCombined.
22982 * optc-gen.awk: Likewise.
ea4c3e65 22983 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
22984 (set_unsafe_math_optimizations_flags): Likewise.
22985 * doc/options.texi (Option properties): Document SetByCombined.
22986
32243d46
JM
229872011-02-08 Joseph Myers <joseph@codesourcery.com>
22988
22989 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
22990 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
22991 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
22992 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
22993 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
22994
479c1fb3
SP
229952011-02-08 Sebastian Pop <sebastian.pop@amd.com>
22996
22997 PR tree-optimization/46834
22998 PR tree-optimization/46994
22999 PR tree-optimization/46995
23000 * graphite-sese-to-poly.c (used_outside_reduction): New.
23001 (detect_commutative_reduction): Call used_outside_reduction.
23002 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
23003 translate_scalar_reduction_to_array only when at least one
23004 loop-phi/close-phi tuple has been detected.
23005
3865a06f
RG
230062011-02-08 Richard Guenther <rguenther@suse.de>
23007
23008 PR middle-end/47639
23009 * tree-vect-generic.c (expand_vector_operations_1): Update
23010 stmts here ...
23011 (expand_vector_operations): ... not here. Cleanup EH info
23012 and the CFG if required.
23013
62902f3f
RG
230142011-02-08 Richard Guenther <rguenther@suse.de>
23015
23016 PR tree-optimization/47641
23017 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
23018 require type compatibility.
23019
0efb9d64
AK
230202011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23021
23022 * gimple-low.c (lower_function_body): Don't remove the location of
23023 the return statement here.
23024 (lower_gimple_return): Do it here instead but only if the return
23025 statement is actually used twice.
23026
034b8ae4
RG
230272011-02-08 Richard Guenther <rguenther@suse.de>
23028
23029 PR tree-optimization/47632
23030 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
23031 unused up_to_stmt parameter, return whether cfg-cleanup is
23032 necessary, remove EH info properly.
23033 (forward_propagate_into_gimple_cond): Adjust caller.
23034 (forward_propagate_into_cond): Likewise.
23035 (forward_propagate_comparison): Likewise.
23036 (tree_ssa_forward_propagate_single_use_vars): Make
23037 forward_propagate_comparison case similar to the two others.
23038
298362c8
NC
230392011-02-08 Nick Clifton <nickc@redhat.com>
23040
23041 * config/mn10300/mn10300.opt (mliw): New command line option.
23042 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
23043 (liw_bundling): New automaton.
23044 (liw): New attribute.
23045 (liw_op): New attribute.
23046 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
23047 (movsi_internal): Add LIW attributes.
23048 (andsi3): Likewise.
23049 (iorsi3): Likewise.
23050 (xorsi3): Likewise.
23051 (addsi3): Separate register and immediate alternatives.
23052 Add LIW attributes.
23053 (subsi3): Likewise.
23054 (cmpsi): Likewise.
23055 (aslsi3): Likewise.
23056 (lshrsi3): Likewise.
23057 (ashrsi3): Likewise.
23058 (liw): New pattern.
23059 * config/mn10300/mn10300.c (liw_op_names): New
23060 (mn10300_print_operand): Handle 'W' operand descriptor.
23061 (extract_bundle): New function.
23062 (check_liw_constraints): New function.
23063 (liw_candidate): New function.
23064 (mn10300_bundle_liw): New function.
23065 (mn10300_reorg): New function.
23066 (TARGET_MACHINE_DEPENDENT_REORG): Define.
23067 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
23068 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
23069 __LIW__ or __NO_LIW__.
23070 * doc/invoke.texi: Describe the -mliw command line option.
23071
90488014
JDA
230722011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23073
23074 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
23075 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23076 pthread_mutex_unlock): Remove.
23077 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
23078 * config/pa/t-pa64: Likewise.
23079 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
23080 shared libc if not linking against libpthread.
23081 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23082
689ff841
IS
230832011-02-07 Iain Sandoe <iains@gcc.gnu.org>
23084
23085 PR target/47558
23086 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
23087 on 10.6 and later to ensure that we always use the unwinder from
23088 the system. Only add -no_compact_unwind when tarteting darwin
23089 10.6 or later.
23090
821014aa
SE
230912011-02-07 Steve Ellcey <sje@cup.hp.com>
23092
23093 PR target/46997
23094 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
23095 (vec_interleave_lowv2sf): Ditto.
23096 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
23097 (vec_extract_oddv2sf): Ditto.
23098
41cf94fb
MS
230992011-02-07 Mike Stump <mikestump@comcast.net>
23100
62dea57d 23101 PR target/42333
41cf94fb
MS
23102 Add __ieee_divdc3 entry point.
23103 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
23104 entry point.
23105 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
23106 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
23107 * config/darwin.c (darwin_rename_builtins): Add.
23108 * config/darwin-protos.h (darwin_rename_builtins): Add.
23109
ee09a3dd
MM
231102011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
23111
23112 PR target/47636
23113 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
23114 for the condition.
23115
83296cd0
MS
231162011-02-07 Mike Stump <mikestump@comcast.net>
23117
ea4c3e65 23118 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 23119
0f4e946f
DC
231202011-02-07 Denis Chertykov <chertykov@gmail.com>
23121
23122 PR target/47534
23123 * config/avr/libgcc.S (exit): Move .endfunc
23124
1ec87690
RG
231252011-02-07 Richard Guenther <rguenther@suse.de>
23126
23127 PR tree-optimization/47615
23128 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
23129 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
23130 (run_scc_vn): Initialize it.
23131 (visit_reference_op_load): Use it.
23132 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
23133
b46ae6da
UW
231342011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23135
23136 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
23137 DImode trapping arithmetic libfuncs.
23138
c0aae19c
RG
231392011-02-07 Richard Guenther <rguenther@suse.de>
23140
23141 PR tree-optimization/47621
23142 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
23143 two duplicates ...
23144 (execute_update_addresses_taken): ... here. Make it more
23145 conservative in what we accept.
23146
295d926b
JM
231472011-02-06 Joseph Myers <joseph@codesourcery.com>
23148
23149 * config/sparc/freebsd.h (ASM_SPEC): Define.
23150 * config/sparc/vxworks.h (ASM_SPEC): Define.
23151
bdeb2471
JM
231522011-02-06 Joseph Myers <joseph@codesourcery.com>
23153
23154 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
23155
d5d3781a
SB
231562011-02-06 Steven Bosscher <steven@gcc.gnu.org>
23157
23158 * doc/invoke.texi: Remove reference to compiler internals from
23159 user documentation.
23160
23161 * reg-notes.def: Remove REG_VALUE_PROFILE.
23162 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
23163
c42c09fc
JJ
231642011-02-05 Jakub Jelinek <jakub@redhat.com>
23165
23166 PR middle-end/47610
23167 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 23168 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 23169
beea2755
JZ
231702011-02-05 Jie Zhang <jie@codesourcery.com>
23171
23172 PR debug/42631
23173 * web.c (entry_register): Don't clobber the number of the
23174 first uninitialized reference in used[].
23175
a130584a
SP
231762011-02-04 Sebastian Pop <sebastian.pop@amd.com>
23177
23178 PR tree-optimization/46194
23179 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
23180 (build_classic_dist_vector_1): Do not represent classic distance
23181 vectors when the access functions are variating in different loops.
23182
962101ac
JM
231832011-02-04 Joseph Myers <joseph@codesourcery.com>
23184
23185 * config/mips/iris6.opt: New.
23186 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
23187
55eaaa5b
RH
231882011-02-04 Richard Henderson <rth@redhat.com>
23189 Steve Ellcey <sje@cup.hp.com>
23190
23191 PR target/46997
23192 * config/ia64/predicates.md (mux1_brcst_element): New.
23193 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
23194 * config/ia64/ia64.c (ia64_unpack_assemble): New.
23195 (ia64_unpack_sign): New.
23196 (ia64_expand_unpack): Rewrite using new routines.
23197 (ia64_expand_widen_sum): Ditto.
23198 (ia64_expand_dot_prod_v8qi): Ditto.
23199 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
23200 routines, add endian check.
23201 (pmpy2_even): Rename from pmpy2_r, add endian check.
23202 (pmpy2_odd): Rename from pmpy2_l, add endian check.
23203 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
23204 (vec_widen_smult_hi_v4hi): Ditto.
23205 (vec_widen_umult_lo_v4hi): Ditto.
23206 (vec_widen_umult_hi_v4hi): Ditto.
23207 (mulv2si3): Change endian checks.
23208 (sdot_prodv4hi): Rewrite with new calls.
23209 (udot_prodv4hi): New.
23210 (vec_pack_ssat_v4hi): Add endian check.
23211 (vec_pack_usat_v4hi): Ditto.
23212 (vec_pack_ssat_v2si): Ditto.
23213 (max1_even): Rename from max1_r, add endian check.
23214 (max1_odd): Rename from max1_l, add endian check.
23215 (*mux1_rev): Format change.
23216 (*mux1_mix): Ditto.
23217 (*mux1_shuf): Ditto.
23218 (*mux1_alt): Ditto.
23219 (*mux1_brcst_v8qi): Use new predicate.
23220 (vec_extract_evenv8qi): Remove endian check.
23221 (vec_extract_oddv8qi): Ditto.
23222 (vec_interleave_lowv4hi): Format change.
23223 (vec_interleave_highv4hi): Ditto.
23224 (mix2_even): Rename from mix2_r, add endian check.
23225 (mix2_odd): Rename from mux2_l, add endian check.
23226 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
23227 (vec_extract_evenodd_helper): Format change.
23228 (vec_extract_evenv4hi): Remove endian check.
23229 (vec_extract_oddv4hi): Remove endian check.
23230 (vec_interleave_lowv2si): Format change.
23231 (vec_interleave_highv2si): Format change.
23232 (vec_initv2si): Remove endian check.
23233 (vecinit_v2si): Add endian check.
23234 (reduc_splus_v2sf): Add endian check.
23235 (reduc_smax_v2sf): Ditto.
23236 (reduc_smin_v2sf): Ditto.
23237 (vec_initv2sf): Remove endian check.
23238 (fpack): Add endian check.
23239 (fswap): Add endian check.
23240 (vec_interleave_highv2sf): Add endian check.
23241 (vec_interleave_lowv2sf): Add endian check.
23242 (fmix_lr): Add endian check.
23243 (vec_setv2sf): Format change.
23244 (*vec_extractv2sf_0_be): Use shift to extract operand.
23245 (*vec_extractv2sf_1_be): New.
23246 (vec_pack_trunc_v4hi): Add endian check.
23247 (vec_pack_trunc_v2si): Format change.
23248
dcde5957
JJ
232492011-02-04 Jakub Jelinek <jakub@redhat.com>
23250
23251 PR inline-asm/23200
23252 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 23253 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
23254 (stmt_is_replaceable_p): New function.
23255 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
23256 callers.
23257 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
23258 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
23259 SSA_NAME_DEF_STMT.
23260 * tree-flow.h (stmt_is_replaceable_p): New prototype.
23261
a64a8e5a
JM
232622011-02-04 Joseph Myers <joseph@codesourcery.com>
23263
23264 * config/rs6000/xilinx.opt: New.
23265 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
23266
4da2ed2f
JM
232672011-02-04 Joseph Myers <joseph@codesourcery.com>
23268
23269 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
23270
a6e508f9
AS
232712011-02-03 Anatoly Sokolov <aesok@post.ru>
23272
23273 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
23274 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23275 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
23276 secondary_reload_info, xtensa_secondary_reload): Remove.
23277 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
23278 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23279 (xtensa_preferred_reload_class): Make static. Change return and
23280 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
23281 Use CONST_DOUBLE_P predicate.
23282 (xtensa_preferred_output_reload_class): New function.
23283 (xtensa_secondary_reload): Make static.
23284
82dc0de3
JM
232852011-02-03 Joseph Myers <joseph@codesourcery.com>
23286
23287 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
23288 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
23289 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
23290
7fece979
JJ
232912011-02-03 Jakub Jelinek <jakub@redhat.com>
23292
23293 PR middle-end/31490
23294 * output.h (SECTION_RELRO): Define.
23295 (SECTION_MACH_DEP): Adjust.
23296 (get_variable_section): New prototype.
23297 * varpool.c (varpool_finalize_named_section_flags): New function.
23298 (varpool_assemble_pending_decls): Call it.
23299 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
23300 * cgraphunit.c (cgraph_output_in_order): Call
23301 varpool_finalize_named_section_flags.
23302 * varasm.c (get_section): Allow section flags conflicts between
23303 relro and read-only sections if the section hasn't been declared yet.
23304 Set SECTION_OVERRIDE after diagnosing section type conflict.
23305 (get_variable_section): No longer static.
23306 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
23307 readonly sections that need relocations.
23308 (decl_readonly_section_1): New function.
23309 (decl_readonly_section): Use it.
23310
23311 Revert:
509d65dd 23312 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
23313 Steve Ellcey <sje@cup.hp.com>
23314
23315 PR middle-end/31490
23316 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
23317 if section attribute used.
23318
d18d5478
JJ
233192011-02-03 Jakub Jelinek <jakub@redhat.com>
23320
23321 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
23322 * config/darwin.c (SECTION_NO_ANCHOR): Define.
23323 (darwin_init_sections): Remove assertion.
23324
6479ed4b
NC
233252011-02-03 Nick Clifton <nickc@redhat.com>
23326
23327 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
23328 lt and ge.
38be4072 23329 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
23330 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
23331 instead of "n" and "pz".
23332 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
23333 CC_FLAG_S.
23334
89843f5d
JJ
233352011-02-03 Jakub Jelinek <jakub@redhat.com>
23336
65450d64
JJ
23337 PR target/47312
23338 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
23339 fma, expand FMA_EXPR as fma{,f,l} call.
23340
7d58701c
JJ
23341 PR lto/47274
23342 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
23343 copy them into a unsigned char variable and pass address of it to
23344 lto_output_data_stream.
23345
89843f5d
JJ
23346 PR target/47564
23347 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
23348 around backend_init_target and lang_dependent_init_target calls.
23349 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
23350 (verify_cgraph_node): Don't call set_cfun here. Use
23351 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
23352 Set error_found for incorrectly represented calls to thunks.
23353
4deef538
AO
233542011-02-03 Alexandre Oliva <aoliva@redhat.com>
23355
23356 PR debug/43092
23357 PR rtl-optimization/43494
23358 * rtl.h (for_each_inc_dec_fn): New type.
23359 (for_each_inc_dec): Declare.
23360 * rtlanal.c (struct for_each_inc_dec_ops): New type.
23361 (for_each_inc_dec_find_inc_dec): New fn.
23362 (for_each_inc_dec_find_mem): New fn.
23363 (for_each_inc_dec): New fn.
23364 * dse.c (struct insn_size): Remove.
23365 (replace_inc_dec, replace_inc_dec_mem): Remove.
23366 (emit_inc_dec_insn_before): New fn.
23367 (check_for_inc_dec): Use it, along with for_each_inc_dec.
23368 (canon_address): Pass mem modes to cselib_lookup.
23369 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
23370 (cselib_lookup_from_insn): Likewise.
23371 (cselib_subst_to_values): Likewise.
23372 * cselib.c (find_slot_memmode): New var.
23373 (cselib_find_slot): New fn. Use it instead of
23374 htab_find_slot_with_hash everywhere.
23375 (entry_and_rtx_equal_p): Use find_slot_memmode.
23376 (autoinc_split): New fn.
23377 (rtx_equal_for_cselib_p): Rename and implement in terms of...
23378 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
23379 Deal with autoinc. Special-case recursion into MEMs.
23380 (cselib_hash_rtx): Likewise.
23381 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
23382 address and MEM modes.
23383 (cselib_subst_to_values): Add memmode, pass it on.
23384 Deal with autoinc.
23385 (cselib_lookup): Add memmode argument, pass it on.
23386 (cselib_lookup_from_insn): Add memmode.
23387 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
23388 (struct cselib_record_autoinc_data): New.
23389 (cselib_record_autoinc_cb): New fn.
23390 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
23391 mode to cselib_lookup. Reset autoinced REGs here instead of...
23392 (cselib_process_insn): ... here.
23393 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
23394 to cselib_lookup.
23395 (add_uses): Likewise, also to cselib_subst_to_values.
23396 (add_stores): Likewise.
276e0224 23397 * sched-deps.c (add_insn_mem_dependence): Pass mode to
4deef538
AO
23398 cselib_subst_to_values.
23399 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
23400 * gcse.c (do_local_cprop): Adjusted.
23401 * postreload.c (reload_cse_simplify_set): Adjusted.
23402 (reload_cse_simplify_operands): Adjusted.
23403 * sel-sched-dump (debug_mem_addr_value): Pass mode.
23404
1551d44a
AO
234052011-02-03 Alexandre Oliva <aoliva@redhat.com>
23406
23407 PR tree-optimization/45122
23408 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
23409 unsafe assumptions when there's more than one loop exit.
23410
c9485473
MM
234112011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23412
23413 PR target/47272
23414 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23415 Document using vector double with the load/store builtins, and
23416 that the load/store builtins always use Altivec instructions.
23417
23418 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
23419 to use altivec memory instructions, even on VSX.
23420 (vector_altivec_store_<mode>): Ditto.
23421
23422 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
23423 function.
23424
23425 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23426 V2DF, V2DI support to load/store overloaded builtins.
23427
23428 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
23429 altivec load/store builtins for V2DF/V2DI types.
23430
23431 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23432 set avoid indexed addresses on power6 if -maltivec.
23433 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
23434 vector_altivec_load/vector_altivec_store builtins.
23435 (altivec_expand_st_builtin): Ditto.
23436 (altivec_expand_builtin): Add VSX memory builtins.
23437 (rs6000_init_builtins): Add V2DI types to internal types.
23438 (altivec_init_builtins): Add support for V2DF/V2DI altivec
23439 load/store builtins.
23440 (rs6000_address_for_altivec): Insure memory address is appropriate
23441 for Altivec.
23442
23443 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
23444 vec_vsx_ld and vec_vsx_st.
23445 (vsx_store_<mode>): Ditto.
23446
23447 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
23448 variables to hold long long types for VSX vector memory builtins.
23449 (RS6000_BTI_unsigned_long_long): Ditto.
23450 (long_long_integer_type_internal_node): Ditti.
23451 (long_long_unsigned_type_internal_node): Ditti.
23452
23453 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
23454 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
23455 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
23456
23457 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
23458 short cuts.
23459 (vec_vsx_st): Ditto.
23460
b24d1acf
JM
234612011-02-02 Joseph Myers <joseph@codesourcery.com>
23462
23463 * config/pa/pa-hpux10.opt: New.
23464 * config/hpux11.opt (pthread): New Driver option.
23465 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
23466 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
23467
aa18dd0f
JM
234682011-02-02 Joseph Myers <joseph@codesourcery.com>
23469
23470 * config/ia64/vms.opt: New.
23471 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
23472
28fc3eee
MM
234732011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23474
23475 PR target/47580
23476 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
23477 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
23478 generator functions.
23479 (vsx_floatuns<VSi><mode>2): Ditto.
23480 (vsx_fix_trunc<mode><VSi>2): Ditto.
23481 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
23482
b5838b1f
JM
234832011-02-02 Joseph Myers <joseph@codesourcery.com>
23484
23485 * config/i386/djgpp.opt (posix): New Driver option.
23486
0db8fa89
GP
234872011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
23488
23489 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
23490 Move to the unsupported targets list.
23491
9cd4f22a
PB
234922011-02-02 Peter Bergner <bergner@vnet.ibm.com>
23493
23494 PR rtl-optimization/47525
23495 * df-scan.c: Update copyright years.
23496 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
23497 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
23498
9ed8059c
RO
234992011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23500
23501 * config/i386/sysv4.h (TARGET_VERSION): Remove.
23502 (SUBTARGET_RETURN_IN_MEMORY): Remove.
23503 (ASM_OUTPUT_ASCII): Remove.
23504 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
23505
2a737389
JL
235062011-02-02 Jeff Law <law@redhat.com>
23507
23508 PR middle-end/47543
23509 * reload.c (find_reloads_address): Handle reg+d address where both
23510 components are invalid by reloading the entire address.
23511
9dac82c4
SP
235122011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23513 Richard Guenther <rguenther@suse.de>
23514
23515 PR tree-optimization/40979
23516 PR bootstrap/47044
23517 * passes.c (init_optimization_passes): After LIM call copy_prop
23518 and DCE to clean up.
23519 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
23520
14dd9aab
SP
235212011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23522
23523 PR tree-optimization/47576
23524 PR tree-optimization/47555
23525 * doc/invoke.texi (scev-max-expr-complexity): Documented.
23526 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23527 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
23528 * tree-scalar-evolution.c (follow_ssa_edge): Use
23529 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
23530
5cbf5c20
RG
235312011-02-02 Richard Guenther <rguenther@suse.de>
23532
23533 PR tree-optimization/47566
23534 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
23535
83d70792
AO
235362011-02-02 Alexandre Oliva <aoliva@redhat.com>
23537
e829c321
AO
23538 PR debug/47106
23539 PR debug/47402
23540 * tree-inline.c (declare_return_variable): Remove unused caller
23541 variable.
23542
83d70792
AO
23543 PR debug/47106
23544 PR debug/47402
23545 * tree-flow-inline.h (clear_is_used, is_used_p): New.
23546 * cfgexpand.c (account_used_vars_for_block): Use them.
23547 * tree-nrv.c (tree_nrv): Likewise.
23548 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
23549 (dump_scope_block): Likewise.
23550 (remove_unused_locals): Likewise.
23551
aaa2ac93
AO
23552 PR debug/47106
23553 PR debug/47402
23554 * tree-inline.c (declare_return_variable): Add result decl to
23555 local decls only once.
23556 * gimple-low.c (record_vars_into): Mark newly-created variables
23557 as referenced.
23558
a59d15cf
AO
235592011-02-02 Alexandre Oliva <aoliva@redhat.com>
23560
23561 PR debug/47498
23562 PR debug/47501
23563 PR debug/45136
23564 PR debug/45130
23565 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23566 debug insns.
23567 (no_real_insns_p, schedule_block, set_priorities): Drop special
23568 treatment of boundary debug insns.
38be4072 23569 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
23570 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
23571 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23572 (BOUNDARY_DEBUG_INSN_P): Likewise.
23573 (SCHEDULE_DEBUG_INSN_P): Likewise.
23574 * sched-rgn.c (init_ready_list): Drop special treatment of
23575 boundary debug insns.
23576 * final.c (rest_of_clean_state): Clear notes' BB.
23577
6fc2f091
JM
235782011-02-01 Joseph Myers <joseph@codesourcery.com>
23579
23580 * config/openbsd.opt (assert=): New Driver option.
23581
fc523387
JM
235822011-02-01 Joseph Myers <joseph@codesourcery.com>
23583
23584 * config/i386/nto.opt: New.
23585 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
23586
6d9821e5
JM
235872011-02-01 Joseph Myers <joseph@codesourcery.com>
23588
23589 * config/i386/netware.opt: New.
23590 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
23591
cef932d4
JM
235922011-02-01 Joseph Myers <joseph@codesourcery.com>
23593
23594 * config/interix.opt (posix): New Driver option.
23595
22843acd
DD
235962011-02-01 DJ Delorie <dj@redhat.com>
23597
56490b74
DD
23598 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
23599
22843acd
DD
23600 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
23601 class for A0/A1.
23602
199c8f2f
SP
236032011-02-01 Sebastian Pop <sebastian.pop@amd.com>
23604
23605 PR tree-optimization/47561
23606 * toplev.c (process_options): Print the Graphite flags. Add
23607 flag_loop_flatten to the list of options requiring Graphite.
23608
926bcf22
JM
236092011-02-01 Joseph Myers <joseph@codesourcery.com>
23610
23611 * config/i386/cygming.opt (posix): New Driver option.
23612
59793c51
JM
236132011-02-01 Joseph Myers <joseph@codesourcery.com>
23614
23615 * config/arm/vxworks.opt: New.
23616 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
23617
183c38a4
JM
236182011-02-01 Joseph Myers <joseph@codesourcery.com>
23619
23620 * config/alpha/elf.opt: New.
23621 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
23622 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
23623
9939e416
RG
236242011-02-01 Richard Guenther <rguenther@suse.de>
23625
23626 PR tree-optimization/47559
23627 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
23628 store-motion on references that can throw.
23629
4a3c9687
BS
236302011-02-01 Bernd Schmidt <bernds@codesourcery.com>
23631
23632 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
23633 * tree-pass.h (TDF_CSELIB): New macro.
23634 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
23635 cselib_lookup): Check for it rather than for TDF_DETAILS.
23636
dd3b31fb
L
236372011-02-01 H.J. Lu <hongjiu.lu@intel.com>
23638
23639 PR driver/47547
23640 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
23641 is HOST_BIT_BUCKET.
23642
23643 * opts.c (finish_options): Don't add x_aux_base_name if it is
23644 HOST_BIT_BUCKET.
23645
34c1de79
RG
236462011-02-01 Richard Guenther <rguenther@suse.de>
23647
23648 PR tree-optimization/47555
23649 Revert
23650 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
23651
23652 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23653
dd2804d2
SB
236542011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
23655
23656 PR gcc/46692
23657 * config/lm32/t-lm32: Add multilib for all CPU options.
23658
3fd3b156
RG
236592011-02-01 Richard Guenther <rguenther@suse.de>
23660
23661 PR tree-optimization/47541
23662 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
23663 sure to have a field at offset zero.
23664
f16072b6
JM
236652011-01-31 Joseph Myers <joseph@codesourcery.com>
23666
23667 * config/arc/arc.opt (EB, EL): New Driver options.
23668
6456cf2e
JM
236692011-01-31 Joseph Myers <joseph@codesourcery.com>
23670
23671 * config/alpha/osf5.opt: New.
23672 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
23673
cdde6ab4
JM
236742011-01-31 Joseph Myers <joseph@codesourcery.com>
23675
23676 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
23677
7633415c
SP
236782011-01-31 Sebastian Pop <sebastian.pop@amd.com>
23679
23680 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
23681 -floop-interchange.
23682 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
23683 is an alias of -floop-interchange and that it requires the
23684 Graphite infrastructure.
23685 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
23686 flag_loop_interchange based on the value of flag_tree_loop_linear.
23687
0425d6f5
JJ
236882011-01-31 Jakub Jelinek <jakub@redhat.com>
23689 Richard Guenther <rguenther@suse.de>
23690
23691 PR tree-optimization/47538
23692 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
23693 type instead of r1type, except for comparisons. For right
23694 shifts and comparisons punt if there are mismatches in
23695 sizetype vs. non-sizetype types.
23696
500b16c3
RO
236972011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23698
23699 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23700 avx_runtime.
23701
e279edb0
RO
237022011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23703
23704 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
23705 version number.
23706 * configure: Regenerate.
23707
c6092243
RO
237082011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23709
23710 * configure.ac (gcc_cv_ld_static_option): Define.
23711 (gcc_cv_ld_dynamic_option): Define.
23712 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
23713 instead.
23714 (HAVE_LD_STATIC_DYNAMIC): Update message.
23715 (LD_STATIC_OPTION): Define.
23716 (LD_DYNAMIC_OPTION): Define.
23717 * configure: Regenerate.
23718 * config.in: Regenerate.
23719 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
23720 HAVE_LD_STATIC_DYNAMIC]: Use them.
23721
d7862be3
NC
237222011-01-31 Nick Clifton <nickc@redhat.com>
23723
23724 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
23725 registers inside interrupt handlers if the handler is not a leaf
23726 function.
23727
ba4ec0e0
NC
237282011-01-31 Nick Clifton <nickc@redhat.com>
23729
23730 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
23731 reg_renumber returning an INVALID_REGNUM.
23732
29a63921
AO
237332011-01-31 Alexandre Oliva <aoliva@redhat.com>
23734
23735 PR libgcj/44341
23736 * doc/install.texi: Document host options discarded when cross
23737 configuring target libraries.
23738
ef591d3f
AO
237392011-01-31 Alexandre Oliva <aoliva@redhat.com>
23740
23741 Reverted:
23742 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
23743 PR debug/45136
23744 PR debug/45130
23745 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23746 debug insns.
23747 (no_real_insns_p, schedule_block, set_priorities): Drop special
23748 treatment of boundary debug insns.
38be4072 23749 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
23750 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
23751 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23752 (BOUNDARY_DEBUG_INSN_P): Likewise.
23753 (SCHEDULE_DEBUG_INSN_P): Likewise.
23754 * sched-rgn.c (init_ready_list): Drop special treatment of
23755 boundary debug insns.
23756 * final.c (rest_of_clean-state): Clear notes' BB.
23757
61052244
AM
237582011-01-31 Alan Modra <amodra@gmail.com>
23759
23760 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
23761 toc relative expressions as we do in print_operand_address.
23762
c4c8962b
KH
237632011-01-30 Kazu Hirata <kazu@codesourcery.com>
23764
23765 * doc/extend.texi: Follow spelling conventions.
23766 * doc/invoke.texi: Fix a typo.
23767
e543b94c
JM
237682011-01-30 Joseph Myers <joseph@codesourcery.com>
23769
23770 * config/hpux11.opt: New.
23771 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
23772 ia64*-*-hpux*): Use hpux11.opt.
23773
509d65dd 237742011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
23775
23776 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
23777 to tmake_file.
23778
7be03a0e
GP
237792011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
23780
23781 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
23782 support sites.
23783
419d1d37
GP
237842011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
23785
b596ed64
GP
23786 * doc/install.texi (Binaries): Remove outdated reference for
23787 Motorola 68HC11/68HC12 downloads.
23788
237892011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 23790
419d1d37
GP
23791 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
23792 Drepper's paper.
23793
4406d0e9
JW
237942011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
23795
23796 PR bootstrap/47147
23797 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
23798 used by NetBSD.
23799
38be4072 238002011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
23801
23802 * value-prof.c (check_counter): Corrected error message.
23803
0cd98787
JZ
238042011-01-29 Jie Zhang <jie@codesourcery.com>
23805
23806 * config/arm/arm.c (arm_legitimize_reload_address): New.
23807 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
23808 arm_legitimize_reload_address.
38be4072 23809 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 23810
9b798ac5
ILT
238112011-01-28 Ian Lance Taylor <iant@google.com>
23812
23813 * godump.c (go_define): Ignore macros whose definitions include
23814 two adjacent operands.
23815
591e29d9
JJ
238162011-01-28 Jakub Jelinek <jakub@redhat.com>
23817
23818 PR target/42894
23819 * varasm.c (force_const_mem): Store copy of x in desc->constant
23820 instead of x itself.
23821 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
23822 itself into REG_EQUAL note.
23823
62dcc44a
JM
238242011-01-28 Joseph Myers <joseph@codesourcery.com>
23825
23826 * config/freebsd.opt (posix, rdynamic): New Driver options.
23827
c9f58b9a
RO
238282011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23829
23830 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
23831 -Bstatic/-Bdynamic.
23832 * configure: Regenerate.
23833
5f02b9db
JM
238342011-01-27 Joseph Myers <joseph@codesourcery.com>
23835
23836 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
23837 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
23838
5df97412
AS
238392011-01-27 Anatoly Sokolov <aesok@post.ru>
23840
23841 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
23842 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
23843 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23844 (s390_preferred_reload_class): Make static. Change return and
23845 'rclass' argument type to reg_class_t.
23846
779d4b91
JH
238472011-01-27 Jan Hubicka <jh@suse.cz>
23848
23849 PR middle-end/46949
23850 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
23851 (process_function_and_variable_attributes): Check defined weakrefs.
23852
e80b21ed
MJ
238532011-01-27 Martin Jambor <mjambor@suse.cz>
23854
23855 PR tree-optimization/47228
23856 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
23857 build_ref_for_offset.
23858
6dcc4f31
UW
238592011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23860
23861 * config/spu/spu-elf.h (ASM_SPEC): Remove.
23862
509d65dd 238632011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
23864
23865 PR rtl-optimization/46856
23866 * postreload.c (reload_combine_recognize_const_pattern): Do not
23867 separate cc0 setter and user on cc0 targets.
23868
04af8788
NP
238692011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
23870
23871 PR c/43082
23872 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
23873 passed a VOID_TYPE expression, immediately emit an error and
23874 return error_mark_node.
23875
f7a60085
JL
238762011-01-26 Jeff Law <law@redhat.com>
23877
23878 PR rtl-optimization/47464
23879 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
23880 rather than may_trap_p as needed.
23881
5c2917ec
DD
238822011-01-26 DJ Delorie <dj@redhat.com>
23883
23884 PR rtl-optimization/46878
23885 * combine.c (insn_a_feeds_b): Check for the implicit cc0
23886 setter/user dependency as well.
23887
bef16e87
EB
238882011-01-26 Eric Botcazou <ebotcazou@adacore.com>
23889
23890 PR rtl-optimization/44469
23891 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
23892 after removing trivially dead basic blocks.
23893
c75d884b
JM
238942011-01-26 Joseph Myers <joseph@codesourcery.com>
23895
23896 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
23897 * config/frv/frv.h (LINK_SPEC): Likewise.
23898 * config/i386/netware.h (LINK_SPEC): Likewise.
23899 * config/m68k/linux.h (ASM_SPEC): Likewise.
23900 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
23901 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23902 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23903 * config/sparc/linux.h (ASM_SPEC): Likewise.
23904 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23905 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23906
d3153553
JM
239072011-01-26 Joseph Myers <joseph@codesourcery.com>
23908
23909 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
23910 * config/frv/frv.h (ASM_SPEC): Likewise.
23911 * config/m68k/linux.h (ASM_SPEC): Likewise.
23912 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23913 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
23914 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23915 * config/sparc/linux.h (ASM_SPEC): Likewise.
23916 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23917 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23918
b89b1e9d
JM
239192011-01-26 Joseph Myers <joseph@codesourcery.com>
23920
23921 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
23922 * config/frv/frv.h (LINK_SPEC): Likewise.
23923 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23924
12eb1a9c
JM
239252011-01-26 Joseph Myers <joseph@codesourcery.com>
23926
23927 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
23928 * config/frv/frv.h (ASM_SPEC): Likewise.
23929 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
23930 * config/m68k/linux.h (ASM_SPEC): Likewise.
23931 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23932 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23933 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23934 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
23935 * config/sparc/linux.h (ASM_SPEC): Likewise.
23936 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23937 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23938 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
23939
e435f098
SE
239402011-01-26 Steve Ellcey <sje@cup.hp.com>
23941
23942 PR target/46997
23943 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
23944 (*mux2): Ditto.
23945 (vec_extract_evenodd_help): Ditto.
23946 (vec_extract_evenv4hi): Ditto.
23947 (vec_extract_oddv4hi): Ditto.
23948 (vec_interleave_lowv2si): Ditto.
23949 (vec_interleave_highv2si): Ditto.
23950 (vec_extract_evenv2si): Ditto.
23951 (vec_extract_oddv2si: Ditto.
23952 (vec_pack_trunc_v2si): Ditto.
23953
34f0eee0
JH
239542011-01-22 Jan Hubicka <jh@suse.cz>
23955
23956 PR target/47237
23957 * cgraph.h (cgraph_local_info): New field can_change_signature.
23958 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
23959 signature can change.
23960 (ipcp_estimate_growth): Call sequence simplify only if calle signature
23961 can change.
23962 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
23963 (cgraph_function_versioning): We can not change signature of functions
23964 that don't allow that.
23965 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
23966 (lto_input_node): Likewise.
38be4072
UB
23967 * ipa-inline.c (compute_inline_parameters): Compute
23968 local.can_change_signature.
34f0eee0 23969 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
23970 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
23971 functions that can not change signature.
34f0eee0 23972 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
23973 init_cumulative_args): Do not use local calling conventions
23974 for functions that can not change signature.
34f0eee0 23975
980ca891
JH
239762011-01-22 Jan Hubicka <jh@suse.cz>
23977
23978 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
23979
768e3c60
RG
239802011-01-26 Richard Guenther <rguenther@suse.de>
23981
23982 PR tree-optimization/47190
61052244
AM
23983 * cgraphunit.c (process_common_attributes): New function.
23984 (process_function_and_variable_attributes): Use it.
768e3c60 23985
21d6a1c7
RG
239862011-01-26 Richard Guenther <rguenther@suse.de>
23987
23988 PR lto/47423
23989 * cgraphbuild.c (record_eh_tables): Record reference to personality
23990 function.
23991
48bb58b1
AO
239922011-01-26 Alexandre Oliva <aoliva@redhat.com>
23993
23994 PR debug/45454
23995 * sel-sched.c (moveup_expr): Don't let debug insns prevent
23996 non-debug insns from moving up.
23997
58c741a6
DK
239982011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
23999
24000 PR target/40125
24001 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
24002 t-dlldir{,-x} fragment for build and add it to tmake_file.
24003 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
24004 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
24005 * config/i386/t-dlldir: New file.
24006 (SHLIB_DLLDIR): Define.
24007 * config/i386/t-dlldir-x: New file.
24008 (SHLIB_DLLDIR): Define.
24009 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
24010 (SHLIB_INSTALL): Use it.
24011
bff99262
CLT
240122011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
24013
24014 PR target/47246
24015 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
24016 lower bound of the allowed Thumb-2 coprocessor load/store
24017 index range to -256. Add explaining comment.
24018
82c03907
ILT
240192011-01-25 Ian Lance Taylor <iant@google.com>
24020
24021 * godump.c (go_define): Improve lexing of macro expansion to only
24022 accept expressions which match Go spec.
24023
47ea1edf
DK
240242011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
24025
d4dba752 24026 PR c++/43601
47ea1edf
DK
24027 * tree.c (handle_dll_attribute): Handle it.
24028 * doc/extend.texi (@item dllexport): Mention it.
24029 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
24030
744f0946
ILT
240312011-01-25 Ian Lance Taylor <iant@google.com>
24032
24033 PR tree-optimization/26854
24034 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
24035 (decl_jump_unsafe): Move higher in file, with no other change.
24036 (bind): Set has_jump_unsafe_decl if appropriate.
24037 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
24038 (check_earlier_gotos): Likewise.
24039 (c_check_switch_jump_warnings): Likewise.
24040
5734f2b3
JW
240412011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
24042
24043 * doc/invoke.texi (Warning Options): Add missing hyphen.
24044 (-fprofile-dir): Minor grammatical fixes.
24045 (-fbranch-probabilities): Likewise.
24046
9bdbdcef
AO
240472011-01-25 Alexandre Oliva <aoliva@redhat.com>
24048
24049 PR debug/45136
24050 PR debug/45130
24051 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24052 debug insns.
24053 (no_real_insns_p, schedule_block, set_priorities): Drop special
24054 treatment of boundary debug insns.
38be4072 24055 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
24056 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24057 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24058 (BOUNDARY_DEBUG_INSN_P): Likewise.
24059 (SCHEDULE_DEBUG_INSN_P): Likewise.
24060 * sched-rgn.c (init_ready_list): Drop special treatment of
24061 boundary debug insns.
24062 * final.c (rest_of_clean-state): Clear notes' BB.
24063
b305e3da
SP
240642011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24065
24066 * Makefile.in (LAMBDA_H): Removed.
24067 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
24068 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
24069 lambda-trans.o, and tree-loop-linear.o.
24070 (lto-symtab.o): Remove dependence on LAMBDA_H.
24071 (tree-loop-linear.o): Remove rule.
24072 (lambda-mat.o): Same.
24073 (lambda-trans.o): Same.
24074 (lambda-code.o): Same.
24075 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
24076 (tree-vect-slp.o): Same.
24077 * hwint.h (gcd): Moved here.
24078 (least_common_multiple): Same.
24079 * lambda-code.c: Removed.
24080 * lambda-mat.c: Removed.
24081 * lambda-trans.c: Removed.
24082 * lambda.h: Removed.
24083 * tree-loop-linear.c: Removed.
24084 * lto-symtab.c: Do not include lambda.h.
24085 * omega.c (gcd): Removed.
24086 * passes.c (init_optimization_passes): Remove pass_linear_transform.
24087 * tree-data-ref.c (print_lambda_vector): Moved here.
24088 (lambda_vector_copy): Same.
24089 (lambda_matrix_copy): Same.
24090 (lambda_matrix_id): Same.
24091 (lambda_vector_first_nz): Same.
24092 (lambda_matrix_row_add): Same.
24093 (lambda_matrix_row_exchange): Same.
24094 (lambda_vector_mult_const): Same.
24095 (lambda_vector_negate): Same.
24096 (lambda_matrix_row_negate): Same.
24097 (lambda_vector_equal): Same.
24098 (lambda_matrix_right_hermite): Same.
24099 * tree-data-ref.h: Do not include lambda.h.
24100 (lambda_vector): Moved here.
24101 (lambda_matrix): Same.
24102 (dependence_level): Same.
24103 (lambda_transform_legal_p): Removed declaration.
24104 (lambda_collect_parameters): Same.
24105 (lambda_compute_access_matrices): Same.
24106 (lambda_vector_gcd): Same.
24107 (lambda_vector_new): Same.
24108 (lambda_vector_clear): Same.
24109 (lambda_vector_lexico_pos): Same.
24110 (lambda_vector_zerop): Same.
24111 (lambda_matrix_new): Same.
24112 * tree-flow.h (least_common_multiple): Removed declaration.
24113 * tree-parloops.c (lambda_trans_matrix): Moved here.
24114 (LTM_MATRIX): Same.
24115 (LTM_ROWSIZE): Same.
24116 (LTM_COLSIZE): Same.
24117 (LTM_DENOMINATOR): Same.
24118 (lambda_trans_matrix_new): Same.
24119 (lambda_matrix_vector_mult): Same.
24120 (lambda_transform_legal_p): Same.
24121 * tree-pass.h (pass_linear_transform): Removed declaration.
24122 * tree-ssa-loop.c (tree_linear_transform): Removed.
24123 (gate_tree_linear_transform): Removed.
24124 (pass_linear_transform): Removed.
24125 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
24126 flag_loop_interchange.
24127
6bdfdb96
JJ
241282011-01-25 Jakub Jelinek <jakub@redhat.com>
24129
24130 PR tree-optimization/47265
24131 PR tree-optimization/47443
24132 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
24133 if name still has some uses.
24134
e4cba915
MJ
241352011-01-25 Martin Jambor <mjambor@suse.cz>
24136
24137 PR tree-optimization/47382
24138 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
24139 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
24140
509d65dd 241412011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
24142
24143 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
24144 sjlj_except_unwind_info.
24145
194313e2
RG
241462011-01-25 Richard Guenther <rguenther@suse.de>
24147
24148 PR tree-optimization/47426
24149 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
24150 visible functions results escape.
24151
147a0bcf
JJ
241522011-01-25 Jakub Jelinek <jakub@redhat.com>
24153
24154 PR target/45701
24155 * config/arm/arm.c (any_sibcall_uses_r3): New function.
24156 (arm_get_frame_offsets): Use it.
24157
db963b52
SP
241582011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24159 Jakub Jelinek <jakub@redhat.com>
24160
24161 PR tree-optimization/47271
24162 * tree-if-conv.c (bb_postdominates_preds): New.
24163 (if_convertible_bb_p): Call bb_postdominates_preds.
24164 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
24165 (predicate_scalar_phi): Call bb_postdominates_preds.
24166
bcddd3b9
NC
241672011-01-25 Nick Clifton <nickc@redhat.com>
24168
24169 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
24170 * config/rx/rx.c (rx_function_value): Likewise.
24171 (rx_promote_function_mode): Likewise.
24172 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
24173 in order to make it legitimate.
38be4072
UB
24174 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
24175 make sure that the first operand is the same as the result register.
bcddd3b9
NC
24176 (addsi3_unspec): Delete.
24177 (subdi3): Do not accept immediate operands.
24178 (subdi3_internal): Likewise.
24179
7e6cb022
JL
241802011-01-25 Jeff Law <law@redhat.com>
24181
24182 PR rtl-optimization/37273
24183 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24184 handle them like argument loads from stack slots. Do not double
24185 count memory for memory constants and argument loads from stack slots.
24186
9ffa621e
JJ
241872011-01-25 Jakub Jelinek <jakub@redhat.com>
24188
24189 PR tree-optimization/47427
24190 PR tree-optimization/47428
24191 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
24192 coalesce if the new root var would be TREE_READONLY.
24193
5bd6e652
RG
241942011-01-25 Richard Guenther <rguenther@suse.de>
24195
24196 PR middle-end/47414
24197 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
24198 correct type for TBAA.
24199
7c48ea69
SP
242002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24201
24202 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
24203 (close_phi_written_to_memory): Call for_each_index with
24204 dr_indices_valid_in_loop.
24205
38013f25
SP
242062011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24207
24208 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
24209 when it is initialized.
24210
5c640e29
SP
242112011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24212
24213 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
24214 call to graphite_find_data_references_in_stmt.
24215 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
24216 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
24217 call to graphite_find_data_references_in_stmt.
24218 (analyze_drs_in_stmts): Same.
24219 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
24220 in which the scalar analysis of indices is performed.
24221 (create_data_ref): Same. Update call to dr_analyze_indices.
24222 (find_data_references_in_stmt): Update call to create_data_ref.
24223 (graphite_find_data_references_in_stmt): Same.
24224 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
24225 declaration.
24226 (create_data_ref): Same.
24227 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
24228 call to create_data_ref.
24229
ac53c069
SP
242302011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24231
24232 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 24233 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 24234
3d17df15
SP
242352011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24236
24237 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
24238 VAR_DECL, PARM_DECL, and RESULT_DECL.
24239
c513da01
SP
242402011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24241
24242 * graphite-dependences.c (reduction_dr_1): Allow several reductions
24243 in a reduction PBB.
24244 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
24245 that have already been marked as PBB_IS_REDUCTION.
24246
3a292d59
SP
242472011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24248
24249 * graphite-scop-detection.c (same_close_phi_node): New.
24250 (remove_duplicate_close_phi): New.
24251 (make_close_phi_nodes_unique): New.
24252 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
24253
ba858447
SP
242542011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24255
24256 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
24257 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
24258 of both data references to be the same.
24259
8d865c56
SP
242602011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24261
38be4072
UB
24262 * graphite-dependences.c (build_lexicographical_constraint): Remove
24263 the gdim parameter.
24264 (build_lexicographical_constraint): Adjust call to
24265 ppl_powerset_is_empty.
8d865c56
SP
24266 (dependence_polyhedron): Same.
24267 (graphite_legal_transform_dr): Same.
24268 (graphite_carried_dependence_level_k): Same.
38be4072
UB
24269 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
24270 parameter.
8d865c56
SP
24271 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
24272
50034a36
SP
242732011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24274
24275 * graphite-sese-to-poly.c
24276 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
24277 (close_phi_written_to_memory): New.
24278 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
24279 and unshare_expr.
24280
0deada9e
SP
242812011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24282
24283 * doc/install.texi: Update the expected version number of PPL to 0.11.
24284 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
24285 #if PPL_VERSION_MINOR < 11.
24286
d7d3d6af
SP
242872011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24288
24289 * graphite-dependences.c: Include graphite-cloog-util.h.
24290 (new_poly_ddr): Inlined into dependence_polyhedron.
24291 (free_poly_ddr): Moved close by new_poly_ddr.
24292 (dependence_polyhedron_1): Renamed dependence_polyhedron.
24293 Early return NULL when ppl_powerset_is_empty returns true.
24294 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
24295 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
24296 (graphite_legal_transform_dr): Call new_poly_ddr.
24297 (graphite_carried_dependence_level_k): Same.
24298 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
24299 (dot_transformed_deps_stmt_1): Removed.
24300 (dot_deps_stmt_1): Call dot_deps_stmt_2.
24301 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
24302 (dot_deps_1): Call dot_deps_2.
24303 * Makefile.in (graphite-dependences.o): Add missing dependence on
24304 graphite-cloog-util.h.
24305
28c5db57
SP
243062011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24307
24308 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
24309 (build_lexicographical_constraint): Same.
24310 (dependence_polyhedron_1): Same.
24311 (graphite_legal_transform_dr): Same.
24312 (graphite_carried_dependence_level_k): Same.
24313 * graphite-ppl.c (ppl_powerset_is_empty): New.
24314 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
24315 * tree-data-ref.c (dump_data_reference): Print the basic block index.
24316
5168d98f
SP
243172011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24318
24319 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
24320 the "a followed by b" relation and document it.
24321
4a40293a
SP
243222011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24323
24324 * graphite-dependences.c (build_lexicographical_constraint): Stop the
24325 iteration when the bag of constraints is empty.
24326
271fb6fa
SP
243272011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24328
24329 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
24330
92d23680
SP
243312011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24332
24333 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
24334 nest and two loop depths as parameters.
24335 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
24336 lst_perfect_nestify.
24337
2f51deff
SP
243382011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24339
24340 * graphite-dependences.c (print_pddr): Call
24341 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
24342
07f3593c
SP
243432011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24344
24345 * graphite-ppl.c (debug_gmp_value): New.
24346 * graphite-ppl.h (debug_gmp_value): Declared.
24347
3fae6099
TG
243482011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
24349
24350 * doc/install.texi: Document availability of cloog-0.16.
24351
1c3ba85b
SP
243522011-01-25 Vladimir Kargov <kargov@gmail.com>
24353
24354 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
24355 invalid postdominance info.
24356
e8ba94fc
JH
243572011-01-24 Jan Hubicka <jh@suse.cz>
24358
24359 PR c/21659
24360 * doc/extend.texi (weak pragma): Drop claim that it must
24361 appear before definition.
24362 * varasm.c (merge_weak, declare_weak): Only sanity check
24363 that DECL is not output at a time it is declared weak.
24364
2b6e2d13
KZ
243652011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
24366
24367 * machmode.def: Fixed comments.
1c3ba85b 24368
9841210f
KT
243692011-01-24 Kai Tietz <kai.tietz@onevision.com>
24370
24371 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
24372
243732011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
24374
24375 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 24376 WORDS_BIG_ENDIAN.
e046112d 24377
a6c5070a
L
243782011-01-24 H.J. Lu <hongjiu.lu@intel.com>
24379
24380 PR target/46519
24381 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
24382 (block_info): Add scanned and prev.
24383 (move_or_delete_vzeroupper_2): Return if the basic block
24384 has been scanned and the upper 128bit state is unchanged
24385 from the last scan.
24386 (move_or_delete_vzeroupper_1): Return true if the exit
24387 state is changed.
24388 (move_or_delete_vzeroupper): Visit basic blocks using the
24389 work-list based algorithm based on vt_find_locations in
24390 var-tracking.c.
24391
24392 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
24393
a40d79d7
NC
243942011-01-24 Nick Clifton <nickc@redhat.com>
24395
24396 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
24397 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
24398 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
24399 then define __v850e1__.
24400 * doc/invoke.texi: Document -mv850es.
24401
440eb8de
RH
244022011-01-24 Richard Henderson <rth@redhat.com>
24403
24404 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
24405 compound unordered comparisons.
24406 * config/rx/rx.c (rx_split_fp_compare): Remove.
24407 * config/rx/rx-protos.h: Update.
24408 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
24409 (cbranchsf4): Don't call rx_split_fp_compare.
24410 (*cbranchsf4): Use rx_split_cbranch.
24411 (*cmpsf): Don't accept "i" constraint.
24412 (*conditional_branch): Only valid after reload.
24413 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
24414
3ff79f99
MM
244152011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24416
24417 PR target/47385
24418 * config/rs6000/altivec.md (vector constant splitters): Add
24419 support for creating vector single precision constants if -mvsx is
24420 used and we would create the constant using Altivec primitives.
24421
ff3d9d08
BS
244222011-01-23 Bernd Schmidt <bernds@codesourcery.com>
24423 Richard Sandiford <rdsandiford@googlemail.com>
24424
24425 PR rtl-optimization/47166
24426 * reload1.c (emit_reload_insns): Disable the spill_reg_store
24427 mechanism for PRE_MODIFY and POST_MODIFY.
24428 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
24429 reloadreg.
24430
7fcaf152
AS
244312011-01-23 Andreas Schwab <schwab@linux-m68k.org>
24432
8788adb6 24433 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 24434
d09b58c4
JH
244352011-01-22 Jan Hubicka <jh@suse.cz>
24436
24437 PR lto/47333
24438 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
24439
e8ff8c5a
JH
244402011-01-22 Jan Hubicka <jh@suse.cz>
24441
24442 PR tree-optimization/43884
24443 PR lto/44334
8788adb6 24444 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
24445 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
24446
ccaed3ba
AS
244472011-01-22 Anatoly Sokolov <aesok@post.ru>
24448
24449 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24450 * config/s390/s390.c (s390_register_move_cost,
24451 s390_memory_move_cost): New.
24452 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
24453
0cecee06
UW
244542011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24455
24456 PR middle-end/47401
24457 * except.c (sjlj_assign_call_site_values): Move setting the
24458 crtl->uses_eh_lsda flag to ...
24459 (sjlj_mark_call_sites): ... here.
24460 (sjlj_emit_function_enter): Support NULL dispatch label.
24461 (sjlj_build_landing_pads): In a function with no landing pads
24462 that still has must-not-throw regions, generate code to register
24463 a personality function with empty LSDA.
24464
e692f276
RH
244652011-01-21 Richard Henderson <rth@redhat.com>
24466
1b7ae0b7
RH
24467 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
24468
3843787f
RH
24469 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
24470
e692f276
RH
24471 * compare-elim.c: New file.
24472 * Makefile.in (OBJS-common): Add it.
24473 (compare-elim.o): New.
24474 * common.opt (fcompare-elim): New.
24475 * opts.c (default_options_table): Add OPT_fcompare_elim.
24476 * tree-pass.h (pass_compare_elim_after_reload): New.
24477 * passes.c (init_optimization_passes): Add it.
24478 * recog.h: Protect against re-inclusion.
24479 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
24480 * doc/invoke.texi (-fcompare-elim): Document it.
24481 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
24482 * doc/tm.texi: Rebuild.
24483
9a7c2050
NC
244842011-01-22 Nick Clifton <nickc@redhat.com>
24485
24486 * config/rx/rx.md (cstoresf4): Pass comparison operator to
24487 rx_split_fp_compare.
24488
15ba5696
NC
244892011-01-22 Nick Clifton <nickc@redhat.com>
24490
24491 * config/rx/rx.md (UNSPEC_CONST): New.
24492 (deallocate_and_return): Wrap the amount popped off the stack in
24493 an UNSPEC_CONST in order to stop it being rejected by
24494 -mmax-constant-size.
24495 (pop_and_return): Add a "(return)" rtx.
24496 (call): Drop the immediate operand.
24497 (call_internal): Likewise.
24498 (call_value): Likewise.
24499 (call_value_internal): Likewise.
24500 (sibcall_internal): Likewise.
24501 (sibcall_value_internal): Likewise.
24502 (sibcall): Likewise. Generate an explicit call using
24503 sibcall_internal.
24504 (sibcall_value): Likewise.
24505 (mov<>): FAIL if a constant operand is not legitimate.
24506 (addsi3_unpsec): New pattern.
9a7c2050 24507
38be4072 24508 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
24509 (ok_for_max_constant): New function.
24510 (gen_safe_add): New function.
24511 (rx_expand_prologue): Use gen_safe_add.
24512 (rx_expand_epilogue): Likewise.
24513 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
24514 UNSPEC CONSTs.
24515
caaf13d3
JL
245162011-01-21 Jeff Law <law@redhat.com>
24517
24518 PR tree-optimization/47053
24519 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
24520 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
24521 statements are deleted.
24522 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
24523 is nonempty, then purge dead edges and cleanup the CFG.
24524
12c30f2f
AO
245252011-01-21 Alexandre Oliva <aoliva@redhat.com>
24526
24527 PR debug/47402
24528 Temporarily revert:
24529 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24530 PR debug/47106
24531 * tree-dfa.c (create_var_ann): Mark variable as used.
24532
7360d2ac
JJ
245332011-01-21 Jakub Jelinek <jakub@redhat.com>
24534
aaa52a96
JJ
24535 PR middle-end/45566
24536 * except.c (convert_to_eh_region_ranges): Emit queued no-region
24537 notes from other section in hot/cold partitioning even if
24538 last_action is -3. Increment call_site_base.
24539
7360d2ac
JJ
24540 PR rtl-optimization/47366
24541 * fwprop.c (forward_propagate_into): Return bool. If
24542 any changes are made, -fnon-call-exceptions is used and
24543 REG_EH_REGION note is present, call purge_dead_edges
24544 and return true if it purged anything.
24545 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
24546 any EH edges were purged.
24547
e90b336f
JL
245482011-01-21 Jeff Law <law@redhat.com>
24549
24550 PR rtl-optimization/41619
24551 * caller-save.c (setup_save_areas): Break out code to determine
24552 which hard regs are live across calls by examining the reload chains
24553 so that it is always used.
24554 Eliminate code which checked REG_N_CALLS_CROSSED.
24555
3ffe07e1
JJ
245562011-01-21 Jakub Jelinek <jakub@redhat.com>
24557
24558 PR tree-optimization/47355
24559 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
24560 NOP has non-debug uses beyond PHIs in new_bb.
24561
1c7d0b34
AO
245622011-01-21 Alexandre Oliva <aoliva@redhat.com>
24563
24564 PR debug/47106
24565 * cfgexpand.c (account_used_vars_for_block): Only account vars
24566 that are annotated as used.
24567 (estimated_stack_frame_size): Don't set TREE_USED.
24568 * tree-dfa.c (create_var_ann): Mark variable as used.
24569
f99cc488
RG
245702011-01-21 Richard Guenther <rguenther@suse.de>
24571
24572 PR middle-end/47395
24573 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
24574
3bc27de7
RG
245752011-01-21 Richard Guenther <rguenther@suse.de>
24576
24577 PR tree-optimization/47365
24578 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
24579 (vn_reference_lookup_pieces): Adjust.
24580 (vn_reference_lookup): Likewise.
24581 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
24582 (vn_reference_lookup_3): Only look through kills if in
24583 VN_WALKREWRITE mode.
24584 (vn_reference_lookup_pieces): Adjust.
24585 (vn_reference_lookup): Likewise.
24586 (visit_reference_op_load): Likewise.
24587 (visit_reference_op_store): Likewise.
24588 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
24589 (compute_avail): Likewise.
24590 (eliminate): Likewise.
24591
d8debb1d
JJ
245922011-01-21 Jakub Jelinek <jakub@redhat.com>
24593
24594 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
24595 DECL_IGNORED_P non-reg vars if they are used.
24596
3a2df831
JJ
24597 PR tree-optimization/47391
24598 * varpool.c (const_value_known_p): Return false if
24599 decl is volatile.
24600
1dd584a2
KT
246012011-01-21 Kai Tietz <kai.tietz@onevision.com>
24602
24603 PR bootstrap/47215
24604 * config/i386/i386.c (ix86_local_alignment): Handle
24605 case for va_list_type_node is nil.
24606 (ix86_canonical_va_list_type): Likewise.
24607
7f9f095e
AM
246082011-01-21 Alan Modra <amodra@gmail.com>
24609
24610 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
24611 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
24612
837b01f6
RR
246132011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24614
24615 * config/arm/arm.md (define_attr type): Rename f_load
24616 and f_store to f_fpa_load and f_fpa_store. Update.
24617 (write_conflict): Deal with rename fallout.
24618 (*push_fp_multi): Likewise.
24619 * config/arm/fpa.md (f_load): Use f_fpa_load.
24620 (f_store): Use f_fpa_store.
24621 (*movsf_fpa): Likewise.
24622 (*movdf_fpa): Likewise.
24623 (*movxf_fpa): Likewise.
24624 (*thumb2_movsf_fpa): Likewise.
24625 (*thumb2_movdf_fpa): Likewise.
24626 (*thumb2_movxf_fpa): Likewise.
24627 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
24628 f_loadd and f_stored.
24629 (*thumb2_movdi_vfp): Likewise.
24630 (*thumb2_movsf_vfp): Fix attribute to f_loads.
24631 (*thumb2_movsi_vfp): Likewise.
24632 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
24633 Use f_loads instead of f_load.
24634 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
24635
a1a79768
AS
246362011-01-20 Anatoly Sokolov <aesok@post.ru>
24637
24638 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24639 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
24640 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24641 (xtensa_mode_dependent_address_p): New function.
24642 (constantpool_address_p): Make static. Change return type to bool.
24643 Change argument type to const_rtx. Use CONST_INT_P predicate.
24644
427f6cec
AO
246452011-01-20 Alexandre Oliva <aoliva@redhat.com>
24646
24647 PR debug/46583
24648 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
24649
583ac69c
JJ
246502011-01-20 Jakub Jelinek <jakub@redhat.com>
24651
24652 PR debug/47283
24653 * cfgexpand.c (expand_debug_expr): Instead of generating
24654 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
24655 etc. handling.
24656
93e452ed
RG
246572011-01-20 Richard Guenther <rguenther@suse.de>
24658
24659 PR middle-end/47370
24660 * tree-inline.c (remap_gimple_op_r): Recurse manually for
24661 the pointer operand of MEM_REFs.
24662
28fc44f3
JJ
246632011-01-20 Jakub Jelinek <jakub@redhat.com>
24664
24665 PR tree-optimization/46130
24666 * ipa-split.c (consider_split): If return_bb contains non-virtual
24667 PHIs other than for retval or if split_function would not adjust it,
24668 refuse to split.
24669
ddd268f2
RG
246702011-01-20 Richard Guenther <rguenther@suse.de>
24671
24672 PR tree-optimization/47167
24673 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
24674 Revert previous change, only avoid enumeral type changes.
24675
882020aa
MS
246762011-01-19 Mike Stump <mikestump@comcast.net>
24677
24678 * doc/tm.texi.in (BRANCH_COST): Englishify.
24679 * doc/tm.texi (BRANCH_COST): Likewise.
24680
7edb6247
DS
246812011-01-19 Dodji Seketeli <dodji@redhat.com>
24682
24683 PR c++/47291
24684 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
24685 (gen_scheduled_generic_parms_dies): New functions.
24686 (gen_struct_or_union_type_die): Schedule template parameters DIEs
24687 generation for the end of CU compilation.
24688 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 24689
23d5ed5d
AO
246902011-01-19 Alexandre Oliva <aoliva@redhat.com>
24691
24692 PR debug/46240
24693 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
24694 debug bind stmt on merge edges.
24695
37d6a488
AO
246962011-01-19 Alexandre Oliva <aoliva@redhat.com>
24697
24698 PR debug/47079
24699 PR debug/46724
24700 * function.c (instantiate_expr): Instantiate incoming rtl of
24701 implicit arguments, and recurse on VALUE_EXPRs.
24702 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
24703 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
24704
689f2c82
AO
247052011-01-19 Alexandre Oliva <aoliva@redhat.com>
24706
24707 * c-parser.c (c_parser_for_statement): Initialize
24708 collection_expression.
24709
03029de4
JM
247102011-01-19 Joseph Myers <joseph@codesourcery.com>
24711
24712 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
24713
3e03217e
JM
247142011-01-19 Joseph Myers <joseph@codesourcery.com>
24715
24716 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
24717 (LINK_SHLIB_SPEC): Don't use %(link_path).
24718 (SUBTARGET_EXTRA_SPECS): Remove link_path.
24719
5bbe9b3f
JM
247202011-01-19 Joseph Myers <joseph@codesourcery.com>
24721
24722 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
24723 (NO_SHARED_LIB_SUPPORT): Remove.
24724 (LINK_SHLIB_SPEC): Remove one conditional definition.
24725
368e0b39
JM
247262011-01-19 Joseph Myers <joseph@codesourcery.com>
24727
24728 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
24729 %{call_shared}.
24730 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
24731 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
24732 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
24733 %{call_shared} and conditionals on these options not being passed.
24734 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
24735 %{call_shared}.
24736
ed7656f6
JJ
247372011-01-19 Jakub Jelinek <jakub@redhat.com>
24738
68457901
JJ
24739 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
24740 simplify.
24741
ed7656f6
JJ
24742 * ipa-split.c: Spelling fixes.
24743
e0d1958f
RH
247442011-01-19 Richard Henderson <rth@redhat.com>
24745
24746 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
24747 (*mulsi3): Likewise.
24748
27098b6b
RH
24749 * longlong.h [__mn10300__] (count_leading_zeros): New.
24750 [__mn10300__] (umul_ppmm, smul_ppmm): New.
24751 [__mn10300__] (add_ssaaaa, subddmmss): New.
24752 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
24753 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
24754
d6be7c36
UW
247552011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24756
24757 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
24758
b1efde2a
RH
247592011-01-19 Richard Henderson <rth@redhat.com>
24760
44217823
RH
24761 * config/mn10300/mn10300.md (addsi3_flags): New.
24762 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
24763 (subsi3_flags, subc_internal, subdi3): New.
24764 (subdi3_internal, *subdi3_degenerate): New.
24765 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
24766
37a185d7
RH
24767 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
24768 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
24769 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
24770 * config/mn10300/mn10300-protos.h: Update.
24771 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
24772 (return_ret): Likewise. Rename from return_internal_regs.
24773 (return_internal): Remove.
24774
040c5757
RH
24775 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
24776 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
24777 (mn10300_legitimate_constant_p): Likewise.
24778 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
24779 (mn10300_frame_size): New.
24780 (mn10300_expand_prologue): Use it.
24781 (mn10300_expand_epilogue): Likewise.
24782 (mn10300_initial_offset): Likewise.
24783 * config/mn10300/mn10300-protos.h: Update.
24784 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
24785 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
24786 (prologue, epilogue, return_internal): Tidy output code.
24787 (mn10300_store_multiple_operation, return): Likewise.
24788 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
24789 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
24790 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
24791 (load_pic, am33_load_pic): New.
24792 (mn10300_load_pic0, mn10300_load_pic1): New.
24793
bad41521
RH
24794 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
24795 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
24796 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
24797 (cc_flags_for_mode, cc_flags_for_code): New.
24798 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
24799 overflow flag is not valid. Validate that the flags we need
24800 for the comparison are valid.
24801 (mn10300_output_cmp): Remove.
24802 (mn10300_output_add): New.
24803 (mn10300_select_cc_mode): Use cc_flags_for_code.
24804 (mn10300_split_cbranch): New.
24805 (mn10300_match_ccmode): New.
24806 (mn10300_split_and_operand_count): New.
24807 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
24808 to the function.
24809 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
24810 (addsi3): ... here. Use mn10300_output_add.
24811 (*addsi3_flags): New.
24812 (*am33_subsi3, *mn10300_subsi3): Merge...
24813 (subsi3): ... here. Use attribute isa.
24814 (*subsi3_flags): New.
24815 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
24816 when possible.
24817 (*am33_andsi3, *mn10300_andsi3): Merge...
24818 (andsi3): ... here.
24819 (*andsi3_flags): New.
24820 (andsi3 splitters): New.
24821 (*am33_iorsi3, *mn10300_iorsi3): Merge...
24822 (iorsi3): ... here.
24823 (*iorsi3_flags): New.
24824 (*am33_xorsi3, *mn10300_xorsi3): Merge...
24825 (xorsi3): ... here.
24826 (*xorsi3_flags): New.
24827 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
24828 (one_cmplsi2): ... here.
24829 (*one_cmplsi2_flags): New.
24830 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
24831 instead of "dax" in constraints. Use mn10300_split_cbranch.
24832 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
24833 use matching constraints to eliminate a self-comparison.
24834 (*integer_conditional_branch): Rename from integer_conditional_branch.
24835 Use int_mode_flags to match CC_REG.
24836 (*cbranchsi4_btst, *btstsi): New.
24837 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
24838 mn10300_split_cbranch.
24839 (*am33_cmpsf): Rename from am33_cmpsf.
24840 (*float_conditional_branch): Rename from float_conditional_branch.
24841 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
24842 (zero_extendqisi2): ... here.
24843 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
24844 (zero_extendhisi2): ... here.
24845 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
24846 (extendqisi2): ... here.
24847 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
24848 (extendhisi2): ... here.
24849 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
24850 (ashlsi3): ... here.
24851 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
24852 (lshrsi3): ... here.
24853 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
24854 (ashrsi3): ... here.
24855 (consecutive add peephole): Remove.
24856 * config/mn10300/predicates.md (label_ref_operand): New.
24857 (int_mode_flags): New.
24858 (CCZN_comparison_operator): New.
24859
9efb4993
RH
24860 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
24861 (throughput_42_latency_43): New reservation.
24862 (mulsidi3, umulsidi3): New expanders.
24863 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
24864 the MDR register to allocation; separately allocate the low and
24865 high parts of the DImode result.
24866 (umulsidi3_internal): Similarly.
24867 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
24868 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
24869 (udivsi3, umodsi3): Remove.
24870 (udivmodsi4, divmodsi4): New expanders.
24871 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
24872 (*divmodsi4): Simiarly.
24873 (ext_internal): New.
24874
c25a21f5
RH
24875 * config/mn10300/constraints.md ("z"): New constraint.
24876 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
24877 (FIXED_REGISTERS): Don't fix MDR.
24878 (CALL_USED_REGSITERS): Reformat nicely.
24879 (REG_ALLOC_ORDER): Add MDR.
24880 (enum regclass): Add MDR_REGS.
24881 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
24882 (IRA_COVER_CLASSES): Add MDR_REGS.
24883 (REGNO_REG_CLASS): Handle MDR_REG.
24884 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
24885 (mn10300_register_move_cost): Likewise.
24886 * config/mn10300/mn10300.md (MDR_REG): New.
24887 (*movsi_internal): Handle moves to/from MDR_REGS.
24888
36846b26
RH
24889 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
24890 POST_MODIFY.
24891 (mn10300_secondary_reload): Tidy combination reload classes.
24892 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
24893 addresses for AM33. Allow symbolic offsets for reg+imm.
24894 (mn10300_regno_in_class_p): New.
24895 (mn10300_legitimize_reload_address): New.
24896 * config/mn10300/mn10300.h (enum reg_class): Remove
24897 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
24898 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
24899 SP_OR_GENERAL_REGS.
24900 (REG_CLASS_NAMES): Update to match.
24901 (REG_CLASS_CONTENTS): Likewise.
24902 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
24903 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
24904 (REGNO_IN_RANGE_P): Remove.
24905 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
24906 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
24907 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
24908 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
24909 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
24910 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
24911 (REGNO_GENERAL_P): New.
24912 (HAVE_POST_MODIFY_DISP): New.
24913 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
24914 (LEGITIMIZE_RELOAD_ADDRESS): New.
24915 * config/mn10300/mn10300-protos.h: Update.
24916
8b119bb6
RH
24917 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
24918 DATA_REGS for AM33 stack-pointer destination.
24919 (mn10300_preferred_output_reload_class): Likewise.
24920 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
24921 into a form appropriate for ...
24922 (TARGET_SECONDARY_RELOAD): New.
24923 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
24924 * config/mn10300/mn10300-protos.h: Update.
24925 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
24926 reload_insi; use the "A" constraint for the scratch; handle AM33
24927 moves of sp to non-address registers.
24928
b1efde2a
RH
24929 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
24930 (*movqi_internal): ... here.
24931 (*am33_movhi, *mn10300_movhi): Merge into...
24932 (*movhi_internal): ... here.
24933 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
24934 as the source/destination of moves from/to SP.
24935 (movsf): Only allow for AM33-2.
1c3ba85b 24936 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
24937 any integer constant constraint. Only allow for AM33-2. Tidy
24938 all of the alternative outputs.
24939 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
24940 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
24941 for MN103.
24942 (udivsi3, umodsi3): New patterns for MN103 only.
24943
b899fd78
JR
249442011-01-19 Joern Rennecke <amylaar@spamcop.net>
24945
24946 * doc/tm.texi.in: Spell out that a lack of register class unions
24947 can lead to ICEs.
24948 * doc/tm.texi: Regenerate.
24949
afaaa67d
JJ
249502011-01-19 Jakub Jelinek <jakub@redhat.com>
24951
2e0642cd
JJ
24952 PR rtl-optimization/47337
24953 * dce.c (check_argument_store): New function.
24954 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
24955
afaaa67d
JJ
24956 PR tree-optimization/47290
24957 * tree-eh.c (infinite_empty_loop_p): New function.
24958 (cleanup_empty_eh): Use it.
24959
d2cd871f
SE
249602011-01-18 Steve Ellcey <sje@cup.hp.com>
24961
24962 PR target/46997
24963 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
24964 (a64_expand_widen_sum): Ditto.
24965 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
24966 (vec_extract_evenodd_help): Ditto.
24967 (vec_extract_evenv4hi): Ditto.
24968 (vec_extract_oddv4hi): Ditto.
24969 (vec_extract_evenv2si): Ditto.
24970 (vec_extract_oddv2si): Ditto.
24971 (vec_extract_evenv2sf): Ditto.
24972 (vec_extract_oddv2sf): Ditto.
24973 (vec_pack_trunc_v4hi: Ditto.
24974 (vec_pack_trunc_v2si): Ditto.
24975 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
24976 (vec_interleave_highv8qi): Ditto.
24977 (mix1_r): Ditto.
24978 (vec_extract_oddv8qi): Ditto.
24979 (vec_interleave_lowv4hi): Ditto.
24980 (vec_interleave_highv4hi): Ditto.
24981 (vec_interleave_lowv2si): Ditto.
24982 (vec_interleave_highv2si): Ditto.
24983
41a1208a
JDA
249842011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24985
24986 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
24987 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
24988 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
24989 (pa_c_mode_for_suffix): New.
24990 (TARGET_EXPAND_BUILTIN): Define.
24991 (TARGET_C_MODE_FOR_SUFFIX): Define.
24992 (pa_builtins): Define.
24993 (pa_init_builtins): Register __float128 type and init new support
24994 builtins.
24995 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
24996 * config/pa/quadlib.c (_U_Qfcopysign): New.
24997
1ecad98e
EB
249982011-01-18 Eric Botcazou <ebotcazou@adacore.com>
24999
25000 PR middle-end/46894
25001 * explow.c (allocate_dynamic_stack_space): Do not assume more than
25002 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
25003 are defined.
25004
d4f2460a
UW
250052011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25006
25007 PR tree-optimization/47179
25008 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
25009 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
25010
4994da65
RG
250112011-01-18 Richard Guenther <rguenther@suse.de>
25012
25013 PR rtl-optimization/47216
25014 * emit-rtl.c: Include tree-flow.h.
25015 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
25016 of replicating it with different semantics.
25017 * Makefile.in (emit-rtl.o): Adjust.
25018
1eb458d1
RR
250192011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25020
38be4072 25021 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 25022 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 25023
e7ef91dc
JJ
250242011-01-18 Jakub Jelinek <jakub@redhat.com>
25025
25026 PR rtl-optimization/47299
25027 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 25028 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
25029 * expmed.c (expand_widening_mult): Don't try to optimize constant
25030 multiplication if op0 has VOIDmode. Convert op1 constant to mode
25031 before using it.
25032
535b7874
RW
250332011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25034
25035 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
25036 spacing after 'e.g.', typos, comma, hyphenation.
25037
27bf36f3
RH
250382011-01-17 Richard Henderson <rth@redhat.com>
25039
8a5b5449
RH
25040 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
25041 (rx_restricted_mem_operand): New.
25042 (rx_shift_operand): Use register_operand.
25043 (rx_source_operand, rx_compare_operand): Likewise.
25044 * config/rx/rx.md (addsi3_flags): New expander.
25045 (adddi3): Rewrite as expander.
25046 (adc_internal, *adc_flags, adddi3_internal): New patterns.
25047 (subsi3_flags): New expander.
25048 (subdi3): Rewrite as expander.
25049 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
25050
784f69be
RH
25051 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
25052 (rx_init_builtins): Remove sat builtin.
25053 (rx_expand_builtin): Likewise.
25054 * config/rx/rx.md (ssaddsi3): New.
25055 (*sat): Rename from sat. Represent the CC_REG input.
25056
f033541c
RH
25057 * config/rx/predicates.md (rshift_operator): New.
25058 * config/rx/rx.c (rx_expand_insv): Remove.
25059 * config/rx/rx-protos.h: Update.
25060 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
25061 operand to the canonical position.
25062 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
25063 (*bitclr, *bitclr_in_memory): Similarly.
25064 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
25065 (insv): Retain the zero_extract in the expansion.
25066
34fee389
RH
25067 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
25068 (bswaphi2, bitinvert, revw): Likewise.
25069
265c835f
RH
25070 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
25071 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
25072 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
25073 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
25074 (bitset, bitset_in_memory): Likewise.
25075 (bitinvert, bitinvert_in_memory): Likewise.
25076 (bitclr, bitclr_in_memory): Likewise.
25077 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
25078 (rx_strend, rx_cmpstrn): Likewise.
25079 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
25080 (bitop peep2 patterns): Remove.
25081
b4d83be3
RH
25082 * config/rx/rx.c (rx_match_ccmode): New.
25083 * config/rx/rx-protos.h: Update.
25084 * config/rx/rx.md (abssi2): Clobber, don't set flags.
25085 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
25086 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
25087 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
25088 (fix_truncsfsi2, floatsisf2): Likewise.
25089 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
25090 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
25091 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
25092 (*subsi3_flags, *xorsi3_flags): New.
25093
d0acb939
RH
25094 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
25095
c06fc3d9
RH
25096 * config/rx/rx.c (rx_print_operand): Remove workaround for
25097 unsplit comparison operations.
25098
2882702b
RH
25099 * config/rx/rx.md (movsicc): Split after reload.
25100 (*movsicc): Merge *movsieq and *movsine via match_operator.
25101 (*stcc): New pattern.
25102
6f7310f2
RH
25103 * config/rx/rx.c (rx_float_compare_mode): Remove.
25104 * config/rx/rx.h (rx_float_compare_mode): Remove.
25105 * config/rx/rx.md (cstoresi4): Split after reload.
25106 (*sccc): New pattern.
25107
e963cb1a
RH
25108 * config/rx/predicates.md (label_ref_operand): New.
25109 (rx_z_comparison_operator): New.
25110 (rx_zs_comparison_operator): New.
25111 (rx_fp_comparison_operator): New.
25112 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
25113 Validate that the flags are set properly for the comparison.
25114 (rx_gen_cond_branch_template): Remove.
25115 (rx_cc_modes_compatible): Remove.
25116 (mode_from_flags): New.
25117 (flags_from_code): Rename from flags_needed_for_conditional.
25118 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
25119 (rx_select_cc_mode): Likewise.
25120 (rx_split_fp_compare): New.
25121 (rx_split_cbranch): New.
25122 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
25123 (*cbranchsi4): Use match_operator and rx_split_cbranch.
25124 (*cbranchsf4): Similarly.
25125 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
25126 match_operator and rx_split_cbranch.
25127 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
25128 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
25129 (*cmpsi): Rename from cmpsi.
25130 (*tstsi): Rename from tstsi.
25131 (*cmpsf): Rename from cmpsf; use CC_Fmode.
25132 (*conditional_branch): Rename from conditional_branch.
25133 (*reveresed_conditional_branch): Remove.
25134 (b<code>): Remove expander.
25135 * config/rx/rx-protos.h: Update.
25136
af530bb4
RH
25137 * config/rx/rx.c (rx_compare_redundant): Remove.
25138 * config/rx/rx.md (cmpsi): Don't use it.
25139 * config/rx/rx-protos.h: Update.
25140
27bf36f3
RH
25141 * config/rx/rx-modes.def (CC_F): New mode.
25142 * config/rx/rx.c (rx_select_cc_mode): New.
25143 * config/rx/rx.h (SELECT_CC_MODE): Use it.
25144 * config/rx/rx-protos.h: Update.
25145
d7fde127
RH
251462011-01-17 Richard Henderson <rth@redhat.com>
25147
25148 * except.c (dump_eh_tree): Fix stray ; after for statement.
25149
6ff38230
RG
251502011-01-17 Richard Guenther <rguenther@suse.de>
25151
25152 PR tree-optimization/47313
25153 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
25154 handling before copying the body. Properly deal with
25155 by-reference result in SSA form.
25156
114ce554
ILT
251572011-01-17 Ian Lance Taylor <iant@google.com>
25158
bf5cd92b 25159 PR target/47219
114ce554
ILT
25160 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
25161 (struct_value_alias_set): Don't define.
25162 (sparc_option_override): Don't set sparc_sr_alias_set and
25163 struct_value_alias_set.
25164 (save_or_restore_regs): Use gen_frame_mem rather than calling
25165 set_mem_alias_set.
25166 (sparc_struct_value_rtx): Likewise.
25167
98c6d93c
L
251682011-01-17 H.J. Lu <hongjiu.lu@intel.com>
25169
25170 PR target/47318
7a81008b 25171 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
25172 (_mm_maskstore_pd): Likewise.
25173 (_mm_maskload_ps): Likewise.
25174 (_mm_maskstore_ps): Likewise.
25175 (_mm256_maskload_pd): Change mask to __m256i.
25176 (_mm256_maskstore_pd): Likewise.
25177 (_mm256_maskload_ps): Likewise.
25178 (_mm256_maskstore_ps): Likewise.
25179
25180 * config/i386/i386-builtin-types.def: Updated.
25181 (ix86_expand_special_args_builtin): Likewise.
25182
25183 * config/i386/i386.c (bdesc_special_args): Update
25184 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
25185 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
25186 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
25187 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
25188
25189 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
25190 Use <avxpermvecmode> on mask register.
25191 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
25192
b9361af2 251932011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
25194 Michael Haubenwallner <michael.haubenwallner@salomon.at>
25195 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
25196
25197 PR target/46655
25198 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
25199 if <= USHRT_MAX in 32-bit mode.
25200
b7ae9eb5
RW
252012011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25202
25203 * doc/install.texi (Configuration, Specific): Wrap long
25204 lines in examples. Allow line wrapping in long options
25205 and URLs where beneficial for PDF output.
25206
4377fad9
RS
252072011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
25208
25209 * config/mips/mips.c (mips_classify_symbol): Don't return
25210 SYMBOL_PC_RELATIVE for nonlocal labels.
25211
55959ffa 252122011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 25213
55959ffa
EB
25214 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
25215
252162011-01-15 Jan Hubicka <jh@suse.cz>
25217
25218 PR tree-optimization/47276
be46831f
JH
25219 * ipa.c (function_and_variable_visibility): Do not try to mark alias
25220 declarations as needed.
25221
05842ff5
MJ
252222011-01-15 Martin Jambor <mjambor@suse.cz>
25223
25224 * common.opt (fdevirtualize): New flag.
25225 * doc/invoke.texi (Option Summary): Document it.
25226 * opts.c (default_options_table): Add devirtualize flag.
25227 * ipa-prop.c (detect_type_change): Return immediately if
25228 devirtualize flag is not set.
25229 (detect_type_change_ssa): Likewise.
25230 (compute_known_type_jump_func): Likewise.
25231 (ipa_analyze_virtual_call_uses): Likewise.
25232
f65cf2b7
MJ
252332011-01-14 Martin Jambor <mjambor@suse.cz>
25234
25235 PR tree-optimization/45934
25236 PR tree-optimization/46302
25237 * ipa-prop.c (type_change_info): New type.
25238 (stmt_may_be_vtbl_ptr_store): New function.
25239 (check_stmt_for_type_change): Likewise.
25240 (detect_type_change): Likewise.
25241 (detect_type_change_ssa): Likewise.
25242 (compute_complex_assign_jump_func): Check for dynamic type change.
25243 (compute_complex_ancestor_jump_func): Likewise.
25244 (compute_known_type_jump_func): Likewise.
25245 (compute_scalar_jump_functions): Likewise.
25246 (ipa_analyze_virtual_call_uses): Likewise.
25247 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
25248
eb5bb0fd
JM
252492011-01-14 Joseph Myers <joseph@codesourcery.com>
25250
25251 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
25252 * config/i386/i386.opt (msse5): New Alias.
25253
f2060fbe
JM
252542011-01-14 Joseph Myers <joseph@codesourcery.com>
25255
25256 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25257 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25258 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25259 * config/sparc/sparc.h (CC1_SPEC): Likewise.
25260
3a7b4385
JM
252612011-01-14 Joseph Myers <joseph@codesourcery.com>
25262
25263 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
25264 -mcpu options.
25265 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25266 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25267 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
25268 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
25269 Likewise.
25270 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
25271
a7b778f8
JM
252722011-01-14 Joseph Myers <joseph@codesourcery.com>
25273
38be4072 25274 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 25275
a7edae0a
MS
252762011-01-14 Mike Stump <mikestump@comcast.net>
25277
25278 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
25279 * config/fr30/fr30.md: Likweise
25280 (movsi_push): Likewise.
25281 (movsi_pop): Likewise.
25282 (enter_func): Likewise.
25283 * config/moxie/moxie.md (movsi_push): Likewise.
25284 (movsi_pop): Likewise.
25285
cbabf03f
JM
252862011-01-14 Joseph Myers <joseph@codesourcery.com>
25287
25288 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
25289 %{no_archive} %{exact_version}.
25290 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
25291 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
25292 %{no_archive} %{exact_version}.
25293 * config/mips/openbsd.h (LINK_SPEC): Likewise.
25294 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
25295 * config/mips/vxworks.h: Likewise.
25296
438da41a
JM
252972011-01-14 Joseph Myers <joseph@codesourcery.com>
25298
38be4072 25299 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 25300
da290a42
JM
253012011-01-14 Joseph Myers <joseph@codesourcery.com>
25302
25303 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
25304 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
25305
8989d00e
JM
253062011-01-14 Joseph Myers <joseph@codesourcery.com>
25307
25308 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
25309 -nodefaultlib.
25310
a3010a69
JM
253112011-01-14 Joseph Myers <joseph@codesourcery.com>
25312
25313 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
25314 for mcpu not cpu.
25315 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
25316 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
25317 not cpu.
25318 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
25319 Don't handle -shlib.
25320
e7f2f537
JM
253212011-01-14 Joseph Myers <joseph@codesourcery.com>
25322
25323 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
25324 (CC1_SPEC): Don't handle -profile.
25325
34830bfd
JM
253262011-01-14 Joseph Myers <joseph@codesourcery.com>
25327
25328 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
25329 * config/mips/mips.h (CC1_SPEC): Likewise.
25330
b2d36e74
JM
253312011-01-14 Joseph Myers <joseph@codesourcery.com>
25332
25333 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
25334 * config/mips/mips.h (CC1_SPEC): Likewise.
25335
dabadc52
JM
253362011-01-14 Joseph Myers <joseph@codesourcery.com>
25337
25338 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
25339 * config/m32r/linux.h (LINK_SPEC): Likewise.
25340 * config/mips/linux.h (LINK_SPEC): Likewise.
25341 * config/mips/linux64.h (LINK_SPEC): Likewise.
25342 * config/sparc/linux.h (LINK_SPEC): Likewise.
25343 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
25344 LINK_SPEC): Likewise.
25345 * config/xtensa/linux.h (LINK_SPEC): Likewise.
25346
43ee6785
JM
253472011-01-14 Joseph Myers <joseph@codesourcery.com>
25348
25349 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
25350 %{version:-v}.
25351 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
25352
45e79dfd
JM
253532011-01-14 Joseph Myers <joseph@codesourcery.com>
25354
25355 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
25356 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25357
37e9e71d
JM
253582011-01-14 Joseph Myers <joseph@codesourcery.com>
25359
25360 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
25361
bb127cd8
RO
253622011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25363
25364 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
25365 supports -Bstatic/-Bdynamic.
25366 * configure: Regenerate.
25367
89a012ea 253682011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 25369 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
25370
25371 PR target/46037
25372 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
25373 when checking debug_info_level. Test write_symbols instead of
25374 debug_hooks->var_location when setting flag_var_tracking_uninit.
25375
7352c013
RG
253762011-01-14 Richard Guenther <rguenther@suse.de>
25377
25378 PR tree-optimization/47179
25379 * target.def (ref_may_alias_errno): New target hook.
25380 * targhooks.h (default_ref_may_alias_errno): Declare.
25381 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
25382 (default_ref_may_alias_errno): New function.
25383 * target.h (struct ao_ref_s): Declare.
25384 * tree-ssa-alias.c: Include target.h.
25385 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
25386 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
25387 (targhooks.o): Likewise.
25388 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
25389 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
25390
9a6c9288
RG
253912011-01-14 Richard Guenther <rguenther@suse.de>
25392
25393 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
25394
0fdb0d27
RG
253952011-01-14 Richard Guenther <rguenther@suse.de>
25396
25397 PR tree-optimization/47280
25398 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
25399 return CFG changes.
25400 (tree_ssa_forward_propagate_single_use_vars): Deal with
25401 CFG changes from associate_plusminus.
25402
8f66db3b
RG
254032011-01-14 Richard Guenther <rguenther@suse.de>
25404
25405 PR middle-end/47281
25406 Revert
25407 2011-01-11 Richard Guenther <rguenther@suse.de>
25408
280d9630
EB
25409 PR tree-optimization/46076
25410 * tree-ssa.c (useless_type_conversion_p): Conversions from
25411 unprototyped to empty argument list function types are useless.
8f66db3b 25412
6c0c92e6
RG
254132011-01-14 Richard Guenther <rguenther@suse.de>
25414
25415 PR tree-optimization/47286
280d9630 25416 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 25417
db09f943
MJ
254182011-01-14 Martin Jambor <mjambor@suse.cz>
25419
25420 PR middle-end/46823
25421 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
25422
dde8a3a4
AS
254232011-01-13 Anatoly Sokolov <aesok@post.ru>
25424
25425 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
25426 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25427 * config/xtensa/xtensa.c (xtensa_libcall_value,
25428 xtensa_function_value_regno_p): New functions.
25429 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25430
a2b63a20
KT
254312011-01-13 Kai Tietz <kai.tietz@onevision.com>
25432
25433 PR c++/47213
25434 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
25435 PE specific hook.
25436 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
25437 New function prototype.
25438 * config/i386/winnt.c (i386_pe_assemble_visibility):
25439 Warn only if attribute was specified by user.
25440
b41f0b34
MM
254412011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25442
25443 PR target/47251
25444 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
25445 floating point.
25446 (floatunsdidf2_fcfidu): Ditto.
25447
3f3c098d
AK
254482011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25449
25450 * config/s390/s390.c (print_operand_address): Replace 'error' with
25451 'output_operand_lossage'.
25452 (print_operand): Likewise.
25453
29fa95ed
JL
254542011-01-13 Jeff Law <law@redhat.com>
25455
280d9630 25456 PR rtl-optimization/39077
29fa95ed
JL
25457 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
25458 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
25459 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
25460 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
25461 * gcse.c (prune_insertions_deletions): New function.
25462 (compute_pre_data): Use it.
25463
71d12276
DS
254642011-01-13 Dodji Seketeli <dodji@redhat.com>
25465
25466 PR debug/PR46973
25467 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
25468 static function.
61052244 25469 (prune_unused_types_mark): Use it.
71d12276 25470
9b0f04e7
AB
254712011-01-13 Andrey Belevantsev <abel@ispras.ru>
25472
25473 PR rtl-optimization/45352
1c3ba85b 25474 * sel-sched.c: Update copyright years.
9b0f04e7 25475 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 25476 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 25477
d6a3e264
RH
254782011-01-12 Richard Henderson <rth@redhat.com>
25479
a49b692a
RH
25480 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
25481 (TARGET_MD_ASM_CLOBBERS): New.
25482
126b1483
RH
25483 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
25484 (TARGET_DELEGITIMIZE_ADDRESS): New.
25485
f3d9d2e0
RH
25486 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
25487 (clzsi2, *bsch): New patterns.
25488
d84760c9
RH
25489 * config/mn10300/mn10300.md (INT): New mode iterator.
25490 (*mov<INT>_clr): New pattern, and peep2 to generate it.
25491
ec815d65
RH
25492 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
25493 flag_split_wide_types.
25494
d6a3e264
RH
25495 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
25496 (mn10300_trampoline_init): Rewrite without a template, an immediate
25497 load and a direct branch.
25498 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
25499
0f8ab434
AS
255002011-01-12 Anatoly Sokolov <aesok@post.ru>
25501
25502 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25503 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
25504 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
25505 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25506
d8a24b65
KT
255072011-01-12 Kai Tietz <kai.tietz@onevision.com>
25508
25509 PR debug/47209
25510 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
25511 of type.
25512
56e22cab
JH
255132011-01-12 Jan Hubicka <jh@suse.cz>
25514
25515 PR driver/47244
25516 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
25517 (PLUGIN_COND_CLOSE): New macro.
25518 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
25519
4b18b3c2
RG
255202011-01-12 Richard Guenther <rguenther@suse.de>
25521
25522 PR lto/47259
25523 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
25524 register variables in a MEM_REF.
25525
8e38461c
JM
255262011-01-12 Joseph Myers <joseph@codesourcery.com>
25527
25528 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
25529 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
25530 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
25531 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
25532 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
25533 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
25534 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
25535 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
25536 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
25537 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
25538 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
25539 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
25540 * config/gnu-user.h: New. Copied from linux.h.
25541 (LINUX_TARGET_STARTFILE_SPEC): Rename to
25542 GNU_USER_TARGET_STARTFILE_SPEC.
25543 (LINUX_TARGET_ENDFILE_SPEC): Rename to
25544 GNU_USER_TARGET_ENDFILE_SPEC.
25545 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
25546 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
25547 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
25548 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
25549 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
25550 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
25551 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
25552 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
25553 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
25554 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
25555 * config/arm/linux-eabi.h (CC1_SPEC): Use
25556 GNU_USER_TARGET_CC1_SPEC.
25557 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
25558 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
25559 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
25560 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
25561 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
25562 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
25563 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
25564 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
25565
a570fc16
RG
255662011-01-12 Richard Guenther <rguenther@suse.de>
25567
25568 PR other/46946
25569 * doc/invoke.texi (ffast-math): Document it is turned on
25570 with -Ofast.
25571
b0223c3e
JH
255722011-01-12 Jan Hubicka <jh@suse.cz>
25573
25574 PR tree-optimization/47233
ca1e00b3
EB
25575 * opts.c (common_handle_option): Disable ipa-reference with profile
25576 feedback.
b0223c3e 25577
1c3ba85b 255782011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
25579
25580 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
25581 error message.
25582
d853ee42
NP
255832011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
25584
25585 * c-parser.c (c_lex_one_token): Updated and reindented some
25586 comments. No changes in code.
25587
4053a5a0
ILT
255882011-01-11 Ian Lance Taylor <iant@google.com>
25589
25590 * godump.c (go_output_var): Don't output the variable if there is
25591 already a type with the same name.
25592
fa3e04d2
ILT
255932011-01-11 Ian Lance Taylor <iant@google.com>
25594
25595 * godump.c (go_format_type): Don't generate float80.
25596
885fe07c
RH
255972011-01-11 Richard Henderson <rth@redhat.com>
25598
72d6e3c5
RH
25599 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
25600 declaration. Rewrite for both speed and size.
25601 (mn10300_address_cost_1): Remove.
25602 (mn10300_register_move_cost): New.
25603 (mn10300_memory_move_cost): New.
25604 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
25605 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
25606 extensions, shifts, BSWAP, CLZ.
25607 (mn10300_wide_const_load_uses_clr): Remove.
25608 (TARGET_REGISTER_MOVE_COST): New.
25609 (TARGET_MEMORY_MOVE_COST): New.
25610 * config/mn10300/mn10300-protos.h: Update.
25611 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
25612
df37c023
RH
25613 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
25614 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
25615 * config/mn10300/mn10300-protos.h: Update.
25616 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
25617 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
25618 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
25619 (*test_int_bitfield, *test_byte_bitfield): Remove.
25620 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 25621 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 25622
85a337b5
RH
25623 * config/mn10300/constraints.md ("c"): Rename from "A".
25624 ("A", "D"): New constraint letters.
25625 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
25626 (fmssf4, fnmasf4, fnmssf4): Likewise.
25627
a5c727e3
RH
25628 * config/mn10300/mn10300.md (isa): New attribute.
25629 (enabled): New attribute.
25630
0d9e23f4
RH
25631 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
25632 (abssf2, negsf2): Define only for hardware fp.
25633 (sqrtsf2): Reformat.
25634 (addsf3, subsf3, mulsf3): Merge expander and insn.
25635
c157b3f0
RH
25636 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
25637 (DEBUGGER_AUTO_OFFSET): Remove.
25638 (DEBUGGER_ARG_OFFSET): Remove.
25639
cc909bba
RH
25640 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
25641 Emit register stores with the same offsets as the hardware.
25642 (mn10300_store_multiple_operation): Don't check that the register
25643 save offsets are monotonic.
25644 * config/mn10300/mn10300-protos.h: Update.
25645
e3b5c2f3
RH
25646 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
25647
885fe07c
RH
25648 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
25649 in terms of the value on the stack, not the MDR register.
25650
6e701822
JH
256512011-01-11 Jan Hubicka <jh@suse.cz>
25652
25653 PR lto/45721
25654 PR lto/45375
25655 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
25656 (symbol_alias_set_destroy, symbol_alias_set_contains,
25657 propagate_aliases_backward): Declare.
25658 * lto-streamer-out.c (struct sets): New sturcture.
25659 (trivally_defined_alias): New function.
25660 (output_alias_pair_p): Rewrite.
25661 (output_unreferenced_globals): Fix output of alias pairs.
25662 (produce_symtab): Likewise.
25663 * ipa.c (function_and_variable_visibility): Set weak alias destination
25664 as needed in lto.
25665 * varasm.c (symbol_alias_set_t): Remove.
25666 (symbol_alias_set_destroy): Export.
25667 (propagate_aliases_forward, propagate_aliases_backward): New functions
25668 based on ...
25669 (compute_visible_aliases): ... this one; remove.
25670 (trivially_visible_alias): New
25671 (trivially_defined_alias): New.
25672 (remove_unreachable_alias_pairs): Rewrite.
25673 (finish_aliases_1): Reorganize code checking if alias is defined.
25674 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
25675 in LTO mode.
25676
1b248907
RG
256772011-01-11 Richard Guenther <rguenther@suse.de>
25678
25679 PR tree-optimization/46076
25680 * tree-ssa.c (useless_type_conversion_p): Conversions from
25681 unprototyped to empty argument list function types are useless.
25682
b1923f0a
RG
256832011-01-11 Richard Guenther <rguenther@suse.de>
25684
25685 PR middle-end/45235
25686 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
25687 volatile MEMs as MEM_READONLY_P.
25688
e98965af
RG
256892011-01-11 Richard Guenther <rguenther@suse.de>
25690
25691 PR tree-optimization/47239
25692 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
25693
9f9ca914
JL
256942011-01-11 Jeff Law <law@redhat.com>
25695
1ee3ea05 25696 PR tree-optimization/47086
9f9ca914
JL
25697 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
25698 IVs from statements that might throw.
25699
345fdcb7
JH
257002011-01-10 Jan Hubicka <jh@suse.cz>
25701
25702 PR lto/45375
25703 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
25704
c459c97b
JH
257052011-01-10 Jan Hubicka <jh@suse.cz>
25706
25707 PR lto/45375
25708 * profile.c (read_profile_edge_counts): Ignore profile inconistency
25709 when correcting profile.
25710
06c9eb51
JH
257112011-01-10 Jan Hubicka <jh@suse.cz>
25712
25713 PR lto/46083
25714 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
25715 DECL_FINI_PRIORITY.
25716 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
25717 Restore DECL_FINI_PRIORITY.
25718
ae9fd815
RW
257192011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25720
25721 * doc/gimple.texi: Fix quoting of multi-word return values in
25722 @deftypefn statements. Ensure presence of return value. Wrap
25723 overlong @deftypefn lines.
25724 (is_gimple_operand, is_gimple_min_invariant_address): Remove
25725 descriptions of removed functions.
25726 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
25727 of multi-word return value in @deftypefn statement.
25728
0ecb4a7c
RW
257292011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25730
25731 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
25732 (Conditional Expressions, Logical Operators)
25733 (Statement and operand traversals): Do not indent smallexample
25734 code. Fix duplicate function argument in example.
25735
2e5e346d
JL
257362011-01-10 Jeff Law <law@redhat.com>
25737
1ee3ea05 25738 PR tree-optimization/47141
2e5e346d
JL
25739 * ipa-split.c (split_function): Handle case where we are
25740 returning a value and the return block has a virtual operand phi.
25741
cf9712cc
JH
257422011-01-10 Jan Hubicka <jh@suse.cz>
25743
1c3ba85b 25744 PR tree-optimization/47234
cf9712cc
JH
25745 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
25746 (pass_feedback_split_functions): Declare.
25747 * passes.c (init_optimization_passes): Add ipa-split as subpass of
25748 tree-profile.
25749 * ipa-split.c (gate_split_functions): Update comments; disable
25750 split-functions for profile_arc_flag and branch_probabilities.
25751 (gate_feedback_split_functions): New function.
25752 (execute_feedback_split_functions): New function.
25753 (pass_feedback_split_functions): New global var.
25754
94cd932c
L
257552011-01-10 H.J. Lu <hongjiu.lu@intel.com>
25756
25757 PR lto/46760
25758 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
25759 calling gimple_call_set_cannot_inline.
25760
fbbfcaf1
IS
257612011-01-10 Iain Sandoe <iains@gcc.gnu.org>
25762
25763 * config/darwin-sections.def: Remove unused section.
25764
d06865bf
DK
257652011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
25766
25767 PR c++/47218
25768 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
25769
96bbfbac
NP
257702011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
25771
25772 PR objc/47232
25773 * c-parser.c (c_parser_declaration_or_fndef): Improved
25774 error message.
25775
1ba6516f
KT
257762011-01-09 Kai Tietz <kai.tietz@onevision.com>
25777
25778 * config/i386/winnt.c (i386_pe_start_function): Make sure
25779 to switch back to function's section.
25780
0c5d770e
IS
257812011-01-09 Iain Sandoe <iains@gcc.gnu.org>
25782
25783 PR gcc/46902
25784 PR testsuite/46912
25785 * plugin.c: Move include of dlfcn.h from here...
25786 * system.h: ... to here.
25787
257882011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
25789
25790 * doc/cpp.texi (C++ Named Operators): Fix markup for header
25791 file name.
25792 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
25793 two extra empty pages in PDF output.
25794
046608a3
NP
257952011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
25796
25797 PR objc/47078
25798 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
25799 for error recovery purposes behave as if it was not specified so
25800 that the default type is usd.
25801
8cb114b9
JH
258022011-01-07 Jan Hubicka <jh@suse.cz>
25803
25804 PR tree-optmization/46469
25805 * ipa.c (function_and_variable_visibility): Clear needed flags on
25806 nodes with external decls; handle weakrefs merging correctly.
25807
b294a75e
JM
258082011-01-07 Joseph Myers <joseph@codesourcery.com>
25809
25810 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
25811 not false.
25812
96bdf9b4
JH
258132011-01-07 Jan Hubicka <jh@suse.cz>
25814
f60c2554 25815 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
25816 and no longer claim that gold is required for linker plugin.
25817 * configure: Regenerate.
25818 * gcc.c (PLUGIN_COND): New macro.
25819 (LINK_COMMAND_SPEC): Use it.
25820 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
25821 * config.in (HAVE_LTO_PLUGIN): New.
25822 * configure.ac (--with-lto-plugin): New parameter; autodetect
25823 HAVE_LTO_PLUGIN.
25824
17afc0fe
JH
258252011-01-07 Jan Hubicka <jh@suse.cz>
25826
25827 PR tree-optimization/46367
25828 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
25829 when we can update original.
25830 (cgraph_mark_inline_edge): Sanity check.
25831 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
25832
d4c48c0f
UW
258332011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25834
25835 * config/spu/spu.h (ASM_COMMENT_START): Define.
25836
96f5b137
L
258372011-01-07 H.J. Lu <hongjiu.lu@intel.com>
25838
25839 PR driver/42445
25840 * gcc.c (%>S): New.
25841 (SWITCH_KEEP_FOR_GCC): Likewise.
25842 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
25843 (do_spec_1): Handle "%>".
25844
25845 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
25846
c6a8f6de
JJ
258472011-01-07 Jakub Jelinek <jakub@redhat.com>
25848
c21bbd7a
JJ
25849 PR target/47201
25850 * config/i386/i386.c (ix86_delegitimize_address): If
25851 simplify_gen_subreg fails, return orig_x.
25852
c6a8f6de
JJ
25853 PR bootstrap/47187
25854 * value-prof.c (gimple_stringop_fixed_value): Handle
25855 lhs of the call properly.
25856
fe95fbf9
JH
258572011-01-07 Jan Hubicka <jh@suse.cz>
25858
25859 PR lto/45375
25860 * lto-opt.c (lto_reissue_options): Set flag_shlib.
25861
14d11d40
IS
258622011-01-07 Iain Sandoe <iains@gcc.gnu.org>
25863
72e961c8
EB
25864 * target.def (function_switched_text_sections): New hook.
25865 * doc/tm.texi: Regenerated.
25866 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 25867 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
25868 (final_scan_insn): Call function_switched_text_sections when a
25869 mid-function section change occurs.
14d11d40 25870 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
25871 * config/darwin-protos.h (darwin_function_switched_text_sections):
25872 Likewise.
14d11d40 25873 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 25874 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 25875
0b764288
IS
258762011-01-07 Iain Sandoe <iains@gcc.gnu.org>
25877
25878 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
25879 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
25880 the secondary code fragment when outputting for DWARF == 2.
25881
2ac6bb04
AS
258822011-01-07 Anatoly Sokolov <aesok@post.ru>
25883
25884 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25885 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
25886 Remove.
25887 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
25888 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25889
9f82de11
EB
258902011-01-06 Eric Botcazou <ebotcazou@adacore.com>
25891
25892 PR debug/46704
280d9630
EB
25893 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
25894 when it is not empty.
9f82de11
EB
25895
258962011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 25897
1ed72abf 25898 Bobcat Enablement
14b52538 25899 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 25900 (case ${target}): Add btver1.
14b52538 25901 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 25902 -march=native recognize btver1 processors.
14b52538 25903 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 25904 btver1 def_and_undef
14b52538 25905 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
25906 btver1 cost table.
25907 (m_BTVER1): New definition.
25908 (m_AMD_MULTIPLE): Includes m_BTVER1.
25909 (initial_ix86_tune_features): Add btver1 tune.
25910 (processor_target_table): Add btver1 entry.
25911 (static const char *const cpu_names): Add btver1 entry.
25912 (software_prefetching_beneficial_p): Add btver1.
25913 (ix86_option_override_internal): Add btver1 instruction sets.
25914 (ix86_issue_rate): Add btver1.
25915 (ix86_adjust_cost): Add btver1.
14b52538 25916 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
25917 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
25918 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
25919 * config/i386/i386.md (define_attr "cpu"): Add btver1.
25920
e1a973d8
RO
259212011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25922
25923 PR target/43309
25924 * config/i386/i386.c (legitimize_tls_address)
25925 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
25926 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
25927 (tls_initial_exec_64_sun): New pattern.
25928
c73f67c5
GP
259292011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
25930
25931 * doc/invoke.texi (Overall Options): Improve wording and markup
25932 of the description of -wrapper.
25933
bc4c6f9c
JM
259342011-01-06 Joseph Myers <joseph@codesourcery.com>
25935
25936 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
25937 rdynamic, threads): New Driver options.
25938
adb75db0
RO
259392011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25940
25941 PR target/38118
25942 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
25943 if coming from .tdata.
25944 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
25945
402c1cb4
JH
259462011-01-06 Jan Hubicka <jh@suse.cz>
25947
25948 PR lto/47188
25949 * collect2.c (main): Do not enable LTOmode when plugin is active.
25950
a4da6485
RO
259512011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25952
25953 PR other/45915
25954 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
25955 --version output if supported.
25956 * configure: Regenerate.
25957
028dbdf4
JM
259582011-01-06 Joseph Myers <joseph@codesourcery.com>
25959
25960 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
25961 Driver options.
25962
dfe776dd
JJ
259632011-01-06 Jakub Jelinek <jakub@redhat.com>
25964
25965 PR c/47150
25966 * c-convert.c (convert): When converting a complex expression
25967 other than COMPLEX_EXPR to a different complex type, ensure
25968 c_save_expr is called instead of save_expr, unless in_late_binary_op.
25969 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
25970 when converting COMPLEX_TYPE.
25971
210dedfe
IR
259722011-01-06 Ira Rosen <irar@il.ibm.com>
25973
25974 PR tree-optimization/47139
25975 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
25976 only the last reduction value is used outside the loop. Update
25977 documentation.
25978
cd33a412
JM
259792011-01-05 Joseph Myers <joseph@codesourcery.com>
25980
25981 * config/rtems.opt: New.
25982 * config.gcc (*-*-rtems*): Use rtems.opt.
25983
819edd94
CF
259842011-01-05 Changpeng Fang <changpeng.fang@amd.com>
25985
25986 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
25987 processors do not support 3DNow instructions.
25988
dc242c4a
UW
259892011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25990
25991 * config/spu/spu.c (spu_option_override): Set parameter
25992 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
25993
be286227
JH
259942011-01-05 Jan Hubicka <jh@suse.cz>
25995
25996 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
25997 at the command line.
25998
644e637f
MJ
259992011-01-05 Martin Jambor <mjambor@suse.cz>
26000
26001 PR lto/47162
26002 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
26003 deltas on streamed outgoing edges.
26004 (output_node_opt_summary): Output info for outgoing edges only when
26005 the node is in new parameter set.
26006 (output_cgraph_opt_summary): New parameter set, passed to the two
26007 aforementioned functions. Update its forward declaration and its
26008 callee too.
26009
7bd11157
TT
260102011-01-05 Tom Tromey <tromey@redhat.com>
26011
26012 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
26013 operator to c_finish_omp_atomic.
26014 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
26015 (build_unary_op): Update.
26016 (build_modify_expr): Update.
26017 (build_asm_expr): Update.
26018
f626b979
UW
260192011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26020
26021 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
26022 newly inserted insns.
26023 (pad_bb): Likewise.
26024 (spu_emit_branch_hint): Likewise.
26025 (insert_hbrp_for_ilb_runout): Likewise.
26026 (spu_machine_dependent_reorg): Call df_finish_pass after
26027 schedule_insns returns.
26028
4c825c02
UW
260292011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26030
26031 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
26032
5e9fba51
EB
260332011-01-05 Eric Botcazou <ebotcazou@adacore.com>
26034
26035 PR tree-optimization/47005
26036 * tree-sra.c (struct access): Add 'non_addressable' bit.
26037 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
26038 (decide_one_param_reduction): Return 0 if the parameter is passed by
26039 reference and one of the accesses in the group is non_addressable.
26040
3ebb5ca6
EB
260412011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26042
26043 PR tree-optimization/47056
26044 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
26045 (mark_load): Likewise. Handle FUNCTION_DECL specially.
26046 (mark_store): Likewise. Pass STMT to ipa_record_reference.
26047
d5d4d14e
EB
260482011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26049
26050 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
26051 initializer. Skip view conversions from aggregate types.
26052
d996ef70
KT
260532011-01-04 Kai Tietz <kai.tietz@onevision.com>
26054
26055 PR bootstrap/47055
26056 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
26057
509d65dd 260582011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
26059
26060 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
26061 obvious typo.
26062
55c623b5
UW
260632011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26064
26065 * function.c (thread_prologue_and_epilogue_insns): Do not crash
26066 on empty epilogue sequences.
26067
b98d6b35
JM
260682011-01-04 Joseph Myers <joseph@codesourcery.com>
26069
26070 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
26071 non-static): New Driver options.
26072
a0d43bac
JZ
260732011-01-04 Jie Zhang <jie@codesourcery.com>
26074
26075 PR driver/47137
26076 * gcc.c (default_compilers[]): Set combinable field to 0
26077 for all assembly languages.
26078
2b18eb32
MX
260792011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
26080
26081 * config/mips/loongson3a.md: New file.
26082 * config/mips/mips.md: Include loongson3a.md.
26083 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
26084 TUNE_LOONGSON_3A.
26085
42a48c4f
EB
260862011-01-03 Eric Botcazou <ebotcazou@adacore.com>
26087
26088 PR middle-end/47017
26089 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
26090 instead of convert_memory_address_addr_space on the base expression.
26091
9c1732c4
UW
260922011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26093
26094 * config/spu/spu.c (spu_option_override): Update error text
26095 for bad -march= / -mtune= values.
26096
aa474365
UW
260972011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26098
26099 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
26100 if branch-hint optimization will be performed.
26101
9766135b
JJ
261022011-01-03 Jakub Jelinek <jakub@redhat.com>
26103
371556ee
JJ
26104 PR tree-optimization/47148
26105 * ipa-split.c (split_function): Convert arguments to
26106 DECL_ARG_TYPE if possible.
26107
1ac12fa2
JJ
26108 PR tree-optimization/47155
26109 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
26110 when computing uns.
26111
9766135b
JJ
26112 PR rtl-optimization/47157
26113 * combine.c (try_combine): If undobuf.other_insn becomes
26114 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
26115 and set *new_direct_jump_p too.
26116
f4a2e571
SP
261172011-01-03 Sebastian Pop <sebastian.pop@amd.com>
26118
26119 PR tree-optimization/47021
26120 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
26121
9f8e43c0
JJ
261222011-01-03 Jakub Jelinek <jakub@redhat.com>
26123
26124 * gcc.c (process_command): Update copyright notice dates.
26125 * gcov.c (print_version): Likewise.
26126 * gcov-dump.c (print_version): Likewise.
26127 * mips-tfile.c (main): Likewise.
26128 * mips-tdump.c (main): Likewise.
26129
1a2e38f3
MJ
261302011-01-03 Martin Jambor <mjambor@suse.cz>
26131
26132 PR tree-optimization/46801
26133 * tree-sra.c (type_internals_preclude_sra_p): Check whether
26134 aggregate fields start at byte boundary instead of the bit-field flag.
26135
56b721c5
L
261362011-01-03 H.J. Lu <hongjiu.lu@intel.com>
26137
26138 PR driver/47137
26139 * gcc.c (main): Revert revision 168407.
26140
839d549b
MJ
261412011-01-03 Martin Jambor <mjambor@suse.cz>
26142
26143 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
26144
4ce99a20 261452011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
26146
26147 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
26148 vector optab to expand vector/scalar shift, update gimple to vector.
26149
76df0ae6
MJ
261502011-01-03 Martin Jambor <mjambor@suse.cz>
26151
26152 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
26153 a thunk.
26154
ce47fda3
MJ
261552011-01-03 Martin Jambor <mjambor@suse.cz>
26156
26157 PR tree-optimization/46984
26158 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
26159 HOST_WIDE_INT.
26160 (cgraph_create_indirect_edge): Fixed line length.
26161 (cgraph_indirect_call_info): Declare.
26162 (cgraph_make_edge_direct) Update declaration.
26163 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
26164 (cgraph_create_indirect_edge): Use it.
26165 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
26166 callees.
26167 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
26168 the new thunk_delta representation.
26169 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
26170 HOST_WIDE_INT.
26171 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
26172 (ipa_read_indirect_edge_info): Likewise.
26173 * lto-cgraph.c (output_edge_opt_summary): New function.
26174 (output_node_opt_summary): Call it on all outgoing edges.
26175 (input_edge_opt_summary): New function.
26176 (input_node_opt_summary): Call it on all outgoing edges.
26177
1e67fa1f
L
261782011-01-02 H.J. Lu <hongjiu.lu@intel.com>
26179
26180 PR driver/47137
26181 * gcc.c (main): Don't check have_o when settting combine_inputs.
26182
6656b2ac
EB
261832011-01-02 Eric Botcazou <ebotcazou@adacore.com>
26184
26185 * regrename.c: Add general comment describing the pass.
26186 (struct du_head): Remove 'length' field.
26187 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
26188 (regrename_optimize): Do not sort chains. Rework comments, add others.
26189 Force renaming to the preferred class (if any) in the first pass and do
26190 not consider registers that belong to it in the second pass.
26191 (create_new_chain): Do not set 'length' field.
26192 (scan_rtx_reg): Likewise.
26193
bc470c24
JJ
261942011-01-02 Jakub Jelinek <jakub@redhat.com>
26195
4e996296
JJ
26196 PR tree-optimization/47140
26197 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
26198 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
26199 to bit_value_binop.
26200
bc470c24 26201 PR rtl-optimization/47028
6656b2ac
EB
26202 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
26203 parm_birth_insn instead of at the beginning of first bb.
bc470c24 26204
5af62fcd 262052011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
26206
26207 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
26208 Remove the word "see" before "@pxref".
26209 * doc/rtl.texi: Remove the word "see" before "@pxref".
26210
0e20c89f
JH
262112011-01-01 Jan Hubicka <jh@suse.cz>
26212
6656b2ac
EB
26213 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
26214 memory.
0e20c89f 26215
220e83ca
KT
262162011-01-01 Kai Tietz <kai.tietz@onevision.com>
26217
26218 PR target/38662
6656b2ac 26219 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 26220
ad41bd84 26221\f
797103eb 26222Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
26223
26224Copying and distribution of this file, with or without modification,
26225are permitted in any medium without royalty provided the copyright
26226notice and this notice are preserved.