3498f979aff1f5386feaca8d91f3d168369f551a
[gcc.git] / gcc / ChangeLog
1 2011-09-17 Jakub Jelinek <jakub@redhat.com>
2
3 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
4 and V4DImode.
5 (ix86_build_signbit_mask): Likewise.
6 (ix86_expand_int_vcond): Likewise. Handle V16HImode and
7 V32QImode.
8 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
9 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
10 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename
11 to...
12 (<code><mode>3) ... this.
13 (avx2_<code><mode>3 smaxmin expand): Rename to...
14 (<code><mode>3) ... this.
15 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
16 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
17 VI8_AVX2 mode iterator.
18 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
19 VI8_AVX2 mode iterator.
20 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
21 New expanders.
22
23 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
24
25 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
26 throughout file.
27
28 2011-09-16 David S. Miller <davem@davemloft.net>
29
30 * config/sparc/visintrin.h: New file.
31 * config.gcc: Add it to extra_headers on sparc.
32
33 2011-09-16 Jakub Jelinek <jakub@redhat.com>
34
35 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
36 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
37 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
38 reduc_smin_v4sf): Adjust callers.
39 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
40 New expanders.
41
42 * config/i386/sse.md (vec_extract_hi_<mode>,
43 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
44 vextracti128 instead of vextractf128 for -mavx2 and
45 integer vectors. For V4DFmode fix up mode attribute.
46 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
47 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
48 instead of V8SF mode attribute.
49 (avx2_extracti128): Change into define_expand.
50 * config/i386/i386.c (ix86_expand_vector_extract): Handle
51 32-byte vector modes if TARGET_AVX.
52
53 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
54
55 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
56 (umulqi3_highpart, smulqi3_highpart): Ditto.
57 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
58 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
59 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
60
61 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
62
63 PR target/50358
64 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
65 (*maddqi4, *maddqi4.const): New insns.
66 (*msubqi4, *msubqi4.const): New insns.
67 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
68 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
69 HImode by 1 in the case of multiplying with a CONST_INT.
70 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
71
72 2011-09-15 Jan Hubicka <jh@suse.cz>
73
74 PR lto/50430
75 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
76 error_mark_node in the DECL_INITIAL of vtable.
77
78 2011-09-15 Diego Novillo <dnovillo@google.com>
79
80 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
81 @SYSROOT_CFLAGS_FOR_TARGET@.
82 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from
83 build-sysroot.
84 * configure: Regenerate.
85 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
86 Remove setting of GCC_UNDER_TEST.
87
88 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
89
90 * config/i386/i386.c (output_fp_compare): Return %v prefixed
91 instruction mnemonics for TARGET_AVX.
92
93 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
94 "type" attribute calculation.
95 (*movdf_internal): Ditto.
96 (*movsf_internal): Ditto.
97
98 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
99
100 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
101
102 2011-09-15 Jason Merrill <jason@redhat.com>
103
104 PR c++/50361
105 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
106
107 2011-09-15 Jan Hubicka <jh@suse.cz>
108
109 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
110 simplify obviously true clauses.
111 (and_predicates, or_predicates): Add conditions parameter.
112 (inline_duplication_hoook): Update.
113 (mark_modified): New function.
114 (unmodified_parm): New function.
115 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
116 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
117 Use unmodified_parm.
118 (estimate_function_body_sizes): Update.
119 (remap_predicate): Update.
120
121 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
122
123 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
124 read-after-read dependencies in basic block SLP.
125
126 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
127
128 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
129 throughout file.
130
131 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
132
133 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
134 throughout file.
135
136 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
137
138 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
139 throughout file.
140
141 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
142
143 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
144 throughout file.
145 * config/rs6000/constraints.md: Likewise.
146
147 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
148
149 * config/microblaze/microblaze.md: Use match_test rather than
150 eq/ne symbol_ref throughout file.
151
152 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
153
154 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
155 throughout file.
156
157 2011-09-14 Tom de Vries <tom@codesourcery.com>
158
159 PR middle-end/50251
160 * explow.c (emit_stack_restore): Set crtl->need_drap if
161 stack_restore is emitted.
162
163 2011-09-14 Julian Brown <julian@codesourcery.com>
164
165 * config/arm/arm.c (arm_override_options): Add unaligned_access
166 support.
167 (arm_file_start): Emit attribute for unaligned access as appropriate.
168 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
169 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
170 (insv, extzv): Add unaligned-access support.
171 (extv): Change to expander. Likewise.
172 (extzv_t1, extv_regsi): Add helpers.
173 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
174 (unaligned_storesi, unaligned_storehi): New.
175 (*extv_reg): New (previous extv implementation).
176 * config/arm/arm.opt (munaligned_access): Add option.
177 * config/arm/constraints.md (Uw): New constraint.
178 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
179 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
180 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
181 volatile accesses when -fstrict-volatile-bitfields is in effect.
182 (extract_bit_field_1): Likewise.
183
184 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
185
186 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
187 a scalar integer before applying integer-only optimisations to
188 inner arithmetic.
189
190 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
191
192 * config/mips/mips.c (mips_expand_epilogue): Generate a
193 simple_return only if the return address is in r31.
194
195 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
196
197 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
198 NULL for a jump that is a cc0 insn, pick the previous insn for
199 move_before.
200
201 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
202
203 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
204 throughout file.
205
206 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
207
208 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
209 throughout file.
210
211 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
212
213 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
214 symbol_ref throughout file.
215
216 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
217
218 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
219 throughout file.
220
221 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
222
223 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
224 throughout file.
225
226 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
227
228 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
229 throughout file.
230 * config/arm/neon.md: Likewise.
231 * config/arm/vfp.md: Likewise.
232 * config/arm/thumb2.md: Likewise.
233 * config/arm/cortex-m4.md: Likewise.
234
235 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
236
237 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
238 define_insn patterns for combine.
239
240 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
241
242 * reorg.c: Always define make_return_insns.
243
244 2011-09-13 Jan Hubicka <jh@suse.cz>
245
246 PR other/49533
247 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
248
249 2011-09-13 Jan Hubicka <jh@suse.cz>
250
251 PR other/49533
252 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
253
254 2011-09-13 Paul Brook <paul@codesourcery.com>
255
256 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
257 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
258 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
259 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
260 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
261 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
262 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
263 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
264 enabling unwind tables.
265 (c6x_debug_unwind_info): New function.
266 (TARGET_ARM_EABI_UNWINDER): Define.
267 (TARGET_DEBUG_UNWIND_INFO): Define.
268 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
269 (TARGET_EXTRA_CFI_SECTION): Remove.
270 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
271 * ginclude/unwind-arm-common.h: New file.
272
273 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
274
275 PR target/50358
276 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
277 * config/avr/avr.md: (extend_s): New code attribute.
278 (mul_r_d): New code attribute.
279 (*maddqihi4, *umaddqihi4): New insns.
280 (*msubqihi4, *umsubqihi4): New insns.
281 (*usmaddqihi4, *sumaddqihi4): New insns.
282 (*usmsubqihi4, *susubdqihi4): New insns.
283 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
284 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
285 (*umsubqihi4.uconst.ashift): New insn-and-split.
286 (*msubqihi4.sconst.ashift): New insn-and-split.
287 (*sumaddqihi4.uconst): New insn-and-split.
288 (*sumsubqihi4.uconst): New insn-and-split.
289 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
290 PLUS:HI and MINUS:HI.
291
292 2011-09-13 Revital Eres <revital.eres@linaro.org>
293
294 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
295 (optimize_sc): Adjust call to remove_node_from_ps.
296 (sms_schedule): Add print info.
297
298 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
299
300 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
301 flags specially.
302
303 2011-09-12 Jakub Jelinek <jakub@redhat.com>
304
305 PR bootstrap/50010
306 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
307 NOTE_INSN_CFI notes, with the exception of
308 NOTE_INSN_SWITCH_TEXT_SECTIONS.
309
310 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
311 Richard Sandiford <rdsandiford@googlemail.com>
312
313 * config/mips/mips.c (mips_epilogue): New structure.
314 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
315 restoring registers.
316 (mips_epilogue_emit_cfa_restores): New function.
317 (mips_epilogue_set_cfa): Likewise.
318 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
319 the current CFA register from the stack, redefine the CFA in terms
320 of the stack pointer.
321 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
322 to the epilogue instructions.
323
324 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
325
326 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
327 argument.
328 (mips16e_build_save_restore): Update accordingly.
329
330 2011-09-12 Jakub Jelinek <jakub@redhat.com>
331
332 PR rtl-optimization/50212
333 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
334 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
335
336 PR debug/50299
337 * calls.c (load_register_parameters): Use use_reg_mode instead
338 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
339 entry.
340 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
341 for stack CALL_INSN_FUNCTION_USAGE uses.
342 * expr.h (use_reg_mode): New prototype.
343 (use_reg): Changed into inline around use_reg_mode.
344 * expr.c (use_reg): Renamed to...
345 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
346 mode to that mode instead of VOIDmode.
347 * var-tracking.c (prepare_call_arguments): Don't track parameters
348 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
349 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
350 EXPR_LIST mode.
351
352 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
353
354 PR target/43746
355 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
356 (progmem_section): New Variable.
357 (avr_asm_init_sections): Initialize it.
358 (TARGET_ASM_SELECT_SECTION): Define to...
359 (avr_asm_select_section): ... this new Function.
360 (avr_replace_prefix): New Function.
361 (avr_asm_function_rodata_section): Use it.
362 (avr_insert_attributes): Don't add section attribute for PROGMEM.
363 (avr_section_type_flags): Use avr_progmem_p instead of section
364 name to detect if object is in PROGMEM.
365 (avr_asm_named_section): Set section name prefix for objects in
366 PROGMEM.
367
368 2011-09-12 Jakub Jelinek <jakub@redhat.com>
369
370 PR bootstrap/50352
371 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
372 sprintf format string.
373
374 2011-09-12 Richard Guenther <rguenther@suse.de>
375
376 PR tree-optimization/50343
377 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
378 that the reduction is over an SSA name before checking its definition.
379
380 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
381
382 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
383 throughout file.
384
385 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
386
387 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
388 throughout file.
389 * config/mips/sb1.md: Likewise.
390 * config/mips/predicates.md: Replace (match_test "!...")
391 with (not (match_test "..."))
392 * config/mips/constraints.md: Likewise.
393
394 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
395
396 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
397 * config/arm/arm-tables.opt: Regenerate.
398 * config/arm/arm-tune.md: Regenerate.
399 * config/arm/arm.c (arm_file_start): Output .arch directive when
400 user passes -mcpu=generic-*.
401 (arm_issue_rate): Add genericv7a support.
402 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
403 (ASM_CPU_SPEC): New define.
404 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
405 * config/arm/semi.h (ASM_SPEC): Likewise.
406 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
407 and -mtune=generic-*.
408
409 2011-09-09 Richard Guenther <rguenther@suse.de>
410
411 PR tree-optimization/50328
412 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
413 constant or default-def operand.
414
415 2011-09-09 Richard Guenther <rguenther@suse.de>
416
417 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
418 last statement.
419
420 2011-09-09 Richard Guenther <rguenther@suse.de>
421
422 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
423 instead of a statement.
424 * gimple-fold.c (fold_stmt_inplace): Likewise.
425 * sese.c (graphite_copy_stmts_from_block): Adjust.
426 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
427 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
428 fold_stmt.
429 (forward_propagate_addr_into_variable_array_index): Likewise.
430 (forward_propagate_addr_expr_1): adjust.
431 (associate_plusminus): Likewise.
432 (ssa_forward_propagate_and_combine): Likewise.
433 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
434 (execute_cse_reciprocals): Likewise.
435 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
436
437 2011-09-09 Nick Clifton <nickc@redhat.com>
438
439 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
440 Return a positive value to indicate that the bits at the
441 bottom of the register should be cleared.
442
443 2011-09-09 Richard Guenther <rguenther@suse.de>
444
445 * tree-ssa-operands.c (swap_tree_operands): Always adjust
446 existing operand positions.
447
448 2011-09-09 Richard Guenther <rguenther@suse.de>
449
450 PR middle-end/50333
451 * tree-data-ref.c (split_constant_offset): Do not try to handle
452 ternary ops.
453
454 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
455
456 PR tree-optimization/50318
457 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
458 typo in use of mult_rhs1 and mult_rhs2.
459
460 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
461
462 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
463 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
464
465 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
466
467 * config/arm/arm.md (push_multi): Emit predicates.
468 (push_fp_multi): Likewise.
469 * config/arm/arm.c (vfp_output_fstmd): Likewise.
470
471 2011-09-08 Dodji Seketeli <dodji@redhat.com>
472
473 PR c++/33255 - Support -Wunused-local-typedefs warning
474 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
475 (pushdecl): Use the new record_locally_defined_typedef.
476 (store_parm_decls): Allocate cfun->language.
477 (finish_function): Use the new maybe_warn_unused_local_typedefs,
478 and free cfun->language.
479 (c_push_function_context): Allocate cfun->language here only if needed.
480 (c_pop_function_context): Likewise, mark cfun->language
481 for collection only when it should be done.
482 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
483 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
484 maybe_record_local_typedef_use.
485 * doc/invoke.texi: Update documentation for
486 -Wunused-local-typedefs.
487
488 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
489
490 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
491 (ix86_avoid_lea_for_add): Likewise.
492 (ix86_avoid_lea_for_addr): Likewise.
493 (ix86_split_lea_for_addr): Likewise.
494
495 * config/i386/i386.c (LEA_MAX_STALL): New.
496 (increase_distance): Likewise.
497 (insn_defines_reg): Likewise.
498 (insn_uses_reg_mem): Likewise.
499 (distance_non_agu_define_in_bb): Likewise.
500 (distance_agu_use_in_bb): Likewise.
501 (ix86_lea_outperforms): Likewise.
502 (ix86_ok_to_clobber_flags): Likewise.
503 (ix86_avoid_lea_for_add): Likewise.
504 (ix86_avoid_lea_for_addr): Likewise.
505 (ix86_split_lea_for_addr): Likewise.
506 (distance_non_agu_define): Search in pred BBs added.
507 (distance_agu_use): Search in succ BBs added.
508 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
509 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
510 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
511
512 * config/i386/i386.md: Split added to transform non destructive
513 add into move and add.
514 (lea_1): transformed into insn_and_split to avoid AGU stalls.
515 (lea<mode>_2): Likewise.
516
517 2011-09-08 Martin Jambor <mjambor@suse.cz>
518
519 PR tree-optimization/50287
520 * ipa-split.c (split_function): Do not create SSA names for
521 non-gimple-registers.
522
523 2011-09-08 Richard Guenther <rguenther@suse.de>
524
525 PR tree-optimization/19831
526 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
527 skip builtins with vdefs that do not really store something.
528 (propagate_necessity): For calls to free that we can associate
529 with an allocation function do not mark the freed pointer
530 definition necessary.
531 (eliminate_unnecessary_stmts): Remove a call to free if
532 the associated call to an allocation function is not necessary.
533
534 2011-09-08 Richard Guenther <rguenther@suse.de>
535
536 PR tree-optimization/19831
537 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
538 allocation functions as necessary.
539
540 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
541
542 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
543 cut from ...
544 (darwin_default_min_version): Amended to provide defaults
545 for the cross directory case.
546 (darwin_driver_init): call darwin_default_min_version unconditionally.
547 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
548 * config/darwin9.h: Likewise.
549 * config/darwin10.h: Likewise.
550 * config/rs6000/darwin7.h: Likewise.
551
552 2011-09-08 Jakub Jelinek <jakub@redhat.com>
553
554 PR target/50310
555 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
556 code early if TARGET_AVX.
557 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
558
559 2011-09-07 Jakub Jelinek <jakub@redhat.com>
560
561 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
562 duplicates.
563
564 PR target/50310
565 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
566 "mode" attribute computation.
567
568 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
569
570 * regrename.c (struct du_head): Make nregs signed.
571 (closed_chains): Remove.
572 (create_new_chain): Return the new chain.
573 (chain_from_id): New static function.
574 (dump_def_use_chain): Change argument to be an int, indicating
575 the first ID to print. All callers changed.
576 (merge_overlapping_regs): Use chain_from_id. Assert that
577 chains don't conflict with themselves.
578 (rename_chains): Take no argument. Iterate over id_to_chain
579 rather to find chains to rename. Clear tick before the main loop.
580 (struct incoming_reg_info): New struct.
581 (struct bb_rename_info): New struct.
582 (init_rename_info, set_incoming_from_chain, merge_chains): New
583 static functions.
584 (regrename_analyze): New static function, broken out of
585 regrename_optimize. Record and make use of open chain information
586 at basic block boundaries, and merge chains where possible.
587 (scan_rtx_reg): Make this_nregs signed. Don't update
588 closed_chains.
589 (build_def_use): Return a bool to indicate success. All callers
590 changed. Don't initialize global data here.
591 (regrename_optimize): Move most code out of here into
592 regrename_analyze.
593 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
594 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
595 static inline functions.
596 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
597
598 * bb-reorder.c (insert_section_boundary_note): Don't check
599 optimize_function_for_speed_p.
600 (gate_handle_partition_blocks): Do it here instead.
601 (gate_handle_reorder_blocks): Move preliminary checks here ...
602 (rest_of_handle_reorder_blocks): ... from here.
603
604 2011-09-07 Martin Jambor <mjambor@suse.cz>
605
606 PR middle-end/50301
607 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
608 function index bounds.
609 (perhaps_add_new_callers): Likewise.
610
611 2011-09-07 Martin Jambor <mjambor@suse.cz>
612
613 PR tree-optimization/49911
614 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
615 enumerations to the corresponding plain integer type.
616
617 2011-09-07 Richard Guenther <rguenther@suse.de>
618
619 PR tree-optimization/50319
620 * tree-if-conv.c (set_bb_predicate): Assert we only set
621 canonical predicates.
622 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
623 around canonical predicates.
624 (predicate_bbs): Do not re-gimplify already canonical
625 predicates. Properly unshare them though.
626 (find_phi_replacement_condition): Simplify.
627
628 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
629
630 PR target/49030
631 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
632 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
633 reusing the old code from get_arm_condition_code. Return ARM_NV
634 for invalid comparison codes.
635 (get_arm_condition_code): Redefine in terms of
636 maybe_get_arm_condition_code.
637 * config/arm/predicates.md (arm_comparison_operator): Use
638 maybe_get_arm_condition_code.
639
640 2011-09-07 Richard Guenther <rguenther@suse.de>
641
642 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
643 Canonicalize negated predicates by swapping edges.
644 (forward_propagate_into_cond): Likewise.
645
646 2011-09-07 Richard Guenther <rguenther@suse.de>
647
648 PR tree-optimization/50213
649 * tree-flow.h (simple_iv_increment_p): Declare.
650 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
651 POINTER_PLUS_EXPR.
652 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
653 not propagate simple IV counter increments.
654
655 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
656 Iain Sandoe <iains@gcc.gnu.org>
657
658 * config/rs6000/rs6000.c (compute_save_world_info): Test
659 cfun->has_nonlocal_label to determine if the out-of-line save
660 world call may be used.
661
662 2011-09-07 Nick Clifton <nickc@redhat.com>
663
664 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
665 label on the parallel part of the insn.
666
667 2011-09-07 Jakub Jelinek <jakub@redhat.com>
668
669 PR debug/50191
670 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
671 avoid_constant_pool_reference first instead of last.
672
673 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
674
675 * doc/configfiles.texi (Configuration Files): Update documentation
676 about tm_p.h and remove FIXME comment.
677
678 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
679
680 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
681 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
682
683 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
684
685 * config/darwin10.h Remove duplicate LIB_SPEC.
686
687 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
688
689 PR middle-end/44382
690 * target.def (reassociation_width): New hook.
691
692 * doc/tm.texi.in (reassociation_width): Likewise.
693
694 * doc/tm.texi (reassociation_width): Likewise.
695
696 * doc/invoke.texi (tree-reassoc-width): New param documented.
697
698 * hooks.h (hook_int_uint_mode_1): New default hook.
699
700 * hooks.c (hook_int_uint_mode_1): Likewise.
701
702 * config/i386/i386.h (ix86_tune_indices): Add
703 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
704
705 (TARGET_REASSOC_INT_TO_PARALLEL): New.
706 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
707
708 * config/i386/i386.c (initial_ix86_tune_features): Add
709 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
710
711 (ix86_reassociation_width): New function.
712
713 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
714
715 * tree-ssa-reassoc.c (get_required_cycles): New function.
716 (get_reassociation_width): Likewise.
717 (swap_ops_for_binary_stmt): Likewise.
718 (rewrite_expr_tree_parallel): Likewise.
719
720 (rewrite_expr_tree): Refactored. Part of code moved into
721 swap_ops_for_binary_stmt.
722
723 (reassociate_bb): Now checks reassociation width to be used and
724 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
725
726 2011-09-06 Richard Guenther <rguenther@suse.de>
727
728 PR tree-optimization/47025
729 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
730 uses nothing.
731 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
732 BUILT_IN_FREE.
733 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
734 definitely points to.
735 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
736 BUILT_IN_VA_START doesn't let its va_list argument escape.
737 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
738 not make any previous stores necessary.
739
740 2011-09-06 Martin Jambor <mjambor@suse.cz>
741
742 * ipa-inline.h (struct inline_summary): Move versionable flag...
743 * cgraph.h (struct cgraph_local_info): ...here
744 * ipa-cp.c (determine_versionability): Use the new versionable flag.
745 (determine_versionability): Likewise.
746 (ipcp_versionable_function_p): Likewise.
747 (ipcp_generate_summary): Likewise.
748 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
749 versionable flag.
750 (compute_inline_parameters): Do not clear the versionable flag.
751 (inline_read_section): Do not stream the versionable flag.
752 (inline_write_summary): Likewise.
753 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
754 (input_overwrite_node): Likewise.
755
756 2011-09-06 Richard Guenther <rguenther@suse.de>
757
758 PR tree-optimization/48149
759 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
760 (vn_valueize): Move earlier.
761 (valueize_expr): Use vn_valueize.
762 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
763 operands.
764 (simplify_unary_expression): Simplify.
765
766 2011-09-06 Richard Guenther <rguenther@suse.de>
767
768 PR tree-optimization/48317
769 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
770 trailing array.
771 (sizeof_vn_nary_op): New inline function.
772 (vn_nary_op_lookup_pieces): Adjust.
773 (vn_nary_op_insert_pieces): Likewise.
774 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
775 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
776 any number of operands.
777 (vn_nary_length_from_stmt): New function.
778 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
779 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
780 sized temporary.
781 (vn_nary_op_lookup): Likewise.
782 (vn_nary_op_lookup_stmt): Likewise.
783 (vn_nary_op_insert_into): Likewise.
784 (vn_nary_op_insert_stmt): Likewise.
785 (visit_use): Handle CONSTRUCTOR as nary.
786 * tree-ssa-pre.c (phi_translate_1): Adjust.
787 (create_expression_by_pieces): Likewise.
788 (compute_avail): Likewise.
789
790 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
791
792 * config/arm/arm.c (arm_preferred_simd_mode): Check
793 TARGET_NEON_VECTORIZE_DOUBLE instead of
794 TARGET_NEON_VECTORIZE_QUAD.
795 (arm_autovectorize_vector_sizes): Likewise.
796 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
797 mask of mvectorize-with-neon-double. Add RejectNegative.
798 (mvectorize-with-neon-double): New.
799
800 2011-09-06 Richard Guenther <rguenther@suse.de>
801
802 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
803
804 2011-09-06 Tom de Vries <tom@codesourcery.com>
805
806 * recog.c (asm_labels_ok): New function.
807 (check_asm_operands): Use asm_labels_ok.
808
809 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
810
811 PR target/49606
812 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
813 (PMODE_INSN): New macro.
814 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
815 (mips_got_load, mips_expand_synci_loop): Likewise.
816 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
817 cprestore patterns.
818 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
819 copygp_mips16 patterns.
820 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
821 and use_cprestore patterns.
822 (mips_override_options): Check for incompatible -mabi and -mlong
823 combinations.
824 * config/mips/mips.md (unspec_got<mode>): Rename to...
825 (unspec_got_<mode>): ...this.
826 (copygp_mips16): Use the Pmode iterator.
827 (potential_cprestore, cprestore, use_cprestore): Likewise.
828 (clear_cache, indirect_jump): Use PMODE_INSN.
829 (indirect_jump<mode>): Rename to...
830 (indirect_jump_<mode>): ...this.
831 (tablejump): Use PMODE_INSN.
832 (tablejump<mode>): Rename to...
833 (tablejump_<mode>): ...this.
834 (exception_receiver): Handle restore_gp_si and restore_gp_di.
835 (restore_gp): Use the Pmode iterator.
836 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
837 PMODE_INSN.
838
839 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
840
841 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
842 Fix the type of the BIT_AND_EXPR.
843
844 2011-09-05 David S. Miller <davem@davemloft.net>
845
846 * config.host: Add driver-sparc.o and sparc/x-sparc on
847 native sparc*-*-linux* builds.
848 * config/sparc/driver-sparc.c: Correct Linux strings.
849 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
850 * config/sparc/linux64.h: Likewise.
851 * doc/invoke.texi: Document that Linux also supports
852 -mcpu=native and -mtune=native on sparc.
853
854 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
855 PROCESSOR_NIAGARA4): New.
856 * config/sparc/sparc.opt: Handle new processor types.
857 * config/sparc/sparc.md: Add to "cpu" attribute.
858 * config/sparc/sparc.h (TARGET_CPU_niagara3,
859 TARGET_CPU_niagara4): New, treat as niagara2.
860 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
861 * config/sparc/sol2.h: Likewise.
862 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
863 * config/sparc/sparc.c (sparc_option_override): Add
864 niagara3 and niagara4 handling.
865 (sparc32_initialize_trampoline): Likewise.
866 (sparc64_initialize_trampoline): Likewise.
867 (sparc_use_sched_lookahead): Likewise.
868 (sparc_issue_rate): Likewise.
869 (sparc_register_move_cost): Likewise.
870 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
871 and niagara4 as appropriate.
872 * doc/invoke.texi: Document new processor types.
873 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
874 and --with-tune options.
875
876 * config/sparc/sol2-64.h: Move ...
877 * config/sparc/default-64.h: ... to here. Update comment.
878 * config.gcc: Update Solaris sparc to use default-64.h, also
879 prefix this header into the list on sparc64-*-linux.
880 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
881 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
882 to MASK_HARD_QUAD.
883
884 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
885
886 PR target/50289
887 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
888 that contain global register variable.
889
890 2011-09-05 Richard Guenther <rguenther@suse.de>
891
892 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
893
894 2011-09-05 Richard Guenther <rguenther@suse.de>
895
896 * stor-layout.c (layout_type): Use size_binop for array size
897 calculations.
898
899 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
900
901 * config/avr/avr.h (progmem_section): Remove Declaration.
902 * config/avr/avr.c (progmem_section): Make static and rename to
903 progmem_swtable_section.
904 (avr_output_addr_vec_elt): No need to switch sections.
905 (avr_asm_init_sections): Use output_section_asm_op as section
906 callback for progmem_swtable_section.
907 (avr_output_progmem_section_asm_op): Remove Function.
908 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
909 (avr_asm_function_rodata_section): New static Function.
910 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
911 alignment 2**1 for jump tables.
912
913 2011-09-04 Jan Hubicka <jh@suse.cz>
914
915 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
916 parameter is SSA name.
917
918 2011-09-04 Richard Guenther <rguenther@suse.de>
919
920 Revert
921 2011-08-31 Richard Guenther <rguenther@suse.de>
922
923 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
924 special-casing.
925
926 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
927
928 PR debug/49901
929 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
930
931 2011-09-04 Jakub Jelinek <jakub@redhat.com>
932 Ira Rosen <ira.rosen@linaro.org>
933
934 PR tree-optimization/50208
935 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
936 argument. Check that def_stmt is inside the loop.
937 (vect_recog_widen_mult_pattern): Update calls to
938 vect_handle_widen_mult_by_cons.
939 (vect_operation_fits_smaller_type): Check that def_stmt is
940 inside the loop.
941
942 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
943
944 * tree-vectorizer.c (vect_print_dump_info): Print line
945 number when dumping to a file.
946 (vectorize_loops): Add new messages to dump file.
947
948 2011-09-03 Martin Jambor <mjambor@suse.cz>
949
950 * ipa-prop.h (ipa_jump_func_t): New typedef.
951 (struct ipa_edge_args): Removed field argument_count, field
952 jump_functions turned into a vector.
953 (ipa_set_cs_argument_count): Removed.
954 (ipa_get_cs_argument_count): Updated to work on vectors.
955 (ipa_get_ith_jump_func): Likewise.
956 * ipa-prop.c (ipa_count_arguments): Removed.
957 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
958 jump functions. Update caller.
959 (compute_pass_through_member_ptrs): Likewise.
960 (compute_cst_member_ptr_arguments): Likewise.
961 (ipa_compute_jump_functions_for_edge): Get number of arguments from
962 the statement, allocate vector.
963 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
964 (duplicate_ipa_jump_func_array): Removed.
965 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
966 (ipa_read_node_info): Allocate vector.
967
968 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
969
970 PR middle-end/50232
971 * config/pa/pa.md (return): Define "return" insn pattern.
972 (epilogue): Use it when no epilogue is needed.
973 * config/pa/pa.c (pa_can_use_return_insn): New function.
974 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
975
976 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
977
978 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
979 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
980 Force at least BITS_PER_UNIT alignment on the new variable.
981
982 2011-09-02 Gary Funck <gary@intrepid.com>
983
984 * opts.c (print_specific_help): Fix off-by-one compare in
985 assertion check.
986 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
987 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
988 Increase by +5 to allow for more languages.
989 * optc-gen.awk: Generate #if that ensures that the number of
990 languages is within the implementation-defined limit.
991
992 2011-09-02 Michael Matz <matz@suse.de>
993
994 PR middle-end/50260
995 * ipa-split.c (split_function): Call add_referenced_var.
996
997 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
998 (cond_if_else_store_replacement_1): Ditto.
999 * tree-ssa-pre.c (get_representative_for): Ditto.
1000 (create_expression_by_pieces): Ditto.
1001 (insert_into_preds_of_block): Ditto.
1002 * tree-sra.c (create_access_replacement): Ditto.
1003 (get_replaced_param_substitute): Ditto.
1004
1005 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
1006
1007 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
1008 automata_options.
1009 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
1010 (l1w, s1w, l2w, s2w): Define in the main automaton.
1011 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
1012 units.
1013 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
1014 (c6x_unit_names): Add the new units.
1015 (c6x_unit_codes): New static array.
1016 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
1017 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
1018 UNIT_QID_SIDE_OFFSET): New macros.
1019 (RESERVATION_S2): Adjust value.
1020 (c6x_option_override): Compute c6x_unit_codes.
1021 (assign_reservations): Take the unit_mask of the last instruction
1022 into account. Detect floating point reservations by looking for
1023 the new units. Don't assign reservations if the field is already
1024 nonzero.
1025 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
1026 (init_sched_state): Initialize it.
1027 (c6x_clear_sched_context): Free it.
1028 (insn_set_clock): Clear reservation.
1029 (prev_cycle_state): New static variable.
1030 (c6x_init_sched_context): Save it.
1031 (c6x_sched_init): Allocate space for it and clear it.
1032 (c6x_sched_dfa_pre_cycle_insn): New static function.
1033 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
1034 (c6x_variable_issue): Only record units in the unit_mask that
1035 were not set at the start of the cycle.
1036 (c6x_variable_issue): Compute and store the unit_mask from the
1037 current state.
1038 (reorg_split_calls): Ensure the new information remains correct.
1039 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1040 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
1041 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
1042 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
1043 Add special reservations.
1044 * config/c6x/c6x-sched.md: Regenerate.
1045
1046 2011-09-02 Martin Jambor <mjambor@suse.cz>
1047
1048 * ipa-prop.h (ipa_node_params): Removed fields
1049 called_with_var_arguments and node_versionable.
1050 (ipa_set_called_with_variable_arg): Removed.
1051 (ipa_is_called_with_var_arguments): Likewise.
1052 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
1053 (determine_versionability): Do not check for type attributes and va
1054 builtins. Record versionability into inline summary.
1055 (initialize_node_lattices): Do not check
1056 ipa_is_called_with_var_arguments.
1057 (propagate_constants_accross_call): Likewise, ignore arguments we do
1058 not have PARM_DECLs for, set variable flag for parameters that were
1059 not passed a value.
1060 (create_specialized_node): Dump info that we cannot change signature.
1061 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
1062 number of arguments.
1063 (ipa_make_edge_direct_to_target): Likewise.
1064 (ipa_update_after_lto_read): Likewise.
1065 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
1066 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
1067 they were remapped.
1068
1069 2011-09-02 Richard Guenther <rguenther@suse.de>
1070
1071 PR tree-optimization/27460
1072 PR middle-end/29269
1073 * doc/md.texi (vcond): Document.
1074 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
1075 optab with two modes.
1076 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
1077 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
1078 (vcond_optab): Adjust.
1079 (vcondu_optab): Likewise.
1080 (expand_vec_cond_expr_p): Adjust prototype.
1081 * optabs.c (get_vcond_icode): Adjust.
1082 (expand_vec_cond_expr_p): Likewise.
1083 (expand_vec_cond_expr): Likewise.
1084 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
1085 vector type.
1086 (vectorizable_condition): Allow differing types for comparison
1087 and result.
1088 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
1089 for the comparison.
1090 * config/i386/sse.md (vcond<mode>): Split to
1091 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
1092 vcond<V_128:mode><VI124_128:mode> and
1093 vcondu<V_128:mode><VI124_128:mode>.
1094 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
1095 (vconduv2di): Likewise.
1096 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
1097 (vcondu<mode>): Likewise.
1098 * config/ia64/vect.md (vcond<mode>): Likewise.
1099 (vcondu<mode>): Likewise.
1100 (vcondv2sf): Likewise.
1101 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
1102 * config/rs6000/paired.md (vcondv2sf): Likewise.
1103 * config/rs6000/vector.md (vcond<mode>): Likewise.
1104 (vcondu<mode>): Likewise.
1105 * config/spu/spu.md (vcond<mode>): Likewise.
1106 (vcondu<mode>): Likewise.
1107
1108 2011-09-02 Richard Guenther <rguenther@suse.de>
1109
1110 * pretty-print.h (pp_unsigned_wide_integer): New.
1111 * tree-pretty-print.c (dump_generic_node): Print unsigned
1112 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
1113
1114 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
1115
1116 PR target/49987
1117 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
1118 valid CONST_VECTOR operands.
1119 (rs6000_expand_vector_init): Likewise.
1120
1121 2011-09-02 Martin Jambor <mjambor@suse.cz>
1122
1123 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
1124 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
1125 BINFO_VTABLE. Parameter delta removed, all callers updated.
1126 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
1127 BINFO_VTABLE.
1128 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
1129 all calls.
1130 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
1131 handling of thunk_delta.
1132 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
1133 (devirtualization_time_bonus): Do not handle thunk deltas.
1134 (ipcp_discover_new_direct_edges): Likewise.
1135 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1136 (try_make_edge_direct_simple_call): Likewise.
1137 (try_make_edge_direct_virtual_call): Likewise.
1138 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1139 parameter set as unused.
1140 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1141 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1142 parameter set as unused.
1143 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1144 (input_edge_opt_summary): Likewise.
1145 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
1146 BINFO_VIRTUALS at all.
1147 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
1148
1149 2011-09-02 Richard Guenther <rguenther@suse.de>
1150
1151 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
1152 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
1153
1154 2011-08-31 Richard Guenther <rguenther@suse.de>
1155
1156 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
1157 handling here, from ...
1158 (expand_expr_real_1): ... here.
1159 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
1160 and VEC_COND_EXPR.
1161 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
1162 a GIMPLE_TERNARY_RHS.
1163 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
1164 and VEC_COND_EXPR here ...
1165 (verify_gimple_assign_single): ... not here.
1166 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
1167 * tree-object-size.c (cond_expr_object_size): Adjust.
1168 (collect_object_sizes_for): Likewise.
1169 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
1170 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
1171 (ssa_forward_propagate_and_combine): Adjust.
1172 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
1173 as ternary.
1174 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
1175 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
1176 * tree-vect-stmt.c (vectorizable_condition): Likewise.
1177 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
1178 (extract_range_from_assignment): Likewise.
1179
1180 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1181
1182 * config/i386/i386.md: Use (match_test ...) for attribute tests.
1183 * config/i386/mmx.md: Likewise.
1184 * config/i386/sse.md: Likewise.
1185 * config/i386/predicates.md (call_insn_operand): Use
1186 (not (match_test "...")) instead of (match_test "!...")
1187 * config/i386/constraints.md (w): Likewise.
1188
1189 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1190
1191 * doc/md.texi: Describe the use of match_tests in attribute tests.
1192 * rtl.def (MATCH_TEST): Update commentary.
1193 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
1194 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
1195
1196 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1197
1198 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
1199 (attr_string): Use copy_md_ptr_loc.
1200
1201 2011-08-31 Martin Jambor <mjambor@suse.cz>
1202
1203 PR middle-end/49886
1204 * ipa-inline-analysis.c (compute_inline_parameters): Set
1205 can_change_signature of noes with typde attributes.
1206 * ipa-split.c (split_function): Do not skip any arguments if
1207 can_change_signature is set.
1208
1209 2011-08-31 Martin Jambor <mjambor@suse.cz>
1210
1211 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
1212 check removed.
1213
1214 2011-08-31 Richard Guenther <rguenther@suse.de>
1215
1216 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1217 special-casing.
1218
1219 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
1220
1221 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
1222
1223 2011-08-31 Tom de Vries <tom@codesourcery.com>
1224
1225 PR middle-end/43513
1226 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
1227 * tree-ssa-ccp.c (params.h): Include.
1228 (fold_builtin_alloca_for_var): New function.
1229 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
1230
1231 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
1232
1233 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1234 Handle FMA option.
1235
1236 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1237
1238 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
1239 b3 and b4 unsigned.
1240
1241 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1242
1243 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
1244 when code is SET.
1245
1246 2011-08-30 Richard Guenther <rguenther@suse.de>
1247
1248 PR middle-end/48571
1249 * gimple.h (maybe_fold_offset_to_address): Remove.
1250 (maybe_fold_offset_to_reference): Likewise.
1251 (maybe_fold_stmt_addition): Likewise.
1252 (may_propagate_address_into_dereference): Likewise.
1253 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1254 array references.
1255 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1256 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1257 addresses instead.
1258 (may_propagate_address_into_dereference): Remove.
1259 (maybe_fold_offset_to_array_ref): Likewise.
1260 (maybe_fold_offset_to_reference): Likewise.
1261 (maybe_fold_offset_to_address): Likewise.
1262 (maybe_fold_stmt_addition): Likewise.
1263 (fold_gimple_assign): Do not reconstruct array references but
1264 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1265 MEM_REF addresses.
1266 (gimple_fold_stmt_to_constant_1): Likewise.
1267 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1268 * gimplify.c (gimplify_conversion): Likewise.
1269 (gimplify_expr): Likewise.
1270
1271 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
1272
1273 * config/i386/fmaintrin.h: New.
1274 * config.gcc: Add fmaintrin.h.
1275 * config/i386/i386.c
1276 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1277 <IX86_BUILTIN_VFMADDSD3>: Likewise.
1278 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1279 (*fmai_fmadd_<mode>): Likewise.
1280 (*fmai_fmsub_<mode>): Likewise.
1281 (*fmai_fnmadd_<mode>): Likewise.
1282 (*fmai_fnmsub_<mode>): Likewise.
1283 * config/i386/immintrin.h: Add fmaintrin.h.
1284
1285 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
1286
1287 * genautomata.c (NO_COMB_OPTION): New macro.
1288 (no_comb_flag): New static variable.
1289 (gen_automata_option): Handle NO_COMB_OPTION.
1290 (comb_vect_p): False if no_comb_flag.
1291 (add_vect): Move computation of min/max values. Return early if
1292 no_comb_flag.
1293 * doc/md.texi (automata_option): Document no-comb-vect.
1294
1295 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1296 "__x86.get_pc_thunk".
1297
1298 * bb-reorder.c (insert_section_boundary_note): Only do it if
1299 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1300
1301 2011-08-30 Christian Bruel <christian.bruel@st.com>
1302
1303 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1304 flag_profile_use.
1305
1306 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1307
1308 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1309 to off. Document switch.
1310 * doc/invoke.texi (-msave-toc-indirect): Ditto.
1311
1312 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1313
1314 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1315 conditionals and comments inside macro arguments.
1316
1317 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1318 Richard Guenther <rguenther@suse.de>
1319
1320 * tree.h (constant_boolean_node): Adjust prototype.
1321 * fold-const.c (fold_convert_loc): Move aggregate conversion
1322 leeway down.
1323 (constant_boolean_node): Make value parameter boolean, add
1324 vector type handling.
1325 (fold_unary_loc): Use constant_boolean_node.
1326 (fold_binary_loc): Preserve types properly when folding
1327 COMPLEX_EXPR <__real x, __imag x>.
1328 * gimplify.c (gimplify_expr): Handle vector comparison.
1329 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
1330 comparison.
1331 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
1332 comparisons.
1333
1334 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1335
1336 PR middle-end/48722
1337 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
1338 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
1339 (verify_rtl_sharing): Likewise and verify_rtx_sharing
1340 in there too.
1341 (unshare_all_rtl_in_chain): For CALL_INSNs
1342 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
1343
1344 2011-08-29 Richard Guenther <rguenther@suse.de>
1345
1346 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
1347 on the built ADDR_EXPR.
1348
1349 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1350
1351 PR debug/50215
1352 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
1353 before adding ENTRY_VALUE to val->locs.
1354
1355 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
1356
1357 PR bootstrap/50218
1358 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
1359 comp.
1360
1361 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
1362
1363 * doc/rtl.texi (simple_return): Document.
1364 (parallel, PATTERN): Here too.
1365 * doc/md.texi (return): Mention it's allowed to expand to simple_return
1366 in some cases.
1367 (simple_return): Document standard pattern.
1368 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
1369 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
1370 * reorg.c (function_return_label, function_simple_return_label):
1371 New static variables, replacing...
1372 (end_of_function_label): ... this.
1373 (simplejump_or_return_p): New static function.
1374 (optimize_skip, steal_delay_list_from_fallthrough,
1375 fill_slots_from_thread): Use it.
1376 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
1377 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
1378 (find_end_label): Take a new arg which is one of the two return
1379 rtxs. Depending on which, set either function_return_label or
1380 function_simple_return_label. All callers changed.
1381 (make_return_insns): Make both kinds.
1382 (dbr_schedule): Adjust for two kinds of end labels.
1383 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
1384 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
1385 (gen_expand, gen_split): Use ANY_RETURN_P.
1386 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
1387 * rtl.def (SIMPLE_RETURN): New code.
1388 * ifcvt.c (find_if_case_1): Be more careful about
1389 redirecting jumps to the EXIT_BLOCK.
1390 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
1391 returnjump_p_1): Handle SIMPLE_RETURNs.
1392 * print-rtl.c (print_rtx): Likewise.
1393 * rtl.c (copy_rtx): Likewise.
1394 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
1395 * combine.c (simplify_set): Likewise.
1396 * resource.c (find_dead_or_set_registers, mark_set_resources):
1397 Likewise.
1398 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
1399 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
1400 (init_emit_regs): Initialize simple_return_rtx.
1401 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
1402 force_nonfallthru_and_redirect.
1403 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
1404 (GR_SIMPLE_RETURN): New enum value.
1405 (simple_return_rtx): New macro.
1406 * basic-block.h (force_nonfallthru_and_redirect): Adjust
1407 declaration.
1408 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
1409 argument. All callers changed. Be careful about what kinds of
1410 returnjumps to generate.
1411 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
1412 ix86_pad_short_function): Likewise.
1413 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
1414 of return.
1415 * config/mips/mips.md (any_return): New code_iterator.
1416 (optab): Add cases for return and simple_return.
1417 (return): Expand to a simple_return.
1418 (simple_return): New pattern.
1419 (*<optab>, *<optab>_internal for any_return): New patterns.
1420 (return_internal): Remove.
1421 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
1422 a simple_return_internal.
1423
1424 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1425
1426 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
1427 (vec_extract_lo_<mode>): Prevent both operands in memory.
1428 (vec_extract_lo_v16hi): Ditto.
1429 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1430
1431 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1432
1433 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
1434 (*sse2_mulv4si3): Ditto.
1435 (mulv2di3): Ditto.
1436 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1437 notes to REG_EQUAL.
1438
1439 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1440
1441 PR target/50202
1442 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1443 when all outputs are unused.
1444 (sse4_2_pcmpistr): Ditto.
1445
1446 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1447
1448 * config/i386/i386.md (round<mode>2): New expander.
1449 * config/i386/i386.c (enum ix86_builtins): Add
1450 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
1451 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
1452 descriptions.
1453 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
1454 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
1455
1456 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1457
1458 PR middle-end/50083
1459 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
1460 only when TARGET_C99_FUNCTIONS.
1461 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
1462 <BUILT_IN_RINT{,F,L}>: Ditto.
1463
1464 2011-08-26 Michael Matz <matz@suse.de>
1465 Jakub Jelinek <jakub@redhat.com>
1466
1467 PR lto/50165
1468 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
1469 don't call strlen twice, use memcpy.
1470
1471 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
1472
1473 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
1474 * config/i386/bmiintrin.h: Likewise.
1475 * config/i386/lzcntintrin.h: Likewise.
1476
1477 * config/i386/immintrin.h: Include <lzcntintrin.h>,
1478 <bmiintrin.h> and <bmi2intrin.h>.
1479
1480 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1481
1482 PR target/50166
1483 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
1484 * configure: Regenerate.
1485
1486 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1487
1488 PR c/50179
1489 * c-typeck.c (c_process_expr_stmt): Skip over nops and
1490 call mark_exp_read even if exprv is ADDR_EXPR.
1491
1492 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
1493
1494 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
1495 to df_set_dead_notes_for_mw.
1496
1497 2011-08-26 Richard Guenther <rguenther@suse.de>
1498
1499 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1500
1501 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
1502 Tom de Vries <tom@codesourcery.com>
1503
1504 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
1505 (struct ivopts_data): Add loop_single_exit_p field.
1506 (niter_for_exit): Change parameter desc_p into return value. Return
1507 desc if desc->may_be_zero. Free desc if unused.
1508 (niter_for_single_dom_exit): Change return type.
1509 (find_induction_variables): Handle changed return type of
1510 niter_for_single_dom_exit. Dump may_be_zero.
1511 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
1512 (set_use_iv_cost): Add and handle comp parameter.
1513 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
1514 comp argument to set_use_iv_cost.
1515 (strip_wrap_conserving_type_conversions, expr_equal_p)
1516 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
1517 (may_eliminate_iv): Add comp parameter. Handle new return type of
1518 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
1519 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
1520 and may_eliminate_iv.
1521 (rewrite_use_compare): Move call to iv_elimination_compare to ...
1522 (may_eliminate_iv): Here.
1523 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
1524
1525 2011-08-26 Tom de Vries <tom@codesourcery.com>
1526
1527 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
1528 accessing TREE_TYPE.
1529
1530 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
1531
1532 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
1533 (*ior_scc_scc_cmp): Likewise
1534 (*and_scc_scc): Likewise.
1535 (*and_scc_scc_cmp): Likewise.
1536 (*and_scc_scc_nodom): Likewise.
1537 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
1538
1539 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1540
1541 * rtlanal.c (nonzero_bits1): Handle CLRSB.
1542
1543 2011-08-26 Richard Guenther <rguenther@suse.de>
1544
1545 * expr.c (string_constant): Handle &MEM_REF.
1546
1547 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1548
1549 * config/arm/arm.c (struct four_ints): New type.
1550 (count_insns_for_constant): Delete function.
1551 (find_best_start): Delete function.
1552 (optimal_immediate_sequence): New function.
1553 (optimal_immediate_sequence_1): New function.
1554 (arm_gen_constant): Move constant splitting code to
1555 optimal_immediate_sequence.
1556 Rewrite constant negation/invertion code.
1557
1558 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1559
1560 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1561 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1562 Remove prototype. Remove static function type.
1563 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1564 Add arch attribute.
1565 * config/arm/constraints.md (Pj, PJ): New constraints.
1566
1567 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1568
1569 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1570 ("cortex_a9_multiply_long"): New and use above. Handle all
1571 long multiply cases.
1572 ("cortex_a9_multiply"): Handle smmul and smmulr.
1573 ("cortex_a9_mac"): Handle smmla.
1574
1575 2011-08-25 Richard Henderson <rth@redhat.com>
1576
1577 PR 50132
1578 PR 49864
1579 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1580 non-constant stack adjutment.
1581 * expr.c (find_args_size_adjust): Break out from ...
1582 (fixup_args_size_notes): ... here.
1583 * rtl.h (find_args_size_adjust): Declare.
1584
1585 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
1586
1587 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1588 sse4 and sse4_noavx.
1589 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1590 (*pushdf_rex64): Change Y2 register constraint to x.
1591 (*movdf_internal_rex64): Ditto.
1592 (*zero_extendsidi2_rex64): Ditto.
1593 (*movdi_internal): Change Y2 register constraint to x
1594 and update "isa" attribute.
1595 (*pushdf): Ditto.
1596 (*movdf internal): Ditto.
1597 (zero_extendsidi2_1): Ditto.
1598 (*truncdfdf_mixed): Ditto.
1599 (*truncxfdf2_mixed): Ditto.
1600 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1601 register constraint to x.
1602 (*movv2sf_internal_rex64): Ditto.
1603 (*mov<mode>_internal): Change Y2 register constraint to x
1604 and add "isa" attribute.
1605 (*movv2sf_internal): Ditto.
1606 (*vec_extractv2si_1): Ditto.
1607 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1608 constraints to x and update "isa" attribute.
1609 (*vec_interleave_highv2df): Change Y3 registerconstraint
1610 to x and update "isa" attribute.
1611 (*vec_interleave_lowv2df): Ditto.
1612 (*vec_concatv2df): Change Y2 register constraint to x and
1613 update "isa" attribute.
1614 (sse2_loadld): Ditto.
1615 (*vec_extractv2di_1): Ditto.
1616 (*vec_dupv4si): Ditto.
1617 (*vec_dupv2di): Ditto.
1618 (*vec_concatv4si): Ditto.
1619 (vec_concatv2di): Ditto.
1620 * config/i386/constraints.md (Y2): Remove.
1621 (Y3): Ditto.
1622 (Y4): Ditto.
1623
1624 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1625
1626 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1627 dump_def_use_chain): Don't declare.
1628 (mark_conflict, create_new_chain): Move before users.
1629 (regrename_optimize): Move to near end of file.
1630
1631 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1632
1633 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1634 (secondary_input_reload_class): Remove Prototype.
1635 * config/avr/avr.c (byte_immediate_operand): Remove Function.
1636 * config/avr/avr.md (setmemhi): Use u8_operand.
1637 (strlenhi): Use const0_rtx for comparison.
1638 * config/avr/avr.h (avr_reg_order): Remove Declaration.
1639
1640 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1641
1642 * config/avr/avr.c (reg_class_tab): Make local to
1643 avr_regno_reg_class. Return smallest register class available.
1644
1645 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1646
1647 * config/avr/avr.c (STR_PREFIX_P): New Define.
1648 (avr_asm_declare_function_name): Use it.
1649 (avr_asm_named_section): Use it.
1650 (avr_section_type_flags): Use it.
1651
1652 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1653
1654 * doc/md.texi (automata_option): Document collapse-ndfa.
1655 * genautomata.c (COLLAPSE_OPTION): New macro.
1656 (collapse_flag): New static variable.
1657 (struct description): New member normal_decls_num.
1658 (struct automaton): New members advance_ainsn and collapse_ainsn.
1659 (gen_automata_option): Check for COLLAPSE_OPTION.
1660 (collapse_ndfa_insn_decl): New static variable.
1661 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1662 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1663 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1664 necessary. Use normal_decls_num rather than decls_num, remove
1665 test for special decls.
1666 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1667 (make_automaton); Likewise. Use the new advance_cycle_insn member
1668 of struct automaton.
1669 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1670 is set.
1671 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1672 transition. Create the necessary transitions for it.
1673 (create_ainsns): Return void. Take an automaton_t argument, and
1674 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
1675 callers changed.
1676 (COLLAPSE_NDFA_VALUE_NAME): New macro.
1677 (output_tables): Output code to define it.
1678 (output_internal_insn_code_evaluation): Output code to accept
1679 const0_rtx as collapse-ndfa transition.
1680 (output_default_latencies, output_print_reservation_func,
1681 output_print_description): Reorganize loops to use normal_decls_num
1682 as loop bound; remove special case for advance_cycle_insn_decl.
1683 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1684 (check_automata_insn_issues): Check for collapse_ainsn.
1685 (expand_automate): Allocate sufficient space. Initialize
1686 normal_decls_num.
1687
1688 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1689
1690 * config/avr/avr.md: Fix indentation from r177991.
1691
1692 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1693
1694 * regrename.c (struct du_head): Remove member terminated.
1695 (create_new_chain): Don't initialize it.
1696 (scan_rtx_reg): Don't set or test it, test the open_chains_set
1697 bitmap instead.
1698 (tick, this_tick): New global variables, moved out of
1699 regrename_optimize.
1700 (current_id, open_chains, closed_chains, open_chains_set,
1701 live_in_chains, live_hard_regs): Reorder declarations.
1702 (dump_def_use_chain): Move function earlier in the file.
1703 (rename_chains): New static function, broken out of
1704 regrename_optimize.
1705 (regrename_optimize): Use it. Remove #if 0'ed code.
1706
1707 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1708
1709 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1710
1711 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
1712
1713 PR target/50172
1714 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1715
1716 2011-08-24 Richard Guenther <rguenther@suse.de>
1717
1718 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1719 ref in the basic-block case. Move stripping array-refs
1720 to the place we create an access-function for it. Remove
1721 bogus stripping down a MEM_REF to its base.
1722
1723 2011-08-24 Richard Guenther <rguenther@suse.de>
1724
1725 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1726 with -fno-strict-overflow.
1727
1728 2011-08-24 Richard Guenther <rguenther@suse.de>
1729
1730 * tree-vectorizer.c (vect_print_dump_info): Avoid the
1731 file and location clutter when dumping to dump files.
1732
1733 2011-08-24 Simon Baldwin <simonb@google.com>
1734
1735 * gengtype-state.c (write_state): Remove timestamped header line.
1736
1737 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1738
1739 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1740 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1741 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1742 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1743 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1744 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1745 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1746 rules.
1747 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1748
1749 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1750
1751 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1752
1753 2011-08-24 Richard Guenther <rguenther@suse.de>
1754
1755 PR tree-optimization/50067
1756 * tree-data-ref.c (dr_analyze_indices): Do not add an access
1757 function for a MEM_REF base that has no evolution in the loop
1758 nest or that is not analyzable.
1759
1760 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
1761
1762 * ira.c (ira_init_register_move_cost): Check small subclasses
1763 through ira_reg_class_max_nregs and ira_available_class_regs.
1764
1765 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
1766
1767 * config/i386/constraints.md (Yp): New register constraint.
1768 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1769 Yp register constraint.
1770 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1771 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1772 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1773
1774 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
1775
1776 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1777
1778 2011-08-23 Mark Heffernan <meheff@google.com>
1779
1780 PR middle-end/38509
1781 * common.opt (Wfree-nonheap-object): New option.
1782 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
1783 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
1784 to warning.
1785 (expand_builtin): Make warning conditional.
1786
1787 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
1788
1789 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
1790 (length_immediate): Handle imulx, ishiftx and rotatex.
1791 (imm_disp): Ditto.
1792 (isa): Add bmi2.
1793 (enabled): Handle bmi2.
1794 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
1795 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
1796 (*bmi2_umulditi3_1): New insn pattern.
1797 (*bmi2_umulsidi3_1): Ditto.
1798 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
1799 (*bmi2_ashl<mode>3_1): New insn pattern.
1800 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
1801 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
1802 (*bmi2_ashlsi3_1_zext): New insn pattern.
1803 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
1804 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
1805 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
1806 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
1807 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
1808 flags dependency.
1809 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
1810 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
1811 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
1812 flags dependency.
1813 (*bmi2_rorx<mode>3_1): New insn pattern.
1814 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
1815 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
1816 (*rotatert<mode>3_1 splitter): Ditto.
1817 (*bmi2_rorxsi3_1_zext): New insn pattern.
1818 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
1819 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
1820 (*rotatertsi3_1_zext splitter): Ditto.
1821
1822 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
1823
1824 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
1825 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
1826 (ix86_handle_option): Handle OPT_mbmi2 case.
1827 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
1828 (x86_64-*-*): Likewise.
1829 * config/i386/bmi2intrin.h: New file.
1830 * config/i386/cpuid.h (bit_BMI2): New.
1831 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1832 BMI2 feature.
1833 * config/i386/i386-c.c (ix86_target_macros_internal):
1834 Conditionally define __BMI2__.
1835 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
1836 Handle BMI2 option.
1837 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
1838 (print_reg): New code.
1839 (ix86_print_operand): Likewise.
1840 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1841 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1842 IX86_BUILTIN_PEXT64.
1843 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1844 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1845 IX86_BUILTIN_PEXT64.
1846 * config/i386/i386.h (TARGET_BMI2): New.
1847 * config/i386/i386.md (UNSPEC_PDEP): New.
1848 (UNSPEC_PEXT): Likewise.
1849 (*bmi2_bzhi_<mode>3): Likewise.
1850 (*bmi2_pdep_<mode>3): Likewise.
1851 (*bmi2_pext_<mode>3): Likewise.
1852 * config/i386/i386.opt (mbmi2): New.
1853 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1854 is defined.
1855 * doc/extend.texi: Document BMI2 built-in functions.
1856 * doc/invoke.texi: Document -mbmi2.
1857
1858 2011-08-23 Jakub Jelinek <jakub@redhat.com>
1859
1860 PR middle-end/50161
1861 * simplify-rtx.c (simplify_const_unary_operation): If
1862 op is CONST_INT, don't look at op_mode, but use instead mode.
1863 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1864 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1865 operation and TRUNCATE/ZERO_EXTEND if needed.
1866 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1867 Document that operand mode must be same as operation mode,
1868 or VOIDmode.
1869 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1870 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1871 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1872 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1873 use the mode of operand for the operation and add truncate
1874 or zero_extend around if needed.
1875 * config/c6x/c6x.md (ctzdi2): Likewise.
1876 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1877
1878 2011-08-12 Michael Matz <matz@suse.de>
1879
1880 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1881 (gimple_expand_cfg): Merge alignment info for coalesced pointer
1882 SSA names.
1883
1884 2011-08-23 Richard Guenther <rguenther@suse.de>
1885
1886 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1887 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1888 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1889 from ...
1890 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1891 (mem_refs_may_alias_p): Adjust.
1892 * tree-data-ref.h (dr_may_alias_p): Adjust.
1893 * tree-data-ref.c: Include tree-affine.h.
1894 (dr_analyze_indices): Do nothing for the non-loop case.
1895 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
1896 more cases in the non-loop case.
1897 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1898 calls to dr_may_alias_p.
1899 (write_alias_graph_to_ascii_ecc): Likewise.
1900 (write_alias_graph_to_ascii_dot): Likewise.
1901 (build_alias_set_optimal_p): Likewise.
1902
1903 2011-08-23 Richard Guenther <rguenther@suse.de>
1904
1905 PR tree-optimization/50162
1906 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1907
1908 2011-08-23 Richard Guenther <rguenther@suse.de>
1909
1910 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1911 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1912 (create_data_ref): Also dump access functions for the created data-ref.
1913
1914 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
1915 Kirill Yukhin <kirill.yukhin@intel.com>
1916
1917 PR target/50155
1918 * config/i386/sse.md (VI_AVX2): New.
1919 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1920 (*<plusminus_insn><mode>3): Ditto.
1921 (<sse2_avx2>_andnot<mode>3): Ditto.
1922 (*andnot<mode>3): Fix order of cond operands.
1923 Add asserts for correct TARGET_xxx.
1924 (*<any_logic:code><mode>3): Ditto.
1925
1926 2011-08-22 Anatoly Sokolov <aesok@post.ru>
1927
1928 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1929 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1930 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1931 regclass argument type to reg_class_t. Change 'max' and 'v' vars
1932 and return types to unsigned char. Use reg_class_contents instead
1933 of class_contents.
1934 (TARGET_CLASS_MAX_NREGS): Define.
1935
1936 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
1937
1938 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1939 to make computed_jump_p return true.
1940
1941 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1942
1943 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1944 (PICFLAG_FOR_TARGET): Substitute.
1945 * aclocal.m4: Regenerate.
1946 * configure: Regenerate.
1947
1948 2011-08-22 Dodji Seketeli <dodji@redhat.com>
1949
1950 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1951 after reading in the pch.
1952
1953 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
1954
1955 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1956 * configure: Regenerated.
1957
1958 2011-08-22 Jakub Jelinek <jakub@redhat.com>
1959
1960 PR tree-optimization/50133
1961 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1962 from stmt instead of some statement around gsi.
1963
1964 PR middle-end/50141
1965 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1966 innerdecl is a VAR_DECL.
1967
1968 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
1969
1970 * config/i386/avx2intrin.h: New file.
1971 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1972 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1973 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1974 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1975 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1976 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1977 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1978 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1979 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1980 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1981 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1982 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1983 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1984 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1985 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1986 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1987 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1988 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1989 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1990 VOID_FTYPE_PV8SI_V8SI_V8SI,
1991 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1992 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1993 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1994 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1995 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1996 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1997 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1998 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1999 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
2000 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
2001 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
2002 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
2003 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
2004 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
2005 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
2006 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
2007 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
2008 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
2009 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
2010 V4DI_FTYPE_V4DI_INT_CONVERT,
2011 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
2012 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
2013 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2014 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2015 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2016 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2017 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2018 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2019 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2020 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2021 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2022 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2023 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2024 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2025 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2026 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2027 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2028 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2029 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2030 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2031 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2032 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2033 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2034 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2035 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2036 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2037 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2038 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2039 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2040 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2041 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2042 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2043 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2044 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2045 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2046 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2047 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2048 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2049 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2050 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2051 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2052 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2053 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2054 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2055 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2056 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2057 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2058 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2059 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2060 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2061 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2062 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2063 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2064 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2065 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2066 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2067 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2068 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2069 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2070 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
2071 IX86_BUILTIN_VBROADCASTSS_PS256,
2072 IX86_BUILTIN_VBROADCASTSD_PD256,
2073 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2074 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2075 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2076 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2077 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2078 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2079 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2080 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2081 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2082 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2083 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2084 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2085 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
2086 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2087 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2088 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2089 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2090 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
2091 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
2092 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
2093 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
2094 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
2095 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
2096 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
2097 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
2098 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
2099 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
2100 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2101 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2102 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2103 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
2104 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
2105 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2106 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2107 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2108 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2109 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2110 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2111 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2112 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2113 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2114 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2115 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2116 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2117 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2118 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2119 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2120 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2121 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2122 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2123 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2124 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2125 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2126 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2127 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2128 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2129 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2130 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2131 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2132 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2133 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2134 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2135 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2136 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2137 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2138 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2139 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2140 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2141 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2142 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2143 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2144 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2145 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2146 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2147 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2148 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2149 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2150 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2151 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2152 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2153 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2154 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2155 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2156 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2157 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2158 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2159 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2160 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2161 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2162 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
2163 IX86_BUILTIN_VBROADCASTSD_PD256,
2164 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2165 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2166 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2167 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2168 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2169 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2170 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2171 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2172 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2173 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2174 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2175 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2176 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2177 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
2178 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
2179 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
2180 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
2181 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
2182 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
2183 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
2184 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
2185 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
2186 IX86_BUILTIN_GATHERDIV8SI.
2187 (ix86_preferred_simd_mode): Support AVX2 modes.
2188 (ix86_expand_args_builtin): Support AVX2 builtins.
2189 (ix86_expand_special_args_builtin): Likewise.
2190 (ix86_expand_builtin): Likewise.
2191 * config/i386/i386.md (UNSPEC_VPERMSI): New.
2192 (UNSPEC_VPERMDF): Likewise.
2193 (UNSPEC_VPERMSF): Likewise.
2194 (UNSPEC_VPERMDI): Likewise.
2195 (UNSPEC_VPERMTI): Likewise.
2196 (UNSPEC_GATHER): Likewise.
2197 (ssemodesuffix): Extend.
2198 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
2199 is defined.
2200 * config/i386/predicates.md (const1248_operand): New.
2201 * config/i386/sse.md (VI1_AVX2): New mode iterator.
2202 (VI2_AVX2): Likewise.
2203 (VI4_AVX2): Likewise.
2204 (VI8_AVX2): Likewise.
2205 (VIMAX_AVX2): Likewise.
2206 (SSESCALARMODE): Likewise.
2207 (VI12_AVX2): Likewise.
2208 (VI24_AVX2): Likewise.
2209 (VI124_AVX2): Likewise.
2210 (VI248_AVX2): Likewise.
2211 (VI48_AVX2): Likewise.
2212 (VI4SD_AVX2): Likewise.
2213 (V48_AVX2): Likewise.
2214 (AVX256MODE2P): Likewise.
2215 (AVXMODE48P_DI): Likewise.
2216 (sse2_avx2): New mode attribute.
2217 (ssse3_avx2): Likewise.
2218 (sse4_1_avx2): Likewise.
2219 (avx_avx2): Likewise.
2220 (ssebytemode): Likewise.
2221 (AVXTOSSEMODE): Likewise.
2222 (AVXMODE48P_DI): Likewise.
2223 (gthrfirstp): Likewise.
2224 (gthrlastp): Likewise.
2225 (lshift): New code_iterator
2226 (lshift): New code attribute.
2227 (lshift): Likewise.
2228 (ssescalarmodesuffix): Update.
2229 (sseunpackmode): Likewise.
2230 (ssepackmode): Likewise.
2231 (avx2_vec_dupv4sf): New insn pattern.
2232 (avx2_vec_dupv8sf): Likewise.
2233 (avx2_interleave_highv4di): Likewise.
2234 (avx2_interleave_lowv4di): Likewise.
2235 (avx2_umulv4siv4di3): Likewise
2236 (*avx2_umulv4siv4di3): Likewise
2237 (avx2_pmaddwd): Likewise.
2238 (*avx2_pmaddwd): Likewise.
2239 (avx2_lshrqv4di3): Likewise.
2240 (avx2_lshlqv4di3): Likewise.
2241 (avx2_lshl<mode>3): Likewise.
2242 (avx2_<umaxmin:code><mode>3): Likewise.
2243 (*avx2_<umaxmin:code><mode>3): Likewise.
2244 (avx2_<smaxmin:code><mode>3): Likewise.
2245 (*avx2_<smaxmin:code><mode>3): Likewise.
2246 (avx2_eq<mode>3): Likewise.
2247 (*avx2_eq<mode>3): Likewise.
2248 (avx2_gt<mode>3): Likewise.
2249 (avx2_interleave_highv32qi): New.
2250 (avx2_interleave_lowv32qi): Likewise.
2251 (avx2_interleave_highv16hi): Likewise.
2252 (avx2_interleave_lowv16hi): Likewise.
2253 (avx2_interleave_highv8si): Likewise.
2254 (avx2_interleave_lowv8si): Likewise.
2255 (avx2_pshufd): Likewise.
2256 (avx2_pshufd_1): Likewise.
2257 (avx2_pshuflwv3): Likewise.
2258 (avx2_pshuflw_1): Likewise.
2259 (avx2_pshufhwv3): Likewise.
2260 (avx2_pshufhw_1): Likewise.
2261 (avx2_uavgv32qi3): Likewise.
2262 (*avx2_uavgv32qi3): Likewise.
2263 (avx2_uavgv16hi3): Likewise.
2264 (*avx2_uavgv16hi3): Likewise.
2265 (avx2_pmovmskb): Likewise.
2266 (avx2_phaddwv16hi3): Likewise.
2267 (avx2_phadddv8si3): Likewise.
2268 (avx2_phaddswv16hi3): Likewise.
2269 (avx2_phsubwv16hi3): Likewise.
2270 (avx2_phsubdv8si3): Likewise.
2271 (avx2_phsubswv16hi3): Likewise.
2272 (avx2_pmaddubsw256): Likewise.
2273 (avx2_umulhrswv16hi3): Likewise.
2274 (*avx2_umulhrswv16hi3): Likewise.
2275 (avx2_packusdw): Likewise.
2276 (avx2_pblendd<mode>): Likewise.
2277 (avx2_<code>v16qiv16hi2): Likewise.
2278 (avx2_<code>v8qiv8si2): Likewise.
2279 (avx2_<code>v8hiv8si2): Likewise.
2280 (avx2_<code>v4qiv4di2): Likewise.
2281 (avx2_<code>v4hiv4di2): Likewise.
2282 (avx2_<code>v4siv4di2): Likewise.
2283 (avx2_pbroadcast<mode>): Likewise.
2284 (avx2_permvarv8si): Likewise.
2285 (avx2_permv4df): Likewise.
2286 (avx2_permvarv8sf): Likewise.
2287 (avx2_permv4di): Likewise.
2288 (avx2_permv2ti): Likewise.
2289 (avx2_vec_dupv4df): Likewise.
2290 (avx2_vbroadcasti128_<mode>): Likewise.
2291 (avx2_vec_set_lo_v4di): Likewise.
2292 (avx2_vec_set_hi_v4di): Likewise.
2293 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2294 (avx2_extracti128): Likewise.
2295 (avx2_inserti128): Likewise.
2296 (avx2_ashrvv8si): Likewise.
2297 (avx2_ashrvv4si): Likewise.
2298 (avx2_<lshift>vv8si): Likewise.
2299 (avx2_<lshift>v<mode>): Likewise.
2300 (avx2_<lshift>vv2di): Likewise.
2301 (avx2_gathersi<mode>): Likewise.
2302 (*avx2_gathersi<mode>): Likewise.
2303 (avx2_gatherdi<mode>): Likewise.
2304 (*avx2_gatherdi<mode>): Likewise.
2305 (avx2_gatherdi<mode>256): Likewise.
2306 (*avx2_gatherdi<mode>256): Likewise.
2307 (<plusminus_insn><mode>3): Use VI mode iterator.
2308 (*<plusminus_insn><mode>3): Use VI mode iterator.
2309 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2310 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2311 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2312 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2313 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
2314 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
2315 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2316 Use VI2_AVX2 mode iterator.
2317 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2318 Use VI2_AVX2 mode iterator.
2319 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
2320 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
2321 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2322 Use VI4_AVX2 mode iterator.
2323 (ashr<mode>3): Use VI24_AVX2 mode iterator.
2324 (lshr<mode>3): Use VI248_AVX2 mode iterator.
2325 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2326 Use VIMAX_AVX2 mode iterator.
2327 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2328 Use VI mode iterator.
2329 (*andnot<mode>3): Update for AVX2.
2330 (*<any_logic:code><mode>3): Likewise.
2331 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
2332 Use VI1_AVX mode iterator.
2333 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
2334 Use VI2_AVX mode iterator.
2335 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
2336 Use VI1_AVX mode iterator.
2337 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
2338 Use VI8_AVX2 mode iterator.
2339 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
2340 Use VI1_AVX2 mode iterator.
2341 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
2342 Use VI124_AVX2 mode iterator.
2343 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
2344 Use SSESCALARMODE mode iterator.
2345 (abs<mode>2): Use VI124_AVX2 mode iterator.
2346 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
2347 Use VI8_AVX2 mode iterator.
2348 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
2349 Use VI1_AVX2 mode iterator.
2350 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
2351 Use VI1_AVX2 mode iterator.
2352 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
2353 Use VI2_AVX2 mode iterator.
2354 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
2355 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
2356 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
2357 avx_maskstore<ssemodesuffix><avxsizesuffix>.
2358 Use V48_AVX2 mode iterator.
2359 * doc/extend.texi: Document AVX2 built-in functions.
2360 * doc/invoke.texi: Document -mavx2.
2361
2362 2011-08-22 Matthias Klose <doko@debian.org>
2363
2364 Revert:
2365 2011-07-11 Arthur Loiret <aloiret@debian.org>
2366 Matthias Klose <doko@debian.org>
2367 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2368 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2369 convention.
2370 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2371
2372 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
2373
2374 PR bootstrap/50146
2375 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
2376 to #ifndef HONOR_REG_ALLOC_ORDER block.
2377
2378 2011-08-21 Richard Henderson <rth@redhat.com>
2379
2380 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
2381 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
2382 * resource.c (next_insn_no_annul): Likewise.
2383 (mark_set_resources): Likewise.
2384 * reorg.c (delete_from_delay_slot): Likewise.
2385 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
2386 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
2387
2388 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
2389
2390 * config/i386/i386.md (any_div): Remove.
2391 (sgnprefix): Update for removal.
2392 (u): Ditto.
2393
2394 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
2395
2396 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
2397 for ira_reg_class_max_nregs. Increase pressure by 1.
2398 (mark_pseudo_regno_subword_dead): Use allocno class
2399 for ira_reg_class_max_nregs.
2400
2401 2011-08-20 Richard Henderson <rth@redhat.com>
2402
2403 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2404 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2405 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2406 config/c6x/ltf.c: Adjust include path for soft-fp.
2407
2408 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
2409
2410 PR other/46770
2411 * config.gcc (tm_file): Add initfini-array.h if
2412 .init_arrary/.fini_array are supported.
2413
2414 * crtstuff.c: Don't generate .ctors nor .dtors sections if
2415 USE_INITFINI_ARRAY is defined.
2416
2417 * output.h (default_elf_init_array_asm_out_constructor): New.
2418 (default_elf_fini_array_asm_out_destructor): Likewise.
2419 * varasm.c (elf_init_array_section): Likewise.
2420 (elf_fini_array_section): Likewise.
2421 (get_elf_initfini_array_priority_section): Likewise.
2422 (default_elf_init_array_asm_out_constructor): Likewise.
2423 (default_elf_fini_array_asm_out_destructor): Likewise.
2424
2425 * config/initfini-array.h: New.
2426
2427 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2428
2429 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
2430 OK for ST_REGS and FP_REGS before taking those classes into account.
2431
2432 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2433
2434 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
2435 before checking for annulled branches.
2436
2437 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2438
2439 * config/i386/i386.c (ix86_binary_operator_ok): Use
2440 satisfies_constraint_L.
2441
2442 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2443 Michael Matz <matz@suse.de>
2444
2445 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
2446 trunc (a + copysign (nextafter (0.5, 0.0), a)).
2447
2448 2011-08-20 Anatoly Sokolov <aesok@post.ru>
2449
2450 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2451 * doc/tm.texi: Regenerate.
2452 * targhooks.c (default_preferred_output_reload_class): Don't use
2453 PREFERRED_OUTPUT_RELOAD_CLASS macro.
2454 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
2455
2456 2011-08-20 Jakub Jelinek <jakub@redhat.com>
2457
2458 PR tree-optimization/48739
2459 * tree-ssa.c: Include cfgloop.h.
2460 (execute_update_addresses_taken): When updating ssa, if in loop closed
2461 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
2462 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
2463
2464 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
2465
2466 PR rtl-optimization/49936
2467 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
2468 for calculation of max register move costs.
2469
2470 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2471
2472 * c-parser.c (c_parser_postfix_expression): Convert operands of
2473 __builtin_complex to their semantic types.
2474
2475 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
2476
2477 PR middle-end/49721
2478 * explow.c (convert_memory_address_addr_space): Also permute the
2479 conversion and addition of constant for zero-extend.
2480
2481 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2482
2483 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
2484 * doc/extend.texi (__builtin_complex): Document.
2485
2486 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2487
2488 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
2489 beyond conversions.
2490 (convert_mult_to_widen): Convert constant inputs to the right type.
2491 (convert_plusminus_to_widen): Don't automatically reject inputs that
2492 are not an SSA_NAME.
2493 Convert constant inputs to the right type.
2494
2495 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2496
2497 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
2498 to the correct type.
2499
2500 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2501
2502 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
2503 unsigned inputs of different modes.
2504 (convert_plusminus_to_widen): Likewise.
2505
2506 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2507
2508 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
2509 'type'.
2510 Use 'type' from caller, not inferred from 'rhs'.
2511 Don't reject non-conversion statements. Do return lhs in this case.
2512 (is_widening_mult_p): Add new argument 'type'.
2513 Use 'type' from caller, not inferred from 'stmt'.
2514 Pass type to is_widening_mult_rhs_p.
2515 (convert_mult_to_widen): Pass type to is_widening_mult_p.
2516 (convert_plusminus_to_widen): Likewise.
2517
2518 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2519
2520 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
2521 Ensure the the larger type is the first operand.
2522
2523 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2524
2525 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
2526 unsupported unsigned multiplies to signed.
2527 (convert_plusminus_to_widen): Likewise.
2528
2529 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2530
2531 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
2532 conversion statement separating multiply-and-accumulate.
2533
2534 2011-08-19 Richard Guenther <rguenther@suse.de>
2535
2536 PR tree-optimization/50067
2537 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
2538 offset only if we accounted for it.
2539
2540 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2541
2542 * config/arm/arm.md (maddhidi4): Remove '*' from name.
2543 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
2544 * optabs.c (find_widening_optab_handler_and_mode): New function.
2545 (expand_widen_pattern_expr): Use find_widening_optab_handler.
2546 (expand_binop_directly): Likewise.
2547 (expand_binop): Likewise.
2548 * optabs.h (find_widening_optab_handler): New macro define.
2549 (find_widening_optab_handler_and_mode): New prototype.
2550 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
2551 type precision rules.
2552 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
2553 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
2554 (is_widening_mult_rhs_p): Allow widening by more than one mode.
2555 Explicitly disallow mis-matched input types.
2556 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
2557 input types to fit the new handler.
2558 (convert_plusminus_to_widen): Likewise.
2559
2560 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2561
2562 * expr.c (expand_expr_real_2): Use widening_optab_handler.
2563 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2564 (gen_insn): $N now means $a must be wider than $b, not consecutive.
2565 * optabs.c (widened_mode): New function.
2566 (expand_widen_pattern_expr): Use widening_optab_handler.
2567 (expand_binop_directly): Likewise.
2568 (expand_binop): Likewise.
2569 * optabs.h (widening_optab_handlers): New struct.
2570 (optab_d): New member, 'widening'.
2571 (widening_optab_handler): New function.
2572 (set_widening_optab_handler): New function.
2573 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2574 widening_optab_handler.
2575 (convert_plusminus_to_widen): Likewise.
2576
2577 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2578
2579 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2580 pedantic.
2581 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2582 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2583
2584 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2585
2586 * opth-gen.awk: Do not declare target save/restore structures and
2587 functions if IN_RTS defined.
2588
2589 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2590
2591 PR target/49437
2592 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2593 when stack was realigned in interrupt handler prologue.
2594
2595 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2596
2597 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2598 (quals_from_declspecs): Assert _Noreturn not present.
2599 (grokdeclarator): Handle _Noreturn.
2600 (build_null_declspecs): Initialize noreturn_p.
2601 (declspecs_add_scspec): Handle RID_NORETURN.
2602 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2603 (c_parser_attributes): Handle RID_NORETURN.
2604 * c-tree.h (struct c_declspecs): Add noreturn_p.
2605 * ginclude/stdnoreturn.h: New.
2606 * Makefile.in (USER_H): Add stdnoreturn.h.
2607
2608 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
2609
2610 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2611 (OPTION_MASK_ISA_AVX_UNSET): Update.
2612 (OPTION_MASK_ISA_AVX2_UNSET): New.
2613 (ix86_handle_option): Handle OPT_mavx2 case.
2614 * config/i386/cpuid.h (bit_AVX2): New.
2615 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2616 AVX2 feature.
2617 * config/i386/i386-c.c (ix86_target_macros_internal):
2618 Conditionally define __AVX2__.
2619 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2620 Define "core-avx2" processor alias. Handle avx2 option.
2621 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2622 * config/i386/i386.h (TARGET_AVX2): New.
2623 * config/i386/i386.opt (mavx2): New.
2624 * doc/invoke.texi: Document -mavx2.
2625
2626 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
2627
2628 PR rtl-optimization/49890
2629 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2630 subclasses of class which is superset of a pressure class.
2631
2632 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2633 Igor Zamyatin <igor.zamyatin@intel.com>
2634
2635 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2636 with HOST_WIDE_INT for isa_flag.
2637 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2638 isa variables.
2639
2640 * config/i386/i386.c (ix86_target_string): Replace int with
2641 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
2642 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2643 (pta_flags): Removed.
2644 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2645 (pta): Use HOST_WIDE_INT on flags.
2646 (builtin_isa): Use HOST_WIDE_INT on isa.
2647 (ix86_add_new_builtins): Likewise.
2648 (def_builtin): Use HOST_WIDE_INT on mask.
2649 (def_builtin_const): Likewise.
2650 (builtin_description): Likewise.
2651
2652 * config/i386/i386.opt (ix86_isa_flags): Replace int with
2653 HOST_WIDE_INT.
2654 (ix86_isa_flags_explicit): Likewise.
2655 (x_ix86_isa_flags_explicit): Likewise.
2656
2657 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
2658
2659 PR rtl-optimization/50107
2660 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2661 (ira_hard_reg_in_set_p): New.
2662
2663 * ira-color.c (calculate_saved_nregs): New.
2664 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
2665 hard regs.
2666 (allocno_reload_assign, fast_allocation): Use
2667 ira_hard_reg_set_intersection_p instead of
2668 ira_hard_reg_not_in_set_p.
2669
2670 * ira.c (setup_reg_renumber): Use
2671 ira_hard_reg_set_intersection_p instead of
2672 ira_hard_reg_not_in_set_p.
2673 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2674 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2675
2676 * ira-costs.c (ira_tune_allocno_costs): Use
2677 ira_hard_reg_set_intersection_p instead of
2678 ira_hard_reg_not_in_set_p.
2679
2680 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2681 Igor Zamyatin <igor.zamyatin@intel.com>
2682
2683 * hwint.h (HOST_WIDE_INT_1): New.
2684
2685 * opt-functions.awk (switch_bit_fields): Initialize the
2686 host_wide_int field.
2687 (host_wide_int_var_name): New.
2688 (var_type_struct): Check and return HOST_WIDE_INT.
2689
2690 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2691
2692 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2693
2694 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
2695 check masks for HOST_WIDE_INT.
2696
2697 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2698 (option_enabled): Likewise.
2699 (get_option_state): Likewise.
2700
2701 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
2702 to HOST_WIDE_INT.
2703
2704 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2705 Marc Glisse <marc.glisse@normalesup.org>
2706
2707 PR libstdc++-v3/1773
2708 * target.def (decl_mangling_context): New C++ hook.
2709 * doc/tm.texi: Regenerate.
2710 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2711 * config/sol2-protos.h: Group by source file.
2712 (solaris_cxx_decl_mangling_context): Declare.
2713 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2714 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2715 Use $<.
2716 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2717 Add sol2-stubs.o to extra_objs.
2718
2719 2011-08-18 Jakub Jelinek <jakub@redhat.com>
2720
2721 PR target/50009
2722 * stor-layout.c (update_alignment_for_field): Don't ICE on
2723 packed flexible array members if ms_bitfield_layout_p.
2724
2725 PR target/50092
2726 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2727 on the result before returning it.
2728
2729 PR debug/50017
2730 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2731 is a debug stmt, use location of the first non-debug stmt after it.
2732
2733 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2734
2735 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2736 (arm_size_rtx_costs): Likewise.
2737
2738 2011-08-18 Richard Guenther <rguenther@suse.de>
2739
2740 * tree.h (tree_int_cst_msb): Remove.
2741 * tree.c (tree_int_cst_msb): Likewise.
2742 (tree_int_cst_sign_bit): Move from ...
2743 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2744
2745 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2746
2747 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2748 * doc/tm.texi: Regenerate.
2749 * target.def (rtx_costs): Add an opno parameter.
2750 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2751 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2752 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2753 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2754 * cse.c (COST_IN): Add an opno parameter.
2755 (notreg_cost): Likewise. Update call to rtx_cost.
2756 (COST, fold_rtx): Update accordingly.
2757 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2758 * expmed.c (emit_store_flag): Likewise.
2759 * optabs.c (avoid_expensive_constant): Add an opno parameter.
2760 Update call to rtx_cost.
2761 (expand_binop_directly, expand_binop): Likewise.
2762 (expand_twoval_binop, prepare_cmp_insn): Likewise.
2763 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2764 (set_src_cost, get_full_set_src_cost): Update accordingly.
2765 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
2766 to target hook.
2767 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
2768 (default_adress_cost): Update calls to rtx_cost.
2769
2770 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2771 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2772 (arm_rtx_costs): Add an opno parameter.
2773 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2774 adjust any recursive rtx-cost calls.
2775 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2776 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2777 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2778 * config/cris/cris.c (cris_rtx_costs): Likewise.
2779 * config/frv/frv.c (frv_rtx_costs): Likewise.
2780 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2781 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2782 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2783 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2784 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2785 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2786 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2787 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2788 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2789 * config/mep/mep.c (mep_rtx_cost): Likewise.
2790 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2791 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
2792 (mips_zero_extend_cost): Add an opno parameter.
2793 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2794 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
2795 to rtx_cost.
2796 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
2797 rtx-cost calls.
2798 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2799 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2800 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
2801 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2802 (rs6000_debug_rtx_costs): Likewise.
2803 * config/s390/s390.c (s390_rtx_costs): Likewise.
2804 * config/score/score-protos.h (score_rtx_costs): Likewise.
2805 * config/score/score.c (score_rtx_costs): Likewise.
2806 * config/sh/sh.c (andcosts): Update call to rtx_cost.
2807 (sh_rtx_costs): Add an opno parameter.
2808 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2809 * config/spu/spu.c (spu_rtx_costs): Likewise.
2810 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2811 * config/v850/v850.c (v850_rtx_costs): Likewise.
2812 * config/vax/vax.c (vax_rtx_costs): Likewise.
2813 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2814
2815 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2816
2817 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
2818 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
2819 rtx_cost.
2820 * calls.c (precompute_register_parameters): Likewise.
2821 * combine.c (expand_compound_operation, make_extraction): Likewise.
2822 (force_to_mode, distribute_and_simplify_rtx): Likewise.
2823 * dse.c (find_shift_sequence): Likewise.
2824 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
2825 * expr.c (compress_float_constant): Likewise.
2826 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2827 * gcse.c (want_to_gcse_p): Likewise.
2828 * ifcvt.c (noce_try_sign_mask): Likewise.
2829 * loop-doloop.c (doloop_optimize): Likewise.
2830 * loop-invariant.c (create_new_invariant): Likewise.
2831 * optabs.c (avoid_expensive_constant): Likewise.
2832 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
2833 (try_replace_in_use, reload_cse_move2add): Likewise.
2834 * reload1.c (calculate_elim_costs_all_insns): Likewise.
2835 (note_reg_elim_costly): Likewise.
2836 * rtlanal.c (insn_rtx_cost): Likewise.
2837 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2838 * stmt.c (lshift_cheap_p): Likewise.
2839 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
2840 * config/avr/avr.c (final_prescan_insn): Likewise.
2841 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2842 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
2843
2844 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2845
2846 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2847 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2848 * cfgloopanal.c (seq_cost): Likewise.
2849 * loop-invariant.c (create_new_invariant): Likewise.
2850 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2851 (reload_cse_move2add): Use get_full_set_rtx_cost.
2852
2853 2011-08-18 Richard Guenther <rguenther@suse.de>
2854
2855 * expr.c (get_inner_reference): Fix typo in last change.
2856
2857 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2858 Joseph Myers <joseph@codesourcery.com>
2859
2860 PR tree-optimization/49963
2861 * hwint.c (absu_hwi): Define.
2862 * hwint.h (absu_hwi): Declare.
2863 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2864 of abs_hwi.
2865 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2866 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2867
2868 2011-08-18 Richard Guenther <rguenther@suse.de>
2869
2870 * expr.c (get_inner_reference): Sign-extend the constant
2871 twos-complement offset before doing arbitrary precision
2872 arithmetic on it.
2873 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2874 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2875 to get_constraint_for_ptr_offset.
2876
2877 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
2878
2879 PR target/50068
2880 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2881
2882 2011-08-17 Richard Guenther <rguenther@suse.de>
2883
2884 * tree.h (convert_to_ptrofftype_loc): New function.
2885 (convert_to_ptrofftype): Define.
2886 * builtins.c (expand_builtin_bzero): Use size_type_node.
2887 (fold_builtin_bzero): Likewise.
2888 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2889 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2890 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2891 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2892 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2893 * fold-const.c (build_range_check): Negate using the original type.
2894 (fold_unary_loc): Use fold_build_pointer_plus_loc.
2895 * gimple-fold.c (gimple_adjust_this_by_delta): Use
2896 convert_to_ptrofftype.
2897 * gimplify.c (gimplify_self_mod_expr): Likewise.
2898 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2899 (graphite_create_new_loop_guard): Likewise.
2900 * graphite-sese-to-poly.c (my_long_long): Remove.
2901 (scop_ivs_can_be_represented): Adjust.
2902 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2903 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2904 * tree-loop-distribution.c (build_size_arg_loc): Use
2905 size_type_node.
2906 (generate_memset_zero): Simplify.
2907 * tree-mudflap.c: Use fold_convert, not convert.
2908 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2909 its own type.
2910 (determine_offset): Likewise for DR_STEP.
2911 (valid_initializer_p): Likewise.
2912 * tree-profile.c (prepare_instrumented_value): Convert the pointer
2913 to an integer type of same size.
2914 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2915 to sizetype without need.
2916 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2917 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2918 * tree-ssa-loop-manip.c (create_iv): Likewise.
2919 (determine_exit_conditions): Adjust comment.
2920 * tree-ssa-pre.c (create_expression_by_pieces): Use
2921 convert_to_ptrofftype.
2922 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2923 * varasm.c (array_size_for_constructor): Compute using double_ints.
2924
2925 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2926
2927 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2928 when generating an integer result where possible. Short-cut
2929 comparison against 0 also for QImode.
2930
2931 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2932
2933 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2934 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2935 prototype.
2936 * config/spu/spu.c (spu_legitimize_reload_address): New function.
2937 (spu_legitimate_address_p): Do not check displacement if the base
2938 is an eliminable stack register.
2939
2940 2011-08-16 Anatoly Sokolov <aesok@post.ru>
2941
2942 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2943 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2944 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2945 m32c_preferred_output_reload_class): Remove.
2946 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2947 Change rclass argument and return types to reg_class_t. Use
2948 reg_class_subset_p instead of class_sizes.
2949 (m32c_preferred_output_reload_class): Make static. Change rclass
2950 argument and return types to reg_class_t.
2951 (TARGET_PREFERRED_RELOAD_CLASS,
2952 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2953
2954 2011-08-16 Kai Tietz <ktietz@redhat.com>
2955
2956 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2957
2958 2011-08-16 Richard GUenther <rguenther@suse.de>
2959
2960 PR tree-optimization/50082
2961 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2962 warnings here, instead of ...
2963 (ssa_forward_propagate_and_combine): ... here.
2964 (forward_propagate_into_comparison_1): Adjust.
2965 (forward_propagate_into_comparison): Likewise.
2966 (forward_propagate_into_gimple_cond): Likewise.
2967 (forward_propagate_into_cond): Likewise.
2968
2969 2011-08-16 Andreas Schwab <schwab@redhat.com>
2970
2971 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2972 instead of ggc_alloc_zone_vec_rtvec_def.
2973
2974 2011-08-16 Richard Guenther <rguenther@suse.de>
2975
2976 * tree.h (ptrofftype_p): New helper function.
2977 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2978 offset verification.
2979 (verify_gimple_assign_binary): Likewise.
2980 * tree.c (build2_stat): Likewise.
2981 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2982 (reset_evolution_in_loop): Likewise.
2983 * tree-chrec.h (build_polynomial_chrec): Likewise.
2984
2985 2011-08-16 Liang Wang <lwang1@marvell.com>
2986
2987 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2988 ggc_alloc_zone_vec_rtvec_def.
2989
2990 2011-08-16 Richard Guenther <rguenther@suse.de>
2991
2992 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2993 helper factored out from ...
2994 (extract_range_from_binary_expr_1): ... here. Re-structure
2995 to not glob handling too different tree codes.
2996
2997 2011-08-15 Richard Henderson <rth@redhat.com>
2998
2999 PR middle-end/50006
3000 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
3001 setting out to include allocate_stack named pattern as well.
3002 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
3003 * stmt.c (expand_stack_restore): Likewise.
3004
3005 2011-08-15 Richard Guenther <rguenther@suse.de>
3006
3007 PR middle-end/50082
3008 * fold-const.c (maybe_canonicalize_comparison_1): Properly
3009 convert the modified operand to the other operand type.
3010 (fold_comparison): Call maybe_canonicalize_comparison_1 with
3011 useless conversions stripped from comparison operands.
3012
3013 2011-08-15 Richard Guenther <rguenther@suse.de>
3014
3015 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
3016 (extract_range_from_unary_expr_1): Restructure.
3017
3018 2011-08-15 Richard Guenther <rguenther@suse.de>
3019
3020 PR tree-optimization/50058
3021 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
3022 copy matching.
3023
3024 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3025
3026 PR target/50022
3027 * config/arm/arm.c (output_move_double): Add 2 parameters
3028 to count the number of insns emitted and whether to emit or not.
3029 Use the flag to decide when to emit and count number of instructions
3030 that will be emitted.
3031 Handle case where output_move_double might be called for calculating
3032 lengths with an invalid constant.
3033 (arm_count_output_move_double_insns): Define.
3034 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
3035 (output_move_double): Adjust prototype.
3036 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
3037 output_move_double.
3038 ("*movdi_vfp_cortexa8"): Likewise and add attribute
3039 for ce_count.
3040 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
3041 ("*movdf_soft_insn"): Likewise.
3042 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
3043 ("*cirrus_thumb2_movdi"): Likewise.
3044 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
3045 ("*cirrus_movdf_hard_insn"): Likewise.
3046 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
3047 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
3048 ("mov<mode>_internal VMMX"): Likewise.
3049 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
3050
3051 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
3052
3053 * config/i386/i386.c (ix86_expand_round_sse4): New function.
3054 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
3055 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
3056 for TARGET_ROUND.
3057
3058 (rint<mode>2): Simplify TARGET_ROUND check.
3059 (floor<mode>2): Ditto.
3060 (ceil<mode>2): Ditto.
3061 (btrunc<mode>2): Ditto.
3062
3063 2011-08-14 Anatoly Sokolov <aesok@post.ru>
3064
3065 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
3066 as mmix_preferred_output_reload_class.
3067
3068 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
3069
3070 * PR target/49903
3071 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
3072 (branch_unspec): New insn.
3073 (branch): Beauty farm.
3074 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
3075 to be IF_THEN_ELSE.
3076 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
3077 New static functions.
3078 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
3079 Use CONST_INT_P. Beauty.
3080
3081 2011-08-12 Richard Henderson <rth@redhat.com>
3082
3083 PR rtl-opt/49994
3084 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
3085 * sched-deps.c (init_deps): Clear it.
3086 (deps_analyze_insn): Consume it.
3087 (sched_analyze_insn): Fill it.
3088
3089 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3090
3091 PR target/48328
3092 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
3093 for tbh instructions.
3094
3095 2011-08-12 Diego Novillo <dnovillo@google.com>
3096
3097 * data-streamer.h (streamer_write_zero): Rename from output_zero.
3098 (streamer_write_uhwi): Rename from lto_output_uleb128.
3099 (streamer_write_hwi): Rename from output_sleb128.
3100 (streamer_write_string): Rename from lto_output_string.
3101 (streamer_string_index): Rename from lto_string_index.
3102 (streamer_write_string_with_length): Rename from
3103 lto_output_string_with_length.
3104 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
3105 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
3106 (streamer_read_string): Rename from lto_input_string.
3107 (streamer_read_indexed_string): Rename from input_string_internal.
3108 (streamer_read_uhwi): Rename from lto_input_uleb128.
3109 (streamer_read_hwi): Rename from lto_input_sleb128.
3110 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
3111 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
3112 (streamer_write_enum): Rename from lto_output_enum.
3113 (streamer_read_enum): Rename from lto_input_enum.
3114 (streamer_write_record_start): Rename from output_record_start.
3115 (streamer_read_record_start): Rename from input_record_start.
3116 (streamer_write_bitpack): Rename from lto_output_bitpack.
3117 (streamer_read_bitpack): Rename from lto_input_bitpack.
3118 (streamer_write_char_stream): Rename from lto_output_1_stream.
3119 (streamer_read_uchar): Rename from lto_input_1_unsigned.
3120 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
3121 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
3122 (streamer_read_string_cst): Rename from input_string_cst.
3123 (streamer_read_chain): Rename from lto_input_chain.
3124 (streamer_alloc_tree): Rename from lto_materialize_tree.
3125 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
3126 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
3127 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
3128 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
3129 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
3130 (streamer_write_chain): Rename from lto_output_chain.
3131 (streamer_write_tree_header): Rename from lto_output_tree_header.
3132 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
3133 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
3134 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
3135 (streamer_write_builtin): Rename from lto_output_builtin_tree.
3136 (streamer_check_handled_ts_structures): Rename from
3137 check_handled_ts_structures.
3138 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
3139 (streamer_tree_cache_insert_at): Rename from
3140 lto_streamer_cache_insert_at.
3141 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
3142 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
3143 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
3144 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
3145 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
3146 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
3147 (write_identifier): Rename from output_identifier.
3148 (write_ts_common_tree_pointers): Rename from
3149 lto_output_ts_common_tree_pointers.
3150 (write_ts_vector_tree_pointers): Rename from
3151 lto_output_ts_vector_tree_pointers.
3152 (write_ts_complex_tree_pointers): Rename from
3153 lto_output_ts_complex_tree_pointers.
3154 (write_ts_decl_minimal_tree_pointers): Rename from
3155 lto_output_ts_decl_minimal_tree_pointers.
3156 (write_ts_decl_common_tree_pointers): Rename from
3157 lto_output_ts_decl_common_tree_pointers.
3158 (write_ts_decl_non_common_tree_pointers): Rename from
3159 lto_output_ts_decl_non_common_tree_pointers.
3160 (write_ts_decl_with_vis_tree_pointers): Rename from
3161 lto_output_ts_decl_with_vis_tree_pointers.
3162 (write_ts_field_decl_tree_pointers): Rename from
3163 lto_output_ts_field_decl_tree_pointers.
3164 (write_ts_function_decl_tree_pointers): Rename from
3165 lto_output_ts_function_decl_tree_pointers.
3166 (write_ts_type_common_tree_pointers): Rename from
3167 lto_output_ts_type_common_tree_pointers.
3168 (write_ts_type_non_common_tree_pointers): Rename from
3169 lto_output_ts_type_non_common_tree_pointers.
3170 (write_ts_list_tree_pointers): Rename from
3171 lto_output_ts_list_tree_pointers.
3172 (write_ts_vec_tree_pointers): Rename from
3173 lto_output_ts_vec_tree_pointers.
3174 (write_ts_exp_tree_pointers): Rename from
3175 lto_output_ts_exp_tree_pointers.
3176 (write_ts_block_tree_pointers): Rename from
3177 lto_output_ts_block_tree_pointers.
3178 (write_ts_binfo_tree_pointers): Rename from
3179 lto_output_ts_binfo_tree_pointers.
3180 (write_ts_constructor_tree_pointers): Rename from
3181 lto_output_ts_constructor_tree_pointers.
3182 (write_ts_target_option): Rename from lto_output_ts_target_option.
3183 (write_ts_translation_unit_decl_tree_pointers): Rename from
3184 lto_output_ts_translation_unit_decl_tree_pointers.
3185 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
3186 Rename from lto_streamer_cache_add_to_node_array.
3187 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
3188 (record_common_node): Rename from lto_record_common_node.
3189
3190 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
3191 declarations.
3192 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
3193 function.
3194 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
3195 unused function.
3196 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
3197 (ipa-reference.o): Likewise.
3198 * lto-section-out.c: Include data-streamer.h.
3199 * ipa-reference.c: Include data-streamer.h.
3200
3201 2011-08-12 Nick Clifton <nickc@redhat.com>
3202
3203 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
3204 * doc/md.texi (cmpstrn): Note that the comparison stops if both
3205 fetched bytes are zero.
3206 (cmpstr): Likewise.
3207 (cmpmem): Note that the comparison does not stop if both of the
3208 fetched bytes are zero.
3209
3210 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
3211
3212 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
3213 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
3214 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
3215 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
3216 to integer_type_node.
3217 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
3218 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
3219 * builtins.c (expand_builtin_in): Ditto.
3220 (mathfn_built_in_1): Ditto.
3221 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
3222 BUILT_IN_IFLOOR.
3223 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
3224 BUILT_IN_IROUND.
3225 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
3226 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
3227 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
3228
3229 2011-08-12 Richard Guenther <rguenther@suse.de>
3230
3231 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
3232
3233 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
3234
3235 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
3236
3237 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
3238
3239 * config/arm/arm.c (get_label_padding): New function.
3240 (create_fix_barrier, arm_reorg): Use it.
3241
3242 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
3243
3244 PR target/49781
3245 * config/i386/i386.md (*lea_5_zext): New.
3246 (*lea_6_zext): Ditto.
3247 * config/i386/predicates.md (const_32bit_mask): New predicate.
3248 (lea_address_operand): Reject AND.
3249 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3250 const_32bit_mask immediate.
3251 (ix86_print_operand_address): Handle AND.
3252 (memory_address_length): Ditto.
3253
3254 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
3255 Brian Hackett <bhackett1024@gmail.com>
3256
3257 * plugin.def: Add event for finish_decl.
3258 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3259 * c-decl.c (finish_decl): Invoke callbacks on above event.
3260 * doc/plugins.texi: Document above event.
3261
3262 2011-08-11 Richard Guenther <rguenther@suse.de>
3263
3264 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3265 lookups, make looking through aggregate copies stronger.
3266
3267 2011-08-11 Richard Henderson <rth@redhat.com>
3268
3269 PR bootstrap/50018
3270 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3271
3272 2011-08-11 Richard Guenther <rguenther@suse.de>
3273
3274 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3275 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3276 (vrp_visit_stmt): Likewise.
3277
3278 2011-08-11 Richard Guenther <rguenther@suse.de>
3279
3280 PR middle-end/50040
3281 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3282 load of the other piece with TREE_NO_WARNING.
3283 * tree-flow.h (warn_uninit): Adjust prototype.
3284 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3285 the base variable and the expression that is used separately.
3286 Properly query all TREE_NO_WARNING flags.
3287 (struct walk_data): Remove.
3288 (warn_uninitialized_var): Likewise.
3289 (warn_uninitialized_vars): Do not walk gimple pieces but simply
3290 look at all SSA uses of the statement. Handle unused memory
3291 separately.
3292 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3293
3294 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
3295
3296 * config/rx/rx.md (movsicc): Allow register to register transfers.
3297 (*movsicc): Likewise.
3298 (*stcc): Restrict this pattern to EQ and NE compares.
3299 (*stcc_reg): New pattern. Works for any comparison but only for
3300 register transfers.
3301
3302 2011-08-11 Diego Novillo <dnovillo@google.com>
3303
3304 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3305 Call stream_write_tree instead of output_record_start.
3306 (lto_output_ts_binfo_tree_pointers): Likewise.
3307
3308 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3309 Convert it to a macro.
3310 (stream_read_tree): Likewise.
3311
3312 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3313 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3314
3315 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3316 and tree_read_bitfields.
3317 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3318 (lto_write_tree): Call it.
3319 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3320 * streamer-hooks.h (struct streamer_hooks): Remove fields
3321 name, is_streamable and alloc_tree. Update all users.
3322 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3323 (lto_materialize_tree): ... here.
3324 Handle CALL_EXPR codes.
3325 Remove call to lto_streamer_cache_append.
3326 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3327 * tree-streamer.h (tree_read_bitfields): Declare.
3328
3329 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
3330 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
3331 * tree-streamer.h (stream_read_tree): New. Replace all calls
3332 to lto_input_tree with it.
3333 (stream_write_tree): New. Replace all calls to lto_output_tree,
3334 lto_output_tree_ref and lto_output_tree_or_ref with it.
3335 * lto-streamer-in.c (lto_read_tree): Inline code from
3336 lto_streamer_read_tree.
3337 (lto_input_tree): Move from tree-streamer-in.c.
3338 * lto-streamer-out.c (lto_output_tree_ref): Make static.
3339 Remove handling of NULL values for EXPR.
3340 Do not handle EXPRs that are not indexable.
3341 (lto_write_tree): Move from tree-streamer-out.c.
3342 Inline lto_streamer_write_tree.
3343 (lto_output_tree): Move from tree-streamer-out.c.
3344 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
3345 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
3346 (lto_preload_common_nodes): Likewise.
3347 Remove assertions and adjustments for nodes
3348 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
3349 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
3350 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
3351 * lto-streamer.h (lto_input_tree): Declare.
3352 (lto_output_tree_ref): Remove.
3353 * streamer-hooks.h (struct streamer_hooks): Remove fields
3354 preload_common_nodes, indexable_with_decls_p,
3355 pack_value_fields, unpack_value_fields and output_tree_header.
3356 Update all users.
3357 * tree-streamer-in.c (lto_materialize_tree): Make extern.
3358 (lto_input_tree_pointers): Likewise.
3359 (lto_read_tree): Move to lto-streamer-in.c.
3360 (lto_input_integer_cst): Make extern.
3361 (lto_get_pickled_tree): Likewise.
3362 (lto_get_builtin_tree): Likewise.
3363 (lto_input_tree): Move to lto-streamer-in.c.
3364 * tree-streamer-out.c (pack_value_fields): Make extern.
3365 (lto_output_tree_or_ref): Remove. Replace all callers with
3366 calls to stream_write_tree.
3367 (lto_output_builtin_tree): Make extern.
3368 (lto_streamer_write_tree): Inline into lto_write_tree.
3369 (lto_output_tree_pointers): Make extern.
3370 (lto_output_tree_header): Likewise.
3371 (lto_output_integer_cst): Likewise.
3372 (lto_write_tree): Move to lto-streamer-out.c.
3373 (lto_output_tree): Likewise.
3374 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
3375 (preload_common_nodes): Likewise.
3376 (lto_streamer_cache_create): Call it.
3377 * tree-streamer.h: Include streamer-hooks.h.
3378 (stream_write_tree): New.
3379 (stream_read_tree): New.
3380 (lto_input_tree): Remove.
3381 (lto_materialize_tree): Declare.
3382 (lto_input_tree_pointers): Declare.
3383 (lto_get_pickled_tree): Declare.
3384 (lto_get_builtin_tree): Declare.
3385 (lto_input_integer_cst): Declare.
3386 (lto_output_tree_header): Declare.
3387 (pack_value_fields): Declare.
3388 (lto_output_tree_pointers): Declare.
3389 (lto_output_integer_cst): Declare.
3390 (lto_output_builtin_tree): Declare.
3391
3392 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3393
3394 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
3395 only if producer writes to the register given by regno.
3396
3397 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3398 Alexander Monakov <amonakov@ispras.ru>
3399
3400 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
3401 (sched_get_condition_with_rev_uncached): ... this. Factor out
3402 condition caching logic into ...
3403 (sched_get_condition_with_rev): ... this. Reimplement. Do not
3404 attempt to use cache for instructions with zero luid.
3405 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
3406 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
3407
3408 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3409
3410 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
3411 get_seqno_for_a_jump. Update the caller.
3412 (get_seqno_by_succs): New. Use it ...
3413 (get_seqno_for_a_jump): ... here to find a seqno if looking at
3414 predecessors was not sufficient.
3415 (get_seqno_by_preds): Include head in iteration range, exclude insn.
3416
3417 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3418
3419 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
3420
3421 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3422
3423 * sel-sched-ir.h (register_unavailable_p): Declare.
3424 * sel-sched-ir.c (register_unavailable_p): New. Use it...
3425 (set_unavailable_target_for_expr): ... here to properly test
3426 availability of a register.
3427 (speculate_expr): Ditto.
3428 * sel-sched.c (substitute_reg_in_expr): Ditto.
3429 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
3430
3431 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3432
3433 * sel-sched.c (verify_target_availability): Fix usage of
3434 hard_regno_nregs.
3435
3436 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3437
3438 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
3439 recognized by cannot_copy_insn_p hook and volatile instructions.
3440
3441 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3442
3443 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
3444
3445 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
3446
3447 * doc/md.texi (define_bypass): Say that the instruction names can
3448 be filename-style globs.
3449 * Makefile.in (FNMATCH_H): Define.
3450 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
3451 * genattrtab.c: Include fnmatch.h.
3452 (bypass_list): Change field name from "insn" to "pattern".
3453 (gen_bypass_1): Update accordingly.
3454 (process_bypasses): Use fnmatch to check for matches between
3455 insn reservations and define_bypasses.
3456 * genautomata.c: Include fnmatch.h.
3457 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
3458 and out_pattern respectively.
3459 (gen_bypass, insert_bypass): Update accordingly.
3460 (for_each_matching_insn, process_bypass_2, process_bypass_1)
3461 (process_bypass): New functions.
3462 (process_decls): Use process_bypass. Update after field name changes.
3463
3464 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
3465
3466 PR target/49687
3467 * config/avr/avr.md (smulqi3_highpart): New insn.
3468 (umulqi3_highpart): New insn.
3469 (*subqi3.ashiftrt7): New insn.
3470 (smulhi3_highpart): New expander.
3471 (umulhi3_highpart): Nex expander.
3472 (*smulhi3_highpart_call): New insn.
3473 (*umulhi3_highpart_call): New insn.
3474 (extend_u): New code attribute.
3475 (extend_prefix): Rename code attribute to extend_su.
3476 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
3477 widening QI/HI multiply.
3478
3479 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
3480
3481 PR tree-optimization/50039
3482 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
3483 that DEF_STMT has a stmt_vec_info.
3484
3485 2011-08-10 Richard Guenther <rguenther@suse.de>
3486
3487 * tree.h (can_trust_pointer_alignment): Remove.
3488 * builtins.c (can_trust_pointer_alignment): Remove.
3489
3490 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3491
3492 * c-typeck.c (scalar_to_vector): New function. Try scalar to
3493 vector conversion.
3494 (stv_conv): New enum for scalar_to_vector return type.
3495 (build_binary_op): Adjust.
3496 * doc/extend.texi: Description of scalar to vector expansion.
3497
3498 2011-08-10 Richard Guenther <rguenther@suse.de>
3499
3500 * tree.h (get_pointer_alignment): Remove max-align argument.
3501 (get_object_alignment): Likewise.
3502 * builtins.c (get_object_alignment_1): Adjust.
3503 (get_object_alignment): Remove max-align argument.
3504 (get_pointer_alignment): Likewise.
3505 (expand_builtin_strlen): Adjust.
3506 (expand_builtin_memcpy): Likewise.
3507 (expand_builtin_mempcpy_args): Likewise.
3508 (expand_builtin_strncpy): Likewise.
3509 (expand_builtin_memset_args): Likewise.
3510 (expand_builtin_memcmp): Likewise.
3511 (expand_builtin_strcmp): Likewise.
3512 (expand_builtin_strncmp): Likewise.
3513 (get_builtin_sync_mem): Likewise.
3514 (fold_builtin_memset): Likewise.
3515 (fold_builtin_memory_op): Likewise.
3516 (expand_builtin_memory_chk): Likewise.
3517 * emit-rtl.c (get_mem_align_offset): Likewise.
3518 (set_mem_attributes_minus_bitpos): Likewise.
3519 * expr.c (expand_assignment): Likewise.
3520 (expand_expr_real_1): Likewise.
3521 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
3522 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3523 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
3524 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3525 * value-prof.c (gimple_stringops_transform): Likewise.
3526
3527 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
3528
3529 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
3530 * doc/tm.texi: Regenerate.
3531
3532 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
3533
3534 PR target/29560
3535 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
3536 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
3537 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
3538 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
3539 shift target is unused.
3540
3541 2011-08-10 Richard Guenther <rguenther@suse.de>
3542
3543 PR tree-optimization/49937
3544 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
3545 using get_object_alignment_1.
3546
3547 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3548
3549 * config/i386/i386.c (ix86_emit_i387_round): New function.
3550 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
3551 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
3552 Use ix86_emit_i387_round to expand round function for i387 math.
3553 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
3554 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
3555
3556 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3557
3558 * config/sync.c: Move to ../libgcc.
3559 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3560 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3561 Remove.
3562
3563 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3564
3565 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3566 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3567 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3568 Change 'from' and 'to' arguments type to reg_class_t.
3569 (TARGET_REGISTER_MOVE_COST): Define.
3570
3571 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
3572
3573 PR target/50026
3574 Revert:
3575 PR rtl-optimization/49990
3576 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3577 ignore classes which can not change mode.
3578 (find_costs_and_classes): Ditto.
3579
3580 2011-08-09 Richard Guenther <rguenther@suse.de>
3581
3582 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3583 information for ranges with only negative values.
3584 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3585 BIT_AND_EXPR handling to handle ranges with negative values.
3586
3587 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
3588
3589 * config/i386/i386.c: Remove traling spaces.
3590 * config/i386/sse.md: Likewise.
3591 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3592 (*fma_fmsub_<mode>): Likewise.
3593 (*fma_fnmadd_<mode>): Likewise.
3594 (*fma_fnmsub_<mode>): Likewise.
3595
3596 2011-08-09 Nick Clifton <nickc@redhat.com>
3597
3598 * config/rx/rx.md: Disable extender peepholes at -O3.
3599
3600 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3601
3602 PR target/49781
3603 * config/i386/i386.md (reload_noff_load): New.
3604 (reload_noff_store): Ditto.
3605 * config/i386/i386.c (ix86_secondary_reload): Use
3606 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3607 double-word moves from/to non-offsetable addresses instead of
3608 generating XMM temporary.
3609
3610 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3611
3612 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3613
3614 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
3615
3616 PR tree-optimization/50014
3617 * tree-vect-loop.c (vectorizable_reduction): Get def type before
3618 calling vect_get_vec_def_for_stmt_copy ().
3619
3620 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
3621
3622 PR rtl-optimization/49990
3623 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3624 ignore classes which can not change mode.
3625 (find_costs_and_classes): Ditto.
3626
3627 2011-08-08 Richard Henderson <rth@redhat.com>
3628
3629 PR middle-end/49990
3630 * config/i386/i386.c (ix86_expand_prologue): Call
3631 for SEH target gen_prologue_use instead of gen_blockage
3632 at prologue's end.
3633
3634 2011-08-08 Martin Jambor <mjambor@suse.cz>
3635
3636 PR middle-end/49923
3637 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3638 memory alignment.
3639
3640 2011-08-08 Diego Novillo <dnovillo@google.com>
3641
3642 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3643 (DATA_STREAMER_H): New.
3644 (GIMPLE_STREAMER_H): New.
3645 (TREE_STREAMER_H): New.
3646 (STREAMER_HOOKS_H): New.
3647 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3648 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3649 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3650 (data-streamer.o): New.
3651 (data-streamer-in.o): New.
3652 (data-streamer-out.o): New.
3653 (gimple-streamer-in.o): New.
3654 (gimple-streamer-out.o): New.
3655 (streamer-hooks.o): New.
3656 (tree-streamer.o): New.
3657 (tree-streamer-in.o): New.
3658 (tree-streamer-out.o): New.
3659 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3660 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3661 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3662 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3663 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3664 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3665 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3666 (ipa-inline-analysis.o): Likewise.
3667 (ipa-pure-const.o): Likewise.
3668 * data-streamer-in.c: New.
3669 * data-streamer-out.c: New.
3670 * data-streamer.c: New.
3671 * data-streamer.h: New.
3672 * gimple-streamer-in.c: New.
3673 * gimple-streamer-out.c: New.
3674 * gimple-streamer.h: New.
3675 * ipa-inline-analysis.c: Include data-streamer.h.
3676 * ipa-prop.c: Include data-streamer.h.
3677 * ipa-pure-const.c: Include data-streamer.h.
3678 * lto-cgraph.c: Include data-streamer.h.
3679 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3680 (lto_input_widest_uint_uleb128): Likewise.
3681 (lto_input_sleb128): Likewise.
3682 (bp_unpack_var_len_unsigned): Likewise.
3683 (bp_unpack_var_len_int): Likewise.
3684 * lto-section-out.c (lto_output_uleb128_stream): Move to
3685 data-streamer-out.c.
3686 (lto_output_widest_uint_uleb128_stream): Likewise.
3687 (lto_output_sleb128_stream): Likewise.
3688 (bp_pack_var_len_unsigned): Likewise.
3689 (bp_pack_var_len_int): Likewise.
3690 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3691 (struct string_slot): Remove. Update all users.
3692 (lto_tag_check_set): Make extern.
3693 (lto_tag_check_range): Move to lto-streamer.h.
3694 (lto_tag_check): Likewise.
3695 (hash_string_slot_node): Remove. Update all users.
3696 (eq_string_slot_node): Remove. Update all users.
3697 (string_for_index): Move to data-streamer-in.c
3698 (input_string_internal): Likewise.
3699 (input_string_cst): Move to tree-streamer-in.c.
3700 (input_identifier): Likewise.
3701 (lto_input_string): Move to data-streamer-in.c
3702 (input_record_start): Move to data-streamer.h
3703 (canon_file_name): Use new definition of struct string_slot
3704 from data-streamer.h. Set S_SLOT.LEN.
3705 (lto_input_location): Make extern.
3706 (lto_input_chain): Move to tree-streamer-in.c.
3707 (lto_init_eh): Make extern.
3708 (input_phi): Move to gimple-streamer-in.c.
3709 (input_gimple_stmt): Likewise.
3710 (input_bb): Likewise.
3711 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3712 (unpack_ts_real_cst_value_fields): Likewise.
3713 (unpack_ts_fixed_cst_value_fields): Likewise.
3714 (unpack_ts_decl_common_value_fields): Likewise.
3715 (unpack_ts_decl_wrtl_value_fields): Likewise.
3716 (unpack_ts_decl_with_vis_value_fields): Likewise.
3717 (unpack_ts_function_decl_value_fields): Likewise.
3718 (unpack_ts_type_common_value_fields): Likewise.
3719 (unpack_ts_block_value_fields): Likewise.
3720 (unpack_ts_translation_unit_decl_value_fields): Likewise.
3721 (unpack_value_fields): Likewise.
3722 (lto_materialize_tree): Likewise.
3723 (lto_input_ts_common_tree_pointers): Likewise.
3724 (lto_input_ts_vector_tree_pointers): Likewise.
3725 (lto_input_ts_complex_tree_pointers): Likewise.
3726 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3727 (lto_input_ts_decl_common_tree_pointers): Likewise.
3728 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3729 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3730 (lto_input_ts_field_decl_tree_pointers): Likewise.
3731 (lto_input_ts_function_decl_tree_pointers): Likewise.
3732 (lto_input_ts_type_common_tree_pointers): Likewise.
3733 (lto_input_ts_type_non_common_tree_pointers): Likewise.
3734 (lto_input_ts_list_tree_pointers): Likewise.
3735 (lto_input_ts_vec_tree_pointers): Likewise.
3736 (lto_input_ts_exp_tree_pointers): Likewise.
3737 (lto_input_ts_block_tree_pointers): Likewise.
3738 (lto_input_ts_binfo_tree_pointers): Likewise.
3739 (lto_input_ts_constructor_tree_pointers): Likewise.
3740 (lto_input_ts_target_option): Likewise.
3741 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3742 (lto_input_tree_pointers): Likewise.
3743 (lto_get_pickled_tree): Likewise.
3744 (lto_get_builtin_tree): Likewise.
3745 (lto_read_tree): Likewise.
3746 (lto_input_integer_cst): Likewise.
3747 (lto_input_tree): Likewise.
3748 * lto-streamer-out.c: Include data-streamer.h,
3749 gimple-streamer.h and streamer-hooks.h.
3750 (struct string_slot): Move to data-streamer.h.
3751 (hash_string_slot_node): Likewise.
3752 (eq_string_slot_node): Likewise.
3753 (lto_string_index): Move to data-streamer-out.c.
3754 (lto_output_string_with_length): Likewise.
3755 (lto_output_string): Likewise.
3756 (output_string_cst): Move to tree-streamer-out.c.
3757 (output_identifier): Likewise.
3758 (output_zero): Move to data-streamer-out.c
3759 (output_uleb128): Likewise.
3760 (output_sleb128): Likewise.
3761 (output_record_start): Move to data-streamer.h
3762 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3763 (pack_ts_real_cst_value_fields): Likewise.
3764 (pack_ts_fixed_cst_value_fields): Likewise.
3765 (pack_ts_decl_common_value_fields): Likewise.
3766 (pack_ts_decl_wrtl_value_fields): Likewise.
3767 (pack_ts_decl_with_vis_value_fields): Likewise.
3768 (pack_ts_function_decl_value_fields): Likewise.
3769 (pack_ts_type_common_value_fields): Likewise.
3770 (pack_ts_block_value_fields): Likewise.
3771 (pack_ts_translation_unit_decl_value_fields): Likewise.
3772 (pack_value_fields): Likewise.
3773 (lto_output_chain): Likewise.
3774 (lto_output_ts_common_tree_pointers): Likewise.
3775 (lto_output_ts_vector_tree_pointers): Likewise.
3776 (lto_output_ts_complex_tree_pointers): Likewise.
3777 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3778 (lto_output_ts_decl_common_tree_pointers): Likewise.
3779 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
3780 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
3781 (lto_output_ts_field_decl_tree_pointers): Likewise.
3782 (lto_output_ts_function_decl_tree_pointers): Likewise.
3783 (lto_output_ts_type_common_tree_pointers): Likewise.
3784 (lto_output_ts_type_non_common_tree_pointers): Likewise.
3785 (lto_output_ts_list_tree_pointers): Likewise.
3786 (lto_output_ts_vec_tree_pointers): Likewise.
3787 (lto_output_ts_exp_tree_pointers): Likewise.
3788 (lto_output_ts_block_tree_pointers): Likewise.
3789 (lto_output_ts_binfo_tree_pointers): Likewise.
3790 (lto_output_ts_constructor_tree_pointers): Likewise.
3791 (lto_output_ts_target_option): Likewise.
3792 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
3793 (lto_output_tree_pointers): Likewise.
3794 (lto_output_tree_header): Likewise.
3795 (lto_output_builtin_tree): Likewise.
3796 (lto_write_tree): Likewise.
3797 (lto_output_integer_cst): Likewise.
3798 (lto_output_tree): Likewise.
3799 (output_phi): Move to gimple-streamer-out.c.
3800 (output_gimple_stmt): Likewise.
3801 (output_bb): Likewise.
3802 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
3803 (streamer_hooks): Move to streamer-hooks.c.
3804 (check_handled_ts_structures): Move to tree-streamer.c
3805 (lto_streamer_cache_add_to_node_array): Likewise.
3806 (lto_streamer_cache_insert_1): Likewise.
3807 (lto_streamer_cache_insert): Likewise.
3808 (lto_streamer_cache_insert_at): Likewise.
3809 (lto_streamer_cache_append): Likewise.
3810 (lto_streamer_cache_lookup): Likewise.
3811 (lto_streamer_cache_get): Likewise.
3812 (lto_record_common_node): Likewise.
3813 (lto_preload_common_nodes): Likewise.
3814 (lto_streamer_cache_create): Likewise.
3815 (lto_streamer_cache_delete): Likewise.
3816 (streamer_hooks_init): Move to streamer-hooks.c.
3817 * lto-streamer.h: Include diagnostic.h
3818 (struct output_block, struct lto_input_block,
3819 struct data_in, struct bitpack_d): Remove forward declarations.
3820 (struct bitpack_d): Move to data-streamer.h.
3821 (struct lto_streamer_cache_d): Move to tree-streamer.h.
3822 (struct streamer_hooks): Move to streamer-hooks.h.
3823 (bp_pack_var_len_unsigned): Move to data-streamer.h.
3824 (bp_pack_var_len_int): Likewise.
3825 (bp_unpack_var_len_unsigned): Likewise.
3826 (bp_unpack_var_len_int): Likewise.
3827 (lto_input_location): Declare.
3828 (lto_tag_check_set): Declare.
3829 (lto_init_eh): Declare.
3830 (lto_output_tree_ref): Declare.
3831 (lto_output_location): Declare.
3832 (bitpack_create): Move to data-streamer.h.
3833 (bp_pack_value): Likewise.
3834 (lto_output_bitpack): Likewise.
3835 (lto_input_bitpack): Likewise.
3836 (bp_unpack_value): Likewise.
3837 (lto_output_1_stream): Likewise.
3838 (lto_input_1_unsigned): Likewise.
3839 (lto_output_int_in_range): Likewise.
3840 (lto_input_int_in_range): Likewise.
3841 (bp_pack_int_in_range): Likewise.
3842 (bp_unpack_int_in_range): Likewise.
3843 (lto_output_enum): Likewise.
3844 (lto_input_enum): Likewise.
3845 (bp_pack_enum): Likewise.
3846 (bp_unpack_enum): Likewise.
3847 * streamer-hooks.c: New.
3848 * streamer-hooks.h: New.
3849 * tree-streamer-in.c: New.
3850 * tree-streamer-out.c: New.
3851 * tree-streamer.c: New.
3852 * tree-streamer.h: New.
3853
3854 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3855
3856 * gthr-posix95.h: Remove.
3857 * gthr.h [_PTHREADS95]: Remove.
3858 * configure.ac (enable_threads): Remove posix95.
3859 * configure: Regenerate.
3860 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3861
3862 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
3863
3864 PR target/49781
3865 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3866 SImode addresses.
3867 (ix86_print_operand_address): Handle zero-extended addresses.
3868 (memory_address_length): Add length of addr32 prefix for
3869 zero-extended addresses.
3870 (ix86_secondary_reload): Handle moves to/from double-word general
3871 registers from/to zero-extended addresses.
3872 * config/i386/predicates.md (lea_address_operand): Reject
3873 zero-extended operands.
3874
3875 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
3876
3877 PR other/48007
3878 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3879
3880 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3881 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3882
3883 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3884 (_Unwind_Context_Reg_Val): Likewise.
3885 (_Unwind_Get_Unwind_Word): Likewise.
3886 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3887 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3888 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3889 for EXTENDED_CONTEXT_BIT.
3890 (__frame_state_for): Likewise.
3891 (uw_init_context_1): Likewise.
3892 (_Unwind_GetGR): Updated.
3893 (_Unwind_SetGR): Likewise.
3894 (_Unwind_GetGRPtr): Likewise.
3895 (_Unwind_SetGRPtr): Likewise.
3896 (_Unwind_SetGRValue): Likewise.
3897 (_Unwind_GRByValue): Likewise.
3898 (uw_install_context_1): Likewise.
3899
3900 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3901 ASSUME_EXTENDED_UNWIND_CONTEXT.
3902 * doc/tm.texi: Regenerated.
3903
3904 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3905
3906 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3907
3908 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3909
3910 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3911 Linux/GNU-specific.
3912 (DEC Alpha Options, -mtune): Likewise.
3913 (MIPS Options, -march): native is supported on IRIX.
3914
3915 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3916
3917 * config/sparc/driver-sparc.c: New file.
3918 * config/sparc/x-sparc: New file.
3919 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3920 * config/sparc/sparc.opt (native): New value for enum processor_type.
3921 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3922 * config/sparc/sparc.c (sparc_option_override): Abort if
3923 PROCESSOR_NATIVE gets here.
3924 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3925 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3926 DRIVER_SELF_SPECS): Define.
3927 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3928 (SPARC Options, -mtune): Likewise.
3929 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3930 Substitute result.
3931 * configure: Regenerate.
3932 * Makefile.in (EXTRA_GCC_LIBS): Set.
3933 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3934 (cpp$(exeext)): Likewise.
3935
3936 2011-08-08 Richard Guenther <rguenther@suse.de>
3937
3938 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3939 split out from ...
3940 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
3941 by composition.
3942
3943 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
3944
3945 PR tree-optimization/50005
3946 * ipa-inline-analysis (remap_predicate): Add cast to
3947 silence signed/unsigned comparison warning.
3948
3949 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
3950
3951 * modulo-sched.c (get_sched_window): Use a table for the debug output.
3952 Print the current ii.
3953 (sms_schedule_by_order): Reduce whitespace in dump line.
3954
3955 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
3956
3957 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3958 and one loop for successors. Fix upper bound of memory range.
3959
3960 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3961
3962 PR target/50001
3963 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3964 (TARGET_INSTANTIATE_DECLS): New define.
3965
3966 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
3967 Mikael Morin <mikael.morin@sfr.fr>
3968
3969 * Makefile.in (INCLUDES_FOR_TARGET): New.
3970 (LIBGCC2_CFLAGS): Use it.
3971 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3972
3973 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3974
3975 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3976 frame->save_regs_using_mov calculation.
3977
3978 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3979
3980 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3981 * config/i386/sse.md (castmode): New mode attribute.
3982 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3983 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3984
3985 2011-08-05 Jan Hubicka <jh@suse.cz>
3986
3987 PR middle-end/49494
3988 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3989
3990 2011-08-05 Jan Hubicka <jh@suse.cz>
3991
3992 PR middle-end/49500
3993 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3994 handle aliases.
3995 (create_emultls_var):New function.
3996 (ipa_lower_emutls): Handle aliases correctly.
3997
3998 2011-08-05 Jan Hubicka <jh@suse.cz>
3999
4000 PR middle-end/49735
4001 * ipa-inline.c (recursive_inlining): Look through aliases.
4002
4003 2011-08-05 Jason Merrill <jason@redhat.com>
4004
4005 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
4006 declarations to beginning of function.
4007
4008 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
4009
4010 PR rtl-optimization/49900
4011 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
4012 ensure basic blocks stay in the same order.
4013
4014 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
4015
4016 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
4017 store_bit_field.
4018 (s390_expand_atomic): Same.
4019
4020 2011-08-05 Richard Henderson <rth@redhat.com>
4021
4022 PR rtl-opt/49977
4023 * dwarf2cfi.c (scan_insn_after): Split out of ...
4024 (scan_trace): ... here. Correctly place notes wrt sequences.
4025
4026 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
4027 Richard Henderson <rth@redhat.com>
4028
4029 PR rtl-opt/49982
4030 * expr.c (fixup_args_size_notes): Look through no-op moves.
4031
4032 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4033
4034 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
4035 of "m" for operand 0. Add type and mode attribute.
4036 (*pushxf_nointeger"): Use "<" constraint for operand 0.
4037 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
4038 constraint instead of "o" for opreand 1.
4039 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
4040 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
4041 operand 0, alternative 4.
4042 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
4043
4044 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4045
4046 * config/i386/predicates.md (lea_address_operand): Rename from
4047 no_seg_address_operand.
4048 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
4049 (*lea_1_zext): Ditto.
4050 (*lea_2): Ditto.
4051 (*lea_2_zext): Ditto.
4052
4053 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4054
4055 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
4056 parts.base and parts.index.
4057 * config/i386/predicates.md (aligned_operand): Ditto.
4058 (cmpxchg8b_pic_memory_operand): Ditto.
4059
4060 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4061
4062 * config/soft-fp: Move to ../libgcc.
4063 * Makefile.in (SFP_MACHINE): Remove.
4064 (libgcc-support): Remove $(SFP_MACHINE) dependency.
4065 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
4066 * config/arm/t-arm-softfp: Move to
4067 ../libgcc/config/arm/t-softfp.
4068 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
4069 * config/c6x/t-c6x-softfp: Remove.
4070 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
4071 * config/i386/t-fprules-softfp: Move to
4072 ../libgcc/config/t-softfp-tf.
4073 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
4074 * config/ia64/t-fprules-softfp: Remove.
4075 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
4076 * config/lm32/t-fprules-softfp: Remove.
4077 * config/moxie/sfp-machine.h: Remove.
4078 * config/moxie/t-moxie-softfp: Remove.
4079 * config/rs6000/darwin-ldouble-format: Move to
4080 ../libgcc/config/rs6000/ibm-ldouble-format.
4081 * config/rs6000/darwin-ldouble.c: Move to
4082 ../libgcc/config/rs6000/ibm-ldouble.c
4083 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
4084 * config/rs6000/libgcc-ppc64.ver: Likewise.
4085 * config/rs6000/sfp-machine.h: Likewise.
4086 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
4087 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
4088 (LIB2FUNCS_EXTRA): Remove.
4089 (TARGET_LIBGCC2_CFLAGS): Remove.
4090 * config/rs6000/t-aix52: Likewise
4091 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4092 $(srcdir)/config/rs6000/darwin-ldouble.c.
4093 (SHLIB_MAPFILES): Remove.
4094 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
4095 $(srcdir)/config/rs6000/darwin-ldouble.c.
4096 * config/rs6000/t-fprules-softfp: Move to
4097 ../libgcc/config/t-softfp-sfdf.
4098 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
4099 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
4100 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
4101 $(srcdir)/config/rs6000/darwin-ldouble.c.
4102 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
4103 * config/score/t-score-softfp: Remove.
4104 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
4105 soft-fp/t-softfp from tmake_file.
4106 (arm*-*-uclinux*): Likewise.
4107 (arm*-*-ecos-elf): Likewise.
4108 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
4109 (arm*-*-rtems*): Likewise.
4110 (arm*-*-elf): Likewise.
4111 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
4112 tmake_file.
4113 (moxie-*-uclinux*): Likewise.
4114 (moxie-*-rtems*): Likewise.
4115 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
4116 tmake_file.
4117 (lm32-*-rtems*): Likewise.
4118 (lm32-*-uclinux*): Likewise.
4119 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
4120 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4121 (powerpc-*-linux*, powerpc64-*-linux*): Remove
4122 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4123 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
4124 tmake_file.
4125 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
4126 tmake_file.
4127 (tic6x-*-uclinux): Likewise.
4128 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
4129 soft-fp/t-softfp from tmake_file.
4130 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
4131 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
4132 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
4133 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
4134 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
4135
4136 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4137
4138 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
4139 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
4140 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
4141 TPBIT, TPBIT_FUNCS.
4142 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
4143 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
4144 Remove.
4145 * config/arm/t-vxworks: Likewise.
4146 * config/arm/t-wince-pe: Likewise.
4147 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
4148 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4149 * config/bfin/t-bfin-elf: Likewise.
4150 * config/bfin/t-bfin-linux: Likewise.
4151 * config/bfin/t-bfin-uclinux: Likewise.
4152 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
4153 Remove.
4154 * config/fr30/t-fr30: Likewise.
4155 * config/frv/t-frv: Likewise.
4156 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
4157 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4158 * config/m32c/t-m32c: Likewise.
4159 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
4160 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4161 * config/mcore/t-mcore: Likewise.
4162 * config/mep/t-mep: Likewise.
4163 * config/microblaze/t-microblaze: Likewise.
4164 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
4165 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4166 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
4167 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4168 * config/mn10300/t-linux: Remove.
4169 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4170 * config/pdp11/t-pdp11: Likewise.
4171 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
4172 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
4173 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4174 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
4175 * config/rs6000/t-aix52: Likewise.
4176 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4177 $(srcdir)/config/rs6000/ppc64-fp.c.
4178 * config/rs6000/t-fprules-fpbit: Remove.
4179 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
4180 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4181 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
4182 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4183 * config/sparc/t-elf: Likewise.
4184 * config/sparc/t-leon: Likewise.
4185 * config/sparc/t-leon3: Likewise.
4186 * config/spu/t-spu-elf: Likewise.
4187 (DPBIT_FUNCS): Remove.
4188 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4189 * config/v850/t-v850: Likewise.
4190 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
4191 (avr-*-*): Likewise.
4192 (h8300-*-rtems*): Set libgcc_tm_file.
4193 (h8300-*-elf*): Likewise.
4194 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
4195 tmake_file.
4196 (powerpc-*-eabisim*): Likewise.
4197 (powerpc-*-elf*): Likewise.
4198 (powerpc-*-eabialtivec*): Likewise.
4199 (powerpc-xilinx-eabi*): Likewise.
4200 (powerpc-*-eabi*): Likewise.
4201 (powerpc-*-rtems*): Likewise.
4202 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
4203 (powerpcle-*-elf*): Likewise.
4204 (powerpcle-*-eabisim*): Likewise.
4205 (powerpcle-*-eabi*): Likewise.
4206 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
4207 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
4208 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
4209 Remove.
4210
4211 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4212
4213 * Makefile.in (UNWIND_H): Remove.
4214 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
4215 ../libgcc/Makefile.in.
4216 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
4217 (LIBUNWINDDEP): Remove.
4218 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
4219 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
4220 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
4221 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
4222 Don't copy $(UNWIND_H).
4223 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
4224 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
4225 * aclocal.m4: Regenerate.
4226 * configure: Regenerate.
4227 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
4228 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
4229 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
4230 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
4231 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
4232 * config/arm/libunwind.S, config/arm/pr-support.c,
4233 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
4234 ../libgcc/config/arm.
4235 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
4236 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
4237 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
4238 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
4239 ($(T)frvend$(objext)): Likewise.
4240 * config/ia64/t-glibc (LIB2ADDEH): Remove.
4241 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
4242 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
4243 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
4244 ../libgcc/config/ia64.
4245 * config/ia64/t-hpux (LIB2ADDEH): Remove.
4246 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4247 * config/ia64/t-vms (LIB2ADDEH): Remove.
4248 * config/ia64/vms.h (UNW_IVMS_MODE,
4249 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4250 * config/picochip/t-picochip (LIB2ADDEH): Remove.
4251 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4252 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4253 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4254 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4255 $(srcdir)/../libgcc to refer to unwinder sources.
4256 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4257 * config/t-darwin (LIB2ADDEH): Remove.
4258 * config/t-freebsd (LIB2ADDEH): Remove.
4259 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4260 * config/t-libunwind-elf: Move to ../libgcc/config.
4261 * config/t-linux (LIB2ADDEH): Remove.
4262 * config/t-sol2 (LIB2ADDEH): Remove.
4263 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4264 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4265
4266 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
4267
4268 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4269
4270 * doc/invoke.texi: Document core-avx-i.
4271
4272 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4273
4274 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4275
4276 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
4277
4278 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4279 result of multiple results reduction when extracting the final
4280 value using scalar code.
4281
4282 2011-08-05 Richard Guenther <rguenther@suse.de>
4283
4284 PR tree-optimization/49984
4285 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4286
4287 2011-08-05 Richard Guenther <rguenther@suse.de>
4288
4289 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4290 return true for constant integer ranges.
4291 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4292 BIT_IOR_EXPR handling.
4293
4294 2011-08-04 Kai Tietz <ktietz@redhat.com>
4295
4296 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4297 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4298
4299 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
4300
4301 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4302 pattern def statement, and its access macro.
4303 (NUM_PATTERNS): Set to 5.
4304 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4305 pattern def statement.
4306 (vect_transform_loop): Likewise.
4307 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4308 function vect_recog_over_widening_pattern ().
4309 (vect_operation_fits_smaller_type): New function.
4310 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4311 Likewise.
4312 (vect_pattern_recog_1): Move the code that marks pattern
4313 statements to vect_mark_pattern_stmts (), and call it. Update
4314 documentation.
4315 * tree-vect-stmts.c (vect_supportable_shift): New function.
4316 (vect_analyze_stmt): Handle pattern def statement.
4317 (new_stmt_vec_info): Initialize pattern def statement.
4318
4319 2011-08-04 Richard Henderson <rth@redhat.com>
4320
4321 PR target/49964
4322 * config/i386/i386.c (ix86_expand_call): Don't create nested
4323 PARALLELs for TARGET_VZEROUPPER.
4324 (ix86_split_call_vzeroupper): Fix extraction of the original call.
4325 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4326 recognize nested PARALLELs.
4327 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4328 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4329 *sibcall_value_pop_vzeroupper): Likewise.
4330
4331 2011-08-04 Richard Henderson <rth@redhat.com>
4332
4333 PR middle-end/49968
4334 * calls.c (expand_call): Use fixup_args_size_notes for
4335 emit_stack_restore.
4336 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
4337 in non-standard modes.
4338
4339 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4340
4341 * gcc.c (self_spec): New variable.
4342 (static_specs): Add self_spec.
4343 (main): Call do_self_spec on "self_spec" specs after reading
4344 user specs files. Move compare_debug handling right after that.
4345
4346 2011-08-04 Richard Guenther <rguenther@suse.de>
4347
4348 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
4349 (value_range_nonnegative_p): New function.
4350 (ssa_name_nonnegative_p): Use it.
4351 (value_range_constant_singleton): New function.
4352 (op_with_constant_singleton_value_range): Use it.
4353 (extract_range_from_binary_expr_1): New function, split out from ...
4354 (extract_range_from_binary_expr): ... this. Remove fallback
4355 constant folding done here.
4356
4357 2011-08-04 Richard Guenther <rguenther@suse.de>
4358
4359 PR tree-optimization/49806
4360 * tree-vrp.c (op_with_boolean_value_range_p): New function.
4361 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
4362 a new statement for a final conversion to bool.
4363
4364 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
4365
4366 * gengtype-state.c: Include "bconfig.h" if
4367 GENERATOR_FILE is defined, "config.h" otherwise.
4368 * gengtype.c: Likewise.
4369 * gengtype-lex.l: Likewise.
4370 * gengtype-parse.c: Likewise.
4371 * Makefile.in (gengtype-lex.o-warn): New variable.
4372 (plugin_resourcesdir): Likewise.
4373 (plugin_bindir): Likewise.
4374 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
4375 (MOSTLYCLEANFILES): Add gengtype$(exeext).
4376 (native): Depend on gengtype$(exeext) is $enable_plugin
4377 is set to "yes".
4378 (gtype.state): Depend on s-gtype. Use temporary file.
4379 (gengtype-lex.o): New rule.
4380 (gengtype-parse.o): Likewise.
4381 (gengtype-state.o): Likewise.
4382 (gengtype$(exeext)): Likewise.
4383 (install-gengtype): Likewise.
4384 (gengtype.o): Likewise.
4385 (build/gengtype.o): Depend on version.h.
4386 (build/gengtype-state): Depend on double-int.h, version.h,
4387 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
4388 (install-plugin): Depend on install-gengtype.
4389
4390 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4391
4392 PR middle-end/49905
4393 * tree.h (init_attributes): New prototype.
4394 * attribs.c (init_attributes): No longer static.
4395
4396 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4397
4398 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
4399 maybe_suffix.
4400
4401 2011-08-03 David Li <davidxl@google.com>
4402
4403 * tree-optimize.c (execute_fixup_cfg): Fix up entry
4404 outgoing edge counts after inlining.
4405
4406 2011-08-03 David Li <davidxl@google.com>
4407
4408 * profile.c (compute_branch_probabilities): Compute
4409 function frequency after profile annotation.
4410
4411 2011-08-04 Alan Modra <amodra@gmail.com>
4412
4413 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
4414 use_backchain_to_restore_sp initialisation.
4415 (rs6000_legitimate_offset_address_p): Simplify offset test.
4416
4417 2011-08-03 Richard Henderson <rth@redhat.com>
4418
4419 * config/spu/spu.md: Use define_c_enum instead of define_constants.
4420 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
4421 (UNSPECV_NOP): New.
4422
4423 2011-08-03 Richard Henderson <rth@redhat.com>
4424
4425 PR target/34888
4426 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
4427
4428 2011-08-03 Jakub Jelinek <jakub@redhat.com>
4429
4430 PR tree-optimization/49948
4431 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
4432
4433 2011-08-03 Anatoly Sokolov <aesok@post.ru>
4434
4435 * config/m32c/m32c.c (class_sizes): Remove.
4436 (reduce_class): Change arguments and return type to reg_class_t.
4437 Change type cc var to HARD_REG_SET. Change type best var to
4438 reg_class_t. Change type best_size var to unsigned int. Remove
4439 initialization class_sizes var. Use reg_class_size array instead
4440 of class_sizes. Use reg_class_contents array instead
4441 of class_contents.
4442
4443 2011-08-03 Richard Guenther <rguenther@suse.de>
4444
4445 PR middle-end/49958
4446 * fold-const.c (fold_binary_loc): Only associate
4447 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
4448 overflow wraps.
4449
4450 2011-08-03 Alan Modra <amodra@gmail.com>
4451
4452 PR rtl-optimization/49941
4453 * jump.c (mark_jump_label): Comment.
4454 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
4455 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
4456 (mark_used_flags): Don't mark RETURN.
4457
4458 2011-08-03 Richard Guenther <rguenther@suse.de>
4459
4460 PR tree-optimization/49938
4461 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
4462 deal with a POLYNOMIAL_CHREC.
4463
4464 2011-08-03 Revital Eres <revital.eres@linaro.org>
4465
4466 * modulo-sched.c (calculate_stage_count,
4467 calculate_must_precede_follow, get_sched_window,
4468 try_scheduling_node_in_cycle, remove_node_from_ps): Add
4469 declaration.
4470 (update_node_sched_params, set_must_precede_follow, optimize_sc):
4471 New functions.
4472 (reset_sched_times): Call update_node_sched_params.
4473 (sms_schedule): Call optimize_sc.
4474 (get_sched_window): Change function arguments.
4475 (sms_schedule_by_order): Update call to get_sched_window.
4476 Call set_must_precede_follow.
4477 (calculate_stage_count): Add function argument.
4478
4479 2011-08-02 Richard Henderson <rth@redhat.com>
4480
4481 PR target/49864
4482 PR target/49879
4483 * reg-notes.def (REG_ARGS_SIZE): New.
4484 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
4485 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
4486 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
4487 different stack levels.
4488 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
4489 (maybe_move_args_size_note): New.
4490 (combine_stack_adjustments_for_block): Use it.
4491 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
4492 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
4493 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
4494 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
4495 (cur_cfa): New.
4496 (queued_args_size): Remove.
4497 (add_cfi_args_size): Assert size is non-negative.
4498 (stack_adjust_offset, dwarf2out_args_size): Remove.
4499 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
4500 (notice_args_size, notice_eh_throw): New.
4501 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
4502 (dwarf2out_frame_debug_adjust_cfa): Likewise.
4503 (dwarf2out_frame_debug_cfa_offset): Likewise.
4504 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
4505 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
4506 (change_cfi_row): Don't emit args_size.
4507 (maybe_record_trace_start_abnormal): Split out from ...
4508 (maybe_record_trace_start): Here. Set args_size_undefined.
4509 (create_trace_edges): Update to match.
4510 (scan_trace): Handle REG_ARGS_SIZE.
4511 (connect_traces): Connect args_size between EH insns.
4512 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
4513 * explow.c (suppress_reg_args_size): New.
4514 (adjust_stack_1): Split out from ...
4515 (adjust_stack): ... here.
4516 (anti_adjust_stack): Use it.
4517 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
4518 * expr.c (mem_autoinc_base): New.
4519 (fixup_args_size_notes): New.
4520 (emit_single_push_insn_1): Rename from emit_single_push_insn.
4521 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
4522 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
4523 * reload1.c (reload_as_needed): Likewise.
4524 * rtl.h (fixup_args_size_notes): Declare.
4525
4526 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
4527
4528 PR bootstrap/49914
4529 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
4530 of abs.
4531 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4532 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4533
4534 2011-08-02 Richard Henderson <rth@redhat.com>
4535
4536 * config/h8300/h8300.c (push, pop): Return the insn.
4537 (h8300_swap_into_er6): Generate correct unwind info.
4538 (h8300_swap_out_of_er6): Likewise.
4539 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
4540 complex cfa expression.
4541 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
4542
4543 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4544
4545 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4546
4547 2011-08-02 Richard Henderson <rth@redhat.com>
4548
4549 PR target/49878
4550 * config/h8300/h8300.c (h8300_move_ok): New.
4551 * config/h8300/h8300-protos.h: Declare it.
4552 * config/h8300/h8300.md (P): New mode iterator.
4553 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
4554 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
4555 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
4556 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
4557 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4558 and pushqi1_h8300hs_normal; use PRE_MODIFY and
4559 register_no_sp_elim_operand.
4560 (*pushhi1_h8300hs_<P>): Similarly.
4561 (pushqi1, pushhi1, pushhi1_h8300): Remove.
4562 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4563
4564 2011-08-02 Richard Henderson <rth@redhat.com>
4565
4566 PR target/49881
4567 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4568
4569 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4570
4571 * c-parser.c (enum c_parser_prec): New enum, moved from within
4572 c_parser_binary_expression.
4573 (c_parser_binary_expression): Add PREC argument. Stop parsing
4574 if operator has lower or equal precedence than PREC.
4575 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4576 callers.
4577 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4578 Adjust c_finish_omp_atomic caller.
4579 (c_parser_omp_taskyield): New function.
4580 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4581 (c_parser_omp_clause_name): Handle final and mergeable clauses.
4582 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4583 functions.
4584 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4585 and PRAGMA_OMP_CLAUSE_MERGEABLE.
4586 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4587 (c_parser_omp_clause_reduction): Handle min and max.
4588 * c-typeck.c (c_finish_omp_clauses): Don't complain about
4589 const qualified predetermined vars in firstprivate clause.
4590 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4591 Handle MIN_EXPR and MAX_EXPR.
4592 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4593 and OMP_CLAUSE_MERGEABLE.
4594 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4595 and OMP_ATOMIC_CAPTURE_NEW.
4596 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4597 OMP_CLAUSE_MERGEABLE.
4598 (omp_clause_code_name): Likewise.
4599 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4600 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4601 and OMP_CLAUSE_MERGEABLE.
4602 (OMP_CLAUSE_FINAL_EXPR): Define.
4603 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4604 OMP_CLAUSE_MERGEABLE.
4605 (expand_task_call): Likewise.
4606 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4607 (expand_omp_atomic_fetch_op): Handle cases where old or new
4608 value is needed afterwards.
4609 (expand_omp_atomic): Call expand_omp_atomic_load resp.
4610 expand_omp_atomic_store.
4611 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4612 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4613 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4614 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4615 * tree-nested.c (convert_nonlocal_omp_clauses,
4616 convert_local_omp_clauses): Likewise.
4617 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4618 OMP_ATOMIC_CAPTURE_NEW): New.
4619 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4620 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4621 New inlines.
4622 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4623 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4624 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4625
4626 2011-08-02 Kai Tietz <ktietz@redhat.com>
4627
4628 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4629 boolean-type.
4630 (ssa_forward_propagate_and_combine): Interprete result of
4631 forward_propagate_comparison.
4632 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4633 boolean-typed operands for comparisons.
4634
4635 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
4636
4637 * config/avr/libgcc.S: Gather related function in the
4638 same input section.
4639 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4640 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4641 references.
4642 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4643 __udivmodsi4, __divmodsi4, __prologue_saves__,
4644 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4645 __do_copy_data, __do_clear_bss, __do_global_ctors,
4646 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4647
4648 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
4649
4650 PR target/47766
4651 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4652 (stack_protect_test): The pattern compares ptr_mode value.
4653
4654 2011-08-02 Alan Modra <amodra@gmail.com>
4655
4656 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4657 note for save_LR_around_toc_setup sequence.
4658
4659 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4660
4661 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4662
4663 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
4664 Joseph Myers <joseph@codesourcery.com>
4665
4666 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4667 * hwint.c: Include diagnostic-core.h.
4668 (abs_hwi): New.
4669 (gcd): Moved here...
4670 (pos_mul_hwi): New.
4671 (mul_hwi): New.
4672 (least_common_multiple): Moved here...
4673 * hwint.h (gcd): ... from here.
4674 (least_common_multiple): ... from here.
4675 (HOST_WIDE_INT_MIN): New.
4676 (HOST_WIDE_INT_MAX): New.
4677 (abs_hwi): Declared.
4678 (gcd): Declared.
4679 (pos_mul_hwi): Declared.
4680 (mul_hwi): Declared.
4681 (least_common_multiple): Declared.
4682 * omega.c (check_pos_mul): Removed.
4683 (check_mul): Removed.
4684 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4685 mul_hwi instead of check_mul.
4686
4687 2011-08-01 Richard Henderson <rth@redhat.com>
4688
4689 PR target/49881
4690 * config/avr/avr.h (PUSH_ROUNDING): New.
4691 * config/avr/avr.md (pushqi1): Rename from *pushqi.
4692 (*pushhi, *pushsi, *pushsf): Remove.
4693 (MPUSH): New mode iterator.
4694 (push<MPUSH>1): New expander.
4695
4696 2011-08-01 Anatoly Sokolov <aesok@post.ru>
4697
4698 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4699 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4700 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4701 mmix_preferred_output_reload_class): Remove.
4702 * config/mmix/mmix.c (mmix_preferred_reload_class,
4703 mmix_preferred_output_reload_class): Make static. Change rclass
4704 argument and return type to reg_class_t.
4705 (TARGET_PREFERRED_RELOAD_CLASS,
4706 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4707
4708 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
4709
4710 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4711 handling.
4712
4713 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4714
4715 PR target/47766
4716 * config/i386/i386.md (PTR): New.
4717 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4718 (stack_protect_test): Likewise.
4719 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4720 (stack_tls_protect_set_<mode>): Likewise.
4721 (stack_tls_protect_test_<mode>): Likewise.
4722
4723 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
4724
4725 PR target/49927
4726 * config/i386/i386.c (ix86_address_subreg_operand): New.
4727 (ix86_decompose_address): Use ix86_address_subreg_operand.
4728 (ix86_legitimate_address_p): Do not assert that subregs satisfy
4729 register_no_elim_operand in DImode.
4730
4731 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
4732
4733 PR tree-optimization/49926
4734 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4735 in a chain doesn't have uses both inside and outside the loop.
4736
4737 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4738
4739 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4740 * config/avr/avr-devices.c (avr_mcu_types): Use it.
4741 * config/avr/avr-mcus.def (AVR_MCU): Use it.
4742 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4743 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4744 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4745 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4746 to detect if XJMP must not be skipped.
4747
4748 2011-08-02 Alan Modra <amodra@gmail.com>
4749
4750 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4751 Delete.
4752 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4753 (rs6000_emit_prologue): Don't prematurely return when
4754 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
4755 save_toc_in_prologue case.
4756 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4757 calls_alloca.
4758
4759 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4760
4761 * config/avr/avr-devices.c: Delete SVN property svn:executable.
4762 * config/avr/predicates.md: Ditto.
4763 * config/avr/driver-avr.c: Ditto.
4764 * config/avr/genopt.sh: Set SVN property svn:executable to *.
4765
4766 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4767
4768 * calls.c (emit_library_call_value_1): Declare size only if
4769 BLOCK_REG_PADDING is defined.
4770
4771 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
4772
4773 PR target/49547
4774 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4775 (x86_64-*-*): Likewise.
4776 * config/i386/i386.opt (mlzcnt): New.
4777 * config/i386/abmintrin.h: File removed.
4778 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4779 * config/i386/lzcntintrin.h: ... here. New file.
4780 (__lzcnt): Rename to ...
4781 (__lzcnt32): ... this.
4782 * config/i386/bmiintrin.h (head): Update copyright year.
4783 (__lzcnt_u16): Removed.
4784 (__lzcnt_u32): Likewise.
4785 (__lzcnt_u64): Likewise.
4786 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
4787 is defined, remove abmintrin.h.
4788 * config/i386/cpuid.h (bit_LZCNT): New.
4789 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4790 LZCNT feature.
4791 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4792 __LZCNT__ if needed.
4793 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
4794 (ix86_option_override_internal): Handle LZCNT option.
4795 (ix86_valid_target_attribute_inner_p): Likewise.
4796 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
4797 * config/i386/i386.h (TARGET_LZCNT): New.
4798 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
4799 * config/i386/i386.md (clz<mode>2): Update insn constraint.
4800 (clz<mode>2_lzcnt): Likewise.
4801 * doc/invoke.texi: Mention -mlzcnt option.
4802 * doc/extend.texi: Likewise.
4803
4804 2011-08-01 Julian Brown <julian@codesourcery.com>
4805
4806 * configure.ac (fixed-point): Add ARM support.
4807 * configure: Regenerate.
4808 * config/arm/arm.c (arm_fixed_mode_set): New struct.
4809 (arm_set_fixed_optab_libfunc): New.
4810 (arm_set_fixed_conv_libfunc): New.
4811 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
4812 ARM-specific names.
4813 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
4814 return values in SImode.
4815 (arm_return_in_msb): Return fixed-point types in the msb.
4816 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
4817 upwards.
4818 (arm_scalar_mode_supported_p): Support fixed-point modes.
4819 (arm_vector_mode_supported_p): Support vector fixed-point modes.
4820 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
4821 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
4822 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
4823 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
4824 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
4825 New mode iterators.
4826 (qaddsub_suf): New mode attribute.
4827 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
4828 vector modes.
4829 * config/arm/predicates.md (sat_shift_operator): New predicate.
4830 * config/arm/arm-fixed.md: New.
4831 * config/arm/arm.md: Include arm-fixed.md.
4832 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
4833
4834 2011-08-01 Julian Brown <julian@codesourcery.com>
4835
4836 * calls.c (emit_library_call_value_1): Support padding for libcall
4837 arguments and return values.
4838 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
4839 downwards in big-endian mode.
4840
4841 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4842
4843 PR debug/49887
4844 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4845 * config/sol2-protos.h: Likewise.
4846 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4847 solaris_code_end.
4848 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4849 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4850 solaris_file_end.
4851 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4852
4853 2011-08-01 Julian Brown <julian@codesourcery.com>
4854
4855 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4856
4857 2011-08-01 Julian Brown <julian@codesourcery.com>
4858
4859 * final.c (output_addr_const): Print fixed-point constants as
4860 decimal not hex.
4861
4862 2011-08-01 Richard Guenther <rguenther@suse.de>
4863
4864 * stor-layout.c (initialize_sizetypes): Properly sign-extend
4865 bitsiztype TYPE_MAX_VALUE.
4866
4867 2011-08-01 Julian Brown <julian@codesourcery.com>
4868
4869 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4870 comparison helpers.
4871
4872 2011-07-31 Richard Henderson <rth@redhat.com>
4873
4874 * config/h8300/crti.asm: Add flags to .section directive.
4875 * config/h8300/crtn.asm: Likewise.
4876
4877 2011-07-31 Richard Henderson <rth@redhat.com>
4878
4879 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4880 * tree.c (build_common_tree_nodes): Likewise.
4881
4882 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4883
4884 PR target/49880
4885 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4886 (divsi3_i1): Likewise.
4887
4888 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4889
4890 PR tree-optimization/49749
4891 * tree-ssa-reassoc.c (get_rank): New forward declaration.
4892 (PHI_LOOP_BIAS): New macro.
4893 (phi_rank): New function.
4894 (loop_carried_phi): Likewise.
4895 (propagate_rank): Likewise.
4896 (get_rank): Add calls to phi_rank and propagate_rank.
4897
4898 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
4899
4900 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4901 of TARGET_64BIT.
4902 (PTRDIFF_TYPE): Likewise.
4903
4904 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
4905
4906 PR target/49920
4907 * config/i386/i386.md (strset): Do not expand strset_singleop
4908 when %eax or $edi are fixed.
4909 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4910 (*strsetsi_1): Ditto.
4911 (*strsethi_1): Ditto.
4912 (*strsetqi_1): Ditto.
4913 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4914 (*rep_stossi): Ditto.
4915 (*rep_stosqi): Ditto.
4916 (*strlenqi_1): Ditto.
4917 (cmpstrnsi): Also fail when %ecx is fixed.
4918 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4919 (*cmpstrnqi_1): Ditto.
4920 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4921 (*strmovsi_1): Ditto.
4922 (*strmovhi_1): Ditto.
4923 (*strmovqi_1): Ditto.
4924 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4925 (*rep_movsi): Ditto.
4926 (*rep_movqi): Ditto.
4927
4928 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
4929
4930 PR target/47908
4931 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4932 Disable instruction scheduling for non-ColdFire targets.
4933 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4934
4935 2011-07-31 Revital Eres <revital.eres@linaro.org>
4936
4937 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4938 of anti-dep edge from a branch.
4939 (add_cross_iteration_register_deps): Create anti-dep edge from
4940 a branch.
4941
4942 2011-07-31 Revital Eres <revital.eres@linaro.org>
4943
4944 * modulo-sched.c: Change comment.
4945 (reset_sched_times): Fix print message.
4946 (print_partial_schedule): Add print info.
4947
4948 2011-07-31 Tom de Vries <tom@codesourcery.com>
4949
4950 PR middle-end/43513
4951 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4952 get_object_alignment and TYPE_ALIGN.
4953
4954 2011-07-30 Tom de Vries <tom@codesourcery.com>
4955
4956 PR middle-end/43513
4957 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4958 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4959
4960 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4961
4962 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4963 <sys/sbd.h>.
4964 (cpu_types): New array.
4965 (cputype): New function.
4966 (host_detect_local_cpu): Only define buf, f if !__sgi__.
4967 Use scaninvent instead of /proc/cpuinfo if __sgi__.
4968 * config.host: Also use driver-native.o, mips/x-native on
4969 mips-sgi-irix*.
4970 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4971 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4972 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4973
4974 2011-07-29 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR middle-end/49897
4977 PR middle-end/49898
4978 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4979 in nested parallel and outer is a gimple_reg, mark it as addressable
4980 and set its bit in task_shared_vars bitmap too.
4981
4982 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
4983
4984 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4985
4986 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4987
4988 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4989 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4990 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4991 AMASK_LOCKPFTCHOK): Define.
4992 (host_detect_local_cpu): Remove buf, f, cpu_names.
4993 Define cpu_types, implver, amask.
4994 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4995 native CPU.
4996 * config.host: Also use driver-alpha.o, alpha/x-alpha on
4997 alpha*-dec-osf*.
4998 * config/alpha/osf5.h [__alpha__ || __alpha]
4999 (host_detect_local_cpu): Declare.
5000 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
5001 (DRIVER_SELF_SPECS): Define.
5002
5003 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
5004
5005 PR target/47715
5006 * config/i386/i386.md (*load_tp_x32): New.
5007 (*load_tp_x32_zext): Ditto.
5008 (*add_tp_x32): Ditto.
5009 (*add_tp_x32_zext): Ditto.
5010 (*load_tp_<mode>): Disable for TARGET_X32 targets.
5011 (*add_tp_<mode>): Ditto.
5012 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
5013 ptr_mode and convert to Pmode if needed.
5014
5015 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
5016
5017 PR target/49687
5018 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
5019 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
5020 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
5021 Add X to register footprint: Clobber r26/r27.
5022
5023 2011-07-29 Richard Guenther <rguenther@suse.de>
5024
5025 * builtins.c (fold_builtin_signbit): Build the comparison
5026 with a proper type.
5027
5028 2011-07-29 Richard Guenther <rguenther@suse.de>
5029
5030 PR tree-optimization/49893
5031 * tree-predcom.c (suitable_reference_p): Volatile references
5032 are not suitable.
5033
5034 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
5035
5036 PR target/49313
5037 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5038 (__ctzsi2): Result for 0 may be undefined.
5039 (__ctzhi2): Result for 0 may be undefined.
5040 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5041 (__popcountsi2): Ditto. And don't clobber r26.
5042 (__popcountdi2): Ditto. And don't clobber r27.
5043 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5044 (parityhi2): New expand.
5045 (paritysi2): New expand.
5046 (popcounthi2): New expand.
5047 (popcountsi2): New expand.
5048 (clzhi2): New expand.
5049 (clzsi2): New expand.
5050 (ctzhi2): New expand.
5051 (ctzsi2): New expand.
5052 (ffshi2): New expand.
5053 (ffssi2): New expand.
5054 (copysignsf3): New insn.
5055 (bswapsi2): New expand.
5056 (*parityhi2.libgcc): New insn.
5057 (*parityqihi2.libgcc): New insn.
5058 (*paritysihi2.libgcc): New insn.
5059 (*popcounthi2.libgcc): New insn.
5060 (*popcountsi2.libgcc): New insn.
5061 (*popcountqi2.libgcc): New insn.
5062 (*popcountqihi2.libgcc): New insn-and-split.
5063 (*clzhi2.libgcc): New insn.
5064 (*clzsihi2.libgcc): New insn.
5065 (*ctzhi2.libgcc): New insn.
5066 (*ctzsihi2.libgcc): New insn.
5067 (*ffshi2.libgcc): New insn.
5068 (*ffssihi2.libgcc): New insn.
5069 (*bswapsi2.libgcc): New insn.
5070
5071 2011-07-29 Richard Guenther <rguenther@suse.de>
5072
5073 * tree-vrp.c (get_value_range): Only set parameter default
5074 definitions to varying, leave others at undefined.
5075 (extract_range_from_binary_expr): Fix undefined handling.
5076 (vrp_visit_phi_node): Handle merged undefined state.
5077
5078 2011-07-29 Wei Guozhi <carrot@google.com>
5079
5080 PR rtl-optimization/49799
5081 * combine.c (make_compound_operation): Check if the bit field is valid
5082 before change it to bit field extraction.
5083
5084 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
5085
5086 PR rtl-optimization/49891
5087 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
5088 newly created returnjumps.
5089
5090 2011-07-28 DJ Delorie <dj@redhat.com>
5091
5092 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
5093 local frame in a naked function, and produce a suitable error for
5094 that specific case.
5095
5096 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
5097 registers to be reloaded in HI classes when the target is HI.
5098
5099 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5100
5101 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
5102 bound_one, bound_two.
5103
5104 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5105
5106 PR middle-end/48648
5107 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
5108 CLAST assignments.
5109 (translate_clast): Same.
5110 (translate_clast_assignment): New.
5111
5112 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5113
5114 PR tree-optimization/49876
5115 * sese.c (rename_uses): Do not return false on gloog_error: set
5116 the new_expr to integer_zero_node and continue code generation.
5117 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
5118
5119 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5120
5121 PR debug/49846
5122 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
5123 arguments also check if they aren't initialized with a MODE_INT
5124 mode of the same size.
5125
5126 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
5127
5128 * expr.c (get_bit_range): Handle *MEM_REF's.
5129
5130 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
5131
5132 * rtlanal.c (tablejump_p): False for returns.
5133 * reorg.c (first_active_target_insn): New static function.
5134 (find_end_label): Set JUMP_LABEL for a new returnjump.
5135 (optimize_skip, get_jump_flags, rare_destination,
5136 mostly_true_jump, get_branch_condition,
5137 steal_delay_list_from_target, own_thread_p,
5138 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
5139 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
5140 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
5141 * jump.c (delete_related_insns): Likewise.
5142 (jump_to_label_p): New function.
5143 (redirect_target): New static function.
5144 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
5145 (redirect_jump_1): Assert that the new label is nonnull.
5146 (redirect_jump): Likewise.
5147 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
5148 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
5149 exit block.
5150 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
5151 changed. Ensure that the right label is passed to redirect_jump.
5152 * function.c (emit_return_into_block,
5153 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
5154 ret_rtx in their JUMP_LABEL.
5155 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
5156 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
5157 pass ret_rtx as label.
5158 * cfglayout.c (fixup_reorder_chain): Use
5159 force_nonfallthru_and_redirect rather than force_nonfallthru.
5160 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
5161 * rtl.h (ANY_RETURN_P): New macro.
5162 (jump_to_label_p): Declare.
5163 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
5164 JUMP_LABELs.
5165 (mark_target_live_regs): Likewise.
5166 * basic-block.h (force_nonfallthru_and_redirect): Declare.
5167 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
5168 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
5169 alpha_tablejump_best_label): Remove functions.
5170 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
5171 alpha_tablejump_best_label): Remove declarations.
5172 * config/sh/sh.c (barrier_align, split_branches): Adjust for
5173 ret_rtx in JUMP_LABELs.
5174 * config/arm/arm.c (is_jump_table): Likewise.
5175
5176 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5177
5178 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
5179 special predicate. Remove explicit mode checks.
5180
5181 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5182
5183 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
5184 DW_AT_data_member_location containing just DW_OP_plus_uconst.
5185
5186 PR debug/49871
5187 * dwarf2out.c (size_of_die, value_format, output_die): Use
5188 DW_FORM_udata instead of DW_FORM_data[48] for
5189 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
5190
5191 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5192
5193 * config/i386/i386.md (*tls_global_dynamic_64): Update
5194 length attribute.
5195
5196 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5197
5198 PR target/47715
5199 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
5200 tls_symbolic_operand check. Update code sequence for TARGET_X32.
5201 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
5202 (tls_dynamic_gnu2_64): Ditto.
5203 (*tls_dynamic_gnu2_lea_64): Ditto.
5204 (*tls_dynamic_gnu2_call_64): Ditto.
5205 (*tls_dynamic_gnu2_combine_64): Ditto.
5206
5207 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5208
5209 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
5210
5211 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5212
5213 PR target/47364
5214 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
5215
5216 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5217
5218 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
5219 before the core constraints. Adjust attributes.
5220 ("*thumb2_movdf_vfp"): Likewise.
5221
5222 2011-07-28 Kai Tietz <ktietz@redhat.com>
5223
5224 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
5225 (simplify_truth_ops_using_ranges): Likewise.
5226 (build_assert_expr_for): Likewise.
5227 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
5228 and handle BIT_NOT_EXPR for truth-operation.
5229
5230 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5231
5232 PR target/49313
5233 Undo r176835 from trunk
5234 2011-07-27 Georg-Johann Lay
5235
5236 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5237
5238 PR target/49687
5239 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
5240 Add _muluhisi3, _mulshisi3, _usmulhisi3.
5241 * config/avr/libgcc.S (__mulsi3): Rewrite.
5242 (__mulhisi3): Rewrite.
5243 (__umulhisi3): Rewrite.
5244 (__usmulhisi3): New.
5245 (__muluhisi3): New.
5246 (__mulshisi3): New.
5247 (__mulohisi3): New.
5248 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5249 declare.
5250 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5251 (pseudo_register_or_const_int_operand): New.
5252 (combine_pseudo_register_operand): New.
5253 (u16_operand): New.
5254 (s16_operand): New.
5255 (o16_operand): New.
5256 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5257 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5258 (any_extend, any_extend2): New code iterators.
5259 (extend_prefix): New code attribute.
5260 (mulsi3): Rewrite. Turn insn to expander.
5261 (mulhisi3): Ditto.
5262 (umulhisi3): Ditto.
5263 (usmulhisi3): New expander.
5264 (*mulsi3): New insn-and-split.
5265 (mulu<mode>si3): New insn-and-split.
5266 (muls<mode>si3): New insn-and-split.
5267 (mulohisi3): New insn-and-split.
5268 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5269 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5270 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5271 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5272 insn-and-split.
5273 (*mulsi3_call): Rewrite.
5274 (*mulhisi3_call): Rewrite.
5275 (*umulhisi3_call): Rewrite.
5276 (*usmulhisi3_call): New insn.
5277 (*muluhisi3_call): New insn.
5278 (*mulshisi3_call): New insn.
5279 (*mulohisi3_call): New insn.
5280 (extendqihi2): Use combine_pseudo_register_operand as predicate
5281 for operand 1.
5282 (extendqisi2): Ditto.
5283 (zero_extendqihi2): Ditto.
5284 (zero_extendqisi2): Ditto.
5285 (zero_extendhisi2): Ditto.
5286 (extendhisi2): Ditto. Don't early-clobber operand 0.
5287
5288 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5289
5290 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5291
5292 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5293
5294 PR tree-optimization/49471
5295 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5296 iv only when the largest type is unsigned. Do not call
5297 lang_hooks.types.type_for_size.
5298
5299 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5300
5301 PR middle-end/45450
5302 * graphite-poly.c (apply_poly_transforms): Disable legality check
5303 after an openscop read.
5304
5305 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5306
5307 PR middle-end/47691
5308 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5309 copy_bb_and_scalar_dependences.
5310 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
5311 (graphite_copy_stmts_from_block): Update call to rename_uses.
5312 (copy_bb_and_scalar_dependences): Update call to
5313 graphite_copy_stmts_from_block.
5314 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5315
5316 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
5317
5318 PR target/49313
5319 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5320 (__ctzsi2): Result for 0 may be undefined.
5321 (__ctzhi2): Result for 0 may be undefined.
5322 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5323 (__popcountsi2): Ditto. And don't clobber r26.
5324 (__popcountdi2): Ditto. And don't clobber r27.
5325 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5326 (parityhi2): New expand.
5327 (paritysi2): New expand.
5328 (popcounthi2): New expand.
5329 (popcountsi2): New expand.
5330 (clzhi2): New expand.
5331 (clzsi2): New expand.
5332 (ctzhi2): New expand.
5333 (ctzsi2): New expand.
5334 (ffshi2): New expand.
5335 (ffssi2): New expand.
5336 (copysignsf3): New insn.
5337 (bswapsi2): New expand.
5338 (*parityhi2.libgcc): New insn.
5339 (*parityqihi2.libgcc): New insn.
5340 (*paritysihi2.libgcc): New insn.
5341 (*popcounthi2.libgcc): New insn.
5342 (*popcountsi2.libgcc): New insn.
5343 (*popcountqi2.libgcc): New insn.
5344 (*popcountqihi2.libgcc): New insn-and-split.
5345 (*clzhi2.libgcc): New insn.
5346 (*clzsihi2.libgcc): New insn.
5347 (*ctzhi2.libgcc): New insn.
5348 (*ctzsihi2.libgcc): New insn.
5349 (*ffshi2.libgcc): New insn.
5350 (*ffssihi2.libgcc): New insn.
5351 (*bswapsi2.libgcc): New insn.
5352
5353 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5354
5355 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
5356 the mode of symbolic_opreand RTXes.
5357
5358 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5359
5360 * config/i386/predicates.md (x86_64_movabs_operand): Return false
5361 for pic_32bit_operand RTXes.
5362 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
5363 in DImode.
5364
5365 2011-07-27 Kai Tietz <ktietz@redhat.com>
5366
5367 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
5368 for 32-bit, too.
5369 (ix86_handle_abi_attribute): Allow function attributes
5370 ms_abi/sysv_abi in 32-bit mode, too.
5371 * doc/extend.texi: Adjust attribute documentation.
5372
5373 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
5374 expression handling.
5375 (and_var_with_comparison_1): Likewise.
5376
5377 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
5378
5379 * params.h (ALLOW_STORE_DATA_RACES): New.
5380 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
5381 * Makefile.in (expr.o): Depend on PARAMS_H.
5382 * machmode.h (get_best_mode): Add argument.
5383 * fold-const.c (optimize_bit_field_compare): Add argument to
5384 get_best_mode.
5385 (fold_truthop): Same.
5386 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
5387 * expr.c (emit_group_store): Same.
5388 (copy_blkmode_from_reg): Same.
5389 (write_complex_part): Same.
5390 (optimize_bitfield_assignment_op): Add argument.
5391 Add argument to get_best_mode.
5392 (get_bit_range): New.
5393 (expand_assignment): Calculate maxbits and pass it down accordingly.
5394 (store_field): New argument.
5395 (expand_expr_real_2): New argument to store_field. Include params.h.
5396 * expr.h (store_bit_field): New argument.
5397 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
5398 into account maxbits.
5399 * calls.c (store_unaligned_arguments_into_pseudos): New argument
5400 to store_bit_field.
5401 * expmed.c (store_bit_field_1): New argument. Use it.
5402 (store_bit_field): Same.
5403 (store_fixed_bit_field): Same.
5404 (store_split_bit_field): Same.
5405 (extract_bit_field_1): Pass new argument to get_best_mode.
5406 (extract_bit_field): Same.
5407 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
5408 * doc/invoke.texi: Document parameter allow-store-data-races.
5409
5410 2011-07-27 Jakub Jelinek <jakub@redhat.com>
5411
5412 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
5413
5414 2011-07-27 Kai Tietz <ktietz@redhat.com>
5415
5416 * tree-vrp.c (extract_range_from_binary_expr): Remove
5417 TRUTH-binary cases and add new bitwise-cases.
5418 (extract_range_from_assignment): Likewise.
5419 (register_edge_assert_for_1): Likeiwise.
5420 (register_edge_assert_for): Likewise.
5421 (simplify_truth_ops_using_ranges): Likewise.
5422 (simplify_stmt_using_ranges): Likewise.
5423
5424 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
5425
5426 PR target/47372
5427 * config/i386/i386.c (ix86_delegitimize_address): Call
5428 simplify_gen_subreg for PIC with mode of x only if modes of
5429 x and orig_x are different.
5430
5431 2011-07-26 Jakub Jelinek <jakub@redhat.com>
5432
5433 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
5434 to GC allocated copy of the string.
5435 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
5436 before .debug_line, not after it.
5437
5438 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5439
5440 PR middle-end/47046
5441 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
5442 evolution_function_is_affine_p on CHREC_RIGHT.
5443
5444 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5445
5446 * tree-data-ref.c (max_stmt_executions_tree): Do not call
5447 lang_hooks.types.type_for_size.
5448
5449 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5450
5451 PR middle-end/47653
5452 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
5453 loops using wrapping semantics.
5454
5455 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5456
5457 PR middle-end/48805
5458 * tree-scalar-evolution.c (instantiate_scev_r): Return
5459 chrec_dont_know for ADDR_EXPR.
5460
5461 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5462 H.J. Lu <hongjiu.lu@intel.com>
5463
5464 PR target/47369
5465 PR target/49853
5466 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
5467 if legitimize_tls_address returned operand in wrong mode. Allow
5468 SImode and DImode symbolic operand for PIC. Call convert_to_mode
5469 if legitimize_pic_address returned operand in wrong mode.
5470
5471 2011-07-26 Martin Jambor <mjambor@suse.cz>
5472
5473 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
5474 return false for invariants.
5475
5476 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5477
5478 * config/i386/i386.md (add->lea splitter): Implement using SWI
5479 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
5480 (add->lea zext splitter): Change operand 2 predicate to
5481 x86_64_nonmemory_operand.
5482
5483 2011-07-26 Richard Guenther <rguenther@suse.de>
5484
5485 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
5486 frequency makes everything hot.
5487
5488 2011-07-26 Richard Guenther <rguenther@suse.de>
5489
5490 PR tree-optimization/49840
5491 * tree-vrp.c (range_fits_type_p): Properly handle full
5492 double-int precision.
5493
5494 2011-07-26 Martin Jambor <mjambor@suse.cz>
5495
5496 PR bootstrap/49786
5497 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
5498 counts.
5499 (update_specialized_profile): Likewise.
5500
5501 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5502 H.J. Lu <hongjiu.lu@intel.com>
5503
5504 PR target/47381
5505 PR target/49832
5506 PR target/49833
5507 * config/i386/i386.md (i): Change SImode attribute to "e".
5508 (g): Change SImode attribute to "rme".
5509 (di): Change SImode attribute to "nF".
5510 (general_operand): Change SImode attribute to x86_64_general_operand.
5511 (general_szext_operand): Change SImode attribute to
5512 x86_64_szext_general_operand.
5513 (immediate_operand): Change SImode attribute to
5514 x86_64_immediate_operand.
5515 (nonmemory_operand): Change SImode attribute to
5516 x86_64_nonmemory_operand.
5517 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
5518 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
5519 (*lea_1): Use SWI48 mode iterator.
5520 (*lea_1_zext): New insn pattern.
5521 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
5522 (*bt<mode>): Ditto.
5523 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
5524 Update operand constraints.
5525 (addsi_1_zext): Ditto.
5526 (*add<mode>2): Ditto.
5527 (*addsi_3_zext): Ditto.
5528 (*subsi_1_zext): Ditto.
5529 (*subsi_2_zext): Ditto.
5530 (*subsi_3_zext): Ditto.
5531 (*addsi3_carry_zext): Ditto.
5532 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
5533 (*mulsi3_1_zext): Ditto.
5534 (*andsi_1): Ditto.
5535 (*andsi_1_zext): Ditto.
5536 (*andsi_2_zext): Ditto.
5537 (*<any_or:code>si_1_zext): Ditto.
5538 (*<any_or:code>si_2_zext): Ditto.
5539 (*test<mode>_1): Use <general_operand> predicate for operand 1.
5540 (*and<mode>_2): Ditto.
5541 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
5542 (add->lea splitter): Check operand modes in insn constraint. Extend
5543 operands less than SImode wide to SImode.
5544 (add->lea zext splitter): Do not extend input operands to DImode.
5545 (*lea_general_1): Handle only QImode and HImode operands.
5546 (*lea_general_2): Ditto.
5547 (*lea_general_3): Ditto.
5548 (*lea_general_1_zext): Remove.
5549 (*lea_general_2_zext): Ditto.
5550 (*lea_general_3_zext): Ditto.
5551 (*lea_general_4): Check operand modes in insn constraint. Extend
5552 operands less than SImode wide to SImode.
5553 (ashift->lea splitter): Ditto.
5554 * config/i386/i386.c (ix86_print_operand_address): Print address
5555 registers with 'q' modifier on 64bit targets.
5556 * config/i386/predicates.md (pic_32bit_opreand): Define as special
5557 predicate. Reject non-SI and non-DI modes.
5558
5559 2011-07-25 Andrew Pinski <apinski@cavium.com>
5560
5561 PR tree-opt/49671
5562 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5563 TREE_THIS_NOTRAP into the inner most MEM_REF.
5564 Always copy TREE_THIS_VOLATILE.
5565 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5566 arguments are not volatile references.
5567
5568 2011-07-25 Richard Henderson <rth@redhat.com>
5569
5570 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5571 * final.c (final_scan_insn): Don't test for it.
5572 (rest_of_clean_state): Likewise.
5573
5574 2011-07-25 Richard Henderson <rth@redhat.com>
5575
5576 PR debug/49841
5577 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5578 (emit_frame_save): Likewise.
5579 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5580 insn onto a dummy blockage insn after the join label.
5581
5582 2011-07-25 Richard Henderson <rth@redhat.com>
5583
5584 * dwarf2cfi.c (dw_trace_info): Add ID member.
5585 (get_trace_index): Remove. Change users to use ID member.
5586 (before_next_cfi_note): New.
5587 (connect_traces): Remove unreachable traces before the main loop.
5588 Look across one trace and generate remember/restore_state if needed.
5589
5590 2011-07-25 Richard Henderson <rth@redhat.com>
5591
5592 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5593
5594 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
5595
5596 * genattr.c (write_upcase, gen_attr <enum definition writing>):
5597 Move to ...
5598 * genattr-common.c ... here.
5599 (main): Call gen_attr.
5600 * optc-gen.awk: Make generated program include insn-attr-common.h .
5601 * Makefile.in (oprions.o): Depend on insn-attr-common.h
5602
5603 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5604
5605 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5606 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5607 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5608 m32c_print_operand, m32c_print_operand_address): Remove.
5609 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5610 Change return type to bool. Change argument type to bool.
5611 (m32c_print_operand, m32c_print_operand_address): Make static.
5612 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5613 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5614
5615 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5616
5617 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5618 attributes): Document mmap.
5619
5620 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5621
5622 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5623 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5624 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5625 mmix_print_operand, mmix_print_operand_address): Remove.
5626 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5627 Change return type to bool. Change argument type to bool.
5628 (mmix_print_operand, mmix_print_operand_address): Make static.
5629 (mmix_intval, mmix_output_condition): Change 'x' argument type
5630 to const_rtx.
5631 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5632 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5633
5634 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
5635
5636 PR target/39386
5637 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5638 shift counter for x << x and x >> x shifts.
5639
5640 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5641
5642 PR target/47124
5643 * config.gcc: Reject *-*-solaris2 configuration.
5644
5645 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
5646
5647 PR tree-optimization/49809
5648 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5649 gimple_get_lhs instead of gimple_assign_lhs.
5650
5651 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5652
5653 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5654
5655 2011-07-25 Richard Guenther <rguenther@suse.de>
5656
5657 PR tree-optimization/49822
5658 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5659 more. Make sure to preserve stmts with side-effects. Properly
5660 handle virtual defs, follow a longer def chain.
5661
5662 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
5663
5664 PR plugins/45348
5665 PR plugins/48425
5666 PR plugins/46577
5667 * Makefile.in: Do not flatten c-family directory when installing
5668 plugin headers.
5669
5670 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
5671
5672 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5673 original nodes if we are dealing with virtual clones.
5674
5675 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
5676
5677 * common/config/c6x/c6x-common.c: New file.
5678
5679 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
5680
5681 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5682
5683 2011-07-25 Richard Guenther <rguenther@suse.de>
5684
5685 PR tree-optimization/49715
5686 * tree-vrp.c: Include expr.h and optabs.h.
5687 (range_fits_type_): New function.
5688 (simplify_float_conversion_using_ranges): Likewise.
5689 (simplify_stmt_using_ranges): Call it.
5690 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5691 * optabs.c (can_float_p): Export.
5692 * optabs.h (can_float_p): Declare.
5693
5694 2011-07-25 Richard Guenther <rguenther@suse.de>
5695
5696 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5697 (get_value_range): For out-of-range SSA names or names created
5698 after propagation return a read-only varying range.
5699 (dump_all_value_ranges): Adjust.
5700 (vrp_initialize): Likewise.
5701 (vrp_finalize): Likewise.
5702
5703 2011-07-24 Richard Henderson <rth@redhat.com>
5704
5705 PR debug/49831
5706 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
5707 them entirely.
5708
5709 2011-07-24 Richard Henderson <rth@redhat.com>
5710
5711 PR debug/49825
5712 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5713 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5714
5715 2011-07-24 Richard Henderson <rth@redhat.com>
5716
5717 PR debug/49827
5718 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5719
5720 2011-07-24 Richard Henderson <rth@redhat.com>
5721
5722 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5723 Zero args_size for abnormal edges. Adjust all callers.
5724
5725 2011-07-24 Richard Henderson <rth@redhat.com>
5726
5727 PR debug/49825
5728 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5729
5730 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
5731
5732 PR bootstrap/49835
5733 * collect2.c (demangle_flag): Removed.
5734
5735 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
5736
5737 * configure.ac (demangler_in_ld): Default to yes.
5738 * configure: Regenerated.
5739 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5740 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5741 --no-demangle options straight through to ld. When
5742 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5743 way that has the intended effect on Windows.
5744
5745 2011-07-23 Richard Henderson <rth@redhat.com>
5746
5747 * dwarf2cfi.c: Include basic-block.h.
5748 (dw_label_info): Remove.
5749 (trace_work_list, trace_index): New.
5750 (remember_row, emit_cfa_remember): Remove.
5751 (dw_trace_info_hash, dw_trace_info_eq): New.
5752 (get_trace_index, get_trace_info): New.
5753 (save_point_p): New.
5754 (free_cfi_row): Remove.
5755 (add_cfi): Do not emit DW_CFA_remember_state.
5756 (cfa_row_equal_p): New.
5757 (barrier_args_size): Remove.
5758 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5759 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5760 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5761 (dwarf2out_cfi_begin_epilogue): Remove.
5762 (dwarf2out_frame_debug_restore_state): Remove.
5763 (connect_traces, create_pseudo_cfg): New.
5764 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5765 * Makefile.in (dwarf2cfi.o): Update.
5766
5767 2011-07-23 Richard Henderson <rth@redhat.com>
5768
5769 * dwarf2cfi.c (dw_trace_info): New.
5770 (dw_label_info): New.
5771 (cie_return_save): New.
5772 (cur_trace): New.
5773 (queued_args_size): Rename from args_size. Update all users.
5774 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5775 (def_cfa_1): Use cur_trace instead of cfa_*.
5776 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5777 (clobbers_queued_reg_save, reg_saved_in): Likewise.
5778 (dwarf2out_frame_debug_expr): Likewise.
5779 (create_cie_data): Split out from ...
5780 (execute_dwarf2_frame): ... here. Initialize cur_trace.
5781
5782 2011-07-23 Richard Henderson <rth@redhat.com>
5783
5784 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
5785 Update all users to match.
5786 (execute_dwarf2_frame): Free reg_saved_in_data.
5787
5788 2011-07-23 Richard Henderson <rth@redhat.com>
5789
5790 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
5791 (queued_reg_saves): Don't GTY. Change to a VEC.
5792 (queue_reg_save): Update to match.
5793 (dwarf2out_flush_queued_reg_saves): Likewise.
5794 (clobbers_queued_reg_save): Likewise.
5795 (reg_saved_in): Likewise.
5796 (execute_dwarf2_frame): Free queued_reg_saves.
5797
5798 2011-07-23 Richard Henderson <rth@redhat.com>
5799
5800 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
5801
5802 2011-07-23 Richard Henderson <rth@redhat.com>
5803
5804 * dwarf2cfi.c (add_cfi_args_size): Split out from...
5805 (dwarf2out_args_size): ... here.
5806 (add_cfi_restore): Split out from ...
5807 (dwarf2out_frame_debug_cfa_restore): ... here.
5808 (def_cfa_0): Split out from ...
5809 (def_cfa_1): ... here.
5810 (cfi_oprnd_equal_p, cfi_equal_p): New.
5811 (change_cfi_row): New.
5812 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
5813 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
5814 (output_cfis): Remove.
5815 * dwarf2out.c (output_fde): Simplify output_cfi loop.
5816 (dwarf2out_switch_text_section): Don't call output_cfis.
5817 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
5818 * dwarf2out.h: Update decls.
5819 (enum dw_val_class): Add dw_val_class_none.
5820
5821 2011-07-23 Richard Henderson <rth@redhat.com>
5822
5823 * dwarf2cfi.c (update_row_reg_save): New.
5824 (dwarf2out_frame_debug_cfa_expression): Use it.
5825 (dwarf2out_frame_debug_cfa_restore): Likewise.
5826 (reg_save): Likewise. Do not emit DW_CFA_same_value.
5827
5828 2011-07-23 Richard Henderson <rth@redhat.com>
5829
5830 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
5831
5832 2011-07-23 Richard Henderson <rth@redhat.com>
5833
5834 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
5835 (cie_cfi_row): New.
5836 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
5837 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
5838 (cur_row, remember_row): New.
5839 (def_cfa_1): Use cur_row instead of the old_* variables.
5840 (dwarf2out_frame_debug_restore_state): Similarly.
5841 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
5842 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
5843 (dwarf2out_frame_debug_adjust_cfa): Likewise.
5844 (dwarf2out_frame_debug_cfa_offset): Likewise.
5845 (dwarf2out_frame_debug_expr): Likewise.
5846 (execute_dwarf2_frame): Set up cur_row.
5847 * dwarf2out.h (struct cfa_loc): Mark for GTY.
5848
5849 2011-07-23 Richard Henderson <rth@redhat.com>
5850
5851 * basic-block.h (EDGE_PRESERVE): New.
5852 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5853 * bb-reorder.c: Include except.h.
5854 (fix_up_crossing_landing_pad): New.
5855 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5856 landing pads in the right partition. Duplicate as necessary.
5857 (partition_hot_cold_basic_blocks): Fix up DF info after
5858 duplicating landing pads.
5859 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5860 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5861 is set properly. Validate that EH edges are not CROSSING.
5862 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5863 (dw2_build_landing_pads): ... here.
5864 (convert_to_eh_region_ranges): Remove code to fixup crossing
5865 landing pads.
5866 * except.h (expand_dw2_landing_pad_for_region): Declare.
5867 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5868
5869 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
5870
5871 PR target/49816
5872 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5873
5874 2011-07-22 Jason Merrill <jason@redhat.com>
5875
5876 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5877
5878 2011-07-22 Richard Henderson <rth@redhat.com>
5879
5880 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5881
5882 2011-07-22 Richard Henderson <rth@redhat.com>
5883
5884 * jump.c (maybe_propagate_label_ref): Split out of...
5885 (mark_all_labels): ... here. Do not attempt label_ref
5886 propagation while in cfglayout mode.
5887
5888 2011-07-22 Jakub Jelinek <jakub@redhat.com>
5889
5890 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5891 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5892 (dwarf_attr_name): Handle DW_AT_GNU_macros.
5893 (dwarf2out_define): If the vector is empty and
5894 lineno is 0, emit a dummy entry first.
5895 (dwarf2out_undef): Likewise. Remove redundant semicolon.
5896 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5897 optimize_macinfo_range): New functions.
5898 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
5899 mergeable, optimize longer strings using
5900 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5901 optimize longer sequences of define/undef ops from headers
5902 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
5903 emit a section headers.
5904 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5905 and macinfo_section_label to DEBUG_MACRO_SECTION
5906 resp. DEBUG_MACRO_SECTION_LABEL.
5907 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5908 instead of DW_AT_macro_info.
5909
5910 PR other/32998
5911 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5912 options.
5913 * dwarf2out.c: Include opts.h.
5914 (dchar_p): New typedef. Define heap VEC for it.
5915 (producer_string): New variable.
5916 (gen_producer_string): New function.
5917 (gen_compile_unit_die): Use it.
5918 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5919 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5920 * doc/invoke.texi: Document -grecord-gcc-switches and
5921 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5922 to -frecord-gcc-switches description.
5923
5924 2011-07-22 Jason Merrill <jason@redhat.com>
5925
5926 PR c++/30112
5927 * c-decl.c (c_linkage_bindings): Define.
5928
5929 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
5930
5931 PR debug/49815
5932 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5933
5934 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
5935
5936 * config/i386/i386.c (ix86_option_override_internal): Disallow
5937 MS ABI in x32 mode.
5938 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5939 only for TARGET_LP64.
5940 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5941
5942 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5943
5944 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5945 avoid warnings when GCC is built with a C++ compiler.
5946
5947 2011-07-22 Martin Jambor <mjambor@suse.cz>
5948
5949 PR lto/49796
5950 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5951 if decl node is in another partition, call cgraph_get_node only once.
5952
5953 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
5954
5955 * config.gcc (x86_64-*-linux*): Set
5956 default_gnu_indirect_function to yes.
5957
5958 2011-07-22 Richard Guenther <rguenther@suse.de>
5959
5960 PR tree-optimization/45819
5961 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5962 preserve volatile and notrap flags.
5963
5964 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5965 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5966
5967 PR bootstrap/49794
5968 * configure.ac: Test AM_ICONV with CXX.
5969 * configure: Regenerate.
5970 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5971
5972 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5973
5974 PR bootstrap/49797
5975 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5976 (set_cloog_options): Use it.
5977
5978 2011-07-22 Jakub Jelinek <jakub@redhat.com>
5979
5980 PR c++/49756
5981 * gcc.c (main): Call stack_limit_increase (64MB).
5982 * toplev.c (toplev_main): Likewise.
5983
5984 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5985
5986 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5987 instead of force_reg.
5988
5989 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5990
5991 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5992 needed and use force_reg after convert.
5993 (ix86_expand_call): Likewise.
5994 (ix86_expand_special_args_builtin): Likewise.
5995 (ix86_expand_builtin): Likewise.
5996
5997 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5998
5999 PR middle-end/47654
6000 PR middle-end/49649
6001 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
6002 in parameter. Initialize v1 and v2 based on the values returned
6003 by clast_name_to_lb_ub.
6004 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
6005 values.
6006 (type_for_clast_bin): Same.
6007 (type_for_clast_expr): Same.
6008 (type_for_clast_eq): Update calls to type_for_clast_expr.
6009 (type_for_clast_for): Same.
6010 (build_iv_mapping): Same.
6011 * graphite-ppl.h (value_min): New.
6012
6013 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6014
6015 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
6016 types whenever possible.
6017
6018 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6019
6020 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
6021 and ub fields.
6022 (new_clast_name_index): Add lb and ub parameters.
6023 (free_clast_name_index): New.
6024 (clast_name_to_lb_ub): New.
6025 (save_clast_name_index): Add lb and ub parameters.
6026 (compute_bounds_for_param): New.
6027 (type_for_level): Removed.
6028 (type_for_clast_for): Removed level parameter. Do not call
6029 type_for_level.
6030 (graphite_create_new_loop): Store the lb and ub for the clast_name
6031 of the iterator of the loop that has been generated.
6032 (graphite_create_new_loop_guard): Remove parameter level.
6033 (create_params_index): Store the lb and ub of each parameter.
6034 (gloog): Use free_clast_name_index. Pass to create_params_index
6035 the current scop.
6036
6037 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6038
6039 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
6040 (max_precision_type): Inline max_signed_precision_type.
6041 (type_for_clast_red): Use max_precision_type.
6042 (type_for_clast_bin): Same.
6043 (type_for_clast_for): Same.
6044
6045 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6046
6047 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
6048 type_for_interval.
6049 (gcc_type_for_value): Renamed type_for_value.
6050 (gcc_type_for_clast_term): Renamed type_for_clast_term.
6051 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
6052 (gcc_type_for_clast_red): Renamed type_for_clast_red.
6053 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
6054 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
6055 (graphite_translate_clast_equation): Update calls.
6056 (compute_type_for_level): Renamed type_for_level.
6057 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
6058 (build_iv_mapping): Update calls.
6059 (graphite_create_new_loop_guard): Same.
6060
6061 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6062
6063 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
6064 comment.
6065
6066 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6067
6068 * graphite-clast-to-gimple.c (struct ivs_params): New.
6069 (clast_name_to_gcc): Use ivs_params to pass around parameters.
6070 (clast_to_gcc_expression): Same.
6071 (clast_to_gcc_expression_red): Same.
6072 (gcc_type_for_clast_term): Same.
6073 (gcc_type_for_clast_expr): Same.
6074 (gcc_type_for_clast_red): Same.
6075 (gcc_type_for_clast_bin): Same.
6076 (gcc_type_for_clast_eq): Same.
6077 (graphite_translate_clast_equation): Same.
6078 (graphite_create_guard_cond_expr): Same.
6079 (graphite_create_new_guard): Same.
6080 (graphite_create_new_loop): Same.
6081 (build_iv_mapping): Same.
6082 (translate_clast_user): Same.
6083 (graphite_create_new_loop_guard): Same.
6084 (translate_clast): Same.
6085 (translate_clast_for_loop): Same.
6086 (translate_clast_for): Same.
6087 (translate_clast_guard): Same.
6088 (initialize_cloog_names): Fix typo.
6089 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
6090
6091 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6092
6093 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
6094 (new_clast_name_index): Add level parameter.
6095 (clast_name_to_level): New.
6096 (save_clast_name_index): Add level parameter.
6097 (newivs_to_depth_to_newiv): Removed.
6098 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
6099 (graphite_create_new_loop): Add level parameter. Pass level to
6100 save_clast_name_index.
6101 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
6102 (create_params_index): Pass level to save_clast_name_index.
6103
6104 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6105
6106 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
6107 recompute type, lb, and ub. Get them from...
6108 (graphite_create_new_loop_guard): ...here. Pass in parameter
6109 pointers to type, lb, and ub.
6110 (translate_clast_for_loop): Update function calls.
6111 (translate_clast_for): Same.
6112
6113 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6114
6115 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
6116 psct_dynamic_dim.
6117 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
6118 (gcc_type_for_iv_of_clast_loop): Update use of level.
6119 (gloog): Start counting nesting level from 0.
6120 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
6121 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
6122 psct_dynamic_dim on level.
6123
6124 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6125
6126 * config/i386/i386.c (ix86_legitimize_address): Convert to
6127 Pmode if needed.
6128
6129 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6130
6131 * config/i386/i386.c (function_value_64): Always return pointers
6132 in Pmode.
6133 (ix86_promote_function_mode): New.
6134 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
6135
6136 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6137
6138 PR tree-optimization/49749
6139 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
6140 remove no-longer-used maxrank variable.
6141
6142 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6143
6144 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
6145
6146 2011-07-21 Jason Merrill <jason@redhat.com>
6147
6148 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
6149 * recog.h (struct insn_data_d): Check it instead of
6150 HAVE_DESIGNATED_INITIALIZERS.
6151 * genoutput.c (output_insn_data): Likewise.
6152
6153 2011-07-21 Richard Guenther <rguenther@suse.de>
6154
6155 PR tree-optimization/49770
6156 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
6157 valueized any operand. Renamed from ...
6158 (valueize_refs): ... this. New wrapper around valueize_refs_1.
6159 (valueize_shared_reference_ops_from_ref): Return whether we
6160 valueized any operand.
6161 (vn_reference_lookup): Only when we valueized any operand
6162 use the valueized reference for alias analysis. Do not preserve
6163 the original reference tree in this case.
6164
6165 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
6166
6167 * config/i386/i386.c (ix86_decompose_address): Reject all but
6168 register operands and subregs of DImode hard registers in index.
6169
6170 2011-07-21 Kai Tietz <ktietz@redhat.com>
6171
6172 * fold-const.c (fold_unary_loc): Preserve indirect
6173 comparison cast to none-boolean type.
6174 * tree-ssa.c (useless_type_conversion_p): Preserve cast
6175 from/to boolean-type.
6176 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
6177 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
6178 * tree-cfg.c (verify_gimple_comparison): Check result
6179 type of comparison expression.
6180 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
6181 of condition result and disallow type-cast sinking into comparison.
6182
6183 2011-07-21 Richard Guenther <rguenther@suse.de>
6184
6185 * tree-ssa-forwprop.c (combine_conversions): Return whether
6186 we have to run cfg-cleanup. Properly remove dead stmts.
6187 (ssa_forward_propagate_and_combine): Adjust.
6188
6189 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
6190
6191 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
6192
6193 2011-07-21 Kai Tietz <ktietz@redhat.com>
6194
6195 * tree-ssa-propagate.c (substitute_and_fold): Use
6196 do_dce flag to deside, if BB's statements are scanned
6197 in last to first, or first to last order.
6198
6199 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6200
6201 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
6202
6203 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
6204 Uros Bizjak <ubizjak@gmail.com>
6205 Richard Henderson <rth@redhat.com>
6206
6207 * config/i386/constraints.md (w): New.
6208
6209 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
6210 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
6211
6212 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
6213 instead of TARGET_64BIT.
6214
6215 * config/i386/i386.md (indirect_jump): Replace
6216 nonimmediate_operand with indirect_branch_operand.
6217 (*indirect_jump): Likewise. Replace constraint "m" with "w".
6218 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
6219 Convert operand 0 to Pmode for x32 if not PIC.
6220 (*tablejump_1): Replace nonimmediate_operand with
6221 indirect_branch_operand. Replace constraint "m" with "w".
6222 (*call_vzeroupper): Replace constraint "m" with "w".
6223 (*call): Likewise.
6224 (*call_rex64_ms_sysv_vzeroupper): Likewise.
6225 (*call_rex64_ms_sysv): Likewise.
6226 (*call_value_vzeroupper): Likewise.
6227 (*call_value): Likewise.
6228 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
6229 (*call_value_rex64_ms_sysv): Likewise.
6230 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6231
6232 * config/i386/predicates.md (indirect_branch_operand): New.
6233 (call_insn_operand): Support x32.
6234
6235 2011-07-20 Michael Eager <eager@eagercon.com>
6236
6237 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
6238
6239 2011-07-20 Richard Henderson <rth@redhat.com>
6240
6241 * cfg.c (dump_bb_info): Dump basic_block->flags.
6242 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
6243
6244 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6245
6246 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6247 of DImode hard registers in index.
6248 (ix86_legitimate_address_p): Allow subregs of base and index to span
6249 more than a word. Assert that subregs of base and index satisfy
6250 register_no_elim_operand predicates. Reject addresses where
6251 base and index have different modes.
6252
6253 2011-07-20 Robert Millan <rmh@gnu.org>
6254
6255 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6256
6257 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6258
6259 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6260 removing now-unnecessary assignment.
6261
6262 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6263
6264 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6265 memory address space to the type's address space.
6266
6267 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6268
6269 PR target/36467
6270 PR target/49687
6271 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6272 and expand appropriately if there is a CONST_INT in operand2.
6273 (usmulqihi3): New insn.
6274 (*sumulqihi3): New insn.
6275 (*osmulqihi3): New insn.
6276 (*oumulqihi3): New insn.
6277 (*muluqihi3.uconst): New insn_and_split.
6278 (*muluqihi3.sconst): New insn_and_split.
6279 (*mulsqihi3.sconst): New insn_and_split.
6280 (*mulsqihi3.uconst): New insn_and_split.
6281 (*mulsqihi3.oconst): New insn_and_split.
6282 (*ashifthi3.signx.const): New insn_and_split.
6283 (*ashifthi3.signx.const7): New insn_and_split.
6284 (*ashifthi3.zerox.const): New insn_and_split.
6285 (mulsqihi3): New insn.
6286 (muluqihi3): New insn.
6287 (muloqihi3): New insn.
6288 * config/avr/predicates.md (const_2_to_7_operand): New.
6289 (const_2_to_6_operand): New.
6290 (u8_operand): New.
6291 (s8_operand): New.
6292 (o8_operand): New.
6293 (s9_operand): New.
6294 (register_or_s9_operand): New.
6295
6296 2011-07-20 Kai Tietz <ktietz@redhat.com>
6297
6298 * builtins.c (fold_builtin_expect): See through the cast
6299 from truthvalue_type_node to long.
6300
6301 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6302
6303 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6304 where we can use them from the standard and altivec instruction
6305 sets, instead of always using the 3 operand VSX forms that require
6306 the destination to overlap one of the inputs.
6307 (vsx_fms*): Ditto.
6308 (vsx_fnma*): Ditto.
6309 (vsx_fnms*): Ditto.
6310
6311 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6312 for DF types.
6313 (fmsdf4_fpr): Ditto.
6314 (nfmadf4_fpr): Ditto.
6315 (nfmsdf4_fpr): Ditto.
6316
6317 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
6318
6319 * genrecog.c (make_insn_sequence): Correct position numbering
6320 when filtering out match_scratch and match_dup.
6321
6322 2011-07-20 Richard Guenther <rguenther@suse.de>
6323
6324 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6325 against already removed statements.
6326 (forward_propagate_into_comparison): Remove dead defining stmts.
6327 (forward_propagate_into_gimple_cond): Likewise.
6328 (forward_propagate_into_cond): Simplify.
6329 (ssa_forward_propagate_and_combine): Handle changed cfg from
6330 forward_propagate_into_comparison.
6331 * tree-ssa-phiopt.c (conditional_replacement): Use proper
6332 locations for newly built statements.
6333
6334 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6335
6336 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
6337
6338 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6339
6340 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
6341 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
6342
6343 2011-07-20 Richard Guenther <rguenther@suse.de>
6344
6345 PR middle-end/18908
6346 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
6347 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
6348 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
6349
6350 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
6351
6352 * config/frv/frv.c (frv_register_move_cost): Define explicitly
6353 costs for subclasses of GR_REGS.
6354
6355 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6356
6357 PR target/49780
6358 * config/i386/predicates.md (no_seg_addres_operand): No more special.
6359 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6360 of DImode hard registers in base.
6361 (ix86_legitimate_address_p): Allow SImode and DImode base and index
6362 registers.
6363
6364 2011-07-20 Richard Guenther <rguenther@suse.de>
6365
6366 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
6367 (unify_nodes): Deal with that.
6368 (solve_graph): Likewise.
6369
6370 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
6371
6372 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
6373 canonicalize left operand from ZERO_EXTEND to AND.
6374
6375 2011-07-20 Anatoly Sokolov <aesok@post.ru>
6376
6377 * target.def (class_max_nregs): New hook.
6378 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
6379 * doc/tm.texi: Regenerate.
6380 * targhooks.c (default_class_max_nregs): New function.
6381 * targhooks.h (default_class_max_nregs): Declare.
6382 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
6383 x_ira_reg_class_min_nregs arrays to unsigned char.
6384 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
6385 hook instead of CLASS_MAX_NREGS macro.
6386 * reginfo.c (restore_register_info): Ditto.
6387 * ira-conflicts.c (process_regs_for_copy): Use
6388 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6389 Change type rclass and aclass vars to reg_class_t.
6390 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
6391 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
6392 reg_class_t.
6393 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
6394 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6395
6396 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
6397 * config/i386/i386.c (ix86_class_max_nregs): New function.
6398 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
6399 instead of CLASS_MAX_NREGS macro.
6400 (TARGET_CLASS_MAX_NREGS): Define.
6401 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
6402 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
6403 * config/avr/avr.c (class_max_nregs): Remove function.
6404 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
6405 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
6406 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
6407 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
6408 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
6409 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
6410 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
6411 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
6412 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
6413 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
6414 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
6415 * config/score/score.h (CLASS_MAX_NREGS): Remove.
6416 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
6417 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
6418 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
6419
6420 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
6421
6422 * cif-code.def (OVERWRITABLE): Fix typo and move around.
6423 (TARGET_OPTIMIZATION_MISMATCH): Delete.
6424 (EH_PERSONALITY): Fix typo.
6425 (NON_CALL_EXCEPTIONS): Fix message.
6426 (OPTIMIZATION_MISMATCH): Adjust message.
6427 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
6428
6429 2011-07-19 Ian Lance Taylor <iant@google.com>
6430
6431 * doc/install.texi (Configuration): Document
6432 --enable-build-poststage1-with-cxx.
6433
6434 2011-07-19 Robert Millan <rmh@gnu.org>
6435
6436 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
6437 (GLIBC_DYNAMIC_LINKER): Remove.
6438
6439 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
6440 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6441 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6442 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
6443 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
6444 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
6445
6446 * config/mips/linux.h: Remove everything except for ...
6447 (GLIBC_DYNAMIC_LINKER): ... this macro.
6448
6449 * config/mips/linux64.h: Remove everything except for ...
6450 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6451 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6452 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
6453 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
6454 (GNU_USER_LINK_EMULATIONN32): New macros.
6455
6456 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
6457 Use the new headers.
6458
6459 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6460
6461 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
6462 Add offset_known_p and size_known_p fields.
6463 (MEM_OFFSET_KNOWN_P): Update accordingly.
6464 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
6465 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
6466 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
6467 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
6468 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
6469 (init_emit_regs): Likewise.
6470
6471 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6472
6473 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
6474 (MEM_OFFSET): Change from returning an rtx to returning a
6475 HOST_WIDE_INT.
6476 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
6477 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
6478 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6479 (clear_mem_offset): Declare.
6480 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
6481 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
6482 MEM_OFFSET to get a HOST_WIDE_INT offset.
6483 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
6484 (adjust_offset_for_component_ref): Take a bool "known_p"
6485 parameter and a HOST_WIDE_INT "offset" parameter.
6486 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
6487 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
6488 than an rtx. Use clear_mem_offset to clear the offset.
6489 * cfgcleanup.c (merge_memattrs): Likewise.
6490 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
6491 * function.c (assign_parm_find_stack_rtl): Likewise.
6492 (assign_parm_setup_stack): Likewise.
6493 * print-rtl.c (print_rtx): Likewise.
6494 * reload.c (find_reloads_subreg_address): Likewise.
6495 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6496 * var-tracking.c (INT_MEM_OFFSET): Likewise.
6497 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6498 (get_mem_align_offset): Likewise.
6499 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6500 (clear_mem_offset): New function.
6501 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
6502 offset rather than an rtx. Assume both the expressio and offset
6503 are available.
6504 (r10k_needs_protection_p_1): Update accordingly, checking the
6505 expression and offset availability here instead.
6506
6507 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6508
6509 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
6510 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
6511 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
6512 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
6513 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6514 (clear_mem_size): Declare.
6515 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6516 (clear_mem_size): New function.
6517 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
6518 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
6519 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
6520 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
6521 to clear the size.
6522 (nonoverlapping_memrefs_p): Likewise.
6523 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
6524 (expand_builtin_init_trampoline): Likewise.
6525 * calls.c (compute_argument_addresses): Likewise.
6526 * cfgcleanup.c (merge_memattrs): Likewise.
6527 * dce.c (find_call_stack_args): Likewise.
6528 * dse.c (record_store, scan_insn): Likewise.
6529 * dwarf2out.c (dw_sra_loc_expr): Likewise.
6530 * expr.c (emit_block_move_hints): Likewise.
6531 * function.c (assign_parm_find_stack_rtl): Likewise.
6532 * print-rtl.c (print_rtx): Likewise.
6533 * reload.c (find_reloads_subreg_address): Likewise.
6534 * rtlanal.c (may_trap_p_1): Likewise.
6535 * var-tracking.c (track_expr_p): Likewise.
6536 * varasm.c (assemble_trampoline_template): Likewise.
6537 * config/arm/arm.c (arm_print_operand): Likewise.
6538 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
6539 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
6540 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
6541 (expand_constant_setmem_prologue): Likewise.
6542 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
6543 * config/rs6000/rs6000.c (expand_block_move): Likewise.
6544 (adjacent_mem_locations): Likewise.
6545 * config/s390/s390.c (s390_expand_setmem): Likewise.
6546 (s390_expand_insv): Likewise.
6547 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
6548 (*extendqi<mode>2_short_displ): Likewise.
6549 * config/sh/sh.c (expand_block_move): Likewise.
6550 * config/sh/sh.md (extv, extzv): Likewise.
6551
6552 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6553
6554 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
6555 (mem_attrs_htab_eq): ...here.
6556 (find_mem_attrs): Replace with...
6557 (set_mem_attrs): ...this function. Take a mem_attrs structure
6558 rather than individual fields.
6559 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6560 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6561 (set_mem_size, change_address, adjust_address_1, offset_address)
6562 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6563 Update accordingly.
6564
6565 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6566
6567 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6568 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6569 Provide a dummy definition of MEM_ADDR_SPACE for generators.
6570 (target_rtl): Add x_mode_mem_attrs.
6571 (mode_mem_attrs): New macro.
6572 (get_mem_attrs): New function.
6573 * emit-rtl.c (get_mem_attrs): Rename to...
6574 (find_mem_attrs): ...this.
6575 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6576 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6577 (set_mem_size, change_address, adjust_address_1, offset_address)
6578 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6579 Update accordingly.
6580 (init_emit_regs): Initialize mode_mem_attrs.
6581
6582 2011-07-19 Richard Guenther <rguenther@suse.de>
6583
6584 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6585 TRUTH_*_EXPR handling.
6586 * tree-ssa-operands.c (get_expr_operands): Likewise.
6587 * tree-ssa-pre.c (fully_constant_expression): Likewise.
6588 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6589 Likewise.
6590 (is_and_or_or): Likewise.
6591 (is_norm_cond_subset_of): Likewise.
6592
6593 2011-07-19 Richard Guenther <rguenther@suse.de>
6594
6595 * tree.h (fold_build_pointer_plus_loc): New helper function.
6596 (fold_build_pointer_plus_hwi_loc): Likewise.
6597 (fold_build_pointer_plus): Define.
6598 (fold_build_pointer_plus_hwi): Likewise.
6599 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6600 (fold_builtin_memory_op): Likewise.
6601 (fold_builtin_stpcpy): Likewise.
6602 (fold_builtin_memchr): Likewise.
6603 (fold_builtin_strstr): Likewise.
6604 (fold_builtin_strchr): Likewise.
6605 (fold_builtin_strrchr): Likewise.
6606 (fold_builtin_strpbrk): Likewise.
6607 (fold_builtin_strcat): Likewise.
6608 (expand_builtin_memory_chk): Likewise.
6609 (fold_builtin_memory_chk): Likewise.
6610 * c-typeck.c (build_unary_op): Likewise.
6611 * cgraphunit.c (thunk_adjust): Likewise.
6612 * fold-const.c (build_range_check): Likewise.
6613 (fold_binary_loc): Likewise.
6614 * omp-low.c (extract_omp_for_data): Likewise.
6615 (expand_omp_for_generic): Likewise.
6616 (expand_omp_for_static_nochunk): Likewise.
6617 (expand_omp_for_static_chunk): Likewise.
6618 * tree-affine.c (add_elt_to_tree): Likewise.
6619 * tree-data-ref.c (split_constant_offset_1): Likewise.
6620 * tree-loop-distribution.c (generate_memset_zero): Likewise.
6621 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6622 * tree-predcom.c (ref_at_iteration): Likewise.
6623 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6624 (add_to_parts): Likewise.
6625 (create_mem_ref): Likewise.
6626 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6627 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6628 (number_of_iterations_le): Likewise.
6629 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6630 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6631 (vect_create_addr_base_for_vector_ref): Likewise.
6632 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6633 (vect_create_cond_for_alias_checks): Likewise.
6634 * tree-vrp.c (extract_range_from_assert): Likewise.
6635 * config/alpha/alpha.c (alpha_va_start): Likewise.
6636 (alpha_gimplify_va_arg_1): Likewise.
6637 * config/i386/i386.c (ix86_va_start): Likewise.
6638 (ix86_gimplify_va_arg): Likewise.
6639 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6640 * config/mep/mep.c (mep_expand_va_start): Likewise.
6641 (mep_gimplify_va_arg_expr): Likewise.
6642 * config/mips/mips.c (mips_va_start): Likewise.
6643 (mips_gimplify_va_arg_expr): Likewise.
6644 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6645 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6646 (rs6000_gimplify_va_arg): Likewise.
6647 * config/s390/s390.c (s390_va_start): Likewise.
6648 (s390_gimplify_va_arg): Likewise.
6649 * config/sh/sh.c (sh_va_start): Likewise.
6650 (sh_gimplify_va_arg_expr): Likewise.
6651 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6652 * config/spu/spu.c (spu_va_start): Likewise.
6653 (spu_gimplify_va_arg_expr): Likewise.
6654 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6655 Likewise.
6656 (xstormy16_gimplify_va_arg_expr): Likewise.
6657 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6658 (xtensa_gimplify_va_arg_expr): Likewise.
6659
6660 2011-07-19 Richard Guenther <rguenther@suse.de>
6661
6662 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6663 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6664 handling.
6665
6666 PR middle-end/18908
6667 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6668 result of BIT_*_EXPR to bitfield precision.
6669
6670 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
6671
6672 PR tree-optimization/49742
6673 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6674 as a potential write.
6675
6676 2011-07-19 Richard Guenther <rguenther@suse.de>
6677
6678 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6679 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6680 (forward_propagate_comparison): Simplify, remove obsolete code.
6681
6682 2011-07-19 Richard Guenther <rguenther@suse.de>
6683
6684 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6685 BIT_XOR_EXPR, same as the RTL expander does.
6686 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6687 (verify_gimple_assign_unary): Likewise.
6688 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6689 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6690 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6691
6692 2011-07-19 Jakub Jelinek <jakub@redhat.com>
6693
6694 PR tree-optimization/49768
6695 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6696 if offset is smaller than bitoffset, but offset+size is bigger
6697 than bitoffset.
6698
6699 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
6700
6701 PR tree-optimization/49771
6702 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6703 zero step, set segment length to the size of the data-ref's type.
6704
6705 2011-07-18 Martin Jambor <mjambor@suse.cz>
6706
6707 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6708 comments.
6709 (ipcp_values_pool): Declare.
6710 (ipcp_sources_pool): Likewise.
6711 (ipcp_lattice): Changed to forward declaration.
6712 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6713 cannot_devirtualize.
6714 (ipa_node_params): New fields descriptors, lattices, known_vals,
6715 clone_for_all_contexts and node dead, removed fields params and
6716 count_scale.
6717 (ipa_set_param_count): Removed.
6718 (ipa_get_param_count): Made to work with descriptors vector.
6719 (ipa_get_param): Updated.
6720 (ipa_param_cannot_devirtualize_p): Removed.
6721 (ipa_param_types_vec_empty): Likewise.
6722 (ipa_set_param_used): New function.
6723 (ipa_get_param_used): Updated to use descriptors vector.
6724 (ipa_func_list): Removed.
6725 (ipa_init_func_list): Removed declaration.
6726 (ipa_push_func_to_list_1): Likewise.
6727 (ipa_pop_func_from_list): Likewise.
6728 (ipa_push_func_to_list): Removed.
6729 (ipa_lattice_from_jfunc): Remove declaration.
6730 (ipa_get_jf_pass_through_result): Declare.
6731 (ipa_get_jf_ancestor_result): Likewise.
6732 (ipa_value_from_jfunc): Likewise.
6733 (ipa_get_lattice): Update.
6734 (ipa_lat_is_single_const): New function.
6735 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6736 (ipa_init_func_list): Likewise.
6737 (ipa_pop_func_from_list): Likewise.
6738 (ipa_get_param_decl_index): Fix coding style.
6739 (count_formal_params): Removed.
6740 (count_formal_params_1): Renamed to count_formal_params.
6741 (ipa_populate_param_decls): Update to use descriptors vector.
6742 (ipa_initialize_node_params): Likewise.
6743 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6744 (ipa_analyze_params_uses): Likewise.
6745 (ipa_free_node_params_substructures): Likewise and free also lattices
6746 and known values.
6747 (duplicate_array): Removed.
6748 (ipa_edge_duplication_hook): Add the new edge to the list of edge
6749 clones.
6750 (ipa_node_duplication_hook): Update to use new lattices.
6751 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6752 (ipa_free_all_structures_after_iinln): Likewise.
6753 (ipa_write_node_info): Update to use new lattices.
6754 (ipa_read_node_info): Likewise.
6755 (ipa_get_jf_pass_through_result): New function.
6756 (ipa_get_jf_ancestor_result): Likewise.
6757 (ipa_value_from_jfunc): Likewise.
6758 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6759 * ipa-cp.c: Reimplemented.
6760 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6761 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6762 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6763 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6764 * doc/invoke.texi (devirt-type-list-size): Removed description.
6765 (ipa-cp-value-list-size): Added description.
6766
6767 2011-07-18 Richard Henderson <rth@redhat.com>
6768
6769 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6770 before calling create_basic_block.
6771
6772 2011-07-18 Jakub Jelinek <jakub@redhat.com>
6773
6774 PR middle-end/49675
6775 * tree.c (build_common_builtin_nodes): Register
6776 __builtin_return_address, __cyg_profile_func_enter
6777 and __cyg_profile_func_exit.
6778
6779 2011-07-18 Richard Henderson <rth@redhat.com>
6780
6781 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
6782 (add_labels_and_missing_jumps): ... here.
6783 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
6784
6785 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
6786
6787 PR target/47744
6788 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6789 of DImode hard registers in PLUS address chains.
6790
6791 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6792
6793 PR bootstrap/49769
6794 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
6795 (alpha*-*-freebsd*): Likewise.
6796 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6797 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6798 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
6799 crtprec80.o, crtfastmath.o to extra_parts for all targets.
6800 (ia64*-*-elf*): Remove extra_parts.
6801 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
6802 (sparc64-*-linux*): Likewise.
6803 (sparc64-*-freebsd*): Likewise.
6804
6805 Revert:
6806 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
6807 (ia64*-*-linux*): Likewise.
6808 (mips64*-*-linux*): Likewise.
6809 (mips*-*-linux*): Likewise.
6810
6811 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
6812
6813 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
6814
6815 2011-07-18 Richard Guenther <rguenther@suse.de>
6816
6817 * gimplify.c (gimplify_expr): Use input_location, not saved_location
6818 when building new trees.
6819
6820 2011-07-18 Richard Guenther <rguenther@suse.de>
6821
6822 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
6823 expansion result to bitfield precision if required.
6824
6825 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6826
6827 * config.gcc (i[3456x]86-*-netware*): Remove.
6828
6829 * gthr-nks.h: Remove.
6830 * configure.ac (enable_threads): Remove nks.
6831 * configure: Regenerate.
6832
6833 * config/i386/i386.c (ix86_encode_section_info): Remove netware
6834 reference.
6835 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
6836 <netware.h> reference.
6837
6838 * config/i386/netware-libgcc.c,
6839 gcc/config/i386/netware-libgcc.def,
6840 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
6841 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
6842 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
6843 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6844
6845 * doc/extend.texi (Function Attributes,
6846 callee_pop_aggregate_return): Remove i?86-netware reference.
6847 * doc/install.texi (Configuration, --enable-threads): Remove nks.
6848
6849 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6850
6851 PR target/49746
6852 Revert:
6853 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6854
6855 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6856 patterns.
6857
6858 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
6859
6860 PR middle-end/49732
6861 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6862
6863 2011-07-16 Matthias Klose <doko@ubuntu.com>
6864
6865 * doc/install.texi: Document --enable-static-libjava.
6866
6867 2011-07-15 Richard Henderson <rth@redhat.com>
6868
6869 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6870 Replace all three arguments by returning a VEC of edges.
6871 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6872 pointers and counts.
6873 (fix_edges_for_rarely_executed_code): Merge ...
6874 (rest_of_handle_partition_blocks): ... into...
6875 (partition_hot_cold_basic_blocks): ... here. Return todo items if
6876 any work was performed.
6877 (pass_partition_blocks): Clear todo_flags_finish.
6878
6879 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
6880 Jakub Jelinek <jakub@redhat.com>
6881 Jonathan Wakely <jwakely.gcc@gmail.com>
6882
6883 PR libstdc++/49745
6884 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6885 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6886
6887 2011-07-15 Jason Merrill <jason@redhat.com>
6888
6889 PR testsuite/49741
6890 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6891 rather than --tool_opts.
6892
6893 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
6894
6895 * doc/plugins.texi (Building GCC plugins): gengtype needs its
6896 corresponding gtype.state.
6897
6898 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6899
6900 PR target/49723
6901 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6902
6903 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
6904
6905 PR target/48220
6906 * doc/md.texi (Standard Names): Document window_save.
6907 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6908 expand_debug_expr and expand_debug_source_expr. If the target has
6909 a window_save instruction, adjust the ENTRY_VALUE_EXP.
6910 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6911 SSA_NAME_VAR is a parameter.
6912 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6913 * var-tracking.c (parm_reg_t): New type and associated vector type.
6914 (windowed_parm_regs): New variable.
6915 (adjust_insn): If the target has a window_save instruction and this
6916 is the instruction, make its effect on parameter registers explicit.
6917 (next_non_note_insn_var_location): New function.
6918 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6919 (vt_add_function_parameter): If the target has a window_save insn,
6920 adjust the incoming RTL and record that in windowed_parm_regs.
6921 (vt_finalize): Free windowed_parm_regs.
6922
6923 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
6924
6925 * doc/invoke.texi (C6X Options): New section.
6926 * doc/md.texi (TI C6X family): New section.
6927 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6928 tic6x-*-uclinux.
6929 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6930 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6931 Provide C6X definitions.
6932 * config/c6x/c6x.md: New file.
6933 * config/c6x/constraints.md: New file.
6934 * config/c6x/predicates.md: New file.
6935 * config/c6x/c6x-sched.md.in: New file.
6936 * config/c6x/c6x-sched.md: New file.
6937 * config/c6x/gensched.sh: New file.
6938 * config/c6x/c6x-mult.md.in: New file.
6939 * config/c6x/genmult.sh: New file.
6940 * config/c6x/c6x-mult.md: New file.
6941 * config/c6x/sync.md: New file.
6942 * config/c6x/c6x-protos.h: New file.
6943 * config/c6x/sfp-machine.h: New file.
6944 * config/c6x/c6x.c: New file.
6945 * config/c6x/c6x.h: New file.
6946 * config/c6x/crti.s: New file.
6947 * config/c6x/crtn.s: New file.
6948 * config/c6x/lib1funcs.asm: New file.
6949 * config/c6x/c6x-modes.def: New file.
6950 * config/c6x/genopt.sh: New file.
6951 * config/c6x/c6x.opt: New file.
6952 * config/c6x/c6x-tables.opt: New file.
6953 * config/c6x/c6x-opts.h: New file.
6954 * config/c6x/c6x-isas.def: New file.
6955 * config/c6x/elf.h: New file.
6956 * config/c6x/elf-common.h: New file.
6957 * config/c6x/uclinux-elf.h: New file.
6958 * config/c6x/t-c6x: New file.
6959 * config/c6x/t-c6x-elf: New file.
6960 * config/c6x/t-c6x-uclinux: New file.
6961 * config/c6x/t-c6x-softfp: New file.
6962 * config/c6x/gtd.c: New file.
6963 * config/c6x/gtf.c: New file.
6964 * config/c6x/ltd.c: New file.
6965 * config/c6x/ltf.c: New file.
6966 * config/c6x/ged.c: New file.
6967 * config/c6x/gef.c: New file.
6968 * config/c6x/led.c: New file.
6969 * config/c6x/lef.c: New file.
6970 * config/c6x/eqd.c: New file.
6971 * config/c6x/eqf.c: New file.
6972 * config/c6x/libgcc-c6xeabi.ver: New file.
6973
6974 Revert
6975 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
6976 PR rtl-optimization/11320
6977 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6978 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6979 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6980 current_sched_info->compute_jump_reg_dependencies. Record which
6981 registers are used and which registers are set by the jump.
6982 Clear deps->reg_conditional_sets after a barrier.
6983 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6984 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6985 (init_deps): Initialize reg_conditional_sets.
6986 (free_deps): Clear reg_conditional_sets.
6987 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6988 Mark registers live on entry of the fallthrough block and conditionally
6989 set as set by the jump. Mark registers live on entry of non-fallthrough
6990 blocks as used by the jump.
6991 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6992 Mark new parameters as unused.
6993
6994 2011-07-14 Andrew Pinski <pinskia@gmail.com>
6995
6996 PR tree-opt/49309
6997 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6998 Use fold_build2_loc instead of build2.
6999 Use the correct type for the new tree.
7000
7001 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7002
7003 PR rtl-optimization/11320
7004 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
7005 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
7006
7007 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
7008
7009 PR target/49487
7010 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
7011 of REG.
7012 (*rotw<mode>): Use const_int_operand for operand2.
7013 Use match_scatch for operand3.
7014 (*rotb<mode>): Ditto
7015 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
7016
7017 2011-07-14 Richard Guenther <rguenther@suse.de>
7018
7019 PR tree-optimization/49651
7020 * tree-ssa-structalias.c (get_constraint_for_1): Properly
7021 handle dereferences with subvariables.
7022
7023 2011-07-14 Richard Guenther <rguenther@suse.de>
7024
7025 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
7026 (fold_stmt_1): Do it here directly on gimple and as a first thing.
7027
7028 2011-07-14 Richard Guenther <rguenther@suse.de>
7029
7030 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
7031 not bool_var when folding bool_var != 1 or bool_var == 0.
7032
7033 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7034
7035 * haifa-sched.c (schedule_insns): Remove outdated comment.
7036 (schedule_block): When computing a known value for TODO_SPEC,
7037 just set it rather than using logical operations.
7038 (try_ready): Likewise. Use a local variable rather than a
7039 pointer to TODO_SPEC. Reorder an if statement to move the
7040 easy case to the then block.
7041 * sched-deps.c (dep_spec_p): New static function.
7042 (update_dep): Use it to decide whether to call
7043 change_spec_dep_to_hard.
7044 (get_back_and_forw_lists): Use it.
7045 (sd_resolve_dep): Likewise.
7046 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
7047 (haifa_note_mem_dep): Likewise.
7048 (check_dep): Likewise.
7049 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
7050 (sched_free_deps): Free in two passes.
7051
7052 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
7053
7054 PR middle-end/49736
7055 * expr.c (all_zeros_p): Undo bogus part of last change.
7056
7057 2011-07-14 Matthias Klose <doko@ubuntu.com>
7058
7059 * doc/extend.texi (optimize attribute): Fix typo.
7060
7061 2011-07-14 Richard Guenther <rguenther@suse.de>
7062
7063 * gimplify.c (gimplify_expr): Only do required conversions.
7064
7065 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
7066
7067 PR target/43746
7068 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
7069 i.e. use default_elf_select_section.
7070 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
7071 (READONLY_DATA_SECTION_ASM_OP): Remove.
7072 (TARGET_ASM_NAMED_SECTION): Move from here...
7073 * config/avr/avr.c: ...to here.
7074 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
7075 (avr_asm_named_section): Make static.
7076
7077 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7078
7079 PR bootstrap/49739
7080 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
7081 and crtfastmath.o for Linux/x86.
7082
7083 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7084
7085 * haifa-sched.c: Include "hashtab.h"
7086 (sched_no_dce): New global variable.
7087 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
7088 SHADOW_P): New macros.
7089 (last_clock_var, cycle_issued_insns): Move declarations.
7090 (must_backtrack): New static variable.
7091 (struct delay_pair): New structure.
7092 (delay_htab, delay_htab_i2): New static variables.
7093 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
7094 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
7095 functions.
7096 (dep_cost_1): If delay pairs exist, try to look up the insns and
7097 use the correct pair delay if we find them.
7098 (rank-for_schedule): Tweak priority for insns that must be scheduled
7099 soon to avoid backtracking.
7100 (queue_insn): Detect conditions which force backtracking.
7101 (ready_add): Likewise.
7102 (struct sched_block_state): Add member shadows_only_p.
7103 (struct haifa_save_data): New structure.
7104 (backtrack_queue): New static variable.
7105 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
7106 unschedule_insns_until, restore_last_backtrack_point,
7107 free_topmost_backtrack_point, free_backtrack_queue,
7108 estimate_insn_tick, estimate_shadow_tick): New functions.
7109 (prune_ready_list): New arg shadows_only_p. All callers changed.
7110 If true, remove everything that isn't SHADOW_P. Look up delay
7111 pairs and estimate ticks to avoid scheduling the first insn too early.
7112 (verify_shadows): New function.
7113 (schedule_block): Add machinery to enable backtracking.
7114 (sched_init): Take sched_no_dce into account when setting
7115 DF_LR_RUN_DCE.
7116 (free_delay_pairs): New function.
7117 (init_h_i_d): Initialize INSN_EXACT_TICK.
7118 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
7119 * sched-deps.c (sd_unresolve_dep): New function.
7120 * sched-int. (struct haifa_sched_info): New fields save_state
7121 and restore_state.
7122 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
7123 feeds_backtrack_insn and shadow_p.
7124 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
7125 (sched_no_dce): Declare variable.
7126 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
7127 sd_unresolve_dep): Declare functions.
7128 * modulo-sched.c (sms_sched_info): Clear the two new fields.
7129 * sched-rgn.c (rgn_const_sched_info): Likewise.
7130 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7131 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
7132 (ebb_sched_info): Add them for the two new fields.
7133 (add_deps_for_risky_insns): Call add_delay_dependencies.
7134
7135 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7136
7137 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
7138 Rename -mr11.
7139 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
7140 (rs6000_call_indirect_aix): Ditto.
7141 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
7142 (call_indirect_aix<ptrsize>_internal): Ditto.
7143 (call_indirect_aix<ptrsize>_nor11): Ditto.
7144 (call_indirect_aix<ptrsize>_internal2): Ditto.
7145 (call_value_indirect_aix<ptrsize>): Ditto.
7146 (call_value_indirect_aix<ptrsize>_internal): Ditto.
7147 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7148 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7149 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
7150
7151 2011-07-13 Jason Merrill <jason@redhat.com>
7152
7153 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
7154
7155 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7156
7157 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
7158 * config/spu/spu.md ("clrsb<mode>2"): New expander.
7159
7160 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
7161
7162 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
7163 * configure: Regenerate.
7164
7165 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7166
7167 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
7168 (asm_file_start): Remove.
7169 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
7170 free_bb_for_insn around code that modifies insns before
7171 restarting df analysis.
7172
7173 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7174
7175 PR target/49541
7176 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
7177 (LINK_SPEC): ... here.
7178
7179 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7180
7181 * haifa-sched.c (struct sched_block_state): New.
7182 (schedule_block): Move some local variables into such a structure.
7183
7184 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7185
7186 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
7187 * config/i386/t-crtpc: Remove.
7188 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7189 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
7190 tmake_file.
7191 (x86_64-*-darwin*): Likewise.
7192 (i[34567]86-*-linux*): Likewise.
7193 (x86_64-*-linux*): Likewise.
7194
7195 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
7196 Handle -mpc32, -mpc64, -mpc80.
7197
7198 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7199
7200 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
7201 * config/alpha/t-crtfm: Remove.
7202 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
7203 * config/i386/t-crtfm: Remove.
7204 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
7205 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
7206 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
7207 * config/sparc/t-crtfm: Remove.
7208
7209 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
7210 (alpha*-*-freebsd*): Likewise.
7211 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
7212 (x86_64-*-darwin*): Likewise.
7213 (i[34567]86-*-linux*): Likewise.
7214 (x86_64-*-linux*): Likewise.
7215 (x86_64-*-mingw*): Likewise.
7216 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
7217 (ia64*-*-freebsd*): Likewise.
7218 (ia64*-*-linux*): Likewise.
7219 (mips64*-*-linux*): Likewise.
7220 (mips*-*-linux*): Likewise.
7221 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
7222 (sparc64-*-linux*): Likewise.
7223 (sparc64-*-freebsd*): Likewise.
7224
7225 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7226
7227 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
7228 * config/darwin-crt3.c: Move to ../libgcc/config.
7229 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7230 ($(T)crt3$(objext)): Remove.
7231 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
7232 ($(T)crt2$(objext)): Remove.
7233 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
7234 (powerpc64-*-darwin*): Likewise.
7235
7236 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7237
7238 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
7239
7240 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
7241 (addsi_1_zext): This.
7242
7243 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7244
7245 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
7246 * doc/tm.texi: Regenerate.
7247 * target.def (mergeable_rodata_prefix): New defhookpod.
7248 * varasm.c (mergeable_string_section, mergeable_constant_section):
7249 Use it. Allocate name with alloca.
7250
7251 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7252
7253 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7254
7255 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7256
7257 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7258 overlap check.
7259
7260 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7261
7262 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
7263 (count_type_elements): Delete.
7264 (complete_ctor_at_level_p): Declare.
7265 * expr.c (flexible_array_member_p): New function, split out from...
7266 (count_type_elements): ...here. Make static. Replace allow_flexarr
7267 parameter with for_ctor_p. When for_ctor_p is true, return the
7268 number of elements that should appear in the top-level constructor,
7269 otherwise return an estimate of the number of scalars.
7270 (categorize_ctor_elements): Replace p_must_clear with p_complete.
7271 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
7272 (complete_ctor_at_level_p): New function, borrowing union logic
7273 from old categorize_ctor_elements_1.
7274 (mostly_zeros_p): Return true if the constructor is not complete.
7275 (all_zeros_p): Update call to categorize_ctor_elements.
7276 * gimplify.c (gimplify_init_constructor): Update call to
7277 categorize_ctor_elements. Don't call count_type_elements.
7278 Unconditionally prevent clearing for variable-sized types,
7279 otherwise rely on categorize_ctor_elements to detect
7280 incomplete initializers.
7281
7282 2011-07-13 Richard Guenther <rguenther@suse.de>
7283
7284 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7285 the final type is integral.
7286
7287 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7288
7289 * sched-int.h (struct _dep): Add member cost.
7290 (DEP_COST, UNKNOWN_DEP_COST): New macros.
7291 * sched-deps.c (init_dep_1): Initialize DEP_COST.
7292 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7293 (sched_change_pattern): Reset it for dependent insns.
7294
7295 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7296
7297 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7298 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7299 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7300 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7301 (CRT0_S, MCRT0_S): Remove.
7302 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7303 Remove.
7304 (s-crt0): Remove.
7305 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7306
7307 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7308
7309 * cse.c (insert_with_costs): Put semi-colon after empty loop body
7310 on the next line.
7311 * emit-rtl.c (push_to_sequence): Likewise.
7312 * haifa-sched.c (max_issue): Likewise.
7313 * matrix-reorg.c (add_allocation_site): Likewise.
7314 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7315 * reload.c (alternative_allows_const_pool_ref): Likewise.
7316 * sched-rgn.c (rgn_add_block): Likewise.
7317 (rgn_fix_recovery_cfg): Likewise.
7318 * tree.c (attribute_list_contained): Likewise.
7319
7320 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
7321
7322 * config/i386/i386.c: Tidy processor feature bitmasks.
7323 (m_P4_NOCONA): New.
7324
7325 2011-07-12 Andrew Pinski <pinskia@gmail.com>
7326
7327 PR rtl-opt/49474
7328 * cprop.c (find_implicit_sets): Correct the condition.
7329
7330 2011-07-12 Richard Henderson <rth@redhat.com>
7331
7332 PR target/49713
7333 * dwarf2out.h (dwarf_frame_regnum): Remove.
7334 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
7335 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
7336 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
7337 (execute_dwarf2_frame): Initialize them.
7338 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
7339 users of the macros with the variables.
7340 (expand_builtin_dwarf_sp_column): Revert last change.
7341 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
7342 result of DWARF_FRAME_REGNUM into a local variable.
7343
7344 2011-07-12 Richard Henderson <rth@redhat.com>
7345
7346 PR target/49714
7347 * config/i386/i386.c (x86_output_mi_thunk): Use
7348 machopic_indirect_call_target instead of machopic_indirection_name
7349 directly.
7350
7351 2011-07-12 Laurent GUERBY <laurent@guerby.net>
7352 Eric Botcazou <ebotcazou@adacore.com>
7353
7354 * prefix.h: Wrap up in extern "C" block.
7355
7356 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
7357
7358 AMD bdver2 Enablement
7359 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
7360 (case ${target}): Add bdver2.
7361 * config/i386/driver-i386.c (host_detect_local_cpu): Let
7362 -march=native recognize bdver2 processors.
7363 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7364 bdver2 def_and_undef
7365 * config/i386/i386.c (struct processor_costs bdver2_cost): New
7366 bdver2 cost table.
7367 (m_BDVER2): New definition.
7368 (m_AMD_MULTIPLE): Includes m_BDVER2.
7369 (initial_ix86_tune_features): Add bdver2 tuning.
7370 (processor_target_table): Add bdver2 entry.
7371 (static const char *const cpu_names): Add bdver2 entry.
7372 (ix86_option_override_internal): Add bdver2 instruction sets.
7373 (ix86_issue_rate): Add bdver2.
7374 (ix86_adjust_cost): Add bdver2.
7375 (has_dispatch): Add bdver2.
7376 * config/i386/i386.h (TARGET_BDVER2): New definition.
7377 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
7378 (enum processor_type): Add PROCESSOR_BDVER2.
7379 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
7380 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
7381 description.
7382
7383 2011-07-12 Richard Henderson <rth@redhat.com>
7384
7385 PR target/49714
7386 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
7387 destination address in memory on some paths.
7388
7389 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
7390
7391 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
7392 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
7393 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
7394 * function.c (locate_and_pad_parm): Take it into account.
7395 * target.def (function_arg_round_boundary): New hook.
7396 * targhooks.c (default_function_arg_round_boundary): New function.
7397 * targhooks.h (default_function_arg_round_boundary): Declare.
7398 * doc/tm.texi: Regenerate.
7399
7400 2011-07-12 Richard Guenther <rguenther@suse.de>
7401
7402 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
7403 Do not perform no-op changes.
7404
7405 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
7406
7407 * config/arm/predicates.md (neon_struct_operand): Make a normal
7408 predicate.
7409 (neon_struct_or_register_operand): New predicate.
7410 * config/arm/neon.md (movmisalign<mode>): Replace predicates
7411 with neon_struct_or_register_operand.
7412 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
7413 neon_struct_operand instead of memory_operand.
7414
7415 2011-07-12 Martin Jambor <mjambor@suse.cz>
7416
7417 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
7418 * cgraph.c (cgraph_get_node_or_alias): Removed.
7419 (change_decl_assembler_name): Changed all calls to
7420 cgraph_get_node_or_alias to a call to cgraph_get_node.
7421 (cgraph_make_decl_local): Likewise.
7422 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
7423 * varasm.c (default_binds_local_p_1): Likewise.
7424 (decl_binds_to_current_def_p): Likewise.
7425
7426 2011-07-12 Jakub Jelinek <jakub@redhat.com>
7427
7428 PR tree-optimization/49712
7429 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
7430
7431 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
7432
7433 * genautomata.c (add_arc): Return void. All callers changed.
7434 (make_automaton): Remove dead code.
7435
7436 2011-07-11 Richard Henderson <rth@redhat.com>
7437
7438 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
7439 (DW_FRAME_POINTER_REGNUM): New.
7440 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
7441 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
7442 (dwf_regno): New.
7443 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
7444 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
7445 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
7446 Use it.
7447 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
7448 * dwarf2out.h (dwarf_frame_regnum): New.
7449 (struct cfa_loc): Document the domain of the reg member.
7450
7451 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
7452
7453 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
7454 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
7455
7456 2011-07-11 Jakub Jelinek <jakub@redhat.com>
7457
7458 PR debug/49676
7459 * dwarf2out.c (int_shift_loc_descriptor): New function.
7460 (int_loc_descriptor): If shorter, emit i as
7461 (i >> shift), shift, DW_OP_shl for suitable shift value.
7462 Similarly, try to optimize large negative values using
7463 DW_OP_neg of a positive value if shorter.
7464 (size_of_int_shift_loc_descriptor): New function.
7465 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
7466 changes.
7467 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
7468 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
7469 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
7470 is shorter.
7471 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
7472 addend as added DW_OP_plus if it is shorter.
7473
7474 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7475
7476 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
7477 (DTORS_SECTION_ASM_OP): Define.
7478
7479 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7480
7481 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
7482 * config/t-dfprules: Move to ../libgcc/config.
7483 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7484 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7485 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
7486 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
7487 Likewise.
7488 (i[34567]86-*-cygwin*): Likewise.
7489 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7490 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
7491 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
7492 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
7493 D64PBIT_FUNCS, D128PBIT_FUNCS.
7494
7495 2011-07-11 Richard Guenther <rguenther@suse.de>
7496
7497 * tree-vrp.c (simplify_conversion_using_ranges): Manually
7498 translate the source value-range through the conversion chain.
7499
7500 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
7501
7502 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
7503
7504 2011-07-11 Arthur Loiret <aloiret@debian.org>
7505
7506 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
7507 a bi-arch compiler defaulting to 31-bit. In this case:
7508 (tmake_file): Add s390/t-linux64.
7509 * doc/install.texi: Add s390-linux to the list of targets supporting
7510 --enable-targets=all.
7511
7512 2011-07-11 Arthur Loiret <aloiret@debian.org>
7513 Matthias Klose <doko@debian.org>
7514
7515 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
7516 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
7517 (tm_file): Add mips/linux64.h.
7518 (tmake_file): Add mips/t-linux64.
7519 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7520 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
7521 instead of hardcoded mabi=n32.
7522 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7523 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7524 convention.
7525
7526 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7527
7528 * passes.c (init_optimization_passes): Add invariant motion pass
7529 after induction variable optimization.
7530
7531 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
7532
7533 PR target/39633
7534 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
7535 offsets 1..5 set cc0 in a usable way.
7536
7537 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
7538
7539 * tree.h (call_expr_arg): Remove.
7540 (call_expr_argp): Likewise.
7541
7542 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
7543
7544 * config/sparc/sparc.md (save_register_window_1): Rename to...
7545 (window_save): ...this.
7546 * config/sparc/sparc.c (emit_save_register_window): Rename to...
7547 (emit_window_save): ...this.
7548 (sparc_expand_prologue): Adjust to above renaming.
7549
7550 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7551
7552 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
7553 of movabs for x32.
7554
7555 2011-07-10 Richard Henderson <rth@redhat.com>
7556
7557 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7558 run final, instead of emitting text directly.
7559
7560 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7561
7562 * config/i386/i386.c (ix86_option_override_internal): Turn on
7563 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
7564 small PIC models for TARGET_X32.
7565
7566 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
7567
7568 PR target/49684
7569 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7570 $(LIBGCC2_CFLAGS).
7571
7572 PR bootstrap/49680
7573 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7574 stray notes and debug insns by using prev_nonnote_nondebug_insn
7575 instead of PREV_INSN.
7576
7577 2011-07-09 Richard Henderson <rth@redhat.com>
7578
7579 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7580 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7581 * dwarf2out.c: ... here.
7582 (output_all_cfis): Remove.
7583 (dwarf2out_switch_text_section): Use output_cfis directly.
7584 (size_of_locs): Export.
7585 (output_loc_sequence, output_loc_sequence_raw): Export.
7586 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7587 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7588 output_cfa_loc_raw): Move to ...
7589 * dwarfcfi.c: ... here.
7590 * dwarf2out.h: Update decls.
7591
7592 2011-07-09 Richard Henderson <rth@redhat.com>
7593
7594 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7595 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7596 * dwarf2cfi.c: ... here.
7597 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7598 (DWARF_ROUND, DWARF_CIE_ID): Remove.
7599 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7600 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7601 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7602
7603 2011-07-09 Richard Henderson <rth@redhat.com>
7604
7605 * dwarf2cfi.c (cie_return_save): New.
7606 (queue_reg_save): Use compare_reg_or_pc.
7607 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7608 (dwarf2out_frame_debug_expr): Likewise.
7609 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7610 (initial_return_save): Likewise.
7611 (execute_dwarf2_frame): Save and restore initial return save from
7612 the cie to the fde.
7613 * config/mips/mips.c (mips_frame_set): Remove special case for
7614 DWARF_FRAME_RETURN_COLUMN.
7615
7616 2011-07-09 Richard Henderson <rth@redhat.com>
7617
7618 * dwarf2cfi.c (lookup_cfa): Remove.
7619 (execute_dwarf2_frame): Assert queues are empty on entry.
7620 Setup initial cfa directly, not via lookup_cfa.
7621 Don't clear args_size state here.
7622
7623 2011-07-09 Richard Henderson <rth@redhat.com>
7624
7625 * dwarf2cfi.c (add_cfi_vec): New.
7626 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
7627 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
7628 (execute_dwarf2_frame): Set add_cfi_vec.
7629
7630 2011-07-09 Richard Henderson <rth@redhat.com>
7631
7632 * defaults.h (ASM_COMMENT_START): Move here...
7633 * dwarf2asm.c: ... from here.
7634 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7635 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7636 * varasm.c: Likewise.
7637
7638 2011-07-09 Richard Henderson <rth@redhat.com>
7639
7640 PR debug/49686
7641 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7642 (create_cfi_notes): ... do it here instead.
7643
7644 2011-07-09 Jakub Jelinek <jakub@redhat.com>
7645
7646 PR debug/49676
7647 * dwarf2out.c (size_of_int_loc_descriptor): New function.
7648 (address_of_int_loc_descriptor): Use it.
7649 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7650
7651 2011-07-09 Richard Henderson <rth@redhat.com>
7652
7653 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7654 (prologue, epilogue): New.
7655 (return, *rts): New.
7656 (blockage, setd, seti): New.
7657 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7658 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7659 (pdp11_saved_regno): New.
7660 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7661 generate rtl instead of text.
7662 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7663 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
7664 * config/pdp11/pdp11-protos.h: Update.
7665
7666 2011-07-09 Richard Henderson <rth@redhat.com>
7667
7668 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7669 try to insert an rtl prologue here.
7670 (rs6000_output_function_epilogue): Similarly.
7671 * config/rs6000/rs6000.md (prologue): Emit a barrier to
7672 satisfy !TARGET_SCHED_PROLOG.
7673 (epilogue, sibcall_epilogue): Likewise.
7674
7675 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
7676
7677 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7678 (FP_REG_P): Delete.
7679 (IN_OR_GLOBAL_P): Likewise.
7680
7681 2011-07-08 Jason Merrill <jason@redhat.com>
7682
7683 PR c++/45437
7684 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7685 compound assignment.
7686
7687 * cgraph.c (cgraph_add_to_same_comdat_group): New.
7688 * cgraph.h: Declare it.
7689 * ipa.c (function_and_variable_visibility): Make sure thunks
7690 have the right visibility.
7691
7692 2011-07-08 Richard Henderson <rth@redhat.com>
7693
7694 PR bootstrap/49680
7695 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7696 any tablejump vector.
7697
7698 PR bootstrap/49680
7699 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7700 end of the prologue.
7701
7702 2011-07-08 Jakub Jelinek <jakub@redhat.com>
7703
7704 PR target/49621
7705 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7706 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7707 * config/rs6000/vector.md (vector_select_<mode>,
7708 vector_select_<mode>_uns): Change second operand of NE to
7709 CONST0_RTX (<MODE>mode) instead of const0_rtx.
7710 * config/rs6000/altivec.md (*altivec_vsel<mode>,
7711 *altivec_vsel<mode>_uns): Expect second operand of NE to be
7712 zero_constant of the corresponding vector mode.
7713 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7714 Likewise.
7715
7716 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
7717
7718 * graphite-dependences.c (build_alias_set_powerset): Remove
7719 continue from loop, add one more assert.
7720
7721 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
7722
7723 PR target/46779
7724 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7725 In particular, allow 8-bit values in r28 and r29.
7726 (avr_hard_regno_scratch_ok): Disallow any register that might be
7727 part of the frame pointer.
7728 (avr_hard_regno_rename_ok): Same.
7729 (avr_legitimate_address_p): Don't allow SUBREGs.
7730
7731 2011-07-08 Julian Brown <julian@codesourcery.com>
7732
7733 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7734 big-endian mode.
7735 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7736 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7737 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7738 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7739 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7740 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7741 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7742 registers in big-endian mode.
7743
7744 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
7745
7746 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7747 in terms of another.
7748 (write_attr_value): Write a cast if necessary.
7749
7750 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7751 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7752 (REG_WORDS_BIG_ENDIAN): Document.
7753 * doc/tm.texi: Regenerate.
7754 * reload.c (operands_match_p): Take it into account.
7755 (reload_adjust_reg_for_mode): Likewise.
7756 * rtlanal.c (subreg_get_info): Likewise.
7757
7758 2011-07-08 Richard Guenther <rguenther@suse.de>
7759
7760 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7761 folding.
7762
7763 2011-07-08 Kai Tietz <ktietz@redhat.com>
7764
7765 * fold-const.c (fold_truth_andor): Factored out truth_andor
7766 label from fold_binary as function.
7767 (fold_binary_loc): Replace truth_andor lable
7768 by function fold_truth_andor.
7769
7770 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
7771
7772 PR middle-end/49519
7773 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7774 check if address is stored in register. If so - give up.
7775 (check_sibcall_argument_overlap_1): Do not perform check of
7776 overlapping when it is call to address.
7777
7778 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
7779
7780 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
7781 of magic '31'.
7782
7783 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
7784
7785 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
7786 GET_MODE_BITSIZE where appropriate.
7787 (widen_leading, expand_parity, expand_ctz, expand_ffs,
7788 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
7789 expand_float, expand_fix): Likewise.
7790 * expr.c (convert_move, convert_modes, expand_expr_real_2,
7791 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7792 * stor-layout.c (get_mode_bounds): Likewise.
7793 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
7794 Likewise.
7795 * convert.c (convert_to_integer): Likewise.
7796 * expmed.c (expand_shift_1): Likewise.
7797
7798 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
7799 a bitsize.
7800
7801 * optabs.c (expand_binop): Tighten conditions for doubleword
7802 expansions.
7803 (widen_bswap): Assert that mode bitsize and precision are the same.
7804 * stor-layout.c (get_best_mode): Skip modes that have lower
7805 precision than bitsize.
7806 * recog.c (simplify_while_replacing): Assert that bitsize and
7807 precision are the same.
7808
7809 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7810
7811 * Makefile.in (LIBGCOV): Remove.
7812 (libgcc.mvars): Remove LIBGCOV.
7813 * libgov.c: Move to ../libgcc.
7814
7815 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7816
7817 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
7818
7819 2011-07-08 Martin Jambor <mjambor@suse.cz>
7820
7821 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
7822 is too big for total scalarization.
7823
7824 2011-07-07 Richard Henderson <rth@redhat.com>
7825
7826 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
7827 (DBX_DEBUGGING_INFO): Undef.
7828
7829 2011-07-07 Richard Henderson <rth@redhat.com>
7830
7831 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
7832 Handle some opcodes specially for debugging.
7833 * print-rtl.c: Include dwarf2out.h
7834 (print_rtx): Handle NOTE_INSN_CFI.
7835 * Makefile.in (print-rtl.o): Update.
7836
7837 2011-07-07 Richard Henderson <rth@redhat.com>
7838
7839 * tree-pass.h (pass_dwarf2_frame): Declare.
7840 * passes.c (init_optimization_passes): Add it.
7841 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
7842 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
7843 make static, do not call add_cfis_to_fde.
7844 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7845 dwarf2out_frame_init): Merge into...
7846 (execute_dwarf2_frame): ... here. New function.
7847 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
7848 saved_do_cfi_asm to a tri-state variable.
7849 (gate_dwarf2_frame, pass_dwarf2_frame): New.
7850 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7851 if it has yet to be done. Don't call dwarf2cfi_function_init.
7852 * dwarf2out.h, debug.h: Update decls.
7853 * final.c (final_start_function): Don't call
7854 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7855 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7856 * toplev.c (lang_dependent_init): Likewise.
7857
7858 2011-07-07 Richard Henderson <rth@redhat.com>
7859
7860 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7861 FDE_TABLE_INCREMENT): Replace with...
7862 (fde_vec): ... this, a new vector.
7863 (current_fde): Remove. Replace all users with cfun->fde.
7864 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7865 (size_of_aranges, dwarf2out_finish): Likewise.
7866 (dwarf2out_alloc_current_fde): Break out from ...
7867 (dwarf2out_begin_prologue): ... here.
7868 (dwarf2out_frame_init): Remove.
7869 * dwarf2cfi.c: Update all users of current_fde.
7870 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7871 * dwarf2out.h: Update decls.
7872 (dw_fde_node): Add fde_index member.
7873 * function.h (struct function): Add fde member.
7874
7875 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7876 Richard Henderson <rth@redhat.com>
7877
7878 * dwarf2cfi.c (add_cfi): Remove.
7879 (dwarf2out_cfi_label): Remove force argument. Only generate the
7880 label name.
7881 (add_fde_cfi): Simplify the different code paths.
7882 (add_cie_cfi): New.
7883 (old_cfa, old_cfa_remember): New.
7884 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7885 (last_reg_save_label): Remove.
7886 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7887 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7888 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7889 dwarf2out_frame_debug_cfa_expression,
7890 dwarf2out_frame_debug_cfa_restore,
7891 dwarf2out_frame_debug_cfa_window_save,
7892 dwarf2out_frame_debug_expr): Remove label parameter.
7893 (cfi_label_required_p, add_cfis_to_fde): New.
7894 (dwarf2out_frame_debug_after_prologue): New.
7895 (dwarf2cfi_frame_init): Initialize old_cfa.
7896 (dwarf2out_frame_debug_restore_state): Likewise.
7897 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7898 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7899 * final.c (final_start_function): Call
7900 dwarf2out_frame_debug_after_prologue.
7901
7902 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7903 Richard Henderson <rth@redhat.com>
7904
7905 * dwarf2cfi.c (cfi_insn): New.
7906 (dwarf2out_cfi_label): Don't emit cfi label here.
7907 (add_fde_cfi): Create a NOTE_INSN_CFI.
7908 (dwarf2out_frame_debug): Setup cfi_insn.
7909 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7910 (dwarf2out_cfi_begin_epilogue): Make static.
7911 (dwarf2out_frame_debug_restore_state): Make static.
7912 * dwarf2out.c (output_cfi_directive): Make static.
7913 (dwarf2out_emit_cfi): New.
7914 * dwarf2out.h: Update.
7915 * final.c (final): Remove CFI notes.
7916 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7917 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7918 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7919 * insn-notes.def (NOTE_INSN_CFI): New.
7920 (NOTE_INSN_CFI_LABEL): New.
7921 * rtl.h (union rtunion_def): Add rt_cfi member.
7922 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7923
7924 2011-07-07 Richard Henderson <rth@redhat.com>
7925
7926 * dwarf2cfi.c: New file.
7927 * Makefile.in (OBJS): Add it.
7928 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7929 * gengtype.c (open_base_files): Include dwarf2out.h.
7930 * coretypes.h (enum var_init_status): Move from ...
7931 * rtl.h: ... here.
7932 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7933 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7934 expand_builtin_dwarf_sp_column, init_return_column_size,
7935 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7936 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7937 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7938 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7939 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7940 compute_barrier_args_size, dwarf2out_args_size,
7941 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7942 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7943 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7944 queue_reg_save, dwarf2out_flush_queued_reg_saves,
7945 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7946 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7947 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7948 dwarf2out_frame_debug_cfa_expression,
7949 dwarf2out_frame_debug_cfa_restore,
7950 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7951 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7952 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7953 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7954 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7955 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7956 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7957 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7958 dw_loc_descr_node): Move to dwarf2out.h.
7959 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7960 mem_loc_descriptor): Export.
7961 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
7962 (dwarf2out_frame_init): Extract CIE generation code to
7963 dwarf2cfi_frame_init.
7964
7965 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
7966
7967 PR target/49660
7968 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7969 MASK_V8PLUS, remove commented out flag and reorder.
7970
7971 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7972
7973 PR c/49644
7974 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7975 one non-complex and one complex argument, call c_save_expr on both
7976 operands.
7977
7978 2011-07-07 Martin Jambor <mjambor@suse.cz>
7979
7980 PR middle-end/49495
7981 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7982 (verify_cgraph_node): Some functinality moved to
7983 verify_edge_corresponds_to_fndecl, call it.
7984
7985 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7986
7987 * config.gcc (*local*): Remove.
7988 * doc/install-old.texi: Don't mention local configurations.
7989
7990 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7991
7992 PR debug/49522
7993 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7994 referencing debug insns that have been reset.
7995 (dead_debug_insert_before): Don't assert reg is non-NULL,
7996 instead return immediately if it is NULL.
7997
7998 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7999
8000 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
8001
8002 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8003
8004 * hw-doloop.c: New file.
8005 * hw-doloop.h: New file.
8006 * Makefile.in (OBJS): Add hw-doloop.o.
8007 (hw-doloop.o): New rule.
8008 ($(obj_out_file)): Add hw-doloop.h dependency.
8009 * config/bfin/bfin.c: Include "hw-doloop.h".
8010 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
8011 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
8012 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
8013 type changed to hwloop_info. Return bool, true if the loop was
8014 successfully optimized. Remove code that was moved to
8015 hw-doloop.c, and adjust other parts.
8016 (hwloop_fail): New static function, containing parts that used
8017 to be in bfin_optimize_loop.
8018 (bfin_discover_loop, bfin_discover_loops, free_loops,
8019 bfin_reorder_loops): Remove.
8020 (hwloop_pattern_reg): New static function.
8021 (bfin_doloop_hooks): New variable.
8022 (bfin_reorg_loops): Remove most code, call reorg_loops.
8023 * config/bfin/bfin.md (doloop_end splitter): Also enable if
8024 loop counter is a memory_operand.
8025
8026 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
8027
8028 * config.gcc: Support --with-multilib-list for x86 Linux targets.
8029
8030 * configure.ac: Mention x86-64 for --with-multilib-list.
8031 * configure: Regenerated.
8032
8033 * config/i386/gnu-user64.h (SPEC_64): Support x32.
8034 (SPEC_32): Likewise.
8035 (ASM_SPEC): Likewise.
8036 (LINK_SPEC): Likewise.
8037 (TARGET_THREAD_SSP_OFFSET): Likewise.
8038 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
8039 (SPEC_X32): New.
8040
8041 * config/i386/i386.h (TARGET_X32): New.
8042 (TARGET_LP64): New.
8043 (LONG_TYPE_SIZE): Likewise.
8044 (POINTER_SIZE): Likewise.
8045 (POINTERS_EXTEND_UNSIGNED): Likewise.
8046 (OPT_ARCH64): Support x32.
8047 (OPT_ARCH32): Likewise.
8048
8049 * config/i386/i386.opt (mx32): New.
8050
8051 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
8052 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8053 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
8054 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8055
8056 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
8057 (BIONIC_DYNAMIC_LINKERX32): Likewise.
8058 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
8059
8060 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
8061
8062 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
8063
8064 * doc/invoke.texi: Document -mx32.
8065
8066 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8067
8068 * doc/invoke.texi (mwords-little-endian): Deprecate.
8069 * config/arm/arm.opt (mwords-little-endian): Likewise.
8070 * config/arm/arm.c (arm_option_override): Warn about the deprecation
8071 of -mwords-little-endian.
8072
8073 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8074
8075 * reload1.c (choose_reload_regs): Use mode sizes to check whether
8076 an old reload register completely defines the required value.
8077
8078 2011-07-07 Richard Guenther <rguenther@suse.de>
8079
8080 * fold-const.c (fold_unary_loc): Do not strip sign-changes
8081 for NEGATE_EXPR.
8082
8083 2011-07-07 Richard Guenther <rguenther@suse.de>
8084
8085 * tree-vrp.c (simplify_conversion_using_ranges): New function.
8086 (simplify_stmt_using_ranges): Call it.
8087
8088 2011-07-07 Kai Tietz <ktietz@redhat.com>
8089
8090 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
8091 (lookup_logical_inverted_value): Likewise.
8092 (simplify_bitwise_binary_1): Likewise.
8093 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
8094
8095 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8096
8097 * gcc.c (%[Spec]): Don't document.
8098 (struct spec_list): Update comment.
8099 (do_spec_1): Don't handle %[Spec].
8100 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
8101
8102 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8103
8104 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
8105 default based on TARGET_ASM_NAMED_SECTION.
8106 * common/common-target.def (have_named_sections): Default to true.
8107 * common/config/default-common.c: Don't include tm.h.
8108 * common/config/picochip/picochip-common.c
8109 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
8110 * common/config/m32c/m32c-common.c: Remove.
8111 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
8112 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8113 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8114 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8115 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8116 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8117 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8118
8119 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8120
8121 PR middle-end/49640
8122 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
8123 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
8124
8125 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8126
8127 PR libmudflap/49550
8128 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
8129
8130 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8131
8132 PR target/39150
8133 * configure.ac (gcc_cv_as_hidden): Also accept
8134 x86_64-*-solaris2.1[0-9]*.
8135 (gcc_cv_as_cfi_directive): Likewise.
8136 (gcc_cv_as_comdat_group_group): Likewise.
8137 (set_have_as_tls): Likewise.
8138 * configure: Regenerate.
8139 * config.gcc (i[34567]86-*-solaris2*): Also handle
8140 x86_64-*-solaris2.1[0-9]*.
8141 * config.host (i[34567]86-*-solaris2*): Likewise.
8142 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
8143 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
8144 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
8145 (TARGET_LD_EMULATION): Use it.
8146 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
8147 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
8148 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
8149 (ASM_CPU64_DEFAULT_SPEC): Define.
8150 (ASM_CPU_SPEC): Use %(asm_cpu_default).
8151 (ASM_SPEC): Redefine.
8152 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
8153 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
8154 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
8155 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
8156 configuration.
8157 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
8158
8159 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8160
8161 * config/sol2.h (ASM_SPEC): Split into ...
8162 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
8163 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
8164 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
8165 (ASM_SPEC): Use ASM_SPEC_BASE.
8166 * config/sparc/sol2.h (ASM_SPEC): Redefine.
8167
8168 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
8169
8170 * config/avr/avr.md (*reload_insi): Change predicate #1 to
8171 const_int_operand. Ditto for peep2 producing this insn.
8172 Add argument to output_reload_insisf call.
8173 (*movsi,*movsf): Add argument to output_movsisf call.
8174 (*reload_insf): New insn and new peep2 to produce it.
8175 * config/avr/avr-protos.h (output_movsisf): Change prototype.
8176 (output_reload_insisf): Change prototype.
8177 * config/avr/avr.c (avr_asm_len): New function.
8178 (output_reload_insisf): Rewrite.
8179 (output_movsisf): Change prototype. output_reload_insisf for
8180 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
8181 (adjust_insn_length): Add argument to output_movsisf and
8182 output_reload_insisf call.
8183
8184 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8185
8186 * emit-rtl.c (paradoxical_subreg_p): New function.
8187 * rtl.h (paradoxical_subreg_p): Declare.
8188 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
8189 apply_distributive_law, simplify_comparison, simplify_set): Use it.
8190 * cse.c (record_jump_cond, cse_insn): Likewise.
8191 * expr.c (force_operand): Likewise.
8192 * rtlanal.c (num_sign_bit_copies1): Likewise.
8193 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
8194 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
8195 (push_reload): Use precision to check for paradoxical subregs.
8196 * expmed.c (extract_bit_field_1): Likewise.
8197
8198 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
8199 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
8200 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
8201 simplify_set, simplify_logical, expand_compound_operation,
8202 make_extraction, force_to_mode, if_then_else_cond, extended_count,
8203 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
8204 record_value_for_reg): Likewise.
8205 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
8206 * simplify-rtx. c (simplify_unary_operation_1,
8207 simplify_binary_operation_1, simplify_const_relational_operation):
8208 Likewise.
8209
8210 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
8211 instead of GET_MODE_BITSIZE where appropriate.
8212 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
8213 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
8214 init_num_sign_bit_copies_in_rep): Likewise.
8215 * cse.c (fold_rtx, cse_insn): Likewise.
8216 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
8217 * simplify-rtx.c (simplify_unary_operation_1,
8218 simplify_const_unary_operation, simplify_binary_operation_1,
8219 simplify_const_binary_operation, simplify_ternary_operation,
8220 simplify_const_relational_operation, simplify_subreg): Likewise.
8221 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
8222 simplify_if_then_else, simplify_set, expand_compound_operation,
8223 expand_field_assignment, make_extraction, if_then_else_cond,
8224 make_compound_operation, force_to_mode, make_field_assignment,
8225 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
8226 extended_count, try_widen_shift_mode, simplify_shift_const_1,
8227 simplify_comparison, record_promoted_value, simplify_compare_const,
8228 record_dead_and_set_regs_1): Likewise.
8229
8230 Revert:
8231 * simplify-rtx.c (simplify_const_binary_operation): Use the
8232 shift_truncation_mask hook instead of performing modulo by width.
8233 Compare against mode precision, not bitsize.
8234 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8235 Use shift_truncation_mask instead of constructing the value manually.
8236
8237 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8238
8239 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
8240 declaration.
8241 (rs6000_save_toc_in_prologue_p): Ditto.
8242
8243 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
8244 up the static chain (r11) during indirect function calls.
8245 (-msave-toc-indirect): New undocumented debug switch.
8246
8247 * config/rs6000/rs6000.c (struct machine_function): Add
8248 save_toc_in_prologue field to note whether the prologue needs to
8249 save the TOC value in the reserved stack location.
8250 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
8251 to save the TOC in the prologue, do so.
8252 (rs6000_trampoline_init): Don't allow creating AIX style
8253 trampolines if -mno-r11 is in effect.
8254 (rs6000_call_indirect_aix): New function to create AIX style
8255 indirect calls, adding support for -mno-r11 to suppress loading
8256 the static chain, and saving the TOC in the prologue instead of
8257 the call body.
8258 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8259 TOC in the prologue.
8260
8261 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8262 register numbers.
8263 (TOC_REGNUM): Ditto.
8264 (STATIC_CHAIN_REGNUM): Ditto.
8265 (ARG_POINTER_REGNUM): Ditto.
8266 (SFP_REGNO): Delete, unused.
8267 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8268 function descriptor offsets.
8269 (TOC_SAVE_OFFSET_64BIT): Ditto.
8270 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8271 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8272 (AIX_FUNC_DESC_SC_32BIT): Ditto.
8273 (AIX_FUNC_DESC_SC_64BIT): Ditto.
8274 (ptrload): New mode attribute for the appropriate load of a pointer.
8275 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8276 (call_indirect_aix64): Ditto.
8277 (call_value_indirect_aix32): Ditto.
8278 (call_value_indirect_aix64): Ditto.
8279 (call_indirect_nonlocal_aix32_internal): Ditto.
8280 (call_indirect_nonlocal_aix32): Ditto.
8281 (call_indirect_nonlocal_aix64_internal): Ditto.
8282 (call_indirect_nonlocal_aix64): Ditto.
8283 (call): Rewrite AIX indirect function calls. Add support for
8284 eliminating the static chain, and for moving the save of the TOC
8285 to the function prologue.
8286 (call_value): Ditto.
8287 (call_indirect_aix<ptrsize>): Ditto.
8288 (call_indirect_aix<ptrsize>_internal): Ditto.
8289 (call_indirect_aix<ptrsize>_internal2): Ditto.
8290 (call_indirect_aix<ptrsize>_nor11): Ditto.
8291 (call_value_indirect_aix<ptrsize>): Ditto.
8292 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8293 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8294 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8295 (call_nonlocal_aix32): Relocate in the rs6000.md file.
8296 (call_nonlocal_aix64): Ditto.
8297
8298 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8299 -mno-r11 documentation.
8300
8301 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8302
8303 PR other/49658
8304 * doc/extend.texi (Compound Literals): Fix typo.
8305
8306 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
8307
8308 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8309
8310 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
8311
8312 * configure.ac (plugin-version.h): Generate
8313 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8314 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8315 macros.
8316
8317 * configure: Regenerate.
8318
8319 * doc/plugins.texi (Building GCC plugins): Mention
8320 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8321
8322 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8323
8324 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8325 * combine.c (make_extraction, gen_lowpart_or_truncate,
8326 apply_distributive_law, simplify_comparison,
8327 reg_truncated_to_mode, record_truncated_value): Use it.
8328 * cse.c (notreg_cost): Likewise.
8329 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8330 * expr.c (convert_move, convert_modes): Likewise.
8331 * optabs.c (expand_binop, expand_unop): Likewise.
8332 * postreload.c (move2add_last_label): Likewise.
8333 * regmove.c (optimize_reg_copy_3): Likewise.
8334 * rtlhooks.c (gen_lowpart_general): Likewise.
8335 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8336
8337 2011-07-06 Joseph Myers <joseph@codesourcery.com>
8338
8339 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
8340
8341 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8342
8343 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
8344 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
8345 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
8346 (simplify_const_unary_operation, simplify_binary_operation_1,
8347 simplify_const_binary_operation, simplify_const_relational_operation):
8348 Use them. Use GET_MODE_MASK for masking and sign-extensions.
8349 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
8350 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
8351 simplify_shift_const_1, simplify_comparison): Likewise.
8352 * expr.c (convert_modes): Likewise.
8353 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
8354 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
8355 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
8356
8357 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
8358
8359 2011-07-06 Richard Guenther <rguenther@suse.de>
8360
8361 PR tree-optimization/49645
8362 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
8363 register variables.
8364 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
8365 in type qualification here ...
8366 (copy_reference_ops_from_ref): ... not here.
8367 (vn_reference_lookup_3): ... or here.
8368 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
8369 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
8370
8371 2011-07-06 Ian Lance Taylor <iant@google.com>
8372
8373 * doc/install.texi (Configuration): It's
8374 --enable-gnu-indirect-function, not --enable-indirect-function.
8375
8376 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8377
8378 * simplify-rtx.c (simplify_const_binary_operation): Use the
8379 shift_truncation_mask hook instead of performing modulo by width.
8380 Compare against mode precision, not bitsize.
8381 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8382 Use shift_truncation_mask instead of constructing the value manually.
8383
8384 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
8385
8386 PR middle-end/47383
8387 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
8388 address computation and convert to address_mode if needed.
8389
8390 2011-07-06 Richard Guenther <rguenther@suse.de>
8391
8392 * tree.c (build_common_tree_nodes_2): Merge with
8393 build_common_tree_nodes.
8394 * tree.h (build_common_tree_nodes): Adjust prototype.
8395 (build_common_tree_nodes_2): Remove.
8396 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8397 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
8398
8399 2011-07-05 Jakub Jelinek <jakub@redhat.com>
8400
8401 PR tree-optimization/49618
8402 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
8403 t recurse on the decl.
8404 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
8405 return true if expr isn't known to be defined in current
8406 TU or some other LTO partition.
8407
8408 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8409
8410 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
8411 override CASE_VALUES_THRESHOLD.
8412
8413 * stmt.c (toplevel): Include params.h.
8414 (case_values_threshold): Use the --param case-values-threshold
8415 value if non-zero, otherwise use machine dependent value.
8416 (expand_case): Use case_values_threshold.
8417
8418 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
8419
8420 * doc/invoke.texi (--param case-values-threshold): Document.
8421
8422 2011-07-05 Richard Henderson <rth@redhat.com>
8423
8424 * dwarf2out.c (dwarf2out_cfi_label): Make static.
8425 (dwarf2out_flush_queued_reg_saves): Make static.
8426 (dwarf2out_reg_save): Remove.
8427 (dwarf2out_return_save): Remove.
8428 (dwarf2out_return_reg): Remove.
8429 (dwarf2out_reg_save_reg): Remove.
8430 (dwarf2out_def_cfa): Merge into ...
8431 (dwarf2out_frame_init): ... here.
8432 * dwarf2out.h, tree.h: Remove declarations as necessary.
8433
8434 2011-07-05 Richard Henderson <rth@redhat.com>
8435
8436 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
8437 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8438 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
8439 the alloc insn.
8440
8441 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
8442 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
8443 (process_epilogue): Don't call dwarf2out_def_cfa.
8444
8445 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
8446 indicate the return address save.
8447 (process_cfa_register): Likewise.
8448
8449 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
8450 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
8451
8452 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
8453 for ar.pfs save at alloc insn.
8454
8455 2011-07-05 Richard Henderson <rth@redhat.com>
8456
8457 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
8458 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8459 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
8460 stack pointer save.
8461 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
8462 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
8463 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
8464 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
8465
8466 2011-07-05 Richard Henderson <rth@redhat.com>
8467
8468 * config/vax/vax.md (define_c_enum unspecv): New. Define the
8469 VUNSPEC_* constants here instead of via define_constants.
8470 (VUNSPEC_PEM): New constant.
8471 (procedure_entry_mask): New insn.
8472 (prologue): New expander.
8473 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
8474 (vax_expand_prologue): Rename from vax_output_function_prologue;
8475 emit rtl instead of text.
8476 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8477 (print_operand): Add 'x' prefix.
8478
8479 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8480
8481 PR middle-end/47715
8482 * calls.c (precompute_register_parameters): Promote the function
8483 argument before checking non-legitimate constant.
8484
8485 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8486
8487 PR tree-optimization/47654
8488 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
8489 (lst_do_strip_mine_loop): Return an int.
8490 (lst_do_strip_mine): Same.
8491 (scop_do_strip_mine): Same.
8492 (scop_do_block): Loop blocking should strip-mine at least two loops.
8493 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
8494 (scop_do_interchange): Same.
8495 * graphite-poly.h (scop_do_interchange): Update declaration.
8496 (scop_do_strip_mine): Same.
8497
8498 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8499
8500 * graphite-clast-to-gimple.c (precision_for_value): Removed.
8501 (precision_for_interval): Removed.
8502 (gcc_type_for_interval): Use mpz_sizeinbase.
8503
8504 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8505
8506 * graphite-ppl.h (value_max): Correct computation of max.
8507
8508 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8509
8510 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
8511
8512 2011-07-05 Richard Guenther <rguenther@suse.de>
8513
8514 * c-decl.c (c_init_decl_processing): Defer building common
8515 tree nodes to c_common_nodes_and_builtins.
8516
8517 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
8518
8519 PR tree-optimization/49580
8520 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
8521 the loop's number of iterations.
8522 * tree-parloops.c (transform_to_exit_first_loop): Add the
8523 handling of the loop's number of iterations before the call
8524 to gimple_duplicate_sese_tail.
8525 Insert the stmt caclculating the new rhs of the loop's
8526 condition stmt to the preheader instead of iters_bb.
8527
8528 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8529
8530 PR rtl-optimization/47449
8531 * fwprop.c (forward_propagate_subreg): Don't propagate hard
8532 register nor zero/sign extended hard register.
8533
8534 2011-07-05 Richard Guenther <rguenther@suse.de>
8535
8536 PR tree-optimization/49518
8537 PR tree-optimization/49628
8538 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
8539 irrelevant and invariant data-references.
8540 (vect_analyze_data_ref_access): For invariant loads clear the
8541 group association.
8542
8543 2011-07-04 Jakub Jelinek <jakub@redhat.com>
8544
8545 PR rtl-optimization/49619
8546 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
8547 pass VOIDmode as op0_mode to recursive call, and return temp even
8548 when different from tor, just if it is not IOR of the original
8549 PLUS arguments.
8550
8551 PR rtl-optimization/49472
8552 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
8553 negating MULT, negate the second operand instead of first.
8554 (simplify_binary_operation_1) <case MULT>: If one operand is
8555 a NEG and the other is MULT, don't attempt to optimize by negation
8556 of the MULT operand if it only moves the NEG operation around.
8557
8558 PR debug/49602
8559 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8560 get_current_def return value if it can't be trusted to be
8561 the current value of the variable in the current bb.
8562
8563 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
8564
8565 PR target/49600
8566 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8567 general register to memory for !TARGET_INTER_UNIT_MOVES.
8568
8569 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8570
8571 PR target/44643
8572 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8573 instead of TREE_READONLY.
8574
8575 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8576
8577 * doc/extend.texi (AVR Built-in Functions): Update documentation
8578 of __builtin_avr_fmul*.
8579 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8580 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8581 * config/avr/avr.md (fmul): Rename to fmul_insn.
8582 (fmuls): Rename to fmuls_insn.
8583 (fmulsu): Rename to fmulsu_insn.
8584 (fmul,fmuls,fmulsu): New expander.
8585 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8586 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8587 * config/avr/libgcc.S (__fmul): New function.
8588 (__fmuls): New function.
8589 (__fmulsu,__fmulsu_exit): New function.
8590
8591 2011-07-04 Richard Guenther <rguenther@suse.de>
8592
8593 PR tree-optimization/49615
8594 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8595 basic-block index check.
8596
8597 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8598
8599 * longlong.h (count_leading_zeros, count_trailing_zeros,
8600 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8601 resp. 64.
8602
8603 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
8604
8605 PR tree-optimization/49610
8606 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8607 a basic block.
8608
8609 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
8610 Olivier Hainque <hainque@adacore.com>
8611 Nicolas Setton <setton@adacore.com>
8612
8613 * tree.h (TYPE_ARTIFICIAL): New flag.
8614 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8615 the DIE of the type if it is artificial.
8616 (gen_array_type_die): Likewise.
8617 (gen_enumeration_type_die): Likewise.
8618 (gen_struct_or_union_type_die): Likewise.
8619 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8620 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8621
8622 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8623
8624 * tree-object-size.c (pass_through_call): Handle
8625 BUILT_IN_ASSUME_ALIGNED.
8626
8627 2011-07-01 Martin Jambor <mjambor@suse.cz>
8628
8629 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8630
8631 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
8632
8633 PR middle-end/48016
8634 * explow.c (update_nonlocal_goto_save_area): Use proper mode
8635 for stack save area.
8636 * function.c (expand_function_start): Likewise.
8637
8638 2011-07-01 Richard Guenther <rguenther@suse.de>
8639
8640 PR middle-end/49596
8641 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8642 may have unknown refs.
8643
8644 2011-07-01 Kai Tietz <ktietz@redhat.com>
8645
8646 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8647
8648 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8649
8650 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8651 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8652 (Specific, mips-sgi-irix6): Likewise.
8653
8654 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8655
8656 PR libmudflap/49549
8657 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8658
8659 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8660
8661 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8662 [idx]= and [idx1 ... idx2]= before initializers if needed for
8663 array initializers.
8664
8665 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
8666
8667 * config.gcc (score-*-elf): Remove score7.o.
8668 * config/score/t-score-elf: Likewise.
8669 * config/score/score.c: Merge score7 to score.c and
8670 remove forwarding functions.
8671 * config/score/score7.c: Deleted.
8672 * config/score/score7.h: Deleted.
8673
8674 2011-07-01 Richard Guenther <rguenther@suse.de>
8675
8676 PR tree-optimization/49603
8677 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8678
8679 2011-06-30 Martin Jambor <mjambor@suse.cz>
8680
8681 * tree-sra.c (struct access): Rename total_scalarization to
8682 grp_total_scalarization
8683 (completely_scalarize_var): New function.
8684 (sort_and_splice_var_accesses): Set total_scalarization in the
8685 representative access.
8686 (analyze_access_subtree): Propagate total scalarization accross the
8687 tree, no holes in totally scalarized trees, simplify coverage
8688 computation.
8689 (analyze_all_variable_accesses): Call completely_scalarize_var instead
8690 of completely_scalarize_record.
8691
8692 2011-06-30 Richard Henderson <rth@redhat.com>
8693
8694 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8695 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8696 * config/i386/i386.c: Don't include dwarf2out.h.
8697 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8698 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8699 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
8700 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8701 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8702
8703 2011-06-30 Richard Henderson <rth@redhat.com>
8704
8705 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8706 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8707 * final.c (final_scan_insn): Look for it, and invoke
8708 dwarf2out_frame_debug before the insn if found.
8709
8710 2011-06-30 Richard Henderson <rth@redhat.com>
8711
8712 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8713 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8714
8715 2011-06-30 Richard Henderson <rth@redhat.com>
8716
8717 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8718 Define a vector of this type.
8719 (regs_saved_in_regs): Use a VEC.
8720 (num_regs_saved_in_regs): Remove.
8721 (compare_reg_or_pc): New.
8722 (record_reg_saved_in_reg): Split out from...
8723 (dwarf2out_flush_queued_reg_saves): ... here.
8724 (clobbers_queued_reg_save): Update for VEC.
8725 (reg_saved_in): Likewise.
8726 (dwarf2out_frame_debug_init): Likewise.
8727 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8728 (dwarf2out_frame_debug_cfa_register): Likewise.
8729
8730 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8731
8732 PR tree-optimization/49572
8733 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8734 type of the RHS instead of that of the LHS for the expression type.
8735
8736 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8737
8738 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8739 unconditionally.
8740
8741 2011-06-30 Richard Guenther <rguenther@suse.de>
8742
8743 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8744 * tree-ssa-structalias.c (create_variable_info_for): Do not
8745 add initial constraints for non-var-decls. Properly handle
8746 globals in other ltrans partitions.
8747 (intra_create_variable_infos): Manually create constraints for
8748 the fake no-alias parameter.
8749 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8750 and assert there are no clones.
8751
8752 2011-06-30 Richard Guenther <rguenther@suse.de>
8753
8754 PR tree-optimization/46787
8755 * tree-data-ref.c (dr_address_invariant_p): Remove.
8756 (find_data_references_in_stmt): Invariant accesses are ok now.
8757 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8758 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8759 invariant loads.
8760
8761 2011-06-30 Martin Jambor <mjambor@suse.cz>
8762
8763 PR tree-optimization/49094
8764 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8765 (build_accesses_from_assign): Use it.
8766
8767 2011-06-30 Jakub Jelinek <jakub@redhat.com>
8768
8769 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8770 handling of BUILT_IN_ASSUME_ALIGNED.
8771
8772 PR debug/49364
8773 * dwarf2out.c (output_abbrev_section): Don't return early
8774 if abbrev_die_table_in_use is 1.
8775 (dwarf2out_finish): Instead don't call output_abbrev_section
8776 nor emit abbrev_section_label in that case.
8777
8778 2011-06-30 Nick Clifton <nickc@redhat.com>
8779
8780 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
8781 for the V850E.
8782
8783 2011-06-30 Jakub Jelinek <jakub@redhat.com>
8784
8785 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8786 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
8787
8788 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
8789
8790 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8791 both pattern and original statements if necessary.
8792 (vect_transform_loop): Likewise.
8793 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
8794 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
8795 Mark the pattern statement only if the original statement doesn't
8796 have its own uses.
8797 (process_use): Call vect_mark_relevant with additional parameter.
8798 (vect_mark_stmts_to_be_vectorized): Likewise.
8799 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
8800 (vect_analyze_stmt): Handle both pattern and original statements
8801 if necessary.
8802 (vect_transform_stmt): Don't store vectorized pattern statement
8803 in the original statement.
8804 (vect_is_simple_use_1): Use related pattern statement only if the
8805 original statement is irrelevant.
8806 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8807
8808 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
8809
8810 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
8811 option.
8812 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
8813 entry.
8814 (TARGET_AVX128_OPTIMAL): New definition.
8815 * config/i386/i386.c (initial_ix86_tune_features): Initialize
8816 X86_TUNE_AVX128_OPTIMAL entry.
8817 (ix86_option_override_internal): Enable the generation
8818 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
8819 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
8820 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
8821
8822 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
8823
8824 PR tree-optimization/49539
8825 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
8826 names by means of stmt_references_abnormal_ssa_name.
8827 (associate_plusminus): Call can_propagate_from before propagating
8828 from definition statements.
8829 (ssa_forward_propagate_and_combine): Remove superfluous newline.
8830
8831 2011-06-29 Richard Guenther <rguenther@suse.de>
8832
8833 * doc/invoke.texi: Document -scev dump modifier.
8834 * tree-pass.h (TDF_SCEV): New dump flag.
8835 * tree-dump.c (dump_option_value_in): Add scev.
8836 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
8837 * tree-scalar-evolution.c: Likewise.
8838
8839 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
8840
8841 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
8842 (cxa_type_match): Correct declaration.
8843 (__gnu_unwind_pr_common): Reconstruct additional indirection
8844 when __cxa_type_match returns succeeded_with_ptr_to_base.
8845
8846 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8847
8848 PR rtl-optimization/49114
8849 * reload.c (struct replacement): Remove SUBREG_LOC member.
8850 (push_reload): Do not set it.
8851 (push_replacement): Likewise.
8852 (subst_reload): Remove dead code.
8853 (copy_replacements): Remove assertion.
8854 (copy_replacements_1): Do not handle SUBREG_LOC.
8855 (move_replacements): Likewise.
8856 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
8857 Detect subregs via recursive descent instead of via SUBREG_LOC.
8858
8859 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8860
8861 * config/avr/avr.c (avr_encode_section_info): Dispatch to
8862 default_encode_section_info.
8863
8864 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
8865
8866 PR tree-optimization/49545
8867 * builtins.c (get_object_alignment_1): Update function comment.
8868 Do not use DECL_ALIGN for functions, but test
8869 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8870 * fold-const.c (get_pointer_modulus_and_residue): Don't check
8871 for functions here.
8872 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8873
8874 2011-06-29 Jakub Jelinek <jakub@redhat.com>
8875
8876 PR debug/49567
8877 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8878 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8879
8880 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8881
8882 PR target/34734
8883 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8884 about uninitialized data attributed 'progmem' from here...
8885 (avr_encode_section_info): ...to this new function.
8886 (TARGET_ENCODE_SECTION_INFO): New define.
8887 (avr_section_type_flags): For data in ".progmem.data", remove
8888 section flag SECTION_WRITE.
8889
8890 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8891
8892 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8893 _xmulhisi3_exit.
8894 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8895 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
8896 (__umulhisi3): Ditto.
8897 * config/avr/avr.md (mulhisi3): New insn expender.
8898 (umulhisi3): New insn expender.
8899 (*mulhisi3_call): New insn.
8900 (*umulhisi3_call): New insn.
8901
8902 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8903
8904 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8905
8906 2011-06-28 Richard Henderson <rth@redhat.com>
8907
8908 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
8909 all code and arguments that handled pushes. Update all callers.
8910
8911 2011-06-28 Richard Henderson <rth@redhat.com>
8912
8913 * config/arm/arm.c (arm_output_function_prologue): Don't call
8914 thumb1_output_function_prologue.
8915 (arm_expand_prologue): Avoid dead store.
8916 (number_of_first_bit_set): Use ctz_hwi.
8917 (thumb1_emit_multi_reg_push): New.
8918 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8919 to emit the entire prologue as rtl.
8920 (thumb1_output_interwork): Split out from
8921 thumb1_output_function_prologue.
8922 (thumb1_output_function_prologue): Remove.
8923 (arm_attr_length_push_multi): Handle thumb1.
8924 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8925 (prologue_thumb1_interwork): New.
8926 (*push_multi): Allow thumb1; use push_mult_memory_operand.
8927 * config/arm/predicates.md (push_mult_memory_operand): New.
8928
8929 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
8930
8931 * config/sparc/sync.md (*stbar): Delete.
8932 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8933
8934 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
8935
8936 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8937
8938 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8939
8940 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8941 (TARGET_64BIT_DEFAULT): Define.
8942 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8943 of tm_file.
8944 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8945
8946 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8947
8948 * common.opt (in_lto_p): New Variable entry.
8949 * flags.h (in_lto_p): Move to common.opt.
8950 * gcc.c: Include params.h.
8951 (set_option_handlers): Also use common_handle_option and
8952 target_handle_option.
8953 (main): Call global_init_params, finish_params and init_options_struct.
8954 * opts.c (debug_type_names): Move from toplev.c.
8955 (print_filtered_help): Access quiet_flag through opts pointer.
8956 (common_handle_option): Return early in the driver for some options.
8957 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8958 opts pointer.
8959 * toplev.c (in_lto_p): Move to common.opt.
8960 (debug_type_names): Move to opts.c.
8961 * Makefile.in (OBJS): Remove opts.o.
8962 (OBJS-libcommon-target): Add opts.o.
8963 (gcc.o): Update dependencies.
8964
8965 2011-06-28 Kai Tietz <ktietz@redhat.com>
8966
8967 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8968
8969 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8970
8971 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8972 with '=' constraint modifier.
8973 (*divdf3_vfp): Likewise.
8974 ("*mulsf3_vfp"): Likewise.
8975 ("*muldf3_vfp"): Likewise.
8976 ("*mulsf3negsf_vfp"): Likewise.
8977 ("*muldf3negdf_vfp"): Likewise.
8978
8979 2011-06-28 Nick Clifton <nickc@redhat.com>
8980
8981 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8982 relaxation when performing an incremental link.
8983
8984 2011-06-28 Kai Tietz <ktietz@redhat.com>
8985
8986 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8987 within BB from last to first.
8988
8989 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8990
8991 * genattr-common.c: New. Based on genattr.c.
8992 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8993 (MOSTLYCLEANFILES): Add insn-attr-common.h.
8994 (opts.o): Update dependencies.
8995 (.PRECIOUS): Add insn-attr-common.h.
8996 (simple_rtl_generated_h): Add insn-attr-common.h.
8997 (build/genattr-common.o): New.
8998 (genprogrtl): Add attr-common.
8999 * genattr.c (main): Include insn-attr-common.h. Don't generate
9000 definitions of DELAY_SLOTS or INSN_SCHEDULING.
9001 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
9002
9003 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
9004
9005 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
9006 avr-*-* and avr-*-rtems* targets.
9007
9008 * config/avr/elf.h: New file.
9009 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
9010 (TARGET_ASM_SELECT_SECTION): Define.
9011 (INIT_SECTION_ASM_OP): Undefine.
9012 (FINI_SECTION_ASM_OP): Undefine.
9013 (READONLY_DATA_SECTION_ASM_OP): Undefine.
9014 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
9015 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
9016 * config/avr/avr.h:
9017 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
9018 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
9019 (MAX_OFILE_ALIGNMENT): Move to elf.h.
9020 (STRING_LIMIT): Move to elf.h.
9021 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
9022 (ASM_DECLARE_OBJECT_NAME): Remove.
9023 (ESCAPES): Remove.
9024 (ASM_OUTPUT_SKIP): Remove.
9025 (DWARF2_DEBUGGING_INFO): Remove.
9026 (OBJECT_FORMAT_ELF): Remove.
9027 (USER_LABEL_PREFIX): Remove.
9028 (ASM_OUTPUT_EXTERNAL): Remove.
9029 (ASM_OUTPUT_ASCII): Remove.
9030 (TYPE_ASM_OP): Remove.
9031 (SIZE_ASM_OP): Remove.
9032 (WEAK_ASM_OP): Remove.
9033 (STRING_ASM_OP): Remove.
9034 (SET_ASM_OP): Remove.
9035 (ASM_WEAKEN_LABEL): Remove.
9036 (TYPE_OPERAND_FMT): Remove.
9037 (ASM_DECLARE_FUNCTION_SIZE): Remove.
9038 (ASM_FINISH_DECLARE_OBJECT): Remove.
9039 (NO_DOLLAR_IN_LABEL): Remove.
9040 (ASM_GENERATE_INTERNAL_LABEL): Remove.
9041 (ASM_OUTPUT_CASE_LABEL): Remove.
9042 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
9043 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
9044 (gas_output_ascii): Remove.
9045 (gas_output_limited_string): Remove.
9046 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9047 * config/avr/avr-protos.h
9048 (gas_output_ascii): Remove prototye.
9049 (gas_output_limited_string): Remove prototype.
9050
9051 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
9052
9053 PR target/48637
9054 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
9055 asm operands.
9056
9057 2011-06-27 Jan Hubicka <jh@suse.cz>
9058
9059 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
9060 node instead of references in node.
9061
9062 2011-06-27 Richard Henderson <rth@redhat.com>
9063
9064 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
9065 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
9066 inside ifdef.
9067
9068 2011-06-27 Jakub Jelinek <jakub@redhat.com>
9069
9070 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
9071
9072 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
9073 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
9074 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
9075 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
9076 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
9077 (evaluate_stmt, execute_fold_all_builtins): Handle
9078 BUILT_IN_ASSUME_ALIGNED.
9079 * tree-ssa-dce.c (propagate_necessity): Likewise.
9080 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9081 call_may_clobber_ref_p_1): Likewise.
9082 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
9083 (expand_builtin_assume_aligned): New function.
9084 * doc/extend.texi (__builtin_assume_aligned): Document.
9085
9086 PR debug/49544
9087 * cselib.c (promote_debug_loc): If cselib_preserve_constants
9088 and l has two DEBUG_INSN owned locs instead of just one, adjust
9089 the second location's setting_insn too.
9090
9091 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9092
9093 PR libmudflap/38738
9094 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
9095
9096 2011-06-27 Nick Clifton <nickc@redhat.com>
9097
9098 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
9099 bit position of highest bit set into a count of the high zero bits.
9100
9101 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9102
9103 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
9104
9105 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9106
9107 PR lto/48492
9108 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
9109 to a NULL parent.
9110
9111 2011-06-27 Richard Guenther <rguenther@suse.de>
9112
9113 PR tree-optimization/49394
9114 * passes.c (execute_one_pass): Restore current_pass after
9115 applying IPA transforms.
9116
9117 2011-06-27 Kai Tietz <ktietz@redhat.com>
9118
9119 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
9120 out of type precision after operation.
9121 (find_bswap): Take for limit value the integer auto-promotion
9122 into account.
9123
9124 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9125
9126 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
9127 forward scan as well.
9128
9129 2011-06-27 Tristan Gingold <gingold@adacore.com>
9130
9131 PR target/44241
9132 * config/vms/vms-protos.h: New file.
9133 * config/vms/vms-crtlmap.map: New file.
9134 * config/vms/vms.c: New file.
9135 * config/vms/make-crtlmap.awk: New file.
9136 * config/vms/vms-crtl.h: File removed.
9137 * config/vms/vms-crtl-64.h: File removed.
9138 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
9139 * config/alpha/vms64.h: Do not include vms-crtl-64.h
9140 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
9141 clear some builtins on VMS. Calls vms_patch_builtins.
9142 (avms_asm_output_external): Remove.
9143 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
9144 (struct crtl_name_spec): Remove
9145 (DO_CTRL_NAMES): Remove.
9146 * config/ia64/vms.h (struct crtl_name_spec): Remove
9147 (DO_CTRL_NAMES): Remove.
9148 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
9149 clear some builtins on VMS. Calls vms_patch_builtins.
9150 (ia64_asm_output_external): Remove DO_CRTL_NAME.
9151 * config/ia64/vms64.h: Do not include vms-crtl-64.h
9152 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
9153
9154 2011-06-27 Tristan Gingold <gingold@adacore.com>
9155
9156 * config/alpha/alpha.c (alpha_end_function): Always generate .end
9157 directive on VMS.
9158
9159 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9160
9161 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
9162 the function receives nonlocal gotos.
9163
9164 2011-06-27 Richard Guenther <rguenther@suse.de>
9165
9166 PR tree-optimization/49536
9167 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
9168 For non-scalar inner types use a scalar type according to
9169 the scalar inner mode.
9170
9171 2011-06-27 Richard Guenther <rguenther@suse.de>
9172
9173 PR tree-optimization/49365
9174 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
9175
9176 2011-06-27 Richard Guenther <rguenther@suse.de>
9177
9178 PR tree-optimization/49169
9179 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
9180 the alignment of function decls.
9181
9182 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
9183
9184 PR target/47997
9185 * config/darwin.c (darwin_mergeable_string_section): Place string
9186 constants in '.cstring' rather than '.const' when CF/NSStrings are
9187 active.
9188
9189 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
9190
9191 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
9192 (emit_save_register_window): Likewise.
9193 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
9194 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
9195 Swap back %o7/%i7 in register naming.
9196
9197 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
9198
9199 PR driver/49371
9200 * config/darwin.c (darwin_override_options): Improve warning when
9201 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
9202 is given with fpie/fPIE.
9203 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
9204 * config/darwin9.h (PIE_SPEC): New.
9205
9206 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
9207
9208 * timevar.c (timevar_print): Increase width for display of timevar
9209 name.
9210
9211 2011-06-24 Jakub Jelinek <jakub@redhat.com>
9212
9213 PR c++/46400
9214 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
9215 instead of TYPE_CHAIN for chain_next for types.
9216
9217 2011-06-24 Richard Henderson <rth@redhat.com>
9218
9219 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
9220 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
9221 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
9222 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
9223 (sparc_flat_expand_prologue): Emit individual instructions
9224 instead of one of the above.
9225
9226 2011-06-24 Easwaran Raman <eraman@google.com>
9227
9228 PR rtl-optimization/49429
9229 PR target/49454
9230 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
9231 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
9232 used to copy y into x.
9233 * calls.c (initialize_argument_information): Mark
9234 an argument addressable if it is passed by invisible reference.
9235 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
9236 if it is passed by reference.
9237
9238 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
9239
9240 PR rtl-optimization/49504
9241 * rtlanal.c (nonzero_bits1): Properly handle addition or
9242 subtraction of a pointer in Pmode if pointers extend unsigned.
9243 (num_sign_bit_copies1): Likewise.
9244
9245 2011-06-24 Martin Jambor <mjambor@suse.cz>
9246
9247 PR tree-optimizations/49516
9248 * tree-sra.c (sra_modify_assign): Choose the safe path for
9249 aggregate copies if we also did scalar replacements.
9250
9251 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9252
9253 PR target/49335
9254 * config/arm/predicates.md (add_operator): New.
9255 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9256
9257 2011-06-24 Andi Kleen <ak@linux.intel.com>
9258
9259 * tree-sra.c (type_internals_preclude_sra_p): Add msg
9260 parameter. Split up ifs and report reason in *msg.
9261 (reject): Add.
9262 (find_var_candiate): Add msg variable.
9263 Split up ifs and report reason to reject.
9264 (find_param_candidates): Add msg variable.
9265 Pass msg to type_internals_preclude_sra_p.
9266
9267 2011-06-23 Jeff Law <law@redhat.com>
9268
9269 PR middle-end/48770
9270 * reload.h (reload): Change to return a bool.
9271 * ira.c (ira): If requested by reload, run a fast DCE pass after
9272 reload has completed. Fix comment typo.
9273 * reload1.c (need_dce): New file scoped static.
9274 (reload): Set reload_completed here. Return whether or not a DCE
9275 pass after reload is needed.
9276 (delete_dead_insn): Set need_dce as needed.
9277
9278 PR middle-end/49465
9279 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9280 to detect threading through joiner block. If there was already
9281 an edge to the new target, then do not change the PHI nodes.
9282
9283 2011-06-23 Jakub Jelinek <jakub@redhat.com>
9284
9285 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9286 get_pointer_alignment to see if base isn't sufficiently aligned.
9287
9288 2011-06-23 Jan Hubicka <jh@suse.cz>
9289
9290 PR tree-optimize/49373
9291 * tree-pass.h (all_late_ipa_passes): Declare.
9292 * cgraphunit.c (init_lowered_empty_function): Fix properties.
9293 (cgraph_optimize): Execute late passes; remove unreachable funcions
9294 after materialization.
9295 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9296 LTOing.
9297 * passes.c (all_late_ipa_passes): Declare.
9298 (dump_passes, register_pass): Handle late ipa passes.
9299 (init_optimization_passes): Move ipa_pta to late passes; schedule
9300 fixup_cfg at beggining of all_passes.
9301 (apply_ipa_transforms): New function.
9302 (execute_one_pass): When doing simple ipa pass, apply all transforms.
9303
9304 2011-06-23 Joseph Myers <joseph@codesourcery.com>
9305
9306 * params.c: Include common/common-target.h. Don't include tm.h.
9307 (lang_independent_params): Move from toplev.c.
9308 (global_init_params): New.
9309 * params.h (global_init_params): Declare.
9310 * target.def (default_params): Move to common-target.def.
9311 * toplev.c (lang_independent_options): Remove.
9312 (lang_independent_params): Move to params.c.
9313 (general_init): Use global_init_params.
9314 * common/common-target.def (option_default_params): Move from
9315 target.def.
9316 * common/config/ia64/ia64-common.c: Include params.h.
9317 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9318 from ia64.c.
9319 * common/config/rs6000/rs6000-common.c: Include params.h.
9320 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9321 from rs6000.c.
9322 * common/config/sh/sh-common.c: Include params.h.
9323 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9324 from sh.c.
9325 * common/config/spu/spu-common.c: Include params.h.
9326 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9327 from spu.c.
9328 * config/ia64/ia64.c (ia64_option_default_params,
9329 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
9330 * config/rs6000/rs6000.c (rs6000_option_default_params,
9331 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
9332 * config/sh/sh.c (sh_option_default_params,
9333 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
9334 * config/spu/spu.c (spu_option_default_params,
9335 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
9336 * Makefile.in (OBJS): Remove params.o.
9337 (OBJS-libcommon-target): Add params.o.
9338 (params.o, $(common_out_object_file)): Update dependencies.
9339 * doc/tm.texi: Regenerate.
9340
9341 2011-06-23 Alan Modra <amodra@gmail.com>
9342
9343 PR bootstrap/49383
9344 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
9345 invocation for 2011-06-09 changes.
9346
9347 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9348
9349 PR libgomp/49490
9350 * omp-low.c (expand_omp_for_static_nochunk): Only
9351 use n ceil/ nthreads size for the first n % nthreads threads in the
9352 team instead of all threads except for the last few ones which
9353 get less work or none at all.
9354
9355 PR debug/49496
9356 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
9357 uses.
9358
9359 2011-06-22 Richard Guenther <rguenther@suse.de>
9360
9361 PR tree-optimization/49493
9362 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
9363 Refer to the alias target of variables.
9364 (associate_varinfo_to_alias_1): Remove.
9365 (ipa_pta_execute): Do not associate aliases with anything.
9366 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
9367 (cgraph_function_node): Likewise.
9368 (cgraph_function_or_thunk_node): Likewise.
9369 (varpool_variable_node): Likewise.
9370
9371 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9372
9373 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
9374 * config.gcc (arm*-*-linux*): Default to gnu tls.
9375 (arm*-*-*): Add --with-tls option.
9376 (all_defaults): Add 'tls'.
9377
9378 2011-06-22 Richard Henderson <rth@redhat.com>
9379
9380 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
9381 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9382 (dwarf2out_frame_debug_cfa_window_save): Rename from
9383 dwarf2out_window_save; make static.
9384 * tree.h (dwarf2out_window_save): Don't declare.
9385
9386 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
9387 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9388 (emit_save_register_window): Rename from gen_save_register_window;
9389 emit the insn and add REG_CFA_* notes.
9390 (sparc_expand_prologue): Update to match.
9391 * config/sparc/sparc.md (save_register_window_1): Simplify from
9392 save_register_window<P:mode>.
9393
9394 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
9395
9396 PR target/49497
9397 * config/i386/i386.md (*lea_general_2): Always allow SImode.
9398 (*lea_general_2_zext): Likewise.
9399 (imul to lea peepholes): Use const359_operand and check
9400 TARGET_PARTIAL_REG_STALL.
9401
9402 * config/i386/predicates.md (const359_operand): New.
9403
9404 2011-06-22 Michael Matz <matz@suse.de>
9405
9406 * cgraphunit.c (assemble_thunk): Use correct return type.
9407
9408 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
9409 Dmitry Melnik <dm@ispras.ru>
9410
9411 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
9412 (neon_output_shift_immediate): Ditto.
9413 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
9414 prototype.
9415 (neon_output_shift_immediate): Ditto.
9416 * config/arm/neon.md (vashl<mode>3): Modified constraint.
9417 (vashr<mode>3_imm): New insn pattern.
9418 (vlshr<mode>3_imm): Ditto.
9419 (vashr<mode>3): Modified constraint.
9420 (vlshr<mode>3): Ditto.
9421 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
9422 predicate.
9423 (imm_for_neon_rshift_operand): Ditto.
9424 (imm_lshift_or_reg_neon): Ditto.
9425 (imm_rshift_or_reg_neon): Ditto.
9426
9427 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
9428
9429 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9430
9431 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
9432 builtin calls even if likelyvalue is not CONSTANT.
9433 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
9434 Return get_value_for_expr of first operand
9435 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
9436 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9437 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
9438 their non-checking counterparts.
9439 (call_may_clobber_ref_p_1): Likewise.
9440 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
9441 like their non-checking counterparts.
9442 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9443 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
9444 like their non-checking counterparts.
9445 (find_func_clobbers): Likewise.
9446 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
9447 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
9448
9449 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
9450 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
9451 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
9452 of base type reference as argument.
9453 (resolve_addr_in_expr): Likewise. Fix keep computation.
9454 (convert_descriptor_to_signed): Renamed to...
9455 (convert_descriptor_to_mode): ... this. For wider types convert to
9456 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
9457 (typed_binop): New function.
9458 (scompare_loc_descriptor, ucompare_loc_descriptor,
9459 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
9460 default to unsigned type instead of signed.
9461
9462 PR debug/47858
9463 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
9464 (gimple_build_debug_source_bind_stat): New prototype.
9465 (gimple_build_debug_source_bind): Define.
9466 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
9467 gimple_debug_source_bind_get_value,
9468 gimple_debug_source_bind_get_value_ptr,
9469 gimple_debug_source_bind_set_var,
9470 gimple_debug_source_bind_set_value): New inlines.
9471 * gimple.c (gimple_build_debug_source_bind_stat): New function.
9472 * gimple-pretty-print.c (dump_gimple_debug): Handle
9473 GIMPLE_DEBUG_SOURCE_BIND.
9474 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
9475 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9476 * tree-parloops.c (eliminate_local_variables,
9477 separate_decls_in_region): Likewise.
9478 (separate_decls_in_region_debug): Renamed from
9479 separate_decls_in_region_debug_bind. Handle
9480 gimple_debug_source_bind_p.
9481 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
9482 prototypes.
9483 (DECL_HAS_DEBUG_ARGS_P): Define.
9484 (struct tree_function_decl): Add has_debug_args_flag field.
9485 * tree.c (debug_args_for_decl): New variable.
9486 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
9487 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
9488 (rewrite_debug_stmt_uses): New function.
9489 (rewrite_stmt): Use it to rewrite debug stmt uses.
9490 * rtl.def (DEBUG_PARAMETER_REF): New.
9491 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
9492 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
9493 DEBUG_PARAMETER_REF.
9494 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
9495 * print-rtl.c (print_rtx): Likewise.
9496 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
9497 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
9498 debug stmts in the first bb.
9499 * tree-inline.c (remap_ssa_name): If remapping default def
9500 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
9501 a source bind debug stmt.
9502 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
9503 (maybe_move_debug_stmts_to_successors): Likewise.
9504 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
9505 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
9506 debug args vector from old_decl to new_decl.
9507 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
9508 or modified parameters, add debug bind stmts before call
9509 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
9510 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
9511 on DECL_DEBUG_EXPRs from debug args vector.
9512 (expand_debug_source_expr): New function.
9513 (expand_debug_locations): Use it for source bind insns.
9514 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
9515 * var-tracking.c (prepare_call_arguments): Add debug args
9516 to call_arguments if any.
9517 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
9518 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
9519 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
9520 (get_ref_die_offset, parameter_ref_descriptor): New functions.
9521 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
9522 (gen_subprogram_die): Handle parameters identified by
9523 DEBUG_PARAMETER_REF.
9524
9525 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9526
9527 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
9528 * doc/install.texi (Configuration): Document --with-tls.
9529 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
9530 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
9531 (arm_tls_descseq_addr): New.
9532 (legitimize_tls_address): Add tlsdesc support.
9533 (arm_cannot_copy_insn_p): Check for tlscall.
9534 (arm_emit_tls_decoration): Likewise.
9535 * config/arm/arm.h (TARGET_GNU2_TLS): New.
9536 (OPTION_DEFAULT_SPECS): Add with-tls support.
9537 * config/arm/arm.md (R1_REGNUM): Define.
9538 (tlscall): New.
9539 * config/arm/arm.opt (tls_type): New enumeration type and values.
9540 (mtls-dialect): New switch.
9541 * config/arm/arm-opts.h (enum tls_type): New.
9542
9543 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
9544
9545 * attribs.c (register_attribute): Added assert to check that all
9546 attribute specs are registered with a name that is not empty and
9547 does not start with '_'.
9548 (decl_attributes): Avoid the lookup of the "naked" attribute spec
9549 if the function has no attributes.
9550 * tree.c (is_attribute_with_length_p): Removed.
9551 (is_attribute_p): Removed.
9552 (private_is_attribute_p): New.
9553 (private_lookup_attribute): New.
9554 (lookup_attribute): Removed.
9555 (lookup_ident_attribute): New.
9556 (remove_attribute): Require the first argument to be in the form
9557 'text', not '__text__'. Updated asserts.
9558 (merge_attributes): Use lookup_ident_attributes instead of
9559 lookup_attribute.
9560 (merge_dllimport_decl_attributes): Use remove_attribute.
9561 (attribute_list_contained): Likewise.
9562 (attribute_list_equal): Immediately return 1 if the arguments are
9563 identical pointers.
9564 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
9565 'int'. Require the first argument to be in the form 'text', not
9566 '__text__'. Require the second argument to be an identifier.
9567 (lookup_attribute): Made inline. Require the first argument to be
9568 in the form 'text', not '__text__'.
9569 (private_is_attribute_p, private_lookup_attribute): New.
9570 Updated comments.
9571
9572 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
9573
9574 * builtins.c: Add sync_ or SYNC__ to builtin names.
9575 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9576 * omp-low.c: Add sync_ or SYNC__ to builtin names.
9577
9578 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9579
9580 PR target/33049
9581 * config/avr/avr.md (extzv): New expander.
9582 (*extzv): New insn.
9583 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9584 * config/avr/constraints.md (C04): New constraint.
9585 * doc/md.texi (Machine Constraints): Document it.
9586
9587 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9588
9589 PR middle-end/49489
9590 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9591 unsignedp argument instead of 1 for clrsb_optab.
9592 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9593 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
9594 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9595 * optabs.c (widen_leading): Call widen_operand and expand_unop
9596 with 0 as unsignedp argument instead of 1 for clrsb_optab.
9597 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9598
9599 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9600
9601 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9602
9603 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
9604
9605 * gensupport.c (add_define_attr): New static function.
9606 (is_predicable): Allow multi-alternative lists for the "predicable"
9607 attribute.
9608 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9609 (process_one_cond_exec): Call alter_attrs_for_insn.
9610 * doc/md.texi (Defining Attributes): Mention some standard names.
9611 (Conditional Execution): Update documentation for "predicable".
9612
9613 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9614 __builtin_clrsbll): Document.
9615 * doc/rtl.texi (clrsb): New entry.
9616 * optabs.c (widen_leading): Renamed from widen_clz. New argument
9617 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
9618 (expand_unop): Handle clrsb_optab.
9619 (init_optabs): Initialize it.
9620 * optabs.h (enum optab_index): New entry OTI_clrsb.
9621 (clrsb_optab): Define.
9622 * genopinit.c (optabs): Add an entry for it.
9623 * builtins.c (expand_builtin): Handle clrsb builtin functions.
9624 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9625 BUILT_IN_CLRSBLL): New.
9626 * rtl.def (CLRSB): New code.
9627 * dwarf2out.c (mem_loc_descriptor): Handle it.
9628 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9629 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9630 and popcount.
9631 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9632 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9633 (__ctzDI2): Move declaration.
9634 * config/bfin/bfin.md (clrsbsi2): New expander.
9635 (signbitssi2): Use the CLRSB rtx.
9636 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
9637 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9638
9639 2011-06-21 Richard Guenther <rguenther@suse.de>
9640
9641 * ipa-inline-transform.c (inline_transform): Fix previous change.
9642
9643 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
9644
9645 PR tree-optimization/49478
9646 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9647 with constant operand.
9648
9649 2011-06-21 Richard Guenther <rguenther@suse.de>
9650
9651 * ipa-inline-transform.c (inline_transform): Fix typo.
9652
9653 2011-06-21 Richard Guenther <rguenther@suse.de>
9654
9655 PR tree-optimization/49483
9656 * tree-vect-stmts.c (vectorizable_assignment): Also handle
9657 VIEW_CONVERT_EXPR conversions.
9658
9659 2011-06-21 Joseph Myers <joseph@codesourcery.com>
9660
9661 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9662 * config/avr/avr-tables.opt: New file (generated).
9663 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9664 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9665 avr-mcus.def.
9666 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9667 (avr_option_override): Don't process -mmcu= argument here. Set
9668 avr_current_device using avr_mcu_index.
9669 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9670 * config/avr/avr.opt (mmcu=): Use Enum.
9671 * config/avr/t-avr (avr-devices.o): Update dependencies.
9672 ($(srcdir)/config/avr/avr-tables.opt): New.
9673 * target.def (help): Remove.
9674 * doc/tm.texi.in (TARGET_HELP): Remove.
9675 * doc/tm.texi: Regenerate.
9676 * opts.c: Don't include target.h.
9677 (common_handle_option): Don't call targetm.help.
9678 * system.h (TARGET_HELP): Poison.
9679 * Makefile.in (opts.o): Update dependencies.
9680
9681 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9682
9683 * config/usegld.h: New file.
9684 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9685 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9686 (LIB_SPEC): Likewise. Search /lib.
9687 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9688 (RDYNAMIC_SPEC): Handle GNU ld.
9689 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9690 Define.
9691 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9692 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9693 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9694 (STACK_CHECK_STATIC_BUILTIN): Define.
9695 * config/sol2.opt (compat-bsd): Remove.
9696 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9697 * config/sol2-bi.h: New file.
9698 * config/sol2-gld.h: Remove.
9699 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9700 (NO_DBX_BNSYM_ENSYM): Remove.
9701 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9702 (STACK_CHECK_STATIC_BUILTIN): Remove.
9703 Test USE_GLD instead of TARGET_GNU_LD.
9704 * config/i386/sol2-10.h: Rename to ...
9705 * config/i386/sol2-bi.h .. this.
9706 (SUBTARGET_EXTRA_SPECS): Redefine.
9707 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9708 (MULTILIB_DEFAULTS): Remove.
9709 (DEFAULT_ARCH32_P): Define.
9710 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9711 (ARCH64_SUBDIR): Define.
9712 Test USE_GLD instead of TARGET_GNU_LD.
9713 (I386_EMULATION): Rename to ...
9714 (ARCH32_EMULATION): ... this.
9715 (X86_64_EMULATION): Rename to ...
9716 (ARCH64_EMULATION): ... this.
9717 (TARGET_LD_EMULATION): Remove.
9718 (LINK_ARCH_SPEC): Remove.
9719 * config/i386/sol2-gas.h: Remove.
9720 * config/i386/t-sol2-10: Rename to ...
9721 * config/i386/t-sol2-64: ... this.
9722 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9723 (AS_SPARC64_FLAG): Define.
9724 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9725 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9726 depending on TARGET_CPU_DEFAULT.
9727 (CPP_CPU_SPEC): Redefine.
9728 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9729 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9730 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9731 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9732 ASM_ARCH_DEFAULT_SPEC): Redefine.
9733 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9734 LINK_ARCH_DEFAULT_SPEC.
9735 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9736 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9737 (ARCH64_SUBDIR): Define.
9738 (LINK_ARCH64_SPEC): Redefine.
9739 (CC1_SPEC): Redefine.
9740 (OPTION_DEFAULT_SPECS): Redefine.
9741 (MULTILIB_DEFAULTS): Define.
9742 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9743 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9744 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9745 (NO_DBX_BNSYM_ENSYM): Remove.
9746 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9747 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9748 (TARGET_ASM_NAMED_SECTION): Likewise.
9749 (STACK_CHECK_STATIC_BUILTIN): Remove.
9750 * config/sparc/sol2-bi.h: Remove.
9751 * config/sparc/sol2-gas-bi.h: Remove.
9752 * config/sparc/sol2-gas.h: Remove.
9753 * config/sparc/sol2-gld-bi.h: Remove.
9754 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9755 common parts ...
9756 (*-*-solaris2*): ... here.
9757
9758 2011-06-21 Christian Bruel <christian.bruel@st.com>
9759
9760 PR other/43564
9761 * ipa-inline.c (can_inline_edge_p): Check
9762 !DECL_DISREGARD_INLINE_LIMITS.
9763
9764 2011-06-21 Christian Bruel <christian.bruel@st.com>
9765
9766 PR middle-end/49139
9767 * cgraphunit.c (process_function_and_variable_attributes): warn when
9768 always_inline functions that are not inline.
9769 * ipa-inline-transform.c (inline_transform): Always call
9770 optimize_inline.
9771 * tree-inline.c (tree_inlinable_function_p): Use error instead
9772 of sorry.
9773 (expand_call_inline): Likewise.
9774
9775 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9776
9777 * Makefile.in (dg_target_exps): Set.
9778 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9779 instead of 7, try to divide it more evenly.
9780
9781 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
9782
9783 PR target/49089
9784 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
9785 (avx256_split_unaligned_store): New definition.
9786 (ix86_option_override_internal): Enable avx256 unaligned load/store
9787 splitting only when avx256_split_unaligned_load/store is set.
9788
9789 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
9790
9791 * regrename.c (scan_rtx_reg): Handle the case where we write to an
9792 open chain in a smaller mode without failing the entire block.
9793
9794 2011-06-21 Alan Modra <amodra@gmail.com>
9795
9796 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
9797 CONST high part large-toc address.
9798 (rs6000_tls_referenced_p): Make static.
9799 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
9800
9801 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9802
9803 PR target/49385
9804 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
9805 one of the operands is a register.
9806
9807 2011-06-20 Kai Tietz <ktietz@redhat.com>
9808
9809 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
9810 operations in combination with binary and.
9811
9812 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
9813
9814 * regrename.c (do_replace): Don't update notes.
9815
9816 2011-06-20 Alan Modra <amodra@gmail.com>
9817
9818 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
9819 of toc-relative address in CONST.
9820 (rs6000_delegitimize_address): Recognize changed address.
9821 (rs6000_legitimize_reload_address): Likewise.
9822 (rs6000_emit_move): Don't force these constants to memory.
9823 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
9824 toc-relative address in CONST.
9825 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9826 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9827
9828 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
9829
9830 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
9831 (count_trailing_zeros): Likewise.
9832
9833 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
9834
9835 PR other/49325
9836 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
9837 .init_array can be used with .ctors on targets.
9838 * configure: Regenerated.
9839
9840 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
9841
9842 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
9843 if the element type is volatile.
9844
9845 2011-06-18 Jan Hubicka <jh@suse.cz>
9846
9847 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9848 extra name aliases.
9849 (lto_symtab_resolve_can_prevail_p): Likewise.
9850 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9851 * cgraphbuild.c (record_reference): Remove extra body alias code.
9852 (mark_load): Likewise.
9853 (mark_store): Likewise.
9854 * cgraph.h (varpool_node): Remove extra_name filed;
9855 add alias_of and extraname_alias.
9856 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9857 (varpool_alias_aliased_node): New inline function.
9858 (varpool_variable_node): New function.
9859 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9860 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9861 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9862 (input_varpool_node): Likewise.
9863 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9864 (varpool_externally_visible_p): Remove extra body alias code.
9865 (function_and_variable_visibility): Likewise.
9866 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9867 (ipa_pta_execute): Use it.
9868 * varpool.c (varpool_remove_node): Remove extra name alias code.
9869 (varpool_mark_needed_node): Likewise.
9870 (varpool_analyze_pending_decls): Analyze aliases.
9871 (assemble_aliases): New functoin.
9872 (varpool_assemble_decl): Use it.
9873 (varpool_create_variable_alias): New function.
9874 (varpool_extra_name_alias): Rewrite.
9875 (varpool_for_node_and_aliases): New function.
9876
9877 2011-06-18 Jakub Jelinek <jakub@redhat.com>
9878
9879 PR target/49411
9880 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9881 last_arg_constant and last argument doesn't match its predicate,
9882 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9883 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9884 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9885 spelling of error message.
9886 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9887 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9888 const_0_to_255_operand instead of const_int_operand.
9889
9890 Revert:
9891 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9892
9893 * config/i386/sse.md (blendbits): Remove mode attribute.
9894 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9895 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9896 Check integer value of operand 3 in insn constraint.
9897
9898 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
9899
9900 PR rtl-optimization/48542
9901 * reload.c (find_equiv_reg): Stop looking when finding a
9902 setjmp-type call.
9903 * reload1.c (reload_as_needed): Invalidate all reload
9904 registers when crossing a setjmp-type call.
9905
9906 2011-06-16 Jeff Law <law@redhat.com>
9907
9908 * tree-ssa-threadupdate.c (struct redirection_data): New field
9909 intermediate_edge.
9910 (THREAD_TARGET2): Define.
9911 (redirection_data_eq): Also check that the intermediate edge is equal.
9912 (lookup_redirection_data): Drop useless argument. Extract the
9913 outgoing_edge and intermediate edge from E. Callers updated.
9914 (copy_phi_args, update_destination_phis): New functions.
9915 (fix_duplicate_block_edges): Likewise.
9916 (create_edge_and_update_destination_phis): Duplicate all the edges
9917 hung off e->aux. Use copy_phi_args.
9918 (create_duplicates): Use fix_duplicate_block_edges.
9919 (fixup_template_block): Likewise.
9920 (redirect_edges): If necessary, redirect the joiner block's incoming
9921 edge to the duplicate of the joiner block.
9922 (thread_block): Don't muck up loops when threading through a joiner
9923 block.
9924 (thread_through_loop_header): Handle threading through a joiner block.
9925 (mark_threaded_blocks, register_jump_thread): Likewise.
9926 * tree-flow.h (register_jump_thread): Add new argument. Callers
9927 updated.
9928 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9929 (thread_across_edge): Handle threading through a joiner block.
9930
9931 2011-06-16 Martin Jambor <mjambor@suse.cz>
9932
9933 PR tree-optimization/49343
9934 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9935 calculate offset, provide 2nd operand for the new COMPONENT_REF.
9936
9937 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
9938
9939 * config/darwin-protos.h (machopic_select_rtx_section): Move to
9940 inside RTX_CODE ifdef.
9941
9942 2011-06-16 Tom de Vries <tom@codesourcery.com>
9943
9944 PR target/45098
9945 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9946 Disallow NULL pointer for pointer arithmetic.
9947
9948 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9949
9950 PR target/49398
9951 Revert.
9952 2011-06-10 Wei Guozhi <carrot@google.com>
9953
9954 PR target/45335
9955 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9956 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9957 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9958 related peephole2.
9959 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9960 related peephole2.
9961 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9962 (arm_legitimate_ldrd_p): New prototype.
9963 (arm_output_ldrd): New prototype.
9964 * config/arm/arm.c (arm_check_ldrd_operands): New function.
9965 (arm_legitimate_ldrd_p): New function.
9966 (arm_output_ldrd): New function.
9967
9968 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
9969
9970 PR middle-end/46500
9971 * doc/tm.texi.in: Update Copyright date.
9972 * doc/tm.texi: Regenerate.
9973 * targhooks.c (default_setup_incoming_varargs): Replace
9974 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9975 (default_pretend_outgoing_varargs_named): Likewise.
9976 (hook_pass_by_reference_must_pass_in_stack): Likewise.
9977 (hook_callee_copies_named): Likewise.
9978 (default_function_arg_advance): Likewise.
9979 (default_function_arg): Likewise.
9980 (default_function_incoming_arg): Likewise.
9981 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9982 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9983 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9984 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9985 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9986 * targhooks.h (default_setup_incoming_varargs): Likewise.
9987 (default_pretend_outgoing_varargs_named): Likewise.
9988 (hook_pass_by_reference_must_pass_in_stack): Likewise.
9989 (hook_callee_copies_named): Likewise.
9990 (default_function_arg_advance): Likewise.
9991 (default_function_arg): Likewise.
9992 (default_function_incoming_arg): Likewise.
9993 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9994 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9995 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9996 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9997 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9998 * target.def (pass_by_reference): Likewise.
9999 (setup_incoming_varargs, strict_argument_naming): Likewise.
10000 (pretend_outgoing_varargs_named, callee_copies): Likewise.
10001 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
10002 (function_incoming_arg): Likewise.
10003 * target.h: Don't include "tm.h" .
10004 (cumulative_args_t): New typedef.
10005 [GCC_TM_H] (get_cumulative_args): New static inline function.
10006 [GCC_TM_H] (pack_cumulative_args): Likewise.
10007 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
10008 argument type with cumulative_args_t.
10009 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
10010 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
10011 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
10012 (frv_arg_partial_bytes, frv_function_arg): Likewise.
10013 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
10014 (frv_function_arg_1): Likewise.
10015 * config/s390/s390.c (s390_pass_by_reference): Likewise.
10016 (s390_function_arg_advance, s390_function_arg): Likewise.
10017 * config/m32c/m32c.c (m32c_function_arg): Likewise.
10018 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
10019 (m32c_strict_argument_naming): Likewise.
10020 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
10021 (spu_function_arg_advance): Likewise.
10022 (spu_setup_incoming_varargs): Likewise. Make static.
10023 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
10024 Remove prototype.
10025 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
10026 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10027 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
10028 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
10029 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
10030 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
10031 (mep_pass_by_reference, mep_function_arg): Likewise.
10032 (mep_function_arg_advance): Likewise.
10033 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10034 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
10035 (m32r_function_arg, m32r_function_arg_advance): Likewise.
10036 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
10037 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
10038 (ix86_function_arg, ix86_pass_by_reference): Likewise.
10039 (ix86_setup_incoming_varargs): Likewise.
10040 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
10041 (sh_strict_argument_naming): Likewise.
10042 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
10043 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
10044 (sh_function_arg_advance, sh_function_arg): Likewise.
10045 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
10046 (pdp11_function_arg_advance): Likewise.
10047 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
10048 Likewise.
10049 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
10050 * config/avr/avr.c (avr_function_arg): Likewise.
10051 (avr_function_arg_advance): Likewise.
10052 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
10053 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
10054 (xtensa_function_arg_1): Likewise.
10055 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
10056 Likewise.
10057 (xstormy16_function_arg): Likewise.
10058 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
10059 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
10060 (fr30_function_arg_advance): Likewise.
10061 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10062 (lm32_function_arg, lm32_function_arg_advance): Likewise.
10063 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
10064 (moxie_function_arg, moxie_function_arg_advance): Likewise.
10065 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
10066 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
10067 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
10068 (cris_function_arg, cris_function_incoming_arg): Likewise.
10069 (cris_function_arg_advance, cris_function_arg_1): Likewise.
10070 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
10071 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
10072 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
10073 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
10074 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
10075 (mn10300_arg_partial_bytes): Likewise.
10076 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
10077 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
10078 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
10079 (ia64_function_arg_1): Likewise.
10080 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
10081 (m68k_function_arg): Likewise.
10082 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
10083 (rs6000_function_arg, setup_incoming_varargs): Likewise.
10084 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
10085 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
10086 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
10087 (picochip_arg_advance): Likewise.
10088 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
10089 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
10090 (mcore_function_arg_advance): Likewise.
10091 * config/score/score.c (score_pass_by_reference): Likewise.
10092 (score_function_arg_advance): Likewise.
10093 (score_arg_partial_bytes): Likewise. Make static.
10094 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
10095 * config/arm/arm.c (arm_arg_partial_bytes): Replace
10096 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10097 (arm_function_arg, arm_function_arg_advance): Likewise.
10098 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
10099 * config/pa/pa.c (pa_pass_by_reference): Likewise.
10100 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
10101 (pa_function_arg): Likewise.
10102 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
10103 (mips_function_arg, mips_function_arg_advance): Likewise.
10104 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
10105 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
10106 * config/vax/vax.c (vax_function_arg): Likewise.
10107 (vax_function_arg_advance): Likewise.
10108 * config/h8300/h8300.c (h8300_function_arg): Likewise.
10109 (h8300_function_arg_advance): Likewise.
10110 * config/v850/v850.c (v850_pass_by_reference): Likewise.
10111 (v850_strict_argument_naming, v850_function_arg): Likewise.
10112 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
10113 (v850_setup_incoming_varargs): Likewise.
10114 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
10115 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
10116 (mmix_function_arg, mmix_pass_by_reference): Likewise.
10117 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
10118 with const void *.
10119 * config/bfin/bfin.c (setup_incoming_varargs): Replace
10120 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10121 (bfin_function_arg_advance, bfin_function_arg): Likewise.
10122 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
10123 * calls.c (emit_call_1): Change type of args_so_far to
10124 cumulative_args_t. Changed all callers.
10125 (initialize_argument_information): Likewise.
10126 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
10127 * dse.c (get_call_args): Likewise.
10128 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
10129 * function.c (pass_by_reference, reference_callee_copied): Likewise.
10130 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
10131 New member args_so_far_v. Changed all users.
10132 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
10133 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10134 * config/mips/mips.c (mips_output_args_xfer): Likewise.
10135 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10136 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10137 * config/microblaze/microblaze.c (microblaze_expand_prologue):
10138 Likewise.
10139 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
10140 m32r_pass_by_reference.
10141
10142 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
10143
10144 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
10145 argument to be a VEC of statements.
10146 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
10147 assert that pattern statements have to have their vector type set.
10148 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
10149 Change the first argument to be a VEC of statements. Update
10150 documentation.
10151 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
10152 (vect_handle_widen_mult_by_const): New function.
10153 (vect_recog_widen_mult_pattern): Change the first argument to be a
10154 VEC of statements. Update documentation. Check that the constant is
10155 INTEGER_CST. Support multiplication by a constant that fits an
10156 intermediate type - call vect_handle_widen_mult_by_const.
10157 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
10158 call. Handle additional pattern statements if necessary.
10159
10160 2011-06-16 Nick Clifton <nickc@redhat.com>
10161
10162 PR target/49427
10163 * config.gcc: Set cpu_type to v850 for any V850 architecture.
10164 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
10165 md_file, extra_modes, out_file and extra_options are these are all
10166 deduced from cpu_type.
10167
10168 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10169
10170 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
10171 truncation mask to 63.
10172
10173 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10174
10175 PR target/49313
10176 PR target/29524
10177 * longlong.h: Add AVR support:
10178 (count_leading_zeros): New macro.
10179 (count_trailing_zeros): New macro.
10180 (COUNT_LEADING_ZEROS_0): New macro.
10181 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
10182 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
10183 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
10184 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
10185 (LIB2FUNCS_EXCLUDE): Add _clz.
10186 * config/avr/libgcc.S (XCALL): Move up in file.
10187 (XJMP): New C Macro.
10188 (DEFUN): New asm macro.
10189 (ENDF): New asm macro.
10190 (__ffssi2): New function.
10191 (__ffshi2): New function.
10192 (__loop_ffsqi2): New function.
10193 (__ctzsi2): New function.
10194 (__ctzhi2): New function.
10195 (__clzdi2): New function.
10196 (__clzsi2): New function.
10197 (__clzhi2): New function.
10198 (__paritydi2): New function.
10199 (__paritysi2): New function.
10200 (__parityhi2): New function.
10201 (__parityqi2): New function.
10202 (__popcounthi2): New function.
10203 (__popcountsi2): New function.
10204 (__popcountdi2): New function.
10205 (__popcountqi2): New function.
10206 (__bswapsi2): New function.
10207 (__bswapdi2): New function.
10208 (__ashldi3): New function.
10209 (__ashrdi3): New function.
10210 (__lshrdi3): New function.
10211 Fix suspicous lines.
10212
10213 2011-06-16 Richard Guenther <rguenther@suse.de>
10214
10215 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
10216 the same as x != 0.
10217 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
10218 to (bool) X & 1.
10219 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
10220 equality compares against zero for the lower bit.
10221
10222 2011-06-16 Jakub Jelinek <jakub@redhat.com>
10223
10224 PR tree-optimization/49419
10225 * tree-vrp.c (execute_vrp): Call init_range_assertions
10226 before estimate_numbers_of_iterations, call
10227 free_number_of_iterations_estimates before calling
10228 remove_range_assertions.
10229
10230 2011-06-16 Revital Eres <revital.eres@linaro.org>
10231
10232 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
10233 (struct partial_schedule): Add rows_length field.
10234 (verify_partial_schedule): Check rows_length.
10235 (ps_insert_empty_row): Handle rows_length.
10236 (create_partial_schedule): Likewise.
10237 (free_partial_schedule): Likewise.
10238 (reset_partial_schedule): Likewise.
10239 (create_ps_insn): Remove rest_count argument.
10240 (remove_node_from_ps): Update rows_length.
10241 (add_node_to_ps): Update rows_length and call create_ps_insn
10242 without passing row_rest_count.
10243 (rotate_partial_schedule): Update rows_length.
10244
10245 2011-06-16 Revital Eres <revital.eres@linaro.org>
10246
10247 * ddg.c (add_intra_loop_mem_dep): New function.
10248 (build_intra_loop_deps): Call it.
10249
10250 2011-06-13 Jeff Law <law@redhat.com>
10251
10252 * df-problems.c (df_lr_local_compute): Manually CSE
10253 PIC_OFFSET_TABLE_REGNUM.
10254 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10255 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10256
10257 2011-06-13 Jan Hubicka <jh@suse.cz>
10258
10259 * cgraphunit.c (handle_alias_pairs): New function.
10260 (cgraph_finalize_compilation_unit): Use it.
10261 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10262 as externally visible.
10263
10264 2011-06-15 Richard Guenther <rguenther@suse.de>
10265
10266 * expr.c (expand_expr_real_2): Reduce all integral types to
10267 bitfield precision.
10268 (expand_expr_real_1): Likewise.
10269
10270 2011-06-15 Martin Jambor <mjambor@suse.cz>
10271
10272 PR tree-optimization/48613
10273 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10274 ipa_node_params_vector is NULL.
10275
10276 2011-06-15 Jakub Jelinek <jakub@redhat.com>
10277
10278 PR debug/49382
10279 * dwarf2out.c (dw_loc_list_node): Add force field.
10280 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10281 location in the list, even if it is modified before first real insn.
10282 (output_loc_list): Emit empty ranges with force flag set.
10283 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10284
10285 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
10286
10287 PR target/49349
10288 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10289 (fence_to_rewind). Use it to notice when bookkeeping will be placed
10290 above a fence. Update comments.
10291 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10292 placed just above it. Do not allow NULL place_to_insert.
10293
10294 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
10295
10296 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10297 (slpeel_tree_peel_loop_to_edge): Don't call
10298 remove_dead_stmts_from_loop.
10299 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10300 remove irrelevant pattern statements. For irrelevant statements
10301 check if it is the last statement of a detected pattern, use
10302 corresponding pattern statement instead.
10303 (destroy_loop_vec_info): No need to remove pattern statements,
10304 only free stmt_vec_info.
10305 (vect_transform_loop): For irrelevant statements check if it is
10306 the last statement of a detected pattern, use corresponding
10307 pattern statement instead.
10308 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10309 pattern statements. Set basic block for the new statement.
10310 (vect_pattern_recog): Update documentation.
10311 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10312 operands of pattern statements.
10313 (vectorizable_call): Fix printing. In case of a pattern statement
10314 use the lhs of the original statement when creating a dummy
10315 statement to replace the original call.
10316 (vect_analyze_stmt): For irrelevant statements check if it is
10317 the last statement of a detected pattern, use corresponding
10318 pattern statement instead.
10319 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10320 statements use gsi of the original statement.
10321
10322 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10323
10324 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10325 common/common-target-def.h.
10326 * target.def (default_target_flags, handle_option,
10327 supports_split_stack, optimization_table, init_struct,
10328 except_unwind_info, unwind_tables_default, have_named_sections):
10329 Move to common/common-target.def.
10330 * target.h (enum opt_levels, struct default_options): Move to
10331 common/common-target.h.
10332 * targhooks.c (default_except_unwind_info,
10333 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10334 default_target_handle_option, empty_optimization_table): Move to
10335 common/common-targhooks.c.
10336 * targhooks.h (default_except_unwind_info,
10337 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10338 default_target_handle_option, empty_optimization_table): Move to
10339 common/common-targhooks.h.
10340 * common/common-target-def.h: Include common/common-targhooks.h.
10341 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
10342 defined.
10343 * common/common-target.def (handle_option, option_init_struct,
10344 option_optimization_table, default_target_flags,
10345 except_unwind_info, supports_split_stack, unwind_tables_default,
10346 have_named_sections): Move from target.def.
10347 (HOOK_PREFIX): Undefine at end of file.
10348 * common/common-target.h: Include input.h.
10349 (enum opt_levels, struct default_options): Move from target.h.
10350 * common/common-targhooks.c, common/common-targhooks.h: New.
10351 * config.gcc (target_has_targetm_common): Default to yes.
10352 (moxie*): Set target_has_targetm_common=no.
10353 (hppa*-*-*): Don't set target_has_targetm_common=yes.
10354 * doc/tm.texi: Regenerate.
10355 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
10356 (C_TARGET_DEF_H): Add common/common-targhooks.h.
10357 (GCC_OBJS): Remove vec.o.
10358 (OBJS): Remove hooks.o and vec.o.
10359 (OBJS-libcommon-target): Add vec.o, hooks.o and
10360 common/common-targhooks.o.
10361 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
10362 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
10363 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
10364 cfglayout.o, $(out_object_file), $(common_out_object_file)):
10365 Update dependencies.
10366 (common/common-targhooks.o): New.
10367 * common/config/default-common.c: Include tm.h. Add FIXME comment.
10368 * common/config/pa/pa-common.c: Include more headers. Take
10369 copyright dates from pa.c.
10370 (pa_option_optimization_table, pa_handle_option,
10371 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
10372 TARGET_HANDLE_OPTION): Move from pa.c.
10373 * common/config/alpha/alpha-common.c,
10374 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
10375 common/config/bfin/bfin-common.c,
10376 common/config/cris/cris-common.c,
10377 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
10378 common/config/h8300/h8300-common.c,
10379 common/config/i386/i386-common.c,
10380 common/config/ia64/ia64-common.c,
10381 common/config/iq2000/iq2000-common.c,
10382 common/config/lm32/lm32-common.c,
10383 common/config/m32c/m32c-common.c,
10384 common/config/m32r/m32r-common.c,
10385 common/config/m68k/m68k-common.c,
10386 common/config/mcore/mcore-common.c,
10387 common/config/mep/mep-common.c,
10388 common/config/microblaze/microblaze-common.c,
10389 common/config/mips/mips-common.c,
10390 common/config/mmix/mmix-common.c,
10391 common/config/mn10300/mn10300-common.c,
10392 common/config/pdp11/pdp11-common.c,
10393 common/config/picochip/picochip-common.c,
10394 common/config/rs6000/rs6000-common.c,
10395 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
10396 common/config/score/score-common.c, common/config/sh/sh-common.c,
10397 common/config/sparc/sparc-common.c,
10398 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
10399 common/config/vax/vax-common.c,
10400 common/config/xstormy16/xstormy16-common.c,
10401 common/config/xtensa/xtensa-common.c: New.
10402 * config/alpha/alpha.c: Include common/common-target.h.
10403 (alpha_option_optimization_table, alpha_handle_option,
10404 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10405 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
10406 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
10407 * config/arm/arm.c (arm_option_optimization_table,
10408 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10409 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
10410 arm-common.c.
10411 * config/avr/avr.c (avr_option_optimization_table,
10412 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10413 to avr-common.c.
10414 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
10415 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
10416 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
10417 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
10418 * config/cris/cris.c (cris_option_optimization_table,
10419 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10420 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
10421 cris-common.c.
10422 * config/fr30/fr30.c (fr30_option_optimization_table,
10423 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
10424 to fr30-common.c.
10425 * config/frv/frv.c (frv_option_optimization_table,
10426 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
10427 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
10428 * config/h8300/h8300.c (h8300_option_optimization_table,
10429 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10430 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
10431 * config/i386/i386-protos.h (ix86_handle_option): Declare.
10432 * config/i386/i386.c: Include common/common-target.h.
10433 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
10434 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
10435 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
10436 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
10437 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
10438 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
10439 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
10440 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
10441 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
10442 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
10443 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
10444 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
10445 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
10446 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
10447 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
10448 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
10449 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
10450 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
10451 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
10452 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
10453 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
10454 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
10455 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
10456 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
10457 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
10458 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
10459 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
10460 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
10461 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
10462 ix86_option_optimization_table, ix86_option_init_struct,
10463 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
10464 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10465 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
10466 i386-common.c.
10467 * config/i386/t-i386 (i386.o): Update dependencies.
10468 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
10469 * config/ia64/ia64.c (ia64_option_optimization_table,
10470 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10471 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10472 ia64_handle_option): Move to ia64-common.c.
10473 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
10474 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
10475 * config/lm32/lm32.c (lm32_option_optimization_table,
10476 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10477 to lm32-common.c.
10478 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
10479 m32c-common.c.
10480 * config/m32r/m32r.c (m32r_option_optimization_table,
10481 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10482 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10483 m32r_handle_option): Move to m32r-common.c.
10484 (m32r_memory_move_cost): Remove comment referring to
10485 TARGET_HANDLE_OPTION.
10486 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
10487 Move to m68k-common.c.
10488 * config/mcore/mcore.c (mcore_option_optimization_table,
10489 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10490 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
10491 * config/mep/mep.c (mep_option_optimization_table,
10492 mep_handle_option, TARGET_HANDLE_OPTION,
10493 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
10494 Move to mep-common.c.
10495 * config/microblaze/microblaze.c
10496 (microblaze_option_optimization_table,
10497 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10498 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
10499 * config/mips/mips.c (mips_handle_option,
10500 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10501 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
10502 mips-common.c.
10503 * config/mmix/mmix.c (mmix_option_optimization_table,
10504 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10505 Move to mmix-common.c.
10506 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
10507 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
10508 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10509 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
10510 * config/pa/pa.c: Include common/common-target.h.
10511 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10512 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10513 pa_handle_option): Move to pa-common.c.
10514 (pa_option_override): Use targetm_common.except_unwind_info.
10515 (pa_asm_output_mi_thunk, pa_function_section): Use
10516 targetm_common.have_named_sections.
10517 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
10518 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10519 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10520 pdp11_handle_option, pdp11_option_init_struct): Move to
10521 pdp11-common.c.
10522 * config/picochip/picochip.c (picochip_option_optimization_table,
10523 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
10524 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
10525 * config/rs6000/rs6000.c: Include common/common-target.h.
10526 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
10527 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
10528 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
10529 rs6000_handle_option): Move to rs6000-common.c.
10530 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10531 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
10532 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10533 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
10534 * config/s390/s390.c (processor_flags_table,
10535 s390_option_optimization_table, s390_option_init_struct,
10536 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
10537 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10538 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
10539 * config/s390/s390.h (processor_flags_table): Declare.
10540 * config/score/score.c (score_option_optimization_table,
10541 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10542 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
10543 score_handle_option): Move to score-common.c.
10544 * config/sh/sh.c (sh_option_optimization_table,
10545 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10546 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10547 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
10548 * config/sparc/sparc.c: Include common/common-target.h.
10549 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10550 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
10551 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
10552 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
10553 spu_option_init_struct): Move to spu-common.c.
10554 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
10555 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
10556 * config/v850/v850.c (small_memory_physical_max,
10557 v850_handle_memory_optionn v850_handle_option,
10558 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10559 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10560 v850-common.c.
10561 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10562 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10563 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10564 Move to xtensa-common.c.
10565 * cfglayout.c: Include common/common-target.h.
10566 (fixup_reorder_chain): Use targetm_common.have_named_sections.
10567 * cfgrtl.c: Include common/common-target.h.
10568 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10569 targetm_common.have_named_sections.
10570 * dbxout.c: Include common/common-target.h.
10571 (dbxout_function_end): Use targetm_common.have_named_sections.
10572 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10573 targetm_common.except_unwind_info.
10574 * dwarf2out.c: Include common/common-target.h.
10575 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10576 dwarf2out_begin_prologue, dwarf2out_frame_init,
10577 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10578 targetm_common.except_unwind_info.
10579 * except.c: Include common/common-target.h.
10580 (init_eh, finish_eh_generation,
10581 output_one_function_exception_table): Use
10582 targetm_common.except_unwind_info.
10583 (switch_to_exception_section): Use targetm_common.have_named_sections.
10584 * explow.c: Include common/common-target.h.
10585 * expr.c: Include common/common-target.h.
10586 (build_personality_function): Use targetm_common.except_unwind_info.
10587 * function.c: Include common/common-target.h.
10588 (expand_function_end): Use targetm_common.except_unwind_info.
10589 * haifa-sched.c: Include common/common-target.h.
10590 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10591 * lto-opts.c: Include common/common-target.h instead of target.h.
10592 (lto_reissue_options): Use targetm_common.handle_option.
10593 * opts.c: Include common/common-target.h.
10594 (target_handle_option): Use targetm_common.handle_option.
10595 (init_options_struct): Update comment referring to
10596 targetm.target_option.optimization. Use
10597 targetm_common.default_target_flags,
10598 targetm_common.unwind_tables_default and
10599 targetm_common.option_init_struct.
10600 (default_options_optimization): Use
10601 targetm_common.option_optimization_table.
10602 (finish_options): Use targetm_common.except_unwind_info,
10603 targetm_common.unwind_tables_default,
10604 targetm_common.have_named_sections and
10605 targetm_common.supports_split_stack.
10606 * toplev.c: Include common/common-target.h.
10607 (process_options): Use targetm_common.have_named_sections.
10608 * tree-tailcall.c: Include common/common-target.h.
10609 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10610 * tree.c: Include common/common-target.h.
10611 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10612 * varasm.c: Include common/common-target.h.
10613 (resolve_unique_section, hot_function_section,
10614 default_function_section): Use targetm_common.have_named_sections.
10615
10616 2011-06-14 Easwaran Raman <eraman@google.com>
10617
10618 PR rtl-optimization/44194
10619 * dse.c: Include tree-flow.h
10620 (insn_info): Add new field non_frame_wild_read.
10621 (group_info): Add new fields escaped_n and escaped_p.
10622 (kill_on_calls): New variable.
10623 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10624 (dse_step0): Initialize kill_on_calls.
10625 (can_escape): New function.
10626 (set_usage_bits): Add additional parameter; record information
10627 about escaped locations.
10628 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10629 (dse_step2_nospill): Set kill_on_calls based on
10630 group->escaped_n and group->escaped_n.
10631 (add_wild_read): Refactor into...
10632 (reset_active_stores): ... New function, and
10633 (free_read_records): ... New function.
10634 (add_non_frame_wild_read): New function.
10635 (scan_insn): Call add_non_frame_wild_read on non-const calls.
10636 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10637 (dse_step5_nospill): Call scan_reads_nospill for instructions
10638 marked as non_frame_wild_read.
10639 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10640
10641 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10642
10643 * common/common-target-def.h, common/common-target.def,
10644 common/common-target.h, common/config/default-common.c,
10645 common/config/pa/pa-common.c: New files.
10646 * Makefile.in (common_out_file, common_out_object_file,
10647 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10648 (OBJS-libcommon-target): Include $(common_out_object_file).
10649 (prefix.o): Update dependencies.
10650 ($(common_out_object_file), common/common-target-hooks-def.h,
10651 s-common-target-hooks-def-h): New.
10652 (s-tm-texi): Also check timestamp on common-target.def.
10653 (build/genhooks.o): Update dependencies.
10654 * config.gcc (common_out_file, target_has_targetm_common): Define.
10655 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10656 TARGET_ALWAYS_STRIP_DOTDOT.
10657 * configure.ac (common_out_object_file): Define.
10658 (common_out_file, common_out_object_file): Substitute.
10659 (common): Create directory.
10660 * configure: Regenerate.
10661 * doc/tm.texi.in (targetm_common): Document.
10662 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10663 * doc/tm.texi: Regenerate.
10664 * genhooks.c (hook_array): Also include common/common-target.def.
10665 * prefix.c (tm.h): Don't include.
10666 (common/common-target.h): Include.
10667 (ALWAYS_STRIP_DOTDOT): Don't define.
10668 (update_path): Use targetm_common.always_strip_dotdot instead of
10669 ALWAYS_STRIP_DOTDOT.
10670 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10671
10672 2011-06-14 David Li <davidxl@google.com>
10673
10674 * passes.c (execute_function_todo): Remove TODO_dump_func.
10675 (execute_one_pass): Remove TODO_dump_func.
10676 (execute_function_dump): New function.
10677 * tree-vrp.c: Remove TODO_dump_func.
10678 * regrename.c: Remove TODO_dump_func.
10679 * fwprop.c: Remove TODO_dump_func.
10680 * tree-into-ssa.c: Remove TODO_dump_func.
10681 * tree-complex.c: Remove TODO_dump_func.
10682 * tracer.c: Remove TODO_dump_func.
10683 * tree-loop-distribution.c: Remove TODO_dump_func.
10684 * postreload-gcse.c: Remove TODO_dump_func.
10685 * postreload.c: Remove TODO_dump_func.
10686 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10687 * tree-tailcall.c: Remove TODO_dump_func.
10688 * ipa-cp.c: Remove TODO_dump_func.
10689 * final.c: Remove TODO_dump_func.
10690 * tree-emutls.c: Remove TODO_dump_func.
10691 * omp-low.c: Remove TODO_dump_func.
10692 * tree-ssa-dse.c: Remove TODO_dump_func.
10693 * tree-ssa-uncprop.c: Remove TODO_dump_func.
10694 * auto-inc-dec.c: Remove TODO_dump_func.
10695 * reorg.c: Remove TODO_dump_func.
10696 * tree-ssa-copyrename.c: Remove TODO_dump_func.
10697 * tree-ssa-ccp.c: Remove TODO_dump_func.
10698 * compare-elim.c: Remove TODO_dump_func.
10699 * mode-switching.c: Remove TODO_dump_func.
10700 * modulo-sched.c: Remove TODO_dump_func.
10701 * tree-call-cdce.c: Remove TODO_dump_func.
10702 * cse.c: Remove TODO_dump_func.
10703 * web.c: Remove TODO_dump_func.
10704 * tree-stdarg.c: Remove TODO_dump_func.
10705 * lto-streamer-out.c: Remove TODO_dump_func.
10706 * tree-ssa-math-opts.c: Remove TODO_dump_func.
10707 * tree-ssa-dom.c: Remove TODO_dump_func.
10708 * tree-nrv.c: Remove TODO_dump_func.
10709 * loop-init.c: Remove TODO_dump_func.
10710 * gimple-low.c: Remove TODO_dump_func.
10711 * ipa-inline.c: Remove TODO_dump_func.
10712 * tree-ssa-sink.c: Remove TODO_dump_func.
10713 * jump.c: Remove TODO_dump_func.
10714 * ifcvt.c: Remove TODO_dump_func.
10715 * tree-ssa-loop.c: Remove TODO_dump_func.
10716 * recog.c: Remove TODO_dump_func.
10717 * dse.c: Remove TODO_dump_func.
10718 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10719 * matrix-reorg.c: Remove TODO_dump_func.
10720 * tree-eh.c: Remove TODO_dump_func.
10721 * regmove.c: Remove TODO_dump_func.
10722 * function.c: Remove TODO_dump_func.
10723 * tree-vectorizer.c: Remove TODO_dump_func.
10724 * ipa-split.c: Remove TODO_dump_func.
10725 * gcse.c: Remove TODO_dump_func.
10726 * tree-if-conv.c: Remove TODO_dump_func.
10727 * init-regs.c: Remove TODO_dump_func.
10728 * tree-ssa-phiopt.c: Remove TODO_dump_func.
10729 * implicit-zee.c: Remove TODO_dump_func.
10730 * lower-subreg.c: Remove TODO_dump_func.
10731 * bt-load.c: Remove TODO_dump_func.
10732 * tree-dfa.c: Remove TODO_dump_func.
10733 * except.c: Remove TODO_dump_func.
10734 * emit-rtl.c: Remove TODO_dump_func.
10735 * store-motion.c: Remove TODO_dump_func.
10736 * cfgexpand.c: Remove TODO_dump_func.
10737 * tree-cfgcleanup.c: Remove TODO_dump_func.
10738 * cfgcleanup.c: Remove TODO_dump_func.
10739 * tree-ssa-pre.c: Remove TODO_dump_func.
10740 * tree-sra.c: Remove TODO_dump_func.
10741 * tree-mudflap.c: Remove TODO_dump_func.
10742 * tree-ssa-copy.c: Remove TODO_dump_func.
10743 * cfglayout.c: Remove TODO_dump_func.
10744 * tree-ssa-forwprop.c: Remove TODO_dump_func.
10745 * tree-ssa-dce.c: Remove TODO_dump_func.
10746 * ira.c: Remove TODO_dump_func.
10747 * tree-ssa.c: Remove TODO_dump_func.
10748 * integrate.c: Remove TODO_dump_func.
10749 * tree-optimize.c: Remove TODO_dump_func.
10750 * tree-ssa-phiprop.c: Remove TODO_dump_func.
10751 * tree-object-size.c: Remove TODO_dump_func.
10752 * combine.c: Remove TODO_dump_func.
10753 * bb-reorder.c: Remove TODO_dump_func.
10754 * cprop.c: Remove TODO_dump_func.
10755 * var-tracking.c: Remove TODO_dump_func.
10756 * tree-profile.c: Remove TODO_dump_func.
10757 * tree-vect-generic.c: Remove TODO_dump_func.
10758 * reg-stack.c: Remove TODO_dump_func.
10759 * sched-rgn.c: Remove TODO_dump_func.
10760 * tree-ssa-structalias.c: Remove TODO_dump_func.
10761 * tree-switch-conversion.c: Remove TODO_dump_func.
10762 * tree-cfg.c: Remove TODO_dump_func.
10763 * tree-ssa-reassoc.c: Remove TODO_dump_func.
10764 * combine-stack-adj.c: Remove TODO_dump_func.
10765 * dce.c: Remove TODO_dump_func.
10766 * tree-ssanames.c: Remove TODO_dump_func.
10767 * regcprop.c: Remove TODO_dump_func.
10768
10769 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
10770
10771 PR middle-end/47364
10772 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10773 and properly handle result not in Pmode.
10774
10775 2011-06-14 Robert Millan <rmh@gnu.org>
10776
10777 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10778 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
10779 `config/linux.h'.
10780
10781 * config/i386/kfreebsd-gnu64.h: New file.
10782 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
10783 with `i386/kfreebsd-gnu64.h'.
10784
10785 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
10786 (GNU_USER_LINK_EMULATION64): New macros.
10787 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
10788 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
10789 of hardcoding `elf_i386' and `elf_x86_64'.
10790
10791 2011-06-14 Nick Clifton <nickc@redhat.com>
10792
10793 PR target/49403
10794 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
10795
10796 PR target/49402
10797 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
10798
10799 2011-06-14 Jakub Jelinek <jakub@redhat.com>
10800
10801 PR fortran/49103
10802 * tree.h (DECL_NONSHAREABLE): Define.
10803 (struct tree_decl_common): Change decl_common_unused to
10804 decl_nonshareable_flag.
10805 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
10806 Ignore vars with DECL_NONSHAREABLE bit set.
10807 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
10808 on stores to automatic aggregate vars.
10809
10810 PR rtl-optimization/49390
10811 Revert:
10812 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
10813
10814 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10815 MEM_ALIAS_SET.
10816
10817 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
10818 Tom de Vries <tom@codesourcery.com>
10819
10820 PR target/45098
10821 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
10822 Document changed semantics.
10823 (max_stmt_executions, max_stmt_executions_int): Declare.
10824 * tree-data-ref.c (estimated_loop_iterations)
10825 (estimated_loop_iterations_int): Move functions...
10826 * tree-ssa-loop-niter.c (estimated_loop_iterations)
10827 (estimated_loop_iterations_int): here.
10828 (record_estimate): Change nb_iterations_upper_bound and
10829 nb_iterations_estimate semantics.
10830 (max_stmt_executions, max_stmt_executions_int): New function.
10831 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
10832 (max_stmt_executions_tree): this.
10833 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
10834 estimated_loop_iterations_tree.
10835 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
10836 max_stmt_executions_int instead of estimated_loop_iterations_int.
10837 * predict.c (predict_loops): Idem.
10838 * tree-parloops.c (parallelize_loops): Idem.
10839 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
10840 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
10841 (init_omega_for_ddr_1): Idem.
10842 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
10843 (loop_prefetch_arrays): Idem
10844 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10845 max_stmt_executions instead of estimated_loop_iterations.
10846 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10847 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10848 instead of nb_iterations_upper_bound.
10849
10850 2011-06-13 Jan Hubicka <jh@suse.cz>
10851
10852 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10853
10854 2011-06-14 Richard Henderson <rth@redhat.com>
10855
10856 PR debug/48459
10857 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10858 (based_loc_descr): Assert it's true.
10859 (compute_frame_pointer_to_fb_displacement): Set it, rather than
10860 aborting immediately.
10861
10862 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
10863 Mingfeng Wu <mingfeng@faraday-tech.com>
10864
10865 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10866
10867 2011-06-13 Jan Hubicka <jh@suse.cz>
10868
10869 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10870
10871 2011-06-13 Jan Hubicka <jh@suse.cz>
10872
10873 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10874 similarly to DECL_COMDAT.
10875 * cgraphunit.c (cgraph_analyze_function): Likewise.
10876 * ipa.c (function_and_variable_visibility): Likewise.
10877
10878 2011-06-13 Jan Hubicka <jh@suse.cz>
10879
10880 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10881 BINFO_VIRTUALS when streaming for ltrans unit.
10882
10883 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
10884
10885 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10886 (movdi_internal64): Same.
10887
10888 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
10889
10890 PR target/44618
10891 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10892 a set of similar patterns, where the MATCH_OPERAND for the function
10893 argument is replaced with individual references to hardware registers.
10894 (save_fpregs_<mode>): Ditto
10895 (restore_gpregs_<mode>): Ditto
10896 (return_and_restore_gpregs_<mode>): Ditto
10897 (return_and_restore_fpregs_<mode>): Ditto
10898 (return_and_restore_fpregs_aix_<mode>): Ditto
10899
10900 2011-06-13 Jan Hubicka <jh@suse.cz>
10901
10902 * ipa-utils.c (postorder_stack): New structure.
10903 (ipa_reverse_postorder): Handle aliases.
10904
10905 2011-06-13 Jan Hubicka <jh@suse.cz>
10906
10907 * ipa-inline.c (reset_edge_caches): Walk aliases.
10908 (update_caller_keys): Do not test inlinability of aliases.
10909 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10910 (do_estimate_growth): Fix typo.
10911
10912 2011-06-13 Jan Hubicka <jh@suse.cz>
10913
10914 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10915 (can_remove_node_now_p): ... here; handle same comdat groups.
10916 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10917 (inline_call): Update use of can_remove_node_now_p.
10918
10919 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10920
10921 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10922 condition to disallow non-identical memory locations.
10923 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10924 preference to bit manipulation instructions.
10925
10926 2011-06-13 Jan Hubicka <jh@suse.cz>
10927
10928 * cgraph.c (cgraph_for_node_thunks_and_aliases,
10929 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10930 (nonremovable_p): New function.
10931 (cgraph_can_remove_if_no_direct_calls_p): New function.
10932 (used_from_object_file_p): New functoin.
10933 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10934 references from aliases.
10935 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10936 * ipa-inline.c (check_caller_edge): New function.
10937 (want_inline_function_called_once_p): Use it; accept aliases called
10938 once, too.
10939 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10940
10941 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10942
10943 PR target/48454
10944 * config/arm/neon.md (vec_pack_trunc): Set the lengths
10945 correctly for the case with Quad vectors.
10946
10947 2011-06-13 Jakub Jelinek <jakub@redhat.com>
10948 Ira Rosen <ira.rosen@linaro.org>
10949
10950 PR tree-optimization/49352
10951 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10952 all, make sure loop_use_stmt after the loop is a def stmt of a used
10953 SSA_NAME that is the only one defined inside of the loop. Don't
10954 check for COND_EXPR and GIMPLE_BINARY_RHS.
10955 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10956 check_reduction is true.
10957
10958 2011-06-11 Jan Hubicka <jh@suse.cz>
10959
10960 PR middle-end/49373
10961 * ipa.c (cgraph_externally_visible_p): Check resolution info.
10962
10963 2011-06-11 Jan Hubicka <jh@suse.cz>
10964
10965 PR middle-end/48836
10966 * ipa-inline-transform.c: Include tree-pass.h
10967 (inline_transform): Set TODO_update_ssa_only_virtuals.
10968 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10969
10970 2011-06-11 Jan Hubicka <jh@suse.cz>
10971
10972 PR middle-end/49378
10973 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10974 aliases and thunks.
10975
10976 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
10977
10978 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10979 Take number of iterations to peel into account for equally frequent
10980 misalignment values.
10981
10982 2011-06-11 Jan Hubicka <jh@suse.cz>
10983
10984 * lto-streamer-out.c (produce_symtab): Stream out the newly
10985 represented aliases.
10986
10987 2011-06-11 Jan Hubicka <jh@suse.cz>
10988
10989 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10990 varying args.
10991 (ipa_update_after_lto_read): Likewise.
10992 (ipa_write_node_info): Do not sream call_with_var_arguments.
10993 (ipa_read_node_info): Likewise.
10994
10995 2011-06-11 Jan Hubicka <jh@suse.cz>
10996
10997 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10998
10999 2011-06-11 Jan Hubicka <jh@suse.cz>
11000
11001 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
11002 (lto_symtab_resolve_can_prevail_p): Likewise.
11003 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
11004 * cgraph.c (same_body_aliases_done): New global var.
11005 (cgraph_same_body_alias_1): Rename to ...
11006 (cgraph_create_function_alias): ... this one; reorg to new
11007 representation.
11008 (cgraph_same_body_alias): Use cgraph_create_function_alias;
11009 record references when asked to.
11010 (cgraph_add_thunk): Fix formating.
11011 (cgraph_get_node): Kill same body alias code.
11012 (cgraph_node_for_asm): Likewise.
11013 (cgraph_remove_same_body_alias): Remove.
11014 (cgraph_remove_node): Kill same body alias code.
11015 (cgraph_mark_address_taken_node): Mark also the aliased function
11016 as having address taken.
11017 (dump_cgraph_node): Dump same body aliases.
11018 (cgraph_for_node_thunks_and_aliases): Update for new alias
11019 representation.
11020 (cgraph_for_node_and_aliases): Likewise.
11021 * cgraph.h (same_body): Kll pointer.
11022 (same_body_alias): Update comment.
11023 (same_body_aliases_done): Declare.
11024 (cgraph_remove_same_body_alias): Remove declaration.
11025 (cgraph_create_function_alias): Declare.
11026 (cgraph_process_same_body_aliases): Declare.
11027 (cgraph_function_with_gimple_body_p): Check for alias.
11028 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
11029 (cgraph_alias_aliased_node): New function.
11030 (cgraph_function_node): Update for new aliases.
11031 (cgraph_function_or_thunk_node): Likewise.
11032 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
11033 (inline_call): Remove dead aliases.
11034 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
11035 name hack for same body aliases.
11036 (clone_of_p): Look through aliases.
11037 (verify_cgraph_node): Verify aliases.
11038 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
11039 (cgraph_process_same_body_aliases): New function.
11040 (process_function_and_variable_attributes): Disable weakref warning on
11041 alias.
11042 (cgraph_analyze_functions): Handle aliases.
11043 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
11044 (assemble_thunks): Rename to ...
11045 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
11046 (cgraph_expand_function): Remove alias output code.
11047 (cgraph_output_in_order): Skip aliases.
11048 (cgraph_preserve_function_body_p): Aliases don't need preserving.
11049 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
11050 (ipa_record_reference): Do not assert on alias references.
11051 (ipa_ref_has_aliases_p): New function.
11052 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
11053 (ipa_ref_has_aliases_p): Declare.
11054 * lto-cgraph.c (lto_output_node): Handle aliases.
11055 (input_node): Likewise.
11056 * lto-streamer-out.c (lto_output): Skip aliases.
11057 (produce_symtab): Kill same_body_alias code.
11058 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
11059 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
11060 * ipa-inline.c (update_caller_keys): Walk aliases.
11061 (inline_small_functions): Fix thinko in previous patch.
11062 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
11063 (function_and_variable_visibility): Do not walk same body aliases.
11064 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
11065 (ipa_pta_execute): Use it.
11066
11067 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11068
11069 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
11070 (*vec_dupv2df): Rename from vec_dupv2df.
11071 (vec_dupv2df): New expander.
11072
11073 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11074
11075 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
11076
11077 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11078
11079 * config/i386/i386.md: Use default value in "isa" attribute.
11080 * config/i386/sse.md: Ditto.
11081 * config/i386/mmx.md: Ditto.
11082
11083 2011-06-10 Wei Guozhi <carrot@google.com>
11084
11085 PR target/45335
11086 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11087 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11088 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11089 related peephole2.
11090 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11091 related peephole2.
11092 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11093 (arm_legitimate_ldrd_p): New prototype.
11094 (arm_output_ldrd): New prototype.
11095 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11096 (arm_legitimate_ldrd_p): New function.
11097 (arm_output_ldrd): New function.
11098
11099 2011-06-10 David Li <davidxl@google.com>
11100
11101 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11102 * passes.c (passr_eq): New function.
11103 (create_pass_tab): New function.
11104 (pass_traverse): New function.
11105 (dump_one_pass): New function.
11106 (dump_pass_list): New function.
11107 (dump_passes): New function.
11108
11109 2011-06-10 Jan Hubicka <jh@suse.cz>
11110
11111 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
11112 setting the nothrow flag.
11113 * ipa-reference.c (propagate): Skip aliases.
11114 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
11115 (propagate_nothrow): Skip aliases; do not update cgraph.
11116 (local_pure_const): Do not update cgraph.
11117 * tree-profile.c (tree_profiling): Do fixup_cfg.
11118
11119 2011-06-10 Jan Hubicka <jh@suse.cz>
11120
11121 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
11122 (cgraph_local_node_p): ... here; handle aliases.
11123 (has_addr_references_p): Break out from ...;
11124 (cgraph_remove_unreachable_nodes) ... here.
11125
11126 2011-06-10 Jan Hubicka <jh@suse.cz>
11127
11128 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
11129 * common.opt (flag_inline_functions_called_once): Do not
11130 initialize to 1.
11131
11132 2011-06-10 Jan Hubicka <jh@suse.cz>
11133
11134 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
11135 (ipcp_initialize_node_lattices): Do not deal with aliases;
11136 Do not try to propagate through thunks.
11137 (ipcp_change_tops_to_bottom): Do not deal with aliases.
11138
11139 2011-06-10 Jan Hubicka <jh@suse.cz>
11140
11141 * ipa-prop.c (ipa_write_node_info): Stream jump functions
11142 for indirect calls.
11143 (ipa_read_node_info): Likewise.
11144
11145 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11146
11147 PR lto/49302
11148 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
11149 (build_and_insert_call): Likewise.
11150 (build_and_insert_ref): New.
11151 (gimple_expand_builtin_pow): Minor cleanup.
11152 (gimple_expand_builtin_cabs): New.
11153 (execute_cse_sincos): Add case for BUILT_IN_CABS.
11154
11155 2011-06-10 Jan Hubicka <jh@suse.cz>
11156
11157 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
11158 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
11159 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
11160 (ipcp_propagate_stage): Skip aliases when propagating.
11161 (ipcp_need_redirect_p): Skip aliases.
11162 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
11163 collect_callers_of_node.
11164 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
11165 for aliases.
11166 (ipa_compute_jump_functions): Look through aliases.
11167
11168 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11169
11170 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
11171
11172 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11173
11174 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
11175 Adjust comments.
11176 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
11177
11178 2011-06-10 Jan Hubicka <jh@suse.cz>
11179
11180 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
11181 Update call of gimple_get_virt_method_for_binfo.
11182 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
11183 refuse_thunks parameter.
11184 (gimple_fold_call): Update.
11185 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
11186
11187 2011-06-10 Jan Hubicka <jh@suse.cz>
11188
11189 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
11190 (not_all_callers_have_enough_arguments_p): ... this one; turn into
11191 worker for cgraph_for_node_and_aliases.
11192 (convert_callers_for_node): Break out from ...
11193 (convert_callers): ... here.
11194 (modify_function): Use collect_callers_of_node.
11195 (ipa_early_sra): Use cgraph_for_node_and_aliases.
11196
11197 2011-06-10 Richard Guenther <rguenther@suse.de>
11198
11199 PR tree-optimization/49361
11200 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
11201 when not already in gimple form.
11202
11203 2011-06-10 Richard Guenther <rguenther@suse.de>
11204
11205 PR bootstrap/49344
11206 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
11207 FOR_EACH_PHI_OR_STMT_USE.
11208
11209 2011-06-10 Jan Hubicka <jh@suse.cz>
11210
11211 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
11212 (clone_inlined_nodes): ... here.
11213 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
11214 to real destination prior inlining.
11215 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
11216 can_early_inline_edge_p, want_early_inline_function_p,
11217 want_early_inline_function_p, want_inline_small_function_p,
11218 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
11219 edge_badness, update_all_callee_keys, lookup_recursive_calls,
11220 add_new_edges_to_heap, inline_small_functions, flatten_function,
11221 inline_always_inline_functions, early_inline_small_functions): Use
11222 cgraph_function_or_thunk_node.
11223 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
11224 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
11225 (do_estimate_edge_growth_1): Break out from ...
11226 (do_estimate_growth) ... here; walk aliases.
11227 (inline_generate_summary): Skip aliases.
11228
11229 2011-06-10 Richard Guenther <rguenther@suse.de>
11230
11231 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
11232 forward when combining, visit inserted stmts when a stmt was changed.
11233
11234 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
11235
11236 * tree.h (error_operand_p): Add.
11237 * dbxout.c (dbxout_type_fields): Use the latter.
11238 * c-decl.c (add_stmt): Likewise.
11239 * gimplify.c (omp_add_variable, omp_notice_variable,
11240 gimplify_scan_omp_clauses): Likewise.
11241
11242 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
11243
11244 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
11245 when a value is actually passed in regs.
11246
11247 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
11248 Laurent Rougé <laurent.rouge@menta.fr>
11249
11250 * doc/invoke.texi (SPARC options): Add -mflat.
11251 * config/sparc/sparc.opt: Likewise.
11252 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11253 (sparc_flat_expand_prologue): Declare.
11254 (sparc_flat_expand_epilogue): Likewise.
11255 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11256 (CPP_ENDIAN_SPEC): Replace with...
11257 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
11258 (CPP_SPEC): Adjust to above change.
11259 (EXTRA_SPECS): Likewise.
11260 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11261 (INCOMING_REGNO): Likewise.
11262 (OUTGOING_REGNO): Likewise.
11263 (LOCAL_REGNO): Likewise.
11264 (SETUP_FRAME_ADDRESSES): Likewise.
11265 (FIXED_REGISTERS): Set 0 for %fp.
11266 (CALL_USED_REGISTERS): Likewise.
11267 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11268 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11269 (RETURN_ADDR_REGNUM): Define.
11270 (RETURN_ADDR_RTX): Use it.
11271 (INCOMING_RETURN_ADDR_REGNUM): Define.
11272 (INCOMING_RETURN_ADDR_RTX): Use it.
11273 (DWARF_FRAME_RETURN_COLUMN): Likewise.
11274 (EH_RETURN_REGNUM): Define.
11275 (EH_RETURN_STACKADJ_RTX): Use it.
11276 (EH_RETURN_HANDLER_RTX): Delete.
11277 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11278 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11279 Delete.
11280 (struct machine_function): Add frame_size, apparent_frame_size,
11281 frame_base_reg, frame_base_offset, n_global_fp_regs and
11282 save_local_in_regs_p fields.
11283 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11284 sparc_frame_base_offset, sparc_n_global_fp_regs,
11285 sparc_save_local_in_regs_p): New macros.
11286 (sparc_option_override): Error out if -fcall-saved-REG is specified
11287 for Out registers.
11288 (eligible_for_restore_insn): Fix formatting.
11289 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
11290 (eligible_for_sibcall_delay): Likewise.
11291 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11292 (sparc_legitimate_address_p): Adjust to above change.
11293 (save_global_or_fp_reg_p): New predicate.
11294 (return_addr_reg_needed_p): Likewise.
11295 (save_local_or_in_reg_p): Likewise.
11296 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
11297 (SORR_SAVE, SORR_RESTORE): Delete.
11298 (sorr_pred_t): New typedef.
11299 (sorr_act_t): New enum.
11300 (save_or_restore_regs): Rename to...
11301 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
11302 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11303 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
11304 mechanism. Add CFI information for double-word saves in 32-bit mode.
11305 (emit_adjust_base_to_offset): New function extracted from...
11306 (emit_save_or_restore_regs): ...this. Rename the rest to...
11307 (emit_save_or_restore_regs_global_fp_regs): ...this.
11308 (emit_save_or_restore_regs_local_in_regs): New function.
11309 (gen_create_flat_frame_[123]): New functions.
11310 (sparc_expand_prologue): Use SIZE local variable. Adjust.
11311 (sparc_flat_expand_prologue): New function.
11312 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11313 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
11314 (sparc_flat_expand_epilogue): New function.
11315 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11316 (output_return): Likewise.
11317 (output_sibcall): Likewise.
11318 (sparc_output_mi_thunk): Likewise.
11319 (sparc_frame_pointer_required): Likewise.
11320 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11321 function optimization.
11322 * config/sparc/sparc.md (flat): New attribute.
11323 (prologue): Add TARGET_FLAT handling.
11324 (save_register_window): Disable if TARGET_FLAT.
11325 (create_flat_frame_[123]): New patterns.
11326 (epilogue): Add TARGET_FLAT handling.
11327 (sibcall_epilogue): Likewise.
11328 (eh_return): New expander.
11329 (eh_return_internal): New insn and splitter.
11330 (return_internal): Add TARGET_FLAT handling.
11331 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
11332 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
11333 (nonlocal_goto): Add TARGET_FLAT handling.
11334 * config/sparc/t-elf: Add -mflat multilib.
11335 * config/sparc/t-leon: Likewise.
11336
11337 2011-06-10 Jan Hubicka <jh@suse.cz>
11338
11339 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
11340 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
11341 (self_recursive_p): Use cgraph_function_node.
11342 (propagate_pure_const): Likewise.
11343 (propagate_nothrow): Likewise.
11344 * ipa-reference.c (ipa_reference_get_not_read_global): Use
11345 cgraph_function_node.
11346 (propagate_bits): Likewise.
11347 (propagate): Likewise.
11348
11349 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11350 Richard Earnshaw <rearnsha@arm.com>
11351
11352 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
11353 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
11354 (*thumb2_movdi_vfp): Delete.
11355 (*arm_movdi_vfp_cortexa8): Delete.
11356 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
11357 (*movdi_vfp_cortexa8): Likewise.
11358
11359 2011-06-10 Richard Guenther <rguenther@suse.de>
11360
11361 * stor-layout.c (initialize_sizetypes): Give names to all
11362 sizetype kinds.
11363
11364 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
11365
11366 PR tree-optimization/49318
11367 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
11368 irrelevant pattern statements.
11369
11370 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11371
11372 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
11373
11374 PR bootstrap/49354
11375 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
11376 to last assignment.
11377
11378 2011-06-09 Jan Hubicka <jh@suse.cz>
11379
11380 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
11381 do not recompute reachable flag.
11382 (cgraph_finalize_function, cgraph_analyze_functions): Set
11383 redefined_extern_inline here.
11384
11385 2011-06-09 Jan Hubicka <jh@suse.cz>
11386
11387 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
11388 (cgraph_only_called_directly_p): ... this one; bring offline.
11389 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11390 varpool_used_from_object_file_p): Drop names from the declaratoin.
11391 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
11392 collect_callers_of_node): New.
11393 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
11394 (cgraph_edge_recursive_p): Use cgraph_function_node.
11395 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
11396 (cgraph_node_cannot_be_local_p_1): Break out from ...
11397 (cgraph_node_can_be_local_p): ... here; walk aliases.
11398 (cgraph_for_node_thunks_and_aliases): New function.
11399 (cgraph_for_node_and_aliases): New function.
11400 (cgraph_make_node_local_1): Break out from ...
11401 (cgraph_make_node_local) ... here; use
11402 cgraph_for_node_thunks_and_aliases.
11403 (cgraph_set_nothrow_flag_1): Break out from ...
11404 (cgraph_set_nothrow_flag) ... here;
11405 use cgraph_for_node_thunks_and_aliases.
11406 (cgraph_set_const_flag_1): Break out from ...
11407 (cgraph_set_const_flag) ... here;
11408 use cgraph_for_node_thunks_and_aliases.
11409 (cgraph_set_pure_flag_1): Break out from ...
11410 (cgraph_set_pure_flag) ... here;
11411 use cgraph_for_node_thunks_and_aliases.
11412 (cgraph_propagate_frequency_1): Break out from ...
11413 (cgraph_propagate_frequency) ... here; use
11414 cgraph_for_node_thunks_and_aliases.
11415 (cgraph_used_from_object_file_p): Do not care about aliases.
11416 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
11417 New functions.
11418 (collect_callers_of_node_1, collect_callers_of_node): New functions.
11419
11420 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11421
11422 PR rtl-optimization/49154
11423 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
11424 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
11425 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11426 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
11427 * config/cris/cris.h (cris_register_move_cost): Remove
11428 !TARGET_V32 code. Tweak comments.
11429
11430 2011-06-09 Jan Hubicka <jh@suse.cz>
11431
11432 * cgraphbuild.c (record_eh_tables): Mark personality function as having
11433 address taken.
11434
11435 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11436
11437 PR rtl-optimization/49154
11438 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
11439 is a matching slot in the hashtable, assign it to classes_ptr.
11440
11441 PR rtl-optimization/49154
11442 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
11443 register classes.
11444 * doc/tm.texi: Regenerate.
11445
11446 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
11447
11448 PR target/49307
11449 * config/sh/sh.md (UNSPEC_CHKADD): New.
11450 (chk_guard_add): New define_insn_and_split.
11451 (symGOT_load): Use chk_guard_add instead of blockage.
11452
11453 2011-06-09 Kai Tietz <ktietz@redhat.com>
11454
11455 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
11456
11457 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
11458
11459 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
11460
11461 2011-06-09 Wei Guozhi <carrot@google.com>
11462
11463 PR target/46975
11464 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
11465 (peephole2 for conditional move): Generate 16 bit instructions.
11466
11467 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
11468
11469 * config/i386/i386.md (*movdi_internal_rex64): Merge
11470 alternatives 6 and 8.
11471
11472 2011-06-09 David Li <davidxl@google.com>
11473
11474 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11475 * passes.c (passr_eq): New function.
11476 (create_pass_tab): New function.
11477 (pass_traverse): New function.
11478 (dump_one_pass): New function.
11479 (dump_pass_list): New function.
11480 (dump_passes): New function.
11481
11482 2011-06-09 David Li <davidxl@google.com>
11483
11484 * tree-complex.c (tree_lower_complex): Gate cleanup.
11485 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
11486 (execute_optimize_stdarg): Ditto.
11487 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
11488 (execute_cleanup_eh_1): Ditto.
11489 (execute_cleanup_eh): Ditto.
11490 * gcse.c (gate_rtl_pre): Ditto.
11491 (execute_rtl_pre): Ditto.
11492 * except.c (finish_eh_generation): Ditto.
11493 (convert_to_eh_region_ranges): Ditto.
11494 * cprop.c (one_cprop_pass): Ditto.
11495
11496 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
11497
11498 PR target/48673
11499 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
11500 in all basic blocks.
11501
11502 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11503
11504 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
11505 (HAVE_ENABLE_EXECUTE_STACK): Define.
11506 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
11507 (HAVE_ENABLE_EXECUTE_STACK): Define.
11508 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
11509 (HAVE_ENABLE_EXECUTE_STACK): Define.
11510 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
11511 (ENABLE_EXECUTE_STACK): Remove.
11512 (HAVE_ENABLE_EXECUTE_STACK): Define.
11513 [IN_LIBGCC2]: Don't include <windows.h>.
11514 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11515 (HAVE_ENABLE_EXECUTE_STACK): Define.
11516 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
11517 (HAVE_ENABLE_EXECUTE_STACK): Define.
11518 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
11519 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
11520 (HAVE_ENABLE_EXECUTE_STACK): Define.
11521 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
11522 (HAVE_ENABLE_EXECUTE_STACK): Define.
11523 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
11524 (HAVE_ENABLE_EXECUTE_STACK): Define.
11525 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11526 (HAVE_ENABLE_EXECUTE_STACK): Define.
11527 * config/alpha/alpha.c (alpha_trampoline_init): Test
11528 HAVE_ENABLE_EXECUTE_STACK.
11529 * config/i386/i386.c (ix86_trampoline_init): Likewise.
11530 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11531 (sparc64_initialize_trampoline): Likewise.
11532 * libgcc2.c [L_enable_execute_stack]: Remove.
11533 * system.h (ENABLE_EXECUTE_STACK): Poison.
11534 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
11535 * doc/tm.texi: Regenerate.
11536 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
11537
11538 2011-06-09 Jakub Jelinek <jakub@redhat.com>
11539
11540 PR middle-end/49308
11541 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
11542 variable. After resetting and rescanning insn continue with previous
11543 statement.
11544
11545 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11546
11547 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
11548 (gcc_cv_ld_hidden): Likewise.
11549 * configure: Regenerate.
11550 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
11551 (ix86_stack_protect_fail): Mark unused.
11552 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
11553 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
11554 [TARGET_MACHO]: Don't define.
11555 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
11556 (TARGET_STACK_PROTECT_FAIL): Likewise.
11557 (rs6000_stack_protect_fail): Mark unused.
11558 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11559 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
11560
11561 2011-06-08 Andi Kleen <ak@linux.intel.com>
11562
11563 * varasm.c (get_section): Print location of other conflict
11564 for section conflicts.
11565
11566 2011-06-08 Andi Kleen <ak@linux.intel.com>
11567
11568 * config/i386/driver-i386.c (host_detect_local_cpu):
11569 Add model 0x2d Intel CPU.
11570
11571 2011-06-08 Andi Kleen <ak@linux.intel.com>
11572
11573 * reginfo.c (global_regs_decl): Add.
11574 (globalize_reg): Add decl parameter. Compute location. Pass location
11575 to warnings and add inform. Store decl in global_regs_decl.
11576 * rtl.h (globalize_reg): Update prototype.
11577 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11578
11579 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
11580
11581 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11582
11583 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11584
11585 PR target/49305
11586 * config/sh/predicates.md (general_movsrc_operand): Check
11587 mode for memory with indexed address for QI and HImode.
11588 (general_movdst_operand): Likewise.
11589
11590 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
11591
11592 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11593
11594 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
11595
11596 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11597 (num_ssa_operands): Likewise.
11598 (op_iter_init_phiuse): Forward-declare.
11599 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11600
11601 2011-06-08 Nick Clifton <nickc@redhat.com>
11602
11603 * doc/invoke.texi (ARM Options): Update description of
11604 -mthumb-interwork.
11605
11606 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
11607
11608 * config/i386/driver-i386.c (host_detect_local_cpu): Support
11609 unknown Intel family 0x6 CPUs.
11610
11611 2011-06-08 Martin Jambor <mjambor@suse.cz>
11612
11613 * tree-sra.c (mark_rw_status): Removed.
11614 (analyze_access_subtree): New parameter parent instead of
11615 mark_read and mark_write, propagate from that.
11616
11617 2011-06-08 Julian Brown <julian@codesourcery.com>
11618
11619 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11620 for double-precision helper functions in hard-float mode if only
11621 single-precision arithmetic is supported in hardware.
11622
11623 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
11624
11625 PR rtl-optimization/49303
11626 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
11627 code_motion_path_driver returned 0 or 1.
11628 (sel_region_finish): Clear h_d_i_d.
11629
11630 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11631
11632 * config/sh/sh.c (prepare_move_operands): Set pic register
11633 appropriately for global and local dynamic tls models even
11634 if flag_pic is unset.
11635
11636 2011-06-07 Jason Merrill <jason@redhat.com>
11637
11638 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11639
11640 2011-06-07 Xinliang David Li <davidxl@google.com>
11641 * passes.c (enable_disable_pass): Handle assembler name.
11642 (is_pass_explicitly_enabled_or_disabled): Ditto.
11643
11644 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11645
11646 PR tree-optimization/48497
11647 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11648
11649 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11650
11651 PR tree-optimization/46728
11652 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11653 to use gimple_val_nonnegative_real_p.
11654 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11655 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11656
11657 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
11658
11659 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11660
11661 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
11662
11663 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11664 constant vectors.
11665
11666 2011-06-07 Richard Guenther <rguenther@suse.de>
11667
11668 * stor-layout.c (initialize_sizetypes): Initialize all
11669 sizetypes based on target definitions.
11670 (set_sizetype): Remove.
11671 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11672 * tree.h (set_sizetype): Remove.
11673
11674 2011-06-07 Nick Clifton <nickc@redhat.com>
11675
11676 * config.gcc: Unify V850 architecture options and add support for
11677 newer V850 architectures.
11678 * config/v850/t-v850e: Delete.
11679
11680 2011-06-07 Richard Guenther <rguenther@suse.de>
11681
11682 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11683 Call set_sizetype from here.
11684
11685 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
11686
11687 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11688 (*maddhisi4tb, *maddhisi4tt): New define_insns.
11689
11690 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
11691 Andrew Stubbs <ams@codesourcery.com>
11692
11693 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11694 multiplies.
11695 * doc/md.texi (Canonicalization of Instructions): Document widening
11696 multiply canonicalization.
11697
11698 2011-06-07 Jakub Jelinek <jakub@redhat.com>
11699
11700 PR gcov-profile/49299
11701 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11702
11703 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
11704
11705 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11706 a pointer.
11707 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11708 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11709 vect_recog_pow_pattern): Likewise.
11710 (vect_pattern_recog_1): Remove declaration.
11711 (widened_name_p): Remove declaration. Add new argument to specify
11712 whether to check that both types are either signed or unsigned.
11713 (vect_recog_widen_mult_pattern): Update documentation. Handle
11714 unsigned patterns and multiplication by constants.
11715 (vect_pattern_recog_1): Update vect_recog_func references. Use
11716 statement information from the statement returned from pattern
11717 detection functions.
11718 (vect_pattern_recog): Update vect_recog_func reference.
11719 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11720 multiplication by a constant use the type of the other operand.
11721
11722 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
11723
11724 PR rtl-optimization/49145
11725 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11726
11727 2011-06-06 Jakub Jelinek <jakub@redhat.com>
11728
11729 PR debug/49262
11730 * dwarf2out.c (native_encode_initializer): Decrement count in each
11731 iteration.
11732
11733 PR debug/49294
11734 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11735 non-MODE_INT modes.
11736
11737 PR c++/49264
11738 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11739 if stmt folded into nothing.
11740 * tree-inline.c (fold_marked_statements): If a builtin at the end of
11741 a bb folded into nothing, just update cgraph edges and move to next bb.
11742 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11743 to be NULL. Don't compute count and frequency if new_call is NULL.
11744
11745 2011-06-04 Diego Novillo <dnovillo@google.com>
11746
11747 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11748 (cgraph.o): Likewise.
11749 (cgraphunit.o): Likewise.
11750 * cgraphunit.c: Include lto-streamer.h
11751 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11752 if LTO is enabled.
11753 * lto-streamer-in.c (unpack_value_fields): Call
11754 streamer_hooks.unpack_value_fields if set.
11755 (lto_materialize_tree): For unhandled nodes, first try to
11756 call lto_streamer_hooks.alloc_tree, if it exists.
11757 (lto_input_ts_decl_common_tree_pointers): Move reading of
11758 DECL_INITIAL to lto_streamer_read_tree.
11759 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11760 (lto_streamer_read_tree): New.
11761 (lto_reader_init): Rename from lto_init_reader.
11762 Move initialization code to lto/lto.c.
11763 * lto-streamer-out.c (pack_value_fields): Call
11764 streamer_hooks.pack_value_fields if set.
11765 (lto_output_tree_ref): For tree nodes that are not normally indexable,
11766 call streamer_hooks.indexable_with_decls_p before giving up.
11767 (lto_output_ts_decl_common_tree_pointers): Move handling
11768 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11769 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11770 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
11771 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11772 (lto_streamer_write_tree): New.
11773 (lto_output): Call lto_streamer_init directly.
11774 (lto_writer_init): Remove.
11775 * lto-streamer.c (streamer_hooks): New.
11776 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11777 instead of lto_preload_common_nodes.
11778 (lto_is_streamable): Move from lto-streamer.h
11779 (lto_streamer_hooks_init): New.
11780 (streamer_hooks): New.
11781 (streamer_hooks_init): New.
11782 * lto-streamer.h (struct output_block): Forward declare.
11783 (struct lto_input_block): Likewise.
11784 (struct data_in): Likewise.
11785 (struct bitpack_d): Likewise.
11786 (struct streamer_hooks): Declare.
11787 (streamer_hooks): Declare.
11788 (lto_streamer_hooks_init): Declare.
11789 (lto_streamer_write_tree): Declare.
11790 (lto_streamer_read_tree): Declare.
11791 (streamer_hooks_init): Declare.
11792 (lto_is_streamable): Move to lto-streamer.c
11793
11794 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11795
11796 * longlong.h (smul_ppmm): The resulting register pair contains the
11797 higher order word first.
11798
11799 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11800
11801 PR tree-optimization/46728
11802 * builtins.c (powi_table): Remove.
11803 (powi_lookup_cost): Remove.
11804 (powi_cost): Remove.
11805 (expand_powi_1): Remove.
11806 (expand_powi): Remove.
11807 (expand_builtin_pow_root): Remove.
11808 (expand_builtin_pow): Remove.
11809 (expand_builtin_powi): Eliminate handling of constant exponent.
11810 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
11811
11812 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11813
11814 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
11815
11816 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11817
11818 * dce.c (reset_unmarked_insns_debug_uses): New.
11819 (delete_unmarked_insns): Skip debug insns.
11820 (prescan_insns_for_dce): Likewise.
11821 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
11822 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
11823 active reg can be found.
11824 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
11825 (convert_regs_1): Use it.
11826
11827 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11828
11829 * tree-pretty-print.c (dump_function_header): Add flags.
11830 Don't dump decl_uid with nouid.
11831 * tree-pretty-print.h (dump_function_header): Adjust.
11832 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
11833 * passes.c (pass_init_dump_file): Pass dump_flags on.
11834 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
11835
11836 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11837
11838 PR bootstrap/49270
11839 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
11840
11841 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
11842
11843 PR tree-optimization/49243
11844 * calls.c (setjmp_call_p): Also check if fndecl has the
11845 returns_twice attribute.
11846
11847 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11848
11849 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11850 -ffast-math etc.
11851
11852 2011-06-06 Richard Henderson <rth@redhat.com>
11853 Georg-Johann Lay <avr@gjlay.de>
11854
11855 PR target/42210
11856 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11857 New predicates.
11858 * config/avr/avr.md ("insv"): New insn expander.
11859 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11860 "*insv.not.io", "*insv.reg"): New insns.
11861
11862 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
11863
11864 PR target/49285
11865 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11866 to nonimmediate_operand from memory_operand for the operand that is to
11867 be forced to memory by the expander. Lose the constraints.
11868
11869 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
11870
11871 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11872 EH return when delayed branches are disabled.
11873
11874 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
11875
11876 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11877 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
11878 calculation.
11879 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11880 Simplify MODE_V1DF and MODE_V2SF handling.
11881 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11882 Simplify MODE_SF handling.
11883
11884 2011-06-04 Jan Hubicka <jh@suse.cz>
11885
11886 PR tree-optimization/48893
11887 PR tree-optimization/49091
11888 PR tree-optimization/49179
11889 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11890 Bounds check.
11891
11892 2011-06-04 Jan Hubicka <jh@suse.cz>
11893
11894 PR lto/48954
11895 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11896 bitmaps.
11897
11898 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
11899
11900 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11901
11902 2011-06-04 Jakub Jelinek <jakub@redhat.com>
11903
11904 PR target/49281
11905 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11906 to be strictly smaller than 1 << shiftcount.
11907
11908 2011-06-04 Jan Hubicka <jh@suse.cz>
11909
11910 PR tree-optimize/48929
11911 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11912 of empty predicate.
11913
11914 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
11915
11916 PR debug/48333
11917 * calls.c (emit_call_1): Prefer the __builtin declaration of
11918 builtin functions.
11919
11920 2011-06-03 Diego Novillo <dnovillo@google.com>
11921
11922 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11923 (lto_input_tree_pointers): Likewise.
11924 * lto-streamer-out.c (pack_value_fields): Likewise.
11925 (lto_output_tree_pointers): Likewise.
11926 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11927 and OPTIMIZATION_NODE.
11928
11929 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11930
11931 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11932 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11933 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11934 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11935 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11936 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11937 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11938 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11939 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11940 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11941 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11942 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11943 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11944 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11945 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11946 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11947 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11948 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11949 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11950 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11951 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11952 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11953 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11954 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11955 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11956 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11957 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11958 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11959 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11960 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11961 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11962 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11963 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11964 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11965 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11966 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11967 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11968 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11969 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11970 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11971 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11972 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11973 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11974 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11975 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11976 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11977 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11978 * system.h (MD_UNWIND_SUPPORT): Poison.
11979 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11980 * doc/tm.texi: Regenerate.
11981 * unwind-dw2.c: Include md-unwind-support.h instead of
11982 MD_UNWIND_SUPPORT.
11983 * config/ia64/unwind-ia64.c: Likewise.
11984 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11985
11986 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
11987
11988 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11989
11990 2011-06-03 Richard Henderson <rth@redhat.com>
11991 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11992
11993 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11994 (sigill_hdlr): Correct insn, insn size.
11995 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11996
11997 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11998
11999 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
12000 t-slibgcc-dummy.
12001 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
12002 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
12003 * config/mips/t-iris: Remove.
12004 * config/mips/t-irix6: New file.
12005 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
12006
12007 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12008
12009 * Makefile.in (LIB2ADDEHDEP): Remove.
12010 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
12011 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
12012 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
12013 * config/t-darwin (LIB2ADDEHDEP): Remove.
12014 * config/t-freebsd (LIB2ADDEHDEP): Remove.
12015 * config/t-linux (LIB2ADDEHDEP): Remove.
12016
12017 2011-06-03 Diego Novillo <dnovillo@google.com>
12018
12019 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
12020 (lto_register_var_decl_in_symtab): Likewise.
12021 (lto_register_function_decl_in_symtab): Likewise.
12022 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
12023 logic to uniquify_nodes.
12024
12025 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12026
12027 * config/alpha/t-osf5: Remove.
12028 * config/alpha/t-osf-pthread: Remove.
12029 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
12030 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
12031
12032 2011-06-03 Julian Brown <julian@codesourcery.com>
12033
12034 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
12035 (strongarm1110): Use strongarm tuning.
12036 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
12037 * config/arm/arm.c (arm_strongarm_tune): New.
12038 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12039 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
12040 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
12041 setting, using previous defaults or 1 for Cortex-A5.
12042 (arm_option_override): Set max_insns_skipped from current tuning.
12043
12044 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
12045
12046 * doc/install.texi (Options specification): Document --with-specs.
12047
12048 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12049
12050 * config/arm/neon.md (orndi3_neon): Actually split it.
12051
12052 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12053
12054 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
12055 * var-tracking.c (reverse_op): Limite recurse depth to 5.
12056
12057 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12058
12059 PR debug/47590
12060 * target.def (delay_sched2, delay_vartrack): New.
12061 * doc/tm.texi.in: Update.
12062 * doc/tm.texi: Rebuild.
12063 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
12064 * var-tracking.c (gate_handle_var_tracking): Likewise.
12065 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
12066 (bfin_flag_var_tracking): Drop.
12067 (output_file_start): Don't save and override flag_var_tracking.
12068 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
12069 (bfin_reorg): Test original variables.
12070 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12071 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
12072 (ia64_flag_var_tracking): Drop.
12073 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12074 (ia64_file_start): Don't save and override flag_var_tracking.
12075 (ia64_override_options_after_change): Ditto
12076 flag_schedule_insns_after_reload.
12077 (ia64_reorg): Test original variables.
12078 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
12079 (picochip_flag_var_tracking): Drop.
12080 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12081 (picochip_option_override): Don't save and override
12082 flag_schedule_insns_after_reload.
12083 (picochip_asm_file_start): Ditto flag_var_tracking.
12084 (picochip_reorg): Test original variables.
12085 * config/spu/spu.c (spu_flag_var_tracking): Drop.
12086 (TARGET_DELAY_VARTRACK): Define.
12087 (spu_var_tracking): New.
12088 (spu_machine_dependent_reorg): Call it.
12089 (asm_file_start): Don't save and override flag_var_tracking.
12090
12091 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
12092
12093 PR target/49163
12094 * config/sh/predicates.md (general_movsrc_operand): Return 0
12095 for memory and memory subreg of which address is an invalid
12096 indexed address for QI and HImode.
12097 (general_movdst_operand): Likewise.
12098
12099 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12100
12101 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
12102 edges only, when there is a non-local label in the function.
12103 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
12104
12105 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12106
12107 * config/i386/constraints.md (Y3): New register constraint.
12108 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
12109 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
12110 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
12111 *sse2_interleave_lowv2df.
12112
12113 2011-06-02 Julian Brown <julian@codesourcery.com>
12114
12115 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
12116 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
12117 (arm_cortex_a5_tune): New.
12118
12119 2011-06-02 Julian Brown <julian@codesourcery.com>
12120
12121 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
12122 * config/arm/arm.c (arm_default_branch_cost): New.
12123 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12124 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
12125 (arm_fa726_tune): Set branch_cost field using
12126 arm_default_branch_cost.
12127 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
12128 current_tune structure.
12129 * dojump.c (tm_p.h): Include file.
12130
12131 2011-06-02 Julian Brown <julian@codesourcery.com>
12132
12133 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
12134 tuning.
12135 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
12136 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
12137 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
12138 field.
12139 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
12140 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
12141 (arm_fa726te_tune): Add prefer_constant_pool setting.
12142 (arm_v6t2_tune, arm_cortex_tune): New.
12143 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
12144 prefer_constant_pool setting.
12145
12146 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12147
12148 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
12149 switch statement.
12150 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
12151 (*movdf_internal) <case 6,7,8>: Ditto.
12152
12153 * config/i386/constraints.md (Y4): New register constraint.
12154 * config/i386/sse.md (vec_set<mode>_0): Merge with
12155 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
12156 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
12157 *vec_extractv2di_1_sse.
12158 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
12159 and *vec_concatv2di_rex64_sse.
12160
12161 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
12162
12163 PR target/48807
12164 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
12165 of cgraph_local_info for null before attempting to use it.
12166
12167 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12168
12169 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
12170 (current_function_dynamic_alloc_count): Delete.
12171 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
12172 (expand_builtin_nonlocal_goto): Remove obsolete comment.
12173 (expand_builtin_update_setjmp_buf): Remove dead code.
12174 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
12175 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
12176 support.
12177 * function.c (instantiate_virtual_regs): Likewise.
12178 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
12179 for a block with a single abnormal incoming edge.
12180 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
12181 (SETJMP_VIA_SAVE_AREA): Delete.
12182 * config/sparc/sparc-protos.h (load_got_register): Declare.
12183 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
12184 (load_got_register): Make global.
12185 (sparc_frame_pointer_required): Add 'static'.
12186 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
12187 (sparc_builtin_setjmp_frame_value): New function.
12188 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
12189 (save_stack_nonlocal): New expander.
12190 (restore_stack_nonlocal): Likewise.
12191 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
12192 (nonlocal_goto_internal): New insn.
12193 (goto_handler_and_restore): Delete.
12194 (builtin_setjmp_setup): Likewise.
12195 (do_builtin_setjmp_setup): Likewise.
12196 (setjmp): Likewise.
12197 (builtin_setjmp_receiver): New expander.
12198
12199 2011-06-01 David Li <davidxl@google.com>
12200
12201 PR middle-end/49261
12202 * tree-pretty-print.c (dump_function_header): Format cleanup.
12203
12204 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
12205
12206 PR target/49238
12207 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
12208 needed when original operands are used for msw_skip comparison.
12209
12210 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12211
12212 PR debug/49250
12213 * var-tracking.c (add_uses, add_stores): Don't call
12214 cselib_subst_to_values on ENTRY_VALUE.
12215
12216 2011-06-01 Diego Novillo <dnovillo@google.com>
12217
12218 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
12219 output_record_start with LTO_null instead of output_zero.
12220 (lto_output_ts_binfo_tree_pointers): Likewise.
12221 (lto_output_tree): Likewise.
12222 (output_eh_try_list): Likewise.
12223 (output_eh_region): Likewise.
12224 (output_eh_lp): Likewise.
12225 (output_eh_regions): Likewise.
12226 (output_bb): Likewise.
12227 (output_function): Likewise.
12228 (output_unreferenced_globals): Likewise.
12229 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
12230 instead of NUM_TREE_CODES.
12231 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
12232 (lto_output_int_in_range): Change << to >> when shifting VAL.
12233
12234 2011-06-01 Diego Novillo <dnovillo@google.com>
12235
12236 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
12237 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
12238
12239 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12240
12241 PR target/45074
12242 * optabs.h (valid_multiword_target_p): Declare.
12243 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
12244 doing multi-word operations.
12245 * optabs.c (expand_binop): Likewise.
12246 (expand_doubleword_bswap): Likewise.
12247 (expand_absneg_bit): Likewise.
12248 (expand_unop): Likewise.
12249 (expand_copysign_bit): Likewise.
12250 (multiword_target_p): New function.
12251
12252 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12253
12254 PR rtl-optimization/48830
12255 PR rtl-optimization/48808
12256 PR rtl-optimization/48792
12257 * reload.c (push_reload): Check contains_reg_of_mode.
12258 * reload1.c (strip_paradoxical_subreg): New function.
12259 (gen_reload_chain_without_interm_reg_p): Use it to handle
12260 paradoxical subregs.
12261 (emit_output_reload_insns, gen_reload): Likewise.
12262
12263 2011-06-01 David Li <davidxl@google.com>
12264
12265 * predict.c : Change pass name
12266 * ipa.c: Ditto.
12267 * dce.c: Ditto.
12268 * tree-profile.c: Ditto.
12269 * except.c: Ditto.
12270
12271 2011-06-01 David Li <davidxl@google.com>
12272
12273 * tree-pretty-print.c (dump_function_header): New function.
12274 * final.c (rest_of_clean_state): Use header dumper.
12275 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12276 * passes.c (pass_init_dump_file): Use header dumper.
12277
12278 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12279
12280 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12281 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12282 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12283 New functions.
12284 (mem_loc_descriptor): Use them.
12285
12286 * var-tracking.c (create_entry_value): New function.
12287 (vt_add_function_parameter): Use it.
12288
12289 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12290
12291 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12292 Include <signal.h>, <ucontext.h>.
12293 (sigill_caught): Define.
12294 (sigill_hdlr): New function.
12295 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12296 insns can be executed.
12297 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12298 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12299
12300 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12301
12302 * config/t-slibgcc-darwin: Move to ...
12303 * config/t-slibgcc-dummy: ... this. Clarify comments.
12304 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12305 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12306 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12307 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
12308 Remove i386/t-crtstuff from tmake_file.
12309 (i[34567]86-*-solaris2*): Remove t-svr4,
12310 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12311 t-slibgcc-dummy.
12312 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12313 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12314 sparc/t-crtfm from tmake_file.
12315 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12316 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12317 Remove extra_parts.
12318 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12319 * config/i386/t-nwld (SHLIB_LINK): Remove.
12320 * config/i386/t-rtems-i386: Rename to ...
12321 * config/i386/t-rtems: ... this.
12322 ($(T)crti.o, $(T)crtn.o): Remove.
12323 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12324 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12325 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12326 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12327 EXTRA_MULTILIB_PARTS): Remove.
12328 * config/sparc/t-sol2-64: Likewise.
12329 * config/sparc/t-sol2: Remove.
12330 * config/sparc/t-crtin: Remove.
12331 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
12332 * config/i386/gmon-sol2.c: Remove.
12333 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
12334 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
12335 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
12336 * config/i386/sol2-gc1.asm: Remove.
12337 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
12338 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
12339 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
12340 * config/t-slibgcc-sld: Remove.
12341
12342 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12343
12344 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
12345 base_type_for_mode with op_mode instead of mode.
12346
12347 2011-06-01 Paul Brook <paul@cpodesourcery.com>
12348
12349 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
12350 Cortex-A15.
12351 * config/arm/arm-tune.md: Regenerate.
12352 * config/arm/arm-tables.opt: Regenerate.
12353 * config/arm/arm.c (FL_DIV): Rename...
12354 (FL_THUMB_DIV): ... to this.
12355 (FL_ARM_DIV): Define.
12356 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
12357 (arm_arch_hwdiv): Remove.
12358 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
12359 (arm_issue_rate): Add cortexr5.
12360 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
12361 __ARM_ARCH_EXT_IDIV__.
12362 (TARGET_IDIV): Define.
12363 (arm_arch_hwdiv): Remove.
12364 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
12365 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
12366 (divsi3, udivsi3): New patterns.
12367 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
12368 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
12369
12370 2011-06-01 Martin Jambor <mjambor@suse.cz>
12371
12372 * ipa-utils.c (ipa_dfs_info): New field scc_no.
12373 * ipa-utils.c (searchc): Set scc_no.
12374
12375 2011-06-01 Martin Jambor <mjambor@suse.cz>
12376
12377 * ipa-utils.c (searchc_env): New field allow_overwritable.
12378 (searchc): do not ignore edges to overwritable nodes if indicated
12379 by env->allow_overwritable.
12380 (ipa_reduced_postorder): Set env.allow_overwritable.
12381
12382 2011-06-01 Richard Guenther <rguenther@suse.de>
12383
12384 * tree.c (free_lang_data): Do not reset boolean_type_node nor
12385 char_type_node.
12386 * lto-streamer.c (lto_record_common_node): Take node pointer,
12387 do not register types.
12388 (lto_preload_common_nodes): Explicitly skip preloading nodes
12389 that differ between frontends.
12390
12391 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12392
12393 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
12394 NON_FLOAT_REGS.
12395
12396 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12397
12398 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
12399 parameter value for dump. Dump cost on outermost call only.
12400 (rs6000_memory_move_cost): Dump cost on outermost call only.
12401
12402 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12403
12404 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
12405 DW_OP_GNU_convert ops.
12406
12407 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
12408 cselib_preserve_constants.
12409 (cselib_lookup_1): If cselib_preserve_constants,
12410 a new VALUE is being created for REG and there is a VALUE for the
12411 same register in wider mode, add another loc with lowpart SUBREG of
12412 the wider VALUE.
12413 (cselib_subst_to_values): Handle ENTRY_VALUE.
12414 * var-tracking.c (replace_expr_with_values): Return NULL for
12415 ENTRY_VALUE too.
12416 * dwarf2out.c (convert_descriptor_to_signed): New function.
12417 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
12418 instead of two shifts.
12419 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
12420 the right mode if needed.
12421 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
12422 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
12423 convert_descriptor_to_signed.
12424 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
12425 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
12426
12427 PR target/48688
12428 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
12429
12430 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12431
12432 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
12433 of X87MODEI12 and SWI48x instead of SSEMODEI24.
12434 (SWI248x): New mode iterator, rename from X87MODEI.
12435 (X87MODEI): Remove mode iterator.
12436 (X87MODEI12): Ditto.
12437 (SSEMODEI24): Ditto.
12438
12439 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12440
12441 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
12442 * doc/invoke.texi: Document max-vartrack-expr-depth.
12443 * var-tracking.c (EXPR_DEPTH): New.
12444 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
12445
12446 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12447
12448 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
12449 * config/i386/sse.md: Add n to negated FMA pattern names.
12450
12451 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12452
12453 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
12454
12455 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12456
12457 * gengtype-state.c (read_state_params_structs): Initialize previous.
12458
12459 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12460
12461 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
12462 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
12463
12464 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12465
12466 * config/i386/i386.md (*movtf_internal): Avoid allocating general
12467 registers. Penalize F*r->o alternative to prevent partial memory
12468 stalls. Slightly penalize *roF->*r alternative. Generate SSE
12469 CONST_DOUBLE immediates when optimizing function for size. Do not move
12470 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12471 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
12472 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
12473 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
12474 alternatives.
12475 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
12476
12477 (fp_register_operand splitters): Use fp_register_operand
12478 constraint. Do not use FP_REG_P in insn condition.
12479 (any_fp_register_operand splitters): Use any_fp_register_operand
12480 constraint. Do not use ANY_FP_REG_P in insn condition.
12481
12482 2011-05-31 Jan Hubicka <jh@suse.cz>
12483
12484 * cgraph.h (cgraph_inline_failed_t): Give enum a name
12485 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
12486 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
12487 (lto_output_edge): Use output_enum and var_len_unsigned.
12488 (lto_output_varpool_node): Likewise.
12489 (input_overwrite_node): Do not take resolution parameter;
12490 extract it from a bitpack.
12491 (input_node): Do not read resolution; use input_enum and
12492 var_len_unsigned.
12493 (input_varpool_node): Likewise.
12494 (input_edge): Likewise.
12495 (input_cgraph_1): Likewise.
12496
12497 2011-05-31 Richard Guenther <rguenther@suse.de>
12498
12499 * gimple.c (gimple_register_canonical_type): Do not register
12500 any types via gimple_register_type.
12501
12502 2011-05-31 Jan Hubicka <jh@suse.cz>
12503
12504 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
12505 of thunks.
12506
12507 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12508
12509 PR rtl-optimization/49235
12510 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
12511 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
12512
12513 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
12514
12515 PR tree-optimization/49093
12516 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
12517 data references.
12518
12519 2011-05-31 Dodji Seketeli <dodji@redhat.com>
12520
12521 PR debug/49047
12522 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
12523 for concrete functions containing the code of cloned functions.
12524
12525 2011-05-31 Richard Guenther <rguenther@suse.de>
12526
12527 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
12528 to ...
12529 (forward_propagate_into_comparison_1): ... this.
12530 (forward_propagate_comparison): Rename to ...
12531 (forward_propagate_into_comparison): ... this. Split out
12532 real forward propagation code to ...
12533 (forward_propagate_comparison): ... this.
12534 (forward_propagate_into_gimple_cond): Remove looping.
12535 (forward_propagate_into_cond): Likewise.
12536 (simplify_not_neg_expr): Return whether we have done something.
12537 (simplify_gimple_switch): Likewise.
12538 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
12539 (ssa_forward_propagate_and_combine): ... this. Re-structure
12540 to do a forward forward-propagation walk on BBs and a backward
12541 stmt combining walk on BBs. Consistently re-scan changed statements.
12542 (pass_forwprop): Adjust.
12543
12544 2011-05-30 Ian Lance Taylor <iant@google.com>
12545
12546 * godump.c (go_format_type): Correct length of name added to
12547 obstack for anonymous field.
12548
12549 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
12550
12551 PR target/49186
12552 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
12553 part of the second operand is 0.
12554
12555 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
12556
12557 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12558 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
12559 to memory for !TARGET_MEMORY_MISMATCH_STALL.
12560 (*movdf_internal_rex64): Do not penalize F->r alternative.
12561 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12562 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
12563 when optimizing function for size. Do not move CONST_DOUBLEs
12564 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12565 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
12566 SUBREGs. Do not check for MEM_P operands in the insn condition,
12567 check for ANY_FP_REGNO_P instead.
12568 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12569 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12570 function for speed.
12571 * config/i386/i386.c (ix86_option_override_internal): Do not
12572 set TARGET_INTEGER_DFMODE_MOVES here.
12573
12574 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
12575
12576 PR target/49168
12577 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12578
12579 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12580
12581 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12582 DW_TAG_rvalue_reference_type even for
12583 -gdwarf-4 -fno-debug-types-section.
12584
12585 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12586
12587 PR tree-optimization/46728
12588 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12589 (build_and_insert_binop): New.
12590 (gimple_expand_builtin_pow): Reorder args for
12591 build_and_insert_call; use build_and_insert_binop; add more
12592 optimizations for fractional exponents.
12593
12594 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
12595
12596 PR bootstrap/49190
12597
12598 Revert:
12599 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12600
12601 * tree.h (struct tree_identifier): Inherit from tree_typed, not
12602 tree_common.
12603 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12604 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12605 TS_BASE instead of TS_COMMON.
12606 * varasm.c (assemble_name): Remove assert.
12607
12608 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
12609
12610 * config.gcc: Keep obselete list sorted.
12611
12612 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12613 Eric Botcazou <ebotcazou@adacore.com>
12614
12615 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12616 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12617 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12618 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12619 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12620
12621 2011-05-30 Richard Guenther <rguenther@suse.de>
12622
12623 * gimple.c (gimple_types_compatible_p_1): Compare record
12624 and union type members properly.
12625
12626 2011-05-30 Richard Guenther <rguenther@suse.de>
12627
12628 PR tree-optimization/49210
12629 * ipa-split.c (split_function): Care for the case where the call
12630 result is not trivially convertible to the result holding variable.
12631
12632 2011-05-30 Richard Guenther <rguenther@suse.de>
12633
12634 PR tree-optimization/49218
12635 * tree-vrp.c (adjust_range_with_scev): Properly check whether
12636 overflow occured.
12637
12638 2011-05-30 Richard Guenther <rguenther@suse.de>
12639
12640 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12641 New function split out from ...
12642 (forward_propagate_into_gimple_cond): ... here. Adjust.
12643 (forward_propagate_into_cond): Likewise.
12644 (forward_propagate_comparison): Also propagate into
12645 comparisons on assignment RHS. Change return value to
12646 behave similar to forward_propagate_into_cond.
12647 (tree_ssa_forward_propagate_single_use_vars): Handle
12648 strict-overflow warnings properly for forward_propagate_comparison.
12649
12650 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12651
12652 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12653 from plugin linker.
12654 * configure: Regenerate.
12655
12656 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
12657
12658 PR tree-optimization/49199
12659 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12660 non-reduction operands are either defined in the loop or by induction.
12661
12662 2011-05-29 Xinliang David Li <davidxl@google.com>
12663
12664 * opts-global.c (handle_common_deferred_options): Handle new options.
12665 * passes.c (register_one_dump_file): Call register_pass_name.
12666 (execute_one_pass): Check explicit enable/disable flag.
12667 (passr_hash): New function.
12668 (passr_eq): Ditto.
12669 (register_pass_name): Ditto.
12670 (get_pass_by_name): Ditto.
12671 (pass_hash): Ditto.
12672 (pass_eq): Ditto.
12673 (enable_pass): Ditto.
12674 (disable_pass): Ditto.
12675 (is_pass_explicitly_enabled_or_disabled): Ditto.
12676
12677 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
12678
12679 * config/i386/i386.md (*movoi_internal_avx): Use
12680 standard_sse_constant_opcode for alternative 0.
12681 (*movti_internal_sse): Ditto.
12682 (*movti_internal_rex64): Use standard_sse_constant_opcode for
12683 alternative 2.
12684 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12685 sselog1 type moves.
12686 (*movsi_internal): Ditto.
12687 (*movdi_internal): Ditto. Add ssecvt type moves.
12688
12689 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
12690
12691 PR target/48830
12692 * rtlanal.c (simplify_subreg_regno): Adjust comment.
12693
12694 2011-05-29 Jakub Jelinek <jakub@redhat.com>
12695
12696 PR rtl-optimization/49095
12697 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12698 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12699
12700 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12701
12702 PR target/43995
12703 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12704 recurse_p argument. Only follow register copies if it is set,
12705 and prevent mips_find_pic_call_symbol from recursing.
12706 (mips_find_pic_call_symbol): Add a recurse_p argument.
12707 Pass it to mips_pic_call_symbol_from_set.
12708 (mips_annotate_pic_calls): Update accordingly.
12709
12710 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12711
12712 * emit-rtl.c (try_split): Use a loop to search for
12713 NOTE_INSN_CALL_ARG_LOCATIONs.
12714
12715 2011-05-29 Richard Guenther <rguenther@suse.de>
12716
12717 PR tree-optimization/49217
12718 * ipa-pure-const.c (propagate_pure_const): Fix typos.
12719
12720 2011-05-28 Jan Hubicka <jh@suse.cz>
12721
12722 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12723 length.
12724 (string_slot_free): Remove
12725 (create_output_block): Initialize obstack.
12726 (destroy_output_block): Free obstack.
12727 (lto_string_index): Add PERSISTENT parameter; do not duplicate
12728 the string unless it needs to be added into the hash.
12729 (lto_output_string_with_length): Add persistent attribute;
12730 handle NULL strings.
12731 (lto_output_string): Add PERSISTENT parameter.
12732 (output_string_cst, output_identifier): Simplify.
12733 (lto_output_location_bitpack): Update.
12734 (lto_output_builtin_tree): Update.
12735 * lto-streamer.h (struct output_block): Add obstack.
12736 (lto_output_string, lto_output_string_with_length): Remove
12737 declarations; functions are static now.
12738
12739 2011-05-28 Jan Hubicka <jh@suse.cz>
12740
12741 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12742 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12743 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12744 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12745 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12746 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12747 unpack_ts_decl_with_vis_value_fields,
12748 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12749 lto_get_builtin_tree): Use enum and variable length i/o.
12750 * basic-block.h (profile_status_d): Add PROFILE_LAST.
12751 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12752 New functions.
12753 (bp_pack_enum, bp_unpack_enum): New macros.
12754
12755 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12756
12757 * genrecog.c: Remove redundant forward declarations.
12758
12759 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12760
12761 * config.gcc: Deprecate mips*-*-openbsd*.
12762
12763 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12764
12765 PR bootstrap/49195
12766 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12767 for match_op_dup.
12768
12769 2011-05-27 Andrew Pinski <pinskia@gmail.com>
12770
12771 PR middle-end/48981
12772 * gengtype.c (vec_prefix_type): New function.
12773 (note_def_vec): Use vec_prefix_type and change the length
12774 attribute to be based on the prefix.
12775 * vec.c: Include coretypes.h before vec.h.
12776 (struct vec_prefix): Remove.
12777 (vec_gc_p_reserve): Change the offsetof to sizeof.
12778 (vec_gc_p_reserve_exact): Likewise.
12779 (vec_heap_p_reserve): Likewise.
12780 (vec_heap_p_reserve_exact): Likewise.
12781 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
12782 (vec_stack_p_reserve): Change the offsetof to sizeof.
12783 (vec_stack_p_reserve_exact): Likewise.
12784 * vec.h (struct vec_prefix): New struct definition.
12785 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
12786 (VEC_T_GTY(T,B)): Likewise.
12787 (DEF_VEC_FUNC_P(T)): Use prefix field.
12788 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
12789 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
12790
12791 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12792
12793 PR tree-optimization/46728
12794 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
12795 (powi_as_mults): Add gimple_set_location.
12796 (build_and_insert_call): New.
12797 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
12798 0.5, 0.25, 0.75, 1./3., or 1./6.
12799
12800 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
12801
12802 * doc/contrib.texi: Update copyright years.
12803 (Contributors): Add Zdenek Sojka.
12804
12805 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
12806
12807 * c-decl.c (c_push_function_context): Copy the current statement
12808 list stack.
12809 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
12810 (finish_struct): Call building_stmt_list_p instead of checking
12811 cur_stmt_list.
12812 * c-parser.c (c_parser_postfix_expression): Likewise.
12813 * c-typeck.c (c_end_compound_stmt): Likewise.
12814 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
12815 * tree-iterator.c (stmt_list_cache): Change to a VEC.
12816 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
12817 (free_stmt_list): Likewise.
12818 * tree.h (struct tree_statement_list): Include typed_tree instead
12819 of tree_common.
12820 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
12821 as TS_TYPED instead of TS_COMMON.
12822
12823 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12824 Uros Bizjak <ubizjak@gmail.com>
12825
12826 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
12827 (HAVE_AS_IX86_TLSGDPTL): Define.
12828 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
12829 (HAVE_AS_IX86_TLSLDMPLT): Define.
12830 * configure: Regenerate.
12831 * config.in: Regenerate.
12832 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
12833 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12834 TARGET_SUN_TLS, use @tlsgdplt or @plt.
12835 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
12836 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
12837 @tlsldmplt or @plt.
12838 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
12839
12840 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
12841
12842 * sched-int.h (struct _haifa_deps_insn_data): New members cond
12843 and reverse_cond.
12844 (INSN_COND, INSN_REVERSE_COND): New macros.
12845 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12846 once.
12847 (sched_get_condition_with_rev): Cache the results, and look them up
12848 if possible.
12849 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12850 are clobbered by the current insn.
12851 * target.def (exposed_pipline): New sched data hook.
12852 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12853 * doc/tm.texi: Regenerate.
12854
12855 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12856
12857 PR tree-optimization/49170
12858 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
12859 sincos or cexp.
12860
12861 2011-05-27 Richard Guenther <rguenther@suse.de>
12862
12863 PR middle-end/49189
12864 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12865 of comparisons.
12866
12867 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
12868
12869 * haifa-sched.c (sched_scan_info): Remove.
12870 (schedule_block): Call sched_extend_luids rather than sched_init_luids
12871 with NULL args.
12872 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12873 Remove functions.
12874 (sched_scan): Remove.
12875 (sched_extend_luids): Renamed from luids_extend_insn and no longer
12876 static. All callers changed.
12877 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12878 static. All callers changed.
12879 (sched_init_luids): Remove all arguments except the first. All
12880 callers changed. Don't use sched_scan.
12881 (haifa_init_h_i_d): Likewise.
12882 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12883 manually rather than using sched_init_luids. Likewise with
12884 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12885 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12886 rather than sched_init_luids with NULL args.
12887 * sel-sched-ir.c (new_insns): Remove variable.
12888 (sched_scan): New static function, previously in haifa-sched.c. Remove
12889 all arguments but the first two; all callers changed.
12890 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12891 rather than sched_init_luids.
12892 (sel_init_bbs): Remove second argument. All callers changed.
12893 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12894 with NULL arguments.
12895 (create_insn_rtx_from_pattern): Likewise.
12896 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12897 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12898 (sched_init_insn_luid, sched_extend_luids): Declare.
12899 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12900 declarations.
12901
12902 2011-05-27 Richard Guenther <rguenther@suse.de>
12903
12904 PR middle-end/49177
12905 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12906 A CMP B ? (T) true : (T) false for non-integral types T again.
12907
12908 2011-05-27 Jan Hubicka <jh@suse.cz>
12909
12910 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12911 so 0 means NULL string.
12912 (lto_output_string_with_length): ... here.
12913 (lto_output_string, output_string_cst, output_identifier): Update
12914 handling of NULL strings.
12915 (lto_output_location_bitpack): New function.
12916 (lto_output_location): Use it.
12917 (lto_output_tree_ref): Use output_record_start.
12918 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12919 len values.
12920 * lto-streamer-in.c (string_for_index): Break out from ...; offset
12921 values by 1.
12922 (input_string_internal): ... here;
12923 (input_string_cst, input_identifier, lto_input_string): Update handling
12924 of NULL strings.
12925 (lto_input_location_bitpack): New function
12926 (lto_input_location): Use it.
12927 (unpack_ts_type_common_value_fields): Pack align & alias in var len
12928 values.
12929 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12930 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12931 (bp_pack_value): Sanity check the value range.
12932 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12933 New functions.
12934 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12935 New functions.
12936
12937 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
12938
12939 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12940 call_arg_location instructions down the floor.
12941
12942 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
12943
12944 PR rtl-optimization/49154
12945 * ira.c (setup_pressure_classes): Process class without sublcasses
12946 as a candidate for pressure classes.
12947
12948 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
12949
12950 PR rtl-optimization/48575
12951 * genrecog.c (position_type): New enum.
12952 (position): New structure.
12953 (decision): Use position structure instead of a string.
12954 (root_pos, peep2_insn_pos_list): New variables.
12955 (next_position, compare_positions): New functions.
12956 (new_decision): Use position structures instead of strings.
12957 (maybe_both_true): Likewise.
12958 (change_state): Likewise.
12959 (write_tree): Likewise.
12960 (make_insn_sequence): Likewise.
12961
12962 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12963
12964 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12965 TS_BASE instead of TS_COMMON.
12966 (find_decls_types_r): Check for TS_TYPED structure before looking at
12967 TREE_TYPE.
12968 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12969 Add chain field.
12970 (BLOCK_CHAIN): Use new chain field.
12971
12972 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
12973
12974 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12975 moves expensive on Power7 also.
12976
12977 2011-05-26 Richard Guenther <rguenther@suse.de>
12978
12979 * fold-const.c (fold_unary_loc): Remove bogus code.
12980
12981 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12982
12983 * tree.h (struct tree_identifier): Inherit from tree_typed, not
12984 tree_common.
12985 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12986 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12987 TS_BASE instead of TS_COMMON.
12988 * varasm.c (assemble_name): Remove assert.
12989
12990 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
12991
12992 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12993 substituted first.
12994 * libgcc-std.ver: Delete file.
12995
12996 2011-05-26 Richard Guenther <rguenther@suse.de>
12997
12998 PR tree-optimization/48702
12999 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
13000 only when we know the base address is within bounds.
13001 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
13002 assume the base address of TARGET_MEM_REFs is in bounds.
13003
13004 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13005
13006 PR target/49099
13007 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
13008 declaration in TARGET_SOLARIS.
13009
13010 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
13011
13012 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
13013 The instruction is then expanded explicitly.
13014 (supported_compare): Callable instruction.
13015 (compare): Likewise.
13016
13017 2011-05-26 Jakub Jelinek <jakub@redhat.com>
13018
13019 PR c++/49165
13020 * gimplify.c (shortcut_cond_r): Don't special case
13021 COND_EXPRs if they have void type on one of their arms.
13022
13023 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
13024
13025 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
13026 to reduce duplication, and to achieve a slightly more logical order
13027 of operations.
13028
13029 2011-05-26 Jakub Jelinek <jakub@redhat.com>
13030
13031 PR tree-optimization/49161
13032 * tree-vrp.c (struct case_info): New type.
13033 (compare_case_labels): Sort case_info structs instead of
13034 trees, and not primarily by CASE_LABEL uids but by
13035 label_for_block indexes.
13036 (find_switch_asserts): Put case labels into struct case_info
13037 array instead of TREE_VEC, adjust sorting, compare label_for_block
13038 values instead of CASE_LABELs.
13039
13040 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13041
13042 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
13043 ("orndi3_neon"): Likewise.
13044 ("bic<mode>3_neon"): Likewise.
13045
13046 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
13047
13048 PR tree-optimization/49038
13049 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
13050 Ensure at least one epilogue iteration if required by data
13051 accesses with gaps.
13052 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13053 to mark loops that require peeling for gaps.
13054 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
13055 (vect_get_known_peeling_cost): Take peeling for gaps into
13056 account.
13057 (vect_transform_loop): Generate epilogue if required by data
13058 access with gaps.
13059 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
13060 loop as requiring an epilogue if there are gaps in the end of
13061 the strided group.
13062
13063 2011-05-25 Ian Lance Taylor <iant@google.com>
13064
13065 * godump.c (go_format_type): Output the first field with a usable
13066 Go type, if any.
13067
13068 2011-05-25 Ian Lance Taylor <iant@google.com>
13069
13070 * godump.c (go_format_type): Check for invalid type names, pointer
13071 target types, and struct field types.
13072
13073 2011-05-25 Jason Merrill <jason@redhat.com>
13074
13075 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
13076
13077 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
13078
13079 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
13080
13081 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13082
13083 * config/i386/i386.md (*movqi_extv_1)): Put back
13084 "register_operand" check in "type" calculation.
13085 (*movqi_extzv_2): Likewise.
13086
13087 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13088
13089 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
13090
13091 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13092
13093 PR bootstrap/49160
13094 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
13095 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
13096 __divxc3, __divtc3): Wrap definitions in #ifndef.
13097
13098 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13099
13100 PR target/49142
13101 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
13102 "register_operand" check and replace q_regs_operand with
13103 QIreg_operand in "type" calculation.
13104 (*movqi_extv_1): Likewise.
13105 (*movqi_extzv_2_rex64): Likewise.
13106 (*movqi_extzv_2): Likewise.
13107
13108 * config/i386/predicates.md (QIreg_operand): New.
13109
13110 2011-05-25 Richard Guenther <rguenther@suse.de>
13111
13112 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13113 type-based offset disambiguation, streamline MEM_REF and
13114 TARGET_MEM_REF handling.
13115
13116 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13117
13118 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
13119 (bdesc_special_args): Add pause intrinsic.
13120
13121 * config/i386/i386.md (UNSPEC_PAUSE): New.
13122 (pause): Likewise.
13123 (*pause): Likewise.
13124 * config/i386/ia32intrin.h (__pause): Likewise.
13125
13126 * doc/extend.texi (X86 Built-in Functions): Add documentation for
13127 pause intrinsic.
13128
13129 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13130
13131 PR tree-optimization/46728
13132 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
13133 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
13134
13135 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
13136
13137 * tree.h (struct tree_exp): Inherit from struct tree_typed.
13138 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
13139 instead of TS_COMMON.
13140
13141 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13142
13143 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
13144 LIBGCC2_GNU_PREFIX is defined.
13145 (__N): New macro.
13146 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
13147 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
13148 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
13149 __clz_tab): Define using __N.
13150 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
13151 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
13152 * target.def (libfunc_gnu_prefix): New hook.
13153 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
13154 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
13155 * doc/tm.texi: Regenerate.
13156 * system.h (LIBGCC2_GNU_PREFIX): Poison.
13157 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
13158 account.
13159 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
13160 (init_optabs): Likewise for the bswap libfuncs.
13161 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
13162 and divide.
13163 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
13164 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
13165 * libgcc-std.ver: Remove.
13166 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
13167 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
13168 libgcc-std.ver.
13169 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13170 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
13171 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
13172 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
13173 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
13174 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13175 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13176 * config/fixed-bit.h (FIXED_OP): Define differently depending on
13177 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
13178 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
13179
13180 2011-05-25 Jan Hubicka <jh@suse.cz>
13181
13182 * lto-streamer-out.c (output_record_start): Use lto_output_enum
13183 (lto_output_tree): Use output_record_start.
13184 * lto-streamer-in.c (input_record_start): Use lto_input_enum
13185 (lto_get_pickled_tree): Use input_record_start.
13186 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
13187 (lto_value_range_error): New function.
13188 * lto-streamer.h (lto_value_range_error): Declare.
13189 (lto_output_int_in_range, lto_input_int_in_range): New functions.
13190 (lto_output_enum, lto_input_enum): New macros.
13191
13192 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
13193
13194 * common.opt (flag_stack_usage_info): New variable.
13195 (-Wstack-usage): New option.
13196 * doc/invoke.texi (Warning options): Document -Wstack-usage.
13197 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
13198 <OPT_fstack_usage>: Likewise.
13199 * toplev.c (output_stack_usage): Handle -Wstack-usage.
13200 * calls.c (expand_call): Test flag_stack_usage_info variable instead
13201 of flag_stack_usage.
13202 (emit_library_call_value_1): Likewise.
13203 * explow.c (allocate_dynamic_stack_space): Likewise.
13204 * function.c (instantiate_virtual_regs ): Likewise.
13205 (prepare_function_start): Likewise.
13206 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
13207 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
13208 * config/arm/arm.c (arm_expand_prologue): Likewise.
13209 (thumb1_expand_prologue): Likewise.
13210 * config/avr/avr.c (expand_prologue): Likewise.
13211 * config/i386/i386.c (ix86_expand_prologue): Likewise.
13212 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13213 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
13214 * config/mips/mips.c (mips_expand_prologue): Likewise.
13215 * config/pa/pa.c (hppa_expand_prologue): Likewise.
13216 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13217 * config/s390/s390.c (s390_emit_prologue): Likewise.
13218 * config/sh/sh.c (sh_expand_prologue): Likewise.
13219 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13220 * config/spu/spu.c (spu_expand_prologue): Likewise.
13221
13222 2011-05-25 Richard Guenther <rguenther@suse.de>
13223
13224 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
13225 (gimple_canonical_types_compatible_p): Likewise.
13226
13227 2011-05-25 Jan Hubicka <jh@suse.cz>
13228
13229 PR middle-end/49062
13230 * ipa.c (function_and_variable_visibility): Only add to same
13231 comdat group list if DECL_ONE_ONLY.
13232
13233 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
13234
13235 PR rtl-optimization/49014
13236 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
13237
13238 2011-05-25 Jakub Jelinek <jakub@redhat.com>
13239
13240 PR target/49128
13241 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13242
13243 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13244
13245 PR rtl-optimization/48757
13246 * ira-build.c (loop_with_eh_edge_p): Rename to
13247 loop_with_complex_edge_p, check edges on complexity, make function
13248 conditional.
13249 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13250 conditional.
13251
13252 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13253
13254 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13255 force flag_ira_share_save_slots to 0.
13256
13257 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13258
13259 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13260 (vt_initialize): Set PROLOGUE_BB unconditionally.
13261 Add block comment about CFA_BASE_RTX machinery.
13262 Reset FP_CFA_OFFSET to -1 on all invalid paths.
13263 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13264
13265 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
13266
13267 PR objc/48187
13268 * c-parser.c (c_parser_objc_class_instance_variables): More robust
13269 parsing of syntax error in ObjC instance variable lists. In
13270 particular, avoid an infinite loop if there is a stray ']'.
13271 Updated error message.
13272
13273 2011-05-24 Ian Lance Taylor <iant@google.com>
13274
13275 * godump.c (go_define): Don't accept a string immediately after
13276 another operand.
13277
13278 2011-05-24 Ian Lance Taylor <iant@google.com>
13279
13280 * godump.c (struct godump_container): Add invalid_hash field.
13281 (go_format_type): Return false if type is found in invalid_hash.
13282 (go_output_typedef): Add invalid type to invalid_hash.
13283 (go_finish): Create and delete invalid_hash.
13284
13285 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13286
13287 PR tree-optimization/46728
13288 * tree-ssa-math-opts.c (powi_table): New.
13289 (powi_lookup_cost): New.
13290 (powi_cost): New.
13291 (powi_as_mults_1): New.
13292 (powi_as_mults): New.
13293 (gimple_expand_builtin_powi): New.
13294 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13295 (gate_cse_sincos): Remove sincos/cexp restriction.
13296
13297 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13298
13299 PR target/3746
13300 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13301 mips-tdump native.
13302 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13303 * mips-tdump.c: Likewise.
13304
13305 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
13306
13307 PR target/49128
13308 * config/i386/driver-i386.c (host_detect_local_cpu): Always
13309 add -mno-XXX. Handle FMA.
13310
13311 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13312
13313 PR rtl-optimization/48633
13314 * ira-build.c (loop_with_eh_edge_p): New function.
13315 (mark_loops_for_removal): Use it.
13316
13317 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13318
13319 PR rtl-optimization/48971
13320 * ira.c (setup_pressure_classes): Don't check register move cost
13321 for classes with one registers. Don't add pressure class if there
13322 is a pressure class with the same available hard registers.
13323 Check contains_reg_of_mode. Fix a typo in collecting
13324 temp_hard_regset. Ignore hard registers not belonging to a class.
13325
13326 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
13327
13328 PR target/49133
13329 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
13330
13331 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13332 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13333
13334 PR gcov-profile/48845
13335 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
13336
13337 2011-05-24 Richard Guenther <rguenther@suse.de>
13338
13339 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
13340 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
13341 (gimple_types_compatible_p_1): Adjust.
13342 (iterative_hash_canonical_type): Do not bother about complete vs.
13343 incomplete types.
13344 (gimple_canonical_types_compatible_p): Likewise.
13345
13346 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13347
13348 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
13349
13350 2011-05-24 Richard Guenther <rguenther@suse.de>
13351
13352 PR bootstrap/49078
13353 * gimple.c (gimple_register_canonical_type): Revert
13354 previous change.
13355 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
13356 does not for a tree for the case where it matters. Cache
13357 pointer-type alias-sets.
13358
13359 2011-05-24 Joseph Myers <joseph@codesourcery.com>
13360
13361 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
13362 (OBJS): Remove options.o, opts-common.o and prefix.o.
13363 (OBJS-libcommon-target): New.
13364 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
13365 (BACKEND): Include libcommon-target.a.
13366 (MOSTLYCLEANFILES): Include libcommon-target.a.
13367 (libcommon-target.a): New.
13368 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
13369 prefix.o.
13370
13371 2011-05-23 Joseph Myers <joseph@codesourcery.com>
13372
13373 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
13374 parts of output shared with the driver.
13375 * optc-gen.awk: Don't generate parts of output not shared with the
13376 driver.
13377 * opth-gen.awk: Remove GCC_DRIVER conditionals.
13378 * doc/options.texi (SourcerInclude): Mention options-save.c.
13379 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
13380 (OBJS): Add options-save.o.
13381 (options-save.c, options-save.o): New.
13382 (options.o): Update dependencies.
13383 (gcc-options.o): Remove.
13384 (mostlyclean): Remove options-save.c.
13385
13386 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13387
13388 PR debug/49032
13389 * dbxout.c: Include cgraph.h.
13390 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
13391 and without value expr, return NULL if no varpool node exists for
13392 it or if it is not needed.
13393 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
13394
13395 PR c/49120
13396 * c-decl.c (start_decl): Convert expr to void_type_node.
13397
13398 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
13399
13400 PR rtl-optimization/48826
13401 * emit-rtl.c (try_split): When splitting a call that is followed
13402 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
13403
13404 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13405
13406 * cfgexpand.c (expand_debug_expr): For unused non-addressable
13407 parameters passed in memory prefer using DECL_INCOMING_RTL over
13408 the pseudos it will be copied into.
13409
13410 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
13411
13412 PR target/47315
13413 * config/i386/i386.c (ix86_option_override_internal): Save the
13414 initial options after checking vzeroupper.
13415
13416 2011-05-23 David Li <davidxl@google.com>
13417
13418 PR tree-optimization/48988
13419 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
13420 Initialize has_valid_pred for each pred chain.
13421
13422 2011-05-23 Richard Guenther <rguenther@suse.de>
13423
13424 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
13425 (iterative_hash_gimple_type): Always hash type names.
13426
13427 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
13428
13429 * c-typeck.c (build_function_call_vec): Tweak call to
13430 check_function_arguments.
13431
13432 2011-05-23 Richard Guenther <rguenther@suse.de>
13433
13434 PR tree-optimization/49115
13435 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
13436 is not necessarily carried out, do not claim it kills the ref.
13437 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
13438
13439 2011-05-23 Richard Guenther <rguenther@suse.de>
13440
13441 PR middle-end/15419
13442 * builtins.c (fold_builtin_memory_op): Be less restrictive about
13443 what pointer types we accept for folding.
13444
13445 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13446
13447 * gthr-gnat.c: Remove.
13448 * gthr-gnat.h: Remove.
13449 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
13450 * config/t-freebsd (LIB2ADDEH): Likewise.
13451 * config/t-linux (LIB2ADDEH): Likewise.
13452 * config/t-sol2 (LIB2ADDEH): Likewise.
13453 * config/ia64/t-vms (LIB2ADDEH): Likewise.
13454 * configure.ac (target_thread_file): Remove gnat handling.
13455 * configure: Regenerate.
13456 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
13457
13458 2011-05-23 Tristan Gingold <gingold@adacore.com>
13459 Eric Botcazou <ebotcazou@adacore.com>
13460
13461 * gcov.c (create_file_names): If no object directory is specified,
13462 keep the directory of the file.
13463
13464 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13465
13466 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
13467 * configure: Regenerate.
13468
13469 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13470
13471 PR middle-end/48973
13472 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
13473 failed and the comparison has a single bit signed type, use
13474 constm1_rtx instead of const1_rtx for true value.
13475 (do_store_flag): If ops->type is single bit signed type, disable
13476 signel bit test optimization and pass -1 instead of 1 as last
13477 parameter to emit_store_flag_force.
13478
13479 2011-05-23 Tom de Vries <tom@codesourcery.com>
13480
13481 PR target/45098
13482 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
13483 function.
13484 (infer_loop_bounds_from_undefined): Use new function.
13485
13486 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13487
13488 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
13489 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
13490 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
13491 and -O0 otherwise.
13492 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
13493
13494 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13495
13496 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
13497 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13498 returns true.
13499
13500 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13501
13502 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
13503
13504 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13505
13506 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
13507 UNSPEC_MOVE_PIC pattern.
13508
13509 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13510
13511 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
13512 (sparc-*-rtems*): Likewise.
13513 (sparc64-*-elf*): Likewise.
13514 (sparc64-*-rtems*): Likewise.
13515 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
13516 * config/sparc/t-crtin: New file.
13517 * config/sparc/t-sol2 (crti.o): Delete rule.
13518 (crtn.o): Likewise.
13519 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
13520 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13521 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
13522 (ENDFILE_SPEC): Add crtn.o.
13523
13524 2011-05-22 Tom de Vries <tom@codesourcery.com>
13525
13526 PR middle-end/48689
13527 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
13528 CODE_CONTAINS_STRUCT (TS_COMMON).
13529
13530 2011-05-22 Jakub Jelinek <jakub@redhat.com>
13531
13532 PR middle-end/49029
13533 * expmed.c (extract_fixed_bit_field): Test whether target can be used
13534 only after deciding which mode to use.
13535
13536 2011-05-22 Tom de Vries <tom@codesourcery.com>
13537
13538 PR target/45098
13539 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
13540 for call to get_shiftadd_cost.
13541
13542 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
13543
13544 PR target/49104
13545 * config/i386/cpuid.h (bit_MMXEXT): New define.
13546
13547 2011-05-22 Nick Clifton <nickc@redhat.com>
13548
13549 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
13550 initialisation of non-existant args[2] element. Use args[] array
13551 not arg[] array to pass arguments to build_function_type_list.
13552
13553 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
13554
13555 PR tree-optimization/49087
13556 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
13557
13558 2011-05-21 Jason Merrill <jason@redhat.com>
13559
13560 PR c++/49092
13561 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13562 static storage duration.
13563
13564 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13565
13566 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13567 frame pointer.
13568
13569 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13570
13571 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13572 false if there are call-saved registers here...
13573 (sparc_can_use_return_insn_p): ...but here instead.
13574 (save_or_restore_regs): Fix thinko.
13575 (sparc_expand_prologue): Use current_function_is_leaf.
13576 (sparc_frame_pointer_required): Likewise.
13577
13578 2011-05-21 Nick Clifton <nickc@redhat.com>
13579
13580 PR target/49098
13581 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13582
13583 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
13584
13585 * gengtype.c (walk_type): Implemented "atomic" GTY option.
13586 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13587
13588 2011-05-21 Joseph Myers <joseph@codesourcery.com>
13589
13590 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
13591 * optc-gen.awk: Move common code to opt-read.awk.
13592 * opth-gen.awk: Likewise.
13593 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13594
13595 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
13596
13597 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13598
13599 2011-05-20 Tom de Vries <tom@codesourcery.com>
13600
13601 PR target/45098
13602 * tree-ssa-loop-ivopts.c: Include expmed.h.
13603 (get_shiftadd_cost): New function.
13604 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
13605
13606 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13607
13608 PR bootstrap/49086
13609 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13610 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13611
13612 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13613
13614 * Makefile.in: Update comment referring to $(OBJS-common).
13615
13616 2011-05-20 Ian Lance Taylor <iant@google.com>
13617
13618 * godump.c (go_output_typedef): Put enum constants in the macro
13619 hash table to avoid duplicate Go const definitions.
13620
13621 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13622
13623 * Makefile.in (LIBDEPS): Add libcommon.a.
13624 (LIBS): Likewise.
13625 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13626 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13627 pretty-print.o and version.o.
13628 (OBJS-libcommon): New.
13629 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13630 (BACKEND): Add libcommon.a.
13631 (MOSTLYCLEANFILES): Likewise.
13632 (libcommon.a): New.
13633 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13634 (cpp$(exeext)): Likewise.
13635 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13636 pretty-print.o and input.o.
13637 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13638 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13639 (errors.o): Remove.
13640 (mips-tfile): Don't explicitly use version.o.
13641 (mips-tdump): Likewise.
13642 (gcov.o): Depend on $(DIAGNOSTIC_H).
13643 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13644 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13645 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13646 * gcov-dump.c: Include intl.h and diagnostic.h.
13647 (main): Initialize diagnostics.
13648 * gcov.c: Include diagnostic.h.
13649 (fnotice): Remove.
13650 (main): Initialize diagnostics.
13651 * lto-wrapper.c: Include diagnostic.h.
13652 (main): Initialize diagnostics.
13653
13654 2011-05-20 Michael Matz <matz@suse.de>
13655
13656 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13657
13658 2011-05-20 Michael Matz <matz@suse.de>
13659 Richard Guenther <rguenther@suse.de>
13660
13661 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13662 use lto_streamer_cache_append directly instead of returning a VEC.
13663 (preload_common_node): Remove.
13664 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13665 track seen nodes.
13666 (lto_streamer_cache_create): Call lto_preload_common_nodes.
13667
13668 2011-05-20 Richard Guenther <rguenther@suse.de>
13669
13670 PR tree-optimization/49079
13671 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13672 MEM_REFs correctly for the trailing array access detection.
13673 Special case constants the same way as decls for overall size
13674 constraining.
13675
13676 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
13677
13678 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13679 argument expansion.
13680
13681 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13682
13683 PR tree-optimization/49073
13684 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13685 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13686 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13687
13688 2011-05-20 Richard Guenther <rguenther@suse.de>
13689
13690 PR middle-end/48849
13691 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13692 of pointer types the same way the middle-end does.
13693
13694 2011-05-20 Richard Guenther <rguenther@suse.de>
13695
13696 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13697 or pointer-to chains. Delay all fixup to uniquify_nodes.
13698
13699 2011-05-19 Quentin Neill <quentin.neill@amd.com>
13700
13701 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13702 (fma4_fmaddsub): Likewise
13703
13704 2011-05-19 Jan Hubicka <jh@suse.cz>
13705
13706 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13707 (GIMPLE_TYPE_PAIR_SIZE): New macro.
13708 (type_pair_cache): New static var.
13709 (lookup_type_pair): Use fixed sized custom hash; make inline.
13710 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13711 calls of lookup_type_pair.
13712 (print_gimple_types_stats): Remove cache stats.
13713 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13714 and gtc_ob.
13715
13716 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
13717
13718 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13719 when TARGET_RDRND is active.
13720 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13721 Generate dummy SImode target register when target is NULL.
13722
13723 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13724
13725 * config/arm/arm-fpus.def: New.
13726 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13727 arm-fpus.def.
13728 * config/arm/arm-tables.opt: Regenerate.
13729 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13730 (arm_option_override): Don't decode FPU name to string here.
13731 * config/arm/arm.opt (mfpu=): Use Enum.
13732 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13733 Update dependencies.
13734
13735 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13736
13737 * collect2.c: Include diagnostic.h.
13738 (fatal_perror, fatal, error, fancy_abort): Remove.
13739 (main): Set progname. Call xmalloc_set_program_name and
13740 diagnostic_initialize.
13741 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13742 scan_libraries, resolve_lib_name): Call fatal_error instead of
13743 fatal and fatal_perror.
13744 * collect2.h (error, fatal, fatal_perror): Don't declare.
13745 * tlink.c: Include diagnostic-core.h.
13746 (recompile_files): Call fatal_error instead of fatal_perror.
13747 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13748 pretty-print.o and input.o.
13749 (collect2.o, tlink.o): Update dependencies.
13750
13751 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13752
13753 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13754
13755 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13756
13757 PR target/40483
13758 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13759 COMDAT group syntax, both SPARC and x86 variants.
13760 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13761 * configure: Regenerate.
13762 * config/sol2.h (TARGET_SOLARIS): Define.
13763 (PUSHSECTION_FORMAT): Remove.
13764 (SECTION_NAME_FORMAT): Define.
13765 * config/sol2.c: Include hashtab.h.
13766 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13767 expansion, using SECTION_NAME_FORMAT.
13768 (solaris_comdat_htab): New variable.
13769 (struct comdat_entry): Define.
13770 (comdat_hash): New function.
13771 (comdat_eq): New function.
13772 (solaris_elf_asm_comdat_section): New function.
13773 (solaris_define_comdat_signature): New function.
13774 (solaris_code_end): New function.
13775 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13776 (solaris_code_end): Declare.
13777 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13778 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
13779 solaris_code_end.
13780 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
13781 Remove ATTRIBUTE_UNUSED.
13782 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
13783 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
13784 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
13785 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
13786 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
13787 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
13788 (PUSHSECTION_FORMAT): Remove.
13789 (SECTION_NAME_FORMAT): Redefine.
13790
13791 2011-05-19 Kai Tietz <ktietz@redhat.com>
13792
13793 * tree-cfg.c (verify_gimple_assign_binary): Barf on
13794 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
13795 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
13796
13797 2011-05-19 Anatoly Sokolov <aesok@post.ru>
13798 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13799
13800 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
13801
13802 2011-05-19 Richard Guenther <rguenther@suse.de>
13803
13804 PR middle-end/48985
13805 * tree-object-size.c (addr_object_size): If the pointed-to
13806 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
13807
13808 2011-05-19 Richard Guenther <rguenther@suse.de>
13809
13810 * gimple.c (gimple_types_compatible_p_1): Compare names of
13811 the types themselves.
13812 (iterative_hash_gimple_type): And hash them that way.
13813 (gimple_register_type_1): If we register a main variant properly
13814 initialize the leader to ourselves.
13815
13816 2011-05-19 Tom de Vries <tom@codesourcery.com>
13817
13818 PR target/45098
13819 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
13820 get_loop_invariant_expr_id.
13821 (get_loop_invariant_expr_id): Use get_expr_id.
13822 (parm_decl_cost): New function.
13823 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
13824 Improve bound cost estimation. Use different inv_expr_id for elim and
13825 express cases.
13826
13827 2011-05-19 Tom de Vries <tom@codesourcery.com>
13828
13829 PR target/45098
13830 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
13831 cost_base.cost == 0.
13832
13833 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
13834
13835 PR target/49002
13836 * config/i386/sse.md
13837 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
13838 load cast.
13839
13840 2011-05-18 Jakub Jelinek <jakub@redhat.com>
13841
13842 PR tree-optimization/49039
13843 * tree-vrp.c (extract_range_from_binary_expr): For
13844 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13845 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13846
13847 2011-05-18 Tom de Vries <tom@codesourcery.com>
13848
13849 PR target/45098
13850 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13851
13852 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
13853
13854 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13855 (*tls_global_dynamic_64): Ditto.
13856 (*tls_local_dynamic_base_32_gnu): Ditto.
13857 (*tls_local_dynamic_base_64): Ditto.
13858 (tls_initial_exec_64_sun): Ditto.
13859
13860 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
13861
13862 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13863 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13864 bf592-none.
13865 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13866 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13867 * config/bfin/bfin.c (bfin_cpus): Add bf592.
13868 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13869 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13870 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13871 * config/bfin/elf.h (LIB_SPEC): Add bf592.
13872
13873 2011-05-18 Joseph Myers <joseph@codesourcery.com>
13874
13875 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13876 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13877 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13878 target_thread_pointer, arm_structure_size_boundary, struct
13879 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13880 struct abi_name, arm_all_abis): Remove.
13881 (arm_option_override) Don't process most enumerated option values here.
13882 Don't process target_fpe_name here. Work with integer not string for
13883 structure size boundary; use separate diagnostics for each case.
13884 * config/arm/arm.h (enum float_abi_type, enum
13885 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13886 to arm-opts.h.
13887 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13888 arm_structure_size_boundary): Remove.
13889 * config/arm/arm.opt (mabi=): Use Enum and Init.
13890 (arm_abi_type): New Enum and EnumValue entries.
13891 (mfloat-abi=): Use Enum and Init.
13892 (float_abi_type): New Enum and EnumValue entries.
13893 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13894 (mfp16-format=): Use Enum and Init.
13895 (arm_fp16_format_type): New Enum and EnumValue entries.
13896 (mstructure-size-boundary=): Use UInteger and Init.
13897 (mtp=): Use Enum and Init.
13898 (arm_tp_type): New Enum and EnumValue entries.
13899
13900 2011-05-18 Richard Guenther <rguenther@suse.de>
13901
13902 PR tree-optimization/49018
13903 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13904 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13905 gimple_has_side_effects.
13906
13907 2011-05-18 Richard Guenther <rguenther@suse.de>
13908
13909 * gimple.c (gimple_register_type_1): New function, split out from ...
13910 (gimple_register_type): ... here. Avoid infinite recursion.
13911
13912 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
13913
13914 PR tree-optimization/41881
13915 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13916 reduction_chains along with a macro for its access.
13917 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13918 (destroy_loop_vec_info): Free reduction chains.
13919 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13920 (vect_is_slp_reduction): New function.
13921 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13922 (vect_create_epilog_for_reduction): Support SLP reduction chains.
13923 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13924 definition types for reduction chains.
13925 (vect_supported_load_permutation_p): Don't allow permutations for
13926 reduction chains.
13927 (vect_analyze_slp_instance): Support reduction chains.
13928 (vect_analyze_slp): Try to build SLP instance from reduction chains.
13929 (vect_get_constant_vectors): Handle reduction chains.
13930 (vect_schedule_slp_instance): Mark the first statement of the
13931 reduction chain as reduction.
13932
13933 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
13934
13935 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13936 names for group elements access.
13937 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13938 reduction chains as well. Remove data reference and interleaving
13939 related words from the fields names.
13940 * tree-vect-loop.c (vect_transform_loop): Use new names for group
13941 elements access.
13942 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13943 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13944 vect_update_interleaving_chain, vect_same_range_drs,
13945 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13946 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13947 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13948 vect_analyze_group_access, vect_analyze_data_ref_access,
13949 vect_create_data_ref_ptr, vect_transform_strided_load,
13950 vect_record_strided_load_vectors): Likewise.
13951 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13952 vect_model_load_cost, vectorizable_store, vectorizable_load,
13953 vect_remove_stores, new_stmt_vec_info): Likewise.
13954 * tree-vect-slp.c (vect_build_slp_tree,
13955 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13956
13957 2011-05-18 Richard Guenther <rguenther@suse.de>
13958
13959 PR middle-end/48989
13960 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13961 operand verification.
13962 (verify_gimple_assign_binary): Likewise.
13963 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13964 to non-1-precision BOOLEAN_TYPEs.
13965
13966 2011-05-18 Tom de Vries <tom@codesourcery.com>
13967
13968 PR target/45098
13969 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13970
13971 2011-05-18 Jakub Jelinek <jakub@redhat.com>
13972
13973 PR tree-optimization/49000
13974 * tree-ssa.c (execute_update_addresses_taken): Call
13975 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
13976 be rewritten and decl has been marked for renaming, reset
13977 the debug stmt.
13978
13979 2011-05-17 Joseph Myers <joseph@codesourcery.com>
13980
13981 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13982 enum_opts_set when testing if attributes have set -mfpmath=.
13983
13984 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
13985
13986 * config/mips/mips.c (mips_handle_option): Remove unused variable.
13987
13988 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
13989
13990 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13991 info->entry with 0
13992 * tree-inline.c (maybe_inline_call_in_expr): Initialize
13993 id.transform_lang_insert_block with NULL.
13994
13995 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
13996
13997 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13998 (output_fp_compare): Change args 3 and 4 to bool.
13999 (ix86_expand_call): Change arg 6 to bool.
14000 (ix86_attr_length_immediate_default): Change arg 2 to bool.
14001 (ix86_attr_length_vex_default): Change arg 3 to bool.
14002 * config/i386/i386.md: Update all uses.
14003 * config/i386/i386.c: Ditto.
14004 (ix86_flags_dependent): Change return type to bool.
14005
14006 2011-05-17 Richard Guenther <rguenther@suse.de>
14007
14008 * gimple.c (type_hash_pair_compare): Fix comparison.
14009
14010 2011-05-17 Richard Guenther <rguenther@suse.de>
14011
14012 * gimple.c (iterative_hash_gimple_type): Simplify singleton
14013 case some more, fix final hash value of the non-singleton case.
14014
14015 2011-05-17 Richard Guenther <rguenther@suse.de>
14016
14017 PR bootstrap/49013
14018 Revert
14019 2011-05-16 Richard Guenther <rguenther@suse.de>
14020
14021 * gimple.c (gimple_types_compatible_p_1): Use names of the
14022 type itself, not its main variant.
14023 (iterative_hash_gimple_type): Likewise.
14024
14025 2011-05-17 Richard Guenther <rguenther@suse.de>
14026
14027 * gimple.c (gimple_register_canonical_type): Use the main-variant
14028 leader for computing the canonical type.
14029
14030 2011-05-17 Nick Clifton <nickc@redhat.com>
14031
14032 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
14033 moves.
14034
14035 * config/rx/rx.md: Add peephole to remove redundant extensions
14036 after loads.
14037 (bitset_in_memory): Use rx_restricted_mem_operand.
14038 (bitinvert_in_memory): Likewise.
14039 (bitclr_in_memory): Likewise.
14040
14041 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
14042 Nick Clifton <nickc@redhat.com>
14043
14044 * config/rx/rx.md: Add peepholes to match a register move followed
14045 by a comparison of the moved register. Replace these with an
14046 addition of zero that does both actions in one instruction.
14047
14048 2011-05-17 Jakub Jelinek <jakub@redhat.com>
14049
14050 PR target/48986
14051 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
14052 predicate to allow CONST_INT.
14053 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
14054
14055 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14056
14057 * opts-common.c (opt_enum_arg_to_value): New.
14058 * opts.h (opt_enum_arg_to_value): Declare.
14059 * config/i386/i386.opt (fpmath): Remove.
14060 (mfpmath=): Use Enum, Init and Save.
14061 (fpmath_unit): New Enum and EnumValue entries.
14062 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
14063 name for function fpmath state.
14064 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
14065 * config/i386/i386.c: Include diagnostic.h.
14066 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
14067 (ix86_target_string): Take enum fpmath_unit value instead of string.
14068 (ix86_debug_options): Update call to ix86_target_string.
14069 (ix86_option_override_internal): Don't process fpmath strings here.
14070 (x86_function_specific_save, ix86_function_specific_restore):
14071 Don't handle fpmath state specially.
14072 (ix86_function_specific_print): Pass fpmath state to
14073 ix86_target_string instead of printing in this function.
14074 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
14075 Handle enum attributes.
14076 (IX86_ATTR_ENUM, ix86_opt_enum): New.
14077 (ix86_valid_target_attribute_tree): Update option_strings
14078 handling. Handle fpmath as enum option.
14079 (ix86_can_inline_p): Update field names for function fpmath state.
14080 (ix86_expand_builtin): Update call to ix86_target_string.
14081 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
14082 (ix86_fpmath): Remove.
14083 * config/i386/t-i386 (i386.o): Update dependencies.
14084
14085 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14086
14087 PR preprocessor/48677
14088 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
14089 from decoded_options[0], not from itself.
14090
14091 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
14092
14093 * config/i386/constraints.md (z): New constraint.
14094 * config/i386/i386.c (c): New mode attribute.
14095 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
14096 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
14097 constraint for operand 0.
14098 (*call_vzeroupper): Ditto.
14099 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
14100 (*call_rex64_ms_sysv_vzeroupper): Ditto.
14101 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
14102 Use "lzm" constraint for operand 0.
14103 (*call_pop_vzeroupper): Ditto.
14104 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
14105 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
14106 constraint for operand 0.
14107 (*sibcall_vzeroupper): Ditto.
14108 (*sibcall_rex64_ms_sysv): Ditto.
14109 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
14110 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
14111 *sibcall_pop_1. Use "Uz" constraint for operand 0.
14112 (*sibcall_pop_vzeroupper): Ditto.
14113 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
14114 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
14115 mode iterator. Use "<c>zm" constraint for operand 1.
14116 (*call_value_vzeroupper): Ditto.
14117 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
14118 for operand 1.
14119 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
14120 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
14121 *call_value_pop_1. Use "lzm" constraint for operand 1.
14122 (*call_value_pop_vzeroupper): Ditto.
14123 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
14124 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
14125 mode iterator. Use "Uz" constraint for operand 1.
14126 (*sibcall_value_vzeroupper): Ditto.
14127 (*sibcall_value_rex64_ms_sysv): Ditto.
14128 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
14129 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
14130 constraint for operand 1.
14131 (*sibcall_value_pop_vzeroupper): Ditto.
14132 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
14133 and "z" constraint for operand 2.
14134 (*tls_global_dynamic_32_gnu): Ditto.
14135 (*tls_local_dynamic_base_32_gnu): Ditto.
14136 (*tls_local_dynamic_base_64): Ditto.
14137 (*tls_local_dynamic_32_once): Ditto.
14138 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
14139 Update all callers.
14140 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
14141
14142 2011-05-16 Richard Guenther <rguenther@suse.de>
14143
14144 * gimple.c (gimple_types_compatible_p_1): Use names of the
14145 type itself, not its main variant.
14146 (iterative_hash_gimple_type): Likewise.
14147
14148 2011-05-16 Richard Guenther <rguenther@suse.de>
14149
14150 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
14151 always visit pointer target and function result and argument types.
14152
14153 2011-05-16 Jason Merrill <jason@redhat.com>
14154
14155 PR c++/48999
14156 * tree-inline.c (copy_statement_list): Put back recursion.
14157
14158 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14159
14160 PR target/27663
14161 PR target/41076
14162 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
14163 * config/avr/avr.md ("*ior<mode>qi.byte0",
14164 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
14165
14166 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14167
14168 PR target/45099
14169 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
14170 register is needed for a function argument.
14171
14172 2011-05-16 Richard Guenther <rguenther@suse.de>
14173
14174 * gimple.c (struct type_hash_pair): New type.
14175 (type_hash_pair_compare): New function.
14176 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
14177
14178 2011-05-16 Revital Eres <revital.eres@linaro.org>
14179
14180 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
14181
14182 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14183
14184 * config/i386/i386.md (floating point move splitters): Fix
14185 usage of standard_80387_constant_p.
14186 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
14187
14188 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14189
14190 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
14191
14192 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
14193
14194 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
14195 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
14196 (tree_ssa_lim_finalize): Likewise.
14197
14198 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
14199
14200 * config/i386/constraint.md (Yd, Yx): New register constraints.
14201 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
14202 Yd conditional register constraint.
14203 (*movtf_internal): Use standard_sse_constant_opcode.
14204 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
14205 Yx conditional register constraint.
14206 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
14207 Yd conditional register constraint. Use standard_sse_constant_p to
14208 check for valid SSE constants and call standard_sse_constant_opcode to
14209 output SSE insn.
14210 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
14211 constants and call standard_sse_constant_opcode to output SSE insn.
14212 * config/i386/i386.c (ix86_option_ovverride_internal): Set
14213 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
14214 optimize_size is set.
14215 (standard_sse_constant_opcode): Output conditional AVX insn templates.
14216
14217 2011-05-14 Tobias Burnus <burnus@net-b.de>
14218
14219 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
14220
14221 2011-05-13 Martin Jambor <mjambor@suse.cz>
14222
14223 * ipa-prop.c (ipa_cst_from_jfunc): New function.
14224 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
14225 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
14226 (evaluate_conditions_for_ipcp_clone): Removed.
14227 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
14228 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
14229 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14230
14231 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
14232
14233 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
14234 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
14235 lieu of MAY_HAVE_DEBUG_STMTS.
14236 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
14237 debug statements if !MAY_HAVE_DEBUG_STMTS.
14238
14239 2011-05-13 Martin Thuresson <martint@google.com>
14240
14241 PR gcov-profile/47793
14242 * libgcov.c (gcov_exit): Support relative profile paths.
14243 * doc/invoke.texi (-fprofile-dir): Update for above change.
14244
14245 2011-05-13 Richard Guenther <rguenther@suse.de>
14246
14247 * gimple.c (gimple_canonical_types_compatible_p): Do not use
14248 type-pair caching, do not compare hashes.
14249
14250 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
14251
14252 PR middle-end/48965
14253 * tree-cfg.c (edge_to_cases_cleanup): Return true.
14254 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14255
14256 2011-05-13 Kai Tietz <ktietz@redhat.com>
14257
14258 * gimplify.c (gimplify_expr): Make sure operand is boolified.
14259 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14260 compatible type for TRUTH_NOT_EXPR.
14261
14262 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
14263
14264 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14265 (ix86_hard_regno_mode_ok): Change return value to bool. Use
14266 can_create_pseudo_p ().
14267
14268 2011-05-13 Richard Guenther <rguenther@suse.de>
14269
14270 PR lto/48978
14271 * gimple.c (iterative_hash_gimple_type): Revert change in
14272 pointer target and function result and argument hashing.
14273
14274 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
14275
14276 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14277 (*movxf_internal_nointeger): Ditto.
14278 (*movdf_internal_rex64): Ditto.
14279 (*movdf_internal): Ditto.
14280 (*movdf_internal_nointeger): Ditto.
14281 (*movsf_internal): Ditto.
14282 (sincos splitters): Use can_create_pseudo ().
14283
14284 2011-05-13 Joseph Myers <joseph@codesourcery.com>
14285
14286 * config/i386/i386-opts.h: New.
14287 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14288 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14289 ix86_section_threshold): Remove.
14290 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
14291 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14292 OPT_mbranch_cost_.
14293 (ix86_option_override_internal): Don't decode strings for options
14294 other than -march=, -mtune= and -mfpmath=. Don't allow for
14295 __attribute__ uses in remaining diagnostics for options with
14296 string arguments. Don't check for integer arguments being negative.
14297 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14298 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14299 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14300 ix86_branch_cost, ix86_section_threshold): Remove.
14301 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14302 HeaderInclude.
14303 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14304 but not Var.
14305 (masm=): Use Enum and Init.
14306 (asm_dialect): New Enum and EnumValue entries.
14307 (mbranch-cost=): Use UInteger.
14308 (mlarge-data-threshold=): Use UInteger and Init.
14309 (mcmodel=): Use Enum and Init.
14310 (cmodel): New Enum and EnumValue entries.
14311 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14312 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14313 mregparm=): Use UInteger.
14314 (mstringop-strategy=): Use Enum and Init.
14315 (stringop_alg): New Enum and EnumValue entries.
14316 (mtls-dialect=): Use Enum and Init.
14317 (tls_dialect): New Enum and EnumValue entries.
14318 (mabi=): Use Enum and Init.
14319 (calling_abi): New Enum and EnumValue entries.
14320 (mveclibabi=): Use Enum and Init.
14321 (ix86_veclibabi): New Enum and EnumValue entries.
14322
14323 2011-05-13 Nick Clifton <nickc@redhat.com>
14324
14325 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14326 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14327
14328 2011-05-13 Kai Tietz <ktietz@redhat.com>
14329
14330 PR middle-end/48984
14331 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
14332 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
14333 (gimple_boolify): Check for cast for boolean_type_node instead for
14334 BOOLEAN_TYPE.
14335
14336 2011-05-13 Richard Guenther <rguenther@suse.de>
14337
14338 PR tree-optimization/48172
14339 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
14340 multiplying by number of iterations for equal step.
14341 (vect_create_cond_for_alias_checks): Likewise.
14342
14343 2011-05-13 Andreas Schwab <schwab@redhat.com>
14344
14345 * configure.ac: Use AS_HELP_STRING throughout.
14346 * configure: Regenerate.
14347
14348 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
14349
14350 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
14351 (ix86_emit_restore_regs_using_mov): Likewise.
14352 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14353
14354 2011-05-12 Anatoly Sokolov <aesok@post.ru>
14355
14356 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
14357 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
14358 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
14359 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14360 RTX_OK_FOR_OLO10_P): ...here.
14361 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
14362 SYMBOLIC_CONST.
14363
14364 2011-05-12 Kai Tietz <ktietz@redhat.com>
14365
14366 * gimplify.c (gimple_boolify): Re-boolify expression
14367 arguments even if expression type is of kind BOOLEAN_TYPE.
14368 (gimplify_boolean_expr): Removed.
14369 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
14370 and XOR. Additional take care that we keep expression's type.
14371 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
14372 of TRUTH_AND|OR|XOR_EXPR.
14373
14374 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14375
14376 PR tree-optimization/48975
14377 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
14378 on all bbs here and free and clear ifc_bbs at the end.
14379
14380 2011-05-12 Richard Guenther <rguenther@suse.de>
14381
14382 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
14383 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
14384 until after simple checks.
14385 (gimple_types_compatible_p): Likewise.
14386 (iterative_hash_gimple_type): Always hash pointer targets
14387 and function return and argument types.
14388 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
14389 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
14390 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
14391 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
14392 completely in the simple compare section.
14393 (gimple_register_canonical_type): Query the cache again after
14394 registering.
14395
14396 2011-05-12 Richard Guenther <rguenther@suse.de>
14397
14398 PR tree-optimization/48172
14399 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
14400 the number of iterations from the segment size calculation.
14401 (vect_create_cond_for_alias_checks): Adjust.
14402
14403 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14404
14405 PR debug/48967
14406 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
14407 if validate_subreg fails.
14408
14409 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
14410
14411 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
14412 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
14413 early.
14414
14415 2011-05-12 DJ Delorie <dj@redhat.com>
14416
14417 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
14418 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
14419 created builtin into rx_builtins array.
14420 (rx_builtin_decl): New function.
14421 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
14422
14423 2011-05-12 DJ Delorie <dj@redhat.com>
14424 Nick Clifton <nickc@redhat.com>
14425
14426 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
14427 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
14428 (rx_is_legitimate_address): Add pre-decrement and post-increment
14429 addressing in HImode and QImode. Fix test for out of range
14430 REG+INT addressing.
14431 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
14432 (rx_align_for_label): Test label before extracting its usage count.
14433 (rx_adjust_insn_lengths): Fix selection of insn codes.
14434 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
14435
14436 2011-05-11 Jason Merrill <jason@redhat.com>
14437
14438 * tree.c (type_hash_canon): Use struct tree_type_non_common.
14439
14440 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14441
14442 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
14443 reindent the subsequent block.
14444
14445 2011-05-11 Satoru Takabayashi <satorux@google.com>
14446 Paul Pluzhnikov <ppluzhnikov@google.com>
14447
14448 * doc/install.texi (Configuration): Document --with-linker-hash-style.
14449 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
14450 * config.in: Add LINKER_HASH_STYLE.
14451 * configure.ac: Add --with-linker-hash-style.
14452 * configure: Regenerate.
14453
14454 2011-05-11 Richard Guenther <rguenther@suse.de>
14455
14456 PR middle-end/48964
14457 * gimple.c (iterative_hash_canonical_type): Fix typo.
14458
14459 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
14460
14461 * config/i386/i386.c (legitimize_tls_address)
14462 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14463 expanders directly for TARGET_GNU2_TLS. Determine pic and
14464 __tls_get_addr symbol reference here. Update call to
14465 gen_tls_global_dynamic_{32,64} for added arguments.
14466 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14467 expanders directly for TARGET_GNU2_TLS. Determine
14468 __tls_get_addr symbol reference here. Update call to
14469 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
14470 unique UNSPEC REG_EQUIV to libcall block.
14471 (ix86_tls_get_addr): Declare static.
14472 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
14473 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
14474 Do not determine pic and __tls_get_addr symbol reference here. Do not
14475 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
14476 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
14477 (tls_global_dynamic_64): Add operand 2. Do not determine
14478 __tls_get_addr symbol reference here. Do not call
14479 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
14480 (tls_local_dynamic_base64): Ditto for operand 1.
14481
14482 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14483
14484 * function.c (expand_function_start): Initialize stack_check_probe_note
14485 only if the generic stack checking mechanism is used.
14486
14487 2011-05-11 Richard Guenther <rguenther@suse.de>
14488
14489 PR tree-optimization/15256
14490 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
14491 (A & B) | C, combine (A op CST1) op CST2.
14492 (tree_ssa_forward_propagate_single_use_vars): Only bother to
14493 visit assigns that have uses.
14494
14495 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14496
14497 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
14498 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
14499 (unpack_ts_type_common_value_fields): ...this. Update comment.
14500 (unpack_value_fields): Adjust for renaming.
14501 (lto_input_ts_type_tree_pointers): Split into...
14502 (lto_input_ts_type_common_tree_pointer): ...this and...
14503 (lto_input_ts_type_non_common_tree_pointers): ...this.
14504 (lto_input_tree_pointers): Adjust for above split.
14505 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
14506 (pack_ts_type_common_value_fields): ...this. Update comment.
14507 (lto_output_ts_type_tree_pointers): Split into...
14508 (lto_output_ts_type_common_tree_pointers): ...this and...
14509 (lto_output_ts_type_non_common_tree_pointers): ...this.
14510 (lto_output_tree_pointers): Adjust for above split.
14511 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
14512 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
14513 * stor-layout.c (vector_type_mode): Adjust location of mode field.
14514 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
14515 Define.
14516 (struct tree_type): Split into...
14517 (struct tree_type_common: ...this and...
14518 (struct tree_type_with_lang_specific): ...this and...
14519 (struct tree_type_non_common): ...this. Adjust accessor macros
14520 accordingly.
14521 (TYPE_VALUES_RAW): Define.
14522 (union tree_node): Update for above changes.
14523 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
14524 TS_TYPE_NON_COMMON.
14525 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
14526 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
14527 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
14528 * treestructu.def (TS_TYPE): Remove.
14529 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
14530 Define.
14531
14532 2011-05-11 Jakub Jelinek <jakub@redhat.com>
14533
14534 PR debug/48159
14535 * tree-ssa.c (reset_debug_uses): New function.
14536 * tree-flow.h (reset_debug_uses): New prototype.
14537 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
14538 * tree-loop-distribution.c (generate_loops_for_partition): Call
14539 reset_debug_uses on the stmts that will be removed. Keep around
14540 all debug stmts, don't count them as bits in partition bitmap.
14541 (generate_builtin): Don't count debug stmts or labels as bits in
14542 partition bitmap.
14543
14544 2011-05-11 Richard Guenther <rguenther@suse.de>
14545
14546 * gimple.c (gimple_type_hash_1): Merge with ...
14547 (gimple_type_hash): ... this.
14548 (gtc_visit): Remove mode parameter and simplify accordingly.
14549 (gimple_types_compatible_p_1): Likewise.
14550 (gimple_types_compatible_p): Likewise.
14551 (iterative_hash_gimple_type): Likewise.
14552 (visit): Likewise.
14553 (gimple_type_eq): Adjust.
14554
14555 2011-05-11 Revital Eres <revital.eres@linaro.org>
14556
14557 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14558 enters the branch create an anti edge in the opposite direction
14559 to prevent the creation of reg-moves.
14560 * modulo-sched.c: Adjust comment to reflect the fact we are
14561 scheduling closing branch.
14562 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14563 (stage_count): New field in struct partial_schedule.
14564 (calculate_stage_count): New function.
14565 (normalize_sched_times): Rename to reset_sched_times and handle
14566 incrementing the sched time of the nodes by a constant value
14567 passed as parameter.
14568 (duplicate_insns_of_cycles): Skip closing branch.
14569 (sms_schedule_by_order): Schedule closing branch.
14570 (ps_insn_find_column): Handle closing branch.
14571 (sms_schedule): Call reset_sched_times and adjust the code to
14572 support scheduling of the closing branch.
14573 (ps_insert_empty_row): Update calls to normalize_sched_times
14574 and rotate_partial_schedule functions.
14575
14576 2011-05-11 Richard Guenther <rguenther@suse.de>
14577
14578 PR middle-end/48953
14579 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14580
14581 2011-05-11 Joseph Myers <joseph@codesourcery.com>
14582
14583 * opts.c (finish_options): Move warning settings from process_options.
14584 * toplev.c (process_options): Move warning settings to finish_options.
14585
14586 2011-05-11 Richard Guenther <rguenther@suse.de>
14587
14588 PR tree-optimization/18041
14589 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14590 (simplify_bitwise_binary): ... this. Handle operand conversions
14591 by applying them to the result instead.
14592 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
14593
14594 2011-05-11 Richard Guenther <rguenther@suse.de>
14595
14596 * gimple.c (gimple_canonical_types_compatible_p): Split out
14597 from gimple_types_compatible_p and friends. Do not recurse
14598 to pointed-to types.
14599 (gimple_canonical_type_eq): Use it.
14600 (iterative_hash_canonical_type): Split out from
14601 iterative_hash_gimple_type and friends. Do not recurse
14602 to pointed-to types.
14603 (gimple_canonical_type_hash): Use it, allocate the hash here.
14604
14605 2011-05-11 Revital Eres <revital.eres@linaro.org>
14606
14607 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14608 recognizing doloop.
14609
14610 2011-05-11 Revital Eres <revital.eres@linaro.org>
14611
14612 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14613 instead of PREV_INSN.
14614
14615 2011-05-11 Revital Eres <revital.eres@linaro.org>
14616
14617 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14618 * loop-doloop.c (doloop_condition_get): Likewise.
14619 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14620 (doloop_end): New.
14621 * config/arm/arm.md (*addsi3_compare0): Remove "*".
14622
14623 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
14624
14625 * tree.def (CASE_LABEL_EXPR): Add an operand.
14626 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14627
14628 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14629
14630 * c-decl.c (c_override_global_bindings_to_false): Remove.
14631 (global_bindings_p): Don't check
14632 c_override_global_bindings_to_false.
14633 * c-tree.h (c_override_global_bindings_to_false): Remove.
14634 * c-typeck.c (composite_type): Don't set
14635 c_override_global_bindings_to_false.
14636
14637 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14638
14639 PR target/48857, 48495
14640 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14641 (VSX_MODE): Ditto.
14642 (VSX_MOVE_MODE): Ditto.
14643 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14644 VSX vector types. Add V2DImode.
14645 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14646 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14647 (MODES_TIEABLE_P): Ditto.
14648
14649 * config/rs6000/rs6000.c (rs6000_emit_move): Use
14650 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14651 VSX_VECTOR_MODE.
14652 (init_cumulative_args): Ditto.
14653 (rs6000_function_arg_boundary): Ditto.
14654 (rs6000_function_arg_advance_1): Ditto.
14655 (rs6000_function_arg): Ditto.
14656 (rs6000_function_ok_for_sibcall): Ditto.
14657 (emit_frame_save): Ditto.
14658 (rs6000_function_value): Ditto.
14659 (rs6000_libcall_value): Ditto.
14660
14661 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14662
14663 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14664 i386/darwin-lib.h to $libgcc_tm_file.
14665 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14666
14667 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14668
14669 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14670
14671 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14672
14673 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14674 * config/rs6000/rs6000-tables.opt: New file (generated).
14675 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14676 rs6000/rs6000-tables.opt to extra_options.
14677 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14678 * config/rs6000/rs6000.c (rs6000_select): Remove.
14679 (processor_target_table): Move contents to rs6000-cpus.def.
14680 (darwin_rs6000_override_options): Check
14681 global_options_set.x_rs6000_cpu_index instead of
14682 rs6000_select[1].string.
14683 (rs6000_option_override_internal): Likewise.
14684 (rs6000_handle_option): Don't assert that global structures are in
14685 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
14686 (rs6000_default_cpu): New variable.
14687 (rs6000_file_start): Set it instead of local default_cpu. Check
14688 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14689 global_options_set.x_rs6000_tune_index instead of rs6000_select.
14690 (rs6000_darwin_file_start): Check rs6000_default_cpu and
14691 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14692 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14693 rs6000_select): Remove.
14694 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14695 Remove.
14696 (mcpu=, mtune=): Use Var, Init, Enum and Save.
14697 * config/rs6000/t-rs6000
14698 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14699 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14700 global_options_set.x_rs6000_cpu_index instead of
14701 rs6000_select[1].string.
14702 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14703 global_options_set.x_rs6000_cpu_index instead of
14704 rs6000_select[1].string.
14705
14706 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14707
14708 * config.gcc (libgcc_tm_file): Define instead of including files
14709 from ../../libgcc/config/ in tm_file.
14710 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14711 * configure: Regenerate.
14712 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14713 libgcc_tm.h, cs-libgcc_tm.h): New.
14714 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14715 (clean): Remove libgcc_tm.h.
14716 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14717 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14718 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14719
14720 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
14721
14722 PR target/48896
14723 * config/avr/avr.c (avr_ret_register): Return unsigned int
14724 instead of int.
14725 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14726 it to avr_libcall_value.
14727 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14728 expand_expr.
14729 (avr_expand_binop_builtin): Ditto.
14730 (avr_expand_unop_builtin): Ditto.
14731
14732 2011-05-10 DJ Delorie <dj@redhat.com>
14733
14734 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14735 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14736 * config/rx/rx.c (rx_align_for_label): Add label and
14737 uses_threshold parameters. Do not align when the label is not
14738 used enough.
14739 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14740
14741 2011-05-10 Richard Guenther <rguenther@suse.de>
14742
14743 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14744 a series of conversions and apply foldings similar to what
14745 fold-const does.
14746 (tree_ssa_forward_propagate_single_use_vars): Call it.
14747
14748 2011-05-10 Jakub Jelinek <jakub@redhat.com>
14749
14750 PR tree-optimization/48611
14751 PR tree-optimization/48794
14752 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14753 referenced from RESX or EH_DISPATCH arguments.
14754
14755 PR debug/48928
14756 * dfp.c (decimal_to_decnumber): Handle conversion from
14757 dconst{1,2,m1,half}.
14758
14759 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14760
14761 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14762 for !flag_prefer_avx128.
14763 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14764
14765 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
14766
14767 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14768 (fold_ternary_loc): Use expr_location_or.
14769
14770 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
14771
14772 PR debug/48853
14773 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14774 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14775 Pmode and mem_mode is not VOIDmode.
14776
14777 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
14778
14779 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
14780 TYPE_QUAL_RESTRICT): Convert to enum.
14781
14782 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14783
14784 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
14785 (const_pow2_1_to_8_operand): Ditto.
14786 (const_pow2_1_to_128_operand): Ditto.
14787 (const_pow2_1_to_32768_operand): Ditto.
14788 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
14789 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
14790 in insn constraint to check integer value of operand 3.
14791 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
14792
14793 (PINSR_MODE): New mode iterator.
14794 (sse2p4_1): New mode attribute.
14795 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
14796 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
14797 iterator. Use const_int_operand instead of
14798 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
14799 exact_log2 in insn constraint to check integer value of operand 3.
14800
14801 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14802
14803 * config/i386/sse.md (blendbits): Remove mode attribute.
14804 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14805 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14806 Check integer value of operand 3 in insn constraint.
14807
14808 2011-05-09 Richard Guenther <rguenther@suse.de>
14809
14810 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
14811 for diagnostics.
14812 (lto_symtab_merge): Likewise. Do not register types here.
14813 (lto_symtab_merge_decls_2): Likewise.
14814 (lto_symtab_merge_decls_1): Likewise.
14815 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
14816 * gimple.c (enum gtc_mode): Declare.
14817 (gimple_types_compatible_p): Make static.
14818
14819 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14820
14821 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
14822 temporary register to match Pmode.
14823
14824 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14825
14826 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
14827 and *vec_concatv4si_1_avx.
14828
14829 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14830
14831 PR rtl-optimization/48927
14832 * ira-conflicts.c (commutative_constraint_p): Use
14833 recog_data.alternative_enabled_p to disable alternatives where
14834 "enabled" attribute is false.
14835 (get_dup_num): Ditto.
14836 * ira-lives.c (single_reg_class): Ditto.
14837 (ira_implicitly_set_insn_hard_regs): Ditto.
14838
14839 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
14840
14841 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14842 (dataflow_set_preserve_mem_locs): Likewise.
14843
14844 2011-05-09 Philipp Thomas <pth@suse.de>
14845
14846 * config/mep/mep.c (mep_validate_vliw): Syntax description
14847 should not be translated.
14848
14849 2011-05-09 Joseph Myers <joseph@codesourcery.com>
14850
14851 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14852 * config/mips/mips-tables.opt: New file (generated).
14853 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14854 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14855 MIPS_ARCH_OPTION_NATIVE): Define.
14856 * config/mips/mips.c (mips_cpu_info_table): Move contents to
14857 mips-cpus.def.
14858 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14859 mips_parse_cpu): Remove.
14860 (mips_cpu_info_from_opt, mips_default_arch): New.
14861 (mips_handle_option): Don't assert that global structures are in
14862 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14863 (mips_option_override): Use new variables and functions to set
14864 state of these options. Use strcmp to check for individual CPU names.
14865 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14866 definition.
14867 * config/mips/mips.opt (march=): Use ToLower and Enum.
14868 (mips): Use ToLower, Enum and Var.
14869 (mtune=): Use ToLower and Enum.
14870 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14871
14872 2011-05-08 Jan Hubicka <jh@suse.cz>
14873
14874 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14875 Arrange type pairs to be UID ordered.
14876 (gimple_lookup_type_leader): Make inline.
14877
14878 2011-05-09 Nick Clifton <nickc@redhat.com>
14879
14880 PR target/48899
14881 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14882 PROCESSOR_DEFAULT.
14883
14884 PR target/48897
14885 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14886 variable 's'.
14887
14888 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
14889
14890 * combine.c (simplify_comparison): Abstract out parts into...
14891 (simplify_compare_const): ... new function.
14892 (try_combine): Generalize parallel arithmetic/compare combining
14893 to call simplify_compare_const() and CANONICALIZE_COMPARE().
14894
14895 2011-05-08 Jan Hubicka <jh@suse.cz>
14896
14897 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14898 (cgraph_create_virtual_clone): Call hooks once virtual clone
14899 is finished.
14900 * cgraph.h (cgraph_clone_node): Update prototype.
14901 * ipa-cp.c (ipcp_estimate_growth): Use
14902 estimate_ipcp_clone_size_and_time.
14903 * ipa-inline-transform.c (clone_inlined_nodes): Update.
14904 * lto-cgraph.c (input_node): Update.
14905 * ipa-inline.c (recursive_inlining): Update.
14906 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14907 (evaluate_conditions_for_known_args): Break out from ...
14908 (evaluate_conditions_for_edge): ... here.
14909 (evaluate_conditions_for_ipcp_clone): New function.
14910 (inline_node_duplication_hook): Update clone summary based
14911 on parameter map.
14912 (estimate_callee_size_and_time): Rename to ...
14913 (estimate_node_size_and_time): take NODE instead of EDGE;
14914 take POSSIBLE_TRUTHS as argument.
14915 (estimate_callee_size_and_time): Update.
14916 (estimate_ipcp_clone_size_and_time): New function.
14917 (do_estimate_edge_time): Update.
14918
14919 2011-05-08 Richard Guenther <rguenther@suse.de>
14920
14921 PR middle-end/48908
14922 PR middle-end/48905
14923 * expmed.c (expand_shift_1): Compute adjusted constant shift
14924 amount manually.
14925
14926 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14927
14928 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14929
14930 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14931
14932 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14933
14934 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
14935
14936 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14937
14938 2011-05-07 Jan Hubicka <jh@suse.cz>
14939
14940 * ipa-inline-transform.c (inline_call): Account when program size
14941 decreases.
14942 * ipa-inline.c (relative_time_benefit): New function.
14943 (edge_badness): Reorganize to be power 2 based; fix thinko when
14944 computing badness for negative growth; update comments to match
14945 reality; better dumps.
14946
14947 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
14948
14949 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14950 type to bool and adjust comment.
14951 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14952 (fold_mathfn_compare): Remove calls to global_bindings_p.
14953 (fold_inf_compare): Likewise.
14954 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14955 * c-tree.h (global_bindings_p): Adjust prototype.
14956 * c-decl.c (global_bindings_p): Return bool and simplify.
14957
14958 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
14959
14960 PR tree-optimization/48837
14961 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14962 when accumulator transformation is performed.
14963
14964 2011-05-06 Jan Hubicka <jh@suse.cz>
14965
14966 * i386.h (ix86_tune_indices): Add
14967 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14968 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14969 * i386.c (initial_ix86_tune_features): Add
14970 X86_SOFTARE_PREFETCHING_BENEFICIAL.
14971 (software_prefetching_beneficial_p): Remove predicate.
14972 (ix86_option_override_internal): Use new macro.
14973
14974 2011-05-06 Jan Hubicka <jh@suse.cz>
14975
14976 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14977
14978 2011-05-06 Jan Hubicka <jh@suse.cz>
14979
14980 * cgraph.c (cgraph_add_thunk): Create real function node instead
14981 of alias node; finalize it and mark needed/reachale; arrange visibility
14982 to be right and add it into the corresponding same comdat group list.
14983 (dump_cgraph_node): Dump thunks.
14984 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14985 cgraph_function_with_gimple_body_p,
14986 cgraph_first_function_with_gimple_body,
14987 cgraph_next_function_with_gimple_body): New functions.
14988 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14989 New macros.
14990 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14991 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14992 * cgraphunit.c (cgraph_finalize_function): Only look into possible
14993 devirtualization when optimizing.
14994 (verify_cgraph_node): Verify thunks.
14995 (cgraph_analyze_function): Analyze thunks.
14996 (cgraph_mark_functions_to_output): Output thunks only in combination
14997 with function they are assigned to.
14998 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14999 alias into normal node.
15000 (assemble_thunks): New functoin.
15001 (cgraph_expand_function): Use it.
15002 * lto-cgraph.c (lto_output_node): Stream thunks.
15003 (input_overwrite_node): Stream in thunks.
15004 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
15005 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
15006 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
15007 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
15008 (inline_analyze_function): Do not care about thunk jump functions.
15009 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
15010 * ipa-prop.c (ipa_prop_write_jump_functions): Use
15011 cgraph_function_with_gimple_body_p.
15012 * passes.c (do_per_function_toporder): Use
15013 cgraph_function_with_gimple_body_p.
15014 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15015 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
15016 (function_called_by_processed_nodes_p): Likewise.
15017
15018 2011-05-06 Joseph Myers <joseph@codesourcery.com>
15019
15020 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
15021 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
15022 entries.
15023 (mabi=): Replace with separate entries for mabi=altivec,
15024 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
15025 mabi=ieeelongdouble and mabi=ibmlongdouble.
15026 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
15027 check for -mabi=spe without SPE ABI support here.
15028 (rs6000_handle_option): Replace OPT_mabi_ handling with
15029 OPT_mabi_altivec and OPT_mabi_spe handling.
15030
15031 2011-05-06 Cary Coutant <ccoutant@google.com>
15032
15033 * dwarf2out.c (contains_subprogram_definition): New function.
15034 (should_move_die_to_comdat): Call it.
15035
15036 2011-05-06 Jeff Law <law@redhat.com>
15037
15038 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
15039 remove_ctrl_stmt_and_useless_edges.
15040 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
15041 (fixup_template_block, thread_single_edge): Likewise.
15042 (mark_threaded_blocks): Use THREAD_TARGET.
15043
15044 2011-05-06 Alan Modra <amodra@gmail.com>
15045
15046 PR target/48900
15047 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15048 const0_rtx as the arg to the dummy __tls_get_addr libcall.
15049
15050 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15051
15052 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
15053 constraint modifier to "r".
15054
15055 2011-05-06 Joseph Myers <joseph@codesourcery.com>
15056
15057 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
15058 fall through for OPT_mcmodel_.
15059
15060 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15061
15062 * config/s390/s390.c (s390_asm_trampoline_template): Comment
15063 instruction sizes.
15064 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
15065
15066 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15067
15068 PR target/47930
15069 * config/arm/arm.opt (marm): Document it.
15070 (mthumb): Reject negative variant.
15071
15072 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15073
15074 PR target/48898
15075 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
15076 Fix typo in "ccvt" variable name.
15077
15078 2011-05-06 Tristan Gingold <gingold@adacore.com>
15079
15080 PR target/48895
15081 * config/vms/vms-ar.c (main): Remove cwd variable.
15082
15083 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15084
15085 PR debug/48902
15086 * var-tracking.c (prepare_call_arguments): Move else before #endif.
15087
15088 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
15089
15090 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
15091 * gimplify.c (gimplify_switch_expr): Likewise.
15092 * omp-low.c (expand_omp_sections): Likewise.
15093 * tree-eh.c (lower_try_finally_switch): Likewise.
15094 (lower_eh_dispatch): Likewise.
15095 * tree.h (build_case_label): Declare.
15096 * tree.c (build_case_label): Define.
15097
15098 2011-05-05 Jason Merrill <jason@redhat.com>
15099
15100 PR c++/40975
15101 * tree-inline.c (copy_tree_r): Use copy_statement_list.
15102 (copy_statement_list): Don't recurse.
15103 * stor-layout.c (copy_self_referential_tree_r): Don't allow
15104 STATEMENT_LIST.
15105
15106 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15107
15108 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
15109 through from -mfpu= handling.
15110 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
15111
15112 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
15113
15114 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
15115 POST_MODIFY.
15116
15117 2011-05-05 Steve Ellcey <sje@cup.hp.com>
15118
15119 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
15120 for 11.31.
15121 (hppa[12]*-*-hpux11*): Ditto.
15122 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
15123 * config/ia64/hpux-unix2003.h: New.
15124 * config/pa/pa-hpux1131.opt: New.
15125 * config/pa/pa-hpux1131.h: New.
15126 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
15127 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
15128 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
15129
15130 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15131
15132 PR debug/48853
15133 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
15134 instead of mode as 3rd argument to recursive call.
15135 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
15136 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
15137 VOIDmode.
15138 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
15139 don't give up if mode is Pmode and mem_mode is not VOIDmode.
15140 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
15141 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
15142
15143 2011-05-05 Julian Brown <julian@codesourcery.com>
15144
15145 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
15146 parenthesis in D-register case.
15147
15148 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15149
15150 * opt-functions.awk (var_type_struct): Handle Enum options.
15151 * optc-gen.awk: Don't check range of variables of character type.
15152 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
15153 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
15154 rs6000_sdata_name, rs6000_explicit_options): Remove.
15155 (rs6000_option_override_internal): Check for -malign-power here.
15156 Use global_options_set instead of rs6000_explicit_options.
15157 (rs6000_parse_fpu_option): Remove.
15158 (rs6000_handle_option): Access variables via opts and opts_set
15159 pointers. Use error_at and warning_at. Add fall-through
15160 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
15161 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
15162 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
15163 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
15164 here. Don't use rs6000_parse_fpu_option.
15165 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
15166 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
15167 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
15168 (mrecip=): Use Var.
15169 (mspe): Use Var and Save.
15170 (mtraceback=): Use Enum and Var.
15171 (rs6000_traceback_type): New Enum and EnumValue entries.
15172 (mfloat-gprs=): Use Enum, Var and Save.
15173 (rs6000_float_gprs): New Enum and EnumValue entries.
15174 (mlong-double-): use Var and Save.
15175 (msched-costly-dep=, minsert-sched-nops=): Use Var.
15176 (malign-): Use Enum and Var.
15177 (rs6000_alignment_flags): New Enum and EnumValue entries.
15178 (mfpu=): Use Enum.
15179 (fpu_type_t): New Enum and EnumValue entries.
15180 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15181 global_options_set instead of rs6000_explicit_options.
15182 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15183 global_options_set instead of rs6000_explicit_options.
15184 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15185 global_options_set instead of rs6000_explicit_options.
15186 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15187 global_options_set instead of rs6000_explicit_options.
15188 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
15189 global_options_set instead of rs6000_explicit_options.
15190 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15191 global_options_set instead of rs6000_explicit_options.
15192 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
15193 definition.
15194 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15195 global_options_set instead of rs6000_explicit_options.
15196 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
15197 (rs6000_cmodel): New Enum and EnumValue entries.
15198 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15199 global_options_set instead of rs6000_explicit_options.
15200 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
15201 (mtls-size=): Use Enum and Var.
15202 (rs6000_tls_size): New Enum and EnumValue entries.
15203
15204 2011-05-05 Michael Matz <matz@suse.de>
15205
15206 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
15207 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
15208 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
15209 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
15210 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
15211 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
15212 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
15213 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
15214 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
15215 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
15216 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
15217 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
15218 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
15219 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
15220 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
15221 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
15222
15223 2011-05-05 Richard Guenther <rguenther@suse.de>
15224
15225 * expmed.c (expand_variable_shift): Rename to ...
15226 (expand_shift_1): ... this. Take an expanded shift amount.
15227 For rotates recurse directly not building trees for the shift amount.
15228 (expand_variable_shift): Wrap around expand_shift_1.
15229 (expand_shift): Adjust.
15230
15231 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15232
15233 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
15234
15235 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
15236
15237 * tree.h (get_pending_sizes): Remove prototype.
15238 (put_pending_size): Likewise.
15239 (put_pending_sizes): Likewise.
15240 * stor-layout.c (pending_sizes): Delete.
15241 (get_pending_sizes): Likewise.
15242 (put_pending_size): Likewise.
15243 (put_pending_sizes): Likewise.
15244 (variable_size): Do not call put_pending_size and tidy up.
15245 * function.h (struct function): Remove dont_save_pending_sizes_p.
15246 * lto-streamer-in.c (input_function): Do not stream it.
15247 * lto-streamer-out.c (output_function): Likewise.
15248 * tree-inline.c (initialize_cfun): Do not copy it.
15249 * c-decl.c (store_parm_decls): Do not set it.
15250 * omp-low.c (create_task_copyfn): Likewise.
15251 * tree-optimize.c (tree_rest_of_compilation): Likewise.
15252
15253 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
15254
15255 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15256 conditions.
15257 (*movdf_internal): Ditto.
15258 (*movdf_internal_nointeger): Ditto.
15259 (*movsf_internal): Ditto.
15260
15261 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15262
15263 * c-decl.c (finish_decl): Don't call get_pending_sizes.
15264 (grokparm): Add parameter expr. Pass it to grokdeclarator.
15265 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
15266 (c_variable_size): Remove.
15267 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
15268 call put_pending_sizes.
15269 (get_parm_info): Add parameter expr. Use it to set
15270 arg_info->pending_sizes.
15271 (store_parm_decls): Use arg_info->pending_sizes instead or calling
15272 get_pending_sizes.
15273 * c-parser.c (c_parser_parms_declarator): Update call to
15274 c_parser_parms_list_declarator.
15275 (c_parser_parms_list_declarator): Take parameter expr. Update
15276 call to push_parm_decl. Update recursive call. Don't call
15277 get_pending_sizes. Update calls to get_parm_info.
15278 (c_parser_objc_method_definition): Update calls to
15279 c_parser_objc_method_decl and objc_start_method_definition.
15280 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15281 (c_parser_objc_method_decl): Add parameter expr. Update call to
15282 grokparm.
15283 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15284 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15285 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15286
15287 2011-05-05 Michael Hope <michael.hope@linaro.org>
15288
15289 PR pch/45979
15290 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15291 __ARM_EABI__ hosts.
15292
15293 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15294
15295 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15296 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15297 (spu_output_mi_thunk): New function.
15298
15299 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15300
15301 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15302 targetm.asm_out.print_operand.
15303 * config/sol2.c: Include target.h.
15304
15305 2011-05-04 Jan Hubicka <jh@suse.cz>
15306
15307 * ipa-inline.c (reset_edge_caches): New function.
15308 (update_caller_keys): Add check_inlinablity_for; do not
15309 reset edge caches; remove now unnecesary loop.
15310 (update_callee_keys): Add comments; reset node_growth_cache of callee.
15311 (update_all_callee_keys): Likewise.
15312 (inline_small_functions): Sanity check cache; update code
15313 recomputing it.
15314
15315 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
15316
15317 PR rtl-optimization/47612
15318 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15319 as the last insn of the sequence to be moved.
15320
15321 2011-05-04 Tobias Burnus <burnus@net-b.de>
15322
15323 PR fortran/48864
15324 * doc/invoke.texi (Ofast): Document that it
15325 enables Fortran's -fno-protect-parens.
15326
15327 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15328
15329 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
15330
15331 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
15332
15333 * stor-layout.c (variable_size): Do not issue errors.
15334
15335 2011-05-04 Richard Guenther <rguenther@suse.de>
15336
15337 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
15338 for array-ref indices.
15339 (tree_coverage_counter_addr): Likewise.
15340 (build_fn_info_type): Use size_int for index types.
15341 (build_gcov_info): Likewise.
15342
15343 2011-05-04 Richard Guenther <rguenther@suse.de>
15344
15345 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
15346 to build_int_cst.
15347 * c-typeck.c (really_start_incremental_init): Use bitsize_int
15348 for constructor indices.
15349 (push_init_level): Likewise.
15350
15351 2011-05-04 Richard Guenther <rguenther@suse.de>
15352
15353 * explow.c (promote_mode): Move variable declarations before code.
15354
15355 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
15356
15357 * tree.h (build_function_type_array): Declare.
15358 (build_varargs_function_type_array): Declare.
15359 (build_function_type_vec, build_varargs_function_type_vec): Define.
15360 * tree.c (build_function_type_array_1): New function.
15361 (build_function_type_array): New function.
15362 (build_varargs_function_type_array): New function.
15363
15364 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
15365
15366 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
15367 before setting STMT_VINFO_TYPE.
15368
15369 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15370
15371 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
15372 instead of spu_pass_by_reference.
15373
15374 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15375
15376 * calls.c (emit_library_call_value_1): Invoke
15377 promote_function_mode hook on libcall arguments.
15378 * explow.c (promote_function_mode, promote_mode): Handle TYPE
15379 argument being NULL.
15380 * targhooks.c (default_promote_function_mode): Lisewise.
15381 * config/s390/s390.c (s390_promote_function_mode): Likewise.
15382 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
15383
15384 * doc/tm.texi: Document that TYPE argument might be NULL.
15385
15386 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15387
15388 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
15389
15390 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15391
15392 From Bernd Schmidt
15393 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
15394
15395 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15396
15397 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
15398 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
15399 Move ...
15400 * mips-tfile.c: ... here.
15401 Don't include coretypes.h, tm.h, filenames.h.
15402 (saber_stop): Remove definition and all calls.
15403 [__SABER__]: Remove.
15404 (__LINE__): Remove default.
15405 (Size_t, Ptrdiff_t): Remove definitions.
15406 Replace by size_t, ptrdiff_t.
15407 [!MIPS_DEBUGGING_INFO]: Remove.
15408 (SHASH_SIZE, THASH_SIZE): Remove defaults.
15409 (progname): Add const.
15410 (STATIC): Remove.
15411 Replace all uses by static.
15412 (ALIGN_SYMTABLE_OFFSET): Remove default.
15413 * mips-tdump.c: Don't include coretypes.h, tm.h.
15414 Remove !MIPS_IS_STAB guard.
15415 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
15416 $(TM_H), filenames.h dependencies.
15417 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
15418
15419 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15420
15421 From Jie Zhang
15422 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
15423 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
15424
15425 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15426
15427 From Bernd Schmidt
15428 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
15429 account and save/restore RETS.
15430 (PROFILE_BEFORE_PROLOGUE): Define.
15431 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
15432 the push insn to use predecrement.
15433
15434 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15435
15436 From Jie Zhang
15437 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
15438
15439 2011-05-04 Nick Clifton <nickc@redhat.com>
15440
15441 * config/mn10300/mn10300.c: Include cfgloop.h.
15442 (DUMP): New macro.
15443 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
15444 Lcc or a FLcc insn into the instruction stream.
15445 (mn10300_block_contains_call): New function. Returns true if the
15446 given basic block contains a CALL insn.
15447 (mn10300_loop_contains_call_insn): New function. Returns true if
15448 the given loop contains a CALL insn.
15449 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
15450 to use the SETLB and Lcc or FLcc insns.
15451 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
15452 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
15453 * config/mn10300/mn10300.opt (msetlb): New option. Used to
15454 disable the SETLB optimization.
15455 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
15456 __SETLB__ or __NO_SETLB__.
15457 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
15458 (movsf_internal): Handle MDR register.
15459 (cmpsi): Make visible.
15460 (setlb): New pattern.
15461 (Lcc): New pattern.
15462 (FLcc): New pattern.
15463
15464 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15465
15466 PR target/48860
15467 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
15468 for reg<->xmm moves.
15469 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
15470 (vec_concatv2di_rex64_sse): Ditto.
15471 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
15472 (*vec_extractv2di_1_rex64): Ditto.
15473
15474 Revert:
15475 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15476
15477 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15478 reg<->xmm moves.
15479 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
15480
15481 2011-05-04 Richard Guenther <rguenther@suse.de>
15482
15483 * tree.h (int_const_binop): Remove notrunc argument.
15484 * fold-const.c (int_const_binop): Remove notrunc argument. Always
15485 create integer constants that are properly truncated.
15486 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
15487 (const_binop): Remove zero notrunc argument to int_const_binop.
15488 (size_binop_loc): Likewise.
15489 (fold_div_compare): Likewise.
15490 (maybe_canonicalize_comparison_1): Likewise.
15491 (fold_comparison): Likewise.
15492 (fold_binary_loc): Likewise.
15493 (multiple_of_p): Likewise.
15494 * expr.c (store_constructor): Likewise.
15495 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15496 (maybe_fold_stmt_addition): Likewise.
15497 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
15498 * stor-layout.c (layout_type): Likewise.
15499 * tree-data-ref.c (tree_fold_divides_p): Likewise.
15500 * tree-sra.c (build_ref_for_offset): Likewise.
15501 (build_user_friendly_ref_for_offset): Likewise.
15502 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
15503 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
15504 * tree-ssa-loop-niter.c (inverse): Likewise.
15505 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15506 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
15507 * tree-switch-conversion.c (check_range): Likewise.
15508 (build_constructors): Likewise.
15509 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
15510 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
15511 (extract_range_from_assert): Likewise.
15512 (vrp_int_const_binop): Likewise.
15513 (extract_range_from_binary_expr): Likewise.
15514 (extract_range_from_unary_expr): Likewise.
15515 (check_array_ref): Likewise.
15516 (find_case_label_range): Likewise.
15517 (simplify_div_or_mod_using_ranges): Likewise.
15518 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
15519 comparing case labels for merging.
15520
15521 2011-05-03 Mark Wielaard <mjw@redhat.com>
15522
15523 * dwarf2out.c (debug_str_hash_forced): Removed.
15524 (gen_label_for_indirect_string): Removed.
15525 (get_debug_string_label): Removed.
15526 (AT_string_form): Generate label directly.
15527 (output_indirect_string): Test indirect_string_node for
15528 DW_FORM_strp instead of checking label and refcount.
15529 (prune_indirect_string): Removed.
15530 (prune_unused_types): Don't check debug_str_hash_forced or
15531 call prune_indirect_string.
15532
15533 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15534
15535 PR other/48093
15536 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
15537
15538 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15539
15540 PR debug/47994
15541 PR debug/47919
15542 * combine.c (try_combine): Skip debug insns at m_split tests.
15543
15544 2011-04-26 Mark Wielaard <mjw@redhat.com>
15545
15546 PR42288
15547 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
15548 when info_section_emitted.
15549
15550 2011-05-03 Joseph Myers <joseph@codesourcery.com>
15551
15552 * config/mips/mips-opts.h: New.
15553 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
15554 to mips-opts.h.
15555 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
15556 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
15557 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
15558 via opts pointer.
15559 * config/mips/mips.h (enum mips_code_readable_setting): Move to
15560 mips-opts.h.
15561 (mips_abi, mips_code_readable): Don't declare.
15562 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15563 (mabi=): Use Enum and Var.
15564 (mips_abi): New Enum and EnumValue entries.
15565 (mcode-readable=): Use Enum and Var.
15566 (mips_code_readable_setting): New Enum and EnumValue entries.
15567 (mr10k-cache-barrier=): Use Enum and Var.
15568 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15569
15570 2011-05-03 Jan Hubicka <jh@suse.cz>
15571
15572 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15573 replace hash by pointer map.
15574 (cgraph_node_set_element_def, cgraph_node_set_element,
15575 const_cgraph_node_set_element, varpool_node_set_element_def,
15576 varpool_node_set_element, const_varpool_node_set_element): Remove.
15577 (free_cgraph_node_set, free_varpool_node_set): New function.
15578 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15579 * tree-emutls.c: Free varpool node set.
15580 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15581 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15582 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15583 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15584 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15585 Move here from ipa.c; implement using pointer_map
15586 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15587 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15588 debug_cgraph_node_set, varpool_node_set_new,
15589 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15590 dump_varpool_node_set, debug_varpool_node_set):
15591 Move to ipa-uitls.c.
15592 * passes.c (ipa_write_summaries): Update.
15593
15594 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15595
15596 From Mike Frysinger:
15597 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15598 bf542/bf544/bf547/bf548/bf549.
15599
15600 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15601
15602 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15603
15604 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15605
15606 From Bernd Schmidt:
15607 * config/bfin/bfin.md (MOVCC): New mode_macro.
15608 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15609 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
15610 comments from generated assembly.
15611
15612 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15613
15614 From Bernd Schmidt
15615 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15616 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15617 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15618 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15619 * config/bfin/lib1funcs.asm (___muldi3): New function.
15620
15621 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15622
15623 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15624 build_function_type_list instead of build_function_type.
15625 Rearrange initialization of `args' to do so.
15626
15627 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15628
15629 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15630 instead of build_function_type.
15631
15632 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15633
15634 * config/rs6000/rs6000.c (spe_init_builtins): Call
15635 build_function_type_list instead of build_function_type.
15636 (paired_init_builtins, altivec_init_builtins): Likewise.
15637 (builtin_function_type): Likewise.
15638
15639 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15640
15641 * config/sh/sh.c (sh_media_init_builtins): Call
15642 build_function_type_list instead of build_function_type.
15643
15644 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15645
15646 * config/sparc/sparc.c (sparc_file_end): Call
15647 build_function_type_list instead of build_function_type.
15648
15649 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15650
15651 * config/alpha/alpha.c (alpha_init_builtins): Call
15652 build_function_type_list instead of build_function_type.
15653
15654 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15655
15656 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
15657 build_function_type_list instead of build_function_type.
15658
15659 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15660
15661 * config/iq2000/i2000.c (iq2000_init_builtins): Call
15662 build_function_type_list instead of build_function_type.
15663 Delete `endlink' variable.
15664
15665 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15666
15667 * config/avr/avr.c (avr_init_builtins): Call
15668 build_function_type_list instead of build_function_type.
15669
15670 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15671
15672 * config/picochip/picochip.c (picochip_init_builtins): Call
15673 build_function_type_list instead of build_function_type.
15674 Delete `endlink' variable.
15675
15676 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15677
15678 * config/bfin/bfin.c (bfin_init_builtins): Call
15679 build_function_type_list instead of build_function_type.
15680
15681 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15682
15683 From Bernd Schmidt
15684 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15685 that's not CONST_INT. Seemingly redundant check is due to PR39768.
15686
15687 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15688
15689 From Jie Zhang:
15690 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15691 libbffastfp overrides libgcc when -mfast-fp.
15692
15693 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15694
15695 Originally from Bernd Schmidt
15696 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15697 * config/bfin/bfin.c (override_options): Test it and error if
15698 TARGET_FDPIC.
15699
15700 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15701
15702 Originally From Bernd Schmidt
15703 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15704 FD-PIC.
15705
15706 2011-05-03 Jeff Law <law@redhat.com>
15707
15708 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15709 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15710 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15711 than accessing AUX field directly. Free the AUX field before
15712 clearing it.
15713 (thread_block, thread_through_loop_header): Likewise.
15714 (thread_single_edge, mark_threaded_blocks): Likewise.
15715 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
15716 (register_jump_thread): Do not attempt to thread to a NULL edge.
15717
15718 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15719
15720 * function.c (init_function_start): Call decide_function_section.
15721 * varasm.c (decide_function_section): New function.
15722 (assemble_start_function): When not using
15723 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15724 or first_function_block_is_cold.
15725 * rtl.h (decide_function_section): Declare.
15726
15727 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15728 Jakub Jelinek <jakub@redhat.com>
15729
15730 PR target/48774
15731 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15732 only succeed if req_mode is the same as set_mode.
15733
15734 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15735
15736 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15737 * genemit.c (gen_exp): Handle RETURN.
15738 * emit-rtl.c (verify_rtx_sharing): Likewise.
15739 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15740 * rtl.c (copy_rtx): RETURN is shared.
15741 * rtl.h (enum global_rtl_index): Add GR_RETURN.
15742 (ret_rtx): New.
15743 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15744 * config/s390/s390.c (s390_emit_epilogue): Likewise.
15745 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15746 * config/cris/cris.c (cris_expand_return): Likewise.
15747 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15748 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15749 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15750 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15751 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15752 Likewise.
15753 * config/v850/v850.c (expand_epilogue): Likewise.
15754 * config/bfin/bfin.c (bfin_expand_call): Likewise.
15755 * config/arm/arm.md (epilogue): Likewise.
15756 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15757 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15758 variable to ret_reg.
15759
15760 2011-05-03 Richard Guenther <rguenther@suse.de>
15761
15762 PR lto/48846
15763 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15764 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15765 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15766
15767 2011-05-03 Richard Guenther <rguenther@suse.de>
15768
15769 * c-decl.c (grokdeclarator): Instead of looking at
15770 TREE_OVERFLOW check if the constant fits in the index type.
15771
15772 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15773
15774 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15775 (vec_store_lanes<mode><mode>): Likewise.
15776
15777 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15778
15779 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
15780 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
15781 convert_optab_index values.
15782 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
15783 * genopinit.c (optabs): Initialize the new optabs.
15784 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
15785 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
15786 (expand_STORE_LANES): New functions.
15787 * tree.h (build_array_type_nelts): Declare.
15788 * tree.c (build_array_type_nelts): New function.
15789 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
15790 (vect_model_load_cost): Likewise.
15791 (vect_store_lanes_supported, vect_load_lanes_supported)
15792 (vect_record_strided_load_vectors): Declare.
15793 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
15794 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
15795 (vect_transform_strided_load): Split out statement recording into...
15796 (vect_record_strided_load_vectors): ...this new function.
15797 * tree-vect-stmts.c (create_vector_array, read_vector_array)
15798 (write_vector_array, create_array_ref): New functions.
15799 (vect_model_store_cost): Add store_lanes_p argument.
15800 (vect_model_load_cost): Add load_lanes_p argument.
15801 (vectorizable_store): Try to use store-lanes functions for
15802 interleaved stores.
15803 (vectorizable_load): Likewise load-lanes and loads.
15804 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
15805 to vect_model_store_cost.
15806 (vect_build_slp_tree): Likewise vect_model_load_cost.
15807
15808 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15809
15810 * hooks.h (hook_bool_mode_uhwi_false): Declare.
15811 * hooks.c (hook_bool_mode_uhwi_false): New function.
15812 * target.def (array_mode_supported_p): New hook.
15813 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
15814 * doc/tm.texi: Regenerate.
15815 * stor-layout.c (mode_for_array): New function.
15816 (layout_type): Use it.
15817 * config/arm/arm.c (arm_array_mode_supported_p): New function.
15818 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
15819
15820 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
15821
15822 PR target/48723
15823 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
15824 for -fstack-check if the size to allocate is negative.
15825
15826 2011-05-02 Lawrence Crowl <crowl@google.com>
15827
15828 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
15829 (timevar_cond_start): New for starting a timer only when it is not
15830 already running.
15831 (timevar_cond_stop): New for stopping a timer when it was not already
15832 running.
15833
15834 * timevar.c (timevar_stop): Enable start/stop timers to start again.
15835 (timevar_cond_start): New as above.
15836 (timevar_cond_stop): New as above.
15837
15838 * timevar.def: Add start/stop timers for compiler phases,
15839 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
15840 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
15841 and TV_PHASE_FINALIZE.
15842 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
15843 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
15844 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15845 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15846 Make unused TV_OVERLOAD into a start/stop timer.
15847
15848 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15849 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15850 to indicate that they are start/stop timers.
15851
15852 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15853 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15854 Move initialization to do_compile.
15855 (do_compile): Add initialization from above.
15856 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15857
15858 * c-decl.c (c_write_global_declarations): Add start/stop of
15859 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15860
15861 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15862 or TV_PARSE_INLINE, as appropriate.
15863 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15864 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15865
15866 2011-05-02 Jason Merrill <jason@redhat.com>
15867
15868 PR c++/40975
15869 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15870
15871 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
15872
15873 PR c/35445
15874 * c-decl.c (finish_decl): Only create a composite if the types are
15875 compatible.
15876
15877 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15878
15879 * config/fr30/fr30-protos.h (Mmode): Don't define.
15880 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
15881 definition where used.
15882 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15883 define. Expand definitions where used.
15884 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15885 Expand definitions where used.
15886 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15887 rx_function_arg, rx_function_arg_advance,
15888 rx_function_arg_boundary): Expand definitions of those macros.
15889 * config/v850/v850-protos.h (Mmode): Don't define. Expand
15890 definition where used.
15891
15892 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15893
15894 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15895 reg<->xmm moves.
15896 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15897 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
15898 with *movv2sf_internal_rex64_avx.
15899 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15900 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15901 Use %v prefix in insn mnemonic to handle TARGET_AVX.
15902 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
15903 "vex" in "prefix" attribute calculation.
15904 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
15905
15906 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
15907
15908 PR target/47951
15909 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15910 inputs match the output.
15911
15912 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
15913
15914 PR target/47955
15915 * config/m68k/m68k.c (m68k_expand_prologue): Set
15916 current_function_static_stack_size.
15917
15918 2011-05-02 Jan Hubicka <jh@suse.cz>
15919
15920 * lto-streamer.c (lto_streamer_cache_insert_1,
15921 lto_streamer_cache_lookup, lto_streamer_cache_create,
15922 lto_streamer_cache_delete): Use pointer map instead of hashtable.
15923 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15924
15925 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15926
15927 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15928 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15929 config/m68k/t-opts: New files.
15930 * config/m68k/m68k-tables.opt: New file (generated).
15931 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15932 extra_options and m68k/t-opts to tmake_file.
15933 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15934 (all_isas): Initialize using m68k-isas.def.
15935 (all_microarchs): Initialize using m68k-microarchs.def.
15936 (m68k_find_selection): Remove.
15937 (m68k_handle_option): Don't assert that global structures are in
15938 use. Use error_at. Access variables via opts pointer. Don't
15939 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
15940 directly for -m68020-40 and -m68020-60.
15941 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15942 m68k_tune_entry here.
15943 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15944 to m68k-opts.h.
15945 (m68k_library_id_string): Remove declaration.
15946 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15947 (m68k_library_id_string): New Variable.
15948 (march=, mcpu=, mtune=): Use Enum and Var.
15949
15950 2011-05-02 Richard Guenther <rguenther@suse.de>
15951
15952 * varasm.c (output_constructor_regular_field): Compute zero-based
15953 index with double-ints. Make sure to ICE instead of producing
15954 wrong code.
15955 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15956 in asserts. Properly use a signed type.
15957
15958 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15959
15960 * config/i386/sse.md (V): New mode iterator.
15961 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
15962 TARGET_SSE2.
15963 (V_256): Rename from AVX256MODE.
15964 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
15965 condition to all users.
15966 (VF1): Ditto.
15967 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
15968 condition to all users.
15969 (VF_128): Make V4SF mode unconditional.
15970 (VF_256): Rename from AVX256MODEF2P.
15971 (VI4F_128): Rename from SSEMODE4S.
15972 (VI8F_128): Rename from SSEMODE2D.
15973 (VI4F_256): Rename from AVX256MODE8P.
15974 (VI8F_256): Rename from AVX256MODE4P.
15975 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15976 (ssescalarmodesuffix): Remove SF and DF modes.
15977 (SSEMODE124): Remove.
15978 (SSEMODE1248): Ditto.
15979 (SSEMODEF2P): Ditto.
15980 (AVXMODEF2P): Ditto.
15981 (AVXMODEFDP): Ditto.
15982 (AVXMODEFSP): Ditto.
15983 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15984 unconditional.
15985 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
15986 unconditional.
15987 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15988 xop_pcmov_<mode>256. Use V mode iterator.
15989
15990 Adjust RTX patterns globally for renamed mode attributes.
15991
15992 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15993
15994 * haifa-sched.c (sched_emit_insn): Emit insn before first
15995 non-scheduled insn. Inform back-end about new insn. Add
15996 new insn to scheduled_insns list.
15997
15998 2011-05-02 Richard Guenther <rguenther@suse.de>
15999
16000 PR tree-optimization/48822
16001 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
16002 (process_scc): Indicate which iteration we start.
16003
16004 2011-05-02 Jan Hubicka <jh@suse.cz>
16005
16006 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
16007 (lto_section_overrun): New.
16008 * lto-section-out.c (append_block): Rename to ...
16009 (lto_append_block): ... this one; export.
16010 (lto_output_1_stream): Move lto lto-streamer.h
16011 (lto_output_data_stream): Update.
16012 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
16013 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
16014 functions.
16015
16016 2011-05-02 Richard Guenther <rguenther@suse.de>
16017
16018 * tree.c (tree_code_counts): New global array.
16019 (record_node_allocation_statistics): Count individual tree codes.
16020 (dump_tree_statistics): Dump individual code stats.
16021
16022 2011-05-01 Jan Hubicka <jh@suse.cz>
16023
16024 * ipa-inline.c (caller_growth_limits): Fix thinko when
16025 looking for largest stack frame.
16026 * ipa-inline.h (dump_inline_summary): Declare.
16027 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
16028 on stack usage.
16029 (dump_inline_summary): Export.
16030 (debug_inline_summary): Declare as DEBUG_FUNCTION.
16031
16032 2011-05-01 Anatoly Sokolov <aesok@post.ru>
16033
16034 * reginfo.c (memory_move_cost): Change rclass argument type form
16035 'enum reg_class' to reg_class_t.
16036 * reload.h (memory_move_cost): Update prototype.
16037 * postreload.c reload_cse_simplify_set): Change type dclass var to
16038 reg_class_t.
16039 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
16040 Update prototype.
16041 (ira_allocate_and_set_costs): Change aclass argument type form
16042 'enum reg_class' to reg_class_t.
16043 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
16044 Change aclass argument type to reg_class_t.
16045 (update_conflict_hard_reg_costs): Change type aclass and pref vars
16046 to reg_class_t.
16047 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
16048 memory_move_cost call.
16049
16050 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
16051 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
16052 Change type tmp var to reg_class_t.
16053
16054 2011-04-30 Jan Hubicka <jh@suse.cz>
16055
16056 * ipa-inline.c (can_inline_edge_p): Disregard limits when
16057 inlining into function with flatten attribute.
16058 (want_inline_small_function_p): Be more realistic about inlining
16059 cold calls where callee size grows.
16060
16061 2011-04-30 Jan Hubicka <jh@suse.cz>
16062
16063 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
16064 flags.
16065
16066 2011-04-30 Anatoly Sokolov <aesok@post.ru>
16067
16068 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16069 PRINT_OPERAND_PUNCT_VALID_P): Remove.
16070 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
16071 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
16072 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16073 (print_operand): Rename to...
16074 (sparc_print_operand): ...this. Make static. Adjust
16075 sparc_print_operand function call.
16076 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
16077 functions.
16078
16079 2011-04-30 Jan Hubicka <jh@suse.cz>
16080
16081 PR middle-end/48752
16082 * ipa-inline.c (early_inliner): Disable when doing late
16083 addition of function.
16084
16085 2011-04-30 Jakub Jelinek <jakub@redhat.com>
16086
16087 * dwarf2out.c (get_address_mode): New inline.
16088 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
16089 if not dwarf_strict emit
16090 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
16091 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
16092 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
16093 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
16094 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
16095 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
16096 mem_loc_descriptor callers.
16097 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16098 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
16099 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
16100 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
16101 (base_types): New variable.
16102 (get_base_type_offset, calc_base_type_die_sizes,
16103 base_type_for_mode, mark_base_types, base_type_cmp,
16104 move_marked_base_types): New functions.
16105 (calc_die_sizes): Assert that die_offset is 0 or equal to
16106 next_die_offset.
16107 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
16108 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
16109 callers. If not dwarf_strict, call mem_loc_descriptor even for
16110 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
16111 (gen_subprogram_die): Don't give up on call site parameters
16112 with non-integral or large integral modes. Adjust
16113 mem_loc_descriptor callers.
16114 (prune_unused_types): Call prune_unused_types_mark on base_types
16115 vector entries.
16116 (resolve_addr): Call mark_base_types.
16117 (dwarf2out_finish): Call move_marked_base_types.
16118
16119 PR tree-optimization/48809
16120 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
16121 type.
16122 (gen_inbound_check): Don't compute index_expr - range_min in utype
16123 again, instead reuse SSA_NAME initialized in build_arrays.
16124 Remove two useless gsi_for_stmt calls.
16125
16126 2011-04-29 Jeff Law <law@redhat.com>
16127
16128 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
16129
16130 2011-04-29 Martin Jambor <mjambor@suse.cz>
16131
16132 * cgraph.h (cgraph_postorder): Remove declaration.
16133 * ipa-utils.h (ipa_free_postorder_info): Declare.
16134 (ipa_reverse_postorder): Likewise.
16135 * cgraphunit.c: Include ipa-utils.h.
16136 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
16137 * ipa-inline.c: Include ipa-utils.h.
16138 (ipa_inline): Update call to ipa_reverse_postorder.
16139 * ipa-pure-const.c (propagate_pure_const): Update call to
16140 ipa_reduced_postorder and ipa_print_order. Call
16141 ipa_free_postorder_info to clean up.
16142 (propagate_nothrow): Likewise.
16143 * ipa-reference.c (propagate): Removed a useless call to
16144 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
16145 and ipa_print_order. Call ipa_free_postorder_info to clean up.
16146 * ipa.c: Include ipa-utils.h.
16147 (ipa_profile): Update call to ipa_reverse_postorder.
16148 (cgraph_postorder): Moved to...
16149 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
16150 (ipa_utils_print_order): Renamed to ipa_print_order.
16151 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
16152 comments.
16153 (ipa_free_postorder_info): New function.
16154 * passes.c: Include ipa-utils.h.
16155 (do_per_function_toporder): Update call to ipa_reverse_postorder.
16156 (ipa_write_summaries): Likewise.
16157 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
16158 (cgraphunit.o): Likewise.
16159 (ipa.o): Likewise.
16160 (ipa-inline.o): Likewise.
16161
16162 2011-04-29 Jan Hubicka <jh@suse.cz>
16163
16164 * gcc.dg/tree-ssa/inline-10.c: New testcase.
16165 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
16166 * ipa-inline.h (clause_t): Turn into unsigned int.
16167 * ipa-inline-analysis.c (add_clause): Do more simplification.
16168 (and_predicates): Shortcut more cases.
16169 (predicates_equal_p): Move forward; check that clauses are properly
16170 ordered.
16171 (or_predicates): Shortcut more cases.
16172 (edge_execution_predicate): Rewrite as...
16173 (set_cond_stmt_execution_predicate): ... this function; handle
16174 __builtin_constant_p.
16175 (set_switch_stmt_execution_predicate): New .
16176 (compute_bb_predicates): New.
16177 (will_be_nonconstant_predicate): Update TODO.
16178 (estimate_function_body_sizes): Use compute_bb_predicates
16179 and free them later, always try to estimate if stmt is constant.
16180 (estimate_time_after_inlining, estimate_size_after_inlining):
16181 Gracefully handle optimized out edges.
16182 (read_predicate): Fix off by one error.
16183
16184 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
16185
16186 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
16187
16188 2011-04-27 Xinliang David Li <davidxl@google.com>
16189
16190 * tree-profile.c (init_ic_make_global_vars): Set
16191 tls attribute on ic vars.
16192 * coverage.c (coverage_end_function): Initialize
16193 function_list with zero.
16194
16195 2011-04-29 Richard Guenther <rguenther@suse.de>
16196
16197 * builtins.c (fold_builtin_classify_type): Use integer_type_node
16198 for the type of the result.
16199 (fold_builtin_isascii): Likewise.
16200 (fold_builtin_toascii): Use integer_type_node where appropriate.
16201 (fold_builtin_logb): Likewise.
16202 (fold_builtin_frexp): Likewise.
16203 (fold_builtin_strstr): Likewise.
16204 (fold_builtin_strpbrk): Likewise.
16205 (fold_builtin_fputs): Likewise.
16206 (fold_builtin_sprintf): Likewise.
16207 (fold_builtin_snprintf): Likewise.
16208 (fold_builtin_printf): Likewise.
16209 (do_mpfr_remquo): Use a proper type for the assigned constant.
16210 (do_mpfr_lgamma_r): Likewise.
16211 * dwarf2out.c (resolve_one_addr): Use size_int.
16212 * except.c (init_eh): Likewise.
16213 (assign_filter_values): Use integer_type_node for filter values.
16214 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
16215 indices.
16216 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
16217 for EH region numbers.
16218 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
16219 for the shift amount.
16220
16221 2011-04-29 Richard Guenther <rguenther@suse.de>
16222
16223 * expr.h (expand_shift): Rename to ...
16224 (expand_variable_shift): ... this.
16225 (expand_shift): Take a constant shift amount.
16226 * expmed.c (expand_shift): Rename to ...
16227 (expand_variable_shift): ... this.
16228 (expand_shift): New wrapper around expand_variable_shift.
16229 * expr.c (convert_move, emit_group_load_1, emit_group_store,
16230 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
16231 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
16232 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
16233 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
16234 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
16235 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
16236 emit_store_flag_1, emit_store_flag): Likewise.
16237 * builtins.c (expand_builtin_signbit): Likewise.
16238 * calls.c (load_register_parameters): Likewise.
16239 * function.c (assign_parm_setup_block): Likewise.
16240 * lower-subreg.c (resolve_shift_zext): Likewise.
16241 * optabs.c (widen_bswap, expand_abs_nojump,
16242 expand_one_cmpl_abs_nojump, expand_float): Likewise.
16243 * spu/spu.c (spu_expand_extv): Likewise.
16244 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16245
16246 2011-04-29 Richard Guenther <rguenther@suse.de>
16247
16248 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16249 for the remapped region number.
16250 * predict.c (build_predict_expr): Use integer_type_node for the
16251 predict kind.
16252 * fold-const.c (fold_binary_loc): Use integer_type_node for
16253 the shift amount. Use a proper type for the PLUS_EXPR operand.
16254
16255 2011-04-29 Michael Matz <matz@suse.de>
16256
16257 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16258 other trees that just builtins.
16259 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16260
16261 2011-04-29 Richard Guenther <rguenther@suse.de>
16262
16263 * tree-nested.c (get_trampoline_type): Use size_int.
16264 (get_nl_goto_field): Likewise.
16265 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16266 for all indexes.
16267 (lower_eh_constructs_2): Likewise.
16268 (lower_resx): Likewise.
16269 (lower_eh_dispatch): Likewise.
16270 * tree-mudflap.c (mf_build_string): Use size_int.
16271 (mudflap_register_call): Use integer_type_node for the flag.
16272 (mudflap_enqueue_constant): Use size_int.
16273 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16274 instead of rebuilding it.
16275
16276 2011-04-29 Richard Guenther <rguenther@suse.de>
16277
16278 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16279 Handle OBJ_TYPE_REF.
16280 (find_func_aliases_for_call): Use it more consistently.
16281
16282 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
16283
16284 * haifa-sched.c (last_nondebug_scheduled_insn): New.
16285 (rank_for_schedule): Use it.
16286 (schedule_block): Set it.
16287
16288 2011-04-28 David Li <davidxl@google.com>
16289
16290 * tree.c (crc32_string): Use crc32_byte.
16291 (crc32_byte): New function.
16292 * tree.h (crc32_byte): New function.
16293 * gcov.c (read_graph_file): Handle new cfg_cksum.
16294 (read_count_file): Ditto.
16295 * profile.c (instrument_values): Ditto.
16296 (get_exec_counts): Ditto.
16297 (read_profile_edge_counts): Ditto.
16298 (compute_branch_probabilities): Ditto.
16299 (compute_value_histograms): Ditto.
16300 (branch_prob): Ditto.
16301 (end_branch_prob): Ditto.
16302 * coverage.c (read_counts_file): Ditto.
16303 (get_coverage_counts): Ditto.
16304 (tree_coverage_counter_addr): Ditto.
16305 (coverage_checksum_string): Ditto.
16306 (coverage_begin_output): Ditto.
16307 (coverage_end_function): Ditto.
16308 (build_fn_info_type): Ditto.
16309 (build_fn_info_value): Ditto.
16310 * libgcov.c (gcov_exit): Ditto.
16311 * gcov-dump.c (tag_function): Ditto.
16312 (compute_checksum): Remove.
16313
16314 2011-04-29 Alan Modra <amodra@gmail.com>
16315
16316 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16317 unspec plus offset. Tidy macho code.
16318
16319 2011-04-29 Martin Jambor <mjambor@suse.cz>
16320
16321 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16322 node instead of a decl. Update all callers.
16323 * cgraph.h: Update declaration.
16324
16325 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
16326
16327 PR tree-optimization/48765
16328 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16329 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
16330 to indicate if loop aware SLP is being used. Scan the statements
16331 and update the vectorization factor according to the type of
16332 vectorization before statement analysis.
16333 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16334 pass it to vect_analyze_loop_operations.
16335 (vectorizable_reduction): Set number of copies to 1 in case of pure
16336 SLP statement.
16337 * tree-vect-stmts.c (vectorizable_conversion,
16338 vectorizable_assignment, vectorizable_shift,
16339 vectorizable_operation, vectorizable_type_demotion,
16340 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
16341 Likewise.
16342 (vectorizable_condition): Move the check that it is not SLP
16343 vectorization before the number of copies check.
16344 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
16345 to vectorize the loop using SLP.
16346
16347 2011-04-28 Jakub Jelinek <jakub@redhat.com>
16348
16349 PR middle-end/48597
16350 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
16351 inline asm.
16352
16353 2011-04-28 Joseph Myers <joseph@codesourcery.com>
16354
16355 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
16356 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
16357 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16358 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16359 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
16360 linux*.h headers.
16361 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
16362 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16363 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16364 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16365 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16366 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
16367 REG_NAME.
16368 * config/i386/linux.h (REG_NAME): Don't define.
16369 * config/i386/linux64.h (REG_NAME): Don't define.
16370 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
16371 Undefine before defining.
16372
16373 2011-04-28 Jan Hubicka <jh@suse.cz>
16374
16375 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
16376 nonconstant_names array.
16377 (estimate_function_body_sizes): Build nonconstant_names array; handle
16378 BUILT_IN_CONSTANT_P.
16379
16380 2011-04-28 Richard Guenther <rguenther@suse.de>
16381
16382 PR bootstrap/48804
16383 Revert
16384 2011-04-28 Richard Guenther <rguenther@suse.de>
16385
16386 * tree-ssa-structalias.c (solve_constraints): Build succ graph
16387 as late as possible.
16388
16389 2011-04-28 Richard Guenther <rguenther@suse.de>
16390
16391 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
16392 (debug_constraint): Do it here.
16393 (dump_constraints): And here.
16394 (rewrite_constraints): And here.
16395 (dump_constraint_edge): Remove.
16396 (dump_constraint_graph): Rewrite to produce DOT output.
16397 (solve_constraints): Build succ graph as late as possible.
16398 Dump constraint graphs before and after solving.
16399
16400 2011-04-28 Richard Guenther <rguenther@suse.de>
16401
16402 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16403 New function split out from ...
16404 (find_func_aliases): ... here. Call it.
16405 (find_func_aliases_for_call): Likewise.
16406
16407 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
16408
16409 * internal-fn.h (internal_fn_name_array): Declare.
16410 (internal_fn_flags_array): Likewise.
16411
16412 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16413
16414 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
16415 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
16416 Move from sse.md.
16417 (ssemodefsuffix): Remove.
16418 (ssevecmodesuffix): New mode attribute.
16419 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
16420 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16421 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16422 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16423 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
16424 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
16425 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
16426 ssemodesuffix mode attribute.
16427 (float splitters): Use ssevecmodesuffix mode attribute.
16428 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
16429 (sseinsmode): Rename from avxvecmode.
16430 (avxsizesuffix): Rename from avxmodesuffix.
16431 (sseintvecmode): Rename from avxpermvecmode.
16432 (ssedoublevecmode): Rename from ssedoublesizemode.
16433 (ssehalfvecmode): Rename from avxhalfvecmode.
16434 (ssescalarmode): Rename from avxscalarmode.
16435 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
16436 templates for ssemodesuffix mode attribute.
16437 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
16438 mode attribute.
16439
16440 Adjust RTX patterns globally for renamed mode attributes.
16441
16442 2011-04-27 Jan Hubcika <jh@suse.cz>
16443
16444 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
16445 * ipa-inline-analysis.c: Include alloc-pool.h.
16446 (edge_predicate_pool): New.
16447 (trye_predicate_p): New function
16448 (false_predicate_p): New function.
16449 (add_clause): Sanity check that false clauses are "optimized";
16450 never add clauses to predicate that is already known to be false.
16451 (and_predicate): Use flase_predicate_p.
16452 (evaulate_predicate): Rename to ...
16453 (evaluate_predicate): ... this one; update all callers; assert
16454 that false is not listed among possible truths.
16455 (dump_predicate): Use true_predicate_p.
16456 (account_size_time): Use false_predicate_p.
16457 (evaulate_conditions_for_edge): Rename to ...
16458 (evaluate_conditions_for_edge) ... this one.
16459 (edge_set_predicate): New function.
16460 (inline_edge_duplication_hook): Duplicate edge predicates.
16461 (inline_edge_removal_hook): Free edge predicates.
16462 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
16463 (dump_inline_summary): Update.
16464 (estimate_function_body_sizes): Set edge predicates.
16465 (estimate_calls_size_and_time): Handle predicates.
16466 (estimate_callee_size_and_time): Update.
16467 (remap_predicate): Add toplev_predicate; update comment.
16468 (remap_edge_predicates): New function.
16469 (inline_merge_summary): Compute toplev predicate; update.
16470 (read_predicate): New function.
16471 (read_inline_edge_summary): Use it.
16472 (inline_read_section): Likewise.
16473 (write_predicate): New function.
16474 (write_inline_edge_summary): Use it.
16475 (inline_write_summary): Likewise.
16476 (inline_free_summary): Free alloc pool and edge summary vec.
16477
16478 2011-04-27 Richard Guenther <rguenther@suse.de>
16479
16480 * tree-ssa-structalias.c (changed_count): Remove.
16481 (changed): Use a bitmap.
16482 (unify_nodes): Adjust.
16483 (do_sd_constraint): Likewise.
16484 (do_ds_constraint): Likewise.
16485 (do_complex_constraint): Likewise.
16486 (solve_graph): Likewise.
16487
16488 2011-04-27 Jan Hubicka <jh@suse.cz>
16489
16490 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
16491
16492 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16493
16494 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
16495 (avx_vperm2f128_*_operand): Ditto.
16496 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
16497 Use avx_vpermilp_parallel in insn condition.
16498 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
16499 Use avx_vperm2f128_parallel in insn condition.
16500
16501 2011-04-27 Richard Guenther <rguenther@suse.de>
16502
16503 * Makefile.in (tree-ssa-structalias.o): Remove
16504 gt-tree-ssa-structalias.h dependency.
16505 (GTFILES): Remove tree-ssa-structalias.c.
16506 * tree.c (allocate_decl_uid): New function.
16507 (make_node_stat): Use it.
16508 (copy_node_stat): Likewise.
16509 * tree.h (allocate_decl_uid): Declare.
16510 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
16511 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
16512 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
16513 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
16514 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
16515 (struct heapvar_map): Likewise.
16516 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
16517 heapvar_insert): Likewise.
16518 (make_heapvar_for): Rename to ...
16519 (make_heapvar): ... this. Simplify.
16520 (fake_var_decl_obstack): New global var.
16521 (build_fake_var_decl): New function.
16522 (make_constraint_from_heapvar): Adjust.
16523 (handle_lhs_call): Likewise.
16524 (create_function_info_for): Likewise.
16525 (intra_create_variable_infos): Likewise.
16526 (init_alias_vars): Allocate fake_var_decl_obstack.
16527 (init_alias_heapvars, delete_alias_heapvars): Remove.
16528 (compute_points_to_sets): Do not call init_alias_heapvars.
16529 (ipa_pta_execute): Likewise.
16530 (delete_points_to_sets): Free fake_var_decl_obstack.
16531
16532 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16533
16534 * config/spu/divmovti4.c (union qword_UTItype): New data type.
16535 (si_from_UTItype, si_to_UTItype): New functions.
16536 (__udivmodti4): Use them to implement type-punning.
16537 * config/spu/multi3.c (union qword_TItype): New data type.
16538 (si_from_TItype, si_to_TItype): New functions.
16539 (__multi3): Use them to implement type-punning.
16540
16541 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16542
16543 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
16544
16545 2011-04-27 Jan Hubicka <jh@suse.cz>
16546
16547 * ipa-prop.c (function_insertion_hook_holder): New holder.
16548 (ipa_add_new_function): New function.
16549 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
16550 Register/deregister holder.
16551
16552 2011-04-27 Richard Guenther <rguenther@suse.de>
16553
16554 PR tree-optimization/48772
16555 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
16556
16557 2011-04-27 Richard Guenther <rguenther@suse.de>
16558
16559 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16560 TARGET_MEM_REF handling.
16561
16562 2011-04-27 Nick Clifton <nickc@redhat.com>
16563
16564 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16565 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16566 (REG_CLASS_NAMES): Likewise.
16567 (REG_CLASS_CONTENTS): Likewise.
16568 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16569 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16570 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
16571 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
16572 (EVEN_REGS): New macro. Alias for QUAD_REGS.
16573 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16574 duplicate register classes.
16575 (frv_class_likely_spilled_p): Likewise.
16576 (frv_register_move_cost): Likewise.
16577
16578 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16579 end of the regno_reg_class array.
16580
16581 2011-04-27 Jakub Jelinek <jakub@redhat.com>
16582
16583 PR c/48742
16584 * c-typeck.c (build_binary_op): Don't wrap arguments if
16585 int_operands is true.
16586
16587 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
16588
16589 PR target/48767
16590 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16591 targetm.calls.must_pass_in_stack for void type.
16592
16593 2011-04-26 Jan Hubicka <jh@suse.cz>
16594
16595 * cgraphbuild.c (build_cgraph_edges): Update call
16596 of cgraph_create_edge and cgraph_create_indirect_edge.
16597 * cgraph.c (cgraph_create_edge_including_clones,
16598 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16599 cgraph_update_edges_for_call_stmt_node): Do not take nest
16600 argument; do not initialize call_stmt_size/time.
16601 (dump_cgraph_node): Do not dump nest.
16602 (cgraph_clone_edge): Do not take loop_nest argument;
16603 do not propagate it; do not clone call_stmt_size/time.
16604 (cgraph_clone_node): Likewise.
16605 (cgraph_create_virtual_clone): Update.
16606 * cgraph.h (struct cgraph_edge): Remove
16607 call_stmt_size/call_stmt_time/loop_nest.
16608 (cgraph_create_edge, cgraph_create_indirect_edge,
16609 cgraph_create_edge_including_clones, cgraph_clone_node): Update
16610 prototype.
16611 * tree-emutls.c (gen_emutls_addr): Update.
16612 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16613 loop_nest; handle indirect calls, too.
16614 (clone_inlined_nodes): Do not care about updating inline summaries.
16615 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16616 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16617 stream call_stmt_size/call_stmt_time/loop_nest.
16618 * ipa-inline.c (edge_badness): Update.
16619 (ipa_inline): dump summaries after inlining.
16620 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16621 New.
16622 (inline_edge_summary): New function.
16623 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16624 (inline_edge_removal_hook): Handle edge summaries.
16625 (inline_edge_duplication_hook): New hook.
16626 (inline_summary_alloc): Alloc hooks.
16627 (initialize_growth_caches): Do not register removal hooks.
16628 (free_growth_caches); Do not free removal hook.
16629 (dump_inline_edge_summary): New function.
16630 (dump_inline_summary): Use it.
16631 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16632 (inline_update_callee_summaries): New function.
16633 (inline_merge_summary): Use it.
16634 (do_estimate_edge_time, do_estimate_edge_growth): Update.
16635 (read_inline_edge_summary): New function.
16636 (inline_read_section): Use it.
16637 (write_inline_edge_summary): New function.
16638 (inline_write_summary): Use it.
16639 (inline_free_summary): Free edge new holders.
16640 * tree-inline.c (copy_bb): Update.
16641
16642 2011-04-26 Jason Merrill <jason@redhat.com>
16643
16644 * tree-eh.c (lower_try_finally_switch): Create the label along with
16645 the CASE_LABEL_EXPR.
16646
16647 2011-04-26 David S. Miller <davem@davemloft.net>
16648 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16649
16650 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16651 * configure: Regenerate.
16652
16653 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16654
16655 PR target/48258
16656 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16657 reduction.
16658 (VEC_reduc): New code iterator and splitters for vector reduction.
16659 (VEC_reduc_name): Ditto.
16660 (VEC_reduc_rtx): Ditto.
16661 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16662 (reduc_<VEC_reduc_name>_v4sf): Ditto.
16663
16664 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16665 support for extracting SF on VSX.
16666
16667 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16668 generating xscvspdp.
16669 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16670 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16671 double add, minimum, maximum vector reduction.
16672 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16673 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16674 optimize double vector reduction.
16675 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16676
16677 2011-04-26 Joseph Myers <joseph@codesourcery.com>
16678
16679 * config/fr30/fr30.h (inhibit_libc): Don't define.
16680 * config/m32r/m32r-protos.h: Correct comment.
16681 * config/v850/v850.h (GHS_default_section_names,
16682 GHS_current_section_names): Use tree, not union tree_node *.
16683
16684 2011-04-26 Xinliang David Li <davidxl@google.com>
16685
16686 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16687 * c-family/c-opts.c (c_common_handle_option): Set
16688 warn_maybe_uninitialized.
16689 * opts.c (common_handle_option): Ditto.
16690 * common.opt: New option.
16691 * tree-ssa.c (warn_uninit): Add one more parameter.
16692 (warn_uninitialized_var): Pass warning code.
16693 * tree-flow.h: Interface change.
16694
16695 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16696
16697 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16698 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16699 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16700
16701 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16702
16703 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16704 * config/mips/mips.opt (mmips-tfile): Remove.
16705
16706 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16707 mips-tdump reference to ...
16708 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
16709 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16710 reference by Tru64 UNIX.
16711
16712 2011-04-26 Jakub Jelinek <jakub@redhat.com>
16713
16714 PR debug/48768
16715 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16716 is error_mark_node, set value to NULL.
16717
16718 PR tree-optimization/48734
16719 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16720 if return value from maybe_fold_*_comparsions isn't something
16721 the code is prepared to handle.
16722
16723 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
16724
16725 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16726 mode check.
16727 (ext_QIreg_nomode_operands): Remove.
16728 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16729 (*andsi_1): Ditto.
16730 (*andhi_1): Ditto.
16731
16732 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
16733
16734 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16735
16736 2011-04-26 Richard Guenther <rguenther@suse.de>
16737
16738 * c-typeck.c (build_unary_op): Do not expand array-refs via
16739 pointer arithmetic. Only adjust qualifiers for function types.
16740
16741 2011-04-26 Richard Guenther <rguenther@suse.de>
16742
16743 PR middle-end/48694
16744 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16745 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16746 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
16747 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16748
16749 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
16750
16751 * doc/extend.texi: Document __underlying_type.
16752
16753 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
16754
16755 * config/rs6000/titan.md (automata_option "progress"): Remove.
16756
16757 2011-04-25 Jeff Law <law@redhat.com>
16758
16759 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16760
16761 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16762
16763 * system.h (ENUM_BITFIELD): Remove.
16764
16765 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
16766 Eric Botcazou <ebotcazou@adacore.com>
16767
16768 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16769 for STORE_FLAG_VALUE==-1 case.
16770
16771 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
16772
16773 PR target/43804
16774 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16775 LEGITIMATE_PIC_OPERAND_P.
16776
16777 2011-04-24 Jan Hubicka <jh@suse.cz>
16778
16779 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16780 WPA hack.
16781 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
16782 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
16783 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
16784 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
16785 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
16786 Sanity check predicate length.
16787 (remap_predicate): Likewise; sanity check jump functions.
16788 (inline_read_section, inline_write_summary): Sanity check
16789 predicate length.
16790
16791 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16792
16793 PR other/48748
16794 * doc/extend.texi (Type Traits): Document __is_standard_layout,
16795 __is_literal_type, and __is_trivial; update throughout about
16796 possibly cv-qualified void types.
16797
16798 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
16799
16800 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
16801 testsuite and make it version agnostic.
16802
16803 2011-04-22 Jan Hubicka <jh@suse.cz>
16804
16805 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16806
16807 2011-04-23 Jakub Jelinek <jakub@redhat.com>
16808
16809 PR c/48685
16810 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
16811 to VOID_TYPE even around MODIFY_EXPR.
16812
16813 2011-04-22 Mike Stump <mikestump@comcast.net>
16814
16815 * gensupport.c (read_md_rtx): Fix typo in comment.
16816 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
16817 comment.
16818
16819 2011-04-22 Jan Hubicka <jh@suse.cz>
16820
16821 * gengtype.c (open_base_files): Add ipa-inline.h include.
16822 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
16823 ipa-prop.c; update all uses.
16824 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
16825 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
16826 merge summary of inlined function into former caller.
16827 * ipa-inline.c (max_benefit): Remove.
16828 (edge_badness): Compensate for removal of benefits.
16829 (update_caller_keys): Use
16830 reset_node_growth_cache/reset_edge_growth_cache.
16831 (update_callee_keys): Likewise.
16832 (update_all_callee_keys): Likewise.
16833 (inline_small_functions): Do not collect max_benefit; do not reset
16834 estimated_growth; call free_growth_caches and initialize_growth_caches.
16835 * ipa-inline.h (struct condition, type clause_t, struct predicate,
16836 struct size_time_entry): New structures.
16837 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
16838 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
16839 and estimated_growth.
16840 (edge_growth_cache_entry): New structure.
16841 (node_growth_cache, edge_growth_cache): New global vars.
16842 (estimate_growth): Turn into inline.
16843 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
16844 initialize_growth_caches, free_growth_caches): Declare.
16845 (estimate_edge_growth): Rewrite.
16846 (estimate_edge_time): Implement as inline cache lookup.
16847 (reset_node_growth_cache, reset_edge_growth_cache): New inline
16848 functions.
16849 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16850 (NUM_CONDITIONS): New constant.
16851 (predicate_conditions): New enum.
16852 (IS_NOT_CONSTANT): New constant.
16853 (edge_removal_hook_holder): New var.
16854 (node_growth_cache, edge_growth_cache): New global vars.
16855 (true_predicate, single_cond_predicate, false_predicate,
16856 not_inlined_predicate, add_condition, add_clause, and_predicates,
16857 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16858 dump_clause, dump_predicate, account_size_time,
16859 evaulate_conditions_for_edge): New functions.
16860 (inline_summary_alloc): Move to heap.
16861 (inline_node_removal_hook): Clear condition and entry vectors.
16862 (inline_edge_removal_hook): New function.
16863 (initialize_growth_caches, free_growth_caches): New function.
16864 (dump_inline_summary): Update.
16865 (edge_execution_predicate): New function.
16866 (will_be_nonconstant_predicate): New function.
16867 (estimate_function_body_sizes): Compute BB and constantness predicates.
16868 (compute_inline_parameters): Do not clear estimated_growth.
16869 (estimate_edge_size_and_time): New function.
16870 (estimate_calls_size_and_time): New function.
16871 (estimate_callee_size_and_time): New function.
16872 (remap_predicate): New function.
16873 (inline_merge_summary): New function.
16874 (do_estimate_edge_time): New function based on...
16875 (estimate_edge_time): ... this one.
16876 (do_estimate_edge_growth): New function.
16877 (do_estimate_growth): New function based on....
16878 (estimate_growth): ... this one.
16879 (inline_analyze_function): Analyze after deciding on jump functions.
16880 (inline_read_section): New function.
16881 (inline_read_summary): Use it.
16882 (inline_write_summary): Write all the new data.
16883 * ipa-prop.c (ipa_get_param_decl_index): Export.
16884 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16885 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16886 Declare.
16887 (ipa_get_lattice): Move here from ipa-cp.c
16888 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16889 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16890 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16891 cgraph_edge_inlinable_p): Remove.
16892 * cgraphunit.c: Include ipainline.h
16893 (cgraph_process_new_functions): Update call of
16894 compute_inline_parameters.
16895
16896 2011-04-22 Richard Guenther <rguenther@suse.de>
16897
16898 * tree.c (build_int_cst): Properly create canonicalized integer
16899 constants.
16900 (build_int_cst_type): Remove scary comments.
16901
16902 2011-04-22 Xinliang David Li <davidxl@google.com>
16903
16904 * toplev.c (process_options): Enable -Werror=coverage-mismatch
16905 by default when -Wno-error is not specified.
16906 * opts-global.c (decode_options): Remove call to
16907 control_warning_options.
16908
16909 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16910
16911 PR tree-optimization/48717
16912 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16913 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16914
16915 2011-04-22 Joseph Myers <joseph@codesourcery.com>
16916
16917 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
16918 definition where used.
16919
16920 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16921
16922 PR c/48716
16923 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16924 TREE_STATIC variables declared inside of some OpenMP construct.
16925
16926 2011-04-22 Martin Jambor <mjambor@suse.cz>
16927
16928 PR middle-end/48585
16929 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16930
16931 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
16932
16933 PR c/36750
16934 * c-typeck.c (pop_init_level): Do not warn about initializing
16935 with ` = {0}'.
16936
16937 2011-04-22 Alan Modra <amodra@gmail.com>
16938
16939 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16940 when returning call_cookie.
16941 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16942 pointers, to functions with no more vector args than the current
16943 function, and some non-local calls for ABI_V4.
16944 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16945 sibcall_nonlocal_aix64): Combine to ..
16946 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
16947 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16948 (sibcall_value_nonlocal_aix<mode>): ..likewise.
16949 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16950 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
16951 operand.
16952 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16953 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16954 sibcall_value_symbolic_64): Delete.
16955
16956 2011-04-21 Xinliang David Li <davidxl@google.com>
16957
16958 * cgraph.h: Remove pid.
16959 * cgraph.c: Remove pid.
16960 * value-prof.c (init_node_map): New function.
16961 (del_node_map): New function.
16962 (find_func_by_funcdef_no): New function.
16963 (gimple_ic_transform): Call new function.
16964 * cgraphunit.c (cgraph_finalize_function): Remove pid.
16965 * function.c (get_last_funcdef_no): New function.
16966 * function.h (get_last_funcdef_no): New function.
16967 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16968 to libgcov function.
16969 (tree-profiling): Call node map init and delete function.
16970
16971 2011-04-21 Ian Lance Taylor <iant@google.com>
16972
16973 * godump.c (go_format_type): Use exported Go name for anonymous
16974 field name.
16975
16976 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16977
16978 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16979 Call builtin_function_type_list instead of builtin_function_type.
16980 (UNARY, BINARY, TRINARY, QUAD): Likewise.
16981
16982 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16983
16984 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16985 build_function_type_list instead of build_function_type.
16986 Delete variable `endlink'.
16987
16988 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16989
16990 * config/s390/s390.c (s390_init_builtins): Call
16991 build_function_type_list instead of build_function_type.
16992
16993 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16994
16995 * config/ia64/ia64.c (ia64_init_builtins): Call
16996 build_function_type_list instead of builtin_function_type.
16997
16998 2011-04-21 Easwaran Raman <eraman@google.com>
16999
17000 * cfgexpand.c (stack_var): Remove OFFSET...
17001 (add_stack_var): ...and its reference here...
17002 (expand_stack_vars): ...and here.
17003 (stack_var_cmp): Sort by descending order of size.
17004 (partition_stack_vars): Change heuristic.
17005 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
17006 (dump_stack_var_partition): Add newline after each partition.
17007
17008 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
17009 Jeff Law <law@redhat.com>
17010
17011 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
17012 * gengtype.c (matching_file_name_substitute): Likewise.
17013
17014 2011-04-21 Richard Guenther <rguenther@suse.de>
17015
17016 PR lto/48703
17017 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
17018
17019 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
17020
17021 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
17022
17023 2011-04-21 Richard Guenther <rguenther@suse.de>
17024
17025 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
17026 file name.
17027
17028 2011-04-21 Richard Guenther <rguenther@suse.de>
17029
17030 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17031 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
17032 Use DECL_P, not SSA_VAR_P.
17033 (ptr_derefs_may_alias_p): Likewise.
17034 (ptr_deref_may_alias_ref_p_1): Likewise.
17035 (decl_refs_may_alias_p): Likewise.
17036 (refs_may_alias_p_1): Likewise.
17037 (ref_maybe_used_by_call_p_1): Likewise.
17038 (call_may_clobber_ref_p_1): Likewise.
17039 (indirect_ref_may_alias_decl_p): Assume indirect refrences
17040 are either MEM_REF or TARGET_MEM_REF.
17041 (indirect_refs_may_alias_p): Likewise.
17042 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
17043 for MEM_EXPR of indirect calls.
17044
17045 2011-04-21 Tristan Gingold <gingold@adacore.com>
17046
17047 * vmsdbgout.c (write_srccorr): Compute file length from the string.
17048 (dst_file_info_struct): Remove flen field.
17049 (lookup_filename): Remove code that set flen field.
17050
17051 2011-04-21 Tristan Gingold <gingold@adacore.com>
17052
17053 * config/ia64/ia64.c (ia64_start_function): Add a guard.
17054
17055 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
17056
17057 PR target/48708
17058 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
17059 vec_extract and vec_concat for non-SSE4_1 targets.
17060
17061 2011-04-21 Richard Guenther <rguenther@suse.de>
17062
17063 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
17064 return statements.
17065
17066 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17067
17068 * config/i386/cygming.h (union tree_node, TREE): Don't define or
17069 undefine.
17070 (FILE): Don't undefine.
17071
17072 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17073
17074 * config/alpha/alpha.c (struct machine_function): Use rtx, not
17075 struct rtx_def *.
17076 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
17077 struct rtx_def *.
17078 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
17079 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
17080 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
17081 rtx_def *.
17082 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
17083 definitions where used.
17084 * config/microblaze/microblaze.h (struct microblaze_args): Use
17085 rtx, not struct rtx_def *.
17086 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
17087 rtx_def *.
17088 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
17089 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
17090 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
17091 not struct rtx_def *.
17092 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
17093 struct rtx_def *.
17094 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
17095 rtx_def *.
17096 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
17097
17098 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17099
17100 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
17101 operand_equal_p to compare DR_BASE_ADDRESSes.
17102 (vect_check_interleaving): Likewise.
17103
17104 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17105
17106 PR target/46329
17107 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
17108 for all Neon struct constants.
17109
17110 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17111
17112 * target.def (legitimate_constant_p): New hook.
17113 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
17114 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
17115 * doc/tm.texi: Regenerate.
17116 * hooks.h (hook_bool_mode_rtx_true): Declare.
17117 * hooks.c (hook_bool_mode_rtx_true): Define.
17118 * system.h (LEGITIMATE_CONSTANT_P): Poison.
17119 * calls.c (precompute_register_parameters): Replace uses of
17120 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
17121 (emit_library_call_value_1): Likewise.
17122 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
17123 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
17124 * ira-costs.c (scan_one_insn): Likewise.
17125 * recog.c (general_operand, immediate_operand): Likewise.
17126 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
17127 * reload1.c (init_eliminable_invariants): Likewise.
17128
17129 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
17130 mode argument.
17131 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
17132 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
17133 argument.
17134 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17135 * config/alpha/predicates.md (input_operand): Update call to
17136 alpha_legitimate_constant_p.
17137
17138 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
17139 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
17140 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
17141 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17142 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
17143 (arm_legitimate_constant_p): New functions.
17144 (arm_cannot_force_const_mem): Make static.
17145
17146 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
17147
17148 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
17149 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
17150 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
17151 instead of bfin_legitimate_constant_p.
17152 (bfin_legitimate_constant_p): Make static. Add a mode argument.
17153 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17154
17155 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
17156
17157 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
17158
17159 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
17160 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
17161 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17162 (frv_legitimate_constant_p): Make static. Add a mode argument.
17163
17164 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
17165 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
17166 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
17167
17168 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
17169 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
17170 * config/i386/i386.c (legitimate_constant_p): Rename to...
17171 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
17172 argument.
17173 (ix86_cannot_force_const_mem): Update accordingly.
17174 (ix86_legitimate_address_p): Likewise.
17175 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17176 * config/i386/i386.md: Update commentary.
17177
17178 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
17179 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
17180 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17181 (ia64_legitimate_constant_p): Make static. Add a mode argument.
17182
17183 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
17184
17185 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
17186 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
17187 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17188 (lm32_legitimate_constant_p): Make static. Add a mode argument.
17189
17190 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
17191 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
17192 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
17193
17194 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
17195 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17196 (m32r_legitimate_constant_p): New function.
17197
17198 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
17199 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
17200 LEGITIMATE_CONSTANT_P.
17201 (LEGITIMATE_CONSTANT_P): Delete.
17202 * config/m68k/m68k.c (m68k_expand_prologue): Call
17203 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
17204 (m68k_legitimate_constant_p): New function.
17205 * config/m68k/m68k.md: Update comments.
17206
17207 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
17208 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17209 (mcore_legitimate_constant_p): New function.
17210
17211 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
17212 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
17213 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
17214 Add a mode argument.
17215 (mep_legitimate_address): Update accordingly.
17216 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17217
17218 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
17219 Delete.
17220 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
17221 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
17222 static. Check OP's mode for VOIDmode.
17223 (microblaze_legitimate_constant_p): New function.
17224 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17225
17226 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
17227 * config/mips/mips.c (mips_legitimate_constant_p): New function.
17228 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
17229 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17230 * config/mips/predicates.md: Update comments.
17231
17232 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
17233 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
17234 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17235 (mmix_legitimate_constant_p): Make static, return a bool, and take
17236 a mode argument.
17237 (mmix_print_operand_address): Update accordingly.
17238
17239 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
17240 Delete.
17241 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
17242 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
17243 static. Add a mode argument.
17244 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17245
17246 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17247
17248 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17249 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17250 (pa_legitimate_constant_p): New function.
17251
17252 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17253
17254 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17255 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17256 (pdp11_legitimate_constant_p): New function.
17257
17258 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17259 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17260 (rs6000_legitimate_constant_p): New function.
17261
17262 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17263 (rx_legitimate_constant_p): ...this.
17264 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17265 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17266 (rx_legitimate_constant_p): ...this.
17267 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17268 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17269
17270 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17271 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17272 * config/s390/s390.c (legitimate_constant_p): Rename to...
17273 (s390_legitimate_constant_p): ...this. Make static, return a bool,
17274 and add a mode argument.
17275 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17276
17277 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17278
17279 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17280 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17281 (sh_legitimate_constant_p): New function.
17282
17283 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17284 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17285 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17286 (legitimate_constant_p): Rename to...
17287 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
17288 argument.
17289 (constant_address_p): Update accordingly.
17290
17291 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17292 argument and return a bool.
17293 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17294 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17295 (spu_legitimate_constant_p): Add a mode argument and return a bool.
17296 (spu_rtx_costs): Update accordingly.
17297 * config/spu/predicates.md (vec_imm_operand): Likewise.
17298
17299 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17300
17301 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17302 * config/v850/v850.c (v850_legitimate_constant_p): New function.
17303 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17304
17305 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17306 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17307 * config/vax/vax.c (legitimate_constant_p): Likewise.
17308
17309 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17310 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17311 (xtensa_legitimate_constant_p): New function.
17312
17313 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17314
17315 * target.def (cannot_force_const_mem): Add a mode argument.
17316 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17317 * doc/tm.texi: Regenerate.
17318 * hooks.h (hook_bool_mode_rtx_false): Declare.
17319 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17320 (hook_bool_mode_const_rtx_true): Likewise.
17321 (hook_bool_mode_rtx_false): New function.
17322 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17323 to be non-VOID. Update call to cannot_force_const_mem.
17324 (find_reloads): Update accordingly.
17325 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17326 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17327 argument.
17328 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17329 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
17330 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
17331 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
17332 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
17333 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
17334 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
17335 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17336 (m68k_cannot_force_const_mem): ...this new function.
17337 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
17338 argument.
17339 (mips_const_insns, mips_legitimize_const_move): Update calls.
17340 (mips_secondary_reload_class): Likewise.
17341 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17342 (pa_cannot_force_const_mem): ...this new function.
17343 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
17344 (rs6000_cannot_force_const_mem): ...this new function.
17345 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
17346 argument.
17347 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
17348 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
17349 to...
17350 (xtensa_cannot_force_const_mem): ...this new function.
17351
17352 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17353
17354 * config/mips/mips.c (mips16_build_function_stub): Call
17355 build_function_type_list instead of build_function_type.
17356 (mips16_build_call_stub): Likewise.
17357
17358 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17359
17360 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
17361 instead of build_function_type.
17362
17363 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17364
17365 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
17366 instead of build_function_type.
17367
17368 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
17369
17370 PR target/48678
17371 * config/i386/i386.md (insv): Change operand 0 constraint to
17372 "register_operand". Change operand 1 and 2 constraint to
17373 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
17374 * config/i386/sse.md (sse4_1_pinsrb): Export.
17375 (sse2_pinsrw): Ditto.
17376 (sse4_1_pinsrd): Ditto.
17377 (sse4_1_pinsrq): Ditto.
17378 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
17379 * config/i386/i386.c (ix86_expand_pinsr): New.
17380
17381 2011-04-20 Easwaran Raman <eraman@google.com>
17382
17383 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
17384 containing union type only with -fstrict-aliasing.
17385
17386 2011-04-20 Jim Meyering <meyering@redhat.com>
17387
17388 Remove useless if-before-free tests.
17389 * calls.c (expand_call, save_area): Likewise.
17390 * cfgcleanup.c (try_forward_edges): Likewise.
17391 * collect2.c (collect_execute): Likewise.
17392 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
17393 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
17394 * coverage.c (coverage_checksum_string): Likewise.
17395 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
17396 * cselib.c (cselib_init): Likewise.
17397 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
17398 (df_set_clean_cfg): Likewise.
17399 * function.c (free_after_compilation): Likewise.
17400 * gcc.c (do_spec_1, main): Likewise.
17401 * gcov.c (create_file_names): Likewise.
17402 * gensupport.c (identify_predicable_attribute): Likewise.
17403 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
17404 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
17405 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
17406 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
17407 * ipa-pure-const.c (local_pure_const): Likewise.
17408 * ipa-reference.c (propagate): Likewise.
17409 * ira-costs.c (free_ira_costs): Likewise.
17410 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
17411 * matrix-reorg.c (mat_free): Likewise.
17412 * prefix.c (get_key_value): Likewise.
17413 * profile.c (compute_value_histograms): Likewise.
17414 * reload1.c (free_reg_equiv): Likewise.
17415 * sched-deps.c (free_deps): Likewise.
17416 * sel-sched-ir.c (fence_clear): Likewise.
17417 * sese.c (set_rename, if_region_set_false_region): Likewise.
17418 * tree-data-ref.c (free_rdg): Likewise.
17419 * tree-eh.c (lower_try_finally): Likewise.
17420 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
17421 * tree-ssa-live.c (delete_var_map): Likewise.
17422 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
17423 * tree-ssa-pre.c (phi_trans_add): Likewise.
17424
17425 2011-04-20 Jakub Jelinek <jakub@redhat.com>
17426
17427 PR tree-optimization/48611
17428 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
17429 beyond ERT_MUST_NOT_THROW region.
17430
17431 2011-04-20 Catherine Moore <clm@codesourcery.com>
17432
17433 * config/mips/mips.opt (mfix-24k): New.
17434 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
17435 * config/mips/mips.md (length): Increase by 4 for stores if
17436 fixing 24K errata.
17437 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
17438 all noreorder if fixing 24K errata.
17439 * doc/invoke.texi: Document mfix-24k.
17440
17441 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
17442
17443 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
17444 quad-word modes, reduce to 9-bit index range when above 1016 limit.
17445
17446 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17447
17448 * config/arm/arm.c (arm_gen_constant): Move movw support ....
17449 (const_ok_for_op): ... to here.
17450
17451 2011-04-20 Kai Tietz <ktietz@redhat.com>
17452
17453 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
17454 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
17455
17456 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17457
17458 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
17459
17460 2011-04-20 Richard Guenther <rguenther@suse.de>
17461
17462 PR tree-optimization/47892
17463 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
17464 are if-convertible.
17465
17466 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
17467
17468 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
17469
17470 2011-04-20 Tristan Gingold <gingold@adacore.com>
17471
17472 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
17473
17474 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
17475
17476 PR target/18145
17477
17478 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
17479 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
17480 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17481 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17482 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
17483
17484 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
17485 New prototype.
17486
17487 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
17488 (avr_asm_named_section, avr_asm_output_aligned_common,
17489 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
17490 New functions to update...
17491 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
17492 (avr_asm_init_sections): Overwrite section callbacks for
17493 data_section, bss_section.
17494 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
17495 from here to...
17496 (avr_file_end): ...here.
17497
17498 2011-04-20 Richard Guenther <rguenther@suse.de>
17499
17500 PR middle-end/48695
17501 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
17502 objects and types here. Adjust for their offset before comparing.
17503
17504 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17505
17506 * tree-vect-stmts.c (vectorizable_store): Only chain one related
17507 statement per copy.
17508
17509 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17510
17511 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
17512 (GIMPLE_H): Include $(INTERNAL_FN_H).
17513 (OBJS-common): Add internal-fn.o.
17514 (internal-fn.o): New rule.
17515 * internal-fn.def: New file.
17516 * internal-fn.h: Likewise.
17517 * internal-fn.c: Likewise.
17518 * gimple.h: Include internal-fn.h.
17519 (GF_CALL_INTERNAL): New gf_mask.
17520 (gimple_statement_call): Put fntype into a union with a new
17521 internal_fn field.
17522 (gimple_build_call_internal): Declare.
17523 (gimple_build_call_internal_vec): Likewise.
17524 (gimple_call_same_target_p): Likewise.
17525 (gimple_call_internal_p): New function.
17526 (gimple_call_internal_fn): Likewise.
17527 (gimple_call_fntype): Return null for internal calls.
17528 (gimple_call_set_fntype): Assert that the function is not internal.
17529 (gimple_call_set_fn): Likewise.
17530 (gimple_call_set_fndecl): Likewise.
17531 (gimple_call_set_internal_fn): New function.
17532 (gimple_call_addr_fndecl): Handle null functions.
17533 (gimple_call_return_type): Likewise null types.
17534 * gimple.c (gimple_build_call_internal_1): New function.
17535 (gimple_build_call_internal): Likewise.
17536 (gimple_build_call_internal_vec): Likewise.
17537 (gimple_call_same_target_p): Likewise.
17538 (gimple_call_flags): Handle calls to internal functions.
17539 (gimple_call_fnspec): New function.
17540 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
17541 (gimple_has_side_effects): Handle null functions.
17542 (gimple_rhs_has_side_effects): Likewise.
17543 (gimple_call_copy_skip_args): Handle calls to internal functions.
17544 * cfgexpand.c (expand_call_stmt): Likewise.
17545 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
17546 * gimple-fold.c (gimple_fold_call): Handle null functions.
17547 (gimple_fold_stmt_to_constant_1): Don't fold
17548 calls to internal functions.
17549 * gimple-low.c (gimple_check_call_args): Handle calls to internal
17550 functions.
17551 * gimple-pretty-print.c (dump_gimple_call): Likewise.
17552 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
17553 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
17554 (do_warn_unused_result): Likewise.
17555 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
17556 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
17557 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17558 the target of a call.
17559 (initialize_hash_element): Update accordingly.
17560 (hashable_expr_equal_p): Use gimple_call_same_target_p.
17561 (iterative_hash_hashable_expr): Handle calls to internal functions.
17562 (print_expr_hash_elt): Likewise.
17563 * tree-ssa-pre.c (can_value_number_call): Likewise.
17564 (eliminate): Handle null functions.
17565 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17566 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17567 (find_func_aliases): Likewise.
17568 * value-prof.c (gimple_ic_transform): Likewise.
17569 (gimple_indirect_call_to_profile): Likewise.
17570 * lto-streamer-in.c (input_gimple_stmt): Likewise.
17571 * lto-streamer-out.c (output_gimple_stmt): Likewise.
17572
17573 2011-04-19 Jan Hubicka <jh@suse.cz>
17574
17575 * ipa-inline-transform.c (save_inline_function_body): Add comments.
17576 * ipa-inline.c (inline_small_functions): Compute summaries first,
17577 populate heap later.
17578
17579 2011-04-19 Jan Hubicka <jh@suse.cz>
17580
17581 * cgraph.h (save_inline_function_body): Remove.
17582 * ipa-inline-transform.c: New file, broke out of...
17583 * ipa-inline.c: ... this one; Update toplevel comment.
17584 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17585 make global.
17586 (update_noncloned_frequencies): Move to ipa-inline-transform.c
17587 (cgraph_mark_inline_edge): Rename to inline_call; move to
17588 ipa-inline-transform.c.
17589 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17590 move to ipa-inline-transform.c
17591 (recursive_inlining, inline_small_functions, flatten_function,
17592 ipa_inline, inline_always_inline_functions,
17593 early_inline_small_functions): Update.
17594 (inline_transform): Move to ipa-inline-transform.c.
17595 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17596 Declare.
17597 * Makefile.in (ipa-inline-transform.o): New file.
17598 * cgraphunit.c (save_inline_function_body): Move to
17599 ipa-inline-transform.c
17600
17601 2011-04-19 DJ Delorie <dj@redhat.com>
17602
17603 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17604 registers if we already know there aren't any.
17605 (m32c_emit_epilogue): Don't emit a barrier here.
17606 (m32c_emit_eh_epilogue): Likewise.
17607 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17608 operands at expand time.
17609 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17610 int" wchar type.
17611 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17612 duplicates. Provide aliases instead.
17613 * config/m32c/prologue.md (eh_return): Emit a barrier here.
17614 (eh_epilogue): Add a "(return)" here as a hint to other parts of
17615 the compiler.
17616
17617 2011-04-19 Anatoly Sokolov <aesok@post.ru>
17618
17619 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17620 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17621 (general_or_i64_p, sparc_register_move_cost): New function.
17622
17623 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17624
17625 * doc/install.texi (Configuration, --enable-threads): Remove mach.
17626 Add lynx, mipssde. Sort table.
17627
17628 2011-04-19 Xinliang David Li <davidxl@google.com>
17629
17630 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17631 not negative.
17632
17633 2011-04-19 Jakub Jelinek <jakub@redhat.com>
17634
17635 PR target/48678
17636 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17637 is a SUBREG with non-MODE_INT mode inside of it.
17638
17639 2011-04-19 Martin Jambor <mjambor@suse.cz>
17640
17641 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17642 also according to actual contants.
17643 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17644 (gimple_fold_call): Use it.
17645 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17646
17647 2011-04-19 Martin Jambor <mjambor@suse.cz>
17648
17649 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17650 non-pointer assignments.
17651
17652 2011-04-19 Martin Jambor <mjambor@suse.cz>
17653
17654 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17655 account anc_offset and otr_type from the indirect edge info.
17656 * ipa-prop.c (get_ancestor_addr_info): New function.
17657 (compute_complex_ancestor_jump_func): Assignment analysis moved to
17658 get_ancestor_addr_info, call it.
17659 (ipa_note_param_call): Do not initialize information about polymorphic
17660 calls, return the indirect call graph edge. Remove the last
17661 parameter, adjust all callers.
17662 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17663 parameters. Initialize polymorphic information in the indirect edge.
17664
17665 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17666
17667 PR lto/48148
17668 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17669 the types if they have different enumeration identifiers.
17670
17671 2011-04-19 Jan Hubicka <jh@suse.cz>
17672
17673 * cgraph.h (cgraph_optimize_for_size_p): Declare.
17674 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17675 * predict.c (cgraph_optimize_for_size_p): Break out from ...
17676 (optimize_function_for_size_p) ... here.
17677
17678 2011-04-19 Richard Guenther <rguenther@suse.de>
17679
17680 PR lto/48207
17681 * tree.c (free_lang_data): Do not reset the decl-assembler-name
17682 langhook.
17683
17684 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17685
17686 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17687 if DECL_NO_INLINE_WARNING_P is set on the function.
17688
17689 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
17690
17691 PR fortran/47976
17692 * reload1.c (inc_for_reload): Return void. All callers changed.
17693 (emit_input_reload_insns): Don't try to delete previous output
17694 reloads to a register, or record spill_reg_store for autoincs.
17695
17696 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
17697
17698 * gengtype.h: Updated copyright year.
17699 (struct input_file_st): Add inpisplugin field.
17700 (type_fileloc): New function.
17701 * gengtype.c
17702 (write_typed_struct_alloc_def): Add gcc_assert.
17703 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17704 (write_typed_alloc_defns): Don't output for plugin files.
17705 (input_file_by_name): Clear inpisplugin field.
17706 (main): Set inpisplugin field for plugin files.
17707
17708 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
17709
17710 * gengtype-state.c (string_eq): New.
17711 (read_state): Use string_eq instead of strcmp when creating the
17712 state_ident_tab.
17713
17714 2011-04-19 Wei Guozhi <carrot@google.com>
17715
17716 PR target/47855
17717 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17718 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17719 linkage.
17720 * config/arm/constraints.md (Uu): New constraint.
17721 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17722
17723 2011-04-19 Tristan Gingold <gingold@adacore.com>
17724
17725 * config.gcc (-*-*-*vms): Added.
17726 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17727 definitions moved.
17728 * config/vms/vms-ld.c: New file.
17729 * config/vms/vms-ar.c: New file.
17730 * config/vms/t-vmsnative: New file.
17731
17732 2011-04-18 Xinliang David Li <davidxl@google.com>
17733
17734 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17735
17736 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17737
17738 PR middle-end/48661
17739 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17740 if TREE_TYPE (v) is non-NULL.
17741
17742 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17743 gimple_get_virt_mehtod_for_binfo.
17744 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17745 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17746 callers.
17747 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17748
17749 2011-04-18 Michael Matz <matz@suse.de>
17750 Steve Ellcey <sje@cup.hp.com>
17751
17752 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17753 use its mode as source mode if it isn't VOIDmode.
17754
17755 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
17756
17757 * doc/passes.texi: Fill crossref nodes.
17758
17759 2011-04-18 Jim Meyering <meyering@redhat.com>
17760
17761 Fix doubled-word typos in comments and strings
17762 * config/alpha/vms-unwind.h: s/for for/for/
17763 * config/arm/unwind-arm.h: Likewise.
17764 * config/microblaze/microblaze.c: Likewise.
17765 * config/sh/constraints.md: s/in in/in/
17766 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17767
17768 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
17769
17770 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17771 (AVX_FLOAT_MODE_P): Ditto.
17772 (AVX128_VEC_FLOAT_MODE_P): Ditto.
17773 (AVX256_VEC_FLOAT_MODE_P): Ditto.
17774 (AVX_VEC_FLOAT_MODE_P): Ditto.
17775 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17776 (UNSPEC_MASKSTORE): Ditto.
17777 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17778 Merge from <sse>_movmsk<ssemodesuffix> and
17779 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
17780 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
17781 iterator.
17782 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
17783 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17784 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
17785
17786 2011-04-18 Jan Hubicka <jh@suse.cz>
17787
17788 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
17789
17790 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
17791 (want_inline_function_called_once_p): Break out the logic from
17792 ipa_inline.
17793 (edge_badness): Ensure that profile is not misupdated.
17794 (lookup_recursive_calls): Prioritize by call frequencies.
17795 (inline_small_functions): Move program size estimates here;
17796 actually process whole queue even when unit growth has been
17797 met. (to properly compute inline_failed reasons and for the
17798 case unit size decrease.) Revisit comments on recursive inlining.
17799 (ipa_inline): Remove unit summary code; first inline hot calls
17800 of functions called once, cold calls next.
17801 (order, nnodes): Remove unused variables.
17802 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
17803 (GTFILES): Remove ipa-inline.c
17804 * sel-sched.c (fill_insns): Silence uninitialized var warning.
17805
17806 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
17807
17808 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
17809
17810 2011-04-18 Jie Zhang <jie@codesourcery.com>
17811 Richard Earnshaw <rearnsha@arm.com>
17812
17813 * arm.c (neon_builtin_type_bits): Remove.
17814 (typedef enum neon_builtin_mode): New.
17815 (T_MAX): Don't define.
17816 (typedef enum neon_builtin_datum): Remove bits, codes[],
17817 num_vars and base_fcode. Add mode, code and fcode.
17818 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
17819 VAR10): Change accordingly.
17820 (neon_builtin_data[]): Change accordingly
17821 (arm_init_neon_builtins): Change accordingly.
17822 (neon_builtin_compare): Remove.
17823 (locate_neon_builtin_icode): Remove.
17824 (arm_expand_neon_builtin): Change accordingly.
17825
17826 * arm.h (enum arm_builtins): Move to ...
17827 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
17828
17829 * arm.c (arm_builtin_decl): Declare.
17830 (TARGET_BUILTIN_DECL): Define.
17831 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
17832 (arm_builtin_decls[]): New.
17833 (arm_init_neon_builtins): Store builtin declarations in
17834 arm_builtin_decls[].
17835 (arm_init_tls_builtins): Likewise.
17836 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
17837 (arm_builtin_decl): New.
17838
17839 2011-04-18 Richard Guenther <rguenther@suse.de>
17840
17841 * tree.c (upper_bound_in_type): Build properly canonicalized
17842 INTEGER_CSTs.
17843 (lower_bound_in_type): Likewise.
17844
17845 2011-04-18 Richard Guenther <rguenther@suse.de>
17846
17847 * gimple.h (gimple_call_addr_fndecl): New function.
17848 (gimple_call_fndecl): Use it.
17849 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17850 for direct calls.
17851 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17852 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17853
17854 2011-04-18 Richard Guenther <rguenther@suse.de>
17855
17856 PR middle-end/48650
17857 * tree.c (build_string): STRING_CST is now derived from tree_typed.
17858
17859 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
17860
17861 PR lto/48492
17862 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17863 DECL_IN_CONSTANT_POOL without RTL.
17864
17865 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
17866 Ira Rosen <ira.rosen@linaro.org>
17867
17868 PR target/48252
17869 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17870 to match neon_vzip/vuzp/vtrn_internal.
17871 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17872 outputs explicitly dependent on both inputs.
17873 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17874
17875 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17876
17877 PR tree-optimization/48616
17878 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17879 whether the shift is by scalar or vector based on whether all SLP
17880 scalar stmts have the same rhs.
17881
17882 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
17883
17884 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17885 memory operands.
17886
17887 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
17888
17889 PR target/43700
17890 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17891 registers.
17892
17893 2011-04-17 Jan Hubicka <jh@suse.cz>
17894
17895 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17896 * cgrpahunit.c (cgraph_finalize_function): Do not set
17897 finalized_by_frontend.
17898 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17899 finalized_by_frontend.
17900
17901 2011-04-17 Jan Hubicka <jh@suse.cz>
17902
17903 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17904 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17905 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17906 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17907 method.
17908 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17909 gimple-fold.c
17910 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17911
17912 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17913
17914 PR lto/48538
17915 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17916 is non-null before accessing it.
17917 (input_cgraph): Remove trailing spaces.
17918
17919 2011-04-17 Revital Eres <revital.eres@linaro.org>
17920
17921 * params.def (sms-min-sc): New param flag.
17922 * modulo-sched.c (sms_schedule): Use it.
17923 * doc/invoke.texi (sms-min-sc): Document it.
17924
17925 2011-04-17 Jan Hubicka <jh@suse.cz>
17926
17927 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17928 present, also set gimple_call_set_cannot_inline.
17929 * ipa-inline.c: Update toplevel comment.
17930 (MAX_TIME): Remove.
17931 (cgraph_clone_inlined_nodes): Fix linebreaks.
17932 (cgraph_check_inline_limits): Restructure to ...
17933 (caller_growth_limits): ... this one; be more tolerant
17934 on growth in nested inline chains; add explanatory comment;
17935 fix stack accounting thinko introduced by previous patch.
17936 (cgraph_default_inline_p): Remove.
17937 (report_inline_failed_reason): New function.
17938 (can_inline_edge_p): New function.
17939 (can_early_inline_edge_p): New function.
17940 (leaf_node_p): Move upwards in file.
17941 (want_early_inline_function_p): New function.
17942 (want_inline_small_function_p): New function.
17943 (want_inline_self_recursive_call_p): New function.
17944 (cgraph_edge_badness): Rename to ...
17945 (edge_badness) ... this one; fix linebreaks.
17946 (update_edge_key): Update call of edge_baddness; add
17947 detailed dump about queue updates.
17948 (update_caller_keys): Use can_inline_edge_p and
17949 want_inline_small_function_p.
17950 (cgraph_decide_recursive_inlining): Rename to...
17951 (recursive_inlining): Use can_inline_edge_p and
17952 want_inline_self_recursive_call_p; simplify and remove no longer
17953 valid FIXME.
17954 (cgraph_set_inline_failed): Remove.
17955 (add_new_edges_to_heap): Use can_inline_edge_p and
17956 want_inline_small_function_p.
17957 (cgraph_decide_inlining_of_small_functions): Rename to ...
17958 (inline_small_functions): ... this one; cleanup; use
17959 can/want predicates; cleanup debug ouput; work edges till fibheap
17960 is exhausted and do not stop once unit growth is reached; remove
17961 later loop processing remaining edges.
17962 (cgraph_flatten): Rename to ...
17963 (flatten_function): ... this one; use can_inline_edge_p
17964 and can_early_inline_edge_p predicates.
17965 (cgraph_decide_inlining): Rename to ...
17966 (ipa_inline): ... this one; remove unreachable nodes before
17967 inlining functions called once; simplify the pass.
17968 (cgraph_perform_always_inlining): Rename to ...
17969 (inline_always_inline_functions): ... this one; use
17970 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17971 (cgraph_decide_inlining_incrementally): Rename to ...
17972 (early_inline_small_functions): ... this one; simplify
17973 using new predicates; cleanup; make dumps prettier.
17974 (cgraph_early_inlining): Rename to ...
17975 (early_inliner): newer inline regular functions into always-inlines;
17976 fix updating of call stmt summaries.
17977 (pass_early_inline): Update for new names.
17978 (inline_transform): Fix formating.
17979 (gate_cgraph_decide_inlining): Rename to ...
17980 (pass_ipa_inline): ... this one.
17981 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17982 * ipa-inline-analysis.c (dump_inline_summary): Update.
17983 (compute_inline_parameters): Do not compute disregard_inline_limits;
17984 look for mismatching arguments.
17985 (estimate_growth): Fix handlig of non-trivial self recursion.
17986 (inline_read_summary): Do not read info->disregard_inline_limits.
17987 (inline_write_summary): Do not write info->disregard_inline_limits.
17988 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17989 and move all checks into can_inline_edge_p predicate; re-enable code
17990 comparing optimization levels.
17991 (expand_call_inline): Do not test inline_forbidden_into_p.
17992 * Makefile.in (ipa-inline.o): Update arguments.
17993
17994 2011-04-17 Revital Eres <revital.eres@linaro.org>
17995
17996 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17997
17998 2011-04-17 Revital Eres <revital.eres@linaro.org>
17999
18000 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
18001
18002 2011-04-17 Michael Matz <matz@suse.de>
18003
18004 PR tree-optimization/48622
18005 PR lto/48645
18006 * ipa-inline-analysis.c (inline_read_summary): Read size/time
18007 in same order as they're written.
18008
18009 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18010
18011 * config/pa/predicates.md: Reorganize and simplify predicates.
18012 Eliminate duplicate code checks.
18013 (arith_operand): Rename to arith14_operand
18014 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
18015 * config/pa/pa.md: Use renamed operands.
18016 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
18017 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
18018 arith11_operand, adddi3_operand, indexed_memory_operand,
18019 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
18020 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
18021 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
18022 move_dest_operand, move_src_operand, prefetch_cc_operand,
18023 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
18024 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
18025 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
18026 div_operand, int5_operand, movb_comparison_operator,
18027 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
18028 arith_double_operand, ireg_operand, lhs_lshift_operand,
18029 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
18030 integer_store_memory_operand): Likewise.
18031 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
18032 (integer_store_memory_operand, read_only_operand,
18033 function_label_operand, borx_reg_operand,
18034 non_hard_reg_operand): Likewise.
18035 (eq_neq_comparison_operator): Delete unused operator.
18036 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
18037 function_label_operand.
18038 (emit_move_sequence): Likewise.
18039
18040 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18041
18042 * config/i386/sse.md (sseunpackmode): New mode attribute.
18043 (ssepackmode): Ditto.
18044 (vec_pack_trunc_<mode>): Macroize expander from
18045 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
18046 (vec_unpacks_lo_<mode>): Macroize expander from
18047 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18048 (vec_unpacks_hi_<mode>): Macroize expander from
18049 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18050 (vec_unpacku_lo_<mode>): Macroize expander from
18051 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18052 (vec_unpacku_hi_<mode>): Macroize expander from
18053 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18054 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
18055 ix86_expand_sse4_unpack.
18056 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
18057
18058 2011-04-16 Jan Hubicka <jh@suse.cz>
18059
18060 * cgraphbuild.c: Include ipa-inline.h.
18061 (reset_inline_failed): Use initialize_inline_failed.
18062 * cgraph.c: Include ipa-inline.h.
18063 (cgraph_create_node_1): Do not initialize estimated_growth.
18064 (initialize_inline_failed): More to ipa-inline-analysis.c
18065 (dump_cgraph_node): Do not dump inline flags.
18066 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
18067 and disregard_inline_limits flags.
18068 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
18069 time, size, estimated_growth.
18070 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
18071 Update.
18072 * cgraphunit.c (cgraph_decide_is_function_needed): Use
18073 DECL_DISREGARD_INLINE_LIMITS.
18074 (cgraph_analyze_function): Do not initialize
18075 node->local.disregard_inline_limits.
18076 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18077 inlinable, versionable and disregard_inline_limits.
18078 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
18079 cgraph_check_inline_limits, cgraph_default_inline_p,
18080 cgraph_edge_badness, update_caller_keys, update_callee_keys,
18081 add_new_edges_to_heap): Update.
18082 (cgraph_decide_inlining_of_small_function): Update; set
18083 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
18084 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
18085 cgraph_decide_inlining_incrementally): Update.
18086 * ipa-inline.h (inline_summary): Add inlinable, versionable,
18087 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
18088 time, size and estimated_growth parameters.
18089 (estimate_edge_growth): Update.
18090 (initialize_inline_failed): Declare.
18091 * ipa-split.c: Include ipa-inline.h
18092 (execute_split_functions): Update.
18093 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
18094 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
18095 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
18096 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
18097 estimated_growth to INT_MIN.
18098 (inline_node_duplication_hook): Likewise.
18099 (dump_inline_summary): Dump new fields.
18100 (compute_inline_parameters): Update.
18101 (estimate_edge_time, estimate_time_after_inlining,
18102 estimate_size_after_inlining, estimate_growth, inline_read_summary,
18103 inline_write_summary):
18104 (initialize_inline_failed): Move here from cgraph.c.
18105 * tree-sra.c: Include ipa-inline.h.
18106 (ipa_sra_preliminary_function_checks): Update.
18107 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
18108 ipa-inline.h.
18109
18110 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18111
18112 * config/i386/sse.md (V16): New mode iterator.
18113 (VI1, VI8): Ditto.
18114 (AVXMODEQI, AVXMODEDI): Remove.
18115 (sse2, sse3): New mode attribute.
18116 (mov<mode>): Use V16 mode iterator.
18117 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
18118 (push<mode>1): Use V16 mode iterator.
18119 (movmisalign<mode>): Ditto.
18120 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18121 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
18122 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18123 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
18124 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
18125 avx_movdqu<avxmodesuffix>.
18126 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
18127 *avx_movdqu<avxmodesuffix>.
18128 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
18129 avx_lddqu<avxmodesuffix>.
18130 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
18131 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
18132 avx_movnt<AVXMODEDI:mode>.
18133 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
18134 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
18135
18136 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
18137
18138 PR target/48629
18139 * haifa-sched.c (prune_ready_list, schedule_block): Use
18140 sched_pressure_p rather than flag_sched_pressure.
18141
18142 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
18143
18144 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18145 cgraph_get_node instead of cgraph_get_create_node.
18146
18147 2011-04-15 Jakub Jelinek <jakub@redhat.com>
18148
18149 * cfgexpand.c (expand_debug_expr): Use
18150 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
18151
18152 2011-04-15 Michael Matz <matz@suse.de>
18153
18154 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
18155 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
18156 * function.c (gimplify_parameters): Ditto.
18157 * gimplify.c (gimplify_vla_decl): Ditto.
18158
18159 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
18160 (gimple_call_set_alloca_for_var): New inline function.
18161 (gimple_call_alloca_for_var_p): Ditto.
18162 * gimple.c (gimple_build_call_from_tree): Remember
18163 CALL_ALLOCA_FOR_VAR_P state.
18164 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
18165
18166 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
18167 calls if they were for VLA objects.
18168
18169 2011-04-15 Martin Jambor <mjambor@suse.cz>
18170
18171 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
18172 of ADR_EXPRs.
18173
18174 2011-04-15 Martin Jambor <mjambor@suse.cz>
18175
18176 PR middle-end/48601
18177 * tree-emutls.c (lower_emutls_function_body): Call
18178 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
18179 result is non-NULL.
18180
18181 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
18182
18183 * c-decl.c (detect_field_duplicates): Call
18184 objc_detect_field_duplicates instead of objc_get_interface_ivars.
18185
18186 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
18187
18188 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
18189 * gimple.c (gimple_asm_clobbers_memory_p): Define.
18190 * ipa-pure-const.c (check_stmt): Call it.
18191 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
18192
18193 2011-04-15 Richard Guenther <rguenther@suse.de>
18194
18195 PR tree-optimization/48290
18196 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
18197 Properly decide inhibiting propagation based on the valueized
18198 operand. Do loop-closed SSA form preserving here ...
18199 (init_copy_prop): ... not here.
18200
18201 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
18202
18203 PR target/48612
18204 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
18205 (*ieee_smax<mode>3): Likewise.
18206
18207 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18208
18209 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
18210 Replace match_operand with match_dup for the third operand in
18211 these expanders.
18212
18213 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18214
18215 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
18216 to track processing of conditionals. Update all callers.
18217 (try_combine, simplify_if_then_else): Update.
18218
18219 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18220
18221 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
18222 -fsched-pressure.
18223
18224 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
18225
18226 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
18227 instead of match_operand for operand 3.
18228
18229 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
18230
18231 * recog.h (insn_operand_data): Add an "allows_mem" field.
18232 * genoutput.c (output_operand_data): Initialize it.
18233 * optabs.c (maybe_legitimize_operand_same_code): New function.
18234 (maybe_legitimize_operand): Use it when matching the original
18235 op->value.
18236
18237 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18238
18239 * gimplify.c: Fix issues in comments throughout.
18240 (voidify_wrapper_expr): Fix long line.
18241 (build_stack_save_restore): Likewise.
18242 (gimplify_loop_expr): Likewise.
18243 (gimplify_compound_lval): Likewise.
18244 (gimplify_init_ctor_eval): Likewise.
18245 (gimplify_modify_expr_rhs): Likewise.
18246 (omp_notice_threadprivate_variable): Likewise.
18247
18248 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18249
18250 * cfgexpand.c (expand_call_stmt): Convert the function type to the
18251 original one if this is not a builtin function.
18252
18253 2011-04-14 Jakub Jelinek <jakub@redhat.com>
18254
18255 PR target/48605
18256 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18257 offset it as needed based on top 2 bits in operands[3], change
18258 MEM mode to SFmode and mask those 2 bits away from operands[3].
18259
18260 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18261
18262 * c-parser.c (c_parser_objc_protocol_definition): Updated for
18263 change from objc_declare_protocols() to objc_declare_protocol().
18264
18265 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
18266
18267 * config/i386/sse.md (sse4_1): New mode attribute.
18268 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18269 avx_blend<ssemodesuffix><avxmodesuffix> and
18270 sse4_1_blend<ssemodesuffix> using VF mode iterator.
18271 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18272 avx_blendv<ssemodesuffix><avxmodesuffix> and
18273 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18274 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18275 avx_dp<ssemodesuffix><avxmodesuffix> and
18276 sse4_1_dp<ssemodesuffix> using VF mode iterator.
18277 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18278 (sse4_1_packusdw): Merge with *avx_packusdw.
18279 (sse4_1_pblendvb): Merge with *avx_pblendvb.
18280 (sse4_1_pblendw): Merge with *avx_pblendw.
18281 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18282 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18283 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18284 VF mode iterator.
18285 (sse4_1_round<ssescalarmodesuffix>): Merge with
18286 *avx_round<ssescalarmodesuffix>.
18287 (aesenc): Merge with *avx_aesenc.
18288 (aesenclast): Merge with *avx_aesenclast.
18289 (aesdec): Merge with *avx_aesdec.
18290 (aesdeclast): Merge with *avx_aesdeclast.
18291 (pclmulqdq): Merge with *pclmulqdq.
18292 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18293 New predicate.
18294 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18295
18296 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
18297
18298 PR middle-end/48608
18299 * cfgexpand.c (get_decl_align_unit): Renamed to ...
18300 (align_local_variable): This. Update DECL_ALIGN.
18301 (add_stack_var): Updated.
18302 (expand_one_stack_var): Likewise.
18303
18304 2011-04-14 Richard Guenther <rguenther@suse.de>
18305
18306 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18307 Remove.
18308 (dse_initialize_block_local_data, dse_leave_block,
18309 record_voperand_set, get_stmt_uid): Likewise.
18310 (dse_possible_dead_store_p): Allow any kind of killing stmt.
18311 (dse_optimize_stmt): Remove voperand set handling code.
18312 Simplify and improve to handle any kind of killing stmt.
18313 (dse_record_phi): Remove.
18314 (dse_enter_block): Simplify.
18315 (tree_ssa_dse): Likewise.
18316 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18317
18318 2011-04-14 Jan Hubicka <jh@suse.cz>
18319
18320 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18321 * cgraph.h (struct inline_summary): Move to ipa-inline.h
18322 (cgraph_local_info): Remove inline_summary.
18323 * ipa-cp.c: Include ipa-inline.h.
18324 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18325 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18326 accesor.
18327 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18328 (input_overwrite_node): Do not set inline summary.
18329 (input_node): Do not stream inline summary.
18330 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
18331 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
18332 growth; we do not have inline parameters computed for that anyway.
18333 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
18334 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
18335 (inline_summary_t): New type and VECtor.
18336 (debug_inline_summary, dump_inline_summaries): Declare.
18337 (inline_summary): Use VOCtor.
18338 (estimate_edge_growth): Kill hack computing call stmt size directly.
18339 * lto-section-in.c (lto_section_name): Add inline section.
18340 * ipa-inline-analysis.c: Include lto-streamer.h
18341 (node_removal_hook_holder, node_duplication_hook_holder): New holders
18342 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
18343 (inline_summary_vec): Define.
18344 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
18345 dump_inline_summaries): New functions.
18346 (estimate_function_body_sizes): Properly compute size/time of outgoing
18347 calls.
18348 (compute_inline_parameters): Alloc inline_summary; do not compute
18349 size/time of incomming calls.
18350 (estimate_edge_time): Avoid missing time summary hack.
18351 (inline_read_summary): Read inline summary info.
18352 (inline_write_summary): Write inline summary info.
18353 (inline_free_summary): Free all hooks and inline summary vector.
18354 * lto-streamer.h: Add LTO_section_inline_summary section.
18355 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
18356 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
18357
18358 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18359
18360 * tree-vectorizer.h (vect_strided_store_supported): Add a
18361 HOST_WIDE_INT argument.
18362 (vect_strided_load_supported): Likewise.
18363 (vect_permute_store_chain): Return void.
18364 (vect_transform_strided_load): Likewise.
18365 (vect_permute_load_chain): Delete.
18366 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
18367 count argument. Check that the count is a power of two.
18368 (vect_strided_load_supported): Likewise.
18369 (vect_permute_store_chain): Return void. Update after above changes.
18370 Assert that the access is supported.
18371 (vect_permute_load_chain): Likewise.
18372 (vect_transform_strided_load): Return void.
18373 * tree-vect-stmts.c (vectorizable_store): Update calls after
18374 above interface changes.
18375 (vectorizable_load): Likewise.
18376 (vect_analyze_stmt): Don't check for strided powers of two here.
18377
18378 2011-04-14 Richard Guenther <rguenther@suse.de>
18379
18380 PR tree-optimization/48590
18381 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18382 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18383 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
18384 BUILT_IN_STACK_SAVE.
18385 * tree-ssa-dce.c (propagate_necessity): Handle
18386 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18387
18388 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18389
18390 * c-parser.c (c_parser_objc_class_declaration): Updated call to
18391 objc_declare_class.
18392
18393 2011-04-14 Richard Guenther <rguenther@suse.de>
18394
18395 * tree.h (get_object_alignment_1): Declare.
18396 * builtins.c (get_object_alignment_1): Split out worker from ...
18397 (get_object_alignment): ... here.
18398 * fold-const.c (get_pointer_modulus_and_residue): Use
18399 get_object_alignment_1.
18400
18401 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18402
18403 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
18404 type parameter.
18405 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
18406 parameter. Generalise code to handle arrays as well as vectors.
18407 (vect_setup_realignment): Update accordingly.
18408 * tree-vect-stmts.c (vectorizable_store): Likewise.
18409 (vectorizable_load): Likewise.
18410
18411 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18412
18413 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
18414 within the per-copy loop.
18415
18416 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18417
18418 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
18419 in the dump file.
18420
18421 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18422
18423 * doc/options.texi (Negative): Explicitly mention that the
18424 Negative chain must be circular.
18425
18426 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
18427
18428 * function.h (block_chainon): Declare.
18429 * function.c (block_chainon): Define.
18430
18431 2011-04-14 Anatoly Sokolov <aesok@post.ru>
18432 Eric Weddington <eric.weddington@atmel.com>
18433 Georg-Johann Lay <avr@gjlay.de>
18434
18435 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
18436 New Includes
18437 (avr_init_builtins, avr_expand_builtin,
18438 avr_expand_delay_cycles, avr_expand_unop_builtin,
18439 avr_expand_binop_builtin ): New functions.
18440 (avr_builtin_id): New enum
18441 (struct avr_builtin_description): New struct
18442 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
18443 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18444
18445 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
18446 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
18447 UNSPECV_DELAY_CYCLES): new enumeration values
18448 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
18449 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
18450 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
18451 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
18452 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
18453 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
18454 "fmulsu"): New insns
18455
18456 * config/avr/avr-c.c: fix line endings
18457 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
18458 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
18459 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
18460 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
18461 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
18462
18463 * doc/extend.texi (AVR Built-in Functions): New node
18464 (Target Builtins): Add documentation of AVR
18465 built-in functions.
18466
18467 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
18468
18469 PR target/44643
18470 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
18471 alone. Error if non-const data has attribute progmem.
18472
18473 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18474
18475 * tree.h (struct tree_constructor): Include tree_typed instead of
18476 tree_common.
18477 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
18478 TS_TYPED instead of TS_COMMON.
18479
18480 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18481
18482 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
18483 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
18484 (sse2_psadbw): Merge with *avx_psadbw.
18485 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
18486 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
18487 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
18488 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
18489 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
18490 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
18491 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
18492 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
18493 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
18494 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
18495 (ssse3_palignrti): Merge with *avx_palignrti.
18496
18497 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18498
18499 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
18500 * tree-ssanames.c (fini_ssanames): VEC_free it.
18501 (make_ssa_name_fn): Update for VECness of free_ssanames.
18502 (release_ssa_name, release_dead_ssa_names): Likewise.
18503 * tree.h (struct tree_ssa_name): Include tree_typed instead of
18504 tree_common.
18505 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
18506 TS_TYPED instead of TS_COMMON.
18507
18508 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18509
18510 * postreload-gcse.c (gcse_after_reload_main): Add calls to
18511 statistics_counter_event.
18512 * tree-ssa-copyrename.c (stats): Define.
18513 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
18514 statistics_counter_event.
18515 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
18516 (bswap_stats, widen_mul_stats): Define.
18517 (insert_reciprocals): Increment rdivs_inserted.
18518 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
18519 rfuncs_inserted. Add calls to statistics_counter_event.
18520 (execute_cse_sincos_1): Increment inserted.
18521 (execute_cse_sincos): Zeroize sincos_stats. Add call to
18522 statistics_counter_event.
18523 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
18524 of bswap_stats. Add calls to statistics_counter_event.
18525 (convert_mult_to_widen): Increment widen_mults_inserted.
18526 (convert_plusminus_to_widen): Increment maccs_inserted.
18527 (convert_mult_to_fma): Increment fmas_inserted.
18528 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
18529 calls to statistics_counter_event.
18530
18531 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
18532
18533 PR rtl-optimization/48455
18534 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
18535 `temp_costs->mem_cost'.
18536
18537 2011-04-13 Jan Hubicka <jh@suse.cz>
18538
18539 * ipa-inline.h: New file.
18540 * ipa-inline-analysis.c: New file. Broken out of ...
18541 * ipa-inline.c: ... this file; update toplevel comment;
18542 include ipa-inline.h
18543 (inline_summary): Move to ipa-inline.h
18544 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
18545 ipa-inline-analysis.c.
18546 (cgraph_estimate_time_after_inlining): Rename to
18547 estiamte_time_after_inlining; move to ipa-inline-analysis.c
18548 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
18549 to estimate_edge_growth.
18550 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
18551 rename to estimate_size_after_inlining.
18552 (cgraph_mark_inline_edge): Update for new naming convention.
18553 (cgraph_check_inline_limits): Likewise.
18554 (cgraph_edge_badness): Likewise.
18555 (cgraph_decide_recursive_inlining): Likewise.
18556 (cgraph_decide_inlining_of_small_functions): Likewise.
18557 (cgraph_decide_inlining_incrementally): Likewise.
18558 (cgraph_estimate_growth): Rename to estimate_growth; move to
18559 ipa-inline-analysis.c.
18560 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18561 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18562 (compute_inline_parameters): Likewise.
18563 (compute_inline_parameters_for_current): Likewise.
18564 (pass_inline_parameters): Likewise.
18565 (inline_indirect_intraprocedural_analysis): Likewise.
18566 (analyze_function): Rename to inline_analyze_function; likewise.
18567 (add_new_function): Move to ipa-inline-analysis.c.
18568 (inline_generate_summary): Likewise.
18569 (inline_read_summary): Likewise.
18570 (inline_write_summary): Likewise.
18571 * Makefile.in (ipa-inline-analysis.c): New file.
18572
18573 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18574
18575 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18576 * configure: Regenerate.
18577
18578 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18579
18580 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18581 instead of tree_common.
18582 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18583 Likewise.
18584 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18585 TS_TYPED rather than TS_COMMON.
18586 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18587
18588 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
18589
18590 PR target/45263
18591 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18592 r20 around calls of __tablejump_elpm__
18593
18594 2011-04-13 Jakub Jelinek <jakub@redhat.com>
18595
18596 PR middle-end/48591
18597 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18598 NULL.
18599 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18600
18601 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
18602
18603 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18604 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18605 (cfi_vec): New typedef.
18606 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18607 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18608 (cie_cfi_vec): New static variable.
18609 (cie_cfi_head): Delete.
18610 (add_cfi): Accept a cfi_vec * as first argument. All callers and
18611 declaration changed. Use vector rather than list operations.
18612 (new_cfi): Don't initialize the dw_cfi_next field.
18613 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18614 rather than list operations.
18615 (lookup_cfa): Use vector rather than list operations.
18616 (output_cfis): New argument upto. Accept a cfi_vec rather than
18617 a dw_cfi_ref list head as argument. All callers changed.
18618 Iterate over the vector using upto as a maximum index.
18619 (output_all_cfis): New static function.
18620 (output_fde): Use vector rather than list operations. Use the
18621 new upto argument for output_cfis rather than manipulating a
18622 list.
18623 (dwarf2out_begin_prologue): Change initializations to match
18624 new struct members.
18625 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18626 from the vector length rather than searching for the end of a list.
18627 Use output_all_cfis.
18628 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18629
18630 2011-04-13 Nick Clifton <nickc@redhat.com>
18631
18632 * config/rx/rx.md (movmemsi): Do not use this pattern when
18633 volatile pointers are involved.
18634
18635 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18636
18637 * config/i386/sse.md (pinsrbits): Remove.
18638 (sse2_packsswb): Merge with *avx_packsswb.
18639 (sse2_packssdw): Merge with *avx_packssdw.
18640 (sse2_packuswb): Merge with *avx_packuswb.
18641 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18642 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18643 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18644 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18645 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18646 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18647 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18648 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18649 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18650 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18651 (sse2_loadld): Merge with *avx_loadld.
18652 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18653 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18654 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18655 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18656 (vec_concatv2di): Merge with *vec_concatv2di_avx.
18657
18658 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
18659
18660 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18661 calling TREE_CHAIN.
18662 * print-tree.c (print_node): Likewise.
18663 * tree-inline.c (copy_tree_r): Likewise.
18664 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18665 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18666 instead of TS_COMMON.
18667 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18668 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18669 (copy_node_stat): Zero TREE_CHAIN only if necessary.
18670 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18671 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18672 ...and these...
18673 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18674 * tree.h: ...here.
18675 (TREE_CHAIN): Check for a TS_COMMON structure.
18676 (TREE_TYPE): Check for a TS_TYPED structure.
18677
18678 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
18679
18680 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18681 cgraph_get_create_node instead of cgraph_node.
18682
18683 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18684
18685 * c-parser.c (c_parser_initelt): Updated call to
18686 objc_build_message_expr.
18687 (c_parser_postfix_expression): Likewise.
18688
18689 2011-04-12 Kai Tietz <ktietz@redhat.com>
18690
18691 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18692 MASK_MS_BITFIELD_LAYOUT bit.
18693
18694 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18695
18696 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18697 assert it is always true.
18698 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18699 moves.
18700
18701 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18702
18703 * c-parser.c (c_lex_one_token): Rewritten conditional used when
18704 compiling Objective-C to be more efficient.
18705
18706 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
18707
18708 * opts-common.c (decode_cmdline_options_to_array): Remove variable
18709 argv_copied.
18710
18711 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18712
18713 * recog.h, genoutput.c, optabs.c: Revert last patch.
18714
18715 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18716
18717 PR target/48090
18718 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18719
18720 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18721
18722 * recog.h (insn_operand_data): Add an "allows_mem" field.
18723 * genoutput.c (output_operand_data): Initialize it.
18724 * optabs.c (maybe_legitimize_operand_same_code): New function.
18725 (maybe_legitimize_operand): Use it when matching the original
18726 op->value.
18727
18728 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18729
18730 * genpreds.c (process_define_predicate): Move most processing
18731 to gensupport.c. Continue to validate the expression.
18732 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18733 (process_define_predicate): Move processing to gensupport.c.
18734 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18735 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18736 (compute_predicate_codes): Moved from genrecog.c. Add lineno
18737 argument.
18738 (valid_predicate_name_p): New function, split out from old
18739 genpreds.c:process_define_predicate.
18740 (process_define_predicate): New function, combining code from
18741 old genpreds.c and genrecog.c functions.
18742 (process_rtx): Call it for DEFINE_PREDICATE and
18743 DEFINE_SPECIAL_PREDICATE.
18744
18745 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18746
18747 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18748 size of a '%A' memory reference.
18749 (T_DREG, T_QREG): New neon_builtin_type_bits.
18750 (arm_init_neon_builtins): Assert that the load and store operands
18751 are neon_struct_operands.
18752 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18753 (NEON_ARG_MEMORY): New builtin_arg.
18754 (neon_dereference_pointer): New function.
18755 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18756 Handle NEON_ARG_MEMORY.
18757 (arm_expand_neon_builtin): Update after above interface changes.
18758 Use NEON_ARG_MEMORY for loads and stores.
18759 * config/arm/predicates.md (neon_struct_operand): New predicate.
18760 * config/arm/iterators.md (V_two_elem): Tweak formatting.
18761 (V_three_elem): Use BLKmode for accesses that have no associated mode.
18762 (V_four_elem): Tweak formatting.
18763 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18764 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18765 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18766 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18767 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18768 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18769 (neon_vst4<mode>): Replace pointer operand with a memory operand.
18770 Use %A in the output template.
18771 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18772 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18773 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18774 the width of the memory access. Remove post-increment.
18775 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18776
18777 2011-04-12 Nick Clifton <nickc@redhat.com>
18778
18779 * config/v850/v850.c (expand_prologue): Do not use the CALLT
18780 instruction for interrupt handlers if the target is the basic V850
18781 architecture.
18782 (expand_epilogue): Likewise.
18783
18784 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18785
18786 PR rtl-optimization/48549
18787 * combine.c (propagate_for_debug): Also stop after BB_END of
18788 this_basic_block. Process LAST and just stop processing after it.
18789 (combine_instructions): If last_combined_insn has been deleted,
18790 set last_combined_insn to its PREV_INSN.
18791
18792 2011-04-12 Richard Guenther <rguenther@suse.de>
18793
18794 PR tree-optimization/46076
18795 * gimple.h (struct gimple_statement_call): Add fntype field.
18796 (gimple_call_fntype): Adjust.
18797 (gimple_call_set_fntype): New function.
18798 * gimple.c (gimple_build_call_1): Set the call function type.
18799 * gimplify.c (gimplify_call_expr): Preserve the function
18800 type the frontend used for the call.
18801 (gimplify_modify_expr): Likewise.
18802 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
18803 function type.
18804 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
18805 function type.
18806 * tree-ssa.c (useless_type_conversion_p): Function pointer
18807 conversions are useless.
18808
18809 2011-04-12 Martin Jambor <mjambor@suse.cz>
18810
18811 * cgraph.h (cgraph_node): Remove function declaration.
18812 (cgraph_create_node): Declare.
18813 (cgraph_get_create_node): Likewise.
18814 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
18815 Updated all callers.
18816 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
18817 the decl does not already exist. Call cgraph_get_create_node instead
18818 of cgraph_node.
18819 (cgraph_get_create_node): New function.
18820 (cgraph_same_body_alias): Update comment.
18821 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
18822 assert it does not return NULL.
18823 (cgraph_update_edges_for_call_stmt): Likewise.
18824 (cgraph_clone_edge): Likewise.
18825 (cgraph_create_virtual_clone): Likewise.
18826 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
18827 instead of cgraph_node.
18828 (cgraph_add_new_function): Call cgraph_create_node or
18829 cgraph_get_create_node instead of cgraph_node.
18830 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
18831 instead of cgraph_node.
18832 (record_eh_tables): Likewise.
18833 (mark_address): Likewise.
18834 (mark_load): Likewise.
18835 (build_cgraph_edges): Call cgraph_get_create_node instead
18836 of cgraph_node.
18837 (rebuild_cgraph_edges): Likewise.
18838 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
18839 instead of cgraph_node.
18840 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
18841 cgraph_node.
18842 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
18843 cgraph_create_node instead of cgraph_node.
18844 * c-decl.c (finish_function): Call cgraph_get_create_node instead
18845 of cgraph_node.
18846 * lto-cgraph.c (input_node): Likewise.
18847 * lto-streamer-in.c (input_function): Likewise.
18848 * varasm.c (mark_decl_referenced): Likewise.
18849 (assemble_alias): Likewise.
18850
18851 2011-04-12 Martin Jambor <mjambor@suse.cz>
18852
18853 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18854 instead of cgraph_node and assert it does not return NULL.
18855 * lto-streamer-in.c (lto_read_body): Likewise.
18856 * omp-low.c (new_omp_context): Likewise.
18857 (create_task_copyfn): Likewise.
18858 * tree-emutls.c (lower_emutls_function_body): Likewise.
18859 * matrix-reorg.c (transform_allocation_sites): Likewise.
18860
18861 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18862
18863 PR c/48552
18864 * c-typeck.c (build_asm_expr): Error out on attempts to use
18865 void type outputs or inputs for constraints that allow reg or
18866 don't allow memory.
18867
18868 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
18869 Richard Earnshaw <rearnsha@arm.com>
18870
18871 PR target/48250
18872 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18873 to use sign-magnitude offsets. Reject unsupported unaligned
18874 cases. Add detailed description in comments.
18875 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18876 condition from TARGET_32BIT to TARGET_ARM.
18877
18878 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
18879
18880 * tree.h (struct typed_tree): New.
18881 (struct tree_common): Include it instead of tree_base.
18882 (TREE_TYPE): Update for new location of type field.
18883 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18884 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18885 (union tree_node): Add typed field.
18886 * treestruct.def (TS_TYPED): New.
18887 * lto-streamer.c (check_handled_ts_structures): Handle it.
18888 * tree.c (MARK_TS_TYPED): New macro.
18889 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18890
18891 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
18892
18893 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18894 (force_nonfallthru): Do not alter the loop nest if no basic block
18895 was created.
18896
18897 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
18898
18899 * config/i386/sse.md (VI): New mode iterator.
18900 (SSEMODEI): Remove.
18901 (AVX256MODEI): Ditto.
18902 (AVXMODEF4P): Ditto.
18903 (avxvecpsmode): Ditto.
18904 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
18905 (sse2_andnot<mode>3): New expander.
18906 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18907 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
18908 (<any_logic:code><mode>3): Use VI mode iterator.
18909 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18910 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
18911 (*andnottf3): Handle AVX three-operand constraints.
18912 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18913
18914 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18915 Robert Millan <rmh@gnu.org>
18916
18917 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18918 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18919 GNU_USER_DYNAMIC_LINKER64): Define.
18920 (REG_NAME): Don't undefine.
18921 (MD_UNWIND_SUPPORT): Undefine.
18922 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18923 (REG_NAME): Don't undefine.
18924 (MD_UNWIND_SUPPORT): Undefine.
18925 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18926
18927 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18928
18929 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18930 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18931
18932 2011-04-11 Xinliang David Li <davidxl@google.com>
18933
18934 * value-profile.c (check_ic_target): New function.
18935 (gimple_ic_transform): Sanity check indirect call target.
18936 * gimple-low.c (gimple_check_call_args): Interface change.
18937 (gimple_check_call_matching_types): New function.
18938 * tree-inline.c (tree_can_inline_p): Call new function.
18939
18940 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
18941
18942 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18943 tree-pretty-print.h & realmpfr.h.
18944
18945 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
18946
18947 PR middle-end/48464
18948 * ira.c (setup_pressure_classes): Fix typo in loop condition.
18949 (setup_allocno_and_important_classes): Ditto.
18950
18951 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18952
18953 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18954 GNU_USER_DYNAMIC_LINKER.
18955 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18956 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18957 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18958 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18959 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18960 GNU_USER_TARGET_OS_CPP_BUILTINS.
18961 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18962 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18963 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18964 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18965 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18966 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18967 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18968 GNU_USER_TARGET_OS_CPP_BUILTINS.
18969 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18970 GNU_USER_DYNAMIC_LINKER.
18971 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18972 GNU_USER_TARGET_OS_CPP_BUILTINS.
18973 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18974 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18975 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18976 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18977 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18978 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18979 GNU_USER_DYNAMIC_LINKER64): Remove.
18980 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18981 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18982 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18983 GNU_USER_DYNAMIC_LINKER.
18984 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18985 GNU_USER_TARGET_OS_CPP_BUILTINS.
18986 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18987 GNU_USER_TARGET_OS_CPP_BUILTINS.
18988 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18989 to GNU_USER_TARGET_OS_CPP_BUILTINS.
18990 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18991 GNU_USER_TARGET_OS_CPP_BUILTINS.
18992 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18993 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18994 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18995 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18996 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18997 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18998 GNU_USER_DYNAMIC_LINKER.
18999 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19000 GNU_USER_TARGET_OS_CPP_BUILTINS.
19001 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
19002 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19003 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19004 GNU_USER_DYNAMIC_LINKER.
19005 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19006 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19007 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
19008 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19009 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19010 GNU_USER_DYNAMIC_LINKER.
19011 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
19012 GNU_USER_DYNAMIC_LINKERN32.
19013 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
19014 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
19015 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
19016 GNU_USER_DYNAMIC_LINKER32.
19017 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
19018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19019 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19020 GNU_USER_DYNAMIC_LINKER.
19021 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19022 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19023 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
19024 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19025 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19026 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
19027 GNU_USER_DYNAMIC_LINKER32.
19028 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19029 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
19030 GNU_USER_DYNAMIC_LINKER.
19031 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
19032 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19033 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19034 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
19035 GNU_USER_DYNAMIC_LINKER64.
19036 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
19037 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19038 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19039 GNU_USER_DYNAMIC_LINKER.
19040 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
19041 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19042 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19043 GNU_USER_DYNAMIC_LINKER.
19044 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
19045 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19046 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19047 GNU_USER_DYNAMIC_LINKER32.
19048 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19049 GNU_USER_DYNAMIC_LINKER64.
19050 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19051 GNU_USER_DYNAMIC_LINKER64.
19052 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
19053 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19054 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
19055 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19056 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19057
19058 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19059
19060 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
19061 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
19062 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
19063 GNU_USER_DYNAMIC_LINKER.
19064 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19065 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
19066 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
19067 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
19068 GNU_USER_DYNAMIC_LINKER64.
19069 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19070 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
19071 GNU_USER_LINK_EMULATION.
19072 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
19073 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
19074 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
19075 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
19076 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
19077 CPP_SPEC, CC1_SPEC): Remove.
19078 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
19079 (GNU_USER_DYNAMIC_LINKER): Define.
19080 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
19081 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
19082 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
19083 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
19084 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
19085 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
19086 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19087 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
19088 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
19089 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
19090 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
19091 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
19092 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
19093 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
19094 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
19095 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19096 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19097 GNU_USER_DYNAMIC_LINKER.
19098 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19099 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19100 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19101 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19102 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19103 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19104 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
19105 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
19106 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
19107 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
19108
19109 2011-04-11 Kai Tietz <ktietz@redhat.com>
19110
19111 PR target/9601
19112 PR target/11772
19113 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
19114 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
19115 comment.
19116 (ix86_is_msabi_thiscall): Removed.
19117 (ix86_is_type_thiscall): Likewise.
19118 (ix86_get_callcvt): New function.
19119 (ix86_comp_type_attributes): Simplify check.
19120 (ix86_function_regparm): Use ix86_get_callcvt for calling
19121 convention attribute checks.
19122 (ix86_return_pops_args): Likewise.
19123 (ix86_static_chain): Likewise.
19124 (x86_this_parameter): Likewise.
19125 (x86_output_mi_thunk): Likewise.
19126 (ix86_function_type_abi): Optimize check for types without attributes.
19127 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
19128 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
19129 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
19130 by flag-values.
19131 (IX86_BASE_CALLCVT): Helper macro.
19132 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
19133 Use ix86_get_callcvt for calling convention attribute checks and avoid
19134 symbol-decoration for stdcall in TARGET_RTD case.
19135 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
19136 Likewise.
19137 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
19138 for declaration.
19139
19140 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
19141
19142 * config/i386/sse.md (VI_128): New mode iterator.
19143 (VI12_128): Rename from SSEMODE12.
19144 (VI14_128): Rename from SSEMODE14.
19145 (VI124_128): New mode iterator.
19146 (VI24_128): Rename from SSEMODE248.
19147 (VI248_128): Rename from SSEMODE248.
19148 (SSEMODE124C8): Remove.
19149 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19150 (*sse2_<plusminus_insn><mode>3): Merge with
19151 *avx_<plusminus_insn><mode>3.
19152 (*mulv8hi3): Merge with *avx_mulv8hi3.
19153 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
19154 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
19155 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
19156 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
19157 (ashr<mode>3): Merge with *avx_ashr<mode>3.
19158 (lshr<mode>3): Merge with *avx_lshr<mode>3.
19159 (ashl<mode>3): Merge with *avx_ashl<mode>3.
19160 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
19161 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
19162 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19163 (*<smaxmin:code>v8hi3): Ditto.
19164 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
19165 (*<smaxmin:code>v16qi3): Ditto.
19166 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
19167 (*sse2_eq<mode>3): Ditto.
19168 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
19169 (*sse2_gt<mode>3): Ditto.
19170 (vcondv2di): Split out of vcond<mode>.
19171 (vconduv2di): Split out of vcondu<mode>.
19172
19173 2011-04-11 Richard Guenther <rguenther@suse.de>
19174
19175 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
19176 before calling tree_low_cst.
19177
19178 2011-04-11 Richard Guenther <rguenther@suse.de>
19179
19180 * stor-layout.c (layout_type): Compute all array index size operations
19181 in the original type.
19182 (initialize_sizetypes): Add comment.
19183 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
19184
19185 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19186
19187 * common.opt (Tbss=, Tdata=, Ttext=): New options.
19188
19189 2011-04-11 Martin Jambor <mjambor@suse.cz>
19190
19191 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
19192 of cgraph_node, handle NULL return value.
19193 (cgraph_global_info): Likewise.
19194 (cgraph_rtl_info): Likewise.
19195 * tree-inline.c (estimate_num_insns): Likewise.
19196 * gimplify.c (unshare_body): Likewise.
19197 (unvisit_body): Likewise.
19198 (gimplify_body): Likewise.
19199 * predict.c (optimize_function_for_size_p): Likewise.
19200 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19201 (call_may_clobber_ref_p_1): Likewise.
19202 * varasm.c (function_section_1): Likewise.
19203 (assemble_start_function): Likewise.
19204
19205 2011-04-11 Martin Jambor <mjambor@suse.cz>
19206
19207 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
19208 of cgraph_node.
19209 * final.c (rest_of_clean_state): Likewise.
19210 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
19211 * passes.c (pass_init_dump_file): Likewise.
19212 (execute_all_ipa_transforms): Likewise.
19213 (function_called_by_processed_nodes_p): Likewise.
19214 * predict.c (maybe_hot_frequency_p): Likewise.
19215 (probably_never_executed_bb_p): Likewise.
19216 (compute_function_frequency): Likewise.
19217 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
19218 (unnest_nesting_tree_1): Likewise.
19219 (lower_nested_functions): Likewise.
19220 * tree-optimize.c (execute_fixup_cfg): Likewise.
19221 (tree_rest_of_compilation): Likewise.
19222 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
19223 * tree-sra.c (ipa_early_sra): Likewise.
19224 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19225 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
19226 * ipa.c (record_cdtor_fn): Likewise.
19227 * ipa-inline.c (cgraph_early_inlining): Likewise.
19228 (compute_inline_parameters_for_current): Likewise.
19229 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19230 * ipa-pure-const.c (local_pure_const): Likewise.
19231 * ipa-split.c (split_function): Likewise.
19232 (execute_split_functions): Likewise.
19233 * cgraphbuild.c (build_cgraph_edges): Likewise.
19234 (rebuild_cgraph_edges): Likewise.
19235 (cgraph_rebuild_references): Likewise.
19236 (remove_cgraph_callee_edges): Likewise.
19237 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
19238 (verify_cgraph_node): Likewise.
19239 (cgraph_analyze_functions): Likewise.
19240 (cgraph_preserve_function_body_p): Likewise.
19241 (save_inline_function_body): Likewise.
19242 (save_inline_function_body): Likewise.
19243 * tree-inline.c (copy_bb): Likewise.
19244 (optimize_inline_calls): Likewise.
19245
19246 2011-04-11 Martin Jambor <mjambor@suse.cz>
19247
19248 PR tree-optimization/48195
19249 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19250 ipa_check_create_edge_args.
19251 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19252 ipa_check_create_edge_args.
19253 * ipa-inline.c (inline_generate_summary): Do not call
19254 ipa_check_create_node_params and ipa_check_create_edge_args.
19255 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19256 ipa_check_create_edge_args.
19257
19258 2011-04-09 Anatoly Sokolov <aesok@post.ru>
19259
19260 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19261 instead of loop.
19262 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19263 * function.c (record_hard_reg_sets): Likewise.
19264 * ira.c (compute_regs_asm_clobbered): Likewise.
19265 * sched-deps.c (sched_analyze_1): Likewise.
19266 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19267
19268 2011-04-09 Xinliang David Li <davidxl@google.com>
19269
19270 PR tree-optimization/PR48484
19271 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19272 has_valid_pred lazily
19273
19274 2011-04-09 Duncan Sands <baldrick@free.fr>
19275
19276 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19277
19278 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
19279
19280 * combine.c (combine_validate_cost): Adjust comments. Set registered
19281 cost of I0 to zero at the end, if any.
19282
19283 2011-04-08 Xinliang David Li <davidxl@google.com>
19284
19285 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19286 to insane profile data.
19287
19288 2011-04-08 Xinliang David Li <davidxl@google.com>
19289
19290 * ipa-cp.c (ipcp_update_profiling): Correct
19291 negative scale factor due to insane profile data.
19292
19293 2011-04-08 Xinliang David Li <davidxl@google.com>
19294
19295 * final.c (dump_basic_block_info): New function.
19296 (final): Dump basic block.
19297 (final_scan_insn): Remove old dump.
19298
19299 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
19300
19301 PR target/47829
19302 * config.gcc (i386-*-freebsd): Disable unwind table generation for
19303 crtbegin/crtend.
19304
19305 2011-04-08 Michael Matz <matz@suse.de>
19306
19307 PR middle-end/48389
19308 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19309 functions.
19310 (rebuild_jump_labels): Call rebuild_jump_labels_1.
19311 * rtl.h (rebuild_jump_labels_chain): Declare.
19312 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19313 insns inserted on edges.
19314
19315 2011-04-08 Joseph Myers <joseph@codesourcery.com>
19316
19317 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19318 * config/arm/arm-arches.def: New.
19319 * config/arm/arm-opts.h: New.
19320 * config/arm/genopt.sh: New.
19321 * config/arm/arm-tables.opt: New (generated).
19322 * config/arm/arm.c (arm_handle_option, arm_target_help,
19323 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19324 (all_architectures): Get most table contents from arm-arches.def.
19325 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19326 arm_selected_tune here.
19327 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19328 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19329 (march=, mcpu=, mtune=): Use Enum and Var.
19330 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
19331 (arm.o): Update dependencies.
19332
19333 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
19334
19335 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
19336 of header_file.
19337 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
19338 (write_typed_alloc_defns): Likewise.
19339 (main): Calls write_typed_alloc_defns with output_header.
19340
19341 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
19342
19343 PR inline-asm/48435
19344 * ira-color.c (setup_profitable_hard_regs): Add comments.
19345 Don't take prohibited hard regs into account.
19346 (setup_conflict_profitable_regs): Rename to
19347 get_conflict_profitable_regs.
19348 (check_hard_reg_p): Check prohibited hard regs.
19349
19350 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
19351
19352 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
19353 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
19354 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
19355
19356 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19357
19358 PR target/48366
19359 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
19360 move from floating point to shift amount register.
19361 (emit_move_sequence): Remove secondary reload support for floating
19362 point to shift amount amount register copies.
19363 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
19364 amount register copies.
19365 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
19366 register, return false if mode isn't a scalar integer mode.
19367 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
19368
19369 2011-04-08 Richard Guenther <rguenther@suse.de>
19370
19371 * gimple.c (gimple_call_flags): Remove kludge.
19372
19373 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19374
19375 * sel-sched.c (sel_region_init): Move call to
19376 sel_setup_region_sched_flags after setup_current_loop_nest.
19377
19378 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
19379
19380 PR rtl-optimization/48272
19381 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
19382 init_insn_reg_pressure_info. Adjust a caller.
19383 * sched-int.h (init_insn_reg_pressure_info): Declare.
19384 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
19385 when sched-pressure is enabled.
19386
19387 2011-04-08 Richard Guenther <rguenther@suse.de>
19388
19389 * gimple.c (gimple_set_modified): Do not queue calls to
19390 MODIFIED_NORETURN_CALLS here ...
19391 * tree-ssa-operands.c (update_stmt_operands): ... but here.
19392
19393 2011-04-08 Richard Guenther <rguenther@suse.de>
19394
19395 PR lto/48467
19396 * toplev.c (lang_dependent_init): Do not open asm_out_file
19397 in WPA mode, nor perform debug machinery initialization.
19398 (finalize): Do not unlink asm_out_file in WPA mode.
19399
19400 2011-04-08 Richard Guenther <rguenther@suse.de>
19401
19402 * gimple.h (gimple_call_fntype): New function.
19403 (gimple_call_return_type): Use it.
19404 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
19405 * gimple-low.c (gimple_check_call_args): Likewise.
19406 * gimple.c (gimple_call_flags): Likewise.
19407 (gimple_call_arg_flags): Likewise.
19408 (gimple_call_return_flags): Likewise.
19409 * tree-cfg.c (verify_gimple_call): Likewise.
19410 (do_warn_unused_result): Likewise.
19411 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
19412 * value-prof.c (gimple_ic_transform): Fix fndecl check.
19413
19414 2011-04-08 Dmitry Melnik <dm@ispras.ru>
19415
19416 PR rtl-optimization/48235
19417 * sel-sched.c (code_motion_process_successors): Recompute the last
19418 insn in basic block if control flow changed.
19419 (code_motion_path_driver): Ditto. Recompute the first insn as well.
19420 Update condition for ilist_remove.
19421
19422 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19423
19424 PR rtl-optimization/48302
19425 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
19426 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
19427 it to record added preheader blocks.
19428 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
19429 on to sel_add_loop_preheaders.
19430 (sel_region_init): Move call to setup_current_loop_nest after
19431 sel_init_bbs.
19432
19433 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19434
19435 PR target/48273
19436 * cfgloop.h (loop_has_exit_edges): New helper.
19437 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
19438 non-clonable.
19439 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19440 that have no exit edges.
19441
19442 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19443
19444 PR rtl-optimization/48442
19445 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
19446 all callers. Adjust assert.
19447
19448 2011-04-08 Jakub Jelinek <jakub@redhat.com>
19449
19450 PR tree-optimization/48377
19451 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
19452 is_packed to true even for types with smaller TYPE_ALIGN than
19453 TYPE_SIZE.
19454
19455 2011-04-08 Richard Guenther <rguenther@suse.de>
19456
19457 PR bootstrap/48513
19458 * doc/tm.texi: Re-generate.
19459
19460 2011-04-08 Wei Guozhi <carrot@google.com>
19461
19462 PR target/47855
19463 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
19464 * config/arm/arm.c (arm_attr_length_push_multi): New function.
19465 * config/arm/arm.md (*push_multi): Change the length computation to
19466 call a C function.
19467
19468 2011-04-08 Anatoly Sokolov <aesok@post.ru>
19469
19470 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
19471 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
19472 * doc/tm.texi: Regenerate.
19473 * system.h (ASM_OUTPUT_BSS): Poison.
19474 * varasm.c (asm_output_bss): Remove function.
19475 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
19476
19477 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
19478 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
19479 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
19480 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19481 Likewise.
19482 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19483 Likewise.
19484 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19485 Likewise.
19486 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
19487
19488 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19489
19490 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
19491 EnumValue lines.
19492
19493 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19494
19495 * config/m68k/m68k.c (m68k_handle_option): Don't handle
19496 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
19497 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
19498 OPT_mcpu32.
19499 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19500 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
19501 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
19502 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
19503 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
19504 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
19505 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19506 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
19507 options. Don't map other m68k options manually. Don't handle
19508 old-style options as canonical.
19509 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19510 * doc/install.texi (m68k-*-*): Document binutils version requirement.
19511
19512 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
19513
19514 * basic-block.h (force_nonfallthru): Move to...
19515 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
19516 (force_nonfallthru): ...here.
19517 * cfghooks.c (force_nonfallthru): New function.
19518 * cfgrtl.c (force_nonfallthru): Rename into...
19519 (rtl_force_nonfallthru): ...this.
19520 (commit_one_edge_insertion): Do not set AUX field.
19521 (commit_edge_insertions): Do not discover new basic blocks.
19522 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
19523 (cfg_layout_rtl_cfg_hooks): Likewise.
19524 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
19525 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
19526 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
19527
19528 2011-04-07 Anatoly Sokolov <aesok@post.ru>
19529
19530 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19531 Remove macros.
19532
19533 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
19534
19535 * config/i386/sse.md: Update copyright year.
19536 (avxcvtvecmode): Remove.
19537 (sse_movhlps): Merge with *avx_movhlps.
19538 (sse_movlhps): Merge with *avx_movlhps.
19539 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
19540 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
19541 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
19542 (sse_loadhps): Merge with *avx_loadhps.
19543 (sse_storelps): Merge with *avx_storelps.
19544 (sse_loadlps): Merge with *avx_loadlps.
19545 (sse_movss): Merge with *avx_movss.
19546 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
19547 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
19548 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
19549 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
19550 (vec_set<mode>_0): Ditto.
19551 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
19552 (sse4_1_insertps): Merge with *avx_insertps.
19553 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
19554 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
19555 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
19556 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
19557 (sse2_storehpd): Merge with *avx_storehpd.
19558 (sse2_loadhpd): Merge with *avx_loadhpd.
19559 (sse2_loadlpd): Merge with *avx_loadlpd.
19560 (sse2_movsd): Merge with *avx_movsd.
19561 (*vec_concatv2df): Merge with *vec_concatv2df.
19562
19563 2011-04-07 Jakub Jelinek <jakub@redhat.com>
19564
19565 PR debug/48343
19566 * combine.c (combine_instructions): Add last_combined_insn,
19567 update it if insn is after it, pass it to all try_combine calls.
19568 (try_combine): Add last_combined_insn parameter, pass it instead of
19569 i3 to propagate_for_debug.
19570
19571 2011-04-07 Nick Clifton <nickc@redhat.com>
19572
19573 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19574 to handle MDR <-> data register transfers.
19575 (movhi_internal): Likewise.
19576
19577 2011-04-07 Alan Modra <amodra@gmail.com>
19578
19579 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19580 previous stack info.
19581
19582 2011-04-07 Tom de Vries <tom@codesourcery.com>
19583
19584 PR target/43920
19585 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
19586 flow_find_cross_jump. Swap variables to implement backward replacement.
19587 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19588
19589 2011-04-07 Tom de Vries <tom@codesourcery.com>
19590
19591 PR target/43920
19592 * cfgcleanup.c (walk_to_nondebug_insn): New function.
19593 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
19594 and bb2.
19595 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19596 src1 or src2. Redirect edges to the last basic block. Update
19597 frequency and count on multiple basic blocks in case of fallthru.
19598
19599 2011-04-07 Tom de Vries <tom@codesourcery.com>
19600
19601 PR target/43920
19602 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19603 function.
19604 (old_insns_match_p): Change return type. Replace return false/true
19605 with return dir_none/dir_both. Use can_replace_by.
19606 (flow_find_cross_jump): Add dir_p parameter. Init replacement
19607 direction from dir_p. Register replacement direction in dir, last_dir
19608 and afterlast_dir. Handle new return type of old_insns_match_p using
19609 merge_dir. Return replacement direction in dir_p.
19610 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19611 return type of old_insns_match_p.
19612 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19613 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19614 flow_find_cross_jump.
19615 * basic-block.h (enum replace_direction): New type.
19616 (flow_find_cross_jump): Add parameter to declaration.
19617
19618 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19619
19620 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19621 (AVXMODEDCVTPS2DQ): Ditto.
19622 (VEC_FLOAT_MODE): Ditto.
19623 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
19624 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19625 (<any_logic:code><mode>3): Use VF mode iterator.
19626 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19627 Use VF mode iterator.
19628 (copysign<mode>3): Use VF mode iterator.
19629 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
19630 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19631 (*<any_logic:code><MODEF:mode>3): Merge with
19632 *avx_<any_logic:code><MODEF:mode>3.
19633 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19634 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19635 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19636 (avx_cvtdq2ps<avxmodesuffix>): Remove.
19637 (sse2_cvtdq2ps): Use %v modifier.
19638 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19639 (avx_cvtps2dq<avxmodesuffix>): Remove.
19640 (sse2_cvtps2dq): Use %v modifier.
19641 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19642 (avx_cvttps2dq<avxmodesuffix>): Remove.
19643 (sse2_cvttps2dq): Use %v modifier.
19644 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19645 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19646 (sse2_cvtsd2siq): Fix insn template.
19647 (sse2_cvtsd2siq_2): Ditto.
19648 (sse2_cvttsd2siq): Ditto.
19649 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19650 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19651
19652 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19653
19654 * gcov-io.c: Use GCC Runtime Library Exception.
19655
19656 2011-04-06 Jakub Jelinek <jakub@redhat.com>
19657
19658 PR debug/48466
19659 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19660 as base_reg whatever register reg has been eliminated to, instead
19661 of hardcoding STACK_POINTER_REGNUM.
19662
19663 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19664
19665 * doc/tm.texi.in: Document C target hooks as separate from general
19666 target hooks.
19667 * doc/tm.texi: Regenerate.
19668 * genhooks.c (struct hook_desc): Add docname field.
19669 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
19670 docname field.
19671 (hook_array): Include c-target.def.
19672 (emit_documentation): Use docname field in output.
19673 (emit_init_macros): Take docname argument. Only emit definitions
19674 for hooks matching docname.
19675 (main): Expect additional arguments in all cases. Pass argument
19676 to emit_init_macros.
19677 * target.def: Move initial macro definitions and comments to
19678 target-hooks-macros.h.
19679 (gcc_targetcm): Move to c-family/c-target.def.
19680 * target.h (targetcm): Move declaration to c-family/c-target.h.
19681 * targhooks.c (default_handle_c_option): Move to
19682 c-family/c-opts.c.
19683 * targhooks.h (default_handle_c_option): Move declaration to
19684 c-family/c-common.h.
19685 * target-hooks-macros.h: New file.
19686 * config.gcc (target_has_targetcm): Define and use to add to
19687 c_target_objs and cxx_target_objs.
19688 * config/default-c.c: New file.
19689 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19690 of target.h and target-def.h.
19691 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19692 (darwin_objc_construct_string, darwin_cfstring_ref_p,
19693 darwin_check_cfstring_format_arg): Make static.
19694 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19695 TARGET_STRING_OBJECT_REF_TYPE_P,
19696 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19697 * config/darwin-protos.h (darwin_objc_construct_string,
19698 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19699 declare.
19700 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19701 TARGET_STRING_OBJECT_REF_TYPE_P,
19702 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19703 * config/t-darwin (darwin-c.o): Update dependencies.
19704 * system.h (TARGET_HAS_TARGETCM): Poison.
19705 * Makefile.in (TARGET_H): Update.
19706 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19707 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19708 (default-c.o): New target.
19709 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19710 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19711 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
19712 c-target.def.
19713 (build/genhooks.o): Update dependencies.
19714
19715 2011-04-06 Richard Guenther <rguenther@suse.de>
19716
19717 * ipa-inline.c (enum inlining_mode): Remove.
19718 (cgraph_flatten): Use some other token.
19719 (cgraph_edge_early_inlinable_p): New function, split out from ...
19720 (cgraph_perform_always_inlining): New function, split out from ...
19721 (cgraph_decide_inlining_incrementally): ... here.
19722 (cgraph_mark_inline_edge): Adjust.
19723 (cgraph_early_inlining): Re-structure.
19724 (pass_early_inline): Require SSA form.
19725
19726 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
19727 Julian Brown <julian@codesourcery.com>
19728 Mark Shinwell <shinwell@codesourcery.com>
19729
19730 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19731 LO_REGS only for Thumb-1.
19732 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19733 be used in short instructions when optimising for size on Thumb-2.
19734
19735 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19736
19737 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19738 associated with user returns to be preserved.
19739
19740 2011-04-06 Tristan Gingold <gingold@adacore.com>
19741
19742 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19743 symbol_queue_size, DBXOUT_DECR_NESTING,
19744 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19745 if XCOFF_DEBUGGING_INFO.
19746
19747 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19748
19749 * config/i386/i386.md (attribute isa): New.
19750 (attribute enabled): New.
19751 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19752 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19753 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19754 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19755 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19756 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19757 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19758 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19759
19760 * config/i386/sse.md (VF): New mode iterator.
19761 (VF1): Ditto.
19762 (VF2): Ditto.
19763 (VF_128): Ditto.
19764 (SSEMODEF4): Remove.
19765 (attribute sse): Handle V8SF and V4DF modes.
19766 (<absneg:code><mode>2): Use VF mode iterator.
19767 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
19768 mode iterator.
19769 (<plusminus_insn><mode>3): Use VF mode iterator.
19770 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19771 Use VF mode iterator.
19772 (<sse>_vm<plusminus_insn><mode>3): Merge with
19773 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
19774 (mul<mode>3): Use VF mode iterator.
19775 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
19776 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
19777 mode iterator.
19778 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19779 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
19780 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
19781 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
19782 mode iterator.
19783 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
19784 Use VF1 mode iterator.
19785 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
19786 (sqrt<VF2:mode>2): New expander.
19787 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
19788 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
19789 and sqrtv2df2. Use VF mode iterator.
19790 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
19791 mode iterator.
19792 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
19793 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
19794 Use VF1 mode iterator.
19795 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
19796 (<smaxmin:code><mode>3): Use VF mode iterator.
19797 (*<smaxmin:code><mode>3_finite): Merge with
19798 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
19799 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19800 (<sse>_vm<smaxmin:code><mode>2): Merge with
19801 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
19802 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
19803 mode iterator.
19804 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
19805 mode iterator.
19806 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
19807 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
19808 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
19809 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
19810 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
19811 VF mode iterator.
19812 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
19813 Use VF_128 mode iterator.
19814 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
19815 mode iterator.
19816 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
19817 VF_128 mode iterator.
19818 (vcond<mode>): Use VF mode iterator.
19819 * config/i386/predicates.md (sse_comparison_operator): Merge with
19820 avx_comparison_float_operator. Do not declare as special_predicate.
19821 * config/i386/i386.c (struct builtin_description): Update for renamed
19822 compare patterns.
19823 (ix86_expand_args_builtin): Ditto.
19824 (ix86_expand_sse_compare_mask): Ditto.
19825
19826 2011-04-06 Richard Guenther <rguenther@suse.de>
19827
19828 * tree-inline.c (estimate_num_insns): For calls simply account
19829 for all passed arguments and a used return value.
19830
19831 2011-04-06 Richard Guenther <rguenther@suse.de>
19832
19833 PR tree-optimization/47663
19834 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
19835 call_stmt_time fields.
19836 (cgraph_edge_inlinable_p): Declare.
19837 (cgraph_edge_recursive_p): New inline function.
19838 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
19839 (cgraph_clone_edge): Copy it.
19840 * ipa-inline.c (cgraph_estimate_edge_time): New function.
19841 Account for call stmt time.
19842 (cgraph_estimate_time_after_inlining): Take edge argument.
19843 (cgraph_estimate_edge_growth): Account call stmt size.
19844 (cgraph_estimate_size_after_inlining): Take edge argument.
19845 (cgraph_mark_inline_edge): Adjust.
19846 (cgraph_check_inline_limits): Likewise.
19847 (cgraph_recursive_inlining_p): Remove.
19848 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19849 (cgraph_decide_recursive_inlining): Take edge argument and
19850 adjust.
19851 (cgraph_decide_inlining_of_small_functions): Do not avoid
19852 diags for recursive inlining here.
19853 (cgraph_flatten): Adjust.
19854 (cgraph_decide_inlining_incrementally): Likewise.
19855 (estimate_function_body_sizes): Remove call cost handling.
19856 (compute_inline_parameters): Initialize caller edge call costs.
19857 (cgraph_estimate_edge_growth): New function.
19858 (cgraph_estimate_growth): Use it.
19859 (cgraph_edge_badness): Likewise.
19860 (cgraph_check_inline_limits): Take an edge argument.
19861 (cgraph_decide_inlining_of_small_functions): Adjust.
19862 (cgraph_decide_inlining): Likewise.
19863 * tree-inline.c (estimate_num_insns): Only account for call
19864 return value if it is used.
19865 (expand_call_inline): Avoid diagnostics on recursive inline
19866 functions here.
19867 * lto-cgraph.c (lto_output_edge): Output edge call costs.
19868 (input_edge): Input edge call costs.
19869
19870 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19871
19872 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19873
19874 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
19875
19876 * doc/invoke.texi (Spec Files): Fix typo.
19877
19878 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19879
19880 * profile.c (branch_prob): Move declaration of local variable. Remove
19881 obsolete ??? comment. Expand the location explicitly instead of using
19882 the LOCATION_FILE and LOCATION_LINE macros.
19883
19884 2011-04-06 Wei Guozhi <carrot@google.com>
19885
19886 PR target/47855
19887 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19888 (arm_cond_branch): Likewise.
19889 (arm_cond_branch_reversed): Likewise.
19890 (arm_jump): Likewise.
19891 (push_multi): Likewise.
19892 * config/arm/constraints.md (Py): New constraint.
19893
19894 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19895
19896 PR bootstrap/48471
19897 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19898 Move these...
19899 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19900 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19901 #ifdef DBX_DEBUGGING_INFO.
19902
19903 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
19904
19905 PR bootstrap/48403
19906 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19907 if old and new states differ.
19908
19909 2011-04-05 Joseph Myers <joseph@codesourcery.com>
19910
19911 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19912 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19913 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19914 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19915 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19916 mcfv4e): Use Alias.
19917 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19918 ColdFire options to -mcpu= options.
19919
19920 2011-04-05 Jeff Law <law@redhat.com>
19921
19922 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19923 check if BB is a successor of LOOP->header and return
19924 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19925
19926 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
19927
19928 * cprop.c (struct reg_use): Remove.
19929 (reg_use_table): Make an array of RTX.
19930 (find_used_regs, constprop_register, local_cprop_pass,
19931 bypass_block): Simplify users of reg_use_table.
19932 (cprop_insn): Likewise. Iterate if copy propagation succeeded
19933 on one of the uses found by find_used_regs.
19934
19935 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19936
19937 PR bootstrap/48469
19938 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19939 declaration.
19940
19941 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19942
19943 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19944 as an rtx.
19945 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19946
19947 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
19948
19949 PR middle-end/48441
19950 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19951
19952 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19953
19954 * combine.c: Include obstack.h.
19955 (struct insn_link): Define.
19956 (uid_log_links): Adjust type.
19957 (FOR_EACH_LOG_LINK): New macro.
19958 (insn_link_obstack): Declare.
19959 (alloc_insn_link): Define.
19960 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
19961 type of link variables.
19962 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19963 (try_combine, record_promoted_values, distribute_notes): Likewise.
19964 (distribute_links): Likewise. Tweak prototype.
19965 (clear_log_links): Delete.
19966 (adjust_for_new_dest): Call alloc_insn_link.
19967 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19968
19969 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19970
19971 * gcse.c (modify_mem_list): Convert to an array of VECs.
19972 (canon_modify_mem_list, compute_transp): Tweak formatting.
19973 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
19974 (load_killed_in_block_p): Likewise.
19975 (record_last_mem_set_info): Likewise.
19976 (clear_modify_mem_tables): Likewise.
19977
19978 2011-04-05 Tom de Vries <tom@codesourcery.com>
19979
19980 PR middle-end/48461
19981 * function.c (emit_use_return_register_into_block): Only define if
19982 HAVE_return.
19983
19984 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
19985
19986 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19987
19988 2011-04-05 Joseph Myers <joseph@codesourcery.com>
19989
19990 * config/rx/rx-opts.h: New.
19991 * config/rx/rx.c (rx_cpu_type): Remove.
19992 (rx_handle_option): Don't assert that global structures are in
19993 use. Access variables via opts pointer. Defer most handling of
19994 OPT_mint_register_. Use error_at.
19995 (rx_option_override): Handle deferred OPT_mint_register_ here.
19996 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19997 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19998 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19999 (rx_cpu_types): New Enum and EnumValue entries.
20000 (mint-register=): Use Defer and use Var accordingly.
20001
20002 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20003
20004 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
20005 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
20006 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
20007 Move these...
20008 (debug_free_queue, debug_nesting, symbol_queue_index):
20009 ...and these...
20010 * dbxout.c: ...to here. Make static.
20011
20012 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20013
20014 * gcse.c (modify_pair): Define. Define a VEC of it.
20015 (canon_modify_mem_list): Convert to an array of VECs.
20016 (free_insn_expr_list_list): Delete.
20017 (clear_modify_mem_tables): Call VEC_free instead.
20018 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
20019 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
20020 (canon_list_insert, compute_transp): Likewise.
20021
20022 2011-04-05 Tom de Vries <tom@codesourcery.com>
20023
20024 PR target/43920
20025 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
20026 for size.
20027
20028 2011-04-05 Tom de Vries <tom@codesourcery.com>
20029
20030 PR target/43920
20031 * function.c (emit_use_return_register_into_block): New function.
20032 (thread_prologue_and_epilogue_insns): Use
20033 emit_use_return_register_into_block.
20034
20035 2011-04-05 Tom de Vries <tom@codesourcery.com>
20036
20037 PR target/43920
20038 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
20039 insn.
20040
20041 2011-04-05 Tom de Vries <tom@codesourcery.com>
20042
20043 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
20044
20045 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
20046
20047 * config/arm/arm.md (define_constants for unspec): Replace with
20048 define_c_enum.
20049 (define_constants for unspecv): Replace with define_c_enum.
20050 * config/arm/neon.md (define_constants for unspec): Replace with
20051 define_c_enum.
20052
20053 2011-04-04 Richard Henderson <rth@redhat.com>
20054
20055 PR bootstrap/48400
20056 * dwarf2out.c (output_line_info): Always emit line info from
20057 at least one section.
20058 (dwarf2out_init): Create text_section_line_info here ...
20059 (set_cur_line_info_table): ... not here.
20060
20061 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
20062
20063 PR target/48380
20064 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
20065 not called.
20066
20067 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
20068
20069 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
20070
20071 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
20072 (expr_equiv_p): Remove.
20073 (insert_set_in_table): Look at <dest, src> pair instead of expr.
20074 (hash_scan_set): Update call to insert_set_in_table.
20075 (dump_hash_table): Dump <dest, src> pair.
20076 (lookup_set): Simplify. Lookup <dest, src> pair.
20077 (compute_transp): Remove, fold heavily simplified code into...
20078 (compute_local_properties): ...here. Expect COMP and TRANSP
20079 unconditionally.
20080 (find_avail_set): Take set directly from struct expr.
20081 (find_bypass-set): Likewise.
20082 (bypass_block): Likewise.
20083 (cprop_insn): Likewise. Remove redundant INSN_P test.
20084
20085 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
20086 checks on form of COND from find_implicit_sets to here.
20087 (find_implicit_sets): Cleanup control flow. Split critical edges
20088 if it exposes implicit sets. Allocate/resize implicit_sets as
20089 necessary.
20090 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
20091 changed something. Run df_analyze after find_implicit_sets if any
20092 edges were split. Do not allocate implicit_sets here.
20093
20094 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
20095 (gcse_obstack): Renamed to cprop_obstack.
20096 (GNEW, GNEWVEC, GNEWVAR): Remove.
20097 (gmalloc): Remove.
20098 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
20099 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
20100 (gcse_alloc): Likewise, and rename to cprop_alloc.
20101 (alloc_gcse_men, free_gcse_mem): Remove.
20102 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
20103 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
20104 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
20105
20106 * cprop.c (oprs_not_set_p): Remove.
20107 (mark_set, mark_clobber): Remove.
20108 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
20109 (reg_not_set_p): New function.
20110 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
20111 (cprop_insn): Likewise.
20112 (cprop_jump): Use FOR_EACH_EDGE.
20113
20114 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
20115
20116 PR bootstrap/48403
20117 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
20118 (rank_for_schedule): Use scheduled_insns vector instead of
20119 last_scheduled_insn.
20120 (ok_for_early_queue_removal): Likewise.
20121 (queue_to_ready): Search forward in nonscheduled_insns_begin if
20122 we have a dbg_cnt.
20123 (choose_ready): Likewise.
20124 (commit_schedule): Use VEC_iterate.
20125 (schedule_block): Initialize nonscheduled_insns_begin. If we have
20126 a dbg_cnt, use it and ensure the first insn is in the ready list.
20127 (haifa_sched_init): Allocate scheduled_insns.
20128 (sched_extend_ready_list): Don't allocate it; reserve space.
20129 (haifa_sched_finish): Free it.
20130
20131 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20132
20133 * optc-gen.awk: Always remove type from Variable entry before
20134 recording in var_seen.
20135
20136 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
20137
20138 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
20139 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
20140 call to tidy_fallthru_edges.
20141
20142 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20143
20144 * doc/options.texi (ToLower): Document.
20145 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
20146 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
20147 * opts.h (cl_option): Add cl_tolower field.
20148 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
20149 arguments with lowercase strings.
20150 * config/rx/rx.opt (mcpu=): Add ToLower.
20151 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
20152 argument.
20153
20154 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20155
20156 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
20157
20158 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20159
20160 * config/vax/vax.c: Include reload.h.
20161
20162 2011-04-04 Anatoly Sokolov <aesok@post.ru>
20163
20164 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
20165 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20166 (sparc_preferred_reload_class): New function.
20167
20168 2011-04-04 Jakub Jelinek <jakub@redhat.com>
20169
20170 PR debug/48401
20171 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20172 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
20173
20174 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
20175
20176 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
20177 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
20178
20179 2011-04-03 Anatoly Sokolov <aesok@post.ru>
20180
20181 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
20182 (ASM_OUTPUT_ALIGNED_BSS): Define.
20183
20184 2011-04-03 Michael Matz <matz@suse.de>
20185
20186 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
20187 and next_slot members.
20188 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
20189 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
20190 (lto_streamer_cache_append): Declare.
20191 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
20192 unsigned index, remove offset parameter, ensure that we append
20193 or update existing entries.
20194 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
20195 parameter, update next_slot for append.
20196 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
20197 parameter.
20198 (lto_streamer_cache_insert_at): Likewise.
20199 (lto_streamer_cache_append): New function.
20200 (lto_streamer_cache_lookup): Use unsigned index.
20201 (lto_streamer_cache_get): Likewise.
20202 (lto_record_common_node): Don't test tree_node_can_be_shared.
20203 (preload_common_node): Adjust call to lto_streamer_cache_insert.
20204 (lto_streamer_cache_delete): Don't free offsets member.
20205 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
20206 (lto_output_string_with_length): Use lto_output_data_stream.
20207 (lto_output_tree_header): Remove ix parameter, don't write it.
20208 (lto_output_builtin_tree): Likewise.
20209 (lto_write_tree): Adjust callers to above, don't track and write
20210 offset, write unsigned index.
20211 (output_unreferenced_globals): Don't emit all global vars.
20212 (write_global_references): Use unsigned indices.
20213 (lto_output_decl_state_refs): Likewise.
20214 (write_symbol): Likewise.
20215 * lto-streamer-in.c (lto_input_chain): Move earlier.
20216 (input_function): Use unsigned index.
20217 (input_alias_pairs): Don't read and then ignore all global vars.
20218 (lto_materialize_tree): Remove ix_p parameter, don't read index,
20219 don't pass it back, use lto_streamer_cache_append.
20220 (lto_register_var_decl_in_symtab): Use unsigned index.
20221 (lto_register_function_decl_in_symtab): Likewise.
20222 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
20223 index.
20224 (lto_get_builtin_tree): Don't read index, use
20225 lto_streamer_cache_append.
20226 (lto_read_tree): Adjust call to lto_materialize_tree.
20227
20228 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
20229 don't use function calls in arguments to MIN.
20230
20231 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
20232 twice.
20233
20234 * gimple.c (gimple_type_leader_entry): Mark deletable.
20235
20236 2011-04-03 Alan Modra <amodra@gmail.com>
20237
20238 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
20239
20240 2011-04-03 Michael Matz <matz@suse.de>
20241
20242 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
20243 an integer.
20244 * tree.h (tree_decl_non_common.vindex): Adjust comment.
20245
20246 2011-04-03 Michael Matz <matz@suse.de>
20247
20248 * cgraphbuild.c (record_reference): Canonicalize constructor values.
20249 * gimple-fold.c (canonicalize_constructor_val): Accept being called
20250 without function context.
20251 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20252 current_function_decl and cfun.
20253
20254 2011-04-03 Michael Matz <matz@suse.de>
20255
20256 * tree.c (decl_init_priority_insert): Don't create entry for
20257 default priority.
20258 (decl_fini_priority_insert): Ditto.
20259 (fields_compatible_p, find_compatible_field): Remove.
20260 * tree.h (fields_compatible_p, find_compatible_field): Remove.
20261 * gimple.c (gimple_compare_field_offset): Adjust block comment.
20262
20263 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
20264
20265 * combine.c (try_combine): Remove useless local variable.
20266
20267 2011-04-03 Richard Guenther <rguenther@suse.de>
20268 Ira Rosen <ira.rosen@linaro.org>
20269
20270 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20271 non-variable offsets and compare the remaining bases of the two
20272 accesses instead of looking for exact same data-ref.
20273
20274 2011-04-02 Kai Tietz <ktietz@redhat.com>
20275
20276 PR target/48416
20277 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20278
20279 * i386.c (ix86_is_msabi_thiscall): New helper function.
20280 (ix86_is_type_thiscall): New helper function.
20281 (ix86_comp_type_attributes): Handle thiscall for method-functions
20282 special.
20283 (init_cumulative_args): Likewise.
20284 (find_drap_reg): Likewise.
20285 (ix86_static_chain): Likewise.
20286 (x86_this_parameter): Likewise.
20287 (x86_output_mi_thunk): Likewise.
20288
20289 2011-04-01 Olivier Hainque <hainque@adacore.com>
20290 Nicolas Setton <setton@adacore.com>
20291 Eric Botcazou <ebotcazou@adacore.com>
20292
20293 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20294 (add_gnat_descriptive_type_attribute): New function.
20295 (gen_array_type_die): Call it.
20296 (gen_enumeration_type_die): Likewise.
20297 (gen_struct_or_union_type_die): Likewise.
20298 (modified_type_die): Likewise.
20299 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20300 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20301 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20302
20303 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20304
20305 PR bootstrap/48148
20306 * dwarf2out.c (resolve_addr): Don't call force_decl_die
20307 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20308
20309 Revert:
20310 2011-03-17 Richard Guenther <rguenther@suse.de>
20311
20312 PR bootstrap/48148
20313 * lto-cgraph.c (input_overwrite_node): Clear the abstract
20314 origin for decls in other ltrans units.
20315 (input_varpool_node): Likewise.
20316
20317 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20318
20319 PR middle-end/48335
20320 * expr.c (expand_assignment): Handle all possibilities
20321 if TO_RTX is CONCAT.
20322 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20323 (store_split_bit_field): If SUBREG_REG (op0) or
20324 op0 itself has smaller mode than word, return it
20325 for offset 0 and const0_rtx for out-of-bounds stores.
20326 If word is const0_rtx, skip it.
20327
20328 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
20329
20330 * config/h8300/h8300.c (print_operand_address): Rename to...
20331 (h8300_print_operand_address): ...this. Make static. Adjust comments.
20332 Call h8300_print_operand and h8300_print_operand_address instead of
20333 print_operand and print_operand_address. Declare.
20334 (print_operand): Renake to...
20335 (h8300_print_operand): ...this. Make static. Adjust comments.
20336 Call h8300_print_operand instead of print_operand. Declare.
20337 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
20338 (h8300_register_move_cost): Likewise.
20339 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
20340 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
20341 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
20342 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
20343 * config/h8300/h8300-protos.h (print_operand): Delete.
20344 (print_operand_address): Delete.
20345
20346 2011-04-01 Richard Henderson <rth@redhat.com>
20347
20348 PR 48400
20349 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
20350 in strict mode before dwarf4. Re-order tests to early out
20351 before switching sections.
20352
20353 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
20354
20355 * config/h8300/constraints.md: New file.
20356 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
20357 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
20358 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
20359 * config/h8300/predicates.md (bit_operand): Likewise.
20360 (incdec_operand): Use satisfies_constraint_M and
20361 satisfies_constraint_O. Don't use C code block.
20362 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
20363 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
20364 (compute_mov_length): Use satisfies_constraint_G.
20365 (fix_bit_operand): Use satisfies_constraint_U.
20366 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
20367 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
20368 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
20369 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
20370 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
20371 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
20372 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20373 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
20374 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
20375 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
20376 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
20377 (EXTRA_MEMORY_CONSTRAINT): Delete.
20378
20379 2011-04-01 Andrew Pinski <pinskia@gmail.com>
20380 Michael Meissner <meissner@linux.vnet.ibm.com>
20381
20382 PR target/48262
20383 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
20384 operands, as per the specifications.
20385
20386 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
20387 (vec_extract_evenv4sf): Ditto.
20388 (vec_extract_evenv8hi): Ditto.
20389 (vec_extract_evenv16qi): Ditto.
20390 (vec_extract_oddv4si): Ditto.
20391
20392 2011-03-31 Mark Wielaard <mjw@redhat.com>
20393
20394 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
20395 high_pc attribute if the CU has no associated code. Only output
20396 DW_AT_entry_pc for CU if not generating strict dwarf and
20397 dwarf_version < 4.
20398
20399 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
20400
20401 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
20402 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
20403 out of ...
20404 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
20405 * final.c (final_start_function): Call the new function rather
20406 than using a NULL argument for dwarf2out_frame_debug.
20407
20408 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
20409 that contains the prologue.
20410
20411 * haifa-sched.c (queue_insn): New arg REASON. All callers
20412 changed. Print it in debugging output.
20413
20414 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
20415
20416 * sched-ebb.c (begin_schedule_ready): Remove second argument.
20417 Split most of the code into...
20418 (begin_move_insn): ... here. New function.
20419 (ebb_sched_info): Add a pointer to it.
20420 * haifa-sched.c (scheduled_insns): New static variable.
20421 (sched_extend_ready_list): Allocate it.
20422 (schedule_block): Use it to record the order of scheduled insns.
20423 Perform RTL changes to move insns only after all scheduling
20424 decisions have been made.
20425 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
20426 begin_move_insn field.
20427 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
20428 * sched-int.h (struct haifa_sched_info): Remove second argument
20429 from begin_schedule_ready hook. Add new member begin_move_insn.
20430 * sched-rgn.c (begin_schedule_ready): Remove second argument.
20431 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
20432
20433 * haifa-sched.c (prune_ready_list): New function, broken out of
20434 schedule_block.
20435 (schedule_block): Use it.
20436
20437 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20438
20439 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
20440
20441 2011-04-01 Kai Tietz <ktietz@redhat.com>
20442
20443 * config.gcc (*-*-mingw*): Allow as option the
20444 posix threading model.
20445 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
20446 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20447 definition.
20448 (CPP_SPEC): Add pthread/no-pthread handling.
20449 (LIB_SPEC): Likewise.
20450 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
20451 (LIB_SPEC): Likewise.
20452 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
20453 flag to pass -pthread option for shared libgcc build.
20454 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
20455 for shared libgcc build.
20456 * config/i386/t-mingw-pthread: New file.
20457 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
20458 New define to enable use of library pthread by default.
20459 * config/i386/mingw.opt (pthread): New driver option.
20460 (no-pthread): New driver option.
20461 * config/i386/cygming.opt: Make sure trailing empty line is retained.
20462 * config/i386/mingw-w64.opt: Likewise.
20463
20464 2011-04-01 Gary Funck <gary@intrepid.com>
20465
20466 * c-decl.c (grokdeclarator): Fix formatting.
20467
20468 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20469
20470 * expr.c (emit_block_move_via_movmem): Use n_generator_args
20471 instead of n_operands.
20472 (set_storage_via_setmem): Likewise.
20473 * optabs.c (maybe_gen_insn): Likewise.
20474 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
20475 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
20476 (mips_expand_builtin_direct): Likewise.
20477 * config/spu/spu.c (expand_builtin_args): Likewise.
20478
20479 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20480
20481 * recog.h (insn_data_d): Add n_generator_args.
20482 * genoutput.c (data): Likewise.
20483 (output_insn_data): Print it.
20484 (max_opno, num_dups): Delete.
20485 (scan_operands): Just fill in "d->operand[...]".
20486 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
20487
20488 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20489
20490 * gensupport.h (pattern_stats): New structure.
20491 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
20492 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
20493 (max_operand_1, max_operand_vec): Delete.
20494 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
20495
20496 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
20497
20498 * emit-rtl.c (emit_pattern_after_setloc): New function.
20499 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
20500 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
20501 (emit_pattern_after): New function.
20502 (emit_insn_after, emit_jump_insn_after): Call it.
20503 (emit_call_insn_after, emit_debug_insn_after): Likewise.
20504 (emit_pattern_before_setloc): New function.
20505 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
20506 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
20507 Likewise.
20508 (emit_pattern_before): New function.
20509 (emit_insn_before, emit_jump_insn_before): Call it.
20510 (emit_call_insn_before, emit_debug_insn_before): Likewise.
20511
20512 2011-03-31 Richard Henderson <rth@redhat.com>
20513
20514 * dwarf2out.c (dw_separate_line_info_ref): Remove.
20515 (dw_separate_line_info_entry): Remove.
20516 (enum dw_line_info_opcode): New.
20517 (dw_line_info_entry): Use it.
20518 (dw_line_info_table, dw_line_info_table_p): New.
20519 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
20520 (line_info_table, line_info_label_num): Remove.
20521 (line_info_table_in_use): Remove.
20522 (separate_line_info_table): Remove.
20523 (separate_line_info_table_allocated): Remove.
20524 (separate_line_info_table_in_use): Remove.
20525 (LINE_INFO_TABLE_INCREMENT): Remove.
20526 (line_info_label_num): New.
20527 (cur_line_info_table): New.
20528 (text_section_line_info, cold_text_section_line_info): New.
20529 (separate_line_info): New.
20530 (SEPARATE_LINE_CODE_LABEL): Remove.
20531 (print_dwarf_line_table): Remove.
20532 (debug_dwarf): Don't dump it.
20533 (output_one_line_info_table): New.
20534 (output_line_info): Use it.
20535 (new_line_info_table): New.
20536 (set_cur_line_info_table): New.
20537 (dwarf2out_switch_text_section): Use it.
20538 (dwarf2out_begin_function): Likewise.
20539 (push_dw_line_info_entry): New.
20540 (dwarf2out_source_line): Rewrite for new line info tables.
20541 (dwarf2out_init): Remove dead initailizations.
20542
20543 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20544
20545 * opts.h (cl_option): Add comments to fields. Add bit-fields for
20546 various flags.
20547 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
20548 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
20549 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
20550 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
20551 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
20552 * opt-functions.awk (flag_init, switch_bit_fields): New.
20553 (switch_flags): Don't handle flags moved to bit-fields. Don't
20554 generate CL_MISSING_OK or CL_SAVE.
20555 * optc-gen.awk: Update to generate bit-field output as well as
20556 flags field.
20557 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20558 bit-field instead of CL_REJECT_DRIVER flag.
20559 * opts-common.c (generate_canonical_option,
20560 decode_cmdline_option): Use bit-fields instead of CL_* flags.
20561 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20562 instead of CL_REJECT_NEGATIVE flag.
20563 * toplev.c (print_switch_values): Use cl_report bit-field instead
20564 of CL_REPORT flag.
20565
20566 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20567
20568 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20569 a zero minimum index only if it is redundant.
20570
20571 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
20572
20573 PR rtl-optimization/48381
20574 * ira-color.c (assign_hard_reg): Use hard reg set intersection
20575 instead of ira_class_hard_reg_index for calculating conflicting
20576 hard registers.
20577
20578 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
20579
20580 * cprop.c: Clean up hash table building.
20581 (reg_avail_info): Remove.
20582 (oprs_available_p): Remove.
20583 (record_last_reg_set_info): Remove.
20584 (record_last_set_info): Remove.
20585 (reg_available_p): New function.
20586 (gcse_constant_p): Do not treat unfolded conditions as constants.
20587 (make_set_regs_unavailable): New function.
20588 (hash_scan_set): Simplify with new reg_available_p.
20589 (compute_hash_table_work): Traverse insns stream only once.
20590 Do not compute reg_avail_info. Traverse insns in reverse order.
20591 Record implicit sets after recording explicit sets from the block.
20592
20593 2011-03-31 Michael Matz <matz@suse.de>
20594
20595 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20596
20597 2011-03-31 Anatoly Sokolov <aesok@post.ru>
20598
20599 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20600 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20601 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20602 (h8300_mode_dependent_address_p): New function.
20603 (h8300_get_index): Make static.
20604
20605 2011-03-31 Jeff Law <law@redhat.com>
20606
20607 * reload1.c (elimination_effects): Fix typo in recent change.
20608
20609 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20610 typo potentially leading to null pointer dereference.
20611
20612 * caller-save.c (new_saved_hard_reg): Eliminate return value.
20613 (setup_save_areas): Corresponding changes to avoid useless
20614 assignments.
20615
20616 * jump.c (reversed_comparison_code_parts): Avoid successive return
20617 statements when REVERSE_CONDITION is defined.
20618
20619 * expr.c (expand_assignment): Avoid useless assignments.
20620 (expand_expr_real_1): Likewise.
20621 (expand_expr_real_2): Avoid useless statements.
20622
20623 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20624
20625 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20626
20627 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20628 statements.
20629
20630 * stmt.c (expand_expr_stmt): Avoid useless assignment.
20631
20632 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20633
20634 PR target/47109
20635 * doc/tm.texi.in (TARGET_VERSION): Remove.
20636 * doc/tm.texi: Regenerate.
20637 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20638 * collect2.c (main): Don't use TARGET_VERSION.
20639 * mips-tdump.c (main): Don't use TARGET_VERSION.
20640 * mips-tfile.c (main): Don't use TARGET_VERSION.
20641 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20642 * config/rs6000/vxworksae.h: Remove.
20643 * config/alpha/alpha.h (TARGET_VERSION): Remove.
20644 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20645 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20646 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20647 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20648 * config/arm/arm.h (TARGET_VERSION): Remove.
20649 * config/arm/coff.h (TARGET_VERSION): Remove.
20650 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20651 * config/arm/elf.h (TARGET_VERSION): Remove.
20652 * config/arm/freebsd.h (TARGET_VERSION): Remove.
20653 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20654 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20655 * config/arm/pe.h (TARGET_VERSION): Remove.
20656 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20657 * config/arm/semi.h (TARGET_VERSION): Remove.
20658 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20659 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20660 * config/arm/vxworks.h (TARGET_VERSION): Remove.
20661 * config/avr/avr.h (TARGET_VERSION): Remove.
20662 * config/bfin/bfin.h (TARGET_VERSION): Remove.
20663 * config/fr30/fr30.h (TARGET_VERSION): Remove.
20664 * config/frv/frv.h (TARGET_VERSION): Remove.
20665 * config/h8300/h8300.h (TARGET_VERSION): Remove.
20666 * config/i386/cygwin.h (TARGET_VERSION): Remove.
20667 * config/i386/darwin.h (TARGET_VERSION): Remove.
20668 * config/i386/darwin64.h (TARGET_VERSION): Remove.
20669 * config/i386/djgpp.h (TARGET_VERSION): Remove.
20670 * config/i386/freebsd.h (TARGET_VERSION): Remove.
20671 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20672 * config/i386/gnu.h (TARGET_VERSION): Remove.
20673 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20674 * config/i386/i386elf.h (TARGET_VERSION): Remove.
20675 * config/i386/linux.h (TARGET_VERSION): Remove.
20676 * config/i386/linux64.h (TARGET_VERSION): Remove.
20677 * config/i386/lynx.h (TARGET_VERSION): Remove.
20678 * config/i386/mingw32.h (TARGET_VERSION): Remove.
20679 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20680 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20681 * config/i386/netware.h (TARGET_VERSION): Remove.
20682 * config/i386/nto.h (TARGET_VERSION): Remove.
20683 * config/i386/openbsd.h (TARGET_VERSION): Remove.
20684 * config/i386/vxworks.h (TARGET_VERSION): Remove.
20685 * config/ia64/elf.h (TARGET_VERSION): Remove.
20686 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20687 * config/ia64/hpux.h (TARGET_VERSION): Remove.
20688 * config/ia64/linux.h (TARGET_VERSION): Remove.
20689 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20690 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20691 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20692 * config/lm32/lm32.h (TARGET_VERSION): Remove.
20693 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20694 * config/m32c/m32c.h (TARGET_VERSION): Remove.
20695 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20696 * config/m32r/m32r.h (TARGET_VERSION): Remove.
20697 * config/m68k/linux.h (TARGET_VERSION): Remove.
20698 * config/m68k/m68k.h (TARGET_VERSION): Remove.
20699 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20700 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20701 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20702 * config/mep/mep.h (TARGET_VERSION): Remove.
20703 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20704 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20705 * config/mips/iris6.h (MACHINE_TYPE): Remove.
20706 * config/mips/linux.h (TARGET_VERSION): Remove.
20707 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20708 * config/mips/vxworks.h (TARGET_VERSION): Remove.
20709 * config/mmix/mmix.h (TARGET_VERSION): Remove.
20710 * config/mn10300/linux.h (TARGET_VERSION): Remove.
20711 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20712 * config/pa/pa.h (TARGET_VERSION): Remove.
20713 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20714 * config/picochip/picochip.h (TARGET_VERSION): Remove.
20715 * config/rs6000/aix.h (TARGET_VERSION): Remove.
20716 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20717 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20718 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20719 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20720 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20721 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20722 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20723 * config/rs6000/linux.h (TARGET_VERSION): Remove.
20724 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20725 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20726 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20727 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20728 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20729 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20730 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20731 * config/s390/linux.h (TARGET_VERSION): Remove.
20732 * config/s390/s390.h (TARGET_VERSION): Remove.
20733 * config/s390/tpf.h (TARGET_VERSION): Remove.
20734 * config/score/score.h (TARGET_VERSION): Remove.
20735 * config/sh/linux.h (TARGET_VERSION): Remove.
20736 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20737 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20738 * config/sh/sh.h (TARGET_VERSION): Remove.
20739 * config/sh/sh64.h (TARGET_VERSION): Remove.
20740 * config/sh/superh.h (TARGET_VERSION): Remove.
20741 * config/sh/vxworks.h (TARGET_VERSION): Remove.
20742 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20743 * config/sparc/linux.h (TARGET_VERSION): Remove.
20744 * config/sparc/linux64.h (TARGET_VERSION): Remove.
20745 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20746 TARGET_NAME32, TARGET_NAME): Remove.
20747 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20748 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20749 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20750 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20751 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20752 * config/spu/spu.h (TARGET_VERSION): Remove.
20753 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20754 * config/v850/v850.h (TARGET_VERSION): Remove.
20755 * config/vax/linux.h (TARGET_VERSION): Remove.
20756 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20757 * config/xtensa/elf.h (TARGET_VERSION): Remove.
20758 * config/xtensa/linux.h (TARGET_VERSION): Remove.
20759
20760 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20761
20762 PR target/48142
20763 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20764 frame-related from frame-unrelated adjustments to the stack pointer.
20765
20766 2011-03-31 Jakub Jelinek <jakub@redhat.com>
20767
20768 * common.opt (fdebug-types-section): Move earlier.
20769 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20770
20771 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
20772
20773 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20774 var.
20775
20776 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
20777
20778 * tree.h (CASE_CHAIN): Define.
20779 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
20780 (gimple_redirect_edge_and_branch): Likewise.
20781
20782 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
20783
20784 PR middle-end/48367
20785 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
20786 calculation.
20787
20788 2011-03-30 Jeff Law <law@redhat.com>
20789
20790 * PR bootstrap/48371
20791 * reload1.c (reload): Fix botch in last change.
20792
20793 * reload.h (struct reload): Fix typo introduced in last change.
20794
20795 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20796
20797 * config/arm/arm.opt (mhard-float, msoft-float): Mark
20798 Undocumented. Remove help text.
20799 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
20800 -mhard-float.
20801
20802 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20803
20804 * doc/options.texi (NegativeAlias): Document.
20805 (Alias): Mention NegativeAlias.
20806 * opt-functions.awk: Handle NegativeAlias.
20807 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
20808 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
20809 * opts.h (CL_NEGATIVE_ALIAS): Define.
20810 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
20811 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
20812 OPT_mspe_.
20813 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
20814 Alias entries.
20815 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20816 mno-spe and mno-isel instead of mspe=no and -misel=no.
20817
20818 2011-03-29 Mark Wielaard <mjw@redhat.com>
20819
20820 * common.opt (fdebug-types-section): New flag.
20821 * doc/invoke.texi: Document new -fno-debug-types-section flag.
20822 * dwarf2out.c (use_debug_types): New define.
20823 (struct die_struct): Mark die_id with GTY desc use_debug_types.
20824 (print_die): Guard output of type unit signatures using
20825 use_debug_types.
20826 (build_abbrev_table): Replace assert of dwarf_version >= 4
20827 with assert on use_debug_types.
20828 (size_of_die): Likewise.
20829 (unmark_dies): Likewise.
20830 (value_format): Decide AT_ref_external form on use_debug_types.
20831 (output_die): Replace dwarf_version version check guard with
20832 use_debug_types where appropriate.
20833 (modified_type_die): Likewise.
20834 (gen_reference_type_die): Likewise.
20835 (dwarf2out_start_source_file): Likewise.
20836 (dwarf2out_end_source_file): Likewise.
20837 (prune_unused_types_walk_attribs): Likewise.
20838 (dwarf2out_finish): Likewise.
20839
20840 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
20841
20842 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
20843
20844 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20845
20846 PR rtl-optimization/48332
20847 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20848 mode of input operand N and modeN to its actual mode.
20849
20850 2011-03-30 Jeff Law <law@redhat.com>
20851
20852 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20853 define accessor macro.
20854 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20855 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20856 (reg_equiv_init): Likewise.
20857 (reg_equivs_size): New variable.
20858 (reg_equiv_init_size): Remove.
20859 (allocate_initial_values): Move prototype to here from....
20860 * integrate.h (allocate_initial_values): Remove prototype.
20861 * integrate.c: Include reload.h.
20862 (allocate_initial_values): Corresponding changes.
20863 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20864 (fix_reg_equiv_init, no_equiv): Corresponding changes.
20865 (update_equiv_regs): Corresponding changes.
20866 (ira): Corresponding changes.
20867 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20868 (push_secondary_reload): Corresponding changes.
20869 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20870 (make_memloc, find_reloads_address): Corresponding changes.
20871 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20872 (find_reloads_address_1): Corresponding changes.
20873 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20874 (refers_to_regno_for_reload_p): Corresponding changes.
20875 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20876 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20877 * reload1.c: Include ggc.h.
20878 (grow_reg_equivs): New function.
20879 (replace_pseudos_in, reload): Corresponding changes.
20880 (calculate_needs_all_insns, alter_regs): Corresponding changes.
20881 (eliminate_regs_1, elimination_effects): Corresponding changes.
20882 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20883 (delete_output_reload): Likewise.
20884 * caller-save.c (mark_referenced_regs): Corresponding changes.
20885 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20886 * frv/predicates.md (frv_load_operand): Corresponding changes.
20887 * microblaze/microblaze.c (double_memory_operand): Corresponding
20888 changes.
20889 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20890 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20891 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20892 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20893 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20894 changes.
20895 * pa/pa.c (emit_move_sequence): Corresponding changes.
20896 * vax/vax.c (nonindexed_address_p): Corresponding changes.
20897
20898 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20899
20900 PR target/47551
20901 * config/arm/arm.c (coproc_secondary_reload_class): Handle
20902 structure modes. Don't check neon_vector_mem_operand for
20903 vector or structure modes.
20904
20905 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20906 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20907
20908 PR target/43590
20909 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20910 operand 1 and reshuffle the operands to match.
20911 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20912
20913 2011-03-30 Christian Schüler <cschueler@gmx.de>
20914
20915 PR driver/48208
20916 * config/c.opt (F): Added 'Driver' to -F option.
20917
20918 PR driver/48260
20919 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20920 handler function.
20921 * config/darwin.opt: Added '-arch' option.
20922
20923 2011-03-30 Nick Clifton <nickc@redhat.com>
20924
20925 * config/rx/rx.md: Add peepholes and patterns to combine
20926 extending loads and simple arithmetic instructions.
20927 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20928 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20929 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20930 modes to use pre-decrement and post-increment addressing.
20931 (rx_is_restricted_memory_address): Add range checking of REG+INT
20932 addresses.
20933 (rx_print_operand): Add support for %Q. Fix handling of %Q.
20934 (rx_memory_move_cost): Adjust cost of stores.
20935 (rx_adjust_insn_length): New function.
20936
20937 2011-03-30 Jakub Jelinek <jakub@redhat.com>
20938
20939 PR c/48305
20940 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20941 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20942 matching arg00/arg01 types.
20943
20944 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
20945
20946 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20947 last_location to UNKNOWN_LOCATION.
20948
20949 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
20950
20951 PR target/48349
20952 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20953 FLOAT_SSE_REGS.
20954
20955 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20956 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20957
20958 PR bootstrap/48337
20959 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20960 Init(PROCESSOR_V7).
20961 (sparc_cpu): Likewise.
20962 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20963 PROCESSOR_V7.
20964
20965 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20966
20967 PR target/48336
20968 PR middle-end/48342
20969 PR rtl-optimization/48345
20970 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20971 hard regs for given mode from profitable regs when doing secondary
20972 allocation.
20973
20974 2011-03-29 Jeff Law <law@redhat.com>
20975
20976 PR bootstrap/48327
20977 * tree-ssa-threadupdate.c (struct redirection_data): Remove
20978 do_not_duplicate field.
20979 (lookup_redirection_data): Corresponding changes.
20980 (create_duplicates): Always create a template block.
20981 (redirect_edges): Remove code which reused the original block
20982 when it was going to become unreachable code.
20983 (thread_block): Don't set do_not_duplicate field.
20984
20985 2011-03-29 Joseph Myers <joseph@codesourcery.com>
20986
20987 * lto-opts.c (register_user_option_p, lto_register_user_option):
20988 Make type argument unsigned.
20989 * lto-streamer.h (lto_register_user_option): Make type argument
20990 unsigned.
20991 * opth-gen.awk: Make CL_* macros unsigned.
20992 * opts-common.c (find_opt): Make lang_mask argument unsigned.
20993 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20994 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20995 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20996 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20997 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20998 (find_opt): Make lang_mask argument unsigned.
20999
21000 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21001
21002 PR rtl-optimization/48331
21003 PR rtl-optimization/48334
21004 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
21005 for any used algorithm.
21006
21007 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21008
21009 * ira-conflicts.c (build_object_conflicts): Add unused attribute
21010 to parent_max.
21011
21012 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
21013
21014 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
21015 (alpha_option_override): Don't set alpha_sr_alias_set.
21016 (emit_frame_store_1): Use gen_frame_mem rather than calling
21017 set_mem_alias_set.
21018 (alpha_expand_epilogue): Ditto.
21019
21020 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
21021
21022 PR tree-optimization/48290
21023 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
21024 vectorization, check that relevant phis in the basic block after
21025 the inner loop are really inner loop's exit phis.
21026
21027 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
21028
21029 PR debug/48190
21030 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
21031 (cached_dw_loc_list_def): New structure.
21032 (cached_dw_loc_list): New typedef.
21033 (cached_dw_loc_list_table): New variable.
21034 (cached_dw_loc_list_table_hash): New function.
21035 (cached_dw_loc_list_table_eq): Likewise.
21036 (add_location_or_const_value_attribute): Take a bool cache_p.
21037 Cache the list when the parameter is true.
21038 (gen_formal_parameter_die): Update caller.
21039 (gen_variable_die): Likewise.
21040 (dwarf2out_finish): Likewise.
21041 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
21042 while generating debug info for the decl.
21043 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
21044 (dwarf2out_init): Initialize cached_dw_loc_list_table.
21045 (resolve_addr): Cache the result of resolving a chain of
21046 location lists.
21047
21048 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
21049
21050 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
21051 conflict object hard regset nodes have intersecting hard reg sets.
21052
21053 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
21054 after regstat_init_n_sets_and_refs.
21055
21056 * ira.c: Add more comments at the top.
21057 (setup_stack_reg_pressure_class, setup_pressure_classes):
21058 Add comments how we compute the register pressure classes.
21059 (setup_allocno_and_important_classes): Add more comments.
21060 (setup_class_translate_array, reorder_important_classes)
21061 (setup_reg_class_relations): Add comments.
21062
21063 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
21064 start of the file.
21065
21066 * ira-color.c: Add 2011 to the Copyright line.
21067 (assign_hard_reg): Add more comments.
21068 (improve_allocation): Ditto.
21069
21070 * ira-costs.c: Add 2011 to the Copyright line.
21071 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
21072 comments.
21073 (setup_regno_cost_classes_by_mode): Ditto.
21074
21075 Initial patches from ira-improv branch:
21076
21077 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21078
21079 * ira-build.c (ira_create_object): Remove initialization of
21080 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
21081 (ira_create_allocno): Remove initialization of
21082 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
21083 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
21084 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21085 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
21086 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
21087 Initialize ALLOCNO_ADD_DATA.
21088 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
21089 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
21090 ALLOCNO_REG.
21091 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
21092 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
21093
21094 * ira.c (ira_reallocate): Remove.
21095 (setup_pressure_classes): Call
21096 ira_init_register_move_cost_if_necessary. Use
21097 ira_register_move_cost instead of ira_get_register_move_cost.
21098 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
21099 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
21100
21101 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
21102 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21103 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
21104 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
21105 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
21106 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
21107 Fix formatting.
21108 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
21109 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21110 (struct allocno_color_data): New.
21111 (allocno_color_data_t): New typedef.
21112 (allocno_color_data): New definition.
21113 (ALLOCNO_COLOR_DATA): New macro.
21114 (struct object_color_data): New.
21115 (object_color_data_t): New typedef.
21116 (object_color_data): New definition.
21117 (OBJECT_COLOR_DATA): New macro.
21118 (update_copy_costs, calculate_allocno_spill_cost): Call
21119 ira_init_register_move_cost_if_necessary. Use
21120 ira_register_move_cost instead of ira_get_register_move_cost.
21121 (move_spill_restore, update_curr_costs): Ditto.
21122 (allocno_spill_priority): Make it inline.
21123 (color_pass): Allocate and free allocno_color_dat and object_color_data.
21124 (struct coalesce_data, coalesce_data_t): New.
21125 (allocno_coalesce_data): New definition.
21126 (ALLOCNO_COALESCE_DATA): New macro.
21127 (merge_allocnos, coalesced_allocno_conflict_p): Use
21128 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
21129 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
21130 (coalesce_allocnos): Ditto.
21131 (setup_coalesced_allocno_costs_and_nums): Ditto.
21132 (collect_spilled_coalesced_allocnos): Ditto.
21133 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
21134 (setup_slot_coalesced_allocno_live_ranges): Ditto.
21135 (coalesce_spill_slots): Ditto.
21136 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
21137 free allocno_coalesce_data.
21138
21139 * ira-conflicts.c: Fix formatting.
21140 (process_regs_for_copy): Call
21141 ira_init_register_move_cost_if_necessary. Use
21142 ira_register_move_cost instead of ira_get_register_move_cost.
21143 (build_object_conflicts): Optimize.
21144
21145 * ira-costs.c (record_reg_classes): Optimize. Call
21146 ira_init_register_move_cost_if_necessary. Use
21147 ira_register_move_cost, ira_may_move_in_cost, and
21148 ira_may_move_out_cost instead of ira_get_register_move_cost and
21149 ira_get_may_move_cost.
21150 (record_address_regs): Ditto.
21151 (scan_one_insn): Optimize.
21152 (find_costs_and_classes): Optimize.
21153 (process_bb_node_for_hard_reg_moves): Call
21154 ira_init_register_move_cost_if_necessary. Use
21155 ira_register_move_cost instead of ira_get_register_move_cost.
21156
21157 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
21158 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
21159 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
21160 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
21161 definitions.
21162 (ira_initiate_emit_data, ira_finish_emit_data)
21163 (create_new_allocno): New functions.
21164 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
21165 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
21166 Use ira_register_move_cost instead of ira_get_register_move_cost.
21167
21168 * ira-int.h: Fix some comments.
21169 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
21170 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21171 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
21172 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
21173 add_data.
21174 (struct ira_allocno): Make mode and aclass a bitfield. Move other
21175 bitfield after mode. Make hard_regno a short int. Make
21176 hard_regno short. Remove first_coalesced_allocno and
21177 next_coalesced_allocno. Move mem_optimized_dest_p,
21178 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
21179 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
21180 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
21181 temp, colorable_p. Add new member add_data.
21182 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
21183 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
21184 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
21185 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
21186 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
21187 (ALLOCNO_ADD_DATA): New macro.
21188 (ira_emit_data_t): New typedef.
21189 (struct ira_emit_data): New. Move mem_optimized_dest_p,
21190 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
21191 from struct ira_allocno.
21192 (ALLOCNO_EMIT_DATA): New macro.
21193 (ira_allocno_emit_data, allocno_emit_reg): New.
21194 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
21195 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
21196 (OBJECT_ADD_DATA): New macro.
21197 (ira_reallocate): Remove.
21198 (ira_initiate_emit_data, ira_finish_emit_data): New.
21199 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
21200 (ira_init_register_move_cost_if_necessary): New.
21201 (ira_object_conflict_iter_next): Merge into
21202 ira_object_conflict_iter_cond.
21203 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
21204
21205 * ira-live.c (process_single_reg_class_operands): Call
21206 ira_init_register_move_cost_if_necessary. Use
21207 ira_register_move_cost instead of ira_get_register_move_cost.
21208
21209 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21210
21211 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
21212
21213 * ira-costs.c: Fix formatting.
21214 (cost_classes, cost_classes_num): Remove.
21215 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
21216 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
21217 (cost_classes_del, cost_classes_htab): New.
21218 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
21219 (initiate_regno_cost_classes, setup_cost_classes): New.
21220 (setup_regno_cost_classes_by_aclass): New.
21221 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
21222 (record_reg_classes): Use regno_cost_classes instead of
21223 cost_classes. Move checking opposite operand up.
21224 (record_address_regs): Use regno_cost_classes
21225 instead of cost_classes.
21226 (scan_one_insn): Ditto. Use always general register.
21227 (print_allocno_costs): Use regno_cost_classes instead of
21228 cost_classes.
21229 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
21230 (find_costs_and_classes): Set up cost classes for each registers.
21231 Use also their mode for this. Use regno_cost_classes instead of
21232 cost_classes.
21233 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
21234 cost_classes.
21235 (free_ira_costs, ira_init_costs): Don't use cost_classes.
21236 (ira_costs, ira_set_pseudo_classes): Call
21237 initiate_regno_cost_classes and finish_regno_cost_classes.
21238
21239 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
21240
21241 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
21242
21243 * target.def (ira_cover_classes): Remove.
21244
21245 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
21246
21247 * doc/tm.texi.in: Ditto.
21248
21249 * ira-conflicts.c: Remove mentioning cover classes from the file.
21250 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
21251 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
21252
21253 * targhooks.c (default_ira_cover_classes): Remove.
21254
21255 * targhooks.h (default_ira_cover_classes): Ditto.
21256
21257 * haifa-sched.c: Remove mentioning cover classes from the file.
21258 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21259 ira_pressure_classes and ira_pressure_classes_num instead of
21260 ira_reg_class_cover_size and ira_reg_class_cover. Use
21261 sched_regno_pressure_class instead of sched_regno_cover_class.
21262 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21263 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21264
21265 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
21266 classes from the file.
21267 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21268 (struct object_hard_regs, struct object_hard_regs_node): New.
21269 (struct ira_object): New members profitable_hard_regs,
21270 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21271 (struct ira_allocno): Rename cover_class to aclass. Rename
21272 cover_class_cost and updated_cover_class_cost to class_cost and
21273 updated_class_cost. Remove splay_removed_p and
21274 left_conflict_size. Add new members colorable_p.
21275 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21276 (ALLOCNO_COLORABLE_P): New macro.
21277 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21278 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21279 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21280 (OBJECT_...): Rename parameter C to O.
21281 (OBJECT_PROFITABLE_HARD_REGS): New macro.
21282 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21283 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21284 (struct target_ira_int): New members x_ira_max_memory_move_cost,
21285 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21286 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21287 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21288 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
21289 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
21290 x_ira_reg_class_subunion.
21291 (ira_max_memory_move_cost, ira_max_register_move_cost)
21292 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21293 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21294 (ira_important_class_nums, ira_reg_class_superunion): New macros.
21295 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21296 (ira_reg_class_union): Rename to ira_reg_class_subunion.
21297 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21298 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21299 (ira_tune_allocno_costs_and_cover_classes): Rename to
21300 ira_tune_allocno_costs.
21301 (ira_debug_hard_regs_forest): New.
21302 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21303 (ira_object_conflict_iter_next): Fix comments.
21304 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21305 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21306 cover_class to aclass.
21307 (ira_allocate_and_accumulate_costs): Ditto.
21308 (ira_allocate_and_set_or_copy_costs): Ditto.
21309
21310 * opts.c (decode_options): Remove ira_cover_class check.
21311
21312 * ira-color.c: Remove mentioning cover classes from the file. Use
21313 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21314 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21315 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21316 (splay-tree.h): Remove include.
21317 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21318 before copy_freq_compare_func.
21319 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21320 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21321 New definitions.
21322 (hard_regs_roots, hard_regs_node_vec): Ditto.
21323 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21324 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21325 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21326 (create_new_object_hard_regs_node): Ditto.
21327 (add_new_object_hard_regs_node_to_forest): Ditto.
21328 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21329 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
21330 Ditto.
21331 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
21332 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
21333 (remove_unused_object_hard_regs_nodes): Ditto.
21334 (enumerate_object_hard_regs_nodes): Ditto.
21335 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
21336 (object_hard_regs_subnode_t): Ditto.
21337 (struct object_hard_regs_subnode): Ditto.
21338 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
21339 (setup_object_hard_regs_subnode_index): Ditto.
21340 (get_object_hard_regs_subnodes_num): Ditto.
21341 (form_object_hard_regs_nodes_forest): Ditto.
21342 (finish_object_hard_regs_nodes_tree): Ditto.
21343 (finish_object_hard_regs_nodes_forest): Ditto.
21344 (allocnos_have_intersected_live_ranges_p): Rename to
21345 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21346 (pseudos_have_intersected_live_ranges_p): Rename to
21347 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21348 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
21349 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
21350 (update_copy_costs): Remove assert. Skip cost update if the hard
21351 reg does not belong the class.
21352 (assign_hard_reg): Process only profitable hard regs.
21353 (uncolorable_allocnos_num): Make it scalar.
21354 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
21355 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
21356 and ira_reg_class_max_nregs.
21357 (bucket_allocno_compare_func): Check frequency first.
21358 (sort_bucket): Add compare function as a parameter.
21359 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
21360 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
21361 (push_allocno_to_stack): Rewrite for checking new allocno
21362 colorability.
21363 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
21364 (push_only_colorable): Pass new parameter to sort_bucket.
21365 (push_allocno_to_spill): Remove.
21366 (allocno_spill_priority_compare): Make it inline and rewrite.
21367 (splay_tree_allocate, splay_tree_free): Remove.
21368 (allocno_spill_sort_compare): New function.
21369 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
21370 build and use splay tree. Choose first allocno in uncolorable
21371 allocno bucket to spill. Remove setting spill cost.
21372 (all_conflicting_hard_regs): Remove.
21373 (setup_allocno_available_regs_num): Check only profitable hard
21374 regs. Print info about hard regs nodes.
21375 (setup_allocno_left_conflicts_size): Remove.
21376 (put_allocno_into_bucket): Don't call
21377 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
21378 (improve_allocation): New.
21379 (color_allocnos): Call setup_profitable_hard_regs,
21380 form_object_hard_regs_nodes_forest, improve_allocation,
21381 finish_object_hard_regs_nodes_forest. Setup spill cost.
21382 (print_loop_title): Use pressure classes.
21383 (color_allocnso): Ditto.
21384 (do_coloring): Remove allocation and freeing splay_tree_node_pool
21385 and allocnos_for_spilling.
21386 (ira_sort_regnos_for_alter_reg): Don't setup members
21387 {first,next}_coalesced_allocno.
21388 (color): Remove allocating and freeing removed_splay_allocno_vec.
21389 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
21390 prohibited_class_mode_regs.
21391
21392 * ira-lives.c: Remove mentioning cover classes from the file. Fix
21393 formatting.
21394 (update_allocno_pressure_excess_length): Use pressure classes.
21395 (inc_register_pressure, dec_register_pressure): Check for pressure
21396 class.
21397 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
21398 pressure class. Use ira_reg_class_nregs instead of
21399 ira_reg_class_max_nregs.
21400 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
21401 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
21402 (single_reg_class): Use ira_reg_class_nregs instead of
21403 ira_reg_class_max_nregs.
21404 (process_bb_node_lives): Use pressure classes.
21405
21406 * ira-emit.c: Remove mentioning cover classes from the file. Use
21407 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
21408 (change_loop): Use pressure classes.
21409 (modify_move_list): Call ira_set_allocno_class instead of
21410 ira_set_allocno_cover_class.
21411
21412 * ira-build.c: Remove mentioning cover classes from the file. Use
21413 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
21414 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
21415 ALLOCNO_UPDATED_CLASS_COST instead of
21416 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21417 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
21418 (ira_create_allocno): Remove initialization of
21419 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
21420 ALLOCNO_COLORABLE_P.
21421 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21422 Update conflict regs for the objects.
21423 (create_cap_allocno): Remove assert. Don't propagate
21424 ALLOCNO_AVAILABLE_REGS_NUM.
21425 (ira_free_allocno_costs): New function.
21426 (finish_allocno): Change a part of code into call of
21427 ira_free_allocno_costs.
21428 (low_pressure_loop_node_p): Use pressure classes.
21429 (object_range_compare_func): Don't compare classes.
21430 (setup_min_max_conflict_allocno_ids): Ditto.
21431
21432 * loop-invariant.c: Remove mentioning cover classes from the file.
21433 Use ira_pressure_classes and ira_pressure_classes_num instead of
21434 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
21435 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
21436 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21437 Use reg_allocno_class instead of reg_cover_class.
21438 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
21439 STACK_REG_COVER_CLASS.
21440 (get_regno_cover_class): Rename to get_regno_pressure_class.
21441 (move_loop_invariants): Initialize and finalize regstat.
21442
21443 * ira.c: Remove mentioning cover classes from the file. Add
21444 comments about coloring without cover classes. Use ALLOCNO_CLASS
21445 instead of ALLOCNO_COVER_CLASS. Fix formatting.
21446 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
21447 setup_class_subset_and_memory_move_costs.
21448 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
21449 (setup_cover_and_important_classes): Rename to
21450 setup_allocno_and_important_classes.
21451 (setup_class_translate_array): New.
21452 (setup_class_translate): Call it for allocno and pressure classes.
21453 (cover_class_order): Rename to allocno_class_order.
21454 (comp_reg_classes_func): Use ira_allocno_class_translate instead
21455 of ira_class_translate.
21456 (reorder_important_classes): Set up ira_important_class_nums.
21457 (setup_reg_class_relations): Set up ira_reg_class_superunion.
21458 (print_class_cover): Rename to print_classes. Add parameter.
21459 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21460 Print pressure classes too.
21461 (find_reg_class_closure): Rename to find_reg_classes. Don't call
21462 setup_reg_subclasses.
21463 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21464 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21465 (setup_prohibited_class_mode_regs): Use
21466 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
21467 (clarify_prohibited_class_mode_regs): New function.
21468 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
21469 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
21470 (ira_init_once): Initialize them.
21471 (free_register_move_costs): Process them.
21472 (ira_init): Move calls of find_reg_classes and
21473 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
21474 Call clarify_prohibited_class_mode_regs.
21475 (ira_no_alloc_reg): Remove.
21476 (too_high_register_pressure_p): Use pressure classes.
21477
21478 * sched-deps.c: Remove mentioning cover classes from the file.
21479 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21480 ira_pressure_classes and ira_pressure_classes_num instead of
21481 ira_reg_class_cover_size and ira_reg_class_cover.
21482 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
21483 sched_regno_pressure_class instead of sched_regno_cover_class.
21484 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
21485 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21486
21487 * ira.h: Add 2010 to Copyright.
21488 (ira_no_alloc_reg): Remove external.
21489 (struct target_ira): Rename x_ira_hard_regno_cover_class,
21490 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
21491 x_ira_class_translate to x_ira_hard_regno_allocno_class,
21492 x_ira_allocno_classes_num, x_ira_allocno_classes, and
21493 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
21494 x_ira_pressure_classes, x_ira_pressure_class_translate, and
21495 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
21496 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
21497 x_ira_no_alloc_regs.
21498 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21499 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
21500 ira_allocno_classes_num and ira_allocno_classes.
21501 (ira_class_translate): Rename to ira_allocno_class_translate.
21502 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
21503 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
21504 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21505 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
21506 (ira_no_alloc_regs): New.
21507
21508 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
21509 classes from the file. Use ALLOCNO_CLASS instead of
21510 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
21511 ALLOCNO_COVER_CLASS_COST.
21512 (regno_cover_class): Rename to regno_aclass.
21513 (record_reg_classes): Use ira_reg_class_subunion instead of
21514 ira_reg_class_union.
21515 (record_address_regs): Check overflow.
21516 (scan_one_insn): Ditto.
21517 (print_allocno_costs): Print total mem cost fore regional allocation.
21518 (print_pseudo_costs): Use REG_N_REFS.
21519 (find_costs_and_classes): Use classes intersected with them on the
21520 1st pass. Check overflow. Use ira_reg_class_subunion instead of
21521 ira_reg_class_union. Use ira_allocno_class_translate and
21522 regno_aclass instead of ira_class_translate and regno_cover_class.
21523 Modify code for finding regno_aclass. Setup preferred classes for
21524 the next pass.
21525 (setup_allocno_cover_class_and_costs): Rename to
21526 setup_allocno_class_and_costs. Use regno_aclass instead of
21527 regno_cover_class. Use ira_set_allocno_class instead of
21528 ira_set_allocno_cover_class.
21529 (init_costs, finish_costs): Use regno_aclass instead of
21530 regno_cover_class.
21531 (ira_costs): Use setup_allocno_class_and_costs instead of
21532 setup_allocno_cover_class_and_costs.
21533 (ira_tune_allocno_costs_and_cover_classes): Rename to
21534 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
21535 by processing objects. Use ira_reg_class_max_nregs instead of
21536 ira_reg_class_nregs.
21537
21538 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
21539
21540 * sched-int.h: Remove mentioning cover classes from the file.
21541 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
21542
21543 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
21544 classes from the file.
21545 (struct reg_pref): Rename coverclass into allocnoclass.
21546 (reg_cover_class): Rename to reg_allocno_class.
21547
21548 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
21549
21550 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
21551
21552 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
21553
21554 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
21555
21556 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
21557
21558 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21559
21560 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21561
21562 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21563
21564 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21565
21566 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21567
21568 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21569 (i386_ira_cover_classes): Ditto.
21570
21571 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21572
21573 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21574
21575 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21576
21577 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21578
21579 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21580
21581 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21582
21583 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21584 (mips_ira_cover_classes): Ditto.
21585
21586 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21587
21588 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21589
21590 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21591
21592 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21593
21594 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21595
21596 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21597 (IRA_COVER_CLASSES_VSX): Ditto.
21598
21599 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21600 (rs6000_ira_cover_classes): Ditto.
21601
21602 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21603
21604 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21605
21606 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21607
21608 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21609
21610 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21611
21612 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21613
21614 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21615
21616 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21617
21618 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21619
21620 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21621
21622 2011-03-29 Jakub Jelinek <jakub@redhat.com>
21623
21624 PR debug/48253
21625 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21626 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21627 dw_fde_unlikely_section_end_label, cold_in_std_section,
21628 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21629 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21630 fields.
21631 (output_fde): Use dw_fde_second_{begin,end} if second is
21632 true, otherwise dw_fde_{begin,end}.
21633 (output_call_frame_info): Test dw_fde_second_begin != NULL
21634 instead of dw_fde_switched_sections.
21635 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21636 fields, initialize new fields. Initialize in_std_section
21637 unconditionally from the first partition.
21638 (dwarf2out_end_epilogue): Don't override dw_fde_end when
21639 dw_fde_second_begin is non-NULL.
21640 (dwarf2out_switch_text_section): Stop initializing removed
21641 dw_fde_struct fields, initialize new fields, initialize
21642 also dw_fde_end here. Set dw_fde_switch_cfi even when
21643 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
21644 (struct var_loc_list_def): Add last_before_switch field.
21645 (arange_table, arange_table_allocated, arange_table_in_use,
21646 ARANGE_TABLE_INCREMENT, add_arange): Removed.
21647 (size_of_aranges): Count !in_std_section and !second_in_std_section
21648 hunks in fdes, instead of looking at arange_table_in_use.
21649 (output_aranges): Add aranges_length argument, don't call
21650 size_of_aranges here. Instead of using aranges_table*
21651 emit ranges for fdes when !in_std_section resp.
21652 !second_in_std_section.
21653 (dw_loc_list): Break ranges crossing section switch.
21654 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
21655 use dw_fde_second_end instead of dw_fde_end as end of last range.
21656 (gen_subprogram_die): Don't call add_arange. Use
21657 dw_fde_{begin,end} for first partition and if switched
21658 section dw_fde_second_{begin,end} for the second.
21659 (var_location_switch_text_section_1,
21660 var_location_switch_text_section): New functions.
21661 (dwarf2out_begin_function): Initialize cold_text_section even
21662 when function_section () isn't text_section.
21663 (prune_unused_types): Don't walk arange_table.
21664 (dwarf2out_finish): Don't needlessly test
21665 flag_reorder_blocks_and_partition when testing cold_text_section_used.
21666 If info_section_emitted, call size_of_aranges and if it indicates
21667 non-empty .debug_aranges, call output_aranges with the computed
21668 size. Stop using removed dw_fde_struct fields, use
21669 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21670 for second.
21671
21672 PR debug/48203
21673 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21674 create ENTRY_VALUE if incoming or address of incoming's MEM
21675 is a hard REG.
21676 * dwarf2out.c (mem_loc_descriptor): Don't emit
21677 DW_OP_GNU_entry_value of DW_OP_fbreg.
21678 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21679 on ENTRY_VALUE is able to find the canonical parameter VALUE.
21680 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21681 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21682 ENTRY_VALUE_EXPs.
21683 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21684 is a REG_P or MEM_P with REG_P address, compute hash directly
21685 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21686 (preserve_only_constants): Don't clear VALUES forwaring
21687 ENTRY_VALUE to some other VALUE.
21688
21689 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
21690
21691 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21692 instead of GEN_INT.
21693
21694 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
21695
21696 * cfgexpand.c (expand_gimple_cond): Always set the source location and
21697 block before expanding the statement.
21698 (expand_gimple_stmt_1): Likewise. Set them here...
21699 (expand_gimple_stmt): ...and not here. Tidy.
21700 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21701 unknown.
21702
21703 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21704
21705 * Makefile.in: New rule for cprop.o.
21706 * gcse.c: Move constant/copy propagation to cprop.c.
21707 (compute_local_properties): Only handle expression tables.
21708 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21709 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21710 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21711 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21712 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21713 compute_cprop_data, find_used_regs, try_replace_reg,
21714 find_avail_set, cprop_jump, constprop_register, cprop_insn,
21715 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21716 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21717 find_bypass_set, reg_killed_on_edge, bypass_block,
21718 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21719 execute_rtl_cprop, pass_rtl_cprop): Move to...
21720 * cprop.c: ...here. New file, constant/copy propagation for RTL
21721 moved from gcse.c to here with minor cleanups in duplicated code.
21722
21723 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
21724
21725 * config/i386/i386.c (flag_opts): Fix a typo in
21726 -mavx256-split-unaligned-store.
21727
21728 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21729
21730 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21731 LIBCALL_VALUE): Remove macros.
21732 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21733 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21734 (h8300_function_value, h8300_libcall_value,
21735 h8300_function_value_regno_p): New functions.
21736
21737 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21738
21739 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21740
21741 2011-03-28 Jeff Law <law@redhat.com>
21742
21743 * tree-ssa-threadupdate.c (redirect_edges): Call
21744 create_edge_and_update_destination_phis as needed.
21745 (create_edge_and_update_destination_phis): Accept new BB argument.
21746 All callers updated.
21747 (thread_block): Do not update the profile when threading around
21748 intermediate blocks.
21749 (thread_single_edge): Likewise.
21750 (determine_bb_domination_status): If BB is not a successor of the
21751 loop header, return NONDOMINATING.
21752 (register_jump_thread): Note when we register a jump thread around
21753 an intermediate block.
21754 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21755 (thread_across_edge): Use it.
21756
21757 2011-03-28 Tristan Gingold <gingold@adacore.com>
21758
21759 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21760 when for_return is 2.
21761
21762 2011-03-28 Jeff Law <law@redhat.com>
21763
21764 * var-tracking.c (canonicalize_values_mark): Delete unused
21765 lhs assignment.
21766 (canonicalize_values_star, set_variable_part): Likewise.
21767 (clobber_variable_part, delete_variable_part): Likewise.
21768
21769 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21770
21771 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21772
21773 2011-03-28 Martin Jambor <mjambor@suse.cz>
21774
21775 * tree-inline.c (expand_call_inline): Do not check that destination
21776 node is analyzed.
21777 (optimize_inline_calls): Assert that destination node is analyzed.
21778 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21779 not call tree_lowering_passes.
21780 * cgraph.h (cgraph_analyze_function): Declare.
21781 * cgraphunit.c (cgraph_analyze_function): Make public.
21782
21783 2011-03-28 Joseph Myers <joseph@codesourcery.com>
21784
21785 * config/sparc/sparc-opts.h: New.
21786 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
21787 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
21788 (sparc_option_override): Store processor_type enumeration rather
21789 than string in cpu_default. Remove name and enumeration from
21790 cpu_table. Directly default -mcpu then default -mtune from -mcpu
21791 without using sparc_select. Use target_flags_explicit instead of
21792 fpu_option_set.
21793 * config/sparc/sparc.h (enum processor_type): Move to
21794 sparc-opts.h.
21795 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
21796 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
21797 HeaderInclude entry.
21798 (mcpu=, mtune=): Use Var and Enum.
21799 (sparc_processor_type): New Enum and EnumValue entries.
21800
21801 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21802 Iain Sandoe <iains@gcc.gnu.org>
21803
21804 PR target/48245
21805 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
21806
21807 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
21808
21809 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
21810 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
21811 Insert new statements at it in lieu of STMT.
21812 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
21813 * tree-vect-stmts.c (vectorizable_store): Likewise.
21814 (vectorizable_load): Likewise.
21815
21816 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
21817
21818 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
21819 (divtf3): Ditto.
21820 (multf3): Ditto.
21821 (subtf3): Ditto.
21822
21823 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
21824
21825 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
21826 unaligned 256bit load/store.
21827 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
21828 (*avx_movdqu<avxmodesuffix>): Likewise.
21829
21830 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21831
21832 PR target/48288
21833 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
21834 * config/pa/pa.md (iordi3): Use new predicate in expander.
21835 (iorsi3): Likewise.
21836
21837 2011-03-27 Anatoly Sokolov <aesok@post.ru>
21838
21839 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
21840 FUNCTION_VALUE_REGNO_P): Remove macros.
21841 * config/mips/mips-protos.h (mips_function_value): Remove.
21842 * config/mips/mips.c (mips_function_value): Rename to...
21843 (mips_function_value_1): ... this. Make static. Handle receiving
21844 the function type in 'fn_decl_or_type' argument.
21845 (mips_function_value, mips_libcall_value,
21846 mips_function_value_regno_p): New function.
21847 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21848 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21849
21850 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
21851
21852 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21853 and -mavx256-split-unaligned-store.
21854 (ix86_option_override_internal): Split 32-byte AVX unaligned
21855 load/store by default.
21856 (ix86_avx256_split_vector_move_misalign): New.
21857 (ix86_expand_vector_move_misalign): Use it.
21858
21859 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21860 -mavx256-split-unaligned-store.
21861
21862 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21863 256bit load/store. Generate unaligned store on misaligned memory
21864 operand.
21865 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21866 256bit load/store.
21867 (*avx_movdqu<avxmodesuffix>): Likewise.
21868
21869 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21870 -mavx256-split-unaligned-store.
21871
21872 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21873
21874 PR target/38598
21875 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21876 Update commentary.
21877
21878 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21879
21880 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21881 opno arguments with an expand_operand. Use create_input_operand.
21882 (mips_prepare_builtin_target): Delete.
21883 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21884 functions.
21885 (mips_expand_builtin_direct): Use create_output_operand and
21886 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
21887 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
21888 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21889
21890 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
21891
21892 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21893 function.
21894 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21895
21896 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
21897
21898 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21899 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
21900 basic blocks and call commit_edge_insertions directly.
21901 (fixup_abnormal_edges): Move from here to...
21902 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
21903 on the edges and return whether some have actually been inserted.
21904 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21905 compensation code.
21906
21907 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
21908
21909 PR rtl-optimization/48144
21910 * sel-sched-ir.c (merge_history_vect): Factor out from ...
21911 (merge_expr_data): ... here.
21912 (av_set_intersect): Rename to av_set_code_motion_filter.
21913 Update all callers. Call merge_history_vect when an expression
21914 is found in both sets.
21915 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21916
21917 2011-03-26 Alan Modra <amodra@gmail.com>
21918
21919 * config/rs6000/predicates.md (word_offset_memref_op): Handle
21920 cmodel medium addresses.
21921 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21922 64-bit gpr loads and stores.
21923 (rs6000_secondary_reload_ppc64): New function.
21924 * config/rs6000/rs6000-protos.h: Declare it.
21925 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21926
21927 2011-03-26 Alan Modra <amodra@gmail.com>
21928
21929 PR target/47487
21930 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21931 GNU Go in traceback table.
21932
21933 2011-03-25 Richard Henderson <rth@redhat.com>
21934
21935 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21936 if there are exactly 6 operands.
21937 (set_storage_via_setmem): Similarly.
21938
21939 2011-03-25 Kai Tietz <ktietz@redhat.com>
21940
21941 * collect2.c (write_c_file_stat): Handle backslash
21942 as right-hand directory separator.
21943 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21944 checking just for slash.
21945 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21946 instead of checking for trailing slash.
21947 * gcc.c (record_temp_file): Use filename_cmp instead
21948 of strcmp.
21949 (do_spec_1): Likewise.
21950 (replace_outfile_spec_function): Likewise.
21951 (is_directory): Use filename_ncmp instead of strncmp.
21952 (print_multilib_info): Likewise.
21953 * gcov.c (find_source): Use filename_cmp instead
21954 instead of strcmp.
21955 (make_gcov_file_name): Fix order of slash/backslash
21956 checks.
21957 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21958 (add_standard_paths): Likewise.
21959 * mips-tfile.c (saber_stop): Handle backslash.
21960 * prefix.c (update_path): Use filename_ncmp instead of
21961 strncmp.
21962 * profile.c (output_location): Use filename_cmp instead
21963 of strcmp.
21964 * read-md.c (handle_toplevel_file): Handle backslash.
21965 * tlink.c (frob_extension): Likewise.
21966 * tree-cfg.c (same_line_p): Use filename_cmp instead of
21967 strcmp.
21968 * tree-dump.c (dequeue_and_dump): Handle backslash.
21969 * tree.c (get_file_function_name): Likewise.
21970 * gengtype.c (read_input_list): Likewise.
21971 (get_file_realbasename): Likewise.
21972 (get_output_file_with_visibility): Use filename_cmp
21973 instead of strcmp.
21974
21975 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
21976
21977 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21978 case to VFPv1.
21979
21980 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
21981
21982 * fold-const.c (expr_location_or): New function.
21983 (fold_truth_not_expr): Call it.
21984
21985 2011-03-25 Jeff Law <law@redhat.com>
21986
21987 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21988 va_end.
21989 * c-family/c-common.c (def_fn_type): Likewise.
21990 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21991 * emit-rtl.c (gen_rtvec): Likewise.
21992 * lto/lto-lang.c (def_fn_type): Likewise.
21993
21994 2011-03-25 Richard Guenther <rguenther@suse.de>
21995
21996 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21997 also generate copies.
21998 (fini_copy_prop): Handle constant values properly.
21999
22000 2011-03-25 Jakub Jelinek <jakub@redhat.com>
22001
22002 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
22003 mode size instead of bitsize with DWARF2_ADDR_SIZE.
22004 (hash_loc_operands, compare_loc_operands): Handle
22005 DW_OP_GNU_entry_value.
22006
22007 2011-03-25 Kai Tietz <ktietz@redhat.com>
22008
22009 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
22010 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
22011 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
22012 comment and use macro TARGET_64BIT_MS_ABI instead.
22013 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
22014 and change default behavior for 32-bit MS_ABI.
22015 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
22016 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
22017 32-bit, too.
22018 (ix86_cfun_abi): Likewise.
22019 (ix86_maybe_switch_abi): Adjust comment.
22020 (init_cumulative_args): Check for bit-ness in MS_ABI case.
22021 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
22022 instead of checking for SYSV_ABI.
22023 (ix86_nsaved_sseregs): Likewise.
22024 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
22025 to 16 bytes.
22026 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
22027 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
22028 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
22029 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
22030 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
22031
22032 2011-03-25 Richard Guenther <rguenther@suse.de>
22033
22034 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
22035 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22036 (verify_gimple): Remove.
22037 * tree-cfg.c (verify_gimple_call): Merge verification
22038 from verify_stmts.
22039 (verify_gimple_phi): Merge verification from verify_stmts.
22040 (verify_gimple_label): New function.
22041 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
22042 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22043 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
22044 (verify_stmts): Rename to verify_gimple_in_cfg.
22045 (verify_gimple_in_cfg): New function.
22046 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
22047 * tree-ssa.c (verify_ssa): Likewise.
22048 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
22049
22050 2011-03-25 Richard Guenther <rguenther@suse.de>
22051
22052 * passes.c (init_optimization_passes): Add FRE pass after
22053 early SRA.
22054
22055 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
22056 Andrew Stubbs <ams@codesourcery.com>
22057
22058 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
22059 for Cortex-A8.
22060 (arm_movdi_vfp_cortexa8): New pattern.
22061 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
22062 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
22063 instructions when tuning for Cortex-A8. Set attribute "arch".
22064 * config/arm/arm.md: Move include arm-tune.md up a bit.
22065 (define_attr "arch"): Add "onlya8" and "nota8" values.
22066 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
22067
22068 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
22069
22070 PR bootstrap/48282
22071 Revert:
22072 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22073
22074 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22075 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22076 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22077 * passes.c (init_optimization_passes): Move
22078 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22079
22080 2011-03-25 Kai Tietz <ktietz@redhat.com>
22081
22082 * c-typeck.c (comptypes_internal): Replace target
22083 hook call of comp_type_attributes by version in tree.c file.
22084 * gimple.c (gimple_types_compatible_p_1): Likewise.
22085 * tree-ssa.c (useless_type_conversion_p): Likewise.
22086 * tree.c (build_type_attribute_qual_variant): Likewise.
22087 (attribute_value_equal): New static helper function.
22088 (comp_type_attributes): New function.
22089 (merge_attributes): Use attribute_value_equal for comparison.
22090 (attribute_list_contained): Likewise.
22091 * tree.h (comp_type_attributes): New prototype.
22092
22093 2011-03-25 Richard Guenther <rguenther@suse.de>
22094
22095 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
22096 of complex types at -O0.
22097 (verify_gimple_assign_binary): Likewise.
22098 (verify_gimple_assign_ternary): Likewise.
22099
22100 2011-03-24 Mark Wielaard <mjw@redhat.com>
22101
22102 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
22103 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
22104
22105 2011-03-24 Mark Wielaard <mjw@redhat.com>
22106
22107 PR debug/48041
22108 * dwarf2out.c (output_abbrev_section): Only write table when
22109 abbrev_die_table_in_use > 1.
22110
22111 2011-02-24 Richard Henderson <rth@redhat.com>
22112
22113 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
22114 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
22115 (alpha_expand_unaligned_load_words): Use extql.
22116 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
22117 (emit_insxl): Handle all modes for consistency.
22118
22119 2011-02-24 Richard Henderson <rth@redhat.com>
22120
22121 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
22122 (alpha_expand_unaligned_load): Likewise.
22123 (alpha_expand_unaligned_store): Likewise.
22124 (alpha_expand_unaligned_load_words): Likewise.
22125 (alpha_expand_unaligned_store_words): Likewise.
22126 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
22127 (alpha_split_lock_test_and_set_12): Likewise.
22128 (print_operand, alpha_fold_builtin_extxx): Likewise.
22129 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
22130 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
22131 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
22132 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
22133 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
22134 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
22135 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
22136 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
22137 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
22138 (extwl, extll, extql): Similarly.
22139 (inswh, inslh, insqh): Similarly.
22140 (mskbl, mskwl, mskll, mskql): Similarly.
22141 (mskwh, msklh, mskqh): Similarly.
22142
22143 2011-02-24 Richard Henderson <rth@redhat.com>
22144
22145 * config/alpha/alpha.md (attribute isa): Add er, ner.
22146 (attribute enabled): Handle them.
22147 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
22148
22149 2011-02-24 Richard Henderson <rth@redhat.com>
22150
22151 * config/alpha/alpha.md (attribute isa): Add vms.
22152 (attribute enabled): Handle it.
22153 (*movsf): Merge *movsf_{nofix,fix,nofp}.
22154 (*movdf): Merge *movdf_{nofix,fix,nofp}.
22155 (*movtf): Rename from *movtf_internal for consistency.
22156 (*movsi): Merge with *movsi_nt_vms.
22157 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
22158 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
22159 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
22160 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
22161
22162 2011-02-24 Richard Henderson <rth@redhat.com>
22163
22164 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
22165 (extendqisi2, extendhisi2): Likewise.
22166 (extendqidi2): Simplify BWX/non-BWX expansions.
22167 (extendhidi2): Similarly.
22168
22169 2011-02-24 Richard Henderson <rth@redhat.com>
22170
22171 * config/alpha/alpha.md (attribute isa): New.
22172 (attribute enabled): New.
22173 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
22174 (zero_extendqisi2, zero_extendqidi2): Similarly.
22175 (zero_extendhisi2, zero_extendhidi2): Similarly.
22176 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
22177
22178 2011-02-24 Richard Henderson <rth@redhat.com>
22179
22180 * config/alpha/predicates.md (input_operand): Revert last change;
22181 update comment to mention 32-bit VMS rather than Windows.
22182
22183 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22184
22185 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22186 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22187 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22188 * passes.c (init_optimization_passes): Move
22189 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22190
22191 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22192
22193 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
22194
22195 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22196
22197 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
22198 correctly.
22199
22200 2011-03-24 Jakub Jelinek <jakub@redhat.com>
22201
22202 PR debug/48204
22203 * simplify-rtx.c (simplify_const_unary_operation): Call
22204 real_convert when changing mode class with FLOAT_EXTEND.
22205
22206 2011-03-24 Nick Clifton <nickc@redhat.com>
22207
22208 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
22209 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22210 * config/rx/rx.c (rx_option_override): Set align_jumps,
22211 align_loops and align_labels if not set by the user.
22212 (rx_align_for_label): New function.
22213 (rx_max_skip_for_label): New function.
22214 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
22215 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
22216 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
22217 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
22218 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
22219
22220 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22221
22222 PR rtl-optimization/48263
22223 * optabs.c (expand_binop_directly): Reinstate convert_modes code
22224 and original commutative_p handling. Use maybe_gen_insn.
22225
22226 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22227
22228 * reload.c (find_reloads_subreg_address): Add address_reloaded
22229 parameter and return true there if the full address has been
22230 reloaded.
22231 (find_reloads_toplev): Pass address_reloaded flag.
22232 (find_reloads_address_1): Don't use address_reloaded parameter.
22233
22234 2011-03-24 Jeff Law <law@redhat.com>
22235
22236 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
22237 unused variable "ann".
22238 (remove_unused_locals): Likewise.
22239
22240 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
22241 statement.
22242
22243 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
22244 after it is freed.
22245
22246 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22247
22248 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22249 for invalid symbolic addresses.
22250 (s390_secondary_reload): Don't use s390_check_symref_alignment for
22251 larl operands.
22252
22253 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22254
22255 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22256 the argument in calls to fold_truth_not_expr.
22257
22258 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22259
22260 * tree.c (record_node_allocation_statistics): New function.
22261 (make_node_stat, copy_node_stat, build_string): Call it.
22262 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22263 (build1_stat, build_omp_clause): Likewise.
22264
22265 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22266
22267 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22268 last commit.
22269
22270 2011-03-24 Richard Guenther <rguenther@suse.de>
22271
22272 PR tree-optimization/48271
22273 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22274 blocks that still exist.
22275
22276 2011-03-24 Richard Guenther <rguenther@suse.de>
22277
22278 PR tree-optimization/48270
22279 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22280 not free datarefs before ddrs.
22281
22282 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22283
22284 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22285 from the address built for a reference with variable offset.
22286
22287 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22288
22289 PR target/48237
22290 * config/i386/i386.md (*movdf_internal_rex64): Do not split
22291 alternatives that can be handled with movq or movabsq insn.
22292 (*movdf_internal): Disable for !TARGET_64BIT.
22293 (*movdf_internal_nointeger): Ditto.
22294 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22295
22296 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22297
22298 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22299 (FUNCTION_ARG_ADVANCE): Likewise.
22300 * tm.texi.in: Change references to them to hook references.
22301 * tm.texi: Regenerate.
22302 * targhooks.c (default_function_arg): Eliminate check for target macro.
22303 (default_function_incoming_arg): Likewise.
22304 (default_function_arg_advance): Likewise.
22305 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22306 (function_arg_advance): Likewise.
22307 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22308
22309 2011-03-24 Richard Guenther <rguenther@suse.de>
22310
22311 PR middle-end/48269
22312 * tree-object-size.c (addr_object_size): Do not double-account
22313 for MEM_REF offsets.
22314
22315 2011-03-24 Diego Novillo <dnovillo@google.com>
22316
22317 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22318 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22319 (lto_input_data_block): Move from lto-opts.c. Make extern.
22320 Update all users.
22321 (lto_input_string): Rename from input_string. Make extern.
22322 Update all users.
22323 * lto-streamer-out.c (lto_output_string_with_length): Rename from
22324 output_string_with_length.
22325 Output 0 to indicate a non-NULL string. Update all callers to
22326 not emit 0.
22327 (lto_output_string): Rename from output_string. Make extern.
22328 Update all users.
22329 (lto_output_decl_state_streams): Make extern.
22330 (lto_output_decl_state_refs): Make extern.
22331 * lto-streamer.h (lto_input_string): Declare.
22332 (lto_input_data_block): Declare.
22333 (lto_output_string): Declare.
22334 (lto_output_string_with_length): Declare.
22335 (lto_output_decl_state_streams): Declare.
22336 (lto_output_decl_state_refs): Declare.
22337
22338 2011-03-24 Richard Guenther <rguenther@suse.de>
22339
22340 PR tree-optimization/46562
22341 * tree.c (build_invariant_address): New function.
22342 * tree.h (build_invariant_address): Declare.
22343 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
22344 a renamed function moved ...
22345 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
22346 Take valueization callback parameter.
22347 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
22348 * gimple-fold.h: New file.
22349 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
22350 (ccp_fold, fold_const_aggregate_ref,
22351 fold_ctor_reference, fold_nonarray_ctor_reference,
22352 fold_array_ctor_reference, fold_string_cst_ctor_reference,
22353 get_base_constructor): Move ...
22354 * gimple-fold.c: ... here.
22355 (gimple_fold_stmt_to_constant_1): New function
22356 split out from ccp_fold. Take a valueization callback parameter.
22357 Valueize all operands.
22358 (gimple_fold_stmt_to_constant): New wrapper function.
22359 (fold_const_aggregate_ref_1): New function split out from
22360 fold_const_aggregate_ref. Take a valueization callback parameter.
22361 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
22362 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
22363 invariant POINTER_PLUS_EXPRs to invariant form.
22364 (vn_valueize): New function.
22365 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
22366 * tree-vrp.c (vrp_valueize): New function.
22367 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
22368 to fold statements to constants.
22369 * tree-ssa-pre.c (eliminate): Properly guard propagation of
22370 function declarations.
22371 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
22372 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
22373
22374 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22375
22376 * config/h8300/predicates.md (jump_address_operand): Fix register
22377 mode check.
22378
22379 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
22380
22381 * doc/invoke.texi (max-stores-to-sink): Document.
22382 * params.h (MAX_STORES_TO_SINK): Define.
22383 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
22384 if either vectorization or if-conversion is disabled.
22385 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
22386 tree-vect-data-refs.c vect_equal_offsets.
22387 (dr_equal_offsets_p): New function.
22388 (find_data_references_in_bb): Remove static.
22389 * tree-data-ref.h (find_data_references_in_bb): Declare.
22390 (dr_equal_offsets_p): Likewise.
22391 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
22392 (vect_drs_dependent_in_basic_block): Update calls to
22393 vect_equal_offsets.
22394 (vect_check_interleaving): Likewise.
22395 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
22396 (cond_if_else_store_replacement): Rename to...
22397 (cond_if_else_store_replacement_1): ... this. Change arguments and
22398 documentation.
22399 (cond_if_else_store_replacement): New function.
22400 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
22401 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
22402
22403 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
22404
22405 PR target/46934
22406 * config/arm/arm.md (casesi): Use the gen_int_mode() function
22407 to subtract lower bound instead of GEN_INT().
22408
22409 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
22410
22411 PR other/48179
22412 PR other/48221
22413 PR other/48234
22414 * doc/extend.texi (Alignment): Move section to match order in TOC.
22415 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
22416 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
22417
22418 2011-03-23 Jeff Law <law@redhat.com>
22419
22420 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
22421 before removing the edge.
22422
22423 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
22424 it may have been freed by redirect_branch_edge or
22425 redirect_edge_succ_nodup.
22426
22427 2011-03-23 Richard Guenther <rguenther@suse.de>
22428
22429 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
22430 (check_va_list_escapes): Likewise.
22431 (check_all_va_list_escapes): Likewise.
22432
22433 2011-03-23 Richard Guenther <rguenther@suse.de>
22434
22435 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
22436 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
22437 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
22438 (alias.o): Likewise.
22439 (ipa-type-escape.o): Remove.
22440 (ipa-struct-reorg.o): Likewise.
22441 (GTFILES): Remove ipa-struct-reorg.c.
22442 * alias.c: Do not include ipa-type-escape.h.
22443 * tree-ssa-alias.c: Likewise.
22444 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
22445 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
22446 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
22447 and ipa-type-escape passes.
22448 * tree-pass.h (pass_ipa_type_escape): Remove.
22449 (pass_ipa_struct_reorg): Likewise.
22450 * ipa-struct-reorg.h: Remove.
22451 * ipa-struct-reorg.c: Likewise.
22452 * ipa-type-escape.h: Likewise.
22453 * ipa-type-escape.c: Likewise.
22454 * doc/invoke.texi (-fipa-struct-reorg): Remove.
22455 (--param struct-reorg-cold-struct-ratio): Likewise.
22456 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22457 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22458 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
22459
22460 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22461
22462 * config/s390/2084.md: Enable all insn reservations also for z9_ec
22463 cpu attribute value.
22464 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
22465 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
22466 * config/s390/s390.c (processor_flags_table): New constant array.
22467 (s390_handle_arch_option): Remove.
22468 (s390_handle_option): Remove s390_handle_arch_option invocations
22469 and OPT_mwarn_framesize_ handling.
22470 (s390_option_override): Remove s390_handle_arch_option invocation.
22471 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
22472 warnings.
22473 * config/s390/s390.md (cpu attribute): Add z9_ec value.
22474 * config/s390/s390.opt (s390_tune, s390_arch)
22475 (march=): Replace s390_arch_option enum and values with
22476 processor_type. Set variable name to s390_arch. Set
22477 initialization value.
22478 (mtune=): Replace s390_arch_option with processor_type. Set
22479 variable name to s390_tune. Set initialization value.
22480
22481 2011-03-23 Julian Brown <julian@codesourcery.com>
22482
22483 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
22484 accesses which are not naturally aligned.
22485
22486 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22487
22488 PR target/47553
22489 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
22490
22491 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22492
22493 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
22494 parameter from "int" to "enum insn_code".
22495 (expand_operand_type): New enum.
22496 (expand_operand): New structure.
22497 (create_expand_operand): New function.
22498 (create_fixed_operand, create_output_operand): Likewise
22499 (create_input_operand, create_convert_operand_to): Likewise.
22500 (create_convert_operand_from, create_address_operand): Likewise.
22501 (create_integer_operand): Likewise.
22502 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
22503 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22504 (expand_insn, expand_jump_insn): Likewise.
22505 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
22506 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
22507 (expand_movstr, expand_builtin___clear_cache): Likewise.
22508 (expand_builtin_lock_release): Likewise.
22509 * explow.c (allocate_dynamic_stack_space): Likewise.
22510 (probe_stack_range): Likewise. Allow check_stack to FAIL,
22511 and use the default handling in that case.
22512 * expmed.c (check_predicate_volatile_ok): Delete.
22513 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
22514 (emit_cstore): Likewise.
22515 * expr.c (emit_block_move_via_movmem): Likewise.
22516 (set_storage_via_setmem, expand_assignment): Likewise.
22517 (emit_storent_insn, try_casesi): Likewise.
22518 (emit_single_push_insn): Likewise. Allow the expansion to fail.
22519 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
22520 (expand_vec_shift_expr, expand_binop_directly): Likewise.
22521 (expand_twoval_unop, expand_twoval_binop): Likewise.
22522 (expand_unop_direct, emit_indirect_jump): Likewise.
22523 (emit_conditional_move, vector_compare_rtx): Likewise.
22524 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
22525 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
22526 (expand_sync_lock_test_and_set): Likewise.
22527 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
22528 (emit_unop_insn): Likewise.
22529 (expand_copysign_absneg): Change icode to an insn_code.
22530 (create_convert_operand_from_type): New function.
22531 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
22532 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22533 (expand_insn, expand_jump_insn): Likewise.
22534 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
22535 than const_int_operand for operand 2.
22536
22537 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22538
22539 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
22540 if possible.
22541
22542 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22543
22544 * emit-rtl.c (emit_pattern_before_noloc): New function.
22545 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
22546 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
22547 (emit_pattern_after_noloc): New function.
22548 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
22549 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
22550
22551 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22552
22553 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
22554 (__ffsDI2): Likewise.
22555
22556 2011-03-22 Richard Henderson <rth@redhat.com>
22557
22558 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22559 of !TARGET_ABI_OPEN_VMS.
22560 (alpha_trampoline_init, alpha_start_function): Likewise.
22561 (alpha_expand_epilogue, alpha_file_start): Likewise.
22562 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22563 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22564 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22565 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22566 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22567
22568 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22569
22570 * config/s390/s390-opts.h: New.
22571 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22572 s390_arch_flags, s390_warn_framesize, s390_stack_size,
22573 s390_stack_guard): Remove.
22574 (s390_handle_arch_option): Return void. Take enum
22575 s390_arch_option value instead of string and searching array.
22576 (s390_handle_option): Don't assert that global structures are in
22577 use. Access variables via opts pointer. Use error_at. Don't use
22578 sscanf for -mstack-guard= or -mstack-size=. Update call to
22579 s390_handle_arch_option.
22580 (s390_option_override): Update call to s390_handle_arch_option.
22581 (s390_emit_prologue): Use %d format for s390_stack_size in
22582 diagnostic. Use %wd for HOST_WIDE_INT.
22583 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22584 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22585 * config/s390/s390.opt (config/s390/s390-opts.h): New
22586 HeaderInclude entry.
22587 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22588 s390_arch_flags, s390_warn_framesize): New Variable entries.
22589 (s390_arch_option): New Enum and EnumValue entries.
22590 (march=): Use Enum instead of Var.
22591 (mstack-guard=, mstack-size=): Use UInteger and Var.
22592 (mtune=): Use Enum.
22593
22594 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22595
22596 * config/score/score.c (score_handle_option): Don't assert that
22597 global structures are in use. Access target_flags via opts
22598 pointer. Use value of -march= option to determine target_flags
22599 settings.
22600 * config/score/score.opt (march=): Use Enum.
22601 (score_arch): New Enum and EnumValue entries.
22602
22603 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22604
22605 * config/mep/mep.c (option_mtiny_specified): Remove.
22606 (mep_option_override): Move register handling for -mivc2 from
22607 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
22608 instead of option_mtiny_specified.
22609 (mep_handle_option): Access target_flags via opts pointer. Don't
22610 assert that global structures are in use. Defer part of -mivc2
22611 handling and move it to mep_option_override.
22612 * config/mep/mep.opt (IVC2): New Mask entry.
22613 (mivc2): Use Var and Defer instead of Mask.
22614
22615 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22616
22617 * config/v850/v850-opts.h: New.
22618 * config/v850/v850.c (small_memory): Replace with
22619 small_memory_physical_max array. Make that array static const.
22620 (v850_handle_memory_option): Take integer value of argument. Take
22621 gcc_options pointer, option text and location. Return void.
22622 Update for changes to small memory structures.
22623 (v850_handle_option): Access target_flags via opts pointer. Don't
22624 assert that global structures are in use. Update calls to
22625 v850_handle_memory_option.
22626 (v850_encode_data_area): Update references to small memory settings.
22627 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22628 (enum small_memory_type): Move to v850-opts.h.
22629 * config/v850/v850.opt (config/v850/v850-opts.h): New
22630 HeaderInclude entry.
22631 (small_memory_max): New Variable entry.
22632 (msda): Replace by pair of options msda= and msda-. Use UInteger.
22633 (mtda, mzda): Likewise.
22634
22635 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22636
22637 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22638 pointer. Don't assert that global structures are in use.
22639
22640 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22641
22642 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22643 via opts pointer. Don't assert that global structures are in use.
22644
22645 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22646
22647 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22648 (munix=93): Use Var.
22649 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22650 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22651 * config/pa/pa-opts.h: New.
22652 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22653 (pa_handle_option): Don't assert that global structures are in
22654 use. Access target_flags via opts pointer. Don't handle
22655 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22656 OPT_munix_98 here.
22657 (pa_option_override): Handle deferred OPT_mfixed_range_.
22658
22659 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22660
22661 * config/mn10300/mn10300-opts.h: New.
22662 * config/mn10300/mn10300.c (mn10300_processor,
22663 mn10300_tune_string): Remove.
22664 (mn10300_handle_option): Don't assert that global structures are
22665 in use. Access mn10300_processor via opts pointer. Don't handle
22666 OPT_mtune_ here.
22667 * config/mn10300/mn10300.h (enum processor_type): Move to
22668 mn10300-opts.h.
22669 (mn10300_processor): Remove.
22670 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22671 HeaderInclude entry.
22672 (mn10300_processor): New Variable entry.
22673 (mtune=): Use Var.
22674
22675 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22676
22677 * config/microblaze/microblaze.c: Don't include opts.h.
22678 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22679 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22680 (mno-clearbss): Use Var and Warn.
22681
22682 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22683
22684 * config/m32r/m32r-opts.h: New.
22685 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22686 (m32r_handle_option): Don't assert that global structures are in
22687 use. Access target_flags and m32r_cache_flush_func via opts
22688 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
22689 OPT_mno_flush_trap here.
22690 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22691 include of m32r-opts.h.
22692 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22693 HeaderInclude entry.
22694 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22695 (mmodel=): Use Enum and Var.
22696 (m32r_model): New Enum and EnumValue entries.
22697 (mno-flush-trap): Use Var.
22698 (msdata=): Use Enum and Var.
22699 (m32r_sdata): New Enum and EnumValue entries.
22700
22701 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22702
22703 * config/m32c/m32c.c: Don't include opts.h.
22704 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22705 m32c_handle_option): Remove.
22706 (m32c_option_override): Check global_options_set.x_target_memregs
22707 instead of target_memregs_set.
22708 * config/m32c/m32c.h (target_memregs): Remove.
22709 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22710 variable.
22711
22712 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22713
22714 * config/iq2000/iq2000-opts.h: New.
22715 * config/iq2000/iq2000.c: Don't include opts.h.
22716 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22717 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22718 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22719 HeaderInclude entry.
22720 (iq2000_tune): New Variable entry.
22721 (march=): Add comment. Use Enum.
22722 (iq2000_arch): New Enum and EnumValue entries.
22723 (mcpu=): Use Enum and Var.
22724 (iq2000_tune): New Enum and EnumValue entries.
22725
22726 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22727
22728 * config/ia64/ia64-opts.h: New.
22729 * config/ia64/ia64.c (ia64_tune): Remove.
22730 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22731 here. Use error_at.
22732 (ia64_option_override): Handle deferred OPT_mfixed_range_.
22733 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22734 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22735 HeaderInclude entry.
22736 (ia64_tune): New Variable entry.
22737 (mfixed-range=): Use Defer and Var.
22738 (mtune=): Use Enum and Var.
22739 (ia64_tune): New Enum and EnumValue entries.
22740
22741 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22742
22743 * config/frv/frv-opts.h: New.
22744 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22745 frv-opts.h.
22746 (frv_cpu_type): Remove.
22747 * config/frv/frv.c: Don't include opts.h.
22748 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22749 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22750 (frv_cpu_type): New Variable entry.
22751 (frv_cpu): New Enum and EnumValue entries.
22752
22753 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22754
22755 * config/cris/cris.c (cris_handle_option): Access target_flags via
22756 opts pointer. Don't assert that global structures are in use.
22757 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22758 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22759
22760 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22761
22762 * config/bfin/bfin-opts.h: New.
22763 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22764 bfin_si_revision, bfin_workarounds): Remove.
22765 (bfin_cpus): Make static const.
22766 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22767 not bfin_lib_id_given.
22768 (bfin_handle_option): Don't set bfin_lib_id_given. Access
22769 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22770 pointer. Use error_at. Don't assert that global structures are in use.
22771 * config/bfin/bfin.h: Include bfin-opts.h.
22772 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22773 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22774 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22775 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22776 entries.
22777
22778 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22779
22780 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
22781 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
22782 or -msoft-float here.
22783 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
22784 -msoft-float and -mhard-float.
22785 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
22786 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22787 msoft-float.
22788 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
22789 -msoft-float.
22790 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
22791 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
22792 not mhard-float.
22793 (LIBGCC_SPEC): Don't handle -msoft-float.
22794 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
22795 -mhard-float.
22796 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22797 msoft-float.
22798 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
22799 -mfloat-abi=*, not -msoft-float and -mhard-float.
22800 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
22801 -msoft-float.
22802 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
22803 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
22804 mhard-float and msoft-float.
22805 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
22806 mfloat-abi=soft in comments, not mhard-float and msoft-float.
22807 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22808 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
22809 mhard-float.
22810 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
22811 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
22812 msoft-float.
22813 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
22814 not mhard-float.
22815 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
22816 not msoft-float.
22817
22818 2011-03-22 Richard Henderson <rth@redhat.com>
22819
22820 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
22821 TARGET_ABI_WINDOWS_NT.
22822 (alpha_output_function_end_prologue): Likewise.
22823 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
22824 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22825 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
22826 (trap, *movsi_nt_vms): Likewise.
22827 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
22828 (*tablejump_osf_nt_internal): Remove.
22829 * config/alpha/predicates.md (input_operand): Only test Pmode.
22830
22831 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22832
22833 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
22834 via opts pointer. Use error_at. Don't assert that global
22835 structures are in use.
22836
22837 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22838
22839 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
22840 (ix86_handle_option): Access ix86_isa_flags and
22841 ix86_isa_flags_explicit via opts pointer. Don't assert that
22842 global structures are in use.
22843 (ix86_function_specific_save, ix86_function_specific_restore):
22844 Update ix86_isa_flags_explicit field name.
22845 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22846 (ix86_isa_flags_explicit): Rename TargetSave entry to
22847 x_ix86_isa_flags_explicit.
22848
22849 2011-03-22 Richard Henderson <rth@redhat.com>
22850
22851 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22852 (alpha_option_override, direct_return): Likewise.
22853 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22854 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22855 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22856 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22857 (alpha_expand_epilogue, alpha_end_function): Likewise.
22858 (alpha_init_libfuncs): Likewise.
22859 (struct machine_function): Remove unicosmk members.
22860 (print_operand) ['t']: Remove.
22861 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22862 unicosmk_output_module_name, unicosmk_output_common,
22863 current_section_align, unicosmk_output_text_section_asm_op,
22864 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22865 unicosmk_section_type_flags, unicosmk_unique_section,
22866 unicosmk_asm_named_section, unicosmk_insert_attributes,
22867 unicosmk_output_align, unicosmk_defer_case_vector,
22868 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22869 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22870 unicosmk_output_ssib, unicosmk_add_call_info_word,
22871 unicosmk_extern_head, unicosmk_output_default_externs,
22872 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22873 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22874 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22875 * config/alpha/alpha-protos.h: Update.
22876 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22877 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22878 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22879 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22880 (*mulsi_se, mulvsi3): Likewise.
22881 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22882 (*divmodsi_internal, call, call_value, realign): Likewise.
22883 (moddi3, umoddi3): Likewise; remove duplicate expander.
22884 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22885 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22886 (*movdi_nofix): Remove r/U alternative.
22887 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22888 * config/alpha/constraints.md ("U"): Remove.
22889 * config/alpha/predicates.md (call_operand"): Don't test
22890 TARGET_ABI_UNICOSMK.
22891
22892 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22893
22894 * target.def (handle_option): Take gcc_options and
22895 cl_decoded_option pointers and location_t.
22896 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22897 * doc/tm.texi: Regenerate.
22898 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22899 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22900 * lto-opts.c (lto_reissue_options): Generate option structure for
22901 targetm.handle_option call.
22902 * opts.c (target_handle_option): Update call to
22903 targetm.handle_option. Remove assertions about values now passed
22904 down to hook.
22905 * targhooks.c (default_target_handle_option): New.
22906 * targhooks.h (default_target_handle_option): Declare.
22907 * config/alpha/alpha.c: Include opts.h.
22908 (alpha_handle_option): Update to new hook interface.
22909 * config/arm/arm.c: Include opts.h.
22910 (arm_handle_option): Update to new hook interface.
22911 * config/arm/t-arm (arm.o): Update dependencies.
22912 * config/bfin/bfin.c: Include opts.h.
22913 (bfin_handle_option): Update to new hook interface.
22914 * config/cris/cris.c: Include opts.h.
22915 (cris_handle_option): Update to new hook interface.
22916 * config/frv/frv.c: Include opts.h.
22917 (frv_handle_option): Update to new hook interface.
22918 * config/i386/i386.c: Include opts.h.
22919 (ix86_handle_option): Update to new hook interface.
22920 (ix86_valid_target_attribute_inner_p): Generate option structure
22921 for call to ix86_handle_option.
22922 * config/i386/t-i386 (i386.o): Update dependencies.
22923 * config/ia64/ia64.c: Include opts.h.
22924 (ia64_handle_option): Update to new hook interface.
22925 * config/ia64/t-ia64 (ia64.o): Update dependencies.
22926 * config/iq2000/iq2000.c: Include opts.h.
22927 (iq2000_handle_option): Update to new hook interface.
22928 * config/m32c/m32c.c: Include opts.h.
22929 (m32c_handle_option): Update to new hook interface.
22930 * config/m32r/m32r.c: Include opts.h.
22931 (m32r_handle_option): Update to new hook interface.
22932 * config/m68k/m68k.c: Include opts.h.
22933 (m68k_handle_option): Update to new hook interface.
22934 * config/mep/mep.c: Include opts.h.
22935 (mep_handle_option): Update to new hook interface.
22936 * config/microblaze/microblaze.c: Include opts.h.
22937 (microblaze_handle_option): Update to new hook interface.
22938 * config/mips/mips.c: Include opts.h.
22939 (mips_handle_option): Update to new hook interface.
22940 * config/mn10300/mn10300.c: Include opts.h.
22941 (mn10300_handle_option): Update to new hook interface.
22942 * config/pa/pa.c: Include opts.h.
22943 (pa_handle_option): Update to new hook interface.
22944 * config/pdp11/pdp11.c: Include opts.h.
22945 (pdp11_handle_option): Update to new hook interface.
22946 * config/rs6000/rs6000.c: Include opts.h.
22947 (rs6000_handle_option): Update to new hook interface.
22948 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22949 * config/rx/rx.c: Include opts.h.
22950 (rx_handle_option): Update to new hook interface.
22951 * config/s390/s390.c: Include opts.h.
22952 (s390_handle_option): Update to new hook interface.
22953 * config/score/score.c: Include opts.h.
22954 (score_handle_option): Update to new hook interface.
22955 * config/sh/sh.c: Include opts.h.
22956 (sh_handle_option): Update to new hook interface.
22957 * config/sparc/sparc.c: Include opts.h.
22958 (sparc_handle_option): Update to new hook interface.
22959 * config/v850/v850.c: Include opts.h.
22960 (v850_handle_option): Update to new hook interface.
22961
22962 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22963
22964 * gcc.c (driver_unknown_option_callback): Only permit and save
22965 unknown -Wno- options.
22966 (driver_wrong_lang_callback): Save options directly instead of via
22967 driver_unknown_option_callback.
22968
22969 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
22970
22971 * combine.c (simplify_set): Try harder to find the best CC mode when
22972 simplifying a nested COMPARE on the RHS.
22973
22974 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22975
22976 * config/alpha/gnu.h: Remove.
22977 * config/arc: Remove directory.
22978 * config/arm/netbsd.h: Remove.
22979 * config/arm/t-pe: Remove.
22980 * config/crx: Remove directory.
22981 * config/i386/netbsd.h: Remove.
22982 * config/m68hc11: Remove directory.
22983 * config/m68k/uclinux-oldabi.h: Remove.
22984 * config/mcore/mcore-pe.h: Remove.
22985 * config/mcore/t-mcore-pe: Remove.
22986 * config/netbsd-aout.h: Remove.
22987 * config/rs6000/gnu.h: Remove.
22988 * config/sh/sh-symbian.h: Remove.
22989 * config/sh/symbian-base.c: Remove.
22990 * config/sh/symbian-c.c: Remove.
22991 * config/sh/symbian-cxx.c: Remove.
22992 * config/sh/symbian-post.h: Remove.
22993 * config/sh/symbian-pre.h: Remove.
22994 * config/sh/t-symbian: Remove.
22995 * config/svr3.h: Remove.
22996 * config/vax/netbsd.h: Remove.
22997 * config.build: Don't handle i[34567]86-*-pe.
22998 * config.gcc: Remove handling of deprecations for most deprecated
22999 targets.
23000 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
23001 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
23002 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
23003 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
23004 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
23005 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
23006 Remove cases.
23007 * config.host: Don't handle i[34567]86-*-pe.
23008 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
23009 (ASM_SPEC32): Don't handle -mcall-gnu.
23010 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
23011 -mcall-gnu.
23012 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
23013 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
23014 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23015 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
23016 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
23017 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
23018 conditional on SYMBIAN.
23019 * configure.ac: Don't handle powerpc*-*-gnu*.
23020 * configure: Regenerate.
23021 * doc/extend.texi (interrupt attribute): Don't mention CRX.
23022 * doc/install-old.texi (m6811, m6812): Don't mention.
23023 * doc/install.texi (arc-*-elf*): Don't document multilib option.
23024 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
23025 (m68k-uclinuxoldabi): Don't mention.
23026 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
23027 Remove.
23028 (-mcall-gnu): Remove.
23029 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
23030 families): Remove constraint documentation.
23031
23032 2011-03-22 Marius Strobl <marius@FreeBSD.org>
23033
23034 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
23035 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
23036 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
23037
23038 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23039
23040 PR target/48226
23041 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
23042 vector when peeking at the next token for vector, don't expand the
23043 keywords.
23044
23045 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
23046
23047 * config/avr/avr-protos.h (expand_epilogue): Change prototype
23048 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
23049 * config/avr/avr.c (init_cumulative_args)
23050 (avr_function_arg_advance): Use it.
23051 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
23052 sibcall epilogues.
23053 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
23054 (avr_function_ok_for_sibcall): ...this new function.
23055 (avr_lookup_function_attribute1): New static Function.
23056 (avr_naked_function_p, interrupt_function_p)
23057 (signal_function_p, avr_OS_task_function_p)
23058 (avr_OS_main_function_p): Use it.
23059 * config/avr/avr.md ("sibcall", "sibcall_value")
23060 ("sibcall_epilogue"): New expander.
23061 ("*call_insn", "*call_value_insn"): New insn.
23062 ("call_insn", "call_value_insn"): Remove
23063 ("call", "call_value", "epilogue"): Change expander to handle
23064 sibling calls.
23065
23066 2011-03-21 Nick Clifton <nickc@redhat.com>
23067
23068 * doc/invoke.texi (Overall Options): Move closing brace to end of
23069 options list.
23070 (Optimization Options): Add missing @gol.
23071 (Directory Options): Likewise.
23072 (i386 and x86-64 Options): Likewise.
23073 (RS6000 and PowerPC Options): Likewise.
23074 (i386 and x86-64 Windows Options): Likewise.
23075 (V850 Options): Add text missing from descriptions.
23076
23077 2011-03-22 Richard Henderson <rth@redhat.com>
23078
23079 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
23080 (avr_incoming_return_addr_rtx): New.
23081 (emit_push_byte): New.
23082 (expand_prologue): Use it. Remove incorrect dwarf annotation for
23083 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
23084 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
23085 (emit_pop_byte): New.
23086 (expand_epilogue): Use it. Pop frame pointer by bytes.
23087 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
23088 (INCOMING_RETURN_ADDR_RTX): New.
23089 (INCOMING_FRAME_SP_OFFSET): New.
23090 (ARG_POINTER_CFA_OFFSET): New.
23091 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
23092 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
23093 (pophi): Remove.
23094
23095 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
23096
23097 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23098
23099 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23100 (FUNCTION_ARG_ADVANCE): Likewise.
23101 * tm.texi.in: Change references to them to hook references.
23102 * tm.texi: Regenerate.
23103 * targhooks.c (default_function_arg): Eliminate check for target
23104 macro.
23105 (default_function_incoming_arg): Likewise.
23106 (default_function_arg_advance): Likewise.
23107 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23108 (function_arg_advance): Likewise.
23109 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23110
23111 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23112
23113 * tree.c (build_call_1): New function.
23114 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
23115
23116 2011-03-22 Richard Guenther <rguenther@suse.de>
23117
23118 PR tree-optimization/48228
23119 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
23120 for single-arg PHIs.
23121
23122 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
23123
23124 PR rtl-optimization/48143
23125 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
23126 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
23127 sse2_cvtps2pd): Likewise.
23128
23129 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23130
23131 * recog.c (canonicalize_change_group): Use validate_unshare_change.
23132
23133 2011-03-22 Richard Guenther <rguenther@suse.de>
23134
23135 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
23136 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
23137 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
23138 and REALIGN_LOAD_EXPR.
23139 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
23140 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
23141 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
23142 DOT_PROD_EXPR case ...
23143 (expand_expr_real_2): ... here.
23144 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
23145 and REALIGN_LOAD_EXPR.
23146 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
23147 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
23148 (vect_create_epilog_for_reduction): Likewise.
23149 (vectorizable_reduction): Likewise.
23150 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
23151 * tree-vect-stmts.c (vectorizable_load): Likewise.
23152
23153 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
23154
23155 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
23156
23157 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23158
23159 * config/s390/s390.c (s390_delegitimize_address): Fix offset
23160 handling for PLTOFF/GOTOFF.
23161
23162 2011-03-22 Nick Clifton <nickc@redhat.com>
23163
23164 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
23165 trailing backslash from the end of the macro definition.
23166
23167 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23168
23169 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
23170 and PLT unspecs.
23171
23172 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
23173
23174 * expr.h (prepare_operand): Move to...
23175 * optabs.h (prepare_operand): ...here and change the insn code
23176 parameter from "int" to "enum insn_code".
23177 (insn_operand_matches): Declare.
23178 * expr.c (init_expr_target): Use insn_operand_matches.
23179 (compress_float_constant): Likewise.
23180 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
23181 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
23182 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
23183 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
23184 Likewise.
23185 (gen_cond_trap): Likewise.
23186 (prepare_operand): Likewise. Change icode to an insn_code.
23187 (insn_operand_matches): New function.
23188 * reload.c (find_reloads_address_1): Use insn_operand_matches.
23189 * reload1.c (gen_reload): Likewise.
23190 * targhooks.c (default_secondary_reload): Likewise.
23191
23192 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23193
23194 * config/alpha/alpha.md (unspec): New define_c_enum.
23195 (unspecv): Ditto.
23196
23197 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23198
23199 PR debug/48214
23200 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
23201 between a call and its CALL_ARG_LOCATION note.
23202
23203 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
23204
23205 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
23206
23207 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23208
23209 PR c/42544
23210 PR c/48197
23211 * c-common.c (shorten_compare): If primopN is first sign-extended
23212 to opN and then zero-extended to result type, set primopN to opN.
23213
23214 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
23215
23216 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
23217 for barrier handlers.
23218
23219 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23220
23221 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
23222 UNSPEC constants to be in the unspec enumeration, and redefine
23223 all UNSPECV constants to be in the unspecv enumeration, so that
23224 dumps print which unspec/unspec_volatile this is.
23225 * config/rs6000/vector.md (UNSPEC_*): Ditto.
23226 * config/rs6000/paired.md (UNSPEC_*): Ditto.
23227 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
23228 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
23229 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
23230
23231 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
23232 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
23233 UNSPECV_LWSYNC, since these are used as unspec_volatile.
23234 * config/rs6000/sync.md (isync, lwsync): Ditto.
23235
23236 2011-03-21 Richard Guenther <rguenther@suse.de>
23237
23238 * params.def (lto-min-partition): Fix typo.
23239
23240 2011-03-21 Richard Guenther <rguenther@suse.de>
23241
23242 PR c/47939
23243 * c-decl.c (grokdeclarator): Drop to the main variant only
23244 for array types. Drop flag_gen_aux_info check.
23245
23246 2011-03-21 Richard Guenther <rguenther@suse.de>
23247
23248 PR translation/47911
23249 * params.def (lto-partitions): Fix typo.
23250 (lto-min-partition): Fix wording.
23251
23252 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
23253
23254 * config/rs6000/t-freebsd: Remove duplication from file.
23255
23256 2011-03-21 Richard Guenther <rguenther@suse.de>
23257
23258 PR middle-end/47661
23259 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23260
23261 2011-03-21 Richard Guenther <rguenther@suse.de>
23262
23263 PR lto/48210
23264 * params.def (lto-partitions): Require at least 1 partition.
23265
23266 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23267
23268 * gthr-solaris.h: Remove.
23269 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23270 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23271 (LIB_SPEC): Likewise.
23272 * config/sol2.opt (threads): Remove.
23273 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23274 (sparc*-*-solaris2*): Likewise.
23275 * configure.ac (enable_threads): Enable solaris support.
23276 * configure: Regenerate.
23277 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23278 * doc/install.texi (Configuration, --enable-threads=lib): Remove
23279 solaris.
23280
23281 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23282
23283 * config.gcc: Obsolete *-*-solaris2.8*.
23284 * doc/install.texi (Specific, *-*-solaris2*): Document it.
23285
23286 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23287
23288 PR bootstrap/48135
23289 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23290 reference. Solaris 8 perl works.
23291
23292 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23293
23294 PR bootstrap/48135
23295 * doc/install.texi (Prerequisites): Move jar etc. up.
23296 Explain support library version requirements.
23297
23298 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23299
23300 PR bootstrap/48135
23301 * doc/install.texi (Prerequisites): Move Perl to build
23302 requirements. Always necessary on Solaris 2 with Sun ld.
23303
23304 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23305
23306 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23307 binutils 2.21.
23308 (Specific, i?86-*-solaris2.[89]): Likewise.
23309 (Specific, i?86-*-solaris2.10): Likewise.
23310 (Specific, mips-sgi-irix6): Likewise.
23311 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23312 Update for binutils 2.21.
23313
23314 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23315
23316 * configure.ac (gcc_cv_lto_plugin): Fix typo.
23317 Allow -fuse-linker-plugin for non-default plugin linker.
23318 * configure: Regenerate.
23319
23320 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
23321
23322 PR bootstrap/48167
23323 * gengtype.c (files_rules): Added rule for cp/parser.h.
23324
23325 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23326
23327 PR target/48213
23328 * config/s390/s390.c (s390_delegitimize_address): Don't call
23329 lowpart_subreg if orig_x has BLKmode.
23330
23331 2011-03-21 Kai Tietz <ktietz@redhat.com>
23332
23333 PR target/12171
23334 * doc/plugins.texi: Adjust documentation for plugin register_callback.
23335 * tree.h (attribute_spec): Add new member affects_type_identity.
23336 * attribs.c (empty_attribute_table): Adjust attribute_spec
23337 initializers.
23338 * config/alpha/alpha.c: Likewise.
23339 * config/arc/arc.c: Likewise.
23340 * config/arm/arm.c: Likewise.
23341 * config/avr/avr.c: Likewise.
23342 * config/bfin/bfin.c: Likewise.
23343 * config/crx/crx.c: Likewise.
23344 * config/darwin.h: Likewise.
23345 * config/h8300/h8300.c: Likewise.
23346 * config/i386/cygming.h: Likewise.
23347 * config/i386/i386.c: Likewise.
23348 * config/ia64/ia64.c: Likewise.
23349 * config/m32c/m32c.c: Likewise.
23350 * config/m32r/m32r.c: Likewise.
23351 * config/m68hc11/m68hc11.c: Likewise.
23352 * config/m68k/m68k.c: Likewise.
23353 * config/mcore/mcore.c: Likewise.
23354 * config/mep/mep.c: Likewise.
23355 * config/microblaze/microblaze.c: Likewise.
23356 * config/mips/mips.c: Likewise.
23357 * config/rs6000/rs6000.c: Likewise.
23358 * config/rx/rx.c: Likewise.
23359 * config/sh/sh.c: Likewise.
23360 * config/sol2.h: Likewise.
23361 * config/sparc/sparc.c: Likewise.
23362 * config/spu/spu.c: Likewise.
23363 * config/stormy16/stormy16.c: Likewise.
23364 * config/v850/v850.c: Likewise.
23365
23366 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
23367
23368 * simplify-rtx.c (simplify_binary_operation_1): Handle
23369 (xor (and A B) C) case when B and C are both constants.
23370
23371 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
23372
23373 * tree-dfa.c (add_referenced_var): Fix typo in comment.
23374
23375 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
23376
23377 PR bootstrap/48168
23378 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
23379
23380 2011-03-20 Jakub Jelinek <jakub@redhat.com>
23381
23382 PR rtl-optimization/48156
23383 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
23384 assume df and df_lr are not NULL.
23385
23386 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23387
23388 PR debug/48023
23389 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
23390 between a call and its CALL_ARG_LOCATION note.
23391
23392 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
23393
23394 PR debug/48178
23395 * config/sh/sh.c (find_barrier): Don't emit a constant pool
23396 between a call and its corresponding CALL_ARG_LOCATION note.
23397
23398 2011-03-19 Anatoly Sokolov <aesok@post.ru>
23399
23400 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
23401 instead of loop. Use HARD_REGISTER_NUM_P predicate.
23402 * haifa-sched.c (setup_ref_regs): Ditto.
23403 * caller-save.c (add_used_regs_1): Ditto.
23404 * dse.c (look_for_hardregs): Ditto.
23405 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
23406 * sched-rgn.c (check_live_1): Ditto.
23407
23408 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23409
23410 * c-decl.c (diagnose_mismatched_decls): Give an error for
23411 redefining a typedef with variably modified type.
23412
23413 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23414
23415 * c-decl.c (grokfield): Don't allow typedefs for structures or
23416 unions with no tag by default.
23417 * doc/extend.texi (Unnamed Fields): Update.
23418
23419 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
23420
23421 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23422 Rewrite using indirect functions.
23423 (lwp_slwpcb): Ditto.
23424 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
23425 (avx_vinsertf128<mode>): Ditto.
23426
23427 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23428
23429 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
23430 unspecs.
23431
23432 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23433
23434 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
23435 splitting between a call and its corresponding CALL_ARG_LOCATION note.
23436
23437 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
23438
23439 PR rtl-optimization/48170
23440 * gcse.c (hoist_code): Remove bogus asserts.
23441
23442 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
23443
23444 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
23445 computation for prologue/epilogue.
23446
23447 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23448
23449 * Makefile.in (check-consistency): Remove.
23450
23451 2011-03-18 Jakub Jelinek <jakub@redhat.com>
23452
23453 PR debug/48176
23454 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
23455 arange_table_in_use is 0, but either text_section_used or
23456 cold_text_section_used is true. Don't call it if
23457 !info_section_emitted.
23458
23459 2011-03-18 Anatoly Sokolov <aesok@post.ru>
23460
23461 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
23462 FUNCTION_VALUE_REGNO_P): Remove.
23463 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
23464 Remove.
23465 * config/avr/avr.c (avr_ret_register): Make static inline.
23466 (avr_function_value_regno_p): New function.
23467 (avr_libcall_value): Make static. Add 'func' argument.
23468 (avr_function_value): Make static. Rename 'func' argument to
23469 'fn_decl_or_type', forward it to avr_libcall_value. Call
23470 avr_ret_register function instead of RET_REGISTER macro.
23471 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23472
23473 2011-03-18 Jason Merrill <jason@redhat.com>
23474
23475 PR c++/23372
23476 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
23477
23478 2011-03-18 Richard Guenther <rguenther@suse.de>
23479
23480 * doc/install.texi (--enable-gold): Remove.
23481 (--with-plugin-ld): Document.
23482 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
23483
23484 2011-03-18 Andrew Pinski <pinskia@gmail.com>
23485
23486 PR middle-end/47790
23487 * expr.c (optimize_bitfield_assignment_op): Revamp to work
23488 again after expansion changes.
23489
23490 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
23491
23492 * combine.c (try_combine): Do simplification only call of
23493 subst() on i2 even when i1 is present. Update comments.
23494
23495 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
23496
23497 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
23498 and UNSPEC_PCREL_SYMOFF.
23499
23500 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23501
23502 * config/s390/s390.md: Use define_c_enum for the unspec constant
23503 definitions.
23504
23505 2011-03-18 Richard Henderson <rth@redhat.com>
23506 Jakub Jelinek <jakub@redhat.com>
23507
23508 PR bootstrap/48161
23509 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
23510 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
23511
23512 2011-03-17 Anatoly Sokolov <aesok@post.ru>
23513
23514 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23515 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
23516 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
23517 Change return type to bool.
23518 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23519
23520 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23521
23522 PR debug/48163
23523 * var-tracking.c (prepare_call_arguments): If CALL target
23524 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
23525 pc instead of looking it up using cselib_lookup and use
23526 Pmode for it if x has VOIDmode.
23527 * dwarf2out.c (gen_subprogram_die): If also both first and
23528 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
23529
23530 PR debug/48163
23531 * function.c (assign_parms): For data.passed_pointer parms
23532 use MEM of data.entry_parm instead of data.entry_parm itself
23533 as DECL_INCOMING_RTL.
23534 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
23535 also when passed and declared mode is the same, DECL_RTL
23536 is a MEM with pseudo as address and DECL_INCOMING_RTL is
23537 a MEM too.
23538
23539 2011-03-16 Jeff Law <law@redhat.com>
23540
23541 PR rtl-optimization/37273
23542 * ira-costs.c (scan_one_insn): Detect constants living in memory and
23543 handle them like argument loads from stack slots. Do not double
23544 count memory for memory constants and argument loads from stack slots.
23545
23546 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23547
23548 PR debug/48160
23549 * var-tracking.c (prepare_call_arguments): Check SUBREG.
23550
23551 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23552
23553 PR target/48171
23554 * config/i386/i386.opt: Add Save to -mavx and -mfma.
23555
23556 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23557
23558 PR bootstrap/48153
23559 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23560 if dwarf_strict.
23561 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23562 Clear call_arg_locations and call_arg_loc_last always.
23563
23564 PR middle-end/48152
23565 * var-tracking.c (prepare_call_arguments): If argument needs to be
23566 passed by reference, adjust argtype and mode.
23567
23568 2011-03-17 Richard Guenther <rguenther@suse.de>
23569
23570 PR middle-end/48134
23571 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23572 a value make sure to fold the statement.
23573
23574 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
23575
23576 PR target/43872
23577 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23578 return condition with !cfun->calls_alloca.
23579
23580 2011-03-17 Richard Guenther <rguenther@suse.de>
23581
23582 PR bootstrap/48148
23583 * lto-cgraph.c (input_overwrite_node): Clear the abstract
23584 origin for decls in other ltrans units.
23585 (input_varpool_node): Likewise.
23586
23587 2011-03-17 Richard Guenther <rguenther@suse.de>
23588
23589 PR middle-end/48165
23590 * tree-object-size.c (compute_object_offset): Properly return
23591 the offset operand of MEM_REFs as sizetype.
23592
23593 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23594
23595 PR rtl-optimization/48141
23596 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23597 * dse.c: Include params.h.
23598 (active_local_stores_len): New variable.
23599 (add_wild_read, dse_step1): Clear it when setting active_local_stores
23600 to NULL.
23601 (record_store, check_mem_read_rtx): Decrease it when removing
23602 from the chain.
23603 (scan_insn): Likewise. Increase it when adding to chain, if it
23604 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23605 set active_local_stores to NULL before the addition.
23606 * Makefile.in (dse.o): Depend on $(PARAMS_H).
23607
23608 PR rtl-optimization/48141
23609 * dse.c (record_store): If no positions are needed in an insn
23610 that cannot be deleted, at least unchain it from active_local_stores.
23611
23612 2011-03-16 Dodji Seketeli <dodji@redhat.com>
23613
23614 PR debug/47510
23615 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23616 (lookup_type_die_strip_naming_typedef): ... here.
23617 (get_context_die): Use it.
23618 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23619 the anonymous struct named by the naming typedef.
23620
23621 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
23622
23623 PR target/48154
23624 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23625 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23626
23627 2011-03-16 Jeff Law <law@redhat.com>
23628
23629 * tree-vrp.c (identify_jump_threads): Slightly simplify type
23630 check for operands of conditional. Allow type to be a pointer.
23631
23632 2011-03-16 Richard Guenther <rguenther@suse.de>
23633
23634 PR tree-optimization/48149
23635 * fold-const.c (fold_binary_loc): Fold
23636 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23637
23638 2011-03-16 Richard Guenther <rguenther@suse.de>
23639
23640 PR tree-optimization/26134
23641 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23642 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23643 (non_rewritable_mem_ref_base): Handle complex type component
23644 accesses, constrain offsets for vector and complex extracts
23645 more properly.
23646
23647 2011-03-16 Richard Guenther <rguenther@suse.de>
23648
23649 PR tree-optimization/48146
23650 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23651 operands avoiding the need for renaming.
23652
23653 2011-03-16 Richard Guenther <rguenther@suse.de>
23654
23655 * gimple-fold.c (maybe_fold_reference): Open-code relevant
23656 constant folding. Move MEM_REF canonicalization first.
23657 Rely on fold_const_aggregate_ref for initializer folding.
23658 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23659
23660 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23661
23662 PR middle-end/48136
23663 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23664 arg0/arg1 or their arguments are always fold converted to matching
23665 types.
23666
23667 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23668 to nargs.
23669
23670 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23671
23672 PR lto/46944
23673 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23674 Handle in-tree gold.
23675 (ld_vers): Extract binutils version for gold.
23676 (gcc_cv_ld_hidden): Handle gold here.
23677 (gcc_cv_lto_plugin): Determine level of linker plugin support.
23678 * configure: Regenerate.
23679 * config.in: Regenerate.
23680 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23681 -fuse-linker-plugin otherwise.
23682 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
23683 (LINK_COMMAND_SPEC): Use it.
23684 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23685
23686 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23687
23688 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23689 * calls.c: Remove debug.h include.
23690 (emit_call_1): Don't call virtual_call_token debug hook.
23691 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23692 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23693 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23694 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23695 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23696 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23697 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23698 dwarf2out_virtual_call): Remove.
23699 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23700 copy_call_info and virtual_call hooks.
23701 (dwarf2out_init): Don't initialize vcall_insn_table,
23702 debug_dcall_section and debug_vcall_section.
23703 (prune_unused_types): Don't mark nodes from dcall_table.
23704 (dwarf2out_finish): Don't output dcall or vcall tables.
23705 * final.c (final_scan_insn): Don't call direct_call or
23706 virtual_call debug hooks.
23707 * debug.h (struct gcc_debug_hooks): Remove direct_call,
23708 virtual_call_token, copy_call_info and virtual_call hooks.
23709 (debug_nothing_uid): Remove prototype.
23710 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23711 copy_call_info and virtual_call hooks.
23712 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23713 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23714 * debug.c (do_nothing_debug_hooks): Likewise.
23715 (debug_nothing_uid): Remove.
23716 * doc/invoke.texi (-fenable-icf-debug): Remove.
23717 * common.opt (-fenable-icf-debug): Likewise.
23718
23719 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23720 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23721 call's MEM. Handle functions returning aggregate through a hidden
23722 first pointer. For virtual calls add clobbered pc to call arguments
23723 chain.
23724 * dwarf2out.c (gen_subprogram_die): Emit
23725 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23726 can't be emitted.
23727
23728 PR debug/45882
23729 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23730 * rtl.h (ENTRY_VALUE_EXP): Define.
23731 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23732 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23733 * print-rtl.c (print_rtx): Likewise.
23734 * gengtype.c (adjust_field_rtx_def): Likewise.
23735 * var-tracking.c (vt_add_function_parameter): Adjust
23736 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23737 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23738 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23739 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23740 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23741
23742 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23743 Call var_location debug hook even on CALL_INSNs.
23744 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23745 * rtl.def (ENTRY_VALUE): New.
23746 * dwarf2out.c: Include cfglayout.h.
23747 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23748 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23749 (struct call_arg_loc_node): New type.
23750 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23751 tail_call_site_count): New variables.
23752 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23753 DW_TAG_GNU_call_site_parameter.
23754 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23755 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23756 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23757 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23758 and DW_AT_GNU_all_source_call_sites.
23759 (mem_loc_descriptor): Handle ENTRY_VALUE.
23760 (add_src_coords_attributes): Don't add enything if
23761 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23762 (dwarf2out_abstract_function): Save and clear call_arg_location,
23763 call_site_count and tail_call_site_count around dwarf2out_decl call.
23764 (gen_call_site_die): New function.
23765 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23766 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23767 (dwarf2out_function_decl): Clear call_arg_locations,
23768 call_arg_loc_last, set call_site_count and tail_call_site_count
23769 to -1 and free block_map.
23770 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23771 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
23772 followed by any real instructions.
23773 (dwarf2out_begin_function): Set call_site_count and
23774 tail_call_site_count to 0.
23775 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23776 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23777 attempt to force a DIE for it and worst case remove the attribute.
23778 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23779 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
23780 the decl itself.
23781 * var-tracking.c: Include tm_p.h.
23782 (vt_stack_adjustments): For calls call note_register_arguments.
23783 (argument_reg_set): New variable.
23784 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
23785 ensure the VALUE is resolved.
23786 (call_arguments): New variable.
23787 (prepare_call_arguments): New function.
23788 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
23789 (struct expand_loc_callback_data): Add ignore_cur_loc field.
23790 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
23791 always use the best expression.
23792 (vt_expand_loc): Add ignore_cur_loc argument.
23793 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
23794 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
23795 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
23796 note for all calls.
23797 (vt_add_function_parameter): Use cselib_lookup_from_insn.
23798 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
23799 argument. Don't call cselib_preserve_only_values and
23800 cselib_reset_table.
23801 (note_register_arguments): New function.
23802 (vt_initialize): Compute argument_reg_set. Call
23803 vt_add_function_parameters before processing basic blocks instead of
23804 afterwards. For calls call prepare_call_arguments before calling
23805 cselib_process_insn.
23806 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
23807 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
23808 (var-tracking.o): Depend on $(TM_P_H).
23809 * cfglayout.h (insn_scope): New prototype.
23810 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
23811 * cfglayout.c (insn_scope): No longer static.
23812 * insn-notes.def (CALL_ARG_LOCATION): New.
23813 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
23814 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
23815 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
23816 nothing for DECL_EXTERNAL BLOCK_VARS.
23817
23818 2011-03-16 Alan Modra <amodra@gmail.com>
23819
23820 PR target/45844
23821 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
23822 create invalid offset address for vsx splat insn.
23823 * config/rs6000/predicates.md (splat_input_operand): New.
23824 * config/rs6000/vsx.md (vsx_splat_*): Use it.
23825
23826 2011-03-15 Xinliang David Li <davidxl@google.com>
23827
23828 PR c/47837
23829 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
23830 (normalize_preds): New function.
23831 (is_use_properly_guarded): Normalize def predicates.
23832
23833 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23834
23835 PR target/46788
23836 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
23837 in the output template.
23838
23839 2011-03-15 Richard Guenther <rguenther@suse.de>
23840
23841 PR middle-end/47650
23842 * tree-pretty-print.c (dump_function_declaration): Properly
23843 dump unprototyped and varargs function types.
23844
23845 2011-03-15 Richard Guenther <rguenther@suse.de>
23846
23847 PR tree-optimization/13954
23848 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23849 and friends.
23850
23851 2011-03-15 Richard Guenther <rguenther@suse.de>
23852
23853 PR tree-optimization/48037
23854 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23855 selects into BIT_FIELD_REFs.
23856 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23857 vector select.
23858
23859 2011-03-15 Jakub Jelinek <jakub@redhat.com>
23860
23861 PR tree-optimization/48129
23862 * builtins.c (fold_builtin_snprintf): Convert to type of
23863 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23864 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23865
23866 2011-03-15 Richard Guenther <rguenther@suse.de>
23867
23868 PR tree-optimization/41490
23869 * tree-ssa-dce.c (propagate_necessity): Handle returns without
23870 value but with VUSE.
23871 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23872 return statements.
23873 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23874 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23875 * tree-tailcall.c (find_tail_calls): Ignore returns.
23876
23877 2011-03-15 Richard Guenther <rguenther@suse.de>
23878
23879 PR middle-end/48031
23880 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23881 or variable-indexed array accesses when in gimple form.
23882
23883 2011-03-15 Richard Guenther <rguenther@suse.de>
23884
23885 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23886
23887 2011-03-15 Alan Modra <amodra@gmail.com>
23888
23889 PR target/48032
23890 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23891 presume symbol_refs without a symbol_ref_decl are suitably
23892 aligned, nor other trees we may see here. Handle anchor symbols.
23893 (legitimate_constant_pool_address_p): Comment. Add mode param.
23894 Check cmodel=medium addresses. Adjust all calls.
23895 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23896 creating cmodel=medium optimized access to locals.
23897 * config/rs6000/constraints.md (R): Pass QImode to
23898 legitimate_constant_pool_address_p.
23899 * config/rs6000/predicates.md (input_operand): Pass mode to
23900 legitimate_constant_pool_address_p.
23901 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23902 Update prototype.
23903
23904 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23905
23906 PR target/48053
23907 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23908 64-bit constants being loaded into registers other than GPRs such
23909 as loading 0 into a VSX register.
23910
23911 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23912
23913 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23914
23915 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23916
23917 PR middle-end/47917
23918 * builtins.c (fold_builtin_snprintf): New function.
23919 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23920 (fold_builtin_4): Likewise.
23921
23922 PR middle-end/38878
23923 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23924 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
23925 and C - X == X also strip nops from +/-/p+ operand.
23926 When optimizing -X == C, fold C to arg0's type.
23927
23928 PR debug/47946
23929 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23930 emit it as add_AT_int instead of add_AT_unsigned.
23931
23932 2011-03-14 Tom Tromey <tromey@redhat.com>
23933
23934 * unwind-dw2.c: Include sys/sdt.h if it exists.
23935 (_Unwind_DebugHook): Use STAP_PROBE2.
23936 * config.in, configure: Rebuild.
23937 * configure.ac: Check for sys/sdt.h.
23938
23939 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
23940
23941 * config/i386/i386.md (ROUND_FLOOR): New constant.
23942 (ROUND_CEIL): Ditto.
23943 (ROUND_TRUNC): Ditto.
23944 (ROUND_MXCSR): Ditto.
23945 (ROUND_NO_EXC): Ditto.
23946 (rint<mode>2): Use new defines instead of numerical constants.
23947 (floor<mode>2): Ditto.
23948 (ceil<mode>2): Ditto.
23949 (btrunc<mode>2): Ditto.
23950 * config/i386/i386-builtin-types.def: Define ROUND function type
23951 aliases.
23952 * config/i386/i386.c (enum ix86_builtins): Add
23953 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23954 (struct builtin_description): Add
23955 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23956 (ix86_expand_sse_round): New static function.
23957 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23958 function types.
23959 (ix86_builtin_vectorized_function): Handle
23960 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23961
23962 2011-03-14 Tom Tromey <tromey@redhat.com>
23963
23964 * c-parser.c (c_parser_asm_string_literal): Clear
23965 warn_overlength_strings.
23966
23967 2011-03-14 Tom Tromey <tromey@redhat.com>
23968
23969 * c-parser.c (disable_extension_diagnostics): Save
23970 warn_overlength_strings.
23971 (restore_extension_diagnostics): Restore warn_overlength_strings.
23972
23973 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23974
23975 * BASE-VER: Change to 4.7.0.
23976
23977 2011-03-14 Richard Guenther <rguenther@suse.de>
23978
23979 PR middle-end/48098
23980 * tree.c (build_vector_from_val): Adjust assert to requirements
23981 and reality.
23982
23983 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23984
23985 PR bootstrap/48102
23986 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23987
23988 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
23989
23990 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23991 terms of target_flags_explicit. Adjust copyright year.
23992
23993 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23994 * config/rs6000/t-freebsd: New file. Add override for
23995 LIB2FUNCS_EXTRA.
23996
23997 2011-03-13 Chris Demetriou <cgd@google.com>
23998
23999 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
24000 (-fno-diagnostics-show-option): this, to reflect current default.
24001 (-Werror=): Update text about -fno-diagnostics-show-option.
24002
24003 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
24004
24005 PR target/48053
24006 * config/rs6000/predicates.md (easy_vector_constant_add_self,
24007 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
24008 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
24009 mode is not V2DImode or V2DFmode.
24010 (vspltis_constant): Do not handle V2DImode and V2DFmode.
24011 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
24012 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
24013 registers to 0.
24014 (movdi_internal64): Likewise.
24015
24016 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
24017
24018 PR tree-optimization/47127
24019 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
24020 parameter.
24021 (set_cloog_options): Same.
24022 (scop_to_clast): Same.
24023 (print_clast_stmt): Do not call cloog_state_malloc and
24024 cloog_state_free.
24025 (print_generated_program): Same.
24026 (gloog): Same.
24027 * graphite-clast-to-gimple.h (cloog_state): Declared.
24028 (scop_to_clast): Adjust declaration.
24029 * graphite.c (cloog_state): Defined here.
24030 (graphite_initialize): Call cloog_state_malloc.
24031 (graphite_finalize): Call cloog_state_free.
24032
24033 2011-03-11 Jason Merrill <jason@redhat.com>
24034
24035 * attribs.c (lookup_attribute_spec): Take const_tree.
24036 * tree.h: Adjust.
24037
24038 2011-03-11 Joseph Myers <joseph@codesourcery.com>
24039
24040 * config/sparc/sparc.c (sparc_option_override): Use
24041 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
24042
24043 2011-03-11 Richard Guenther <rguenther@suse.de>
24044
24045 PR tree-optimization/48067
24046 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
24047 multiplication result will be only used once on the target
24048 stmt.
24049
24050 2011-03-11 Richard Guenther <rguenther@suse.de>
24051
24052 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
24053
24054 2011-03-11 Richard Guenther <rguenther@suse.de>
24055
24056 PR lto/48073
24057 * tree.c (find_decls_types_r): Do not walk types only reachable
24058 from IDENTIFIER_NODEs.
24059
24060 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24061
24062 PR middle-end/48044
24063 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
24064 all vnode->force_output nodes as needed.
24065
24066 2011-03-11 Jason Merrill <jason@redhat.com>
24067
24068 PR c++/48069
24069 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
24070 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
24071
24072 2011-03-11 Martin Jambor <mjambor@suse.cz>
24073
24074 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
24075 cgraph_node.
24076
24077 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24078
24079 PR tree-optimization/48063
24080 * ipa-inline.c (cgraph_decide_inlining): Don't try to
24081 inline functions called once if !tree_can_inline_p (node->callers).
24082
24083 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
24084
24085 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
24086 extra_objs.
24087 * config/score/score3.c: Delete.
24088 * config/score/score3.h: Delete.
24089 * config/score/mul-div.S: Delete.
24090 * config/score/sfp-machine.h: Add new file.
24091 * config/score/constraints.md: Add new file.
24092 * config/score/t-score-softfp: Add new file.
24093 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
24094 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
24095 (score7_extra_constraint): Delete.
24096 (score7_option_override): Remove unused code.
24097 * config/score/score.c: Remove score3 and score5 define and code.
24098 * config/score/score.h: Remove score3 and score5 define and code.
24099 * config/score/score.md: Remove score3 template and unusual insn.
24100 * config/score/score.opt: Remove score3 and score5 options.
24101
24102 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24103
24104 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
24105 when _HPUX_SOURCE is defined.
24106 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
24107
24108 2011-03-10 Jason Merrill <jason@redhat.com>
24109
24110 PR c++/48029
24111 * stor-layout.c (layout_type): Don't set structural equality
24112 on arrays of incomplete type.
24113 * tree.c (type_hash_eq): Handle comparing them properly.
24114
24115 2011-03-10 Jakub Jelinek <jakub@redhat.com>
24116
24117 PR debug/48043
24118 * config/s390/s390.c (s390_delegitimize_address): Make sure the
24119 result mode matches original rtl mode.
24120
24121 2011-03-10 Nick Clifton <nickc@redhat.com>
24122
24123 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
24124 (andsi3, andsi3_flags): Fix timings for three operand alternative.
24125
24126 2011-03-09 Jakub Jelinek <jakub@redhat.com>
24127
24128 PR rtl-optimization/47866
24129 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
24130 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
24131 if target wasn't scalar.
24132 * function.c (assign_stack_temp_for_type): Assert that neither
24133 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
24134 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
24135 macro.
24136 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
24137
24138 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24139
24140 * config/s390/s390-protos.h (s390_label_align): New prototype.
24141 * config/s390/s390.c (s390_label_align): New function.
24142 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
24143
24144 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
24145
24146 PR target/47755
24147 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
24148 V2DI/V2DF constants. Only all 0's or all 1's are easy.
24149 (output_vec_const_move): Ditto.
24150
24151 2011-03-08 Anatoly Sokolov <aesok@post.ru>
24152
24153 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
24154 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
24155 * config/mips/mips.c (mips_preferred_reload_class): Make static.
24156 Change 'rclass' argument and result type to reg_class_t.
24157 (TARGET_PREFERRED_RELOAD_CLASS): Define.
24158
24159 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
24160
24161 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24162 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
24163 (TARGET_MEMORY_MOVE_COST): Define.
24164 (avr_register_move_cost, avr_memory_move_cost): New Functions.
24165
24166 2011-03-08 Jakub Jelinek <jakub@redhat.com>
24167
24168 PR debug/47881
24169 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
24170 removed anything.
24171
24172 PR tree-optimization/48022
24173 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
24174 for EQ/NE_EXPR.
24175
24176 2011-03-07 Jakub Jelinek <jakub@redhat.com>
24177
24178 PR debug/47991
24179 * var-tracking.c (find_use_val): Return NULL for
24180 cui->sets && cui->store_p BLKmode MEMs.
24181
24182 2011-03-07 Anatoly Sokolov <aesok@post.ru>
24183
24184 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
24185 Remove.
24186 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
24187 xstormy16_print_operand_address): Remove.
24188 * config/stormy16/stormy16.c (xstormy16_print_operand,
24189 xstormy16_print_operand_address): Make static.
24190 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24191
24192 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
24193
24194 PR target/47862
24195 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24196 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
24197 before definition.
24198
24199 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
24200
24201 PR bootstrap/48000
24202 * cfgloopmanip.c (fix_bb_placements): Return immediately
24203 if FROM is BASE_LOOP's header.
24204
24205 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
24206
24207 * gimplify.c (gimplify_function_tree): Fix building calls
24208 to __builtin_return_address.
24209
24210 2011-03-07 Alan Modra <amodra@gmail.com>
24211
24212 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
24213 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
24214 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
24215 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
24216 return_mode args.
24217 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
24218 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
24219 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
24220 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
24221 * config/rs6000/rs6000.c
24222 (rs6000_elf_end_indicate_exec_stack): Rename to..
24223 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
24224 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
24225 (rs6000_file_start): ..here.
24226 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
24227 file scope variables.
24228 (call_ABI_of_interest): New function.
24229 (init_cumulative_args): Set above vars when function return value
24230 is a float, vector, or small struct.
24231 (rs6000_function_arg_advance_1): Likewise for function args.
24232 (rs6000_va_start): Set rs6000_passes_float if variable arg function
24233 references float args.
24234
24235 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
24236
24237 * doc/cfg.texi: Remove "See" before @ref.
24238 * doc/invoke.texi: Likewise.
24239
24240 2011-03-05 Jason Merrill <jason@redhat.com>
24241
24242 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
24243
24244 2011-03-05 Anthony Green <green@moxielogic.com>
24245
24246 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24247
24248 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
24249
24250 PR rtl-optimization/47899
24251 * cfgloopmanip.c (fix_bb_placements): Fix first argument
24252 to flow_loop_nested_p when moving the loop upward.
24253
24254 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
24255
24256 PR target/47719
24257 * arm.md (movhi_insn_arch4): Accept any immediate constant.
24258
24259 2011-03-05 Jakub Jelinek <jakub@redhat.com>
24260
24261 PR tree-optimization/47967
24262 * ipa-cp.c (build_const_val): Return NULL instead of creating
24263 VIEW_CONVERT_EXPR for mismatching sizes.
24264 (ipcp_create_replace_map): Return NULL if build_const_val failed.
24265 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24266 give up on versioning.
24267
24268 2011-03-05 Alan Modra <amodra@gmail.com>
24269
24270 PR target/47986
24271 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24272 full cmodel medium/large lo_sum + high addresses.
24273
24274 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24275
24276 * config/s390/s390.c (s390_decompose_address): Reject non-literal
24277 pool references in UNSPEC_LTREL_OFFSET.
24278
24279 2011-03-04 Jan Hubicka <jh@suse.cz>
24280
24281 PR lto/47497
24282 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24283 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24284 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24285 Add node pointers.
24286 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24287 cgraph_add_thunk): Add node pointers.
24288 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24289 associated to right node.
24290 (input_node): Update use of cgraph_same_body_alias
24291 and cgraph_add_thunk.
24292
24293 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
24294
24295 * config/i386/i386.opt (mprefer-avx128): New flag.
24296 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24297 modes when the flag -mprefer-avx128 is on.
24298
24299 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
24300
24301 * dwarf2out.c (compare_loc_operands): Fix address handling.
24302
24303 2011-03-04 Alan Modra <amodra@gmail.com>
24304
24305 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24306
24307 2011-03-04 Richard Guenther <rguenther@suse.de>
24308
24309 PR middle-end/47968
24310 * expmed.c (extract_bit_field_1): Prefer vector modes that
24311 vec_extract patterns can handle.
24312
24313 2011-03-04 Richard Guenther <rguenther@suse.de>
24314
24315 PR middle-end/47975
24316 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24317
24318 2011-03-04 Richard Henderson <rth@redhat.com>
24319
24320 * explow.c (emit_stack_save): Remove 'after' parameter.
24321 (emit_stack_restore): Likewise.
24322 * expr.h: Update to match.
24323 * builtins.c, calls.c, stmt.c: Likewise.
24324 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24325 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24326 * function.c (expand_function_end): Insert the emit_stack_save
24327 sequence before parm_birth_insn instead of after.
24328
24329 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
24330
24331 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
24332 (ssse3_pmaddubsw128): Ditto.
24333 (ssse3_pmaddubsw): Ditto.
24334
24335 2011-03-03 Steve Ellcey <sje@cup.hp.com>
24336
24337 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
24338
24339 2011-03-03 Jakub Jelinek <jakub@redhat.com>
24340
24341 PR c/47963
24342 * gimplify.c (omp_add_variable): Only call omp_notice_variable
24343 on TYPE_SIZE_UNIT if it is a DECL.
24344
24345 PR debug/47283
24346 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
24347 first operand is not is_gimple_mem_ref_addr, try to fold it.
24348 If the operand still isn't is_gimple_mem_ref_addr, clear
24349 MEM_EXPR on op0.
24350
24351 2011-03-03 Richard Guenther <rguenther@suse.de>
24352
24353 PR middle-end/47283
24354 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
24355 match comment.
24356 (refs_may_alias_p_1): For release branches return true if
24357 we are confused by our input.
24358
24359 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24360
24361 * config/s390/s390.c (s390_function_value): Rename to ...
24362 (s390_function_and_libcall_value): ... this.
24363 (s390_function_value): New function.
24364 (s390_libcall_value): New function.
24365 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
24366 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
24367 target macro definitions.
24368 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
24369
24370 2011-03-02 Joseph Myers <joseph@codesourcery.com>
24371
24372 * config/i386/freebsd64.h (CC1_SPEC): Define.
24373 * config/i386/linux64.h (CC1_SPEC): Define.
24374 * config/i386/x86-64.h (CC1_SPEC): Don't define.
24375
24376 2011-03-02 Anatoly Sokolov <aesok@post.ru>
24377
24378 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24379 Remove.
24380 * config/stormy16/stormy16.c: Include reload.h.
24381 (xstormy16_memory_move_cost): New function.
24382 (TARGET_MEMORY_MOVE_COST): Define.
24383
24384 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
24385
24386 PR rtl-optimization/47925
24387 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
24388 with side effects. Remove the more-specific check for volatile asms.
24389
24390 2011-03-02 Alan Modra <amodra@gmail.com>
24391
24392 PR target/47935
24393 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
24394 toc relative addresses for valid offsets.
24395
24396 2011-03-01 Richard Guenther <rguenther@suse.de>
24397
24398 PR tree-optimization/47890
24399 * tree-vect-loop.c (get_initial_def_for_induction): Set
24400 related stmt properly.
24401
24402 2011-03-01 Richard Guenther <rguenther@suse.de>
24403
24404 PR lto/47924
24405 * lto-streamer.c (lto_record_common_node): Also register
24406 the canonical type.
24407
24408 2011-03-01 Richard Guenther <rguenther@suse.de>
24409
24410 PR lto/46911
24411 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24412 Do not stream DECL_ABSTRACT_ORIGIN.
24413 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24414 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24415 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24416 Do not stream DECL_ABSTRACT_ORIGIN.
24417 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24418 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24419
24420 2011-02-28 Anatoly Sokolov <aesok@post.ru>
24421
24422 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
24423 FUNCTION_VALUE_REGNO_P): Remove.
24424 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
24425 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
24426 Add 'outgoing' argument.
24427 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
24428 function.
24429 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24430 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24431
24432 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
24433
24434 PR debug/28047
24435 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
24436 (lookup_filename): Likewise.
24437 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
24438
24439 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
24440 Jakub Jelinek <jakub@redhat.com>
24441
24442 PR middle-end/47893
24443 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
24444 (assign_stack_local_1): Change last argument type to int.
24445 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
24446 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
24447 don't record padding space into frame_space_list nor use those areas.
24448 (assign_stack_local): Adjust caller.
24449 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
24450 of assign_stack_local, pass 0 as last argument.
24451 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
24452 callers.
24453
24454 2011-02-28 Jakub Jelinek <jakub@redhat.com>
24455
24456 PR debug/47283
24457 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
24458 Use target address_mode and pointer_mode hooks instead of hardcoded
24459 Pmode and ptr_mode. Handle some simple cases of extending if
24460 POINTERS_EXTEND_UNSIGNED < 0.
24461 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
24462 Call convert_debug_memory_address.
24463 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
24464 convert_debug_memory_address.
24465
24466 PR middle-end/46790
24467 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
24468 * configure: Regenerated.
24469 * config.in: Regenerated.
24470 * varasm.c (default_function_section): Return NULL
24471 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
24472
24473 2011-02-28 Martin Jambor <mjambor@suse.cz>
24474
24475 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
24476 the description to match the printed values.
24477
24478 2011-02-28 Richard Guenther <rguenther@suse.de>
24479
24480 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
24481 of the copied scope tree.
24482
24483 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24484
24485 * doc/extend.texi (Function Attributes): Avoid deeply (and
24486 wrongly) nested tables.
24487
24488 2011-02-27 Jakub Jelinek <jakub@redhat.com>
24489
24490 PR middle-end/47903
24491 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
24492 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
24493 r isn't op0 nor op1.
24494
24495 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24496
24497 * config/avr/avr.md: Remove magic comment for emacs.
24498
24499 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24500
24501 PR target/45261
24502 * config/avr/avr.c (avr_option_override): Use error on bad options.
24503 (avr_help): New function.
24504 (TARGET_HELP): Define.
24505
24506 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
24507
24508 PR target/42240
24509 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
24510 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
24511
24512 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
24513
24514 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
24515 (ARM Options): Ditto.
24516 (i386 and x86-64 Options): Ditto.
24517 (RX Options): Ditto.
24518 (SPARC Options): Ditto.
24519
24520 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
24521
24522 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
24523 FreeBSD 6 and later. Generally use cpu generic.
24524
24525 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
24526
24527 * doc/cpp.texi: Update copyright years.
24528
24529 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
24530
24531 PR target/46898
24532 * config/lm32/lm32.md (ashrsi3): Added needed variable.
24533
24534 2011-02-25 Jon Beniston <jon@beniston.com>
24535
24536 PR target/46898
24537 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
24538 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
24539 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
24540 (lm32_block_move_inline): Add type cast to remove warning.
24541 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
24542 (gen_int_relational): Move declarations to start of function.
24543
24544 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
24545
24546 PR tree-optimization/45470
24547 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
24548 can throw internally only.
24549 * tree-vect-stmts.c (vectorizable_call): Likewise.
24550
24551 2011-02-24 Anatoly Sokolov <aesok@post.ru>
24552
24553 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
24554 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24555 * config/stormy16/stormy16-protos.h
24556 (xstormy16_preferred_reload_class): Remove.
24557 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24558 static. Change 'rclass' argument and return type to reg_class_t.
24559 (TARGET_PREFERRED_RELOAD_CLASS,
24560 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24561
24562 2011-02-24 Richard Guenther <rguenther@suse.de>
24563
24564 * lto-streamer-in.c (input_bb): Do not find referenced vars
24565 in debug statements.
24566
24567 2011-02-23 Jason Merrill <jason@redhat.com>
24568
24569 * common.opt (fabi-version): Document v5 and v6.
24570
24571 2011-02-23 Richard Guenther <rguenther@suse.de>
24572
24573 PR tree-optimization/47849
24574 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24575
24576 2011-02-23 Jie Zhang <jie@codesourcery.com>
24577
24578 * opts-common.c (decode_cmdline_option): Print empty string
24579 argument as "" in decoded->orig_option_with_args_text.
24580 * gcc.c (execute): Print empty string argument as ""
24581 in the verbose output.
24582 (do_spec_1): Keep empty string argument.
24583
24584 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
24585
24586 * config.gcc: Declare score-* and crx-* obsolete.
24587
24588 2011-02-23 Jie Zhang <jie@codesourcery.com>
24589
24590 PR rtl-optimization/47763
24591 * web.c (web_main): Ignore naked clobber when replacing register.
24592
24593 2011-02-22 Anatoly Sokolov <aesok@post.ru>
24594
24595 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24596 Remove.
24597
24598 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
24599
24600 PR doc/47848
24601 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24602
24603 2011-02-22 Mike Stump <mikestump@comcast.net>
24604
24605 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24606 assembler.
24607 * configure: Regenerate.
24608
24609 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
24610
24611 PR rtl-optimization/46002
24612 * ira-color.c (update_copy_costs): Change class intersection
24613 test to reg_class_contents[] test of 'hard_regno'.
24614
24615 2011-02-21 Joseph Myers <joseph@codesourcery.com>
24616
24617 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24618 than Driver option.
24619 * config/hpux11.opt (mt): Likewise.
24620 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24621 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24622 * config/vax/elf.opt (mno-asm-pic): Likewise.
24623 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24624
24625 2011-02-21 Mike Stump <mikestump@comcast.net>
24626
24627 PR target/47822
24628 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24629 tree so we can get save the type.
24630 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24631 for CFString instead of trying to use past the end of the builtins.
24632 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24633 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24634 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24635 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24636 Rename to darwin_builtin_cfstring.
24637 (darwin_init_cfstring_builtins): Return the built type.
24638
24639 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
24640
24641 PR target/47840
24642 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24643 (_mm256_insert_epi64): Use _mm_insert_epi64.
24644
24645 2011-02-21 Anatoly Sokolov <aesok@post.ru>
24646
24647 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24648 * config/stormy16/stormy16-protos.h
24649 (xstormy16_mode_dependent_address_p): Remove.
24650 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24651 Make static. Change return type to bool. Change argument type to
24652 const_rtx. Remove dead code.
24653 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24654
24655 2011-02-21 Richard Guenther <rguenther@suse.de>
24656
24657 PR lto/47820
24658 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24659 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24660 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24661 TUs context.
24662 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24663 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24664
24665 2011-02-20 Richard Guenther <rguenther@suse.de>
24666
24667 PR lto/47822
24668 * tree.c (free_lang_data_in_decl): Clean builtins from
24669 the TU decl BLOCK_VARS.
24670
24671 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
24672
24673 PR debug/47620
24674 PR debug/47630
24675 * haifa-sched.c (fix_tick_ready): Skip tick computation
24676 for debug insns.
24677
24678 2011-02-19 Richard Guenther <rguenther@suse.de>
24679
24680 PR lto/47647
24681 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24682 Remove lazy BLOCK_VARS streaming.
24683 (lto_input_ts_block_tree_pointers): Likewise.
24684 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24685
24686 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24687
24688 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24689
24690 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24691
24692 * config/i386/biarch32.h, config/i386/mach.h,
24693 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24694
24695 2011-02-19 Jakub Jelinek <jakub@redhat.com>
24696
24697 PR target/47800
24698 * config/i386/i386.md (peephole2 for shift and plus): Use
24699 operands[1] original mode in the first insn.
24700
24701 2011-02-18 Mike Stump <mikestump@comcast.net>
24702
24703 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24704
24705 2011-02-18 Jan Hubicka <jh@suse.cz>
24706
24707 PR middle-end/47788
24708 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24709 to zero when the function is not inlinable at all.
24710
24711 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24712
24713 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24714 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24715 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24716 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24717 * config/pa/t-pa64: Likewise.
24718 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24719
24720 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24721
24722 PR driver/47787
24723 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24724
24725 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24726
24727 PR target/47792
24728 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24729
24730 2011-02-18 Anatoly Sokolov <aesok@post.ru>
24731
24732 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24733 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24734 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24735 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24736 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24737 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24738 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24739 m32r_load_postinc_p, m32r_store_preinc_predec_p,
24740 m32r_legitimate_address_p): New functions.
24741 * config/m32r/constraints.md (constraint "S"): Don't use
24742 STORE_PREINC_PREDEC_P.
24743 (constraint "U"): Don't use LOAD_POSTINC_P.
24744
24745 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
24746
24747 PR rtl-optimization/46178
24748 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24749 compute ira_hard_regno_cover_class[].
24750
24751 2011-02-18 Richard Guenther <rguenther@suse.de>
24752
24753 PR lto/47798
24754 * lto-streamer.h (lto_global_var_decls): Declare.
24755 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24756 statics for global var processing.
24757
24758 2011-02-18 Richard Guenther <rguenther@suse.de>
24759
24760 PR tree-optimization/47737
24761 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24762 edge dominance check.
24763
24764 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24765
24766 PR debug/47780
24767 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24768 avoid invalid rtx sharing.
24769
24770 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
24771
24772 * doc/cpp.texi (Obsolete Features): Add background on the
24773 origin of assertions.
24774
24775 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
24776
24777 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24778 objc_abi == 2.
24779 * config/darwin.c (output_objc_section_asm_op): Added support for
24780 ABI v1 and v2.
24781 (is_objc_metadata): New.
24782 (darwin_objc2_section): New.
24783 (darwin_objc1_section): New.
24784 (machopic_select_section): Added support for ABI v1 and v2.
24785 (darwin_emit_objc_zeroed): New.
24786 (darwin_output_aligned_bss): Detect objc metadata and treat it
24787 appropriately.
24788 (darwin_asm_output_aligned_decl_common): Same.
24789 (darwin_asm_output_aligned_decl_local): Same.
24790 * config/darwin-sections.def: Updated for ABI v1 and v2.
24791 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
24792 compiling Objective-C code for the NeXT runtime, default to using
24793 ABI version 0 for 32-bit, and version 2 for 64-bit.
24794
24795 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24796
24797 * common.opt (optimize_fast): New Variable.
24798 * opts.c (default_options_optimization): Use opts->x_optimize_fast
24799 instead of local variable ofast.
24800
24801 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
24802
24803 * doc/invoke.texi (fobjc-abi-version): Documented.
24804 (fobjc-nilcheck): Documented.
24805 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
24806 version.
24807
24808 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24809
24810 PR driver/47390
24811 * common.opt (export-dynamic): New Driver option.
24812 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
24813
24814 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24815
24816 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
24817
24818 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
24819 Jan Hubicka <jh@suse.cz>
24820
24821 PR debug/47106
24822 PR debug/47402
24823 * cfgexpand.c (account_used_vars_for_block): Remove.
24824 (estimated_stack_frame_size): Use referenced vars.
24825 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
24826 that were referenced in the original function. Test src_fn
24827 rather than cfun. Drop redundant get_var_ann.
24828 (setup_one_parameter): Drop redundant get_var_ann.
24829 (declare_return_variable): Likewise.
24830 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
24831 (copy_arguments_for_versioning): Drop redundant get_var_ann.
24832 * ipa-inline.c (compute_inline_parameters): Do not compute
24833 disregard_inline_limits here.
24834 (compute_inlinable_for_current, pass_inlinable): New.
24835 (pass_inline_parameters): Require PROP_referenced_vars.
24836 * cgraphunit.c (cgraph_process_new_functions): Don't run
24837 compute_inline_parameters explicitly unless function is in SSA form.
24838 (cgraph_analyze_function): Set .disregard_inline_limits.
24839 * tree-sra.c (convert_callers): Compute inliner parameters
24840 only for functions already in SSA form.
24841
24842 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24843
24844 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24845 -mlittle-endian-data.
24846
24847 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24848
24849 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24850 -mno-fpu, not -fpu and -no-fpu.
24851 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24852 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24853
24854 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
24855
24856 PR target/43653
24857 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24858 input reload with PLUS RTX.
24859
24860 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24861
24862 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24863 of InverseVar(MDMX).
24864
24865 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24866
24867 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24868 --m4-340.
24869
24870 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24871
24872 * config/mn10300/mn10300.opt (mno-crt0): New.
24873
24874 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24875
24876 * config/m68k/uclinux.opt (static-libc): New Driver option.
24877
24878 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24879
24880 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24881
24882 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24883
24884 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24885 %{muser-extend-enabled}.
24886
24887 2011-02-16 Richard Guenther <rguenther@suse.de>
24888
24889 PR tree-optimization/47738
24890 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24891 the TODO from tree_predictive_commoning.
24892
24893 2011-02-15 Jeff Law <law@redhat.com>
24894
24895 Revert
24896 2011-01-25 Jeff Law <law@redhat.com>
24897
24898 PR rtl-optimization/37273
24899 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24900 handle them like argument loads from stack slots. Do not double
24901 count memory for memory constants and argument loads from stack slots.
24902
24903 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
24904
24905 PR target/47755
24906 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24907 mode for vector constants. Remove code that checks for TImode.
24908
24909 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24910
24911 PR debug/47106
24912 PR debug/47402
24913 * cgraph.h (compute_inline_parameters): Return void.
24914 * ipa-inline.c (compute_inline_parameters): Adjust.
24915
24916 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24917
24918 PR debug/47106
24919 PR debug/47402
24920 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24921 rather than decl.
24922 * cfgexpand.c (estimated_stack_frame_size): Likewise.
24923 * ipa-inline.c (compute_inline_parameters): Adjust.
24924
24925 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24926
24927 PR debug/47106
24928 PR debug/47402
24929 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24930 Adjust all users. Pass FN to...
24931 * tree-flow-inline.h (first_referenced_var): ... this. Add
24932 fn argument.
24933 * ipa-struct-reorg.c: Adjust.
24934 * tree-dfa.c: Adjust.
24935 * tree-into-ssa.c: Adjust.
24936 * tree-sra.c: Adjust.
24937 * tree-ssa-alias.c: Adjust.
24938 * tree-ssa-live.c: Adjust.
24939 * tree-ssa.c: Adjust.
24940 * tree-ssanames.c: Adjust.
24941 * tree-tailcall.c: Adjust.
24942
24943 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24944
24945 PR debug/47106
24946 PR debug/47402
24947 * tree-flow.h (referenced_var_lookup): Add fn parameter.
24948 Adjust all callers.
24949 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24950 * tree-flow-inline.h: Adjust.
24951 * gimple-pretty-print.c: Adjust.
24952 * tree-into-ssa.c: Adjust.
24953 * tree-ssa.c: Adjust.
24954 * cfgexpand.c: Adjust.
24955
24956 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24957
24958 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24959 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24960 (EXTRA_CONSTRAINT): Delete.
24961 * config/iq2000/constraints.md: New file.
24962 * config/iq2000/iq2000.md: Include it.
24963 (define_insn ""): Delete.
24964 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24965 unsupported constraint letters from patterns.
24966 (call_value, call_value_internal1): Likewise.
24967 (call_value_multiple_internal1): Likewise.
24968
24969 2011-02-15 Nick Clifton <nickc@redhat.com>
24970
24971 * config/mn10300/mn10300.c: Include tm-constrs.h.
24972 (struct liw_data): New data structure describing an LIW candidate
24973 instruction.
24974 (extract_bundle): Use struct liw_data. Allow small integer
24975 operands for some instructions.
24976 (check_liw_constraints): Use struct liw_data. Remove swapped
24977 parameter. Add comments describing the checks. Fix bug when
24978 assigning the source of liw1 to the source of liw2.
24979 (liw_candidate): Delete. Code moved into extract_bundle.
24980 (mn10300_bundle_liw): Use struct liw_data. Check constraints
24981 before swapping.
24982 * config/mn10300/predicates.md (liw_operand): New predicate.
24983 Allows registers and small integer constants.
24984 * config/mn10300/constraints.md (O): New constraint. Accetps
24985 integers in the range -8 to +7 inclusive.
24986 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24987 for moving a small integer into a register. Give this alternative
24988 LIW attributes.
24989 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24990 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24991 using the J,K,L and M constraints,
24992 (liw): Remove SI mode on second operands to allow for HI and QI
24993 mode values.
24994 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
24995 instruction.
24996
24997 2011-02-15 Richard Guenther <rguenther@suse.de>
24998
24999 PR tree-optimization/47743
25000 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
25001 for a non-type-compatible VN lookup bail out.
25002
25003 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25004
25005 * config/fr30/constraints.md: New file.
25006 * config/fr30/fr30.md: Include it.
25007 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
25008 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25009 (EXTRA_CONSTRAINT): Delete.
25010
25011 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25012
25013 * config/frv/constraints.md: New file.
25014 * config/frv/predicates.md: Include it.
25015 * config/frv/frv.c (reg_class_from_letter): Delete.
25016 (frv_option_override): Don't initialize it.
25017 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
25018 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
25019 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
25020 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25021 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
25022 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25023 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
25024 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
25025 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
25026 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
25027 (REG_CLASS_FROM_CONSTRAINT): Delete.
25028
25029 2011-02-15 Jakub Jelinek <jakub@redhat.com>
25030
25031 PR middle-end/47581
25032 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
25033 if frame size is 0 in a leaf function.
25034
25035 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25036
25037 PR pch/14940
25038 * config/alpha/host-osf.c: New file.
25039 * config/alpha/x-osf: New file.
25040 * config.host (alpha*-dec-osf*): Use it.
25041
25042 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25043
25044 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25045 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
25046 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
25047 (rx_mode_dependent_address_p): ...this. Make static. Change argument
25048 type to const_rtx.
25049 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25050
25051 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25052
25053 * config/stormy16/constraints.md: New file.
25054 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
25055 Use satisfies_constraint_Q and satisfies_constraint_R.
25056 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
25057 Delete.
25058 (xstormy16_legitiamte_address_p): Declare.
25059 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
25060 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25061 (EXTRA_CONSTRAINT): Delete.
25062 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
25063 Un-staticize.
25064 (xstormy16_extra_constraint_p): Delete.
25065
25066 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
25067
25068 PR tree-optimization/46494
25069 * loop-unroll.c (split_edge_and_insert): Adjust comment.
25070 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
25071 (pass_rtl_loop_done): Add TODO_verify_flow.
25072 * fwprop.c (pass_rtl_fwprop): Likewise.
25073 * modulo-sched.c (pass_sms): Likewise.
25074 * tree-ssa-dom.c (pass_dominator): Likewise.
25075 * tree-ssa-loop-ch.c (pass_ch): Likewise.
25076 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
25077 (pass_tree_loop_done): Likewise.
25078 * tree-ssa-pre.c (execute_pre): Likewise.
25079 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
25080 * tree-ssa-sink.c (pass_sink_code): Likewise.
25081 * tree-vrp.c (pass_vrp): Likewise.
25082
25083 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25084
25085 * config/v850/constraints.md: New file.
25086 * config/v850/v850.md: Include it.
25087 * config/v850/predicates.md (reg_or_0_operand): Use
25088 satisfies_constraint_G.
25089 (special_symbolref_operand): Use satisfies_constraint_K.
25090 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
25091 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
25092 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
25093 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25094 (EXTRA_CONSTRAINT): Delete.
25095 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
25096 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
25097 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
25098
25099 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25100
25101 PR target/47696
25102 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
25103 description.
25104
25105 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25106
25107 * config/mcore/constraints.md: New file.
25108 * config/mcore/mcore.md: Include it.
25109 * config/mcore/mcore.c (reg_class_from_letter): Delete.
25110 * config/mcore/mcore.h (reg_class_from_letter): Delete.
25111 (REG_CLASS_FROM_LETTER): Delete.
25112 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
25113 insn_const_int_ok_for_constraint.
25114 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
25115 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
25116 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25117 (EXTRA_CONSTRAINT): Delete.
25118
25119 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25120
25121 PR ada/41929
25122 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
25123 (IS_SIGHANDLER): Define.
25124 (sparc64_is_sighandler): New function, split off from
25125 sparc64_fallback_frame_state.
25126 (sparc_is_sighandler): New function, split off from
25127 sparc_fallback_frame_state.
25128 (sparc64_fallback_frame_state): Merge with ...
25129 (sparc_fallback_frame_state): ... this into ...
25130 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
25131 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
25132 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
25133 stack instead of hardcoded offsets.
25134
25135 2011-02-14 Andriy Gapon <avg@freebsd.org>
25136
25137 PR target/45808
25138 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
25139
25140 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25141
25142 * configure: Regenerate.
25143
25144 2011-02-12 Joseph Myers <joseph@codesourcery.com>
25145
25146 PR driver/45731
25147 * gcc.c (asm_options): Correct spec matching --target-help.
25148
25149 2011-02-12 Martin Jambor <mjambor@suse.cz>
25150
25151 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
25152 to gimple call error.
25153
25154 2011-02-12 Mike Stump <mikestump@comcast.net>
25155
25156 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
25157 comments in backslash regions.
25158
25159 2011-02-12 Mike Stump <mikestump@comcast.net>
25160 Jakub Jelinek <jakub@redhat.com>
25161 Iain Sandoe <iains@gcc.gnu.org>
25162
25163 PR target/47324
25164 * dwarf2out.c (output_cfa_loc): When required, apply the
25165 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
25166 (output_loc_sequence): Likewise.
25167 (output_loc_operands_raw): Likewise.
25168 (output_loc_sequence_raw): Likewise.
25169 (output_cfa_loc): Likewise.
25170 (output_loc_list): Suppress register number adjustment when
25171 calling output_loc_sequence()
25172 (output_die): Likewise.
25173
25174 2011-02-12 Anatoly Sokolov <aesok@post.ru>
25175
25176 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25177 Remove macros.
25178 * config/xtensa/xtensa.c (xtensa_register_move_cost,
25179 xtensa_memory_move_cost): New functions.
25180 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
25181
25182 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
25183
25184 PR lto/47225
25185 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
25186 in the current directory.
25187 * configure: Rebuilt.
25188
25189 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25190
25191 * config/darwin.c (darwin_override_options): Add a hunk missed
25192 from the commit of r168571. Trim comment line lengths and
25193 correct indents of the preceding block.
25194
25195 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25196
25197 * gcc.c (driver_handle_option): Concatenate the argument to -F with
25198 the switch.
25199
25200 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25201
25202 * common.opt (nostartfiles): New Driver option.
25203
25204 2011-02-11 Xinliang David Li <davidxl@google.com>
25205
25206 PR tree-optimization/47707
25207 * tree-chrec.c (convert_affine_scev): Keep type precision.
25208
25209 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
25210
25211 PR tree-optimization/47420
25212 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
25213
25214 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
25215
25216 PR rtl-optimization/47614
25217 * rtl.h (check_for_inc_dec): Declare.
25218 * dse.c (check_for_inc_dec): Externalize...
25219 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
25220 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
25221
25222 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25223
25224 PR driver/47678
25225 * gcc.c (main): Do not compile inputs if there were errors in
25226 option handling.
25227 * opts-common.c (read_cmdline_option): Check for wrong language
25228 after other error checks.
25229
25230 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
25231
25232 * cgraph.c: Fix comment typos.
25233 * cgraph.h: Likewise.
25234 * cgraphunit.c: Likewise.
25235 * ipa-cp.c: Likewise.
25236 * ipa-inline.c: Likewise.
25237 * ipa-prop.c: Likewise.
25238 * ipa-pure-const.c: Likewise.
25239 * ipa-ref.c: Likewise.
25240 * ipa-reference.c: Likewise.
25241
25242 2011-02-11 Jakub Jelinek <jakub@redhat.com>
25243
25244 PR debug/47684
25245 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
25246
25247 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25248
25249 PR testsuite/47400
25250 * doc/sourcebuild.texi (Require Support): Document
25251 dg-require-ascii-locale.
25252
25253 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
25254
25255 * doc/lto.texi (Write summary): Fix missing parentheses.
25256
25257 2011-02-10 DJ Delorie <dj@redhat.com>
25258
25259 * config/m32c/m32c.c (m32c_option_override): Disable
25260 -fcombine-stack-adjustments until flag value tracking and compare
25261 optimization can be rewritten.
25262
25263 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
25264
25265 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25266 PROCESSOR_POWER7.
25267 (PROCESSOR_DEFAULT64): Likewise.
25268
25269 2011-02-10 Richard Henderson <rth@redhat.com>
25270
25271 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25272 change from 2011-02-03.
25273 * config/rx/rx.c (flags_from_code): Likewise.
25274 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25275 is valid, n/pz otherwise.
25276 (rx_select_cc_mode): Return CCmode if Y is not zero.
25277
25278 2011-02-10 Richard Guenther <rguenther@suse.de>
25279
25280 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25281
25282 2011-02-10 Richard Guenther <rguenther@suse.de>
25283
25284 PR tree-optimization/47677
25285 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25286
25287 2011-02-10 Jakub Jelinek <jakub@redhat.com>
25288
25289 PR target/47665
25290 * combine.c (make_compound_operation): Only change shifts into
25291 multiplication for SCALAR_INT_MODE_P.
25292
25293 2011-02-10 Jie Zhang <jie@codesourcery.com>
25294
25295 PR testsuite/47622
25296 Revert
25297 2011-02-05 Jie Zhang <jie@codesourcery.com>
25298 PR debug/42631
25299 * web.c (entry_register): Don't clobber the number of the
25300 first uninitialized reference in used[].
25301
25302 2011-02-09 Richard Guenther <rguenther@suse.de>
25303
25304 PR tree-optimization/47664
25305 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25306 all edges again.
25307
25308 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
25309
25310 PR target/46481
25311 PR target/47032
25312 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25313 PROCESSOR_POWER7.
25314 (PROCESSOR_DEFAULT64): Same.
25315 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25316
25317 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25318
25319 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25320
25321 2011-02-09 Martin Jambor <mjambor@suse.cz>
25322
25323 PR middle-end/45505
25324 * tree-sra.c (struct access): New flags grp_scalar_read and
25325 grp_scalar_write. Changed description of assignment read and write
25326 flags.
25327 (dump_access): Dump new flags, reorder all of them.
25328 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25329 to detect multiple scalar reads.
25330 (analyze_access_subtree): Use the new scalar read write flags instead
25331 of the old flags. Adjusted comments.
25332
25333 2011-02-08 DJ Delorie <dj@redhat.com>
25334
25335 PR target/47548
25336 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
25337 patterns.
25338
25339 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25340
25341 * config/m68k/uclinux.opt: New.
25342 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
25343
25344 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25345
25346 * config/cris/elf.opt (sim): New Driver option.
25347
25348 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25349
25350 * config/xtensa/elf.opt: New.
25351 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
25352
25353 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25354
25355 * config/vax/elf.opt: New.
25356 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
25357
25358 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25359
25360 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
25361
25362 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25363
25364 * config/gnu-user.opt: New.
25365 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
25366 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
25367 *-*-uclinux*): Use gnu-user.opt.
25368
25369 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
25370
25371 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
25372 * config/i386/gnu.h (CPP_SPEC): Likewise.
25373
25374 2011-02-08 Ian Lance Taylor <iant@google.com>
25375
25376 * common.opt (fcx-limited-range): Add SetByCombined flag.
25377 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
25378 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
25379 (fassociative-math, freciprocal-math): Likewise.
25380 (funsafe-math-optimizations): Likewise.
25381 * opth-gen.awk: Handle SetByCombined.
25382 * optc-gen.awk: Likewise.
25383 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
25384 (set_unsafe_math_optimizations_flags): Likewise.
25385 * doc/options.texi (Option properties): Document SetByCombined.
25386
25387 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25388
25389 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
25390 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
25391 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
25392 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
25393 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
25394
25395 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
25396
25397 PR tree-optimization/46834
25398 PR tree-optimization/46994
25399 PR tree-optimization/46995
25400 * graphite-sese-to-poly.c (used_outside_reduction): New.
25401 (detect_commutative_reduction): Call used_outside_reduction.
25402 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
25403 translate_scalar_reduction_to_array only when at least one
25404 loop-phi/close-phi tuple has been detected.
25405
25406 2011-02-08 Richard Guenther <rguenther@suse.de>
25407
25408 PR middle-end/47639
25409 * tree-vect-generic.c (expand_vector_operations_1): Update
25410 stmts here ...
25411 (expand_vector_operations): ... not here. Cleanup EH info
25412 and the CFG if required.
25413
25414 2011-02-08 Richard Guenther <rguenther@suse.de>
25415
25416 PR tree-optimization/47641
25417 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
25418 require type compatibility.
25419
25420 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25421
25422 * gimple-low.c (lower_function_body): Don't remove the location of
25423 the return statement here.
25424 (lower_gimple_return): Do it here instead but only if the return
25425 statement is actually used twice.
25426
25427 2011-02-08 Richard Guenther <rguenther@suse.de>
25428
25429 PR tree-optimization/47632
25430 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
25431 unused up_to_stmt parameter, return whether cfg-cleanup is
25432 necessary, remove EH info properly.
25433 (forward_propagate_into_gimple_cond): Adjust caller.
25434 (forward_propagate_into_cond): Likewise.
25435 (forward_propagate_comparison): Likewise.
25436 (tree_ssa_forward_propagate_single_use_vars): Make
25437 forward_propagate_comparison case similar to the two others.
25438
25439 2011-02-08 Nick Clifton <nickc@redhat.com>
25440
25441 * config/mn10300/mn10300.opt (mliw): New command line option.
25442 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
25443 (liw_bundling): New automaton.
25444 (liw): New attribute.
25445 (liw_op): New attribute.
25446 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
25447 (movsi_internal): Add LIW attributes.
25448 (andsi3): Likewise.
25449 (iorsi3): Likewise.
25450 (xorsi3): Likewise.
25451 (addsi3): Separate register and immediate alternatives.
25452 Add LIW attributes.
25453 (subsi3): Likewise.
25454 (cmpsi): Likewise.
25455 (aslsi3): Likewise.
25456 (lshrsi3): Likewise.
25457 (ashrsi3): Likewise.
25458 (liw): New pattern.
25459 * config/mn10300/mn10300.c (liw_op_names): New
25460 (mn10300_print_operand): Handle 'W' operand descriptor.
25461 (extract_bundle): New function.
25462 (check_liw_constraints): New function.
25463 (liw_candidate): New function.
25464 (mn10300_bundle_liw): New function.
25465 (mn10300_reorg): New function.
25466 (TARGET_MACHINE_DEPENDENT_REORG): Define.
25467 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
25468 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
25469 __LIW__ or __NO_LIW__.
25470 * doc/invoke.texi: Describe the -mliw command line option.
25471
25472 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25473
25474 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
25475 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25476 pthread_mutex_unlock): Remove.
25477 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
25478 * config/pa/t-pa64: Likewise.
25479 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
25480 shared libc if not linking against libpthread.
25481 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25482
25483 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
25484
25485 PR target/47558
25486 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
25487 on 10.6 and later to ensure that we always use the unwinder from
25488 the system. Only add -no_compact_unwind when tarteting darwin
25489 10.6 or later.
25490
25491 2011-02-07 Steve Ellcey <sje@cup.hp.com>
25492
25493 PR target/46997
25494 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
25495 (vec_interleave_lowv2sf): Ditto.
25496 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
25497 (vec_extract_oddv2sf): Ditto.
25498
25499 2011-02-07 Mike Stump <mikestump@comcast.net>
25500
25501 PR target/42333
25502 Add __ieee_divdc3 entry point.
25503 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
25504 entry point.
25505 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
25506 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
25507 * config/darwin.c (darwin_rename_builtins): Add.
25508 * config/darwin-protos.h (darwin_rename_builtins): Add.
25509
25510 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
25511
25512 PR target/47636
25513 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
25514 for the condition.
25515
25516 2011-02-07 Mike Stump <mikestump@comcast.net>
25517
25518 * config/darwin.opt (mmacosx-version-min): Update default OS version.
25519
25520 2011-02-07 Denis Chertykov <chertykov@gmail.com>
25521
25522 PR target/47534
25523 * config/avr/libgcc.S (exit): Move .endfunc
25524
25525 2011-02-07 Richard Guenther <rguenther@suse.de>
25526
25527 PR tree-optimization/47615
25528 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
25529 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
25530 (run_scc_vn): Initialize it.
25531 (visit_reference_op_load): Use it.
25532 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
25533
25534 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25535
25536 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
25537 DImode trapping arithmetic libfuncs.
25538
25539 2011-02-07 Richard Guenther <rguenther@suse.de>
25540
25541 PR tree-optimization/47621
25542 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
25543 two duplicates ...
25544 (execute_update_addresses_taken): ... here. Make it more
25545 conservative in what we accept.
25546
25547 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25548
25549 * config/sparc/freebsd.h (ASM_SPEC): Define.
25550 * config/sparc/vxworks.h (ASM_SPEC): Define.
25551
25552 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25553
25554 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25555
25556 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
25557
25558 * doc/invoke.texi: Remove reference to compiler internals from
25559 user documentation.
25560
25561 * reg-notes.def: Remove REG_VALUE_PROFILE.
25562 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25563
25564 2011-02-05 Jakub Jelinek <jakub@redhat.com>
25565
25566 PR middle-end/47610
25567 * varasm.c (default_section_type_flags): If decl is NULL,
25568 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25569
25570 2011-02-05 Jie Zhang <jie@codesourcery.com>
25571
25572 PR debug/42631
25573 * web.c (entry_register): Don't clobber the number of the
25574 first uninitialized reference in used[].
25575
25576 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
25577
25578 PR tree-optimization/46194
25579 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25580 (build_classic_dist_vector_1): Do not represent classic distance
25581 vectors when the access functions are variating in different loops.
25582
25583 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25584
25585 * config/mips/iris6.opt: New.
25586 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25587
25588 2011-02-04 Richard Henderson <rth@redhat.com>
25589 Steve Ellcey <sje@cup.hp.com>
25590
25591 PR target/46997
25592 * config/ia64/predicates.md (mux1_brcst_element): New.
25593 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25594 * config/ia64/ia64.c (ia64_unpack_assemble): New.
25595 (ia64_unpack_sign): New.
25596 (ia64_expand_unpack): Rewrite using new routines.
25597 (ia64_expand_widen_sum): Ditto.
25598 (ia64_expand_dot_prod_v8qi): Ditto.
25599 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25600 routines, add endian check.
25601 (pmpy2_even): Rename from pmpy2_r, add endian check.
25602 (pmpy2_odd): Rename from pmpy2_l, add endian check.
25603 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25604 (vec_widen_smult_hi_v4hi): Ditto.
25605 (vec_widen_umult_lo_v4hi): Ditto.
25606 (vec_widen_umult_hi_v4hi): Ditto.
25607 (mulv2si3): Change endian checks.
25608 (sdot_prodv4hi): Rewrite with new calls.
25609 (udot_prodv4hi): New.
25610 (vec_pack_ssat_v4hi): Add endian check.
25611 (vec_pack_usat_v4hi): Ditto.
25612 (vec_pack_ssat_v2si): Ditto.
25613 (max1_even): Rename from max1_r, add endian check.
25614 (max1_odd): Rename from max1_l, add endian check.
25615 (*mux1_rev): Format change.
25616 (*mux1_mix): Ditto.
25617 (*mux1_shuf): Ditto.
25618 (*mux1_alt): Ditto.
25619 (*mux1_brcst_v8qi): Use new predicate.
25620 (vec_extract_evenv8qi): Remove endian check.
25621 (vec_extract_oddv8qi): Ditto.
25622 (vec_interleave_lowv4hi): Format change.
25623 (vec_interleave_highv4hi): Ditto.
25624 (mix2_even): Rename from mix2_r, add endian check.
25625 (mix2_odd): Rename from mux2_l, add endian check.
25626 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25627 (vec_extract_evenodd_helper): Format change.
25628 (vec_extract_evenv4hi): Remove endian check.
25629 (vec_extract_oddv4hi): Remove endian check.
25630 (vec_interleave_lowv2si): Format change.
25631 (vec_interleave_highv2si): Format change.
25632 (vec_initv2si): Remove endian check.
25633 (vecinit_v2si): Add endian check.
25634 (reduc_splus_v2sf): Add endian check.
25635 (reduc_smax_v2sf): Ditto.
25636 (reduc_smin_v2sf): Ditto.
25637 (vec_initv2sf): Remove endian check.
25638 (fpack): Add endian check.
25639 (fswap): Add endian check.
25640 (vec_interleave_highv2sf): Add endian check.
25641 (vec_interleave_lowv2sf): Add endian check.
25642 (fmix_lr): Add endian check.
25643 (vec_setv2sf): Format change.
25644 (*vec_extractv2sf_0_be): Use shift to extract operand.
25645 (*vec_extractv2sf_1_be): New.
25646 (vec_pack_trunc_v4hi): Add endian check.
25647 (vec_pack_trunc_v2si): Format change.
25648
25649 2011-02-04 Jakub Jelinek <jakub@redhat.com>
25650
25651 PR inline-asm/23200
25652 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
25653 do bb, locus and block comparison and disallow loads if it is not set.
25654 (stmt_is_replaceable_p): New function.
25655 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25656 callers.
25657 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25658 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25659 SSA_NAME_DEF_STMT.
25660 * tree-flow.h (stmt_is_replaceable_p): New prototype.
25661
25662 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25663
25664 * config/rs6000/xilinx.opt: New.
25665 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25666
25667 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25668
25669 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25670
25671 2011-02-03 Anatoly Sokolov <aesok@post.ru>
25672
25673 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25674 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25675 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25676 secondary_reload_info, xtensa_secondary_reload): Remove.
25677 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25678 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25679 (xtensa_preferred_reload_class): Make static. Change return and
25680 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25681 Use CONST_DOUBLE_P predicate.
25682 (xtensa_preferred_output_reload_class): New function.
25683 (xtensa_secondary_reload): Make static.
25684
25685 2011-02-03 Joseph Myers <joseph@codesourcery.com>
25686
25687 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25688 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25689 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25690
25691 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25692
25693 PR middle-end/31490
25694 * output.h (SECTION_RELRO): Define.
25695 (SECTION_MACH_DEP): Adjust.
25696 (get_variable_section): New prototype.
25697 * varpool.c (varpool_finalize_named_section_flags): New function.
25698 (varpool_assemble_pending_decls): Call it.
25699 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25700 * cgraphunit.c (cgraph_output_in_order): Call
25701 varpool_finalize_named_section_flags.
25702 * varasm.c (get_section): Allow section flags conflicts between
25703 relro and read-only sections if the section hasn't been declared yet.
25704 Set SECTION_OVERRIDE after diagnosing section type conflict.
25705 (get_variable_section): No longer static.
25706 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25707 readonly sections that need relocations.
25708 (decl_readonly_section_1): New function.
25709 (decl_readonly_section): Use it.
25710
25711 Revert:
25712 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
25713 Steve Ellcey <sje@cup.hp.com>
25714
25715 PR middle-end/31490
25716 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25717 if section attribute used.
25718
25719 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25720
25721 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25722 * config/darwin.c (SECTION_NO_ANCHOR): Define.
25723 (darwin_init_sections): Remove assertion.
25724
25725 2011-02-03 Nick Clifton <nickc@redhat.com>
25726
25727 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25728 lt and ge.
25729 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25730 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25731 instead of "n" and "pz".
25732 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25733 CC_FLAG_S.
25734
25735 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25736
25737 PR target/47312
25738 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25739 fma, expand FMA_EXPR as fma{,f,l} call.
25740
25741 PR lto/47274
25742 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25743 copy them into a unsigned char variable and pass address of it to
25744 lto_output_data_stream.
25745
25746 PR target/47564
25747 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25748 around backend_init_target and lang_dependent_init_target calls.
25749 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25750 (verify_cgraph_node): Don't call set_cfun here. Use
25751 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25752 Set error_found for incorrectly represented calls to thunks.
25753
25754 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
25755
25756 PR debug/43092
25757 PR rtl-optimization/43494
25758 * rtl.h (for_each_inc_dec_fn): New type.
25759 (for_each_inc_dec): Declare.
25760 * rtlanal.c (struct for_each_inc_dec_ops): New type.
25761 (for_each_inc_dec_find_inc_dec): New fn.
25762 (for_each_inc_dec_find_mem): New fn.
25763 (for_each_inc_dec): New fn.
25764 * dse.c (struct insn_size): Remove.
25765 (replace_inc_dec, replace_inc_dec_mem): Remove.
25766 (emit_inc_dec_insn_before): New fn.
25767 (check_for_inc_dec): Use it, along with for_each_inc_dec.
25768 (canon_address): Pass mem modes to cselib_lookup.
25769 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
25770 (cselib_lookup_from_insn): Likewise.
25771 (cselib_subst_to_values): Likewise.
25772 * cselib.c (find_slot_memmode): New var.
25773 (cselib_find_slot): New fn. Use it instead of
25774 htab_find_slot_with_hash everywhere.
25775 (entry_and_rtx_equal_p): Use find_slot_memmode.
25776 (autoinc_split): New fn.
25777 (rtx_equal_for_cselib_p): Rename and implement in terms of...
25778 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
25779 Deal with autoinc. Special-case recursion into MEMs.
25780 (cselib_hash_rtx): Likewise.
25781 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
25782 address and MEM modes.
25783 (cselib_subst_to_values): Add memmode, pass it on.
25784 Deal with autoinc.
25785 (cselib_lookup): Add memmode argument, pass it on.
25786 (cselib_lookup_from_insn): Add memmode.
25787 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
25788 (struct cselib_record_autoinc_data): New.
25789 (cselib_record_autoinc_cb): New fn.
25790 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
25791 mode to cselib_lookup. Reset autoinced REGs here instead of...
25792 (cselib_process_insn): ... here.
25793 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
25794 to cselib_lookup.
25795 (add_uses): Likewise, also to cselib_subst_to_values.
25796 (add_stores): Likewise.
25797 * sched-deps.c (add_insn_mem_dependence): Pass mode to
25798 cselib_subst_to_values.
25799 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
25800 * gcse.c (do_local_cprop): Adjusted.
25801 * postreload.c (reload_cse_simplify_set): Adjusted.
25802 (reload_cse_simplify_operands): Adjusted.
25803 * sel-sched-dump (debug_mem_addr_value): Pass mode.
25804
25805 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
25806
25807 PR tree-optimization/45122
25808 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
25809 unsafe assumptions when there's more than one loop exit.
25810
25811 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25812
25813 PR target/47272
25814 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25815 Document using vector double with the load/store builtins, and
25816 that the load/store builtins always use Altivec instructions.
25817
25818 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
25819 to use altivec memory instructions, even on VSX.
25820 (vector_altivec_store_<mode>): Ditto.
25821
25822 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
25823 function.
25824
25825 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25826 V2DF, V2DI support to load/store overloaded builtins.
25827
25828 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
25829 altivec load/store builtins for V2DF/V2DI types.
25830
25831 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25832 set avoid indexed addresses on power6 if -maltivec.
25833 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
25834 vector_altivec_load/vector_altivec_store builtins.
25835 (altivec_expand_st_builtin): Ditto.
25836 (altivec_expand_builtin): Add VSX memory builtins.
25837 (rs6000_init_builtins): Add V2DI types to internal types.
25838 (altivec_init_builtins): Add support for V2DF/V2DI altivec
25839 load/store builtins.
25840 (rs6000_address_for_altivec): Insure memory address is appropriate
25841 for Altivec.
25842
25843 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
25844 vec_vsx_ld and vec_vsx_st.
25845 (vsx_store_<mode>): Ditto.
25846
25847 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25848 variables to hold long long types for VSX vector memory builtins.
25849 (RS6000_BTI_unsigned_long_long): Ditto.
25850 (long_long_integer_type_internal_node): Ditti.
25851 (long_long_unsigned_type_internal_node): Ditti.
25852
25853 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25854 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25855 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25856
25857 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25858 short cuts.
25859 (vec_vsx_st): Ditto.
25860
25861 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25862
25863 * config/pa/pa-hpux10.opt: New.
25864 * config/hpux11.opt (pthread): New Driver option.
25865 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25866 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25867
25868 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25869
25870 * config/ia64/vms.opt: New.
25871 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25872
25873 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25874
25875 PR target/47580
25876 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25877 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25878 generator functions.
25879 (vsx_floatuns<VSi><mode>2): Ditto.
25880 (vsx_fix_trunc<mode><VSi>2): Ditto.
25881 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25882
25883 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25884
25885 * config/i386/djgpp.opt (posix): New Driver option.
25886
25887 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
25888
25889 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25890 Move to the unsupported targets list.
25891
25892 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
25893
25894 PR rtl-optimization/47525
25895 * df-scan.c: Update copyright years.
25896 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25897 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25898
25899 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25900
25901 * config/i386/sysv4.h (TARGET_VERSION): Remove.
25902 (SUBTARGET_RETURN_IN_MEMORY): Remove.
25903 (ASM_OUTPUT_ASCII): Remove.
25904 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25905
25906 2011-02-02 Jeff Law <law@redhat.com>
25907
25908 PR middle-end/47543
25909 * reload.c (find_reloads_address): Handle reg+d address where both
25910 components are invalid by reloading the entire address.
25911
25912 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25913 Richard Guenther <rguenther@suse.de>
25914
25915 PR tree-optimization/40979
25916 PR bootstrap/47044
25917 * passes.c (init_optimization_passes): After LIM call copy_prop
25918 and DCE to clean up.
25919 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25920
25921 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25922
25923 PR tree-optimization/47576
25924 PR tree-optimization/47555
25925 * doc/invoke.texi (scev-max-expr-complexity): Documented.
25926 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25927 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25928 * tree-scalar-evolution.c (follow_ssa_edge): Use
25929 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25930
25931 2011-02-02 Richard Guenther <rguenther@suse.de>
25932
25933 PR tree-optimization/47566
25934 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25935
25936 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
25937
25938 PR debug/47106
25939 PR debug/47402
25940 * tree-inline.c (declare_return_variable): Remove unused caller
25941 variable.
25942
25943 PR debug/47106
25944 PR debug/47402
25945 * tree-flow-inline.h (clear_is_used, is_used_p): New.
25946 * cfgexpand.c (account_used_vars_for_block): Use them.
25947 * tree-nrv.c (tree_nrv): Likewise.
25948 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25949 (dump_scope_block): Likewise.
25950 (remove_unused_locals): Likewise.
25951
25952 PR debug/47106
25953 PR debug/47402
25954 * tree-inline.c (declare_return_variable): Add result decl to
25955 local decls only once.
25956 * gimple-low.c (record_vars_into): Mark newly-created variables
25957 as referenced.
25958
25959 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
25960
25961 PR debug/47498
25962 PR debug/47501
25963 PR debug/45136
25964 PR debug/45130
25965 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25966 debug insns.
25967 (no_real_insns_p, schedule_block, set_priorities): Drop special
25968 treatment of boundary debug insns.
25969 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25970 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25971 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25972 (BOUNDARY_DEBUG_INSN_P): Likewise.
25973 (SCHEDULE_DEBUG_INSN_P): Likewise.
25974 * sched-rgn.c (init_ready_list): Drop special treatment of
25975 boundary debug insns.
25976 * final.c (rest_of_clean_state): Clear notes' BB.
25977
25978 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25979
25980 * config/openbsd.opt (assert=): New Driver option.
25981
25982 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25983
25984 * config/i386/nto.opt: New.
25985 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25986
25987 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25988
25989 * config/i386/netware.opt: New.
25990 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25991
25992 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25993
25994 * config/interix.opt (posix): New Driver option.
25995
25996 2011-02-01 DJ Delorie <dj@redhat.com>
25997
25998 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25999
26000 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
26001 class for A0/A1.
26002
26003 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
26004
26005 PR tree-optimization/47561
26006 * toplev.c (process_options): Print the Graphite flags. Add
26007 flag_loop_flatten to the list of options requiring Graphite.
26008
26009 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26010
26011 * config/i386/cygming.opt (posix): New Driver option.
26012
26013 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26014
26015 * config/arm/vxworks.opt: New.
26016 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
26017
26018 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26019
26020 * config/alpha/elf.opt: New.
26021 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
26022 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
26023
26024 2011-02-01 Richard Guenther <rguenther@suse.de>
26025
26026 PR tree-optimization/47559
26027 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
26028 store-motion on references that can throw.
26029
26030 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
26031
26032 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
26033 * tree-pass.h (TDF_CSELIB): New macro.
26034 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
26035 cselib_lookup): Check for it rather than for TDF_DETAILS.
26036
26037 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
26038
26039 PR driver/47547
26040 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
26041 is HOST_BIT_BUCKET.
26042
26043 * opts.c (finish_options): Don't add x_aux_base_name if it is
26044 HOST_BIT_BUCKET.
26045
26046 2011-02-01 Richard Guenther <rguenther@suse.de>
26047
26048 PR tree-optimization/47555
26049 Revert
26050 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
26051
26052 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26053
26054 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
26055
26056 PR gcc/46692
26057 * config/lm32/t-lm32: Add multilib for all CPU options.
26058
26059 2011-02-01 Richard Guenther <rguenther@suse.de>
26060
26061 PR tree-optimization/47541
26062 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
26063 sure to have a field at offset zero.
26064
26065 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26066
26067 * config/arc/arc.opt (EB, EL): New Driver options.
26068
26069 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26070
26071 * config/alpha/osf5.opt: New.
26072 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
26073
26074 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26075
26076 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
26077
26078 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
26079
26080 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
26081 -floop-interchange.
26082 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
26083 is an alias of -floop-interchange and that it requires the
26084 Graphite infrastructure.
26085 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
26086 flag_loop_interchange based on the value of flag_tree_loop_linear.
26087
26088 2011-01-31 Jakub Jelinek <jakub@redhat.com>
26089 Richard Guenther <rguenther@suse.de>
26090
26091 PR tree-optimization/47538
26092 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
26093 type instead of r1type, except for comparisons. For right
26094 shifts and comparisons punt if there are mismatches in
26095 sizetype vs. non-sizetype types.
26096
26097 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26098
26099 * doc/sourcebuild.texi (Effective-Target Keywords): Document
26100 avx_runtime.
26101
26102 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26103
26104 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
26105 version number.
26106 * configure: Regenerate.
26107
26108 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26109
26110 * configure.ac (gcc_cv_ld_static_option): Define.
26111 (gcc_cv_ld_dynamic_option): Define.
26112 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
26113 instead.
26114 (HAVE_LD_STATIC_DYNAMIC): Update message.
26115 (LD_STATIC_OPTION): Define.
26116 (LD_DYNAMIC_OPTION): Define.
26117 * configure: Regenerate.
26118 * config.in: Regenerate.
26119 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
26120 HAVE_LD_STATIC_DYNAMIC]: Use them.
26121
26122 2011-01-31 Nick Clifton <nickc@redhat.com>
26123
26124 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
26125 registers inside interrupt handlers if the handler is not a leaf
26126 function.
26127
26128 2011-01-31 Nick Clifton <nickc@redhat.com>
26129
26130 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
26131 reg_renumber returning an INVALID_REGNUM.
26132
26133 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26134
26135 PR libgcj/44341
26136 * doc/install.texi: Document host options discarded when cross
26137 configuring target libraries.
26138
26139 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26140
26141 Reverted:
26142 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26143 PR debug/45136
26144 PR debug/45130
26145 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26146 debug insns.
26147 (no_real_insns_p, schedule_block, set_priorities): Drop special
26148 treatment of boundary debug insns.
26149 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26150 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26151 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26152 (BOUNDARY_DEBUG_INSN_P): Likewise.
26153 (SCHEDULE_DEBUG_INSN_P): Likewise.
26154 * sched-rgn.c (init_ready_list): Drop special treatment of
26155 boundary debug insns.
26156 * final.c (rest_of_clean-state): Clear notes' BB.
26157
26158 2011-01-31 Alan Modra <amodra@gmail.com>
26159
26160 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
26161 toc relative expressions as we do in print_operand_address.
26162
26163 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
26164
26165 * doc/extend.texi: Follow spelling conventions.
26166 * doc/invoke.texi: Fix a typo.
26167
26168 2011-01-30 Joseph Myers <joseph@codesourcery.com>
26169
26170 * config/hpux11.opt: New.
26171 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
26172 ia64*-*-hpux*): Use hpux11.opt.
26173
26174 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
26175
26176 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
26177 to tmake_file.
26178
26179 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26180
26181 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
26182 support sites.
26183
26184 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26185
26186 * doc/install.texi (Binaries): Remove outdated reference for
26187 Motorola 68HC11/68HC12 downloads.
26188
26189 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26190
26191 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
26192 Drepper's paper.
26193
26194 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
26195
26196 PR bootstrap/47147
26197 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
26198 used by NetBSD.
26199
26200 2011-01-28 Ahmad Sharif <asharif@google.com>
26201
26202 * value-prof.c (check_counter): Corrected error message.
26203
26204 2011-01-29 Jie Zhang <jie@codesourcery.com>
26205
26206 * config/arm/arm.c (arm_legitimize_reload_address): New.
26207 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26208 arm_legitimize_reload_address.
26209 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
26210
26211 2011-01-28 Ian Lance Taylor <iant@google.com>
26212
26213 * godump.c (go_define): Ignore macros whose definitions include
26214 two adjacent operands.
26215
26216 2011-01-28 Jakub Jelinek <jakub@redhat.com>
26217
26218 PR target/42894
26219 * varasm.c (force_const_mem): Store copy of x in desc->constant
26220 instead of x itself.
26221 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
26222 itself into REG_EQUAL note.
26223
26224 2011-01-28 Joseph Myers <joseph@codesourcery.com>
26225
26226 * config/freebsd.opt (posix, rdynamic): New Driver options.
26227
26228 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26229
26230 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
26231 -Bstatic/-Bdynamic.
26232 * configure: Regenerate.
26233
26234 2011-01-27 Joseph Myers <joseph@codesourcery.com>
26235
26236 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
26237 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
26238
26239 2011-01-27 Anatoly Sokolov <aesok@post.ru>
26240
26241 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
26242 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
26243 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26244 (s390_preferred_reload_class): Make static. Change return and
26245 'rclass' argument type to reg_class_t.
26246
26247 2011-01-27 Jan Hubicka <jh@suse.cz>
26248
26249 PR middle-end/46949
26250 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26251 (process_function_and_variable_attributes): Check defined weakrefs.
26252
26253 2011-01-27 Martin Jambor <mjambor@suse.cz>
26254
26255 PR tree-optimization/47228
26256 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26257 build_ref_for_offset.
26258
26259 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26260
26261 * config/spu/spu-elf.h (ASM_SPEC): Remove.
26262
26263 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
26264
26265 PR rtl-optimization/46856
26266 * postreload.c (reload_combine_recognize_const_pattern): Do not
26267 separate cc0 setter and user on cc0 targets.
26268
26269 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
26270
26271 PR c/43082
26272 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26273 passed a VOID_TYPE expression, immediately emit an error and
26274 return error_mark_node.
26275
26276 2011-01-26 Jeff Law <law@redhat.com>
26277
26278 PR rtl-optimization/47464
26279 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26280 rather than may_trap_p as needed.
26281
26282 2011-01-26 DJ Delorie <dj@redhat.com>
26283
26284 PR rtl-optimization/46878
26285 * combine.c (insn_a_feeds_b): Check for the implicit cc0
26286 setter/user dependency as well.
26287
26288 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
26289
26290 PR rtl-optimization/44469
26291 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26292 after removing trivially dead basic blocks.
26293
26294 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26295
26296 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26297 * config/frv/frv.h (LINK_SPEC): Likewise.
26298 * config/i386/netware.h (LINK_SPEC): Likewise.
26299 * config/m68k/linux.h (ASM_SPEC): Likewise.
26300 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26301 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26302 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26303 * config/sparc/linux.h (ASM_SPEC): Likewise.
26304 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26305 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26306
26307 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26308
26309 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26310 * config/frv/frv.h (ASM_SPEC): Likewise.
26311 * config/m68k/linux.h (ASM_SPEC): Likewise.
26312 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26313 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26314 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26315 * config/sparc/linux.h (ASM_SPEC): Likewise.
26316 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26317 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26318
26319 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26320
26321 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26322 * config/frv/frv.h (LINK_SPEC): Likewise.
26323 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26324
26325 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26326
26327 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26328 * config/frv/frv.h (ASM_SPEC): Likewise.
26329 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
26330 * config/m68k/linux.h (ASM_SPEC): Likewise.
26331 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26332 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26333 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26334 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
26335 * config/sparc/linux.h (ASM_SPEC): Likewise.
26336 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26337 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26338 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
26339
26340 2011-01-26 Steve Ellcey <sje@cup.hp.com>
26341
26342 PR target/46997
26343 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
26344 (*mux2): Ditto.
26345 (vec_extract_evenodd_help): Ditto.
26346 (vec_extract_evenv4hi): Ditto.
26347 (vec_extract_oddv4hi): Ditto.
26348 (vec_interleave_lowv2si): Ditto.
26349 (vec_interleave_highv2si): Ditto.
26350 (vec_extract_evenv2si): Ditto.
26351 (vec_extract_oddv2si: Ditto.
26352 (vec_pack_trunc_v2si): Ditto.
26353
26354 2011-01-22 Jan Hubicka <jh@suse.cz>
26355
26356 PR target/47237
26357 * cgraph.h (cgraph_local_info): New field can_change_signature.
26358 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
26359 signature can change.
26360 (ipcp_estimate_growth): Call sequence simplify only if calle signature
26361 can change.
26362 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
26363 (cgraph_function_versioning): We can not change signature of functions
26364 that don't allow that.
26365 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
26366 (lto_input_node): Likewise.
26367 * ipa-inline.c (compute_inline_parameters): Compute
26368 local.can_change_signature.
26369 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
26370 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
26371 functions that can not change signature.
26372 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
26373 init_cumulative_args): Do not use local calling conventions
26374 for functions that can not change signature.
26375
26376 2011-01-22 Jan Hubicka <jh@suse.cz>
26377
26378 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
26379
26380 2011-01-26 Richard Guenther <rguenther@suse.de>
26381
26382 PR tree-optimization/47190
26383 * cgraphunit.c (process_common_attributes): New function.
26384 (process_function_and_variable_attributes): Use it.
26385
26386 2011-01-26 Richard Guenther <rguenther@suse.de>
26387
26388 PR lto/47423
26389 * cgraphbuild.c (record_eh_tables): Record reference to personality
26390 function.
26391
26392 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
26393
26394 PR debug/45454
26395 * sel-sched.c (moveup_expr): Don't let debug insns prevent
26396 non-debug insns from moving up.
26397
26398 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26399
26400 PR target/40125
26401 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
26402 t-dlldir{,-x} fragment for build and add it to tmake_file.
26403 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
26404 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
26405 * config/i386/t-dlldir: New file.
26406 (SHLIB_DLLDIR): Define.
26407 * config/i386/t-dlldir-x: New file.
26408 (SHLIB_DLLDIR): Define.
26409 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
26410 (SHLIB_INSTALL): Use it.
26411
26412 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
26413
26414 PR target/47246
26415 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
26416 lower bound of the allowed Thumb-2 coprocessor load/store
26417 index range to -256. Add explaining comment.
26418
26419 2011-01-25 Ian Lance Taylor <iant@google.com>
26420
26421 * godump.c (go_define): Improve lexing of macro expansion to only
26422 accept expressions which match Go spec.
26423
26424 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26425
26426 PR c++/43601
26427 * tree.c (handle_dll_attribute): Handle it.
26428 * doc/extend.texi (@item dllexport): Mention it.
26429 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
26430
26431 2011-01-25 Ian Lance Taylor <iant@google.com>
26432
26433 PR tree-optimization/26854
26434 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
26435 (decl_jump_unsafe): Move higher in file, with no other change.
26436 (bind): Set has_jump_unsafe_decl if appropriate.
26437 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
26438 (check_earlier_gotos): Likewise.
26439 (c_check_switch_jump_warnings): Likewise.
26440
26441 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
26442
26443 * doc/invoke.texi (Warning Options): Add missing hyphen.
26444 (-fprofile-dir): Minor grammatical fixes.
26445 (-fbranch-probabilities): Likewise.
26446
26447 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26448
26449 PR debug/45136
26450 PR debug/45130
26451 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26452 debug insns.
26453 (no_real_insns_p, schedule_block, set_priorities): Drop special
26454 treatment of boundary debug insns.
26455 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26456 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26457 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26458 (BOUNDARY_DEBUG_INSN_P): Likewise.
26459 (SCHEDULE_DEBUG_INSN_P): Likewise.
26460 * sched-rgn.c (init_ready_list): Drop special treatment of
26461 boundary debug insns.
26462 * final.c (rest_of_clean-state): Clear notes' BB.
26463
26464 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26465
26466 * Makefile.in (LAMBDA_H): Removed.
26467 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
26468 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
26469 lambda-trans.o, and tree-loop-linear.o.
26470 (lto-symtab.o): Remove dependence on LAMBDA_H.
26471 (tree-loop-linear.o): Remove rule.
26472 (lambda-mat.o): Same.
26473 (lambda-trans.o): Same.
26474 (lambda-code.o): Same.
26475 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
26476 (tree-vect-slp.o): Same.
26477 * hwint.h (gcd): Moved here.
26478 (least_common_multiple): Same.
26479 * lambda-code.c: Removed.
26480 * lambda-mat.c: Removed.
26481 * lambda-trans.c: Removed.
26482 * lambda.h: Removed.
26483 * tree-loop-linear.c: Removed.
26484 * lto-symtab.c: Do not include lambda.h.
26485 * omega.c (gcd): Removed.
26486 * passes.c (init_optimization_passes): Remove pass_linear_transform.
26487 * tree-data-ref.c (print_lambda_vector): Moved here.
26488 (lambda_vector_copy): Same.
26489 (lambda_matrix_copy): Same.
26490 (lambda_matrix_id): Same.
26491 (lambda_vector_first_nz): Same.
26492 (lambda_matrix_row_add): Same.
26493 (lambda_matrix_row_exchange): Same.
26494 (lambda_vector_mult_const): Same.
26495 (lambda_vector_negate): Same.
26496 (lambda_matrix_row_negate): Same.
26497 (lambda_vector_equal): Same.
26498 (lambda_matrix_right_hermite): Same.
26499 * tree-data-ref.h: Do not include lambda.h.
26500 (lambda_vector): Moved here.
26501 (lambda_matrix): Same.
26502 (dependence_level): Same.
26503 (lambda_transform_legal_p): Removed declaration.
26504 (lambda_collect_parameters): Same.
26505 (lambda_compute_access_matrices): Same.
26506 (lambda_vector_gcd): Same.
26507 (lambda_vector_new): Same.
26508 (lambda_vector_clear): Same.
26509 (lambda_vector_lexico_pos): Same.
26510 (lambda_vector_zerop): Same.
26511 (lambda_matrix_new): Same.
26512 * tree-flow.h (least_common_multiple): Removed declaration.
26513 * tree-parloops.c (lambda_trans_matrix): Moved here.
26514 (LTM_MATRIX): Same.
26515 (LTM_ROWSIZE): Same.
26516 (LTM_COLSIZE): Same.
26517 (LTM_DENOMINATOR): Same.
26518 (lambda_trans_matrix_new): Same.
26519 (lambda_matrix_vector_mult): Same.
26520 (lambda_transform_legal_p): Same.
26521 * tree-pass.h (pass_linear_transform): Removed declaration.
26522 * tree-ssa-loop.c (tree_linear_transform): Removed.
26523 (gate_tree_linear_transform): Removed.
26524 (pass_linear_transform): Removed.
26525 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
26526 flag_loop_interchange.
26527
26528 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26529
26530 PR tree-optimization/47265
26531 PR tree-optimization/47443
26532 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
26533 if name still has some uses.
26534
26535 2011-01-25 Martin Jambor <mjambor@suse.cz>
26536
26537 PR tree-optimization/47382
26538 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
26539 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
26540
26541 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
26542
26543 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
26544 sjlj_except_unwind_info.
26545
26546 2011-01-25 Richard Guenther <rguenther@suse.de>
26547
26548 PR tree-optimization/47426
26549 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
26550 visible functions results escape.
26551
26552 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26553
26554 PR target/45701
26555 * config/arm/arm.c (any_sibcall_uses_r3): New function.
26556 (arm_get_frame_offsets): Use it.
26557
26558 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26559 Jakub Jelinek <jakub@redhat.com>
26560
26561 PR tree-optimization/47271
26562 * tree-if-conv.c (bb_postdominates_preds): New.
26563 (if_convertible_bb_p): Call bb_postdominates_preds.
26564 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26565 (predicate_scalar_phi): Call bb_postdominates_preds.
26566
26567 2011-01-25 Nick Clifton <nickc@redhat.com>
26568
26569 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26570 * config/rx/rx.c (rx_function_value): Likewise.
26571 (rx_promote_function_mode): Likewise.
26572 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26573 in order to make it legitimate.
26574 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26575 make sure that the first operand is the same as the result register.
26576 (addsi3_unspec): Delete.
26577 (subdi3): Do not accept immediate operands.
26578 (subdi3_internal): Likewise.
26579
26580 2011-01-25 Jeff Law <law@redhat.com>
26581
26582 PR rtl-optimization/37273
26583 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26584 handle them like argument loads from stack slots. Do not double
26585 count memory for memory constants and argument loads from stack slots.
26586
26587 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26588
26589 PR tree-optimization/47427
26590 PR tree-optimization/47428
26591 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26592 coalesce if the new root var would be TREE_READONLY.
26593
26594 2011-01-25 Richard Guenther <rguenther@suse.de>
26595
26596 PR middle-end/47414
26597 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26598 correct type for TBAA.
26599
26600 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26601
26602 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26603 (close_phi_written_to_memory): Call for_each_index with
26604 dr_indices_valid_in_loop.
26605
26606 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26607
26608 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26609 when it is initialized.
26610
26611 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26612
26613 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26614 call to graphite_find_data_references_in_stmt.
26615 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26616 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
26617 call to graphite_find_data_references_in_stmt.
26618 (analyze_drs_in_stmts): Same.
26619 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26620 in which the scalar analysis of indices is performed.
26621 (create_data_ref): Same. Update call to dr_analyze_indices.
26622 (find_data_references_in_stmt): Update call to create_data_ref.
26623 (graphite_find_data_references_in_stmt): Same.
26624 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26625 declaration.
26626 (create_data_ref): Same.
26627 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26628 call to create_data_ref.
26629
26630 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26631
26632 * graphite-sese-to-poly.c (build_poly_scop): Move
26633 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26634
26635 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26636
26637 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26638 VAR_DECL, PARM_DECL, and RESULT_DECL.
26639
26640 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26641
26642 * graphite-dependences.c (reduction_dr_1): Allow several reductions
26643 in a reduction PBB.
26644 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26645 that have already been marked as PBB_IS_REDUCTION.
26646
26647 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26648
26649 * graphite-scop-detection.c (same_close_phi_node): New.
26650 (remove_duplicate_close_phi): New.
26651 (make_close_phi_nodes_unique): New.
26652 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26653
26654 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26655
26656 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26657 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26658 of both data references to be the same.
26659
26660 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26661
26662 * graphite-dependences.c (build_lexicographical_constraint): Remove
26663 the gdim parameter.
26664 (build_lexicographical_constraint): Adjust call to
26665 ppl_powerset_is_empty.
26666 (dependence_polyhedron): Same.
26667 (graphite_legal_transform_dr): Same.
26668 (graphite_carried_dependence_level_k): Same.
26669 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26670 parameter.
26671 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26672
26673 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26674
26675 * graphite-sese-to-poly.c
26676 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26677 (close_phi_written_to_memory): New.
26678 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26679 and unshare_expr.
26680
26681 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26682
26683 * doc/install.texi: Update the expected version number of PPL to 0.11.
26684 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26685 #if PPL_VERSION_MINOR < 11.
26686
26687 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26688
26689 * graphite-dependences.c: Include graphite-cloog-util.h.
26690 (new_poly_ddr): Inlined into dependence_polyhedron.
26691 (free_poly_ddr): Moved close by new_poly_ddr.
26692 (dependence_polyhedron_1): Renamed dependence_polyhedron.
26693 Early return NULL when ppl_powerset_is_empty returns true.
26694 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
26695 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
26696 (graphite_legal_transform_dr): Call new_poly_ddr.
26697 (graphite_carried_dependence_level_k): Same.
26698 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
26699 (dot_transformed_deps_stmt_1): Removed.
26700 (dot_deps_stmt_1): Call dot_deps_stmt_2.
26701 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
26702 (dot_deps_1): Call dot_deps_2.
26703 * Makefile.in (graphite-dependences.o): Add missing dependence on
26704 graphite-cloog-util.h.
26705
26706 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26707
26708 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26709 (build_lexicographical_constraint): Same.
26710 (dependence_polyhedron_1): Same.
26711 (graphite_legal_transform_dr): Same.
26712 (graphite_carried_dependence_level_k): Same.
26713 * graphite-ppl.c (ppl_powerset_is_empty): New.
26714 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26715 * tree-data-ref.c (dump_data_reference): Print the basic block index.
26716
26717 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26718
26719 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26720 the "a followed by b" relation and document it.
26721
26722 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26723
26724 * graphite-dependences.c (build_lexicographical_constraint): Stop the
26725 iteration when the bag of constraints is empty.
26726
26727 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26728
26729 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26730
26731 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26732
26733 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26734 nest and two loop depths as parameters.
26735 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26736 lst_perfect_nestify.
26737
26738 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26739
26740 * graphite-dependences.c (print_pddr): Call
26741 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26742
26743 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26744
26745 * graphite-ppl.c (debug_gmp_value): New.
26746 * graphite-ppl.h (debug_gmp_value): Declared.
26747
26748 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
26749
26750 * doc/install.texi: Document availability of cloog-0.16.
26751
26752 2011-01-25 Vladimir Kargov <kargov@gmail.com>
26753
26754 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26755 invalid postdominance info.
26756
26757 2011-01-24 Jan Hubicka <jh@suse.cz>
26758
26759 PR c/21659
26760 * doc/extend.texi (weak pragma): Drop claim that it must
26761 appear before definition.
26762 * varasm.c (merge_weak, declare_weak): Only sanity check
26763 that DECL is not output at a time it is declared weak.
26764
26765 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
26766
26767 * machmode.def: Fixed comments.
26768
26769 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
26770
26771 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26772
26773 2011-01-24 Paul Koning <ni1d@arrl.net>
26774
26775 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26776 WORDS_BIG_ENDIAN.
26777
26778 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
26779
26780 PR target/46519
26781 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
26782 (block_info): Add scanned and prev.
26783 (move_or_delete_vzeroupper_2): Return if the basic block
26784 has been scanned and the upper 128bit state is unchanged
26785 from the last scan.
26786 (move_or_delete_vzeroupper_1): Return true if the exit
26787 state is changed.
26788 (move_or_delete_vzeroupper): Visit basic blocks using the
26789 work-list based algorithm based on vt_find_locations in
26790 var-tracking.c.
26791
26792 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
26793
26794 2011-01-24 Nick Clifton <nickc@redhat.com>
26795
26796 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
26797 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
26798 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
26799 then define __v850e1__.
26800 * doc/invoke.texi: Document -mv850es.
26801
26802 2011-01-24 Richard Henderson <rth@redhat.com>
26803
26804 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
26805 compound unordered comparisons.
26806 * config/rx/rx.c (rx_split_fp_compare): Remove.
26807 * config/rx/rx-protos.h: Update.
26808 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
26809 (cbranchsf4): Don't call rx_split_fp_compare.
26810 (*cbranchsf4): Use rx_split_cbranch.
26811 (*cmpsf): Don't accept "i" constraint.
26812 (*conditional_branch): Only valid after reload.
26813 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
26814
26815 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26816
26817 PR target/47385
26818 * config/rs6000/altivec.md (vector constant splitters): Add
26819 support for creating vector single precision constants if -mvsx is
26820 used and we would create the constant using Altivec primitives.
26821
26822 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
26823 Richard Sandiford <rdsandiford@googlemail.com>
26824
26825 PR rtl-optimization/47166
26826 * reload1.c (emit_reload_insns): Disable the spill_reg_store
26827 mechanism for PRE_MODIFY and POST_MODIFY.
26828 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
26829 reloadreg.
26830
26831 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
26832
26833 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
26834
26835 2011-01-22 Jan Hubicka <jh@suse.cz>
26836
26837 PR lto/47333
26838 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
26839
26840 2011-01-22 Jan Hubicka <jh@suse.cz>
26841
26842 PR tree-optimization/43884
26843 PR lto/44334
26844 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26845 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26846
26847 2011-01-22 Anatoly Sokolov <aesok@post.ru>
26848
26849 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26850 * config/s390/s390.c (s390_register_move_cost,
26851 s390_memory_move_cost): New.
26852 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26853
26854 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26855
26856 PR middle-end/47401
26857 * except.c (sjlj_assign_call_site_values): Move setting the
26858 crtl->uses_eh_lsda flag to ...
26859 (sjlj_mark_call_sites): ... here.
26860 (sjlj_emit_function_enter): Support NULL dispatch label.
26861 (sjlj_build_landing_pads): In a function with no landing pads
26862 that still has must-not-throw regions, generate code to register
26863 a personality function with empty LSDA.
26864
26865 2011-01-21 Richard Henderson <rth@redhat.com>
26866
26867 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26868
26869 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26870
26871 * compare-elim.c: New file.
26872 * Makefile.in (OBJS-common): Add it.
26873 (compare-elim.o): New.
26874 * common.opt (fcompare-elim): New.
26875 * opts.c (default_options_table): Add OPT_fcompare_elim.
26876 * tree-pass.h (pass_compare_elim_after_reload): New.
26877 * passes.c (init_optimization_passes): Add it.
26878 * recog.h: Protect against re-inclusion.
26879 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26880 * doc/invoke.texi (-fcompare-elim): Document it.
26881 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26882 * doc/tm.texi: Rebuild.
26883
26884 2011-01-22 Nick Clifton <nickc@redhat.com>
26885
26886 * config/rx/rx.md (cstoresf4): Pass comparison operator to
26887 rx_split_fp_compare.
26888
26889 2011-01-22 Nick Clifton <nickc@redhat.com>
26890
26891 * config/rx/rx.md (UNSPEC_CONST): New.
26892 (deallocate_and_return): Wrap the amount popped off the stack in
26893 an UNSPEC_CONST in order to stop it being rejected by
26894 -mmax-constant-size.
26895 (pop_and_return): Add a "(return)" rtx.
26896 (call): Drop the immediate operand.
26897 (call_internal): Likewise.
26898 (call_value): Likewise.
26899 (call_value_internal): Likewise.
26900 (sibcall_internal): Likewise.
26901 (sibcall_value_internal): Likewise.
26902 (sibcall): Likewise. Generate an explicit call using
26903 sibcall_internal.
26904 (sibcall_value): Likewise.
26905 (mov<>): FAIL if a constant operand is not legitimate.
26906 (addsi3_unpsec): New pattern.
26907
26908 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26909 (ok_for_max_constant): New function.
26910 (gen_safe_add): New function.
26911 (rx_expand_prologue): Use gen_safe_add.
26912 (rx_expand_epilogue): Likewise.
26913 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
26914 UNSPEC CONSTs.
26915
26916 2011-01-21 Jeff Law <law@redhat.com>
26917
26918 PR tree-optimization/47053
26919 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26920 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26921 statements are deleted.
26922 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
26923 is nonempty, then purge dead edges and cleanup the CFG.
26924
26925 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26926
26927 PR debug/47402
26928 Temporarily revert:
26929 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26930 PR debug/47106
26931 * tree-dfa.c (create_var_ann): Mark variable as used.
26932
26933 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26934
26935 PR middle-end/45566
26936 * except.c (convert_to_eh_region_ranges): Emit queued no-region
26937 notes from other section in hot/cold partitioning even if
26938 last_action is -3. Increment call_site_base.
26939
26940 PR rtl-optimization/47366
26941 * fwprop.c (forward_propagate_into): Return bool. If
26942 any changes are made, -fnon-call-exceptions is used and
26943 REG_EH_REGION note is present, call purge_dead_edges
26944 and return true if it purged anything.
26945 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26946 any EH edges were purged.
26947
26948 2011-01-21 Jeff Law <law@redhat.com>
26949
26950 PR rtl-optimization/41619
26951 * caller-save.c (setup_save_areas): Break out code to determine
26952 which hard regs are live across calls by examining the reload chains
26953 so that it is always used.
26954 Eliminate code which checked REG_N_CALLS_CROSSED.
26955
26956 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26957
26958 PR tree-optimization/47355
26959 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26960 NOP has non-debug uses beyond PHIs in new_bb.
26961
26962 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26963
26964 PR debug/47106
26965 * cfgexpand.c (account_used_vars_for_block): Only account vars
26966 that are annotated as used.
26967 (estimated_stack_frame_size): Don't set TREE_USED.
26968 * tree-dfa.c (create_var_ann): Mark variable as used.
26969
26970 2011-01-21 Richard Guenther <rguenther@suse.de>
26971
26972 PR middle-end/47395
26973 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26974
26975 2011-01-21 Richard Guenther <rguenther@suse.de>
26976
26977 PR tree-optimization/47365
26978 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26979 (vn_reference_lookup_pieces): Adjust.
26980 (vn_reference_lookup): Likewise.
26981 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26982 (vn_reference_lookup_3): Only look through kills if in
26983 VN_WALKREWRITE mode.
26984 (vn_reference_lookup_pieces): Adjust.
26985 (vn_reference_lookup): Likewise.
26986 (visit_reference_op_load): Likewise.
26987 (visit_reference_op_store): Likewise.
26988 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26989 (compute_avail): Likewise.
26990 (eliminate): Likewise.
26991
26992 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26993
26994 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26995 DECL_IGNORED_P non-reg vars if they are used.
26996
26997 PR tree-optimization/47391
26998 * varpool.c (const_value_known_p): Return false if
26999 decl is volatile.
27000
27001 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
27002
27003 PR bootstrap/47215
27004 * config/i386/i386.c (ix86_local_alignment): Handle
27005 case for va_list_type_node is nil.
27006 (ix86_canonical_va_list_type): Likewise.
27007
27008 2011-01-21 Alan Modra <amodra@gmail.com>
27009
27010 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
27011 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
27012
27013 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27014
27015 * config/arm/arm.md (define_attr type): Rename f_load
27016 and f_store to f_fpa_load and f_fpa_store. Update.
27017 (write_conflict): Deal with rename fallout.
27018 (*push_fp_multi): Likewise.
27019 * config/arm/fpa.md (f_load): Use f_fpa_load.
27020 (f_store): Use f_fpa_store.
27021 (*movsf_fpa): Likewise.
27022 (*movdf_fpa): Likewise.
27023 (*movxf_fpa): Likewise.
27024 (*thumb2_movsf_fpa): Likewise.
27025 (*thumb2_movdf_fpa): Likewise.
27026 (*thumb2_movxf_fpa): Likewise.
27027 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
27028 f_loadd and f_stored.
27029 (*thumb2_movdi_vfp): Likewise.
27030 (*thumb2_movsf_vfp): Fix attribute to f_loads.
27031 (*thumb2_movsi_vfp): Likewise.
27032 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
27033 Use f_loads instead of f_load.
27034 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
27035
27036 2011-01-20 Anatoly Sokolov <aesok@post.ru>
27037
27038 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27039 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
27040 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27041 (xtensa_mode_dependent_address_p): New function.
27042 (constantpool_address_p): Make static. Change return type to bool.
27043 Change argument type to const_rtx. Use CONST_INT_P predicate.
27044
27045 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
27046
27047 PR debug/46583
27048 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
27049
27050 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27051
27052 PR debug/47283
27053 * cfgexpand.c (expand_debug_expr): Instead of generating
27054 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
27055 etc. handling.
27056
27057 2011-01-20 Richard Guenther <rguenther@suse.de>
27058
27059 PR middle-end/47370
27060 * tree-inline.c (remap_gimple_op_r): Recurse manually for
27061 the pointer operand of MEM_REFs.
27062
27063 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27064
27065 PR tree-optimization/46130
27066 * ipa-split.c (consider_split): If return_bb contains non-virtual
27067 PHIs other than for retval or if split_function would not adjust it,
27068 refuse to split.
27069
27070 2011-01-20 Richard Guenther <rguenther@suse.de>
27071
27072 PR tree-optimization/47167
27073 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
27074 Revert previous change, only avoid enumeral type changes.
27075
27076 2011-01-19 Mike Stump <mikestump@comcast.net>
27077
27078 * doc/tm.texi.in (BRANCH_COST): Englishify.
27079 * doc/tm.texi (BRANCH_COST): Likewise.
27080
27081 2011-01-19 Dodji Seketeli <dodji@redhat.com>
27082
27083 PR c++/47291
27084 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
27085 (gen_scheduled_generic_parms_dies): New functions.
27086 (gen_struct_or_union_type_die): Schedule template parameters DIEs
27087 generation for the end of CU compilation.
27088 (dwarf2out_finish): Generate template parameters DIEs here.
27089
27090 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27091
27092 PR debug/46240
27093 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
27094 debug bind stmt on merge edges.
27095
27096 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27097
27098 PR debug/47079
27099 PR debug/46724
27100 * function.c (instantiate_expr): Instantiate incoming rtl of
27101 implicit arguments, and recurse on VALUE_EXPRs.
27102 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
27103 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
27104
27105 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27106
27107 * c-parser.c (c_parser_for_statement): Initialize
27108 collection_expression.
27109
27110 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27111
27112 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
27113
27114 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27115
27116 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
27117 (LINK_SHLIB_SPEC): Don't use %(link_path).
27118 (SUBTARGET_EXTRA_SPECS): Remove link_path.
27119
27120 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27121
27122 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
27123 (NO_SHARED_LIB_SUPPORT): Remove.
27124 (LINK_SHLIB_SPEC): Remove one conditional definition.
27125
27126 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27127
27128 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
27129 %{call_shared}.
27130 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
27131 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
27132 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
27133 %{call_shared} and conditionals on these options not being passed.
27134 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
27135 %{call_shared}.
27136
27137 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27138
27139 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
27140 simplify.
27141
27142 * ipa-split.c: Spelling fixes.
27143
27144 2011-01-19 Richard Henderson <rth@redhat.com>
27145
27146 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
27147 (*mulsi3): Likewise.
27148
27149 * longlong.h [__mn10300__] (count_leading_zeros): New.
27150 [__mn10300__] (umul_ppmm, smul_ppmm): New.
27151 [__mn10300__] (add_ssaaaa, subddmmss): New.
27152 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
27153 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
27154
27155 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27156
27157 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
27158
27159 2011-01-19 Richard Henderson <rth@redhat.com>
27160
27161 * config/mn10300/mn10300.md (addsi3_flags): New.
27162 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
27163 (subsi3_flags, subc_internal, subdi3): New.
27164 (subdi3_internal, *subdi3_degenerate): New.
27165 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
27166
27167 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
27168 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
27169 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
27170 * config/mn10300/mn10300-protos.h: Update.
27171 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
27172 (return_ret): Likewise. Rename from return_internal_regs.
27173 (return_internal): Remove.
27174
27175 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
27176 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
27177 (mn10300_legitimate_constant_p): Likewise.
27178 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
27179 (mn10300_frame_size): New.
27180 (mn10300_expand_prologue): Use it.
27181 (mn10300_expand_epilogue): Likewise.
27182 (mn10300_initial_offset): Likewise.
27183 * config/mn10300/mn10300-protos.h: Update.
27184 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
27185 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
27186 (prologue, epilogue, return_internal): Tidy output code.
27187 (mn10300_store_multiple_operation, return): Likewise.
27188 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
27189 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
27190 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
27191 (load_pic, am33_load_pic): New.
27192 (mn10300_load_pic0, mn10300_load_pic1): New.
27193
27194 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
27195 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
27196 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
27197 (cc_flags_for_mode, cc_flags_for_code): New.
27198 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
27199 overflow flag is not valid. Validate that the flags we need
27200 for the comparison are valid.
27201 (mn10300_output_cmp): Remove.
27202 (mn10300_output_add): New.
27203 (mn10300_select_cc_mode): Use cc_flags_for_code.
27204 (mn10300_split_cbranch): New.
27205 (mn10300_match_ccmode): New.
27206 (mn10300_split_and_operand_count): New.
27207 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
27208 to the function.
27209 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
27210 (addsi3): ... here. Use mn10300_output_add.
27211 (*addsi3_flags): New.
27212 (*am33_subsi3, *mn10300_subsi3): Merge...
27213 (subsi3): ... here. Use attribute isa.
27214 (*subsi3_flags): New.
27215 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
27216 when possible.
27217 (*am33_andsi3, *mn10300_andsi3): Merge...
27218 (andsi3): ... here.
27219 (*andsi3_flags): New.
27220 (andsi3 splitters): New.
27221 (*am33_iorsi3, *mn10300_iorsi3): Merge...
27222 (iorsi3): ... here.
27223 (*iorsi3_flags): New.
27224 (*am33_xorsi3, *mn10300_xorsi3): Merge...
27225 (xorsi3): ... here.
27226 (*xorsi3_flags): New.
27227 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
27228 (one_cmplsi2): ... here.
27229 (*one_cmplsi2_flags): New.
27230 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
27231 instead of "dax" in constraints. Use mn10300_split_cbranch.
27232 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
27233 use matching constraints to eliminate a self-comparison.
27234 (*integer_conditional_branch): Rename from integer_conditional_branch.
27235 Use int_mode_flags to match CC_REG.
27236 (*cbranchsi4_btst, *btstsi): New.
27237 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
27238 mn10300_split_cbranch.
27239 (*am33_cmpsf): Rename from am33_cmpsf.
27240 (*float_conditional_branch): Rename from float_conditional_branch.
27241 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
27242 (zero_extendqisi2): ... here.
27243 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
27244 (zero_extendhisi2): ... here.
27245 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
27246 (extendqisi2): ... here.
27247 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27248 (extendhisi2): ... here.
27249 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27250 (ashlsi3): ... here.
27251 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27252 (lshrsi3): ... here.
27253 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27254 (ashrsi3): ... here.
27255 (consecutive add peephole): Remove.
27256 * config/mn10300/predicates.md (label_ref_operand): New.
27257 (int_mode_flags): New.
27258 (CCZN_comparison_operator): New.
27259
27260 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27261 (throughput_42_latency_43): New reservation.
27262 (mulsidi3, umulsidi3): New expanders.
27263 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
27264 the MDR register to allocation; separately allocate the low and
27265 high parts of the DImode result.
27266 (umulsidi3_internal): Similarly.
27267 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27268 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
27269 (udivsi3, umodsi3): Remove.
27270 (udivmodsi4, divmodsi4): New expanders.
27271 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
27272 (*divmodsi4): Simiarly.
27273 (ext_internal): New.
27274
27275 * config/mn10300/constraints.md ("z"): New constraint.
27276 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27277 (FIXED_REGISTERS): Don't fix MDR.
27278 (CALL_USED_REGSITERS): Reformat nicely.
27279 (REG_ALLOC_ORDER): Add MDR.
27280 (enum regclass): Add MDR_REGS.
27281 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27282 (IRA_COVER_CLASSES): Add MDR_REGS.
27283 (REGNO_REG_CLASS): Handle MDR_REG.
27284 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27285 (mn10300_register_move_cost): Likewise.
27286 * config/mn10300/mn10300.md (MDR_REG): New.
27287 (*movsi_internal): Handle moves to/from MDR_REGS.
27288
27289 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27290 POST_MODIFY.
27291 (mn10300_secondary_reload): Tidy combination reload classes.
27292 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27293 addresses for AM33. Allow symbolic offsets for reg+imm.
27294 (mn10300_regno_in_class_p): New.
27295 (mn10300_legitimize_reload_address): New.
27296 * config/mn10300/mn10300.h (enum reg_class): Remove
27297 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27298 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
27299 SP_OR_GENERAL_REGS.
27300 (REG_CLASS_NAMES): Update to match.
27301 (REG_CLASS_CONTENTS): Likewise.
27302 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27303 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27304 (REGNO_IN_RANGE_P): Remove.
27305 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27306 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27307 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27308 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27309 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27310 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27311 (REGNO_GENERAL_P): New.
27312 (HAVE_POST_MODIFY_DISP): New.
27313 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27314 (LEGITIMIZE_RELOAD_ADDRESS): New.
27315 * config/mn10300/mn10300-protos.h: Update.
27316
27317 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27318 DATA_REGS for AM33 stack-pointer destination.
27319 (mn10300_preferred_output_reload_class): Likewise.
27320 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27321 into a form appropriate for ...
27322 (TARGET_SECONDARY_RELOAD): New.
27323 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27324 * config/mn10300/mn10300-protos.h: Update.
27325 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27326 reload_insi; use the "A" constraint for the scratch; handle AM33
27327 moves of sp to non-address registers.
27328
27329 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
27330 (*movqi_internal): ... here.
27331 (*am33_movhi, *mn10300_movhi): Merge into...
27332 (*movhi_internal): ... here.
27333 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
27334 as the source/destination of moves from/to SP.
27335 (movsf): Only allow for AM33-2.
27336 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
27337 any integer constant constraint. Only allow for AM33-2. Tidy
27338 all of the alternative outputs.
27339 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
27340 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
27341 for MN103.
27342 (udivsi3, umodsi3): New patterns for MN103 only.
27343
27344 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
27345
27346 * doc/tm.texi.in: Spell out that a lack of register class unions
27347 can lead to ICEs.
27348 * doc/tm.texi: Regenerate.
27349
27350 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27351
27352 PR rtl-optimization/47337
27353 * dce.c (check_argument_store): New function.
27354 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
27355
27356 PR tree-optimization/47290
27357 * tree-eh.c (infinite_empty_loop_p): New function.
27358 (cleanup_empty_eh): Use it.
27359
27360 2011-01-18 Steve Ellcey <sje@cup.hp.com>
27361
27362 PR target/46997
27363 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
27364 (a64_expand_widen_sum): Ditto.
27365 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
27366 (vec_extract_evenodd_help): Ditto.
27367 (vec_extract_evenv4hi): Ditto.
27368 (vec_extract_oddv4hi): Ditto.
27369 (vec_extract_evenv2si): Ditto.
27370 (vec_extract_oddv2si): Ditto.
27371 (vec_extract_evenv2sf): Ditto.
27372 (vec_extract_oddv2sf): Ditto.
27373 (vec_pack_trunc_v4hi: Ditto.
27374 (vec_pack_trunc_v2si): Ditto.
27375 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
27376 (vec_interleave_highv8qi): Ditto.
27377 (mix1_r): Ditto.
27378 (vec_extract_oddv8qi): Ditto.
27379 (vec_interleave_lowv4hi): Ditto.
27380 (vec_interleave_highv4hi): Ditto.
27381 (vec_interleave_lowv2si): Ditto.
27382 (vec_interleave_highv2si): Ditto.
27383
27384 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27385
27386 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
27387 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
27388 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
27389 (pa_c_mode_for_suffix): New.
27390 (TARGET_EXPAND_BUILTIN): Define.
27391 (TARGET_C_MODE_FOR_SUFFIX): Define.
27392 (pa_builtins): Define.
27393 (pa_init_builtins): Register __float128 type and init new support
27394 builtins.
27395 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
27396 * config/pa/quadlib.c (_U_Qfcopysign): New.
27397
27398 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
27399
27400 PR middle-end/46894
27401 * explow.c (allocate_dynamic_stack_space): Do not assume more than
27402 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
27403 are defined.
27404
27405 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27406
27407 PR tree-optimization/47179
27408 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
27409 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
27410
27411 2011-01-18 Richard Guenther <rguenther@suse.de>
27412
27413 PR rtl-optimization/47216
27414 * emit-rtl.c: Include tree-flow.h.
27415 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
27416 of replicating it with different semantics.
27417 * Makefile.in (emit-rtl.o): Adjust.
27418
27419 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27420
27421 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
27422 (cortex_a9_dp): Handle neon types correctly.
27423
27424 2011-01-18 Jakub Jelinek <jakub@redhat.com>
27425
27426 PR rtl-optimization/47299
27427 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
27428 subtarget. Use normal multiplication if both operands are constants.
27429 * expmed.c (expand_widening_mult): Don't try to optimize constant
27430 multiplication if op0 has VOIDmode. Convert op1 constant to mode
27431 before using it.
27432
27433 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27434
27435 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
27436 spacing after 'e.g.', typos, comma, hyphenation.
27437
27438 2011-01-17 Richard Henderson <rth@redhat.com>
27439
27440 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
27441 (rx_restricted_mem_operand): New.
27442 (rx_shift_operand): Use register_operand.
27443 (rx_source_operand, rx_compare_operand): Likewise.
27444 * config/rx/rx.md (addsi3_flags): New expander.
27445 (adddi3): Rewrite as expander.
27446 (adc_internal, *adc_flags, adddi3_internal): New patterns.
27447 (subsi3_flags): New expander.
27448 (subdi3): Rewrite as expander.
27449 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
27450
27451 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
27452 (rx_init_builtins): Remove sat builtin.
27453 (rx_expand_builtin): Likewise.
27454 * config/rx/rx.md (ssaddsi3): New.
27455 (*sat): Rename from sat. Represent the CC_REG input.
27456
27457 * config/rx/predicates.md (rshift_operator): New.
27458 * config/rx/rx.c (rx_expand_insv): Remove.
27459 * config/rx/rx-protos.h: Update.
27460 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
27461 operand to the canonical position.
27462 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
27463 (*bitclr, *bitclr_in_memory): Similarly.
27464 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
27465 (insv): Retain the zero_extract in the expansion.
27466
27467 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
27468 (bswaphi2, bitinvert, revw): Likewise.
27469
27470 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
27471 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
27472 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
27473 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
27474 (bitset, bitset_in_memory): Likewise.
27475 (bitinvert, bitinvert_in_memory): Likewise.
27476 (bitclr, bitclr_in_memory): Likewise.
27477 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
27478 (rx_strend, rx_cmpstrn): Likewise.
27479 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
27480 (bitop peep2 patterns): Remove.
27481
27482 * config/rx/rx.c (rx_match_ccmode): New.
27483 * config/rx/rx-protos.h: Update.
27484 * config/rx/rx.md (abssi2): Clobber, don't set flags.
27485 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
27486 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
27487 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
27488 (fix_truncsfsi2, floatsisf2): Likewise.
27489 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
27490 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
27491 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
27492 (*subsi3_flags, *xorsi3_flags): New.
27493
27494 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
27495
27496 * config/rx/rx.c (rx_print_operand): Remove workaround for
27497 unsplit comparison operations.
27498
27499 * config/rx/rx.md (movsicc): Split after reload.
27500 (*movsicc): Merge *movsieq and *movsine via match_operator.
27501 (*stcc): New pattern.
27502
27503 * config/rx/rx.c (rx_float_compare_mode): Remove.
27504 * config/rx/rx.h (rx_float_compare_mode): Remove.
27505 * config/rx/rx.md (cstoresi4): Split after reload.
27506 (*sccc): New pattern.
27507
27508 * config/rx/predicates.md (label_ref_operand): New.
27509 (rx_z_comparison_operator): New.
27510 (rx_zs_comparison_operator): New.
27511 (rx_fp_comparison_operator): New.
27512 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
27513 Validate that the flags are set properly for the comparison.
27514 (rx_gen_cond_branch_template): Remove.
27515 (rx_cc_modes_compatible): Remove.
27516 (mode_from_flags): New.
27517 (flags_from_code): Rename from flags_needed_for_conditional.
27518 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
27519 (rx_select_cc_mode): Likewise.
27520 (rx_split_fp_compare): New.
27521 (rx_split_cbranch): New.
27522 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
27523 (*cbranchsi4): Use match_operator and rx_split_cbranch.
27524 (*cbranchsf4): Similarly.
27525 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
27526 match_operator and rx_split_cbranch.
27527 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
27528 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
27529 (*cmpsi): Rename from cmpsi.
27530 (*tstsi): Rename from tstsi.
27531 (*cmpsf): Rename from cmpsf; use CC_Fmode.
27532 (*conditional_branch): Rename from conditional_branch.
27533 (*reveresed_conditional_branch): Remove.
27534 (b<code>): Remove expander.
27535 * config/rx/rx-protos.h: Update.
27536
27537 * config/rx/rx.c (rx_compare_redundant): Remove.
27538 * config/rx/rx.md (cmpsi): Don't use it.
27539 * config/rx/rx-protos.h: Update.
27540
27541 * config/rx/rx-modes.def (CC_F): New mode.
27542 * config/rx/rx.c (rx_select_cc_mode): New.
27543 * config/rx/rx.h (SELECT_CC_MODE): Use it.
27544 * config/rx/rx-protos.h: Update.
27545
27546 2011-01-17 Richard Henderson <rth@redhat.com>
27547
27548 * except.c (dump_eh_tree): Fix stray ; after for statement.
27549
27550 2011-01-17 Richard Guenther <rguenther@suse.de>
27551
27552 PR tree-optimization/47313
27553 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
27554 handling before copying the body. Properly deal with
27555 by-reference result in SSA form.
27556
27557 2011-01-17 Ian Lance Taylor <iant@google.com>
27558
27559 PR target/47219
27560 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27561 (struct_value_alias_set): Don't define.
27562 (sparc_option_override): Don't set sparc_sr_alias_set and
27563 struct_value_alias_set.
27564 (save_or_restore_regs): Use gen_frame_mem rather than calling
27565 set_mem_alias_set.
27566 (sparc_struct_value_rtx): Likewise.
27567
27568 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
27569
27570 PR target/47318
27571 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27572 (_mm_maskstore_pd): Likewise.
27573 (_mm_maskload_ps): Likewise.
27574 (_mm_maskstore_ps): Likewise.
27575 (_mm256_maskload_pd): Change mask to __m256i.
27576 (_mm256_maskstore_pd): Likewise.
27577 (_mm256_maskload_ps): Likewise.
27578 (_mm256_maskstore_ps): Likewise.
27579
27580 * config/i386/i386-builtin-types.def: Updated.
27581 (ix86_expand_special_args_builtin): Likewise.
27582
27583 * config/i386/i386.c (bdesc_special_args): Update
27584 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27585 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27586 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27587 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27588
27589 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27590 Use <avxpermvecmode> on mask register.
27591 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27592
27593 2011-01-17 Olivier Hainque <hainque@adacore.com>
27594 Michael Haubenwallner <michael.haubenwallner@salomon.at>
27595 Eric Botcazou <ebotcazou@adacore.com>
27596
27597 PR target/46655
27598 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27599 if <= USHRT_MAX in 32-bit mode.
27600
27601 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27602
27603 * doc/install.texi (Configuration, Specific): Wrap long
27604 lines in examples. Allow line wrapping in long options
27605 and URLs where beneficial for PDF output.
27606
27607 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
27608
27609 * config/mips/mips.c (mips_classify_symbol): Don't return
27610 SYMBOL_PC_RELATIVE for nonlocal labels.
27611
27612 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
27613
27614 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27615
27616 2011-01-15 Jan Hubicka <jh@suse.cz>
27617
27618 PR tree-optimization/47276
27619 * ipa.c (function_and_variable_visibility): Do not try to mark alias
27620 declarations as needed.
27621
27622 2011-01-15 Martin Jambor <mjambor@suse.cz>
27623
27624 * common.opt (fdevirtualize): New flag.
27625 * doc/invoke.texi (Option Summary): Document it.
27626 * opts.c (default_options_table): Add devirtualize flag.
27627 * ipa-prop.c (detect_type_change): Return immediately if
27628 devirtualize flag is not set.
27629 (detect_type_change_ssa): Likewise.
27630 (compute_known_type_jump_func): Likewise.
27631 (ipa_analyze_virtual_call_uses): Likewise.
27632
27633 2011-01-14 Martin Jambor <mjambor@suse.cz>
27634
27635 PR tree-optimization/45934
27636 PR tree-optimization/46302
27637 * ipa-prop.c (type_change_info): New type.
27638 (stmt_may_be_vtbl_ptr_store): New function.
27639 (check_stmt_for_type_change): Likewise.
27640 (detect_type_change): Likewise.
27641 (detect_type_change_ssa): Likewise.
27642 (compute_complex_assign_jump_func): Check for dynamic type change.
27643 (compute_complex_ancestor_jump_func): Likewise.
27644 (compute_known_type_jump_func): Likewise.
27645 (compute_scalar_jump_functions): Likewise.
27646 (ipa_analyze_virtual_call_uses): Likewise.
27647 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27648
27649 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27650
27651 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27652 * config/i386/i386.opt (msse5): New Alias.
27653
27654 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27655
27656 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27657 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27658 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27659 * config/sparc/sparc.h (CC1_SPEC): Likewise.
27660
27661 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27662
27663 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27664 -mcpu options.
27665 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27666 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27667 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27668 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27669 Likewise.
27670 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27671
27672 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27673
27674 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27675
27676 2011-01-14 Mike Stump <mikestump@comcast.net>
27677
27678 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27679 * config/fr30/fr30.md: Likweise
27680 (movsi_push): Likewise.
27681 (movsi_pop): Likewise.
27682 (enter_func): Likewise.
27683 * config/moxie/moxie.md (movsi_push): Likewise.
27684 (movsi_pop): Likewise.
27685
27686 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27687
27688 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27689 %{no_archive} %{exact_version}.
27690 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27691 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27692 %{no_archive} %{exact_version}.
27693 * config/mips/openbsd.h (LINK_SPEC): Likewise.
27694 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27695 * config/mips/vxworks.h: Likewise.
27696
27697 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27698
27699 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27700
27701 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27702
27703 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27704 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27705
27706 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27707
27708 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27709 -nodefaultlib.
27710
27711 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27712
27713 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27714 for mcpu not cpu.
27715 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27716 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27717 not cpu.
27718 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27719 Don't handle -shlib.
27720
27721 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27722
27723 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27724 (CC1_SPEC): Don't handle -profile.
27725
27726 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27727
27728 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27729 * config/mips/mips.h (CC1_SPEC): Likewise.
27730
27731 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27732
27733 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27734 * config/mips/mips.h (CC1_SPEC): Likewise.
27735
27736 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27737
27738 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27739 * config/m32r/linux.h (LINK_SPEC): Likewise.
27740 * config/mips/linux.h (LINK_SPEC): Likewise.
27741 * config/mips/linux64.h (LINK_SPEC): Likewise.
27742 * config/sparc/linux.h (LINK_SPEC): Likewise.
27743 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27744 LINK_SPEC): Likewise.
27745 * config/xtensa/linux.h (LINK_SPEC): Likewise.
27746
27747 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27748
27749 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27750 %{version:-v}.
27751 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27752
27753 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27754
27755 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27756 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27757
27758 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27759
27760 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27761
27762 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27763
27764 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27765 supports -Bstatic/-Bdynamic.
27766 * configure: Regenerate.
27767
27768 2011-01-14 Jan Hubicka <jh@suse.cz>
27769 Jack Howarth <howarth@bromo.med.uc.edu>
27770
27771 PR target/46037
27772 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27773 when checking debug_info_level. Test write_symbols instead of
27774 debug_hooks->var_location when setting flag_var_tracking_uninit.
27775
27776 2011-01-14 Richard Guenther <rguenther@suse.de>
27777
27778 PR tree-optimization/47179
27779 * target.def (ref_may_alias_errno): New target hook.
27780 * targhooks.h (default_ref_may_alias_errno): Declare.
27781 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
27782 (default_ref_may_alias_errno): New function.
27783 * target.h (struct ao_ref_s): Declare.
27784 * tree-ssa-alias.c: Include target.h.
27785 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
27786 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
27787 (targhooks.o): Likewise.
27788 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
27789 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
27790
27791 2011-01-14 Richard Guenther <rguenther@suse.de>
27792
27793 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
27794
27795 2011-01-14 Richard Guenther <rguenther@suse.de>
27796
27797 PR tree-optimization/47280
27798 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
27799 return CFG changes.
27800 (tree_ssa_forward_propagate_single_use_vars): Deal with
27801 CFG changes from associate_plusminus.
27802
27803 2011-01-14 Richard Guenther <rguenther@suse.de>
27804
27805 PR middle-end/47281
27806 Revert
27807 2011-01-11 Richard Guenther <rguenther@suse.de>
27808
27809 PR tree-optimization/46076
27810 * tree-ssa.c (useless_type_conversion_p): Conversions from
27811 unprototyped to empty argument list function types are useless.
27812
27813 2011-01-14 Richard Guenther <rguenther@suse.de>
27814
27815 PR tree-optimization/47286
27816 * tree-ssa-structalias.c (new_var_info): Register variables are global.
27817
27818 2011-01-14 Martin Jambor <mjambor@suse.cz>
27819
27820 PR middle-end/46823
27821 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
27822
27823 2011-01-13 Anatoly Sokolov <aesok@post.ru>
27824
27825 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
27826 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27827 * config/xtensa/xtensa.c (xtensa_libcall_value,
27828 xtensa_function_value_regno_p): New functions.
27829 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27830
27831 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
27832
27833 PR c++/47213
27834 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
27835 PE specific hook.
27836 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
27837 New function prototype.
27838 * config/i386/winnt.c (i386_pe_assemble_visibility):
27839 Warn only if attribute was specified by user.
27840
27841 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
27842
27843 PR target/47251
27844 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27845 floating point.
27846 (floatunsdidf2_fcfidu): Ditto.
27847
27848 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27849
27850 * config/s390/s390.c (print_operand_address): Replace 'error' with
27851 'output_operand_lossage'.
27852 (print_operand): Likewise.
27853
27854 2011-01-13 Jeff Law <law@redhat.com>
27855
27856 PR rtl-optimization/39077
27857 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27858 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27859 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27860 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27861 * gcse.c (prune_insertions_deletions): New function.
27862 (compute_pre_data): Use it.
27863
27864 2011-01-13 Dodji Seketeli <dodji@redhat.com>
27865
27866 PR debug/PR46973
27867 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27868 static function.
27869 (prune_unused_types_mark): Use it.
27870
27871 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
27872
27873 PR rtl-optimization/45352
27874 * sel-sched.c: Update copyright years.
27875 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27876 in the advancing loop when we have issued issue_rate insns.
27877
27878 2011-01-12 Richard Henderson <rth@redhat.com>
27879
27880 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27881 (TARGET_MD_ASM_CLOBBERS): New.
27882
27883 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27884 (TARGET_DELEGITIMIZE_ADDRESS): New.
27885
27886 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27887 (clzsi2, *bsch): New patterns.
27888
27889 * config/mn10300/mn10300.md (INT): New mode iterator.
27890 (*mov<INT>_clr): New pattern, and peep2 to generate it.
27891
27892 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27893 flag_split_wide_types.
27894
27895 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27896 (mn10300_trampoline_init): Rewrite without a template, an immediate
27897 load and a direct branch.
27898 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27899
27900 2011-01-12 Anatoly Sokolov <aesok@post.ru>
27901
27902 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27903 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27904 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27905 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27906
27907 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
27908
27909 PR debug/47209
27910 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27911 of type.
27912
27913 2011-01-12 Jan Hubicka <jh@suse.cz>
27914
27915 PR driver/47244
27916 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27917 (PLUGIN_COND_CLOSE): New macro.
27918 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27919
27920 2011-01-12 Richard Guenther <rguenther@suse.de>
27921
27922 PR lto/47259
27923 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27924 register variables in a MEM_REF.
27925
27926 2011-01-12 Joseph Myers <joseph@codesourcery.com>
27927
27928 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27929 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27930 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27931 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27932 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27933 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27934 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27935 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27936 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27937 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27938 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27939 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27940 * config/gnu-user.h: New. Copied from linux.h.
27941 (LINUX_TARGET_STARTFILE_SPEC): Rename to
27942 GNU_USER_TARGET_STARTFILE_SPEC.
27943 (LINUX_TARGET_ENDFILE_SPEC): Rename to
27944 GNU_USER_TARGET_ENDFILE_SPEC.
27945 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27946 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27947 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27948 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27949 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27950 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27951 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27952 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27953 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27954 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27955 * config/arm/linux-eabi.h (CC1_SPEC): Use
27956 GNU_USER_TARGET_CC1_SPEC.
27957 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27958 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27959 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27960 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27961 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27962 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27963 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27964 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27965
27966 2011-01-12 Richard Guenther <rguenther@suse.de>
27967
27968 PR other/46946
27969 * doc/invoke.texi (ffast-math): Document it is turned on
27970 with -Ofast.
27971
27972 2011-01-12 Jan Hubicka <jh@suse.cz>
27973
27974 PR tree-optimization/47233
27975 * opts.c (common_handle_option): Disable ipa-reference with profile
27976 feedback.
27977
27978 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
27979
27980 * c-parser.c (c_parser_objc_at_property_declaration): Improved
27981 error message.
27982
27983 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
27984
27985 * c-parser.c (c_lex_one_token): Updated and reindented some
27986 comments. No changes in code.
27987
27988 2011-01-11 Ian Lance Taylor <iant@google.com>
27989
27990 * godump.c (go_output_var): Don't output the variable if there is
27991 already a type with the same name.
27992
27993 2011-01-11 Ian Lance Taylor <iant@google.com>
27994
27995 * godump.c (go_format_type): Don't generate float80.
27996
27997 2011-01-11 Richard Henderson <rth@redhat.com>
27998
27999 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
28000 declaration. Rewrite for both speed and size.
28001 (mn10300_address_cost_1): Remove.
28002 (mn10300_register_move_cost): New.
28003 (mn10300_memory_move_cost): New.
28004 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
28005 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
28006 extensions, shifts, BSWAP, CLZ.
28007 (mn10300_wide_const_load_uses_clr): Remove.
28008 (TARGET_REGISTER_MOVE_COST): New.
28009 (TARGET_MEMORY_MOVE_COST): New.
28010 * config/mn10300/mn10300-protos.h: Update.
28011 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
28012
28013 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
28014 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
28015 * config/mn10300/mn10300-protos.h: Update.
28016 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
28017 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
28018 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
28019 (*test_int_bitfield, *test_byte_bitfield): Remove.
28020 (*bit_test, *subreg_bit_test): Remove.
28021 * config/mn10300/predicates.md (const_8bit_operand): Remove.
28022
28023 * config/mn10300/constraints.md ("c"): Rename from "A".
28024 ("A", "D"): New constraint letters.
28025 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
28026 (fmssf4, fnmasf4, fnmssf4): Likewise.
28027
28028 * config/mn10300/mn10300.md (isa): New attribute.
28029 (enabled): New attribute.
28030
28031 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
28032 (abssf2, negsf2): Define only for hardware fp.
28033 (sqrtsf2): Reformat.
28034 (addsf3, subsf3, mulsf3): Merge expander and insn.
28035
28036 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
28037 (DEBUGGER_AUTO_OFFSET): Remove.
28038 (DEBUGGER_ARG_OFFSET): Remove.
28039
28040 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
28041 Emit register stores with the same offsets as the hardware.
28042 (mn10300_store_multiple_operation): Don't check that the register
28043 save offsets are monotonic.
28044 * config/mn10300/mn10300-protos.h: Update.
28045
28046 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
28047
28048 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
28049 in terms of the value on the stack, not the MDR register.
28050
28051 2011-01-11 Jan Hubicka <jh@suse.cz>
28052
28053 PR lto/45721
28054 PR lto/45375
28055 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
28056 (symbol_alias_set_destroy, symbol_alias_set_contains,
28057 propagate_aliases_backward): Declare.
28058 * lto-streamer-out.c (struct sets): New sturcture.
28059 (trivally_defined_alias): New function.
28060 (output_alias_pair_p): Rewrite.
28061 (output_unreferenced_globals): Fix output of alias pairs.
28062 (produce_symtab): Likewise.
28063 * ipa.c (function_and_variable_visibility): Set weak alias destination
28064 as needed in lto.
28065 * varasm.c (symbol_alias_set_t): Remove.
28066 (symbol_alias_set_destroy): Export.
28067 (propagate_aliases_forward, propagate_aliases_backward): New functions
28068 based on ...
28069 (compute_visible_aliases): ... this one; remove.
28070 (trivially_visible_alias): New
28071 (trivially_defined_alias): New.
28072 (remove_unreachable_alias_pairs): Rewrite.
28073 (finish_aliases_1): Reorganize code checking if alias is defined.
28074 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
28075 in LTO mode.
28076
28077 2011-01-11 Richard Guenther <rguenther@suse.de>
28078
28079 PR tree-optimization/46076
28080 * tree-ssa.c (useless_type_conversion_p): Conversions from
28081 unprototyped to empty argument list function types are useless.
28082
28083 2011-01-11 Richard Guenther <rguenther@suse.de>
28084
28085 PR middle-end/45235
28086 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
28087 volatile MEMs as MEM_READONLY_P.
28088
28089 2011-01-11 Richard Guenther <rguenther@suse.de>
28090
28091 PR tree-optimization/47239
28092 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
28093
28094 2011-01-11 Jeff Law <law@redhat.com>
28095
28096 PR tree-optimization/47086
28097 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
28098 IVs from statements that might throw.
28099
28100 2011-01-10 Jan Hubicka <jh@suse.cz>
28101
28102 PR lto/45375
28103 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
28104
28105 2011-01-10 Jan Hubicka <jh@suse.cz>
28106
28107 PR lto/45375
28108 * profile.c (read_profile_edge_counts): Ignore profile inconistency
28109 when correcting profile.
28110
28111 2011-01-10 Jan Hubicka <jh@suse.cz>
28112
28113 PR lto/46083
28114 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
28115 DECL_FINI_PRIORITY.
28116 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
28117 Restore DECL_FINI_PRIORITY.
28118
28119 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28120
28121 * doc/gimple.texi: Fix quoting of multi-word return values in
28122 @deftypefn statements. Ensure presence of return value. Wrap
28123 overlong @deftypefn lines.
28124 (is_gimple_operand, is_gimple_min_invariant_address): Remove
28125 descriptions of removed functions.
28126 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
28127 of multi-word return value in @deftypefn statement.
28128
28129 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28130
28131 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
28132 (Conditional Expressions, Logical Operators)
28133 (Statement and operand traversals): Do not indent smallexample
28134 code. Fix duplicate function argument in example.
28135
28136 2011-01-10 Jeff Law <law@redhat.com>
28137
28138 PR tree-optimization/47141
28139 * ipa-split.c (split_function): Handle case where we are
28140 returning a value and the return block has a virtual operand phi.
28141
28142 2011-01-10 Jan Hubicka <jh@suse.cz>
28143
28144 PR tree-optimization/47234
28145 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
28146 (pass_feedback_split_functions): Declare.
28147 * passes.c (init_optimization_passes): Add ipa-split as subpass of
28148 tree-profile.
28149 * ipa-split.c (gate_split_functions): Update comments; disable
28150 split-functions for profile_arc_flag and branch_probabilities.
28151 (gate_feedback_split_functions): New function.
28152 (execute_feedback_split_functions): New function.
28153 (pass_feedback_split_functions): New global var.
28154
28155 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
28156
28157 PR lto/46760
28158 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
28159 calling gimple_call_set_cannot_inline.
28160
28161 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
28162
28163 * config/darwin-sections.def: Remove unused section.
28164
28165 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
28166
28167 PR c++/47218
28168 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
28169
28170 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
28171
28172 PR objc/47232
28173 * c-parser.c (c_parser_declaration_or_fndef): Improved
28174 error message.
28175
28176 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
28177
28178 * config/i386/winnt.c (i386_pe_start_function): Make sure
28179 to switch back to function's section.
28180
28181 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
28182
28183 PR gcc/46902
28184 PR testsuite/46912
28185 * plugin.c: Move include of dlfcn.h from here...
28186 * system.h: ... to here.
28187
28188 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28189
28190 * doc/cpp.texi (C++ Named Operators): Fix markup for header
28191 file name.
28192 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
28193 two extra empty pages in PDF output.
28194
28195 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
28196
28197 PR objc/47078
28198 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
28199 for error recovery purposes behave as if it was not specified so
28200 that the default type is usd.
28201
28202 2011-01-07 Jan Hubicka <jh@suse.cz>
28203
28204 PR tree-optmization/46469
28205 * ipa.c (function_and_variable_visibility): Clear needed flags on
28206 nodes with external decls; handle weakrefs merging correctly.
28207
28208 2011-01-07 Joseph Myers <joseph@codesourcery.com>
28209
28210 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
28211 not false.
28212
28213 2011-01-07 Jan Hubicka <jh@suse.cz>
28214
28215 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
28216 and no longer claim that gold is required for linker plugin.
28217 * configure: Regenerate.
28218 * gcc.c (PLUGIN_COND): New macro.
28219 (LINK_COMMAND_SPEC): Use it.
28220 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
28221 * config.in (HAVE_LTO_PLUGIN): New.
28222 * configure.ac (--with-lto-plugin): New parameter; autodetect
28223 HAVE_LTO_PLUGIN.
28224
28225 2011-01-07 Jan Hubicka <jh@suse.cz>
28226
28227 PR tree-optimization/46367
28228 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
28229 when we can update original.
28230 (cgraph_mark_inline_edge): Sanity check.
28231 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
28232
28233 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28234
28235 * config/spu/spu.h (ASM_COMMENT_START): Define.
28236
28237 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
28238
28239 PR driver/42445
28240 * gcc.c (%>S): New.
28241 (SWITCH_KEEP_FOR_GCC): Likewise.
28242 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
28243 (do_spec_1): Handle "%>".
28244
28245 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
28246
28247 2011-01-07 Jakub Jelinek <jakub@redhat.com>
28248
28249 PR target/47201
28250 * config/i386/i386.c (ix86_delegitimize_address): If
28251 simplify_gen_subreg fails, return orig_x.
28252
28253 PR bootstrap/47187
28254 * value-prof.c (gimple_stringop_fixed_value): Handle
28255 lhs of the call properly.
28256
28257 2011-01-07 Jan Hubicka <jh@suse.cz>
28258
28259 PR lto/45375
28260 * lto-opt.c (lto_reissue_options): Set flag_shlib.
28261
28262 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28263
28264 * target.def (function_switched_text_sections): New hook.
28265 * doc/tm.texi: Regenerated.
28266 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28267 * final.c (default_function_switched_text_sections): New.
28268 (final_scan_insn): Call function_switched_text_sections when a
28269 mid-function section change occurs.
28270 * output.h (default_function_switched_text_sections): Declare.
28271 * config/darwin-protos.h (darwin_function_switched_text_sections):
28272 Likewise.
28273 * config/darwin.c (darwin_function_switched_text_sections): New.
28274 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28275
28276 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28277
28278 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
28279 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
28280 the secondary code fragment when outputting for DWARF == 2.
28281
28282 2011-01-07 Anatoly Sokolov <aesok@post.ru>
28283
28284 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28285 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28286 Remove.
28287 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28288 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28289
28290 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
28291
28292 PR debug/46704
28293 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28294 when it is not empty.
28295
28296 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
28297
28298 Bobcat Enablement
28299 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28300 (case ${target}): Add btver1.
28301 * config/i386/driver-i386.c (host_detect_local_cpu): Let
28302 -march=native recognize btver1 processors.
28303 * config/i386/i386-c.c (ix86_target_macros_internal): Add
28304 btver1 def_and_undef
28305 * config/i386/i386.c (struct processor_costs btver1_cost): New
28306 btver1 cost table.
28307 (m_BTVER1): New definition.
28308 (m_AMD_MULTIPLE): Includes m_BTVER1.
28309 (initial_ix86_tune_features): Add btver1 tune.
28310 (processor_target_table): Add btver1 entry.
28311 (static const char *const cpu_names): Add btver1 entry.
28312 (software_prefetching_beneficial_p): Add btver1.
28313 (ix86_option_override_internal): Add btver1 instruction sets.
28314 (ix86_issue_rate): Add btver1.
28315 (ix86_adjust_cost): Add btver1.
28316 * config/i386/i386.h (TARGET_BTVER1): New definition.
28317 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28318 (enum processor_type): Add PROCESSOR_BTVER1.
28319 * config/i386/i386.md (define_attr "cpu"): Add btver1.
28320
28321 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28322
28323 PR target/43309
28324 * config/i386/i386.c (legitimize_tls_address)
28325 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28326 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28327 (tls_initial_exec_64_sun): New pattern.
28328
28329 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28330
28331 * doc/invoke.texi (Overall Options): Improve wording and markup
28332 of the description of -wrapper.
28333
28334 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28335
28336 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
28337 rdynamic, threads): New Driver options.
28338
28339 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28340
28341 PR target/38118
28342 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
28343 if coming from .tdata.
28344 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
28345
28346 2011-01-06 Jan Hubicka <jh@suse.cz>
28347
28348 PR lto/47188
28349 * collect2.c (main): Do not enable LTOmode when plugin is active.
28350
28351 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28352
28353 PR other/45915
28354 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
28355 --version output if supported.
28356 * configure: Regenerate.
28357
28358 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28359
28360 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
28361 Driver options.
28362
28363 2011-01-06 Jakub Jelinek <jakub@redhat.com>
28364
28365 PR c/47150
28366 * c-convert.c (convert): When converting a complex expression
28367 other than COMPLEX_EXPR to a different complex type, ensure
28368 c_save_expr is called instead of save_expr, unless in_late_binary_op.
28369 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
28370 when converting COMPLEX_TYPE.
28371
28372 2011-01-06 Ira Rosen <irar@il.ibm.com>
28373
28374 PR tree-optimization/47139
28375 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
28376 only the last reduction value is used outside the loop. Update
28377 documentation.
28378
28379 2011-01-05 Joseph Myers <joseph@codesourcery.com>
28380
28381 * config/rtems.opt: New.
28382 * config.gcc (*-*-rtems*): Use rtems.opt.
28383
28384 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
28385
28386 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
28387 processors do not support 3DNow instructions.
28388
28389 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28390
28391 * config/spu/spu.c (spu_option_override): Set parameter
28392 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
28393
28394 2011-01-05 Jan Hubicka <jh@suse.cz>
28395
28396 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
28397 at the command line.
28398
28399 2011-01-05 Martin Jambor <mjambor@suse.cz>
28400
28401 PR lto/47162
28402 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
28403 deltas on streamed outgoing edges.
28404 (output_node_opt_summary): Output info for outgoing edges only when
28405 the node is in new parameter set.
28406 (output_cgraph_opt_summary): New parameter set, passed to the two
28407 aforementioned functions. Update its forward declaration and its
28408 callee too.
28409
28410 2011-01-05 Tom Tromey <tromey@redhat.com>
28411
28412 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
28413 operator to c_finish_omp_atomic.
28414 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
28415 (build_unary_op): Update.
28416 (build_modify_expr): Update.
28417 (build_asm_expr): Update.
28418
28419 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28420
28421 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
28422 newly inserted insns.
28423 (pad_bb): Likewise.
28424 (spu_emit_branch_hint): Likewise.
28425 (insert_hbrp_for_ilb_runout): Likewise.
28426 (spu_machine_dependent_reorg): Call df_finish_pass after
28427 schedule_insns returns.
28428
28429 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28430
28431 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
28432
28433 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
28434
28435 PR tree-optimization/47005
28436 * tree-sra.c (struct access): Add 'non_addressable' bit.
28437 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
28438 (decide_one_param_reduction): Return 0 if the parameter is passed by
28439 reference and one of the accesses in the group is non_addressable.
28440
28441 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28442
28443 PR tree-optimization/47056
28444 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
28445 (mark_load): Likewise. Handle FUNCTION_DECL specially.
28446 (mark_store): Likewise. Pass STMT to ipa_record_reference.
28447
28448 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28449
28450 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
28451 initializer. Skip view conversions from aggregate types.
28452
28453 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
28454
28455 PR bootstrap/47055
28456 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
28457
28458 2011-01-04 Philipp Thomas <pth@suse.de>
28459
28460 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
28461 obvious typo.
28462
28463 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28464
28465 * function.c (thread_prologue_and_epilogue_insns): Do not crash
28466 on empty epilogue sequences.
28467
28468 2011-01-04 Joseph Myers <joseph@codesourcery.com>
28469
28470 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
28471 non-static): New Driver options.
28472
28473 2011-01-04 Jie Zhang <jie@codesourcery.com>
28474
28475 PR driver/47137
28476 * gcc.c (default_compilers[]): Set combinable field to 0
28477 for all assembly languages.
28478
28479 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
28480
28481 * config/mips/loongson3a.md: New file.
28482 * config/mips/mips.md: Include loongson3a.md.
28483 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
28484 TUNE_LOONGSON_3A.
28485
28486 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
28487
28488 PR middle-end/47017
28489 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
28490 instead of convert_memory_address_addr_space on the base expression.
28491
28492 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28493
28494 * config/spu/spu.c (spu_option_override): Update error text
28495 for bad -march= / -mtune= values.
28496
28497 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28498
28499 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
28500 if branch-hint optimization will be performed.
28501
28502 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28503
28504 PR tree-optimization/47148
28505 * ipa-split.c (split_function): Convert arguments to
28506 DECL_ARG_TYPE if possible.
28507
28508 PR tree-optimization/47155
28509 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
28510 when computing uns.
28511
28512 PR rtl-optimization/47157
28513 * combine.c (try_combine): If undobuf.other_insn becomes
28514 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
28515 and set *new_direct_jump_p too.
28516
28517 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
28518
28519 PR tree-optimization/47021
28520 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
28521
28522 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28523
28524 * gcc.c (process_command): Update copyright notice dates.
28525 * gcov.c (print_version): Likewise.
28526 * gcov-dump.c (print_version): Likewise.
28527 * mips-tfile.c (main): Likewise.
28528 * mips-tdump.c (main): Likewise.
28529
28530 2011-01-03 Martin Jambor <mjambor@suse.cz>
28531
28532 PR tree-optimization/46801
28533 * tree-sra.c (type_internals_preclude_sra_p): Check whether
28534 aggregate fields start at byte boundary instead of the bit-field flag.
28535
28536 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
28537
28538 PR driver/47137
28539 * gcc.c (main): Revert revision 168407.
28540
28541 2011-01-03 Martin Jambor <mjambor@suse.cz>
28542
28543 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
28544
28545 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28546
28547 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
28548 vector optab to expand vector/scalar shift, update gimple to vector.
28549
28550 2011-01-03 Martin Jambor <mjambor@suse.cz>
28551
28552 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
28553 a thunk.
28554
28555 2011-01-03 Martin Jambor <mjambor@suse.cz>
28556
28557 PR tree-optimization/46984
28558 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28559 HOST_WIDE_INT.
28560 (cgraph_create_indirect_edge): Fixed line length.
28561 (cgraph_indirect_call_info): Declare.
28562 (cgraph_make_edge_direct) Update declaration.
28563 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28564 (cgraph_create_indirect_edge): Use it.
28565 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
28566 callees.
28567 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28568 the new thunk_delta representation.
28569 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28570 HOST_WIDE_INT.
28571 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28572 (ipa_read_indirect_edge_info): Likewise.
28573 * lto-cgraph.c (output_edge_opt_summary): New function.
28574 (output_node_opt_summary): Call it on all outgoing edges.
28575 (input_edge_opt_summary): New function.
28576 (input_node_opt_summary): Call it on all outgoing edges.
28577
28578 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
28579
28580 PR driver/47137
28581 * gcc.c (main): Don't check have_o when settting combine_inputs.
28582
28583 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
28584
28585 * regrename.c: Add general comment describing the pass.
28586 (struct du_head): Remove 'length' field.
28587 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28588 (regrename_optimize): Do not sort chains. Rework comments, add others.
28589 Force renaming to the preferred class (if any) in the first pass and do
28590 not consider registers that belong to it in the second pass.
28591 (create_new_chain): Do not set 'length' field.
28592 (scan_rtx_reg): Likewise.
28593
28594 2011-01-02 Jakub Jelinek <jakub@redhat.com>
28595
28596 PR tree-optimization/47140
28597 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28598 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28599 to bit_value_binop.
28600
28601 PR rtl-optimization/47028
28602 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28603 parm_birth_insn instead of at the beginning of first bb.
28604
28605 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
28606
28607 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28608 Remove the word "see" before "@pxref".
28609 * doc/rtl.texi: Remove the word "see" before "@pxref".
28610
28611 2011-01-01 Jan Hubicka <jh@suse.cz>
28612
28613 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28614 memory.
28615
28616 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
28617
28618 PR target/38662
28619 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28620
28621 \f
28622 Copyright (C) 2011 Free Software Foundation, Inc.
28623
28624 Copying and distribution of this file, with or without modification,
28625 are permitted in any medium without royalty provided the copyright
28626 notice and this notice are preserved.