visintrin.h: New file.
[gcc.git] / gcc / ChangeLog
1 2011-09-16 David S. Miller <davem@davemloft.net>
2
3 * config/sparc/visintrin.h: New file.
4 * config.gcc: Add it to extra_headers on sparc.
5
6 2011-09-16 Jakub Jelinek <jakub@redhat.com>
7
8 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
9 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
10 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
11 reduc_smin_v4sf): Adjust callers.
12 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
13 New expanders.
14
15 * config/i386/sse.md (vec_extract_hi_<mode>,
16 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
17 vextracti128 instead of vextractf128 for -mavx2 and
18 integer vectors. For V4DFmode fix up mode attribute.
19 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
20 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
21 instead of V8SF mode attribute.
22 (avx2_extracti128): Change into define_expand.
23 * config/i386/i386.c (ix86_expand_vector_extract): Handle
24 32-byte vector modes if TARGET_AVX.
25
26 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
27
28 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
29 (umulqi3_highpart, smulqi3_highpart): Ditto.
30 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
31 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
32 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
33
34 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
35
36 PR target/50358
37 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
38 (*maddqi4, *maddqi4.const): New insns.
39 (*msubqi4, *msubqi4.const): New insns.
40 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
41 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
42 HImode by 1 in the case of multiplying with a CONST_INT.
43 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
44
45 2011-09-15 Jan Hubicka <jh@suse.cz>
46
47 PR lto/50430
48 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
49 error_mark_node in the DECL_INITIAL of vtable.
50
51 2011-09-15 Diego Novillo <dnovillo@google.com>
52
53 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
54 @SYSROOT_CFLAGS_FOR_TARGET@.
55 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from
56 build-sysroot.
57 * configure: Regenerate.
58 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
59 Remove setting of GCC_UNDER_TEST.
60
61 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
62
63 * config/i386/i386.c (output_fp_compare): Return %v prefixed
64 instruction mnemonics for TARGET_AVX.
65
66 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
67 "type" attribute calculation.
68 (*movdf_internal): Ditto.
69 (*movsf_internal): Ditto.
70
71 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
72
73 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
74
75 2011-09-15 Jason Merrill <jason@redhat.com>
76
77 PR c++/50361
78 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
79
80 2011-09-15 Jan Hubicka <jh@suse.cz>
81
82 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
83 simplify obviously true clauses.
84 (and_predicates, or_predicates): Add conditions parameter.
85 (inline_duplication_hoook): Update.
86 (mark_modified): New function.
87 (unmodified_parm): New function.
88 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
89 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
90 Use unmodified_parm.
91 (estimate_function_body_sizes): Update.
92 (remap_predicate): Update.
93
94 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
95
96 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
97 read-after-read dependencies in basic block SLP.
98
99 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
100
101 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
102 throughout file.
103
104 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
105
106 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
107 throughout file.
108
109 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
110
111 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
112 throughout file.
113
114 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
115
116 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
117 throughout file.
118 * config/rs6000/constraints.md: Likewise.
119
120 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
121
122 * config/microblaze/microblaze.md: Use match_test rather than
123 eq/ne symbol_ref throughout file.
124
125 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
126
127 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
128 throughout file.
129
130 2011-09-14 Tom de Vries <tom@codesourcery.com>
131
132 PR middle-end/50251
133 * explow.c (emit_stack_restore): Set crtl->need_drap if
134 stack_restore is emitted.
135
136 2011-09-14 Julian Brown <julian@codesourcery.com>
137
138 * config/arm/arm.c (arm_override_options): Add unaligned_access
139 support.
140 (arm_file_start): Emit attribute for unaligned access as appropriate.
141 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
142 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
143 (insv, extzv): Add unaligned-access support.
144 (extv): Change to expander. Likewise.
145 (extzv_t1, extv_regsi): Add helpers.
146 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
147 (unaligned_storesi, unaligned_storehi): New.
148 (*extv_reg): New (previous extv implementation).
149 * config/arm/arm.opt (munaligned_access): Add option.
150 * config/arm/constraints.md (Uw): New constraint.
151 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
152 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
153 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
154 volatile accesses when -fstrict-volatile-bitfields is in effect.
155 (extract_bit_field_1): Likewise.
156
157 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
158
159 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
160 a scalar integer before applying integer-only optimisations to
161 inner arithmetic.
162
163 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
164
165 * config/mips/mips.c (mips_expand_epilogue): Generate a
166 simple_return only if the return address is in r31.
167
168 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
169
170 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
171 NULL for a jump that is a cc0 insn, pick the previous insn for
172 move_before.
173
174 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
175
176 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
177 throughout file.
178
179 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
180
181 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
182 throughout file.
183
184 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
185
186 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
187 symbol_ref throughout file.
188
189 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
190
191 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
192 throughout file.
193
194 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
195
196 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
197 throughout file.
198
199 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
200
201 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
202 throughout file.
203 * config/arm/neon.md: Likewise.
204 * config/arm/vfp.md: Likewise.
205 * config/arm/thumb2.md: Likewise.
206 * config/arm/cortex-m4.md: Likewise.
207
208 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
209
210 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
211 define_insn patterns for combine.
212
213 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
214
215 * reorg.c: Always define make_return_insns.
216
217 2011-09-13 Jan Hubicka <jh@suse.cz>
218
219 PR other/49533
220 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
221
222 2011-09-13 Jan Hubicka <jh@suse.cz>
223
224 PR other/49533
225 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
226
227 2011-09-13 Paul Brook <paul@codesourcery.com>
228
229 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
230 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
231 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
232 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
233 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
234 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
235 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
236 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
237 enabling unwind tables.
238 (c6x_debug_unwind_info): New function.
239 (TARGET_ARM_EABI_UNWINDER): Define.
240 (TARGET_DEBUG_UNWIND_INFO): Define.
241 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
242 (TARGET_EXTRA_CFI_SECTION): Remove.
243 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
244 * ginclude/unwind-arm-common.h: New file.
245
246 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
247
248 PR target/50358
249 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
250 * config/avr/avr.md: (extend_s): New code attribute.
251 (mul_r_d): New code attribute.
252 (*maddqihi4, *umaddqihi4): New insns.
253 (*msubqihi4, *umsubqihi4): New insns.
254 (*usmaddqihi4, *sumaddqihi4): New insns.
255 (*usmsubqihi4, *susubdqihi4): New insns.
256 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
257 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
258 (*umsubqihi4.uconst.ashift): New insn-and-split.
259 (*msubqihi4.sconst.ashift): New insn-and-split.
260 (*sumaddqihi4.uconst): New insn-and-split.
261 (*sumsubqihi4.uconst): New insn-and-split.
262 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
263 PLUS:HI and MINUS:HI.
264
265 2011-09-13 Revital Eres <revital.eres@linaro.org>
266
267 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
268 (optimize_sc): Adjust call to remove_node_from_ps.
269 (sms_schedule): Add print info.
270
271 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
272
273 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
274 flags specially.
275
276 2011-09-12 Jakub Jelinek <jakub@redhat.com>
277
278 PR bootstrap/50010
279 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
280 NOTE_INSN_CFI notes, with the exception of
281 NOTE_INSN_SWITCH_TEXT_SECTIONS.
282
283 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
284 Richard Sandiford <rdsandiford@googlemail.com>
285
286 * config/mips/mips.c (mips_epilogue): New structure.
287 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
288 restoring registers.
289 (mips_epilogue_emit_cfa_restores): New function.
290 (mips_epilogue_set_cfa): Likewise.
291 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
292 the current CFA register from the stack, redefine the CFA in terms
293 of the stack pointer.
294 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
295 to the epilogue instructions.
296
297 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
298
299 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
300 argument.
301 (mips16e_build_save_restore): Update accordingly.
302
303 2011-09-12 Jakub Jelinek <jakub@redhat.com>
304
305 PR rtl-optimization/50212
306 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
307 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
308
309 PR debug/50299
310 * calls.c (load_register_parameters): Use use_reg_mode instead
311 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
312 entry.
313 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
314 for stack CALL_INSN_FUNCTION_USAGE uses.
315 * expr.h (use_reg_mode): New prototype.
316 (use_reg): Changed into inline around use_reg_mode.
317 * expr.c (use_reg): Renamed to...
318 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
319 mode to that mode instead of VOIDmode.
320 * var-tracking.c (prepare_call_arguments): Don't track parameters
321 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
322 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
323 EXPR_LIST mode.
324
325 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
326
327 PR target/43746
328 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
329 (progmem_section): New Variable.
330 (avr_asm_init_sections): Initialize it.
331 (TARGET_ASM_SELECT_SECTION): Define to...
332 (avr_asm_select_section): ... this new Function.
333 (avr_replace_prefix): New Function.
334 (avr_asm_function_rodata_section): Use it.
335 (avr_insert_attributes): Don't add section attribute for PROGMEM.
336 (avr_section_type_flags): Use avr_progmem_p instead of section
337 name to detect if object is in PROGMEM.
338 (avr_asm_named_section): Set section name prefix for objects in
339 PROGMEM.
340
341 2011-09-12 Jakub Jelinek <jakub@redhat.com>
342
343 PR bootstrap/50352
344 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
345 sprintf format string.
346
347 2011-09-12 Richard Guenther <rguenther@suse.de>
348
349 PR tree-optimization/50343
350 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
351 that the reduction is over an SSA name before checking its definition.
352
353 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
354
355 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
356 throughout file.
357
358 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
359
360 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
361 throughout file.
362 * config/mips/sb1.md: Likewise.
363 * config/mips/predicates.md: Replace (match_test "!...")
364 with (not (match_test "..."))
365 * config/mips/constraints.md: Likewise.
366
367 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
368
369 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
370 * config/arm/arm-tables.opt: Regenerate.
371 * config/arm/arm-tune.md: Regenerate.
372 * config/arm/arm.c (arm_file_start): Output .arch directive when
373 user passes -mcpu=generic-*.
374 (arm_issue_rate): Add genericv7a support.
375 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
376 (ASM_CPU_SPEC): New define.
377 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
378 * config/arm/semi.h (ASM_SPEC): Likewise.
379 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
380 and -mtune=generic-*.
381
382 2011-09-09 Richard Guenther <rguenther@suse.de>
383
384 PR tree-optimization/50328
385 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
386 constant or default-def operand.
387
388 2011-09-09 Richard Guenther <rguenther@suse.de>
389
390 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
391 last statement.
392
393 2011-09-09 Richard Guenther <rguenther@suse.de>
394
395 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
396 instead of a statement.
397 * gimple-fold.c (fold_stmt_inplace): Likewise.
398 * sese.c (graphite_copy_stmts_from_block): Adjust.
399 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
400 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
401 fold_stmt.
402 (forward_propagate_addr_into_variable_array_index): Likewise.
403 (forward_propagate_addr_expr_1): adjust.
404 (associate_plusminus): Likewise.
405 (ssa_forward_propagate_and_combine): Likewise.
406 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
407 (execute_cse_reciprocals): Likewise.
408 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
409
410 2011-09-09 Nick Clifton <nickc@redhat.com>
411
412 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
413 Return a positive value to indicate that the bits at the
414 bottom of the register should be cleared.
415
416 2011-09-09 Richard Guenther <rguenther@suse.de>
417
418 * tree-ssa-operands.c (swap_tree_operands): Always adjust
419 existing operand positions.
420
421 2011-09-09 Richard Guenther <rguenther@suse.de>
422
423 PR middle-end/50333
424 * tree-data-ref.c (split_constant_offset): Do not try to handle
425 ternary ops.
426
427 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
428
429 PR tree-optimization/50318
430 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
431 typo in use of mult_rhs1 and mult_rhs2.
432
433 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
434
435 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
436 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
437
438 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
439
440 * config/arm/arm.md (push_multi): Emit predicates.
441 (push_fp_multi): Likewise.
442 * config/arm/arm.c (vfp_output_fstmd): Likewise.
443
444 2011-09-08 Dodji Seketeli <dodji@redhat.com>
445
446 PR c++/33255 - Support -Wunused-local-typedefs warning
447 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
448 (pushdecl): Use the new record_locally_defined_typedef.
449 (store_parm_decls): Allocate cfun->language.
450 (finish_function): Use the new maybe_warn_unused_local_typedefs,
451 and free cfun->language.
452 (c_push_function_context): Allocate cfun->language here only if needed.
453 (c_pop_function_context): Likewise, mark cfun->language
454 for collection only when it should be done.
455 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
456 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
457 maybe_record_local_typedef_use.
458 * doc/invoke.texi: Update documentation for
459 -Wunused-local-typedefs.
460
461 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
462
463 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
464 (ix86_avoid_lea_for_add): Likewise.
465 (ix86_avoid_lea_for_addr): Likewise.
466 (ix86_split_lea_for_addr): Likewise.
467
468 * config/i386/i386.c (LEA_MAX_STALL): New.
469 (increase_distance): Likewise.
470 (insn_defines_reg): Likewise.
471 (insn_uses_reg_mem): Likewise.
472 (distance_non_agu_define_in_bb): Likewise.
473 (distance_agu_use_in_bb): Likewise.
474 (ix86_lea_outperforms): Likewise.
475 (ix86_ok_to_clobber_flags): Likewise.
476 (ix86_avoid_lea_for_add): Likewise.
477 (ix86_avoid_lea_for_addr): Likewise.
478 (ix86_split_lea_for_addr): Likewise.
479 (distance_non_agu_define): Search in pred BBs added.
480 (distance_agu_use): Search in succ BBs added.
481 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
482 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
483 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
484
485 * config/i386/i386.md: Split added to transform non destructive
486 add into move and add.
487 (lea_1): transformed into insn_and_split to avoid AGU stalls.
488 (lea<mode>_2): Likewise.
489
490 2011-09-08 Martin Jambor <mjambor@suse.cz>
491
492 PR tree-optimization/50287
493 * ipa-split.c (split_function): Do not create SSA names for
494 non-gimple-registers.
495
496 2011-09-08 Richard Guenther <rguenther@suse.de>
497
498 PR tree-optimization/19831
499 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
500 skip builtins with vdefs that do not really store something.
501 (propagate_necessity): For calls to free that we can associate
502 with an allocation function do not mark the freed pointer
503 definition necessary.
504 (eliminate_unnecessary_stmts): Remove a call to free if
505 the associated call to an allocation function is not necessary.
506
507 2011-09-08 Richard Guenther <rguenther@suse.de>
508
509 PR tree-optimization/19831
510 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
511 allocation functions as necessary.
512
513 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
514
515 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
516 cut from ...
517 (darwin_default_min_version): Amended to provide defaults
518 for the cross directory case.
519 (darwin_driver_init): call darwin_default_min_version unconditionally.
520 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
521 * config/darwin9.h: Likewise.
522 * config/darwin10.h: Likewise.
523 * config/rs6000/darwin7.h: Likewise.
524
525 2011-09-08 Jakub Jelinek <jakub@redhat.com>
526
527 PR target/50310
528 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
529 code early if TARGET_AVX.
530 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
531
532 2011-09-07 Jakub Jelinek <jakub@redhat.com>
533
534 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
535 duplicates.
536
537 PR target/50310
538 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
539 "mode" attribute computation.
540
541 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
542
543 * regrename.c (struct du_head): Make nregs signed.
544 (closed_chains): Remove.
545 (create_new_chain): Return the new chain.
546 (chain_from_id): New static function.
547 (dump_def_use_chain): Change argument to be an int, indicating
548 the first ID to print. All callers changed.
549 (merge_overlapping_regs): Use chain_from_id. Assert that
550 chains don't conflict with themselves.
551 (rename_chains): Take no argument. Iterate over id_to_chain
552 rather to find chains to rename. Clear tick before the main loop.
553 (struct incoming_reg_info): New struct.
554 (struct bb_rename_info): New struct.
555 (init_rename_info, set_incoming_from_chain, merge_chains): New
556 static functions.
557 (regrename_analyze): New static function, broken out of
558 regrename_optimize. Record and make use of open chain information
559 at basic block boundaries, and merge chains where possible.
560 (scan_rtx_reg): Make this_nregs signed. Don't update
561 closed_chains.
562 (build_def_use): Return a bool to indicate success. All callers
563 changed. Don't initialize global data here.
564 (regrename_optimize): Move most code out of here into
565 regrename_analyze.
566 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
567 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
568 static inline functions.
569 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
570
571 * bb-reorder.c (insert_section_boundary_note): Don't check
572 optimize_function_for_speed_p.
573 (gate_handle_partition_blocks): Do it here instead.
574 (gate_handle_reorder_blocks): Move preliminary checks here ...
575 (rest_of_handle_reorder_blocks): ... from here.
576
577 2011-09-07 Martin Jambor <mjambor@suse.cz>
578
579 PR middle-end/50301
580 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
581 function index bounds.
582 (perhaps_add_new_callers): Likewise.
583
584 2011-09-07 Martin Jambor <mjambor@suse.cz>
585
586 PR tree-optimization/49911
587 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
588 enumerations to the corresponding plain integer type.
589
590 2011-09-07 Richard Guenther <rguenther@suse.de>
591
592 PR tree-optimization/50319
593 * tree-if-conv.c (set_bb_predicate): Assert we only set
594 canonical predicates.
595 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
596 around canonical predicates.
597 (predicate_bbs): Do not re-gimplify already canonical
598 predicates. Properly unshare them though.
599 (find_phi_replacement_condition): Simplify.
600
601 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
602
603 PR target/49030
604 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
605 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
606 reusing the old code from get_arm_condition_code. Return ARM_NV
607 for invalid comparison codes.
608 (get_arm_condition_code): Redefine in terms of
609 maybe_get_arm_condition_code.
610 * config/arm/predicates.md (arm_comparison_operator): Use
611 maybe_get_arm_condition_code.
612
613 2011-09-07 Richard Guenther <rguenther@suse.de>
614
615 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
616 Canonicalize negated predicates by swapping edges.
617 (forward_propagate_into_cond): Likewise.
618
619 2011-09-07 Richard Guenther <rguenther@suse.de>
620
621 PR tree-optimization/50213
622 * tree-flow.h (simple_iv_increment_p): Declare.
623 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
624 POINTER_PLUS_EXPR.
625 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
626 not propagate simple IV counter increments.
627
628 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
629 Iain Sandoe <iains@gcc.gnu.org>
630
631 * config/rs6000/rs6000.c (compute_save_world_info): Test
632 cfun->has_nonlocal_label to determine if the out-of-line save
633 world call may be used.
634
635 2011-09-07 Nick Clifton <nickc@redhat.com>
636
637 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
638 label on the parallel part of the insn.
639
640 2011-09-07 Jakub Jelinek <jakub@redhat.com>
641
642 PR debug/50191
643 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
644 avoid_constant_pool_reference first instead of last.
645
646 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
647
648 * doc/configfiles.texi (Configuration Files): Update documentation
649 about tm_p.h and remove FIXME comment.
650
651 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
652
653 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
654 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
655
656 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
657
658 * config/darwin10.h Remove duplicate LIB_SPEC.
659
660 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
661
662 PR middle-end/44382
663 * target.def (reassociation_width): New hook.
664
665 * doc/tm.texi.in (reassociation_width): Likewise.
666
667 * doc/tm.texi (reassociation_width): Likewise.
668
669 * doc/invoke.texi (tree-reassoc-width): New param documented.
670
671 * hooks.h (hook_int_uint_mode_1): New default hook.
672
673 * hooks.c (hook_int_uint_mode_1): Likewise.
674
675 * config/i386/i386.h (ix86_tune_indices): Add
676 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
677
678 (TARGET_REASSOC_INT_TO_PARALLEL): New.
679 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
680
681 * config/i386/i386.c (initial_ix86_tune_features): Add
682 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
683
684 (ix86_reassociation_width): New function.
685
686 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
687
688 * tree-ssa-reassoc.c (get_required_cycles): New function.
689 (get_reassociation_width): Likewise.
690 (swap_ops_for_binary_stmt): Likewise.
691 (rewrite_expr_tree_parallel): Likewise.
692
693 (rewrite_expr_tree): Refactored. Part of code moved into
694 swap_ops_for_binary_stmt.
695
696 (reassociate_bb): Now checks reassociation width to be used and
697 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
698
699 2011-09-06 Richard Guenther <rguenther@suse.de>
700
701 PR tree-optimization/47025
702 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
703 uses nothing.
704 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
705 BUILT_IN_FREE.
706 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
707 definitely points to.
708 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
709 BUILT_IN_VA_START doesn't let its va_list argument escape.
710 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
711 not make any previous stores necessary.
712
713 2011-09-06 Martin Jambor <mjambor@suse.cz>
714
715 * ipa-inline.h (struct inline_summary): Move versionable flag...
716 * cgraph.h (struct cgraph_local_info): ...here
717 * ipa-cp.c (determine_versionability): Use the new versionable flag.
718 (determine_versionability): Likewise.
719 (ipcp_versionable_function_p): Likewise.
720 (ipcp_generate_summary): Likewise.
721 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
722 versionable flag.
723 (compute_inline_parameters): Do not clear the versionable flag.
724 (inline_read_section): Do not stream the versionable flag.
725 (inline_write_summary): Likewise.
726 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
727 (input_overwrite_node): Likewise.
728
729 2011-09-06 Richard Guenther <rguenther@suse.de>
730
731 PR tree-optimization/48149
732 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
733 (vn_valueize): Move earlier.
734 (valueize_expr): Use vn_valueize.
735 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
736 operands.
737 (simplify_unary_expression): Simplify.
738
739 2011-09-06 Richard Guenther <rguenther@suse.de>
740
741 PR tree-optimization/48317
742 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
743 trailing array.
744 (sizeof_vn_nary_op): New inline function.
745 (vn_nary_op_lookup_pieces): Adjust.
746 (vn_nary_op_insert_pieces): Likewise.
747 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
748 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
749 any number of operands.
750 (vn_nary_length_from_stmt): New function.
751 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
752 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
753 sized temporary.
754 (vn_nary_op_lookup): Likewise.
755 (vn_nary_op_lookup_stmt): Likewise.
756 (vn_nary_op_insert_into): Likewise.
757 (vn_nary_op_insert_stmt): Likewise.
758 (visit_use): Handle CONSTRUCTOR as nary.
759 * tree-ssa-pre.c (phi_translate_1): Adjust.
760 (create_expression_by_pieces): Likewise.
761 (compute_avail): Likewise.
762
763 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
764
765 * config/arm/arm.c (arm_preferred_simd_mode): Check
766 TARGET_NEON_VECTORIZE_DOUBLE instead of
767 TARGET_NEON_VECTORIZE_QUAD.
768 (arm_autovectorize_vector_sizes): Likewise.
769 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
770 mask of mvectorize-with-neon-double. Add RejectNegative.
771 (mvectorize-with-neon-double): New.
772
773 2011-09-06 Richard Guenther <rguenther@suse.de>
774
775 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
776
777 2011-09-06 Tom de Vries <tom@codesourcery.com>
778
779 * recog.c (asm_labels_ok): New function.
780 (check_asm_operands): Use asm_labels_ok.
781
782 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
783
784 PR target/49606
785 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
786 (PMODE_INSN): New macro.
787 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
788 (mips_got_load, mips_expand_synci_loop): Likewise.
789 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
790 cprestore patterns.
791 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
792 copygp_mips16 patterns.
793 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
794 and use_cprestore patterns.
795 (mips_override_options): Check for incompatible -mabi and -mlong
796 combinations.
797 * config/mips/mips.md (unspec_got<mode>): Rename to...
798 (unspec_got_<mode>): ...this.
799 (copygp_mips16): Use the Pmode iterator.
800 (potential_cprestore, cprestore, use_cprestore): Likewise.
801 (clear_cache, indirect_jump): Use PMODE_INSN.
802 (indirect_jump<mode>): Rename to...
803 (indirect_jump_<mode>): ...this.
804 (tablejump): Use PMODE_INSN.
805 (tablejump<mode>): Rename to...
806 (tablejump_<mode>): ...this.
807 (exception_receiver): Handle restore_gp_si and restore_gp_di.
808 (restore_gp): Use the Pmode iterator.
809 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
810 PMODE_INSN.
811
812 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
813
814 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
815 Fix the type of the BIT_AND_EXPR.
816
817 2011-09-05 David S. Miller <davem@davemloft.net>
818
819 * config.host: Add driver-sparc.o and sparc/x-sparc on
820 native sparc*-*-linux* builds.
821 * config/sparc/driver-sparc.c: Correct Linux strings.
822 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
823 * config/sparc/linux64.h: Likewise.
824 * doc/invoke.texi: Document that Linux also supports
825 -mcpu=native and -mtune=native on sparc.
826
827 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
828 PROCESSOR_NIAGARA4): New.
829 * config/sparc/sparc.opt: Handle new processor types.
830 * config/sparc/sparc.md: Add to "cpu" attribute.
831 * config/sparc/sparc.h (TARGET_CPU_niagara3,
832 TARGET_CPU_niagara4): New, treat as niagara2.
833 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
834 * config/sparc/sol2.h: Likewise.
835 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
836 * config/sparc/sparc.c (sparc_option_override): Add
837 niagara3 and niagara4 handling.
838 (sparc32_initialize_trampoline): Likewise.
839 (sparc64_initialize_trampoline): Likewise.
840 (sparc_use_sched_lookahead): Likewise.
841 (sparc_issue_rate): Likewise.
842 (sparc_register_move_cost): Likewise.
843 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
844 and niagara4 as appropriate.
845 * doc/invoke.texi: Document new processor types.
846 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
847 and --with-tune options.
848
849 * config/sparc/sol2-64.h: Move ...
850 * config/sparc/default-64.h: ... to here. Update comment.
851 * config.gcc: Update Solaris sparc to use default-64.h, also
852 prefix this header into the list on sparc64-*-linux.
853 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
854 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
855 to MASK_HARD_QUAD.
856
857 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
858
859 PR target/50289
860 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
861 that contain global register variable.
862
863 2011-09-05 Richard Guenther <rguenther@suse.de>
864
865 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
866
867 2011-09-05 Richard Guenther <rguenther@suse.de>
868
869 * stor-layout.c (layout_type): Use size_binop for array size
870 calculations.
871
872 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
873
874 * config/avr/avr.h (progmem_section): Remove Declaration.
875 * config/avr/avr.c (progmem_section): Make static and rename to
876 progmem_swtable_section.
877 (avr_output_addr_vec_elt): No need to switch sections.
878 (avr_asm_init_sections): Use output_section_asm_op as section
879 callback for progmem_swtable_section.
880 (avr_output_progmem_section_asm_op): Remove Function.
881 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
882 (avr_asm_function_rodata_section): New static Function.
883 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
884 alignment 2**1 for jump tables.
885
886 2011-09-04 Jan Hubicka <jh@suse.cz>
887
888 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
889 parameter is SSA name.
890
891 2011-09-04 Richard Guenther <rguenther@suse.de>
892
893 Revert
894 2011-08-31 Richard Guenther <rguenther@suse.de>
895
896 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
897 special-casing.
898
899 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
900
901 PR debug/49901
902 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
903
904 2011-09-04 Jakub Jelinek <jakub@redhat.com>
905 Ira Rosen <ira.rosen@linaro.org>
906
907 PR tree-optimization/50208
908 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
909 argument. Check that def_stmt is inside the loop.
910 (vect_recog_widen_mult_pattern): Update calls to
911 vect_handle_widen_mult_by_cons.
912 (vect_operation_fits_smaller_type): Check that def_stmt is
913 inside the loop.
914
915 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
916
917 * tree-vectorizer.c (vect_print_dump_info): Print line
918 number when dumping to a file.
919 (vectorize_loops): Add new messages to dump file.
920
921 2011-09-03 Martin Jambor <mjambor@suse.cz>
922
923 * ipa-prop.h (ipa_jump_func_t): New typedef.
924 (struct ipa_edge_args): Removed field argument_count, field
925 jump_functions turned into a vector.
926 (ipa_set_cs_argument_count): Removed.
927 (ipa_get_cs_argument_count): Updated to work on vectors.
928 (ipa_get_ith_jump_func): Likewise.
929 * ipa-prop.c (ipa_count_arguments): Removed.
930 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
931 jump functions. Update caller.
932 (compute_pass_through_member_ptrs): Likewise.
933 (compute_cst_member_ptr_arguments): Likewise.
934 (ipa_compute_jump_functions_for_edge): Get number of arguments from
935 the statement, allocate vector.
936 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
937 (duplicate_ipa_jump_func_array): Removed.
938 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
939 (ipa_read_node_info): Allocate vector.
940
941 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
942
943 PR middle-end/50232
944 * config/pa/pa.md (return): Define "return" insn pattern.
945 (epilogue): Use it when no epilogue is needed.
946 * config/pa/pa.c (pa_can_use_return_insn): New function.
947 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
948
949 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
950
951 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
952 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
953 Force at least BITS_PER_UNIT alignment on the new variable.
954
955 2011-09-02 Gary Funck <gary@intrepid.com>
956
957 * opts.c (print_specific_help): Fix off-by-one compare in
958 assertion check.
959 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
960 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
961 Increase by +5 to allow for more languages.
962 * optc-gen.awk: Generate #if that ensures that the number of
963 languages is within the implementation-defined limit.
964
965 2011-09-02 Michael Matz <matz@suse.de>
966
967 PR middle-end/50260
968 * ipa-split.c (split_function): Call add_referenced_var.
969
970 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
971 (cond_if_else_store_replacement_1): Ditto.
972 * tree-ssa-pre.c (get_representative_for): Ditto.
973 (create_expression_by_pieces): Ditto.
974 (insert_into_preds_of_block): Ditto.
975 * tree-sra.c (create_access_replacement): Ditto.
976 (get_replaced_param_substitute): Ditto.
977
978 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
979
980 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
981 automata_options.
982 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
983 (l1w, s1w, l2w, s2w): Define in the main automaton.
984 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
985 units.
986 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
987 (c6x_unit_names): Add the new units.
988 (c6x_unit_codes): New static array.
989 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
990 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
991 UNIT_QID_SIDE_OFFSET): New macros.
992 (RESERVATION_S2): Adjust value.
993 (c6x_option_override): Compute c6x_unit_codes.
994 (assign_reservations): Take the unit_mask of the last instruction
995 into account. Detect floating point reservations by looking for
996 the new units. Don't assign reservations if the field is already
997 nonzero.
998 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
999 (init_sched_state): Initialize it.
1000 (c6x_clear_sched_context): Free it.
1001 (insn_set_clock): Clear reservation.
1002 (prev_cycle_state): New static variable.
1003 (c6x_init_sched_context): Save it.
1004 (c6x_sched_init): Allocate space for it and clear it.
1005 (c6x_sched_dfa_pre_cycle_insn): New static function.
1006 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
1007 (c6x_variable_issue): Only record units in the unit_mask that
1008 were not set at the start of the cycle.
1009 (c6x_variable_issue): Compute and store the unit_mask from the
1010 current state.
1011 (reorg_split_calls): Ensure the new information remains correct.
1012 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1013 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
1014 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
1015 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
1016 Add special reservations.
1017 * config/c6x/c6x-sched.md: Regenerate.
1018
1019 2011-09-02 Martin Jambor <mjambor@suse.cz>
1020
1021 * ipa-prop.h (ipa_node_params): Removed fields
1022 called_with_var_arguments and node_versionable.
1023 (ipa_set_called_with_variable_arg): Removed.
1024 (ipa_is_called_with_var_arguments): Likewise.
1025 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
1026 (determine_versionability): Do not check for type attributes and va
1027 builtins. Record versionability into inline summary.
1028 (initialize_node_lattices): Do not check
1029 ipa_is_called_with_var_arguments.
1030 (propagate_constants_accross_call): Likewise, ignore arguments we do
1031 not have PARM_DECLs for, set variable flag for parameters that were
1032 not passed a value.
1033 (create_specialized_node): Dump info that we cannot change signature.
1034 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
1035 number of arguments.
1036 (ipa_make_edge_direct_to_target): Likewise.
1037 (ipa_update_after_lto_read): Likewise.
1038 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
1039 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
1040 they were remapped.
1041
1042 2011-09-02 Richard Guenther <rguenther@suse.de>
1043
1044 PR tree-optimization/27460
1045 PR middle-end/29269
1046 * doc/md.texi (vcond): Document.
1047 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
1048 optab with two modes.
1049 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
1050 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
1051 (vcond_optab): Adjust.
1052 (vcondu_optab): Likewise.
1053 (expand_vec_cond_expr_p): Adjust prototype.
1054 * optabs.c (get_vcond_icode): Adjust.
1055 (expand_vec_cond_expr_p): Likewise.
1056 (expand_vec_cond_expr): Likewise.
1057 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
1058 vector type.
1059 (vectorizable_condition): Allow differing types for comparison
1060 and result.
1061 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
1062 for the comparison.
1063 * config/i386/sse.md (vcond<mode>): Split to
1064 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
1065 vcond<V_128:mode><VI124_128:mode> and
1066 vcondu<V_128:mode><VI124_128:mode>.
1067 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
1068 (vconduv2di): Likewise.
1069 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
1070 (vcondu<mode>): Likewise.
1071 * config/ia64/vect.md (vcond<mode>): Likewise.
1072 (vcondu<mode>): Likewise.
1073 (vcondv2sf): Likewise.
1074 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
1075 * config/rs6000/paired.md (vcondv2sf): Likewise.
1076 * config/rs6000/vector.md (vcond<mode>): Likewise.
1077 (vcondu<mode>): Likewise.
1078 * config/spu/spu.md (vcond<mode>): Likewise.
1079 (vcondu<mode>): Likewise.
1080
1081 2011-09-02 Richard Guenther <rguenther@suse.de>
1082
1083 * pretty-print.h (pp_unsigned_wide_integer): New.
1084 * tree-pretty-print.c (dump_generic_node): Print unsigned
1085 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
1086
1087 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
1088
1089 PR target/49987
1090 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
1091 valid CONST_VECTOR operands.
1092 (rs6000_expand_vector_init): Likewise.
1093
1094 2011-09-02 Martin Jambor <mjambor@suse.cz>
1095
1096 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
1097 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
1098 BINFO_VTABLE. Parameter delta removed, all callers updated.
1099 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
1100 BINFO_VTABLE.
1101 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
1102 all calls.
1103 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
1104 handling of thunk_delta.
1105 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
1106 (devirtualization_time_bonus): Do not handle thunk deltas.
1107 (ipcp_discover_new_direct_edges): Likewise.
1108 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1109 (try_make_edge_direct_simple_call): Likewise.
1110 (try_make_edge_direct_virtual_call): Likewise.
1111 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1112 parameter set as unused.
1113 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1114 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1115 parameter set as unused.
1116 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1117 (input_edge_opt_summary): Likewise.
1118 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
1119 BINFO_VIRTUALS at all.
1120 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
1121
1122 2011-09-02 Richard Guenther <rguenther@suse.de>
1123
1124 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
1125 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
1126
1127 2011-08-31 Richard Guenther <rguenther@suse.de>
1128
1129 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
1130 handling here, from ...
1131 (expand_expr_real_1): ... here.
1132 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
1133 and VEC_COND_EXPR.
1134 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
1135 a GIMPLE_TERNARY_RHS.
1136 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
1137 and VEC_COND_EXPR here ...
1138 (verify_gimple_assign_single): ... not here.
1139 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
1140 * tree-object-size.c (cond_expr_object_size): Adjust.
1141 (collect_object_sizes_for): Likewise.
1142 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
1143 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
1144 (ssa_forward_propagate_and_combine): Adjust.
1145 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
1146 as ternary.
1147 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
1148 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
1149 * tree-vect-stmt.c (vectorizable_condition): Likewise.
1150 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
1151 (extract_range_from_assignment): Likewise.
1152
1153 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1154
1155 * config/i386/i386.md: Use (match_test ...) for attribute tests.
1156 * config/i386/mmx.md: Likewise.
1157 * config/i386/sse.md: Likewise.
1158 * config/i386/predicates.md (call_insn_operand): Use
1159 (not (match_test "...")) instead of (match_test "!...")
1160 * config/i386/constraints.md (w): Likewise.
1161
1162 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1163
1164 * doc/md.texi: Describe the use of match_tests in attribute tests.
1165 * rtl.def (MATCH_TEST): Update commentary.
1166 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
1167 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
1168
1169 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1170
1171 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
1172 (attr_string): Use copy_md_ptr_loc.
1173
1174 2011-08-31 Martin Jambor <mjambor@suse.cz>
1175
1176 PR middle-end/49886
1177 * ipa-inline-analysis.c (compute_inline_parameters): Set
1178 can_change_signature of noes with typde attributes.
1179 * ipa-split.c (split_function): Do not skip any arguments if
1180 can_change_signature is set.
1181
1182 2011-08-31 Martin Jambor <mjambor@suse.cz>
1183
1184 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
1185 check removed.
1186
1187 2011-08-31 Richard Guenther <rguenther@suse.de>
1188
1189 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1190 special-casing.
1191
1192 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
1193
1194 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
1195
1196 2011-08-31 Tom de Vries <tom@codesourcery.com>
1197
1198 PR middle-end/43513
1199 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
1200 * tree-ssa-ccp.c (params.h): Include.
1201 (fold_builtin_alloca_for_var): New function.
1202 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
1203
1204 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
1205
1206 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1207 Handle FMA option.
1208
1209 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1210
1211 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
1212 b3 and b4 unsigned.
1213
1214 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1215
1216 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
1217 when code is SET.
1218
1219 2011-08-30 Richard Guenther <rguenther@suse.de>
1220
1221 PR middle-end/48571
1222 * gimple.h (maybe_fold_offset_to_address): Remove.
1223 (maybe_fold_offset_to_reference): Likewise.
1224 (maybe_fold_stmt_addition): Likewise.
1225 (may_propagate_address_into_dereference): Likewise.
1226 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1227 array references.
1228 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1229 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1230 addresses instead.
1231 (may_propagate_address_into_dereference): Remove.
1232 (maybe_fold_offset_to_array_ref): Likewise.
1233 (maybe_fold_offset_to_reference): Likewise.
1234 (maybe_fold_offset_to_address): Likewise.
1235 (maybe_fold_stmt_addition): Likewise.
1236 (fold_gimple_assign): Do not reconstruct array references but
1237 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1238 MEM_REF addresses.
1239 (gimple_fold_stmt_to_constant_1): Likewise.
1240 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1241 * gimplify.c (gimplify_conversion): Likewise.
1242 (gimplify_expr): Likewise.
1243
1244 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
1245
1246 * config/i386/fmaintrin.h: New.
1247 * config.gcc: Add fmaintrin.h.
1248 * config/i386/i386.c
1249 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1250 <IX86_BUILTIN_VFMADDSD3>: Likewise.
1251 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1252 (*fmai_fmadd_<mode>): Likewise.
1253 (*fmai_fmsub_<mode>): Likewise.
1254 (*fmai_fnmadd_<mode>): Likewise.
1255 (*fmai_fnmsub_<mode>): Likewise.
1256 * config/i386/immintrin.h: Add fmaintrin.h.
1257
1258 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
1259
1260 * genautomata.c (NO_COMB_OPTION): New macro.
1261 (no_comb_flag): New static variable.
1262 (gen_automata_option): Handle NO_COMB_OPTION.
1263 (comb_vect_p): False if no_comb_flag.
1264 (add_vect): Move computation of min/max values. Return early if
1265 no_comb_flag.
1266 * doc/md.texi (automata_option): Document no-comb-vect.
1267
1268 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1269 "__x86.get_pc_thunk".
1270
1271 * bb-reorder.c (insert_section_boundary_note): Only do it if
1272 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1273
1274 2011-08-30 Christian Bruel <christian.bruel@st.com>
1275
1276 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1277 flag_profile_use.
1278
1279 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1280
1281 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1282 to off. Document switch.
1283 * doc/invoke.texi (-msave-toc-indirect): Ditto.
1284
1285 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1286
1287 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1288 conditionals and comments inside macro arguments.
1289
1290 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1291 Richard Guenther <rguenther@suse.de>
1292
1293 * tree.h (constant_boolean_node): Adjust prototype.
1294 * fold-const.c (fold_convert_loc): Move aggregate conversion
1295 leeway down.
1296 (constant_boolean_node): Make value parameter boolean, add
1297 vector type handling.
1298 (fold_unary_loc): Use constant_boolean_node.
1299 (fold_binary_loc): Preserve types properly when folding
1300 COMPLEX_EXPR <__real x, __imag x>.
1301 * gimplify.c (gimplify_expr): Handle vector comparison.
1302 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
1303 comparison.
1304 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
1305 comparisons.
1306
1307 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1308
1309 PR middle-end/48722
1310 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
1311 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
1312 (verify_rtl_sharing): Likewise and verify_rtx_sharing
1313 in there too.
1314 (unshare_all_rtl_in_chain): For CALL_INSNs
1315 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
1316
1317 2011-08-29 Richard Guenther <rguenther@suse.de>
1318
1319 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
1320 on the built ADDR_EXPR.
1321
1322 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1323
1324 PR debug/50215
1325 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
1326 before adding ENTRY_VALUE to val->locs.
1327
1328 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
1329
1330 PR bootstrap/50218
1331 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
1332 comp.
1333
1334 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
1335
1336 * doc/rtl.texi (simple_return): Document.
1337 (parallel, PATTERN): Here too.
1338 * doc/md.texi (return): Mention it's allowed to expand to simple_return
1339 in some cases.
1340 (simple_return): Document standard pattern.
1341 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
1342 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
1343 * reorg.c (function_return_label, function_simple_return_label):
1344 New static variables, replacing...
1345 (end_of_function_label): ... this.
1346 (simplejump_or_return_p): New static function.
1347 (optimize_skip, steal_delay_list_from_fallthrough,
1348 fill_slots_from_thread): Use it.
1349 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
1350 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
1351 (find_end_label): Take a new arg which is one of the two return
1352 rtxs. Depending on which, set either function_return_label or
1353 function_simple_return_label. All callers changed.
1354 (make_return_insns): Make both kinds.
1355 (dbr_schedule): Adjust for two kinds of end labels.
1356 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
1357 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
1358 (gen_expand, gen_split): Use ANY_RETURN_P.
1359 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
1360 * rtl.def (SIMPLE_RETURN): New code.
1361 * ifcvt.c (find_if_case_1): Be more careful about
1362 redirecting jumps to the EXIT_BLOCK.
1363 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
1364 returnjump_p_1): Handle SIMPLE_RETURNs.
1365 * print-rtl.c (print_rtx): Likewise.
1366 * rtl.c (copy_rtx): Likewise.
1367 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
1368 * combine.c (simplify_set): Likewise.
1369 * resource.c (find_dead_or_set_registers, mark_set_resources):
1370 Likewise.
1371 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
1372 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
1373 (init_emit_regs): Initialize simple_return_rtx.
1374 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
1375 force_nonfallthru_and_redirect.
1376 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
1377 (GR_SIMPLE_RETURN): New enum value.
1378 (simple_return_rtx): New macro.
1379 * basic-block.h (force_nonfallthru_and_redirect): Adjust
1380 declaration.
1381 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
1382 argument. All callers changed. Be careful about what kinds of
1383 returnjumps to generate.
1384 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
1385 ix86_pad_short_function): Likewise.
1386 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
1387 of return.
1388 * config/mips/mips.md (any_return): New code_iterator.
1389 (optab): Add cases for return and simple_return.
1390 (return): Expand to a simple_return.
1391 (simple_return): New pattern.
1392 (*<optab>, *<optab>_internal for any_return): New patterns.
1393 (return_internal): Remove.
1394 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
1395 a simple_return_internal.
1396
1397 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1398
1399 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
1400 (vec_extract_lo_<mode>): Prevent both operands in memory.
1401 (vec_extract_lo_v16hi): Ditto.
1402 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1403
1404 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1405
1406 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
1407 (*sse2_mulv4si3): Ditto.
1408 (mulv2di3): Ditto.
1409 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1410 notes to REG_EQUAL.
1411
1412 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1413
1414 PR target/50202
1415 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1416 when all outputs are unused.
1417 (sse4_2_pcmpistr): Ditto.
1418
1419 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1420
1421 * config/i386/i386.md (round<mode>2): New expander.
1422 * config/i386/i386.c (enum ix86_builtins): Add
1423 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
1424 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
1425 descriptions.
1426 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
1427 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
1428
1429 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1430
1431 PR middle-end/50083
1432 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
1433 only when TARGET_C99_FUNCTIONS.
1434 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
1435 <BUILT_IN_RINT{,F,L}>: Ditto.
1436
1437 2011-08-26 Michael Matz <matz@suse.de>
1438 Jakub Jelinek <jakub@redhat.com>
1439
1440 PR lto/50165
1441 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
1442 don't call strlen twice, use memcpy.
1443
1444 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
1445
1446 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
1447 * config/i386/bmiintrin.h: Likewise.
1448 * config/i386/lzcntintrin.h: Likewise.
1449
1450 * config/i386/immintrin.h: Include <lzcntintrin.h>,
1451 <bmiintrin.h> and <bmi2intrin.h>.
1452
1453 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1454
1455 PR target/50166
1456 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
1457 * configure: Regenerate.
1458
1459 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1460
1461 PR c/50179
1462 * c-typeck.c (c_process_expr_stmt): Skip over nops and
1463 call mark_exp_read even if exprv is ADDR_EXPR.
1464
1465 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
1466
1467 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
1468 to df_set_dead_notes_for_mw.
1469
1470 2011-08-26 Richard Guenther <rguenther@suse.de>
1471
1472 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1473
1474 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
1475 Tom de Vries <tom@codesourcery.com>
1476
1477 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
1478 (struct ivopts_data): Add loop_single_exit_p field.
1479 (niter_for_exit): Change parameter desc_p into return value. Return
1480 desc if desc->may_be_zero. Free desc if unused.
1481 (niter_for_single_dom_exit): Change return type.
1482 (find_induction_variables): Handle changed return type of
1483 niter_for_single_dom_exit. Dump may_be_zero.
1484 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
1485 (set_use_iv_cost): Add and handle comp parameter.
1486 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
1487 comp argument to set_use_iv_cost.
1488 (strip_wrap_conserving_type_conversions, expr_equal_p)
1489 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
1490 (may_eliminate_iv): Add comp parameter. Handle new return type of
1491 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
1492 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
1493 and may_eliminate_iv.
1494 (rewrite_use_compare): Move call to iv_elimination_compare to ...
1495 (may_eliminate_iv): Here.
1496 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
1497
1498 2011-08-26 Tom de Vries <tom@codesourcery.com>
1499
1500 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
1501 accessing TREE_TYPE.
1502
1503 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
1504
1505 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
1506 (*ior_scc_scc_cmp): Likewise
1507 (*and_scc_scc): Likewise.
1508 (*and_scc_scc_cmp): Likewise.
1509 (*and_scc_scc_nodom): Likewise.
1510 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
1511
1512 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1513
1514 * rtlanal.c (nonzero_bits1): Handle CLRSB.
1515
1516 2011-08-26 Richard Guenther <rguenther@suse.de>
1517
1518 * expr.c (string_constant): Handle &MEM_REF.
1519
1520 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1521
1522 * config/arm/arm.c (struct four_ints): New type.
1523 (count_insns_for_constant): Delete function.
1524 (find_best_start): Delete function.
1525 (optimal_immediate_sequence): New function.
1526 (optimal_immediate_sequence_1): New function.
1527 (arm_gen_constant): Move constant splitting code to
1528 optimal_immediate_sequence.
1529 Rewrite constant negation/invertion code.
1530
1531 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1532
1533 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1534 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1535 Remove prototype. Remove static function type.
1536 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1537 Add arch attribute.
1538 * config/arm/constraints.md (Pj, PJ): New constraints.
1539
1540 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1541
1542 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1543 ("cortex_a9_multiply_long"): New and use above. Handle all
1544 long multiply cases.
1545 ("cortex_a9_multiply"): Handle smmul and smmulr.
1546 ("cortex_a9_mac"): Handle smmla.
1547
1548 2011-08-25 Richard Henderson <rth@redhat.com>
1549
1550 PR 50132
1551 PR 49864
1552 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1553 non-constant stack adjutment.
1554 * expr.c (find_args_size_adjust): Break out from ...
1555 (fixup_args_size_notes): ... here.
1556 * rtl.h (find_args_size_adjust): Declare.
1557
1558 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
1559
1560 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1561 sse4 and sse4_noavx.
1562 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1563 (*pushdf_rex64): Change Y2 register constraint to x.
1564 (*movdf_internal_rex64): Ditto.
1565 (*zero_extendsidi2_rex64): Ditto.
1566 (*movdi_internal): Change Y2 register constraint to x
1567 and update "isa" attribute.
1568 (*pushdf): Ditto.
1569 (*movdf internal): Ditto.
1570 (zero_extendsidi2_1): Ditto.
1571 (*truncdfdf_mixed): Ditto.
1572 (*truncxfdf2_mixed): Ditto.
1573 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1574 register constraint to x.
1575 (*movv2sf_internal_rex64): Ditto.
1576 (*mov<mode>_internal): Change Y2 register constraint to x
1577 and add "isa" attribute.
1578 (*movv2sf_internal): Ditto.
1579 (*vec_extractv2si_1): Ditto.
1580 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1581 constraints to x and update "isa" attribute.
1582 (*vec_interleave_highv2df): Change Y3 registerconstraint
1583 to x and update "isa" attribute.
1584 (*vec_interleave_lowv2df): Ditto.
1585 (*vec_concatv2df): Change Y2 register constraint to x and
1586 update "isa" attribute.
1587 (sse2_loadld): Ditto.
1588 (*vec_extractv2di_1): Ditto.
1589 (*vec_dupv4si): Ditto.
1590 (*vec_dupv2di): Ditto.
1591 (*vec_concatv4si): Ditto.
1592 (vec_concatv2di): Ditto.
1593 * config/i386/constraints.md (Y2): Remove.
1594 (Y3): Ditto.
1595 (Y4): Ditto.
1596
1597 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1598
1599 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1600 dump_def_use_chain): Don't declare.
1601 (mark_conflict, create_new_chain): Move before users.
1602 (regrename_optimize): Move to near end of file.
1603
1604 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1605
1606 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1607 (secondary_input_reload_class): Remove Prototype.
1608 * config/avr/avr.c (byte_immediate_operand): Remove Function.
1609 * config/avr/avr.md (setmemhi): Use u8_operand.
1610 (strlenhi): Use const0_rtx for comparison.
1611 * config/avr/avr.h (avr_reg_order): Remove Declaration.
1612
1613 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1614
1615 * config/avr/avr.c (reg_class_tab): Make local to
1616 avr_regno_reg_class. Return smallest register class available.
1617
1618 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1619
1620 * config/avr/avr.c (STR_PREFIX_P): New Define.
1621 (avr_asm_declare_function_name): Use it.
1622 (avr_asm_named_section): Use it.
1623 (avr_section_type_flags): Use it.
1624
1625 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1626
1627 * doc/md.texi (automata_option): Document collapse-ndfa.
1628 * genautomata.c (COLLAPSE_OPTION): New macro.
1629 (collapse_flag): New static variable.
1630 (struct description): New member normal_decls_num.
1631 (struct automaton): New members advance_ainsn and collapse_ainsn.
1632 (gen_automata_option): Check for COLLAPSE_OPTION.
1633 (collapse_ndfa_insn_decl): New static variable.
1634 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1635 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1636 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1637 necessary. Use normal_decls_num rather than decls_num, remove
1638 test for special decls.
1639 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1640 (make_automaton); Likewise. Use the new advance_cycle_insn member
1641 of struct automaton.
1642 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1643 is set.
1644 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1645 transition. Create the necessary transitions for it.
1646 (create_ainsns): Return void. Take an automaton_t argument, and
1647 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
1648 callers changed.
1649 (COLLAPSE_NDFA_VALUE_NAME): New macro.
1650 (output_tables): Output code to define it.
1651 (output_internal_insn_code_evaluation): Output code to accept
1652 const0_rtx as collapse-ndfa transition.
1653 (output_default_latencies, output_print_reservation_func,
1654 output_print_description): Reorganize loops to use normal_decls_num
1655 as loop bound; remove special case for advance_cycle_insn_decl.
1656 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1657 (check_automata_insn_issues): Check for collapse_ainsn.
1658 (expand_automate): Allocate sufficient space. Initialize
1659 normal_decls_num.
1660
1661 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1662
1663 * config/avr/avr.md: Fix indentation from r177991.
1664
1665 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1666
1667 * regrename.c (struct du_head): Remove member terminated.
1668 (create_new_chain): Don't initialize it.
1669 (scan_rtx_reg): Don't set or test it, test the open_chains_set
1670 bitmap instead.
1671 (tick, this_tick): New global variables, moved out of
1672 regrename_optimize.
1673 (current_id, open_chains, closed_chains, open_chains_set,
1674 live_in_chains, live_hard_regs): Reorder declarations.
1675 (dump_def_use_chain): Move function earlier in the file.
1676 (rename_chains): New static function, broken out of
1677 regrename_optimize.
1678 (regrename_optimize): Use it. Remove #if 0'ed code.
1679
1680 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1681
1682 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1683
1684 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
1685
1686 PR target/50172
1687 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1688
1689 2011-08-24 Richard Guenther <rguenther@suse.de>
1690
1691 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1692 ref in the basic-block case. Move stripping array-refs
1693 to the place we create an access-function for it. Remove
1694 bogus stripping down a MEM_REF to its base.
1695
1696 2011-08-24 Richard Guenther <rguenther@suse.de>
1697
1698 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1699 with -fno-strict-overflow.
1700
1701 2011-08-24 Richard Guenther <rguenther@suse.de>
1702
1703 * tree-vectorizer.c (vect_print_dump_info): Avoid the
1704 file and location clutter when dumping to dump files.
1705
1706 2011-08-24 Simon Baldwin <simonb@google.com>
1707
1708 * gengtype-state.c (write_state): Remove timestamped header line.
1709
1710 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1711
1712 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1713 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1714 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1715 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1716 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1717 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1718 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1719 rules.
1720 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1721
1722 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1723
1724 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1725
1726 2011-08-24 Richard Guenther <rguenther@suse.de>
1727
1728 PR tree-optimization/50067
1729 * tree-data-ref.c (dr_analyze_indices): Do not add an access
1730 function for a MEM_REF base that has no evolution in the loop
1731 nest or that is not analyzable.
1732
1733 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
1734
1735 * ira.c (ira_init_register_move_cost): Check small subclasses
1736 through ira_reg_class_max_nregs and ira_available_class_regs.
1737
1738 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
1739
1740 * config/i386/constraints.md (Yp): New register constraint.
1741 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1742 Yp register constraint.
1743 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1744 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1745 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1746
1747 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
1748
1749 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1750
1751 2011-08-23 Mark Heffernan <meheff@google.com>
1752
1753 PR middle-end/38509
1754 * common.opt (Wfree-nonheap-object): New option.
1755 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
1756 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
1757 to warning.
1758 (expand_builtin): Make warning conditional.
1759
1760 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
1761
1762 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
1763 (length_immediate): Handle imulx, ishiftx and rotatex.
1764 (imm_disp): Ditto.
1765 (isa): Add bmi2.
1766 (enabled): Handle bmi2.
1767 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
1768 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
1769 (*bmi2_umulditi3_1): New insn pattern.
1770 (*bmi2_umulsidi3_1): Ditto.
1771 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
1772 (*bmi2_ashl<mode>3_1): New insn pattern.
1773 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
1774 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
1775 (*bmi2_ashlsi3_1_zext): New insn pattern.
1776 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
1777 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
1778 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
1779 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
1780 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
1781 flags dependency.
1782 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
1783 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
1784 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
1785 flags dependency.
1786 (*bmi2_rorx<mode>3_1): New insn pattern.
1787 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
1788 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
1789 (*rotatert<mode>3_1 splitter): Ditto.
1790 (*bmi2_rorxsi3_1_zext): New insn pattern.
1791 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
1792 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
1793 (*rotatertsi3_1_zext splitter): Ditto.
1794
1795 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
1796
1797 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
1798 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
1799 (ix86_handle_option): Handle OPT_mbmi2 case.
1800 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
1801 (x86_64-*-*): Likewise.
1802 * config/i386/bmi2intrin.h: New file.
1803 * config/i386/cpuid.h (bit_BMI2): New.
1804 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1805 BMI2 feature.
1806 * config/i386/i386-c.c (ix86_target_macros_internal):
1807 Conditionally define __BMI2__.
1808 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
1809 Handle BMI2 option.
1810 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
1811 (print_reg): New code.
1812 (ix86_print_operand): Likewise.
1813 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1814 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1815 IX86_BUILTIN_PEXT64.
1816 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1817 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1818 IX86_BUILTIN_PEXT64.
1819 * config/i386/i386.h (TARGET_BMI2): New.
1820 * config/i386/i386.md (UNSPEC_PDEP): New.
1821 (UNSPEC_PEXT): Likewise.
1822 (*bmi2_bzhi_<mode>3): Likewise.
1823 (*bmi2_pdep_<mode>3): Likewise.
1824 (*bmi2_pext_<mode>3): Likewise.
1825 * config/i386/i386.opt (mbmi2): New.
1826 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1827 is defined.
1828 * doc/extend.texi: Document BMI2 built-in functions.
1829 * doc/invoke.texi: Document -mbmi2.
1830
1831 2011-08-23 Jakub Jelinek <jakub@redhat.com>
1832
1833 PR middle-end/50161
1834 * simplify-rtx.c (simplify_const_unary_operation): If
1835 op is CONST_INT, don't look at op_mode, but use instead mode.
1836 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1837 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1838 operation and TRUNCATE/ZERO_EXTEND if needed.
1839 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1840 Document that operand mode must be same as operation mode,
1841 or VOIDmode.
1842 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1843 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1844 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1845 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1846 use the mode of operand for the operation and add truncate
1847 or zero_extend around if needed.
1848 * config/c6x/c6x.md (ctzdi2): Likewise.
1849 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1850
1851 2011-08-12 Michael Matz <matz@suse.de>
1852
1853 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1854 (gimple_expand_cfg): Merge alignment info for coalesced pointer
1855 SSA names.
1856
1857 2011-08-23 Richard Guenther <rguenther@suse.de>
1858
1859 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1860 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1861 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1862 from ...
1863 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1864 (mem_refs_may_alias_p): Adjust.
1865 * tree-data-ref.h (dr_may_alias_p): Adjust.
1866 * tree-data-ref.c: Include tree-affine.h.
1867 (dr_analyze_indices): Do nothing for the non-loop case.
1868 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
1869 more cases in the non-loop case.
1870 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1871 calls to dr_may_alias_p.
1872 (write_alias_graph_to_ascii_ecc): Likewise.
1873 (write_alias_graph_to_ascii_dot): Likewise.
1874 (build_alias_set_optimal_p): Likewise.
1875
1876 2011-08-23 Richard Guenther <rguenther@suse.de>
1877
1878 PR tree-optimization/50162
1879 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1880
1881 2011-08-23 Richard Guenther <rguenther@suse.de>
1882
1883 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1884 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1885 (create_data_ref): Also dump access functions for the created data-ref.
1886
1887 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
1888 Kirill Yukhin <kirill.yukhin@intel.com>
1889
1890 PR target/50155
1891 * config/i386/sse.md (VI_AVX2): New.
1892 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1893 (*<plusminus_insn><mode>3): Ditto.
1894 (<sse2_avx2>_andnot<mode>3): Ditto.
1895 (*andnot<mode>3): Fix order of cond operands.
1896 Add asserts for correct TARGET_xxx.
1897 (*<any_logic:code><mode>3): Ditto.
1898
1899 2011-08-22 Anatoly Sokolov <aesok@post.ru>
1900
1901 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1902 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1903 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1904 regclass argument type to reg_class_t. Change 'max' and 'v' vars
1905 and return types to unsigned char. Use reg_class_contents instead
1906 of class_contents.
1907 (TARGET_CLASS_MAX_NREGS): Define.
1908
1909 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
1910
1911 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
1912 to make computed_jump_p return true.
1913
1914 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1915
1916 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
1917 (PICFLAG_FOR_TARGET): Substitute.
1918 * aclocal.m4: Regenerate.
1919 * configure: Regenerate.
1920
1921 2011-08-22 Dodji Seketeli <dodji@redhat.com>
1922
1923 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
1924 after reading in the pch.
1925
1926 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
1927
1928 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
1929 * configure: Regenerated.
1930
1931 2011-08-22 Jakub Jelinek <jakub@redhat.com>
1932
1933 PR tree-optimization/50133
1934 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
1935 from stmt instead of some statement around gsi.
1936
1937 PR middle-end/50141
1938 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
1939 innerdecl is a VAR_DECL.
1940
1941 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
1942
1943 * config/i386/avx2intrin.h: New file.
1944 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
1945 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
1946 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
1947 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
1948 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
1949 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
1950 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
1951 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
1952 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
1953 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
1954 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
1955 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
1956 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
1957 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
1958 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
1959 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
1960 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
1961 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
1962 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
1963 VOID_FTYPE_PV8SI_V8SI_V8SI,
1964 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
1965 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
1966 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
1967 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
1968 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
1969 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
1970 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
1971 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
1972 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
1973 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
1974 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
1975 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
1976 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
1977 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
1978 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
1979 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
1980 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
1981 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
1982 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
1983 V4DI_FTYPE_V4DI_INT_CONVERT,
1984 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
1985 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
1986 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
1987 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
1988 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
1989 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
1990 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
1991 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
1992 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
1993 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
1994 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
1995 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
1996 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
1997 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
1998 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
1999 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2000 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2001 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2002 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2003 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2004 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2005 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2006 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2007 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2008 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2009 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2010 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2011 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2012 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2013 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2014 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2015 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2016 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2017 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2018 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2019 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2020 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2021 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2022 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2023 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2024 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2025 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2026 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2027 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2028 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2029 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2030 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2031 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2032 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2033 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2034 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2035 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2036 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2037 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2038 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2039 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2040 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2041 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2042 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2043 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
2044 IX86_BUILTIN_VBROADCASTSS_PS256,
2045 IX86_BUILTIN_VBROADCASTSD_PD256,
2046 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2047 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2048 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2049 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2050 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2051 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2052 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2053 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2054 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2055 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2056 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2057 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2058 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
2059 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2060 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2061 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2062 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2063 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
2064 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
2065 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
2066 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
2067 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
2068 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
2069 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
2070 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
2071 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
2072 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
2073 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2074 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2075 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2076 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
2077 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
2078 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2079 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2080 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2081 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2082 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2083 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2084 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2085 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2086 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2087 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2088 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2089 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2090 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2091 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2092 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2093 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2094 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2095 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2096 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2097 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2098 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2099 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2100 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2101 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2102 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2103 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2104 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2105 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2106 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2107 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2108 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2109 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2110 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2111 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2112 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2113 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2114 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2115 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2116 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2117 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2118 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2119 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2120 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2121 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2122 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2123 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2124 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2125 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2126 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2127 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2128 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2129 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2130 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2131 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2132 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2133 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2134 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2135 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
2136 IX86_BUILTIN_VBROADCASTSD_PD256,
2137 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2138 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2139 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2140 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2141 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2142 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2143 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2144 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2145 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2146 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2147 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2148 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2149 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2150 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
2151 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
2152 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
2153 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
2154 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
2155 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
2156 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
2157 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
2158 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
2159 IX86_BUILTIN_GATHERDIV8SI.
2160 (ix86_preferred_simd_mode): Support AVX2 modes.
2161 (ix86_expand_args_builtin): Support AVX2 builtins.
2162 (ix86_expand_special_args_builtin): Likewise.
2163 (ix86_expand_builtin): Likewise.
2164 * config/i386/i386.md (UNSPEC_VPERMSI): New.
2165 (UNSPEC_VPERMDF): Likewise.
2166 (UNSPEC_VPERMSF): Likewise.
2167 (UNSPEC_VPERMDI): Likewise.
2168 (UNSPEC_VPERMTI): Likewise.
2169 (UNSPEC_GATHER): Likewise.
2170 (ssemodesuffix): Extend.
2171 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
2172 is defined.
2173 * config/i386/predicates.md (const1248_operand): New.
2174 * config/i386/sse.md (VI1_AVX2): New mode iterator.
2175 (VI2_AVX2): Likewise.
2176 (VI4_AVX2): Likewise.
2177 (VI8_AVX2): Likewise.
2178 (VIMAX_AVX2): Likewise.
2179 (SSESCALARMODE): Likewise.
2180 (VI12_AVX2): Likewise.
2181 (VI24_AVX2): Likewise.
2182 (VI124_AVX2): Likewise.
2183 (VI248_AVX2): Likewise.
2184 (VI48_AVX2): Likewise.
2185 (VI4SD_AVX2): Likewise.
2186 (V48_AVX2): Likewise.
2187 (AVX256MODE2P): Likewise.
2188 (AVXMODE48P_DI): Likewise.
2189 (sse2_avx2): New mode attribute.
2190 (ssse3_avx2): Likewise.
2191 (sse4_1_avx2): Likewise.
2192 (avx_avx2): Likewise.
2193 (ssebytemode): Likewise.
2194 (AVXTOSSEMODE): Likewise.
2195 (AVXMODE48P_DI): Likewise.
2196 (gthrfirstp): Likewise.
2197 (gthrlastp): Likewise.
2198 (lshift): New code_iterator
2199 (lshift): New code attribute.
2200 (lshift): Likewise.
2201 (ssescalarmodesuffix): Update.
2202 (sseunpackmode): Likewise.
2203 (ssepackmode): Likewise.
2204 (avx2_vec_dupv4sf): New insn pattern.
2205 (avx2_vec_dupv8sf): Likewise.
2206 (avx2_interleave_highv4di): Likewise.
2207 (avx2_interleave_lowv4di): Likewise.
2208 (avx2_umulv4siv4di3): Likewise
2209 (*avx2_umulv4siv4di3): Likewise
2210 (avx2_pmaddwd): Likewise.
2211 (*avx2_pmaddwd): Likewise.
2212 (avx2_lshrqv4di3): Likewise.
2213 (avx2_lshlqv4di3): Likewise.
2214 (avx2_lshl<mode>3): Likewise.
2215 (avx2_<umaxmin:code><mode>3): Likewise.
2216 (*avx2_<umaxmin:code><mode>3): Likewise.
2217 (avx2_<smaxmin:code><mode>3): Likewise.
2218 (*avx2_<smaxmin:code><mode>3): Likewise.
2219 (avx2_eq<mode>3): Likewise.
2220 (*avx2_eq<mode>3): Likewise.
2221 (avx2_gt<mode>3): Likewise.
2222 (avx2_interleave_highv32qi): New.
2223 (avx2_interleave_lowv32qi): Likewise.
2224 (avx2_interleave_highv16hi): Likewise.
2225 (avx2_interleave_lowv16hi): Likewise.
2226 (avx2_interleave_highv8si): Likewise.
2227 (avx2_interleave_lowv8si): Likewise.
2228 (avx2_pshufd): Likewise.
2229 (avx2_pshufd_1): Likewise.
2230 (avx2_pshuflwv3): Likewise.
2231 (avx2_pshuflw_1): Likewise.
2232 (avx2_pshufhwv3): Likewise.
2233 (avx2_pshufhw_1): Likewise.
2234 (avx2_uavgv32qi3): Likewise.
2235 (*avx2_uavgv32qi3): Likewise.
2236 (avx2_uavgv16hi3): Likewise.
2237 (*avx2_uavgv16hi3): Likewise.
2238 (avx2_pmovmskb): Likewise.
2239 (avx2_phaddwv16hi3): Likewise.
2240 (avx2_phadddv8si3): Likewise.
2241 (avx2_phaddswv16hi3): Likewise.
2242 (avx2_phsubwv16hi3): Likewise.
2243 (avx2_phsubdv8si3): Likewise.
2244 (avx2_phsubswv16hi3): Likewise.
2245 (avx2_pmaddubsw256): Likewise.
2246 (avx2_umulhrswv16hi3): Likewise.
2247 (*avx2_umulhrswv16hi3): Likewise.
2248 (avx2_packusdw): Likewise.
2249 (avx2_pblendd<mode>): Likewise.
2250 (avx2_<code>v16qiv16hi2): Likewise.
2251 (avx2_<code>v8qiv8si2): Likewise.
2252 (avx2_<code>v8hiv8si2): Likewise.
2253 (avx2_<code>v4qiv4di2): Likewise.
2254 (avx2_<code>v4hiv4di2): Likewise.
2255 (avx2_<code>v4siv4di2): Likewise.
2256 (avx2_pbroadcast<mode>): Likewise.
2257 (avx2_permvarv8si): Likewise.
2258 (avx2_permv4df): Likewise.
2259 (avx2_permvarv8sf): Likewise.
2260 (avx2_permv4di): Likewise.
2261 (avx2_permv2ti): Likewise.
2262 (avx2_vec_dupv4df): Likewise.
2263 (avx2_vbroadcasti128_<mode>): Likewise.
2264 (avx2_vec_set_lo_v4di): Likewise.
2265 (avx2_vec_set_hi_v4di): Likewise.
2266 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2267 (avx2_extracti128): Likewise.
2268 (avx2_inserti128): Likewise.
2269 (avx2_ashrvv8si): Likewise.
2270 (avx2_ashrvv4si): Likewise.
2271 (avx2_<lshift>vv8si): Likewise.
2272 (avx2_<lshift>v<mode>): Likewise.
2273 (avx2_<lshift>vv2di): Likewise.
2274 (avx2_gathersi<mode>): Likewise.
2275 (*avx2_gathersi<mode>): Likewise.
2276 (avx2_gatherdi<mode>): Likewise.
2277 (*avx2_gatherdi<mode>): Likewise.
2278 (avx2_gatherdi<mode>256): Likewise.
2279 (*avx2_gatherdi<mode>256): Likewise.
2280 (<plusminus_insn><mode>3): Use VI mode iterator.
2281 (*<plusminus_insn><mode>3): Use VI mode iterator.
2282 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2283 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2284 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2285 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2286 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
2287 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
2288 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2289 Use VI2_AVX2 mode iterator.
2290 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2291 Use VI2_AVX2 mode iterator.
2292 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
2293 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
2294 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2295 Use VI4_AVX2 mode iterator.
2296 (ashr<mode>3): Use VI24_AVX2 mode iterator.
2297 (lshr<mode>3): Use VI248_AVX2 mode iterator.
2298 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2299 Use VIMAX_AVX2 mode iterator.
2300 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2301 Use VI mode iterator.
2302 (*andnot<mode>3): Update for AVX2.
2303 (*<any_logic:code><mode>3): Likewise.
2304 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
2305 Use VI1_AVX mode iterator.
2306 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
2307 Use VI2_AVX mode iterator.
2308 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
2309 Use VI1_AVX mode iterator.
2310 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
2311 Use VI8_AVX2 mode iterator.
2312 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
2313 Use VI1_AVX2 mode iterator.
2314 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
2315 Use VI124_AVX2 mode iterator.
2316 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
2317 Use SSESCALARMODE mode iterator.
2318 (abs<mode>2): Use VI124_AVX2 mode iterator.
2319 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
2320 Use VI8_AVX2 mode iterator.
2321 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
2322 Use VI1_AVX2 mode iterator.
2323 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
2324 Use VI1_AVX2 mode iterator.
2325 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
2326 Use VI2_AVX2 mode iterator.
2327 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
2328 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
2329 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
2330 avx_maskstore<ssemodesuffix><avxsizesuffix>.
2331 Use V48_AVX2 mode iterator.
2332 * doc/extend.texi: Document AVX2 built-in functions.
2333 * doc/invoke.texi: Document -mavx2.
2334
2335 2011-08-22 Matthias Klose <doko@debian.org>
2336
2337 Revert:
2338 2011-07-11 Arthur Loiret <aloiret@debian.org>
2339 Matthias Klose <doko@debian.org>
2340 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2341 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2342 convention.
2343 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2344
2345 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
2346
2347 PR bootstrap/50146
2348 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
2349 to #ifndef HONOR_REG_ALLOC_ORDER block.
2350
2351 2011-08-21 Richard Henderson <rth@redhat.com>
2352
2353 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
2354 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
2355 * resource.c (next_insn_no_annul): Likewise.
2356 (mark_set_resources): Likewise.
2357 * reorg.c (delete_from_delay_slot): Likewise.
2358 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
2359 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
2360
2361 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
2362
2363 * config/i386/i386.md (any_div): Remove.
2364 (sgnprefix): Update for removal.
2365 (u): Ditto.
2366
2367 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
2368
2369 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
2370 for ira_reg_class_max_nregs. Increase pressure by 1.
2371 (mark_pseudo_regno_subword_dead): Use allocno class
2372 for ira_reg_class_max_nregs.
2373
2374 2011-08-20 Richard Henderson <rth@redhat.com>
2375
2376 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2377 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2378 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2379 config/c6x/ltf.c: Adjust include path for soft-fp.
2380
2381 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
2382
2383 PR other/46770
2384 * config.gcc (tm_file): Add initfini-array.h if
2385 .init_arrary/.fini_array are supported.
2386
2387 * crtstuff.c: Don't generate .ctors nor .dtors sections if
2388 USE_INITFINI_ARRAY is defined.
2389
2390 * output.h (default_elf_init_array_asm_out_constructor): New.
2391 (default_elf_fini_array_asm_out_destructor): Likewise.
2392 * varasm.c (elf_init_array_section): Likewise.
2393 (elf_fini_array_section): Likewise.
2394 (get_elf_initfini_array_priority_section): Likewise.
2395 (default_elf_init_array_asm_out_constructor): Likewise.
2396 (default_elf_fini_array_asm_out_destructor): Likewise.
2397
2398 * config/initfini-array.h: New.
2399
2400 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2401
2402 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
2403 OK for ST_REGS and FP_REGS before taking those classes into account.
2404
2405 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2406
2407 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
2408 before checking for annulled branches.
2409
2410 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2411
2412 * config/i386/i386.c (ix86_binary_operator_ok): Use
2413 satisfies_constraint_L.
2414
2415 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2416 Michael Matz <matz@suse.de>
2417
2418 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
2419 trunc (a + copysign (nextafter (0.5, 0.0), a)).
2420
2421 2011-08-20 Anatoly Sokolov <aesok@post.ru>
2422
2423 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2424 * doc/tm.texi: Regenerate.
2425 * targhooks.c (default_preferred_output_reload_class): Don't use
2426 PREFERRED_OUTPUT_RELOAD_CLASS macro.
2427 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
2428
2429 2011-08-20 Jakub Jelinek <jakub@redhat.com>
2430
2431 PR tree-optimization/48739
2432 * tree-ssa.c: Include cfgloop.h.
2433 (execute_update_addresses_taken): When updating ssa, if in loop closed
2434 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
2435 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
2436
2437 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
2438
2439 PR rtl-optimization/49936
2440 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
2441 for calculation of max register move costs.
2442
2443 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2444
2445 * c-parser.c (c_parser_postfix_expression): Convert operands of
2446 __builtin_complex to their semantic types.
2447
2448 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
2449
2450 PR middle-end/49721
2451 * explow.c (convert_memory_address_addr_space): Also permute the
2452 conversion and addition of constant for zero-extend.
2453
2454 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2455
2456 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
2457 * doc/extend.texi (__builtin_complex): Document.
2458
2459 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2460
2461 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
2462 beyond conversions.
2463 (convert_mult_to_widen): Convert constant inputs to the right type.
2464 (convert_plusminus_to_widen): Don't automatically reject inputs that
2465 are not an SSA_NAME.
2466 Convert constant inputs to the right type.
2467
2468 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2469
2470 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
2471 to the correct type.
2472
2473 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2474
2475 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
2476 unsigned inputs of different modes.
2477 (convert_plusminus_to_widen): Likewise.
2478
2479 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2480
2481 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
2482 'type'.
2483 Use 'type' from caller, not inferred from 'rhs'.
2484 Don't reject non-conversion statements. Do return lhs in this case.
2485 (is_widening_mult_p): Add new argument 'type'.
2486 Use 'type' from caller, not inferred from 'stmt'.
2487 Pass type to is_widening_mult_rhs_p.
2488 (convert_mult_to_widen): Pass type to is_widening_mult_p.
2489 (convert_plusminus_to_widen): Likewise.
2490
2491 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2492
2493 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
2494 Ensure the the larger type is the first operand.
2495
2496 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2497
2498 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
2499 unsupported unsigned multiplies to signed.
2500 (convert_plusminus_to_widen): Likewise.
2501
2502 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2503
2504 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
2505 conversion statement separating multiply-and-accumulate.
2506
2507 2011-08-19 Richard Guenther <rguenther@suse.de>
2508
2509 PR tree-optimization/50067
2510 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
2511 offset only if we accounted for it.
2512
2513 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2514
2515 * config/arm/arm.md (maddhidi4): Remove '*' from name.
2516 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
2517 * optabs.c (find_widening_optab_handler_and_mode): New function.
2518 (expand_widen_pattern_expr): Use find_widening_optab_handler.
2519 (expand_binop_directly): Likewise.
2520 (expand_binop): Likewise.
2521 * optabs.h (find_widening_optab_handler): New macro define.
2522 (find_widening_optab_handler_and_mode): New prototype.
2523 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
2524 type precision rules.
2525 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
2526 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
2527 (is_widening_mult_rhs_p): Allow widening by more than one mode.
2528 Explicitly disallow mis-matched input types.
2529 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
2530 input types to fit the new handler.
2531 (convert_plusminus_to_widen): Likewise.
2532
2533 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2534
2535 * expr.c (expand_expr_real_2): Use widening_optab_handler.
2536 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2537 (gen_insn): $N now means $a must be wider than $b, not consecutive.
2538 * optabs.c (widened_mode): New function.
2539 (expand_widen_pattern_expr): Use widening_optab_handler.
2540 (expand_binop_directly): Likewise.
2541 (expand_binop): Likewise.
2542 * optabs.h (widening_optab_handlers): New struct.
2543 (optab_d): New member, 'widening'.
2544 (widening_optab_handler): New function.
2545 (set_widening_optab_handler): New function.
2546 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2547 widening_optab_handler.
2548 (convert_plusminus_to_widen): Likewise.
2549
2550 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2551
2552 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2553 pedantic.
2554 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2555 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2556
2557 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2558
2559 * opth-gen.awk: Do not declare target save/restore structures and
2560 functions if IN_RTS defined.
2561
2562 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2563
2564 PR target/49437
2565 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2566 when stack was realigned in interrupt handler prologue.
2567
2568 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2569
2570 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2571 (quals_from_declspecs): Assert _Noreturn not present.
2572 (grokdeclarator): Handle _Noreturn.
2573 (build_null_declspecs): Initialize noreturn_p.
2574 (declspecs_add_scspec): Handle RID_NORETURN.
2575 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2576 (c_parser_attributes): Handle RID_NORETURN.
2577 * c-tree.h (struct c_declspecs): Add noreturn_p.
2578 * ginclude/stdnoreturn.h: New.
2579 * Makefile.in (USER_H): Add stdnoreturn.h.
2580
2581 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
2582
2583 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2584 (OPTION_MASK_ISA_AVX_UNSET): Update.
2585 (OPTION_MASK_ISA_AVX2_UNSET): New.
2586 (ix86_handle_option): Handle OPT_mavx2 case.
2587 * config/i386/cpuid.h (bit_AVX2): New.
2588 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2589 AVX2 feature.
2590 * config/i386/i386-c.c (ix86_target_macros_internal):
2591 Conditionally define __AVX2__.
2592 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2593 Define "core-avx2" processor alias. Handle avx2 option.
2594 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2595 * config/i386/i386.h (TARGET_AVX2): New.
2596 * config/i386/i386.opt (mavx2): New.
2597 * doc/invoke.texi: Document -mavx2.
2598
2599 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
2600
2601 PR rtl-optimization/49890
2602 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2603 subclasses of class which is superset of a pressure class.
2604
2605 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2606 Igor Zamyatin <igor.zamyatin@intel.com>
2607
2608 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2609 with HOST_WIDE_INT for isa_flag.
2610 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2611 isa variables.
2612
2613 * config/i386/i386.c (ix86_target_string): Replace int with
2614 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
2615 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2616 (pta_flags): Removed.
2617 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2618 (pta): Use HOST_WIDE_INT on flags.
2619 (builtin_isa): Use HOST_WIDE_INT on isa.
2620 (ix86_add_new_builtins): Likewise.
2621 (def_builtin): Use HOST_WIDE_INT on mask.
2622 (def_builtin_const): Likewise.
2623 (builtin_description): Likewise.
2624
2625 * config/i386/i386.opt (ix86_isa_flags): Replace int with
2626 HOST_WIDE_INT.
2627 (ix86_isa_flags_explicit): Likewise.
2628 (x_ix86_isa_flags_explicit): Likewise.
2629
2630 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
2631
2632 PR rtl-optimization/50107
2633 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2634 (ira_hard_reg_in_set_p): New.
2635
2636 * ira-color.c (calculate_saved_nregs): New.
2637 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
2638 hard regs.
2639 (allocno_reload_assign, fast_allocation): Use
2640 ira_hard_reg_set_intersection_p instead of
2641 ira_hard_reg_not_in_set_p.
2642
2643 * ira.c (setup_reg_renumber): Use
2644 ira_hard_reg_set_intersection_p instead of
2645 ira_hard_reg_not_in_set_p.
2646 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2647 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2648
2649 * ira-costs.c (ira_tune_allocno_costs): Use
2650 ira_hard_reg_set_intersection_p instead of
2651 ira_hard_reg_not_in_set_p.
2652
2653 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2654 Igor Zamyatin <igor.zamyatin@intel.com>
2655
2656 * hwint.h (HOST_WIDE_INT_1): New.
2657
2658 * opt-functions.awk (switch_bit_fields): Initialize the
2659 host_wide_int field.
2660 (host_wide_int_var_name): New.
2661 (var_type_struct): Check and return HOST_WIDE_INT.
2662
2663 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2664
2665 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2666
2667 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
2668 check masks for HOST_WIDE_INT.
2669
2670 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2671 (option_enabled): Likewise.
2672 (get_option_state): Likewise.
2673
2674 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
2675 to HOST_WIDE_INT.
2676
2677 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2678 Marc Glisse <marc.glisse@normalesup.org>
2679
2680 PR libstdc++-v3/1773
2681 * target.def (decl_mangling_context): New C++ hook.
2682 * doc/tm.texi: Regenerate.
2683 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2684 * config/sol2-protos.h: Group by source file.
2685 (solaris_cxx_decl_mangling_context): Declare.
2686 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2687 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2688 Use $<.
2689 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2690 Add sol2-stubs.o to extra_objs.
2691
2692 2011-08-18 Jakub Jelinek <jakub@redhat.com>
2693
2694 PR target/50009
2695 * stor-layout.c (update_alignment_for_field): Don't ICE on
2696 packed flexible array members if ms_bitfield_layout_p.
2697
2698 PR target/50092
2699 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2700 on the result before returning it.
2701
2702 PR debug/50017
2703 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2704 is a debug stmt, use location of the first non-debug stmt after it.
2705
2706 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2707
2708 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2709 (arm_size_rtx_costs): Likewise.
2710
2711 2011-08-18 Richard Guenther <rguenther@suse.de>
2712
2713 * tree.h (tree_int_cst_msb): Remove.
2714 * tree.c (tree_int_cst_msb): Likewise.
2715 (tree_int_cst_sign_bit): Move from ...
2716 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2717
2718 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2719
2720 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2721 * doc/tm.texi: Regenerate.
2722 * target.def (rtx_costs): Add an opno parameter.
2723 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2724 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2725 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2726 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2727 * cse.c (COST_IN): Add an opno parameter.
2728 (notreg_cost): Likewise. Update call to rtx_cost.
2729 (COST, fold_rtx): Update accordingly.
2730 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2731 * expmed.c (emit_store_flag): Likewise.
2732 * optabs.c (avoid_expensive_constant): Add an opno parameter.
2733 Update call to rtx_cost.
2734 (expand_binop_directly, expand_binop): Likewise.
2735 (expand_twoval_binop, prepare_cmp_insn): Likewise.
2736 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2737 (set_src_cost, get_full_set_src_cost): Update accordingly.
2738 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
2739 to target hook.
2740 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
2741 (default_adress_cost): Update calls to rtx_cost.
2742
2743 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2744 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2745 (arm_rtx_costs): Add an opno parameter.
2746 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2747 adjust any recursive rtx-cost calls.
2748 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2749 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2750 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2751 * config/cris/cris.c (cris_rtx_costs): Likewise.
2752 * config/frv/frv.c (frv_rtx_costs): Likewise.
2753 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2754 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2755 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2756 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2757 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2758 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2759 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2760 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2761 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2762 * config/mep/mep.c (mep_rtx_cost): Likewise.
2763 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2764 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
2765 (mips_zero_extend_cost): Add an opno parameter.
2766 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2767 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
2768 to rtx_cost.
2769 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
2770 rtx-cost calls.
2771 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2772 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2773 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
2774 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2775 (rs6000_debug_rtx_costs): Likewise.
2776 * config/s390/s390.c (s390_rtx_costs): Likewise.
2777 * config/score/score-protos.h (score_rtx_costs): Likewise.
2778 * config/score/score.c (score_rtx_costs): Likewise.
2779 * config/sh/sh.c (andcosts): Update call to rtx_cost.
2780 (sh_rtx_costs): Add an opno parameter.
2781 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2782 * config/spu/spu.c (spu_rtx_costs): Likewise.
2783 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2784 * config/v850/v850.c (v850_rtx_costs): Likewise.
2785 * config/vax/vax.c (vax_rtx_costs): Likewise.
2786 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2787
2788 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2789
2790 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
2791 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
2792 rtx_cost.
2793 * calls.c (precompute_register_parameters): Likewise.
2794 * combine.c (expand_compound_operation, make_extraction): Likewise.
2795 (force_to_mode, distribute_and_simplify_rtx): Likewise.
2796 * dse.c (find_shift_sequence): Likewise.
2797 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
2798 * expr.c (compress_float_constant): Likewise.
2799 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2800 * gcse.c (want_to_gcse_p): Likewise.
2801 * ifcvt.c (noce_try_sign_mask): Likewise.
2802 * loop-doloop.c (doloop_optimize): Likewise.
2803 * loop-invariant.c (create_new_invariant): Likewise.
2804 * optabs.c (avoid_expensive_constant): Likewise.
2805 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
2806 (try_replace_in_use, reload_cse_move2add): Likewise.
2807 * reload1.c (calculate_elim_costs_all_insns): Likewise.
2808 (note_reg_elim_costly): Likewise.
2809 * rtlanal.c (insn_rtx_cost): Likewise.
2810 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2811 * stmt.c (lshift_cheap_p): Likewise.
2812 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
2813 * config/avr/avr.c (final_prescan_insn): Likewise.
2814 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2815 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
2816
2817 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2818
2819 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2820 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2821 * cfgloopanal.c (seq_cost): Likewise.
2822 * loop-invariant.c (create_new_invariant): Likewise.
2823 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2824 (reload_cse_move2add): Use get_full_set_rtx_cost.
2825
2826 2011-08-18 Richard Guenther <rguenther@suse.de>
2827
2828 * expr.c (get_inner_reference): Fix typo in last change.
2829
2830 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2831 Joseph Myers <joseph@codesourcery.com>
2832
2833 PR tree-optimization/49963
2834 * hwint.c (absu_hwi): Define.
2835 * hwint.h (absu_hwi): Declare.
2836 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2837 of abs_hwi.
2838 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2839 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2840
2841 2011-08-18 Richard Guenther <rguenther@suse.de>
2842
2843 * expr.c (get_inner_reference): Sign-extend the constant
2844 twos-complement offset before doing arbitrary precision
2845 arithmetic on it.
2846 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2847 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2848 to get_constraint_for_ptr_offset.
2849
2850 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
2851
2852 PR target/50068
2853 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2854
2855 2011-08-17 Richard Guenther <rguenther@suse.de>
2856
2857 * tree.h (convert_to_ptrofftype_loc): New function.
2858 (convert_to_ptrofftype): Define.
2859 * builtins.c (expand_builtin_bzero): Use size_type_node.
2860 (fold_builtin_bzero): Likewise.
2861 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2862 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2863 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2864 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2865 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2866 * fold-const.c (build_range_check): Negate using the original type.
2867 (fold_unary_loc): Use fold_build_pointer_plus_loc.
2868 * gimple-fold.c (gimple_adjust_this_by_delta): Use
2869 convert_to_ptrofftype.
2870 * gimplify.c (gimplify_self_mod_expr): Likewise.
2871 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2872 (graphite_create_new_loop_guard): Likewise.
2873 * graphite-sese-to-poly.c (my_long_long): Remove.
2874 (scop_ivs_can_be_represented): Adjust.
2875 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2876 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2877 * tree-loop-distribution.c (build_size_arg_loc): Use
2878 size_type_node.
2879 (generate_memset_zero): Simplify.
2880 * tree-mudflap.c: Use fold_convert, not convert.
2881 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2882 its own type.
2883 (determine_offset): Likewise for DR_STEP.
2884 (valid_initializer_p): Likewise.
2885 * tree-profile.c (prepare_instrumented_value): Convert the pointer
2886 to an integer type of same size.
2887 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2888 to sizetype without need.
2889 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2890 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2891 * tree-ssa-loop-manip.c (create_iv): Likewise.
2892 (determine_exit_conditions): Adjust comment.
2893 * tree-ssa-pre.c (create_expression_by_pieces): Use
2894 convert_to_ptrofftype.
2895 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2896 * varasm.c (array_size_for_constructor): Compute using double_ints.
2897
2898 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2899
2900 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2901 when generating an integer result where possible. Short-cut
2902 comparison against 0 also for QImode.
2903
2904 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2905
2906 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
2907 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
2908 prototype.
2909 * config/spu/spu.c (spu_legitimize_reload_address): New function.
2910 (spu_legitimate_address_p): Do not check displacement if the base
2911 is an eliminable stack register.
2912
2913 2011-08-16 Anatoly Sokolov <aesok@post.ru>
2914
2915 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
2916 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2917 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
2918 m32c_preferred_output_reload_class): Remove.
2919 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
2920 Change rclass argument and return types to reg_class_t. Use
2921 reg_class_subset_p instead of class_sizes.
2922 (m32c_preferred_output_reload_class): Make static. Change rclass
2923 argument and return types to reg_class_t.
2924 (TARGET_PREFERRED_RELOAD_CLASS,
2925 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2926
2927 2011-08-16 Kai Tietz <ktietz@redhat.com>
2928
2929 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
2930
2931 2011-08-16 Richard GUenther <rguenther@suse.de>
2932
2933 PR tree-optimization/50082
2934 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
2935 warnings here, instead of ...
2936 (ssa_forward_propagate_and_combine): ... here.
2937 (forward_propagate_into_comparison_1): Adjust.
2938 (forward_propagate_into_comparison): Likewise.
2939 (forward_propagate_into_gimple_cond): Likewise.
2940 (forward_propagate_into_cond): Likewise.
2941
2942 2011-08-16 Andreas Schwab <schwab@redhat.com>
2943
2944 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
2945 instead of ggc_alloc_zone_vec_rtvec_def.
2946
2947 2011-08-16 Richard Guenther <rguenther@suse.de>
2948
2949 * tree.h (ptrofftype_p): New helper function.
2950 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
2951 offset verification.
2952 (verify_gimple_assign_binary): Likewise.
2953 * tree.c (build2_stat): Likewise.
2954 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
2955 (reset_evolution_in_loop): Likewise.
2956 * tree-chrec.h (build_polynomial_chrec): Likewise.
2957
2958 2011-08-16 Liang Wang <lwang1@marvell.com>
2959
2960 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
2961 ggc_alloc_zone_vec_rtvec_def.
2962
2963 2011-08-16 Richard Guenther <rguenther@suse.de>
2964
2965 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
2966 helper factored out from ...
2967 (extract_range_from_binary_expr_1): ... here. Re-structure
2968 to not glob handling too different tree codes.
2969
2970 2011-08-15 Richard Henderson <rth@redhat.com>
2971
2972 PR middle-end/50006
2973 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
2974 setting out to include allocate_stack named pattern as well.
2975 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
2976 * stmt.c (expand_stack_restore): Likewise.
2977
2978 2011-08-15 Richard Guenther <rguenther@suse.de>
2979
2980 PR middle-end/50082
2981 * fold-const.c (maybe_canonicalize_comparison_1): Properly
2982 convert the modified operand to the other operand type.
2983 (fold_comparison): Call maybe_canonicalize_comparison_1 with
2984 useless conversions stripped from comparison operands.
2985
2986 2011-08-15 Richard Guenther <rguenther@suse.de>
2987
2988 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
2989 (extract_range_from_unary_expr_1): Restructure.
2990
2991 2011-08-15 Richard Guenther <rguenther@suse.de>
2992
2993 PR tree-optimization/50058
2994 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
2995 copy matching.
2996
2997 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2998
2999 PR target/50022
3000 * config/arm/arm.c (output_move_double): Add 2 parameters
3001 to count the number of insns emitted and whether to emit or not.
3002 Use the flag to decide when to emit and count number of instructions
3003 that will be emitted.
3004 Handle case where output_move_double might be called for calculating
3005 lengths with an invalid constant.
3006 (arm_count_output_move_double_insns): Define.
3007 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
3008 (output_move_double): Adjust prototype.
3009 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
3010 output_move_double.
3011 ("*movdi_vfp_cortexa8"): Likewise and add attribute
3012 for ce_count.
3013 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
3014 ("*movdf_soft_insn"): Likewise.
3015 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
3016 ("*cirrus_thumb2_movdi"): Likewise.
3017 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
3018 ("*cirrus_movdf_hard_insn"): Likewise.
3019 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
3020 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
3021 ("mov<mode>_internal VMMX"): Likewise.
3022 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
3023
3024 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
3025
3026 * config/i386/i386.c (ix86_expand_round_sse4): New function.
3027 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
3028 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
3029 for TARGET_ROUND.
3030
3031 (rint<mode>2): Simplify TARGET_ROUND check.
3032 (floor<mode>2): Ditto.
3033 (ceil<mode>2): Ditto.
3034 (btrunc<mode>2): Ditto.
3035
3036 2011-08-14 Anatoly Sokolov <aesok@post.ru>
3037
3038 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
3039 as mmix_preferred_output_reload_class.
3040
3041 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
3042
3043 * PR target/49903
3044 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
3045 (branch_unspec): New insn.
3046 (branch): Beauty farm.
3047 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
3048 to be IF_THEN_ELSE.
3049 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
3050 New static functions.
3051 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
3052 Use CONST_INT_P. Beauty.
3053
3054 2011-08-12 Richard Henderson <rth@redhat.com>
3055
3056 PR rtl-opt/49994
3057 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
3058 * sched-deps.c (init_deps): Clear it.
3059 (deps_analyze_insn): Consume it.
3060 (sched_analyze_insn): Fill it.
3061
3062 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3063
3064 PR target/48328
3065 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
3066 for tbh instructions.
3067
3068 2011-08-12 Diego Novillo <dnovillo@google.com>
3069
3070 * data-streamer.h (streamer_write_zero): Rename from output_zero.
3071 (streamer_write_uhwi): Rename from lto_output_uleb128.
3072 (streamer_write_hwi): Rename from output_sleb128.
3073 (streamer_write_string): Rename from lto_output_string.
3074 (streamer_string_index): Rename from lto_string_index.
3075 (streamer_write_string_with_length): Rename from
3076 lto_output_string_with_length.
3077 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
3078 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
3079 (streamer_read_string): Rename from lto_input_string.
3080 (streamer_read_indexed_string): Rename from input_string_internal.
3081 (streamer_read_uhwi): Rename from lto_input_uleb128.
3082 (streamer_read_hwi): Rename from lto_input_sleb128.
3083 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
3084 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
3085 (streamer_write_enum): Rename from lto_output_enum.
3086 (streamer_read_enum): Rename from lto_input_enum.
3087 (streamer_write_record_start): Rename from output_record_start.
3088 (streamer_read_record_start): Rename from input_record_start.
3089 (streamer_write_bitpack): Rename from lto_output_bitpack.
3090 (streamer_read_bitpack): Rename from lto_input_bitpack.
3091 (streamer_write_char_stream): Rename from lto_output_1_stream.
3092 (streamer_read_uchar): Rename from lto_input_1_unsigned.
3093 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
3094 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
3095 (streamer_read_string_cst): Rename from input_string_cst.
3096 (streamer_read_chain): Rename from lto_input_chain.
3097 (streamer_alloc_tree): Rename from lto_materialize_tree.
3098 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
3099 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
3100 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
3101 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
3102 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
3103 (streamer_write_chain): Rename from lto_output_chain.
3104 (streamer_write_tree_header): Rename from lto_output_tree_header.
3105 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
3106 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
3107 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
3108 (streamer_write_builtin): Rename from lto_output_builtin_tree.
3109 (streamer_check_handled_ts_structures): Rename from
3110 check_handled_ts_structures.
3111 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
3112 (streamer_tree_cache_insert_at): Rename from
3113 lto_streamer_cache_insert_at.
3114 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
3115 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
3116 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
3117 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
3118 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
3119 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
3120 (write_identifier): Rename from output_identifier.
3121 (write_ts_common_tree_pointers): Rename from
3122 lto_output_ts_common_tree_pointers.
3123 (write_ts_vector_tree_pointers): Rename from
3124 lto_output_ts_vector_tree_pointers.
3125 (write_ts_complex_tree_pointers): Rename from
3126 lto_output_ts_complex_tree_pointers.
3127 (write_ts_decl_minimal_tree_pointers): Rename from
3128 lto_output_ts_decl_minimal_tree_pointers.
3129 (write_ts_decl_common_tree_pointers): Rename from
3130 lto_output_ts_decl_common_tree_pointers.
3131 (write_ts_decl_non_common_tree_pointers): Rename from
3132 lto_output_ts_decl_non_common_tree_pointers.
3133 (write_ts_decl_with_vis_tree_pointers): Rename from
3134 lto_output_ts_decl_with_vis_tree_pointers.
3135 (write_ts_field_decl_tree_pointers): Rename from
3136 lto_output_ts_field_decl_tree_pointers.
3137 (write_ts_function_decl_tree_pointers): Rename from
3138 lto_output_ts_function_decl_tree_pointers.
3139 (write_ts_type_common_tree_pointers): Rename from
3140 lto_output_ts_type_common_tree_pointers.
3141 (write_ts_type_non_common_tree_pointers): Rename from
3142 lto_output_ts_type_non_common_tree_pointers.
3143 (write_ts_list_tree_pointers): Rename from
3144 lto_output_ts_list_tree_pointers.
3145 (write_ts_vec_tree_pointers): Rename from
3146 lto_output_ts_vec_tree_pointers.
3147 (write_ts_exp_tree_pointers): Rename from
3148 lto_output_ts_exp_tree_pointers.
3149 (write_ts_block_tree_pointers): Rename from
3150 lto_output_ts_block_tree_pointers.
3151 (write_ts_binfo_tree_pointers): Rename from
3152 lto_output_ts_binfo_tree_pointers.
3153 (write_ts_constructor_tree_pointers): Rename from
3154 lto_output_ts_constructor_tree_pointers.
3155 (write_ts_target_option): Rename from lto_output_ts_target_option.
3156 (write_ts_translation_unit_decl_tree_pointers): Rename from
3157 lto_output_ts_translation_unit_decl_tree_pointers.
3158 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
3159 Rename from lto_streamer_cache_add_to_node_array.
3160 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
3161 (record_common_node): Rename from lto_record_common_node.
3162
3163 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
3164 declarations.
3165 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
3166 function.
3167 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
3168 unused function.
3169 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
3170 (ipa-reference.o): Likewise.
3171 * lto-section-out.c: Include data-streamer.h.
3172 * ipa-reference.c: Include data-streamer.h.
3173
3174 2011-08-12 Nick Clifton <nickc@redhat.com>
3175
3176 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
3177 * doc/md.texi (cmpstrn): Note that the comparison stops if both
3178 fetched bytes are zero.
3179 (cmpstr): Likewise.
3180 (cmpmem): Note that the comparison does not stop if both of the
3181 fetched bytes are zero.
3182
3183 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
3184
3185 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
3186 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
3187 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
3188 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
3189 to integer_type_node.
3190 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
3191 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
3192 * builtins.c (expand_builtin_in): Ditto.
3193 (mathfn_built_in_1): Ditto.
3194 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
3195 BUILT_IN_IFLOOR.
3196 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
3197 BUILT_IN_IROUND.
3198 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
3199 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
3200 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
3201
3202 2011-08-12 Richard Guenther <rguenther@suse.de>
3203
3204 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
3205
3206 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
3207
3208 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
3209
3210 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
3211
3212 * config/arm/arm.c (get_label_padding): New function.
3213 (create_fix_barrier, arm_reorg): Use it.
3214
3215 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
3216
3217 PR target/49781
3218 * config/i386/i386.md (*lea_5_zext): New.
3219 (*lea_6_zext): Ditto.
3220 * config/i386/predicates.md (const_32bit_mask): New predicate.
3221 (lea_address_operand): Reject AND.
3222 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3223 const_32bit_mask immediate.
3224 (ix86_print_operand_address): Handle AND.
3225 (memory_address_length): Ditto.
3226
3227 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
3228 Brian Hackett <bhackett1024@gmail.com>
3229
3230 * plugin.def: Add event for finish_decl.
3231 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3232 * c-decl.c (finish_decl): Invoke callbacks on above event.
3233 * doc/plugins.texi: Document above event.
3234
3235 2011-08-11 Richard Guenther <rguenther@suse.de>
3236
3237 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3238 lookups, make looking through aggregate copies stronger.
3239
3240 2011-08-11 Richard Henderson <rth@redhat.com>
3241
3242 PR bootstrap/50018
3243 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3244
3245 2011-08-11 Richard Guenther <rguenther@suse.de>
3246
3247 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3248 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3249 (vrp_visit_stmt): Likewise.
3250
3251 2011-08-11 Richard Guenther <rguenther@suse.de>
3252
3253 PR middle-end/50040
3254 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3255 load of the other piece with TREE_NO_WARNING.
3256 * tree-flow.h (warn_uninit): Adjust prototype.
3257 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3258 the base variable and the expression that is used separately.
3259 Properly query all TREE_NO_WARNING flags.
3260 (struct walk_data): Remove.
3261 (warn_uninitialized_var): Likewise.
3262 (warn_uninitialized_vars): Do not walk gimple pieces but simply
3263 look at all SSA uses of the statement. Handle unused memory
3264 separately.
3265 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3266
3267 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
3268
3269 * config/rx/rx.md (movsicc): Allow register to register transfers.
3270 (*movsicc): Likewise.
3271 (*stcc): Restrict this pattern to EQ and NE compares.
3272 (*stcc_reg): New pattern. Works for any comparison but only for
3273 register transfers.
3274
3275 2011-08-11 Diego Novillo <dnovillo@google.com>
3276
3277 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3278 Call stream_write_tree instead of output_record_start.
3279 (lto_output_ts_binfo_tree_pointers): Likewise.
3280
3281 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3282 Convert it to a macro.
3283 (stream_read_tree): Likewise.
3284
3285 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3286 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3287
3288 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3289 and tree_read_bitfields.
3290 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3291 (lto_write_tree): Call it.
3292 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3293 * streamer-hooks.h (struct streamer_hooks): Remove fields
3294 name, is_streamable and alloc_tree. Update all users.
3295 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3296 (lto_materialize_tree): ... here.
3297 Handle CALL_EXPR codes.
3298 Remove call to lto_streamer_cache_append.
3299 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3300 * tree-streamer.h (tree_read_bitfields): Declare.
3301
3302 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
3303 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
3304 * tree-streamer.h (stream_read_tree): New. Replace all calls
3305 to lto_input_tree with it.
3306 (stream_write_tree): New. Replace all calls to lto_output_tree,
3307 lto_output_tree_ref and lto_output_tree_or_ref with it.
3308 * lto-streamer-in.c (lto_read_tree): Inline code from
3309 lto_streamer_read_tree.
3310 (lto_input_tree): Move from tree-streamer-in.c.
3311 * lto-streamer-out.c (lto_output_tree_ref): Make static.
3312 Remove handling of NULL values for EXPR.
3313 Do not handle EXPRs that are not indexable.
3314 (lto_write_tree): Move from tree-streamer-out.c.
3315 Inline lto_streamer_write_tree.
3316 (lto_output_tree): Move from tree-streamer-out.c.
3317 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
3318 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
3319 (lto_preload_common_nodes): Likewise.
3320 Remove assertions and adjustments for nodes
3321 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
3322 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
3323 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
3324 * lto-streamer.h (lto_input_tree): Declare.
3325 (lto_output_tree_ref): Remove.
3326 * streamer-hooks.h (struct streamer_hooks): Remove fields
3327 preload_common_nodes, indexable_with_decls_p,
3328 pack_value_fields, unpack_value_fields and output_tree_header.
3329 Update all users.
3330 * tree-streamer-in.c (lto_materialize_tree): Make extern.
3331 (lto_input_tree_pointers): Likewise.
3332 (lto_read_tree): Move to lto-streamer-in.c.
3333 (lto_input_integer_cst): Make extern.
3334 (lto_get_pickled_tree): Likewise.
3335 (lto_get_builtin_tree): Likewise.
3336 (lto_input_tree): Move to lto-streamer-in.c.
3337 * tree-streamer-out.c (pack_value_fields): Make extern.
3338 (lto_output_tree_or_ref): Remove. Replace all callers with
3339 calls to stream_write_tree.
3340 (lto_output_builtin_tree): Make extern.
3341 (lto_streamer_write_tree): Inline into lto_write_tree.
3342 (lto_output_tree_pointers): Make extern.
3343 (lto_output_tree_header): Likewise.
3344 (lto_output_integer_cst): Likewise.
3345 (lto_write_tree): Move to lto-streamer-out.c.
3346 (lto_output_tree): Likewise.
3347 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
3348 (preload_common_nodes): Likewise.
3349 (lto_streamer_cache_create): Call it.
3350 * tree-streamer.h: Include streamer-hooks.h.
3351 (stream_write_tree): New.
3352 (stream_read_tree): New.
3353 (lto_input_tree): Remove.
3354 (lto_materialize_tree): Declare.
3355 (lto_input_tree_pointers): Declare.
3356 (lto_get_pickled_tree): Declare.
3357 (lto_get_builtin_tree): Declare.
3358 (lto_input_integer_cst): Declare.
3359 (lto_output_tree_header): Declare.
3360 (pack_value_fields): Declare.
3361 (lto_output_tree_pointers): Declare.
3362 (lto_output_integer_cst): Declare.
3363 (lto_output_builtin_tree): Declare.
3364
3365 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3366
3367 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
3368 only if producer writes to the register given by regno.
3369
3370 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3371 Alexander Monakov <amonakov@ispras.ru>
3372
3373 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
3374 (sched_get_condition_with_rev_uncached): ... this. Factor out
3375 condition caching logic into ...
3376 (sched_get_condition_with_rev): ... this. Reimplement. Do not
3377 attempt to use cache for instructions with zero luid.
3378 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
3379 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
3380
3381 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3382
3383 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
3384 get_seqno_for_a_jump. Update the caller.
3385 (get_seqno_by_succs): New. Use it ...
3386 (get_seqno_for_a_jump): ... here to find a seqno if looking at
3387 predecessors was not sufficient.
3388 (get_seqno_by_preds): Include head in iteration range, exclude insn.
3389
3390 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3391
3392 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
3393
3394 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3395
3396 * sel-sched-ir.h (register_unavailable_p): Declare.
3397 * sel-sched-ir.c (register_unavailable_p): New. Use it...
3398 (set_unavailable_target_for_expr): ... here to properly test
3399 availability of a register.
3400 (speculate_expr): Ditto.
3401 * sel-sched.c (substitute_reg_in_expr): Ditto.
3402 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
3403
3404 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3405
3406 * sel-sched.c (verify_target_availability): Fix usage of
3407 hard_regno_nregs.
3408
3409 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3410
3411 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
3412 recognized by cannot_copy_insn_p hook and volatile instructions.
3413
3414 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3415
3416 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
3417
3418 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
3419
3420 * doc/md.texi (define_bypass): Say that the instruction names can
3421 be filename-style globs.
3422 * Makefile.in (FNMATCH_H): Define.
3423 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
3424 * genattrtab.c: Include fnmatch.h.
3425 (bypass_list): Change field name from "insn" to "pattern".
3426 (gen_bypass_1): Update accordingly.
3427 (process_bypasses): Use fnmatch to check for matches between
3428 insn reservations and define_bypasses.
3429 * genautomata.c: Include fnmatch.h.
3430 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
3431 and out_pattern respectively.
3432 (gen_bypass, insert_bypass): Update accordingly.
3433 (for_each_matching_insn, process_bypass_2, process_bypass_1)
3434 (process_bypass): New functions.
3435 (process_decls): Use process_bypass. Update after field name changes.
3436
3437 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
3438
3439 PR target/49687
3440 * config/avr/avr.md (smulqi3_highpart): New insn.
3441 (umulqi3_highpart): New insn.
3442 (*subqi3.ashiftrt7): New insn.
3443 (smulhi3_highpart): New expander.
3444 (umulhi3_highpart): Nex expander.
3445 (*smulhi3_highpart_call): New insn.
3446 (*umulhi3_highpart_call): New insn.
3447 (extend_u): New code attribute.
3448 (extend_prefix): Rename code attribute to extend_su.
3449 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
3450 widening QI/HI multiply.
3451
3452 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
3453
3454 PR tree-optimization/50039
3455 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
3456 that DEF_STMT has a stmt_vec_info.
3457
3458 2011-08-10 Richard Guenther <rguenther@suse.de>
3459
3460 * tree.h (can_trust_pointer_alignment): Remove.
3461 * builtins.c (can_trust_pointer_alignment): Remove.
3462
3463 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3464
3465 * c-typeck.c (scalar_to_vector): New function. Try scalar to
3466 vector conversion.
3467 (stv_conv): New enum for scalar_to_vector return type.
3468 (build_binary_op): Adjust.
3469 * doc/extend.texi: Description of scalar to vector expansion.
3470
3471 2011-08-10 Richard Guenther <rguenther@suse.de>
3472
3473 * tree.h (get_pointer_alignment): Remove max-align argument.
3474 (get_object_alignment): Likewise.
3475 * builtins.c (get_object_alignment_1): Adjust.
3476 (get_object_alignment): Remove max-align argument.
3477 (get_pointer_alignment): Likewise.
3478 (expand_builtin_strlen): Adjust.
3479 (expand_builtin_memcpy): Likewise.
3480 (expand_builtin_mempcpy_args): Likewise.
3481 (expand_builtin_strncpy): Likewise.
3482 (expand_builtin_memset_args): Likewise.
3483 (expand_builtin_memcmp): Likewise.
3484 (expand_builtin_strcmp): Likewise.
3485 (expand_builtin_strncmp): Likewise.
3486 (get_builtin_sync_mem): Likewise.
3487 (fold_builtin_memset): Likewise.
3488 (fold_builtin_memory_op): Likewise.
3489 (expand_builtin_memory_chk): Likewise.
3490 * emit-rtl.c (get_mem_align_offset): Likewise.
3491 (set_mem_attributes_minus_bitpos): Likewise.
3492 * expr.c (expand_assignment): Likewise.
3493 (expand_expr_real_1): Likewise.
3494 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
3495 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3496 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
3497 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3498 * value-prof.c (gimple_stringops_transform): Likewise.
3499
3500 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
3501
3502 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
3503 * doc/tm.texi: Regenerate.
3504
3505 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
3506
3507 PR target/29560
3508 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
3509 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
3510 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
3511 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
3512 shift target is unused.
3513
3514 2011-08-10 Richard Guenther <rguenther@suse.de>
3515
3516 PR tree-optimization/49937
3517 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
3518 using get_object_alignment_1.
3519
3520 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3521
3522 * config/i386/i386.c (ix86_emit_i387_round): New function.
3523 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
3524 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
3525 Use ix86_emit_i387_round to expand round function for i387 math.
3526 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
3527 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
3528
3529 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3530
3531 * config/sync.c: Move to ../libgcc.
3532 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3533 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3534 Remove.
3535
3536 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3537
3538 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3539 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3540 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3541 Change 'from' and 'to' arguments type to reg_class_t.
3542 (TARGET_REGISTER_MOVE_COST): Define.
3543
3544 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
3545
3546 PR target/50026
3547 Revert:
3548 PR rtl-optimization/49990
3549 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3550 ignore classes which can not change mode.
3551 (find_costs_and_classes): Ditto.
3552
3553 2011-08-09 Richard Guenther <rguenther@suse.de>
3554
3555 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3556 information for ranges with only negative values.
3557 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3558 BIT_AND_EXPR handling to handle ranges with negative values.
3559
3560 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
3561
3562 * config/i386/i386.c: Remove traling spaces.
3563 * config/i386/sse.md: Likewise.
3564 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3565 (*fma_fmsub_<mode>): Likewise.
3566 (*fma_fnmadd_<mode>): Likewise.
3567 (*fma_fnmsub_<mode>): Likewise.
3568
3569 2011-08-09 Nick Clifton <nickc@redhat.com>
3570
3571 * config/rx/rx.md: Disable extender peepholes at -O3.
3572
3573 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3574
3575 PR target/49781
3576 * config/i386/i386.md (reload_noff_load): New.
3577 (reload_noff_store): Ditto.
3578 * config/i386/i386.c (ix86_secondary_reload): Use
3579 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3580 double-word moves from/to non-offsetable addresses instead of
3581 generating XMM temporary.
3582
3583 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3584
3585 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3586
3587 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
3588
3589 PR tree-optimization/50014
3590 * tree-vect-loop.c (vectorizable_reduction): Get def type before
3591 calling vect_get_vec_def_for_stmt_copy ().
3592
3593 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
3594
3595 PR rtl-optimization/49990
3596 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3597 ignore classes which can not change mode.
3598 (find_costs_and_classes): Ditto.
3599
3600 2011-08-08 Richard Henderson <rth@redhat.com>
3601
3602 PR middle-end/49990
3603 * config/i386/i386.c (ix86_expand_prologue): Call
3604 for SEH target gen_prologue_use instead of gen_blockage
3605 at prologue's end.
3606
3607 2011-08-08 Martin Jambor <mjambor@suse.cz>
3608
3609 PR middle-end/49923
3610 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3611 memory alignment.
3612
3613 2011-08-08 Diego Novillo <dnovillo@google.com>
3614
3615 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3616 (DATA_STREAMER_H): New.
3617 (GIMPLE_STREAMER_H): New.
3618 (TREE_STREAMER_H): New.
3619 (STREAMER_HOOKS_H): New.
3620 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3621 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3622 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3623 (data-streamer.o): New.
3624 (data-streamer-in.o): New.
3625 (data-streamer-out.o): New.
3626 (gimple-streamer-in.o): New.
3627 (gimple-streamer-out.o): New.
3628 (streamer-hooks.o): New.
3629 (tree-streamer.o): New.
3630 (tree-streamer-in.o): New.
3631 (tree-streamer-out.o): New.
3632 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3633 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3634 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3635 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3636 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3637 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3638 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3639 (ipa-inline-analysis.o): Likewise.
3640 (ipa-pure-const.o): Likewise.
3641 * data-streamer-in.c: New.
3642 * data-streamer-out.c: New.
3643 * data-streamer.c: New.
3644 * data-streamer.h: New.
3645 * gimple-streamer-in.c: New.
3646 * gimple-streamer-out.c: New.
3647 * gimple-streamer.h: New.
3648 * ipa-inline-analysis.c: Include data-streamer.h.
3649 * ipa-prop.c: Include data-streamer.h.
3650 * ipa-pure-const.c: Include data-streamer.h.
3651 * lto-cgraph.c: Include data-streamer.h.
3652 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3653 (lto_input_widest_uint_uleb128): Likewise.
3654 (lto_input_sleb128): Likewise.
3655 (bp_unpack_var_len_unsigned): Likewise.
3656 (bp_unpack_var_len_int): Likewise.
3657 * lto-section-out.c (lto_output_uleb128_stream): Move to
3658 data-streamer-out.c.
3659 (lto_output_widest_uint_uleb128_stream): Likewise.
3660 (lto_output_sleb128_stream): Likewise.
3661 (bp_pack_var_len_unsigned): Likewise.
3662 (bp_pack_var_len_int): Likewise.
3663 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3664 (struct string_slot): Remove. Update all users.
3665 (lto_tag_check_set): Make extern.
3666 (lto_tag_check_range): Move to lto-streamer.h.
3667 (lto_tag_check): Likewise.
3668 (hash_string_slot_node): Remove. Update all users.
3669 (eq_string_slot_node): Remove. Update all users.
3670 (string_for_index): Move to data-streamer-in.c
3671 (input_string_internal): Likewise.
3672 (input_string_cst): Move to tree-streamer-in.c.
3673 (input_identifier): Likewise.
3674 (lto_input_string): Move to data-streamer-in.c
3675 (input_record_start): Move to data-streamer.h
3676 (canon_file_name): Use new definition of struct string_slot
3677 from data-streamer.h. Set S_SLOT.LEN.
3678 (lto_input_location): Make extern.
3679 (lto_input_chain): Move to tree-streamer-in.c.
3680 (lto_init_eh): Make extern.
3681 (input_phi): Move to gimple-streamer-in.c.
3682 (input_gimple_stmt): Likewise.
3683 (input_bb): Likewise.
3684 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3685 (unpack_ts_real_cst_value_fields): Likewise.
3686 (unpack_ts_fixed_cst_value_fields): Likewise.
3687 (unpack_ts_decl_common_value_fields): Likewise.
3688 (unpack_ts_decl_wrtl_value_fields): Likewise.
3689 (unpack_ts_decl_with_vis_value_fields): Likewise.
3690 (unpack_ts_function_decl_value_fields): Likewise.
3691 (unpack_ts_type_common_value_fields): Likewise.
3692 (unpack_ts_block_value_fields): Likewise.
3693 (unpack_ts_translation_unit_decl_value_fields): Likewise.
3694 (unpack_value_fields): Likewise.
3695 (lto_materialize_tree): Likewise.
3696 (lto_input_ts_common_tree_pointers): Likewise.
3697 (lto_input_ts_vector_tree_pointers): Likewise.
3698 (lto_input_ts_complex_tree_pointers): Likewise.
3699 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3700 (lto_input_ts_decl_common_tree_pointers): Likewise.
3701 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3702 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3703 (lto_input_ts_field_decl_tree_pointers): Likewise.
3704 (lto_input_ts_function_decl_tree_pointers): Likewise.
3705 (lto_input_ts_type_common_tree_pointers): Likewise.
3706 (lto_input_ts_type_non_common_tree_pointers): Likewise.
3707 (lto_input_ts_list_tree_pointers): Likewise.
3708 (lto_input_ts_vec_tree_pointers): Likewise.
3709 (lto_input_ts_exp_tree_pointers): Likewise.
3710 (lto_input_ts_block_tree_pointers): Likewise.
3711 (lto_input_ts_binfo_tree_pointers): Likewise.
3712 (lto_input_ts_constructor_tree_pointers): Likewise.
3713 (lto_input_ts_target_option): Likewise.
3714 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3715 (lto_input_tree_pointers): Likewise.
3716 (lto_get_pickled_tree): Likewise.
3717 (lto_get_builtin_tree): Likewise.
3718 (lto_read_tree): Likewise.
3719 (lto_input_integer_cst): Likewise.
3720 (lto_input_tree): Likewise.
3721 * lto-streamer-out.c: Include data-streamer.h,
3722 gimple-streamer.h and streamer-hooks.h.
3723 (struct string_slot): Move to data-streamer.h.
3724 (hash_string_slot_node): Likewise.
3725 (eq_string_slot_node): Likewise.
3726 (lto_string_index): Move to data-streamer-out.c.
3727 (lto_output_string_with_length): Likewise.
3728 (lto_output_string): Likewise.
3729 (output_string_cst): Move to tree-streamer-out.c.
3730 (output_identifier): Likewise.
3731 (output_zero): Move to data-streamer-out.c
3732 (output_uleb128): Likewise.
3733 (output_sleb128): Likewise.
3734 (output_record_start): Move to data-streamer.h
3735 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3736 (pack_ts_real_cst_value_fields): Likewise.
3737 (pack_ts_fixed_cst_value_fields): Likewise.
3738 (pack_ts_decl_common_value_fields): Likewise.
3739 (pack_ts_decl_wrtl_value_fields): Likewise.
3740 (pack_ts_decl_with_vis_value_fields): Likewise.
3741 (pack_ts_function_decl_value_fields): Likewise.
3742 (pack_ts_type_common_value_fields): Likewise.
3743 (pack_ts_block_value_fields): Likewise.
3744 (pack_ts_translation_unit_decl_value_fields): Likewise.
3745 (pack_value_fields): Likewise.
3746 (lto_output_chain): Likewise.
3747 (lto_output_ts_common_tree_pointers): Likewise.
3748 (lto_output_ts_vector_tree_pointers): Likewise.
3749 (lto_output_ts_complex_tree_pointers): Likewise.
3750 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3751 (lto_output_ts_decl_common_tree_pointers): Likewise.
3752 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
3753 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
3754 (lto_output_ts_field_decl_tree_pointers): Likewise.
3755 (lto_output_ts_function_decl_tree_pointers): Likewise.
3756 (lto_output_ts_type_common_tree_pointers): Likewise.
3757 (lto_output_ts_type_non_common_tree_pointers): Likewise.
3758 (lto_output_ts_list_tree_pointers): Likewise.
3759 (lto_output_ts_vec_tree_pointers): Likewise.
3760 (lto_output_ts_exp_tree_pointers): Likewise.
3761 (lto_output_ts_block_tree_pointers): Likewise.
3762 (lto_output_ts_binfo_tree_pointers): Likewise.
3763 (lto_output_ts_constructor_tree_pointers): Likewise.
3764 (lto_output_ts_target_option): Likewise.
3765 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
3766 (lto_output_tree_pointers): Likewise.
3767 (lto_output_tree_header): Likewise.
3768 (lto_output_builtin_tree): Likewise.
3769 (lto_write_tree): Likewise.
3770 (lto_output_integer_cst): Likewise.
3771 (lto_output_tree): Likewise.
3772 (output_phi): Move to gimple-streamer-out.c.
3773 (output_gimple_stmt): Likewise.
3774 (output_bb): Likewise.
3775 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
3776 (streamer_hooks): Move to streamer-hooks.c.
3777 (check_handled_ts_structures): Move to tree-streamer.c
3778 (lto_streamer_cache_add_to_node_array): Likewise.
3779 (lto_streamer_cache_insert_1): Likewise.
3780 (lto_streamer_cache_insert): Likewise.
3781 (lto_streamer_cache_insert_at): Likewise.
3782 (lto_streamer_cache_append): Likewise.
3783 (lto_streamer_cache_lookup): Likewise.
3784 (lto_streamer_cache_get): Likewise.
3785 (lto_record_common_node): Likewise.
3786 (lto_preload_common_nodes): Likewise.
3787 (lto_streamer_cache_create): Likewise.
3788 (lto_streamer_cache_delete): Likewise.
3789 (streamer_hooks_init): Move to streamer-hooks.c.
3790 * lto-streamer.h: Include diagnostic.h
3791 (struct output_block, struct lto_input_block,
3792 struct data_in, struct bitpack_d): Remove forward declarations.
3793 (struct bitpack_d): Move to data-streamer.h.
3794 (struct lto_streamer_cache_d): Move to tree-streamer.h.
3795 (struct streamer_hooks): Move to streamer-hooks.h.
3796 (bp_pack_var_len_unsigned): Move to data-streamer.h.
3797 (bp_pack_var_len_int): Likewise.
3798 (bp_unpack_var_len_unsigned): Likewise.
3799 (bp_unpack_var_len_int): Likewise.
3800 (lto_input_location): Declare.
3801 (lto_tag_check_set): Declare.
3802 (lto_init_eh): Declare.
3803 (lto_output_tree_ref): Declare.
3804 (lto_output_location): Declare.
3805 (bitpack_create): Move to data-streamer.h.
3806 (bp_pack_value): Likewise.
3807 (lto_output_bitpack): Likewise.
3808 (lto_input_bitpack): Likewise.
3809 (bp_unpack_value): Likewise.
3810 (lto_output_1_stream): Likewise.
3811 (lto_input_1_unsigned): Likewise.
3812 (lto_output_int_in_range): Likewise.
3813 (lto_input_int_in_range): Likewise.
3814 (bp_pack_int_in_range): Likewise.
3815 (bp_unpack_int_in_range): Likewise.
3816 (lto_output_enum): Likewise.
3817 (lto_input_enum): Likewise.
3818 (bp_pack_enum): Likewise.
3819 (bp_unpack_enum): Likewise.
3820 * streamer-hooks.c: New.
3821 * streamer-hooks.h: New.
3822 * tree-streamer-in.c: New.
3823 * tree-streamer-out.c: New.
3824 * tree-streamer.c: New.
3825 * tree-streamer.h: New.
3826
3827 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3828
3829 * gthr-posix95.h: Remove.
3830 * gthr.h [_PTHREADS95]: Remove.
3831 * configure.ac (enable_threads): Remove posix95.
3832 * configure: Regenerate.
3833 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3834
3835 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
3836
3837 PR target/49781
3838 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3839 SImode addresses.
3840 (ix86_print_operand_address): Handle zero-extended addresses.
3841 (memory_address_length): Add length of addr32 prefix for
3842 zero-extended addresses.
3843 (ix86_secondary_reload): Handle moves to/from double-word general
3844 registers from/to zero-extended addresses.
3845 * config/i386/predicates.md (lea_address_operand): Reject
3846 zero-extended operands.
3847
3848 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
3849
3850 PR other/48007
3851 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3852
3853 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3854 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3855
3856 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3857 (_Unwind_Context_Reg_Val): Likewise.
3858 (_Unwind_Get_Unwind_Word): Likewise.
3859 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3860 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3861 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3862 for EXTENDED_CONTEXT_BIT.
3863 (__frame_state_for): Likewise.
3864 (uw_init_context_1): Likewise.
3865 (_Unwind_GetGR): Updated.
3866 (_Unwind_SetGR): Likewise.
3867 (_Unwind_GetGRPtr): Likewise.
3868 (_Unwind_SetGRPtr): Likewise.
3869 (_Unwind_SetGRValue): Likewise.
3870 (_Unwind_GRByValue): Likewise.
3871 (uw_install_context_1): Likewise.
3872
3873 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3874 ASSUME_EXTENDED_UNWIND_CONTEXT.
3875 * doc/tm.texi: Regenerated.
3876
3877 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3878
3879 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3880
3881 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3882
3883 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3884 Linux/GNU-specific.
3885 (DEC Alpha Options, -mtune): Likewise.
3886 (MIPS Options, -march): native is supported on IRIX.
3887
3888 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3889
3890 * config/sparc/driver-sparc.c: New file.
3891 * config/sparc/x-sparc: New file.
3892 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3893 * config/sparc/sparc.opt (native): New value for enum processor_type.
3894 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3895 * config/sparc/sparc.c (sparc_option_override): Abort if
3896 PROCESSOR_NATIVE gets here.
3897 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3898 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3899 DRIVER_SELF_SPECS): Define.
3900 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3901 (SPARC Options, -mtune): Likewise.
3902 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3903 Substitute result.
3904 * configure: Regenerate.
3905 * Makefile.in (EXTRA_GCC_LIBS): Set.
3906 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
3907 (cpp$(exeext)): Likewise.
3908
3909 2011-08-08 Richard Guenther <rguenther@suse.de>
3910
3911 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
3912 split out from ...
3913 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
3914 by composition.
3915
3916 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
3917
3918 PR tree-optimization/50005
3919 * ipa-inline-analysis (remap_predicate): Add cast to
3920 silence signed/unsigned comparison warning.
3921
3922 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
3923
3924 * modulo-sched.c (get_sched_window): Use a table for the debug output.
3925 Print the current ii.
3926 (sms_schedule_by_order): Reduce whitespace in dump line.
3927
3928 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
3929
3930 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
3931 and one loop for successors. Fix upper bound of memory range.
3932
3933 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3934
3935 PR target/50001
3936 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
3937 (TARGET_INSTANTIATE_DECLS): New define.
3938
3939 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
3940 Mikael Morin <mikael.morin@sfr.fr>
3941
3942 * Makefile.in (INCLUDES_FOR_TARGET): New.
3943 (LIBGCC2_CFLAGS): Use it.
3944 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
3945
3946 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3947
3948 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
3949 frame->save_regs_using_mov calculation.
3950
3951 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
3952
3953 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
3954 * config/i386/sse.md (castmode): New mode attribute.
3955 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
3956 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
3957
3958 2011-08-05 Jan Hubicka <jh@suse.cz>
3959
3960 PR middle-end/49494
3961 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
3962
3963 2011-08-05 Jan Hubicka <jh@suse.cz>
3964
3965 PR middle-end/49500
3966 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
3967 handle aliases.
3968 (create_emultls_var):New function.
3969 (ipa_lower_emutls): Handle aliases correctly.
3970
3971 2011-08-05 Jan Hubicka <jh@suse.cz>
3972
3973 PR middle-end/49735
3974 * ipa-inline.c (recursive_inlining): Look through aliases.
3975
3976 2011-08-05 Jason Merrill <jason@redhat.com>
3977
3978 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
3979 declarations to beginning of function.
3980
3981 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
3982
3983 PR rtl-optimization/49900
3984 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
3985 ensure basic blocks stay in the same order.
3986
3987 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
3988
3989 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
3990 store_bit_field.
3991 (s390_expand_atomic): Same.
3992
3993 2011-08-05 Richard Henderson <rth@redhat.com>
3994
3995 PR rtl-opt/49977
3996 * dwarf2cfi.c (scan_insn_after): Split out of ...
3997 (scan_trace): ... here. Correctly place notes wrt sequences.
3998
3999 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
4000 Richard Henderson <rth@redhat.com>
4001
4002 PR rtl-opt/49982
4003 * expr.c (fixup_args_size_notes): Look through no-op moves.
4004
4005 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4006
4007 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
4008 of "m" for operand 0. Add type and mode attribute.
4009 (*pushxf_nointeger"): Use "<" constraint for operand 0.
4010 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
4011 constraint instead of "o" for opreand 1.
4012 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
4013 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
4014 operand 0, alternative 4.
4015 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
4016
4017 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4018
4019 * config/i386/predicates.md (lea_address_operand): Rename from
4020 no_seg_address_operand.
4021 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
4022 (*lea_1_zext): Ditto.
4023 (*lea_2): Ditto.
4024 (*lea_2_zext): Ditto.
4025
4026 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4027
4028 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
4029 parts.base and parts.index.
4030 * config/i386/predicates.md (aligned_operand): Ditto.
4031 (cmpxchg8b_pic_memory_operand): Ditto.
4032
4033 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4034
4035 * config/soft-fp: Move to ../libgcc.
4036 * Makefile.in (SFP_MACHINE): Remove.
4037 (libgcc-support): Remove $(SFP_MACHINE) dependency.
4038 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
4039 * config/arm/t-arm-softfp: Move to
4040 ../libgcc/config/arm/t-softfp.
4041 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
4042 * config/c6x/t-c6x-softfp: Remove.
4043 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
4044 * config/i386/t-fprules-softfp: Move to
4045 ../libgcc/config/t-softfp-tf.
4046 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
4047 * config/ia64/t-fprules-softfp: Remove.
4048 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
4049 * config/lm32/t-fprules-softfp: Remove.
4050 * config/moxie/sfp-machine.h: Remove.
4051 * config/moxie/t-moxie-softfp: Remove.
4052 * config/rs6000/darwin-ldouble-format: Move to
4053 ../libgcc/config/rs6000/ibm-ldouble-format.
4054 * config/rs6000/darwin-ldouble.c: Move to
4055 ../libgcc/config/rs6000/ibm-ldouble.c
4056 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
4057 * config/rs6000/libgcc-ppc64.ver: Likewise.
4058 * config/rs6000/sfp-machine.h: Likewise.
4059 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
4060 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
4061 (LIB2FUNCS_EXTRA): Remove.
4062 (TARGET_LIBGCC2_CFLAGS): Remove.
4063 * config/rs6000/t-aix52: Likewise
4064 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4065 $(srcdir)/config/rs6000/darwin-ldouble.c.
4066 (SHLIB_MAPFILES): Remove.
4067 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
4068 $(srcdir)/config/rs6000/darwin-ldouble.c.
4069 * config/rs6000/t-fprules-softfp: Move to
4070 ../libgcc/config/t-softfp-sfdf.
4071 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
4072 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
4073 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
4074 $(srcdir)/config/rs6000/darwin-ldouble.c.
4075 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
4076 * config/score/t-score-softfp: Remove.
4077 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
4078 soft-fp/t-softfp from tmake_file.
4079 (arm*-*-uclinux*): Likewise.
4080 (arm*-*-ecos-elf): Likewise.
4081 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
4082 (arm*-*-rtems*): Likewise.
4083 (arm*-*-elf): Likewise.
4084 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
4085 tmake_file.
4086 (moxie-*-uclinux*): Likewise.
4087 (moxie-*-rtems*): Likewise.
4088 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
4089 tmake_file.
4090 (lm32-*-rtems*): Likewise.
4091 (lm32-*-uclinux*): Likewise.
4092 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
4093 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4094 (powerpc-*-linux*, powerpc64-*-linux*): Remove
4095 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4096 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
4097 tmake_file.
4098 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
4099 tmake_file.
4100 (tic6x-*-uclinux): Likewise.
4101 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
4102 soft-fp/t-softfp from tmake_file.
4103 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
4104 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
4105 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
4106 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
4107 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
4108
4109 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4110
4111 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
4112 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
4113 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
4114 TPBIT, TPBIT_FUNCS.
4115 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
4116 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
4117 Remove.
4118 * config/arm/t-vxworks: Likewise.
4119 * config/arm/t-wince-pe: Likewise.
4120 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
4121 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4122 * config/bfin/t-bfin-elf: Likewise.
4123 * config/bfin/t-bfin-linux: Likewise.
4124 * config/bfin/t-bfin-uclinux: Likewise.
4125 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
4126 Remove.
4127 * config/fr30/t-fr30: Likewise.
4128 * config/frv/t-frv: Likewise.
4129 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
4130 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4131 * config/m32c/t-m32c: Likewise.
4132 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
4133 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4134 * config/mcore/t-mcore: Likewise.
4135 * config/mep/t-mep: Likewise.
4136 * config/microblaze/t-microblaze: Likewise.
4137 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
4138 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4139 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
4140 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4141 * config/mn10300/t-linux: Remove.
4142 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4143 * config/pdp11/t-pdp11: Likewise.
4144 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
4145 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
4146 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4147 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
4148 * config/rs6000/t-aix52: Likewise.
4149 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4150 $(srcdir)/config/rs6000/ppc64-fp.c.
4151 * config/rs6000/t-fprules-fpbit: Remove.
4152 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
4153 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4154 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
4155 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4156 * config/sparc/t-elf: Likewise.
4157 * config/sparc/t-leon: Likewise.
4158 * config/sparc/t-leon3: Likewise.
4159 * config/spu/t-spu-elf: Likewise.
4160 (DPBIT_FUNCS): Remove.
4161 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4162 * config/v850/t-v850: Likewise.
4163 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
4164 (avr-*-*): Likewise.
4165 (h8300-*-rtems*): Set libgcc_tm_file.
4166 (h8300-*-elf*): Likewise.
4167 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
4168 tmake_file.
4169 (powerpc-*-eabisim*): Likewise.
4170 (powerpc-*-elf*): Likewise.
4171 (powerpc-*-eabialtivec*): Likewise.
4172 (powerpc-xilinx-eabi*): Likewise.
4173 (powerpc-*-eabi*): Likewise.
4174 (powerpc-*-rtems*): Likewise.
4175 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
4176 (powerpcle-*-elf*): Likewise.
4177 (powerpcle-*-eabisim*): Likewise.
4178 (powerpcle-*-eabi*): Likewise.
4179 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
4180 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
4181 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
4182 Remove.
4183
4184 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4185
4186 * Makefile.in (UNWIND_H): Remove.
4187 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
4188 ../libgcc/Makefile.in.
4189 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
4190 (LIBUNWINDDEP): Remove.
4191 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
4192 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
4193 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
4194 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
4195 Don't copy $(UNWIND_H).
4196 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
4197 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
4198 * aclocal.m4: Regenerate.
4199 * configure: Regenerate.
4200 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
4201 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
4202 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
4203 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
4204 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
4205 * config/arm/libunwind.S, config/arm/pr-support.c,
4206 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
4207 ../libgcc/config/arm.
4208 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
4209 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
4210 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
4211 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
4212 ($(T)frvend$(objext)): Likewise.
4213 * config/ia64/t-glibc (LIB2ADDEH): Remove.
4214 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
4215 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
4216 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
4217 ../libgcc/config/ia64.
4218 * config/ia64/t-hpux (LIB2ADDEH): Remove.
4219 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4220 * config/ia64/t-vms (LIB2ADDEH): Remove.
4221 * config/ia64/vms.h (UNW_IVMS_MODE,
4222 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4223 * config/picochip/t-picochip (LIB2ADDEH): Remove.
4224 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4225 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4226 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4227 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4228 $(srcdir)/../libgcc to refer to unwinder sources.
4229 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4230 * config/t-darwin (LIB2ADDEH): Remove.
4231 * config/t-freebsd (LIB2ADDEH): Remove.
4232 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4233 * config/t-libunwind-elf: Move to ../libgcc/config.
4234 * config/t-linux (LIB2ADDEH): Remove.
4235 * config/t-sol2 (LIB2ADDEH): Remove.
4236 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4237 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4238
4239 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
4240
4241 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4242
4243 * doc/invoke.texi: Document core-avx-i.
4244
4245 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4246
4247 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4248
4249 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
4250
4251 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4252 result of multiple results reduction when extracting the final
4253 value using scalar code.
4254
4255 2011-08-05 Richard Guenther <rguenther@suse.de>
4256
4257 PR tree-optimization/49984
4258 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4259
4260 2011-08-05 Richard Guenther <rguenther@suse.de>
4261
4262 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4263 return true for constant integer ranges.
4264 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4265 BIT_IOR_EXPR handling.
4266
4267 2011-08-04 Kai Tietz <ktietz@redhat.com>
4268
4269 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4270 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4271
4272 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
4273
4274 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4275 pattern def statement, and its access macro.
4276 (NUM_PATTERNS): Set to 5.
4277 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4278 pattern def statement.
4279 (vect_transform_loop): Likewise.
4280 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4281 function vect_recog_over_widening_pattern ().
4282 (vect_operation_fits_smaller_type): New function.
4283 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4284 Likewise.
4285 (vect_pattern_recog_1): Move the code that marks pattern
4286 statements to vect_mark_pattern_stmts (), and call it. Update
4287 documentation.
4288 * tree-vect-stmts.c (vect_supportable_shift): New function.
4289 (vect_analyze_stmt): Handle pattern def statement.
4290 (new_stmt_vec_info): Initialize pattern def statement.
4291
4292 2011-08-04 Richard Henderson <rth@redhat.com>
4293
4294 PR target/49964
4295 * config/i386/i386.c (ix86_expand_call): Don't create nested
4296 PARALLELs for TARGET_VZEROUPPER.
4297 (ix86_split_call_vzeroupper): Fix extraction of the original call.
4298 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4299 recognize nested PARALLELs.
4300 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4301 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4302 *sibcall_value_pop_vzeroupper): Likewise.
4303
4304 2011-08-04 Richard Henderson <rth@redhat.com>
4305
4306 PR middle-end/49968
4307 * calls.c (expand_call): Use fixup_args_size_notes for
4308 emit_stack_restore.
4309 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
4310 in non-standard modes.
4311
4312 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4313
4314 * gcc.c (self_spec): New variable.
4315 (static_specs): Add self_spec.
4316 (main): Call do_self_spec on "self_spec" specs after reading
4317 user specs files. Move compare_debug handling right after that.
4318
4319 2011-08-04 Richard Guenther <rguenther@suse.de>
4320
4321 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
4322 (value_range_nonnegative_p): New function.
4323 (ssa_name_nonnegative_p): Use it.
4324 (value_range_constant_singleton): New function.
4325 (op_with_constant_singleton_value_range): Use it.
4326 (extract_range_from_binary_expr_1): New function, split out from ...
4327 (extract_range_from_binary_expr): ... this. Remove fallback
4328 constant folding done here.
4329
4330 2011-08-04 Richard Guenther <rguenther@suse.de>
4331
4332 PR tree-optimization/49806
4333 * tree-vrp.c (op_with_boolean_value_range_p): New function.
4334 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
4335 a new statement for a final conversion to bool.
4336
4337 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
4338
4339 * gengtype-state.c: Include "bconfig.h" if
4340 GENERATOR_FILE is defined, "config.h" otherwise.
4341 * gengtype.c: Likewise.
4342 * gengtype-lex.l: Likewise.
4343 * gengtype-parse.c: Likewise.
4344 * Makefile.in (gengtype-lex.o-warn): New variable.
4345 (plugin_resourcesdir): Likewise.
4346 (plugin_bindir): Likewise.
4347 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
4348 (MOSTLYCLEANFILES): Add gengtype$(exeext).
4349 (native): Depend on gengtype$(exeext) is $enable_plugin
4350 is set to "yes".
4351 (gtype.state): Depend on s-gtype. Use temporary file.
4352 (gengtype-lex.o): New rule.
4353 (gengtype-parse.o): Likewise.
4354 (gengtype-state.o): Likewise.
4355 (gengtype$(exeext)): Likewise.
4356 (install-gengtype): Likewise.
4357 (gengtype.o): Likewise.
4358 (build/gengtype.o): Depend on version.h.
4359 (build/gengtype-state): Depend on double-int.h, version.h,
4360 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
4361 (install-plugin): Depend on install-gengtype.
4362
4363 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4364
4365 PR middle-end/49905
4366 * tree.h (init_attributes): New prototype.
4367 * attribs.c (init_attributes): No longer static.
4368
4369 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4370
4371 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
4372 maybe_suffix.
4373
4374 2011-08-03 David Li <davidxl@google.com>
4375
4376 * tree-optimize.c (execute_fixup_cfg): Fix up entry
4377 outgoing edge counts after inlining.
4378
4379 2011-08-03 David Li <davidxl@google.com>
4380
4381 * profile.c (compute_branch_probabilities): Compute
4382 function frequency after profile annotation.
4383
4384 2011-08-04 Alan Modra <amodra@gmail.com>
4385
4386 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
4387 use_backchain_to_restore_sp initialisation.
4388 (rs6000_legitimate_offset_address_p): Simplify offset test.
4389
4390 2011-08-03 Richard Henderson <rth@redhat.com>
4391
4392 * config/spu/spu.md: Use define_c_enum instead of define_constants.
4393 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
4394 (UNSPECV_NOP): New.
4395
4396 2011-08-03 Richard Henderson <rth@redhat.com>
4397
4398 PR target/34888
4399 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
4400
4401 2011-08-03 Jakub Jelinek <jakub@redhat.com>
4402
4403 PR tree-optimization/49948
4404 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
4405
4406 2011-08-03 Anatoly Sokolov <aesok@post.ru>
4407
4408 * config/m32c/m32c.c (class_sizes): Remove.
4409 (reduce_class): Change arguments and return type to reg_class_t.
4410 Change type cc var to HARD_REG_SET. Change type best var to
4411 reg_class_t. Change type best_size var to unsigned int. Remove
4412 initialization class_sizes var. Use reg_class_size array instead
4413 of class_sizes. Use reg_class_contents array instead
4414 of class_contents.
4415
4416 2011-08-03 Richard Guenther <rguenther@suse.de>
4417
4418 PR middle-end/49958
4419 * fold-const.c (fold_binary_loc): Only associate
4420 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
4421 overflow wraps.
4422
4423 2011-08-03 Alan Modra <amodra@gmail.com>
4424
4425 PR rtl-optimization/49941
4426 * jump.c (mark_jump_label): Comment.
4427 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
4428 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
4429 (mark_used_flags): Don't mark RETURN.
4430
4431 2011-08-03 Richard Guenther <rguenther@suse.de>
4432
4433 PR tree-optimization/49938
4434 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
4435 deal with a POLYNOMIAL_CHREC.
4436
4437 2011-08-03 Revital Eres <revital.eres@linaro.org>
4438
4439 * modulo-sched.c (calculate_stage_count,
4440 calculate_must_precede_follow, get_sched_window,
4441 try_scheduling_node_in_cycle, remove_node_from_ps): Add
4442 declaration.
4443 (update_node_sched_params, set_must_precede_follow, optimize_sc):
4444 New functions.
4445 (reset_sched_times): Call update_node_sched_params.
4446 (sms_schedule): Call optimize_sc.
4447 (get_sched_window): Change function arguments.
4448 (sms_schedule_by_order): Update call to get_sched_window.
4449 Call set_must_precede_follow.
4450 (calculate_stage_count): Add function argument.
4451
4452 2011-08-02 Richard Henderson <rth@redhat.com>
4453
4454 PR target/49864
4455 PR target/49879
4456 * reg-notes.def (REG_ARGS_SIZE): New.
4457 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
4458 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
4459 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
4460 different stack levels.
4461 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
4462 (maybe_move_args_size_note): New.
4463 (combine_stack_adjustments_for_block): Use it.
4464 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
4465 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
4466 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
4467 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
4468 (cur_cfa): New.
4469 (queued_args_size): Remove.
4470 (add_cfi_args_size): Assert size is non-negative.
4471 (stack_adjust_offset, dwarf2out_args_size): Remove.
4472 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
4473 (notice_args_size, notice_eh_throw): New.
4474 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
4475 (dwarf2out_frame_debug_adjust_cfa): Likewise.
4476 (dwarf2out_frame_debug_cfa_offset): Likewise.
4477 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
4478 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
4479 (change_cfi_row): Don't emit args_size.
4480 (maybe_record_trace_start_abnormal): Split out from ...
4481 (maybe_record_trace_start): Here. Set args_size_undefined.
4482 (create_trace_edges): Update to match.
4483 (scan_trace): Handle REG_ARGS_SIZE.
4484 (connect_traces): Connect args_size between EH insns.
4485 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
4486 * explow.c (suppress_reg_args_size): New.
4487 (adjust_stack_1): Split out from ...
4488 (adjust_stack): ... here.
4489 (anti_adjust_stack): Use it.
4490 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
4491 * expr.c (mem_autoinc_base): New.
4492 (fixup_args_size_notes): New.
4493 (emit_single_push_insn_1): Rename from emit_single_push_insn.
4494 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
4495 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
4496 * reload1.c (reload_as_needed): Likewise.
4497 * rtl.h (fixup_args_size_notes): Declare.
4498
4499 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
4500
4501 PR bootstrap/49914
4502 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
4503 of abs.
4504 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4505 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4506
4507 2011-08-02 Richard Henderson <rth@redhat.com>
4508
4509 * config/h8300/h8300.c (push, pop): Return the insn.
4510 (h8300_swap_into_er6): Generate correct unwind info.
4511 (h8300_swap_out_of_er6): Likewise.
4512 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
4513 complex cfa expression.
4514 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
4515
4516 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4517
4518 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4519
4520 2011-08-02 Richard Henderson <rth@redhat.com>
4521
4522 PR target/49878
4523 * config/h8300/h8300.c (h8300_move_ok): New.
4524 * config/h8300/h8300-protos.h: Declare it.
4525 * config/h8300/h8300.md (P): New mode iterator.
4526 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
4527 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
4528 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
4529 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
4530 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4531 and pushqi1_h8300hs_normal; use PRE_MODIFY and
4532 register_no_sp_elim_operand.
4533 (*pushhi1_h8300hs_<P>): Similarly.
4534 (pushqi1, pushhi1, pushhi1_h8300): Remove.
4535 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4536
4537 2011-08-02 Richard Henderson <rth@redhat.com>
4538
4539 PR target/49881
4540 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4541
4542 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4543
4544 * c-parser.c (enum c_parser_prec): New enum, moved from within
4545 c_parser_binary_expression.
4546 (c_parser_binary_expression): Add PREC argument. Stop parsing
4547 if operator has lower or equal precedence than PREC.
4548 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4549 callers.
4550 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4551 Adjust c_finish_omp_atomic caller.
4552 (c_parser_omp_taskyield): New function.
4553 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4554 (c_parser_omp_clause_name): Handle final and mergeable clauses.
4555 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4556 functions.
4557 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4558 and PRAGMA_OMP_CLAUSE_MERGEABLE.
4559 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4560 (c_parser_omp_clause_reduction): Handle min and max.
4561 * c-typeck.c (c_finish_omp_clauses): Don't complain about
4562 const qualified predetermined vars in firstprivate clause.
4563 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4564 Handle MIN_EXPR and MAX_EXPR.
4565 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4566 and OMP_CLAUSE_MERGEABLE.
4567 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4568 and OMP_ATOMIC_CAPTURE_NEW.
4569 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4570 OMP_CLAUSE_MERGEABLE.
4571 (omp_clause_code_name): Likewise.
4572 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4573 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4574 and OMP_CLAUSE_MERGEABLE.
4575 (OMP_CLAUSE_FINAL_EXPR): Define.
4576 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4577 OMP_CLAUSE_MERGEABLE.
4578 (expand_task_call): Likewise.
4579 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4580 (expand_omp_atomic_fetch_op): Handle cases where old or new
4581 value is needed afterwards.
4582 (expand_omp_atomic): Call expand_omp_atomic_load resp.
4583 expand_omp_atomic_store.
4584 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4585 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4586 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4587 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4588 * tree-nested.c (convert_nonlocal_omp_clauses,
4589 convert_local_omp_clauses): Likewise.
4590 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4591 OMP_ATOMIC_CAPTURE_NEW): New.
4592 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4593 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4594 New inlines.
4595 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4596 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4597 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4598
4599 2011-08-02 Kai Tietz <ktietz@redhat.com>
4600
4601 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4602 boolean-type.
4603 (ssa_forward_propagate_and_combine): Interprete result of
4604 forward_propagate_comparison.
4605 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4606 boolean-typed operands for comparisons.
4607
4608 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
4609
4610 * config/avr/libgcc.S: Gather related function in the
4611 same input section.
4612 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4613 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4614 references.
4615 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4616 __udivmodsi4, __divmodsi4, __prologue_saves__,
4617 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4618 __do_copy_data, __do_clear_bss, __do_global_ctors,
4619 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4620
4621 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
4622
4623 PR target/47766
4624 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4625 (stack_protect_test): The pattern compares ptr_mode value.
4626
4627 2011-08-02 Alan Modra <amodra@gmail.com>
4628
4629 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4630 note for save_LR_around_toc_setup sequence.
4631
4632 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4633
4634 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4635
4636 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
4637 Joseph Myers <joseph@codesourcery.com>
4638
4639 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4640 * hwint.c: Include diagnostic-core.h.
4641 (abs_hwi): New.
4642 (gcd): Moved here...
4643 (pos_mul_hwi): New.
4644 (mul_hwi): New.
4645 (least_common_multiple): Moved here...
4646 * hwint.h (gcd): ... from here.
4647 (least_common_multiple): ... from here.
4648 (HOST_WIDE_INT_MIN): New.
4649 (HOST_WIDE_INT_MAX): New.
4650 (abs_hwi): Declared.
4651 (gcd): Declared.
4652 (pos_mul_hwi): Declared.
4653 (mul_hwi): Declared.
4654 (least_common_multiple): Declared.
4655 * omega.c (check_pos_mul): Removed.
4656 (check_mul): Removed.
4657 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4658 mul_hwi instead of check_mul.
4659
4660 2011-08-01 Richard Henderson <rth@redhat.com>
4661
4662 PR target/49881
4663 * config/avr/avr.h (PUSH_ROUNDING): New.
4664 * config/avr/avr.md (pushqi1): Rename from *pushqi.
4665 (*pushhi, *pushsi, *pushsf): Remove.
4666 (MPUSH): New mode iterator.
4667 (push<MPUSH>1): New expander.
4668
4669 2011-08-01 Anatoly Sokolov <aesok@post.ru>
4670
4671 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4672 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4673 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4674 mmix_preferred_output_reload_class): Remove.
4675 * config/mmix/mmix.c (mmix_preferred_reload_class,
4676 mmix_preferred_output_reload_class): Make static. Change rclass
4677 argument and return type to reg_class_t.
4678 (TARGET_PREFERRED_RELOAD_CLASS,
4679 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4680
4681 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
4682
4683 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4684 handling.
4685
4686 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4687
4688 PR target/47766
4689 * config/i386/i386.md (PTR): New.
4690 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4691 (stack_protect_test): Likewise.
4692 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4693 (stack_tls_protect_set_<mode>): Likewise.
4694 (stack_tls_protect_test_<mode>): Likewise.
4695
4696 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
4697
4698 PR target/49927
4699 * config/i386/i386.c (ix86_address_subreg_operand): New.
4700 (ix86_decompose_address): Use ix86_address_subreg_operand.
4701 (ix86_legitimate_address_p): Do not assert that subregs satisfy
4702 register_no_elim_operand in DImode.
4703
4704 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
4705
4706 PR tree-optimization/49926
4707 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4708 in a chain doesn't have uses both inside and outside the loop.
4709
4710 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4711
4712 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4713 * config/avr/avr-devices.c (avr_mcu_types): Use it.
4714 * config/avr/avr-mcus.def (AVR_MCU): Use it.
4715 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4716 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4717 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4718 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4719 to detect if XJMP must not be skipped.
4720
4721 2011-08-02 Alan Modra <amodra@gmail.com>
4722
4723 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4724 Delete.
4725 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4726 (rs6000_emit_prologue): Don't prematurely return when
4727 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
4728 save_toc_in_prologue case.
4729 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4730 calls_alloca.
4731
4732 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4733
4734 * config/avr/avr-devices.c: Delete SVN property svn:executable.
4735 * config/avr/predicates.md: Ditto.
4736 * config/avr/driver-avr.c: Ditto.
4737 * config/avr/genopt.sh: Set SVN property svn:executable to *.
4738
4739 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4740
4741 * calls.c (emit_library_call_value_1): Declare size only if
4742 BLOCK_REG_PADDING is defined.
4743
4744 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
4745
4746 PR target/49547
4747 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4748 (x86_64-*-*): Likewise.
4749 * config/i386/i386.opt (mlzcnt): New.
4750 * config/i386/abmintrin.h: File removed.
4751 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4752 * config/i386/lzcntintrin.h: ... here. New file.
4753 (__lzcnt): Rename to ...
4754 (__lzcnt32): ... this.
4755 * config/i386/bmiintrin.h (head): Update copyright year.
4756 (__lzcnt_u16): Removed.
4757 (__lzcnt_u32): Likewise.
4758 (__lzcnt_u64): Likewise.
4759 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
4760 is defined, remove abmintrin.h.
4761 * config/i386/cpuid.h (bit_LZCNT): New.
4762 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4763 LZCNT feature.
4764 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4765 __LZCNT__ if needed.
4766 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
4767 (ix86_option_override_internal): Handle LZCNT option.
4768 (ix86_valid_target_attribute_inner_p): Likewise.
4769 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
4770 * config/i386/i386.h (TARGET_LZCNT): New.
4771 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
4772 * config/i386/i386.md (clz<mode>2): Update insn constraint.
4773 (clz<mode>2_lzcnt): Likewise.
4774 * doc/invoke.texi: Mention -mlzcnt option.
4775 * doc/extend.texi: Likewise.
4776
4777 2011-08-01 Julian Brown <julian@codesourcery.com>
4778
4779 * configure.ac (fixed-point): Add ARM support.
4780 * configure: Regenerate.
4781 * config/arm/arm.c (arm_fixed_mode_set): New struct.
4782 (arm_set_fixed_optab_libfunc): New.
4783 (arm_set_fixed_conv_libfunc): New.
4784 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
4785 ARM-specific names.
4786 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
4787 return values in SImode.
4788 (arm_return_in_msb): Return fixed-point types in the msb.
4789 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
4790 upwards.
4791 (arm_scalar_mode_supported_p): Support fixed-point modes.
4792 (arm_vector_mode_supported_p): Support vector fixed-point modes.
4793 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
4794 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
4795 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
4796 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
4797 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
4798 New mode iterators.
4799 (qaddsub_suf): New mode attribute.
4800 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
4801 vector modes.
4802 * config/arm/predicates.md (sat_shift_operator): New predicate.
4803 * config/arm/arm-fixed.md: New.
4804 * config/arm/arm.md: Include arm-fixed.md.
4805 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
4806
4807 2011-08-01 Julian Brown <julian@codesourcery.com>
4808
4809 * calls.c (emit_library_call_value_1): Support padding for libcall
4810 arguments and return values.
4811 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
4812 downwards in big-endian mode.
4813
4814 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4815
4816 PR debug/49887
4817 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4818 * config/sol2-protos.h: Likewise.
4819 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4820 solaris_code_end.
4821 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4822 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4823 solaris_file_end.
4824 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4825
4826 2011-08-01 Julian Brown <julian@codesourcery.com>
4827
4828 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4829
4830 2011-08-01 Julian Brown <julian@codesourcery.com>
4831
4832 * final.c (output_addr_const): Print fixed-point constants as
4833 decimal not hex.
4834
4835 2011-08-01 Richard Guenther <rguenther@suse.de>
4836
4837 * stor-layout.c (initialize_sizetypes): Properly sign-extend
4838 bitsiztype TYPE_MAX_VALUE.
4839
4840 2011-08-01 Julian Brown <julian@codesourcery.com>
4841
4842 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4843 comparison helpers.
4844
4845 2011-07-31 Richard Henderson <rth@redhat.com>
4846
4847 * config/h8300/crti.asm: Add flags to .section directive.
4848 * config/h8300/crtn.asm: Likewise.
4849
4850 2011-07-31 Richard Henderson <rth@redhat.com>
4851
4852 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4853 * tree.c (build_common_tree_nodes): Likewise.
4854
4855 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4856
4857 PR target/49880
4858 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4859 (divsi3_i1): Likewise.
4860
4861 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4862
4863 PR tree-optimization/49749
4864 * tree-ssa-reassoc.c (get_rank): New forward declaration.
4865 (PHI_LOOP_BIAS): New macro.
4866 (phi_rank): New function.
4867 (loop_carried_phi): Likewise.
4868 (propagate_rank): Likewise.
4869 (get_rank): Add calls to phi_rank and propagate_rank.
4870
4871 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
4872
4873 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4874 of TARGET_64BIT.
4875 (PTRDIFF_TYPE): Likewise.
4876
4877 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
4878
4879 PR target/49920
4880 * config/i386/i386.md (strset): Do not expand strset_singleop
4881 when %eax or $edi are fixed.
4882 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4883 (*strsetsi_1): Ditto.
4884 (*strsethi_1): Ditto.
4885 (*strsetqi_1): Ditto.
4886 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4887 (*rep_stossi): Ditto.
4888 (*rep_stosqi): Ditto.
4889 (*strlenqi_1): Ditto.
4890 (cmpstrnsi): Also fail when %ecx is fixed.
4891 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4892 (*cmpstrnqi_1): Ditto.
4893 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4894 (*strmovsi_1): Ditto.
4895 (*strmovhi_1): Ditto.
4896 (*strmovqi_1): Ditto.
4897 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4898 (*rep_movsi): Ditto.
4899 (*rep_movqi): Ditto.
4900
4901 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
4902
4903 PR target/47908
4904 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
4905 Disable instruction scheduling for non-ColdFire targets.
4906 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4907
4908 2011-07-31 Revital Eres <revital.eres@linaro.org>
4909
4910 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
4911 of anti-dep edge from a branch.
4912 (add_cross_iteration_register_deps): Create anti-dep edge from
4913 a branch.
4914
4915 2011-07-31 Revital Eres <revital.eres@linaro.org>
4916
4917 * modulo-sched.c: Change comment.
4918 (reset_sched_times): Fix print message.
4919 (print_partial_schedule): Add print info.
4920
4921 2011-07-31 Tom de Vries <tom@codesourcery.com>
4922
4923 PR middle-end/43513
4924 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
4925 get_object_alignment and TYPE_ALIGN.
4926
4927 2011-07-30 Tom de Vries <tom@codesourcery.com>
4928
4929 PR middle-end/43513
4930 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
4931 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
4932
4933 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4934
4935 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
4936 <sys/sbd.h>.
4937 (cpu_types): New array.
4938 (cputype): New function.
4939 (host_detect_local_cpu): Only define buf, f if !__sgi__.
4940 Use scaninvent instead of /proc/cpuinfo if __sgi__.
4941 * config.host: Also use driver-native.o, mips/x-native on
4942 mips-sgi-irix*.
4943 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
4944 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
4945 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
4946
4947 2011-07-29 Jakub Jelinek <jakub@redhat.com>
4948
4949 PR middle-end/49897
4950 PR middle-end/49898
4951 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
4952 in nested parallel and outer is a gimple_reg, mark it as addressable
4953 and set its bit in task_shared_vars bitmap too.
4954
4955 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
4956
4957 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
4958
4959 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4960
4961 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
4962 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
4963 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
4964 AMASK_LOCKPFTCHOK): Define.
4965 (host_detect_local_cpu): Remove buf, f, cpu_names.
4966 Define cpu_types, implver, amask.
4967 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
4968 native CPU.
4969 * config.host: Also use driver-alpha.o, alpha/x-alpha on
4970 alpha*-dec-osf*.
4971 * config/alpha/osf5.h [__alpha__ || __alpha]
4972 (host_detect_local_cpu): Declare.
4973 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
4974 (DRIVER_SELF_SPECS): Define.
4975
4976 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
4977
4978 PR target/47715
4979 * config/i386/i386.md (*load_tp_x32): New.
4980 (*load_tp_x32_zext): Ditto.
4981 (*add_tp_x32): Ditto.
4982 (*add_tp_x32_zext): Ditto.
4983 (*load_tp_<mode>): Disable for TARGET_X32 targets.
4984 (*add_tp_<mode>): Ditto.
4985 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
4986 ptr_mode and convert to Pmode if needed.
4987
4988 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
4989
4990 PR target/49687
4991 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
4992 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
4993 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
4994 Add X to register footprint: Clobber r26/r27.
4995
4996 2011-07-29 Richard Guenther <rguenther@suse.de>
4997
4998 * builtins.c (fold_builtin_signbit): Build the comparison
4999 with a proper type.
5000
5001 2011-07-29 Richard Guenther <rguenther@suse.de>
5002
5003 PR tree-optimization/49893
5004 * tree-predcom.c (suitable_reference_p): Volatile references
5005 are not suitable.
5006
5007 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
5008
5009 PR target/49313
5010 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5011 (__ctzsi2): Result for 0 may be undefined.
5012 (__ctzhi2): Result for 0 may be undefined.
5013 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5014 (__popcountsi2): Ditto. And don't clobber r26.
5015 (__popcountdi2): Ditto. And don't clobber r27.
5016 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5017 (parityhi2): New expand.
5018 (paritysi2): New expand.
5019 (popcounthi2): New expand.
5020 (popcountsi2): New expand.
5021 (clzhi2): New expand.
5022 (clzsi2): New expand.
5023 (ctzhi2): New expand.
5024 (ctzsi2): New expand.
5025 (ffshi2): New expand.
5026 (ffssi2): New expand.
5027 (copysignsf3): New insn.
5028 (bswapsi2): New expand.
5029 (*parityhi2.libgcc): New insn.
5030 (*parityqihi2.libgcc): New insn.
5031 (*paritysihi2.libgcc): New insn.
5032 (*popcounthi2.libgcc): New insn.
5033 (*popcountsi2.libgcc): New insn.
5034 (*popcountqi2.libgcc): New insn.
5035 (*popcountqihi2.libgcc): New insn-and-split.
5036 (*clzhi2.libgcc): New insn.
5037 (*clzsihi2.libgcc): New insn.
5038 (*ctzhi2.libgcc): New insn.
5039 (*ctzsihi2.libgcc): New insn.
5040 (*ffshi2.libgcc): New insn.
5041 (*ffssihi2.libgcc): New insn.
5042 (*bswapsi2.libgcc): New insn.
5043
5044 2011-07-29 Richard Guenther <rguenther@suse.de>
5045
5046 * tree-vrp.c (get_value_range): Only set parameter default
5047 definitions to varying, leave others at undefined.
5048 (extract_range_from_binary_expr): Fix undefined handling.
5049 (vrp_visit_phi_node): Handle merged undefined state.
5050
5051 2011-07-29 Wei Guozhi <carrot@google.com>
5052
5053 PR rtl-optimization/49799
5054 * combine.c (make_compound_operation): Check if the bit field is valid
5055 before change it to bit field extraction.
5056
5057 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
5058
5059 PR rtl-optimization/49891
5060 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
5061 newly created returnjumps.
5062
5063 2011-07-28 DJ Delorie <dj@redhat.com>
5064
5065 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
5066 local frame in a naked function, and produce a suitable error for
5067 that specific case.
5068
5069 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
5070 registers to be reloaded in HI classes when the target is HI.
5071
5072 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5073
5074 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
5075 bound_one, bound_two.
5076
5077 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5078
5079 PR middle-end/48648
5080 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
5081 CLAST assignments.
5082 (translate_clast): Same.
5083 (translate_clast_assignment): New.
5084
5085 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5086
5087 PR tree-optimization/49876
5088 * sese.c (rename_uses): Do not return false on gloog_error: set
5089 the new_expr to integer_zero_node and continue code generation.
5090 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
5091
5092 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5093
5094 PR debug/49846
5095 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
5096 arguments also check if they aren't initialized with a MODE_INT
5097 mode of the same size.
5098
5099 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
5100
5101 * expr.c (get_bit_range): Handle *MEM_REF's.
5102
5103 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
5104
5105 * rtlanal.c (tablejump_p): False for returns.
5106 * reorg.c (first_active_target_insn): New static function.
5107 (find_end_label): Set JUMP_LABEL for a new returnjump.
5108 (optimize_skip, get_jump_flags, rare_destination,
5109 mostly_true_jump, get_branch_condition,
5110 steal_delay_list_from_target, own_thread_p,
5111 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
5112 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
5113 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
5114 * jump.c (delete_related_insns): Likewise.
5115 (jump_to_label_p): New function.
5116 (redirect_target): New static function.
5117 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
5118 (redirect_jump_1): Assert that the new label is nonnull.
5119 (redirect_jump): Likewise.
5120 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
5121 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
5122 exit block.
5123 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
5124 changed. Ensure that the right label is passed to redirect_jump.
5125 * function.c (emit_return_into_block,
5126 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
5127 ret_rtx in their JUMP_LABEL.
5128 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
5129 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
5130 pass ret_rtx as label.
5131 * cfglayout.c (fixup_reorder_chain): Use
5132 force_nonfallthru_and_redirect rather than force_nonfallthru.
5133 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
5134 * rtl.h (ANY_RETURN_P): New macro.
5135 (jump_to_label_p): Declare.
5136 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
5137 JUMP_LABELs.
5138 (mark_target_live_regs): Likewise.
5139 * basic-block.h (force_nonfallthru_and_redirect): Declare.
5140 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
5141 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
5142 alpha_tablejump_best_label): Remove functions.
5143 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
5144 alpha_tablejump_best_label): Remove declarations.
5145 * config/sh/sh.c (barrier_align, split_branches): Adjust for
5146 ret_rtx in JUMP_LABELs.
5147 * config/arm/arm.c (is_jump_table): Likewise.
5148
5149 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5150
5151 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
5152 special predicate. Remove explicit mode checks.
5153
5154 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5155
5156 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
5157 DW_AT_data_member_location containing just DW_OP_plus_uconst.
5158
5159 PR debug/49871
5160 * dwarf2out.c (size_of_die, value_format, output_die): Use
5161 DW_FORM_udata instead of DW_FORM_data[48] for
5162 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
5163
5164 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5165
5166 * config/i386/i386.md (*tls_global_dynamic_64): Update
5167 length attribute.
5168
5169 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5170
5171 PR target/47715
5172 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
5173 tls_symbolic_operand check. Update code sequence for TARGET_X32.
5174 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
5175 (tls_dynamic_gnu2_64): Ditto.
5176 (*tls_dynamic_gnu2_lea_64): Ditto.
5177 (*tls_dynamic_gnu2_call_64): Ditto.
5178 (*tls_dynamic_gnu2_combine_64): Ditto.
5179
5180 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5181
5182 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
5183
5184 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5185
5186 PR target/47364
5187 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
5188
5189 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5190
5191 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
5192 before the core constraints. Adjust attributes.
5193 ("*thumb2_movdf_vfp"): Likewise.
5194
5195 2011-07-28 Kai Tietz <ktietz@redhat.com>
5196
5197 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
5198 (simplify_truth_ops_using_ranges): Likewise.
5199 (build_assert_expr_for): Likewise.
5200 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
5201 and handle BIT_NOT_EXPR for truth-operation.
5202
5203 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5204
5205 PR target/49313
5206 Undo r176835 from trunk
5207 2011-07-27 Georg-Johann Lay
5208
5209 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5210
5211 PR target/49687
5212 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
5213 Add _muluhisi3, _mulshisi3, _usmulhisi3.
5214 * config/avr/libgcc.S (__mulsi3): Rewrite.
5215 (__mulhisi3): Rewrite.
5216 (__umulhisi3): Rewrite.
5217 (__usmulhisi3): New.
5218 (__muluhisi3): New.
5219 (__mulshisi3): New.
5220 (__mulohisi3): New.
5221 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5222 declare.
5223 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5224 (pseudo_register_or_const_int_operand): New.
5225 (combine_pseudo_register_operand): New.
5226 (u16_operand): New.
5227 (s16_operand): New.
5228 (o16_operand): New.
5229 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5230 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5231 (any_extend, any_extend2): New code iterators.
5232 (extend_prefix): New code attribute.
5233 (mulsi3): Rewrite. Turn insn to expander.
5234 (mulhisi3): Ditto.
5235 (umulhisi3): Ditto.
5236 (usmulhisi3): New expander.
5237 (*mulsi3): New insn-and-split.
5238 (mulu<mode>si3): New insn-and-split.
5239 (muls<mode>si3): New insn-and-split.
5240 (mulohisi3): New insn-and-split.
5241 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5242 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5243 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5244 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5245 insn-and-split.
5246 (*mulsi3_call): Rewrite.
5247 (*mulhisi3_call): Rewrite.
5248 (*umulhisi3_call): Rewrite.
5249 (*usmulhisi3_call): New insn.
5250 (*muluhisi3_call): New insn.
5251 (*mulshisi3_call): New insn.
5252 (*mulohisi3_call): New insn.
5253 (extendqihi2): Use combine_pseudo_register_operand as predicate
5254 for operand 1.
5255 (extendqisi2): Ditto.
5256 (zero_extendqihi2): Ditto.
5257 (zero_extendqisi2): Ditto.
5258 (zero_extendhisi2): Ditto.
5259 (extendhisi2): Ditto. Don't early-clobber operand 0.
5260
5261 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5262
5263 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5264
5265 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5266
5267 PR tree-optimization/49471
5268 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5269 iv only when the largest type is unsigned. Do not call
5270 lang_hooks.types.type_for_size.
5271
5272 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5273
5274 PR middle-end/45450
5275 * graphite-poly.c (apply_poly_transforms): Disable legality check
5276 after an openscop read.
5277
5278 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5279
5280 PR middle-end/47691
5281 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5282 copy_bb_and_scalar_dependences.
5283 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
5284 (graphite_copy_stmts_from_block): Update call to rename_uses.
5285 (copy_bb_and_scalar_dependences): Update call to
5286 graphite_copy_stmts_from_block.
5287 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5288
5289 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
5290
5291 PR target/49313
5292 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5293 (__ctzsi2): Result for 0 may be undefined.
5294 (__ctzhi2): Result for 0 may be undefined.
5295 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5296 (__popcountsi2): Ditto. And don't clobber r26.
5297 (__popcountdi2): Ditto. And don't clobber r27.
5298 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5299 (parityhi2): New expand.
5300 (paritysi2): New expand.
5301 (popcounthi2): New expand.
5302 (popcountsi2): New expand.
5303 (clzhi2): New expand.
5304 (clzsi2): New expand.
5305 (ctzhi2): New expand.
5306 (ctzsi2): New expand.
5307 (ffshi2): New expand.
5308 (ffssi2): New expand.
5309 (copysignsf3): New insn.
5310 (bswapsi2): New expand.
5311 (*parityhi2.libgcc): New insn.
5312 (*parityqihi2.libgcc): New insn.
5313 (*paritysihi2.libgcc): New insn.
5314 (*popcounthi2.libgcc): New insn.
5315 (*popcountsi2.libgcc): New insn.
5316 (*popcountqi2.libgcc): New insn.
5317 (*popcountqihi2.libgcc): New insn-and-split.
5318 (*clzhi2.libgcc): New insn.
5319 (*clzsihi2.libgcc): New insn.
5320 (*ctzhi2.libgcc): New insn.
5321 (*ctzsihi2.libgcc): New insn.
5322 (*ffshi2.libgcc): New insn.
5323 (*ffssihi2.libgcc): New insn.
5324 (*bswapsi2.libgcc): New insn.
5325
5326 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5327
5328 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
5329 the mode of symbolic_opreand RTXes.
5330
5331 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5332
5333 * config/i386/predicates.md (x86_64_movabs_operand): Return false
5334 for pic_32bit_operand RTXes.
5335 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
5336 in DImode.
5337
5338 2011-07-27 Kai Tietz <ktietz@redhat.com>
5339
5340 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
5341 for 32-bit, too.
5342 (ix86_handle_abi_attribute): Allow function attributes
5343 ms_abi/sysv_abi in 32-bit mode, too.
5344 * doc/extend.texi: Adjust attribute documentation.
5345
5346 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
5347 expression handling.
5348 (and_var_with_comparison_1): Likewise.
5349
5350 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
5351
5352 * params.h (ALLOW_STORE_DATA_RACES): New.
5353 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
5354 * Makefile.in (expr.o): Depend on PARAMS_H.
5355 * machmode.h (get_best_mode): Add argument.
5356 * fold-const.c (optimize_bit_field_compare): Add argument to
5357 get_best_mode.
5358 (fold_truthop): Same.
5359 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
5360 * expr.c (emit_group_store): Same.
5361 (copy_blkmode_from_reg): Same.
5362 (write_complex_part): Same.
5363 (optimize_bitfield_assignment_op): Add argument.
5364 Add argument to get_best_mode.
5365 (get_bit_range): New.
5366 (expand_assignment): Calculate maxbits and pass it down accordingly.
5367 (store_field): New argument.
5368 (expand_expr_real_2): New argument to store_field. Include params.h.
5369 * expr.h (store_bit_field): New argument.
5370 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
5371 into account maxbits.
5372 * calls.c (store_unaligned_arguments_into_pseudos): New argument
5373 to store_bit_field.
5374 * expmed.c (store_bit_field_1): New argument. Use it.
5375 (store_bit_field): Same.
5376 (store_fixed_bit_field): Same.
5377 (store_split_bit_field): Same.
5378 (extract_bit_field_1): Pass new argument to get_best_mode.
5379 (extract_bit_field): Same.
5380 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
5381 * doc/invoke.texi: Document parameter allow-store-data-races.
5382
5383 2011-07-27 Jakub Jelinek <jakub@redhat.com>
5384
5385 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
5386
5387 2011-07-27 Kai Tietz <ktietz@redhat.com>
5388
5389 * tree-vrp.c (extract_range_from_binary_expr): Remove
5390 TRUTH-binary cases and add new bitwise-cases.
5391 (extract_range_from_assignment): Likewise.
5392 (register_edge_assert_for_1): Likeiwise.
5393 (register_edge_assert_for): Likewise.
5394 (simplify_truth_ops_using_ranges): Likewise.
5395 (simplify_stmt_using_ranges): Likewise.
5396
5397 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
5398
5399 PR target/47372
5400 * config/i386/i386.c (ix86_delegitimize_address): Call
5401 simplify_gen_subreg for PIC with mode of x only if modes of
5402 x and orig_x are different.
5403
5404 2011-07-26 Jakub Jelinek <jakub@redhat.com>
5405
5406 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
5407 to GC allocated copy of the string.
5408 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
5409 before .debug_line, not after it.
5410
5411 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5412
5413 PR middle-end/47046
5414 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
5415 evolution_function_is_affine_p on CHREC_RIGHT.
5416
5417 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5418
5419 * tree-data-ref.c (max_stmt_executions_tree): Do not call
5420 lang_hooks.types.type_for_size.
5421
5422 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5423
5424 PR middle-end/47653
5425 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
5426 loops using wrapping semantics.
5427
5428 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5429
5430 PR middle-end/48805
5431 * tree-scalar-evolution.c (instantiate_scev_r): Return
5432 chrec_dont_know for ADDR_EXPR.
5433
5434 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5435 H.J. Lu <hongjiu.lu@intel.com>
5436
5437 PR target/47369
5438 PR target/49853
5439 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
5440 if legitimize_tls_address returned operand in wrong mode. Allow
5441 SImode and DImode symbolic operand for PIC. Call convert_to_mode
5442 if legitimize_pic_address returned operand in wrong mode.
5443
5444 2011-07-26 Martin Jambor <mjambor@suse.cz>
5445
5446 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
5447 return false for invariants.
5448
5449 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5450
5451 * config/i386/i386.md (add->lea splitter): Implement using SWI
5452 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
5453 (add->lea zext splitter): Change operand 2 predicate to
5454 x86_64_nonmemory_operand.
5455
5456 2011-07-26 Richard Guenther <rguenther@suse.de>
5457
5458 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
5459 frequency makes everything hot.
5460
5461 2011-07-26 Richard Guenther <rguenther@suse.de>
5462
5463 PR tree-optimization/49840
5464 * tree-vrp.c (range_fits_type_p): Properly handle full
5465 double-int precision.
5466
5467 2011-07-26 Martin Jambor <mjambor@suse.cz>
5468
5469 PR bootstrap/49786
5470 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
5471 counts.
5472 (update_specialized_profile): Likewise.
5473
5474 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5475 H.J. Lu <hongjiu.lu@intel.com>
5476
5477 PR target/47381
5478 PR target/49832
5479 PR target/49833
5480 * config/i386/i386.md (i): Change SImode attribute to "e".
5481 (g): Change SImode attribute to "rme".
5482 (di): Change SImode attribute to "nF".
5483 (general_operand): Change SImode attribute to x86_64_general_operand.
5484 (general_szext_operand): Change SImode attribute to
5485 x86_64_szext_general_operand.
5486 (immediate_operand): Change SImode attribute to
5487 x86_64_immediate_operand.
5488 (nonmemory_operand): Change SImode attribute to
5489 x86_64_nonmemory_operand.
5490 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
5491 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
5492 (*lea_1): Use SWI48 mode iterator.
5493 (*lea_1_zext): New insn pattern.
5494 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
5495 (*bt<mode>): Ditto.
5496 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
5497 Update operand constraints.
5498 (addsi_1_zext): Ditto.
5499 (*add<mode>2): Ditto.
5500 (*addsi_3_zext): Ditto.
5501 (*subsi_1_zext): Ditto.
5502 (*subsi_2_zext): Ditto.
5503 (*subsi_3_zext): Ditto.
5504 (*addsi3_carry_zext): Ditto.
5505 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
5506 (*mulsi3_1_zext): Ditto.
5507 (*andsi_1): Ditto.
5508 (*andsi_1_zext): Ditto.
5509 (*andsi_2_zext): Ditto.
5510 (*<any_or:code>si_1_zext): Ditto.
5511 (*<any_or:code>si_2_zext): Ditto.
5512 (*test<mode>_1): Use <general_operand> predicate for operand 1.
5513 (*and<mode>_2): Ditto.
5514 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
5515 (add->lea splitter): Check operand modes in insn constraint. Extend
5516 operands less than SImode wide to SImode.
5517 (add->lea zext splitter): Do not extend input operands to DImode.
5518 (*lea_general_1): Handle only QImode and HImode operands.
5519 (*lea_general_2): Ditto.
5520 (*lea_general_3): Ditto.
5521 (*lea_general_1_zext): Remove.
5522 (*lea_general_2_zext): Ditto.
5523 (*lea_general_3_zext): Ditto.
5524 (*lea_general_4): Check operand modes in insn constraint. Extend
5525 operands less than SImode wide to SImode.
5526 (ashift->lea splitter): Ditto.
5527 * config/i386/i386.c (ix86_print_operand_address): Print address
5528 registers with 'q' modifier on 64bit targets.
5529 * config/i386/predicates.md (pic_32bit_opreand): Define as special
5530 predicate. Reject non-SI and non-DI modes.
5531
5532 2011-07-25 Andrew Pinski <apinski@cavium.com>
5533
5534 PR tree-opt/49671
5535 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5536 TREE_THIS_NOTRAP into the inner most MEM_REF.
5537 Always copy TREE_THIS_VOLATILE.
5538 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5539 arguments are not volatile references.
5540
5541 2011-07-25 Richard Henderson <rth@redhat.com>
5542
5543 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5544 * final.c (final_scan_insn): Don't test for it.
5545 (rest_of_clean_state): Likewise.
5546
5547 2011-07-25 Richard Henderson <rth@redhat.com>
5548
5549 PR debug/49841
5550 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5551 (emit_frame_save): Likewise.
5552 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5553 insn onto a dummy blockage insn after the join label.
5554
5555 2011-07-25 Richard Henderson <rth@redhat.com>
5556
5557 * dwarf2cfi.c (dw_trace_info): Add ID member.
5558 (get_trace_index): Remove. Change users to use ID member.
5559 (before_next_cfi_note): New.
5560 (connect_traces): Remove unreachable traces before the main loop.
5561 Look across one trace and generate remember/restore_state if needed.
5562
5563 2011-07-25 Richard Henderson <rth@redhat.com>
5564
5565 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5566
5567 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
5568
5569 * genattr.c (write_upcase, gen_attr <enum definition writing>):
5570 Move to ...
5571 * genattr-common.c ... here.
5572 (main): Call gen_attr.
5573 * optc-gen.awk: Make generated program include insn-attr-common.h .
5574 * Makefile.in (oprions.o): Depend on insn-attr-common.h
5575
5576 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5577
5578 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5579 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5580 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5581 m32c_print_operand, m32c_print_operand_address): Remove.
5582 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5583 Change return type to bool. Change argument type to bool.
5584 (m32c_print_operand, m32c_print_operand_address): Make static.
5585 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5586 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5587
5588 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5589
5590 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5591 attributes): Document mmap.
5592
5593 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5594
5595 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5596 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5597 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5598 mmix_print_operand, mmix_print_operand_address): Remove.
5599 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5600 Change return type to bool. Change argument type to bool.
5601 (mmix_print_operand, mmix_print_operand_address): Make static.
5602 (mmix_intval, mmix_output_condition): Change 'x' argument type
5603 to const_rtx.
5604 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5605 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5606
5607 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
5608
5609 PR target/39386
5610 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5611 shift counter for x << x and x >> x shifts.
5612
5613 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5614
5615 PR target/47124
5616 * config.gcc: Reject *-*-solaris2 configuration.
5617
5618 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
5619
5620 PR tree-optimization/49809
5621 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5622 gimple_get_lhs instead of gimple_assign_lhs.
5623
5624 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5625
5626 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5627
5628 2011-07-25 Richard Guenther <rguenther@suse.de>
5629
5630 PR tree-optimization/49822
5631 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5632 more. Make sure to preserve stmts with side-effects. Properly
5633 handle virtual defs, follow a longer def chain.
5634
5635 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
5636
5637 PR plugins/45348
5638 PR plugins/48425
5639 PR plugins/46577
5640 * Makefile.in: Do not flatten c-family directory when installing
5641 plugin headers.
5642
5643 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
5644
5645 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5646 original nodes if we are dealing with virtual clones.
5647
5648 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
5649
5650 * common/config/c6x/c6x-common.c: New file.
5651
5652 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
5653
5654 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5655
5656 2011-07-25 Richard Guenther <rguenther@suse.de>
5657
5658 PR tree-optimization/49715
5659 * tree-vrp.c: Include expr.h and optabs.h.
5660 (range_fits_type_): New function.
5661 (simplify_float_conversion_using_ranges): Likewise.
5662 (simplify_stmt_using_ranges): Call it.
5663 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5664 * optabs.c (can_float_p): Export.
5665 * optabs.h (can_float_p): Declare.
5666
5667 2011-07-25 Richard Guenther <rguenther@suse.de>
5668
5669 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5670 (get_value_range): For out-of-range SSA names or names created
5671 after propagation return a read-only varying range.
5672 (dump_all_value_ranges): Adjust.
5673 (vrp_initialize): Likewise.
5674 (vrp_finalize): Likewise.
5675
5676 2011-07-24 Richard Henderson <rth@redhat.com>
5677
5678 PR debug/49831
5679 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
5680 them entirely.
5681
5682 2011-07-24 Richard Henderson <rth@redhat.com>
5683
5684 PR debug/49825
5685 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5686 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5687
5688 2011-07-24 Richard Henderson <rth@redhat.com>
5689
5690 PR debug/49827
5691 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5692
5693 2011-07-24 Richard Henderson <rth@redhat.com>
5694
5695 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5696 Zero args_size for abnormal edges. Adjust all callers.
5697
5698 2011-07-24 Richard Henderson <rth@redhat.com>
5699
5700 PR debug/49825
5701 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5702
5703 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
5704
5705 PR bootstrap/49835
5706 * collect2.c (demangle_flag): Removed.
5707
5708 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
5709
5710 * configure.ac (demangler_in_ld): Default to yes.
5711 * configure: Regenerated.
5712 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5713 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5714 --no-demangle options straight through to ld. When
5715 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5716 way that has the intended effect on Windows.
5717
5718 2011-07-23 Richard Henderson <rth@redhat.com>
5719
5720 * dwarf2cfi.c: Include basic-block.h.
5721 (dw_label_info): Remove.
5722 (trace_work_list, trace_index): New.
5723 (remember_row, emit_cfa_remember): Remove.
5724 (dw_trace_info_hash, dw_trace_info_eq): New.
5725 (get_trace_index, get_trace_info): New.
5726 (save_point_p): New.
5727 (free_cfi_row): Remove.
5728 (add_cfi): Do not emit DW_CFA_remember_state.
5729 (cfa_row_equal_p): New.
5730 (barrier_args_size): Remove.
5731 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5732 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5733 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5734 (dwarf2out_cfi_begin_epilogue): Remove.
5735 (dwarf2out_frame_debug_restore_state): Remove.
5736 (connect_traces, create_pseudo_cfg): New.
5737 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5738 * Makefile.in (dwarf2cfi.o): Update.
5739
5740 2011-07-23 Richard Henderson <rth@redhat.com>
5741
5742 * dwarf2cfi.c (dw_trace_info): New.
5743 (dw_label_info): New.
5744 (cie_return_save): New.
5745 (cur_trace): New.
5746 (queued_args_size): Rename from args_size. Update all users.
5747 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5748 (def_cfa_1): Use cur_trace instead of cfa_*.
5749 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5750 (clobbers_queued_reg_save, reg_saved_in): Likewise.
5751 (dwarf2out_frame_debug_expr): Likewise.
5752 (create_cie_data): Split out from ...
5753 (execute_dwarf2_frame): ... here. Initialize cur_trace.
5754
5755 2011-07-23 Richard Henderson <rth@redhat.com>
5756
5757 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
5758 Update all users to match.
5759 (execute_dwarf2_frame): Free reg_saved_in_data.
5760
5761 2011-07-23 Richard Henderson <rth@redhat.com>
5762
5763 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
5764 (queued_reg_saves): Don't GTY. Change to a VEC.
5765 (queue_reg_save): Update to match.
5766 (dwarf2out_flush_queued_reg_saves): Likewise.
5767 (clobbers_queued_reg_save): Likewise.
5768 (reg_saved_in): Likewise.
5769 (execute_dwarf2_frame): Free queued_reg_saves.
5770
5771 2011-07-23 Richard Henderson <rth@redhat.com>
5772
5773 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
5774
5775 2011-07-23 Richard Henderson <rth@redhat.com>
5776
5777 * dwarf2cfi.c (add_cfi_args_size): Split out from...
5778 (dwarf2out_args_size): ... here.
5779 (add_cfi_restore): Split out from ...
5780 (dwarf2out_frame_debug_cfa_restore): ... here.
5781 (def_cfa_0): Split out from ...
5782 (def_cfa_1): ... here.
5783 (cfi_oprnd_equal_p, cfi_equal_p): New.
5784 (change_cfi_row): New.
5785 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
5786 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
5787 (output_cfis): Remove.
5788 * dwarf2out.c (output_fde): Simplify output_cfi loop.
5789 (dwarf2out_switch_text_section): Don't call output_cfis.
5790 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
5791 * dwarf2out.h: Update decls.
5792 (enum dw_val_class): Add dw_val_class_none.
5793
5794 2011-07-23 Richard Henderson <rth@redhat.com>
5795
5796 * dwarf2cfi.c (update_row_reg_save): New.
5797 (dwarf2out_frame_debug_cfa_expression): Use it.
5798 (dwarf2out_frame_debug_cfa_restore): Likewise.
5799 (reg_save): Likewise. Do not emit DW_CFA_same_value.
5800
5801 2011-07-23 Richard Henderson <rth@redhat.com>
5802
5803 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
5804
5805 2011-07-23 Richard Henderson <rth@redhat.com>
5806
5807 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
5808 (cie_cfi_row): New.
5809 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
5810 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
5811 (cur_row, remember_row): New.
5812 (def_cfa_1): Use cur_row instead of the old_* variables.
5813 (dwarf2out_frame_debug_restore_state): Similarly.
5814 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
5815 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
5816 (dwarf2out_frame_debug_adjust_cfa): Likewise.
5817 (dwarf2out_frame_debug_cfa_offset): Likewise.
5818 (dwarf2out_frame_debug_expr): Likewise.
5819 (execute_dwarf2_frame): Set up cur_row.
5820 * dwarf2out.h (struct cfa_loc): Mark for GTY.
5821
5822 2011-07-23 Richard Henderson <rth@redhat.com>
5823
5824 * basic-block.h (EDGE_PRESERVE): New.
5825 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5826 * bb-reorder.c: Include except.h.
5827 (fix_up_crossing_landing_pad): New.
5828 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5829 landing pads in the right partition. Duplicate as necessary.
5830 (partition_hot_cold_basic_blocks): Fix up DF info after
5831 duplicating landing pads.
5832 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5833 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5834 is set properly. Validate that EH edges are not CROSSING.
5835 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5836 (dw2_build_landing_pads): ... here.
5837 (convert_to_eh_region_ranges): Remove code to fixup crossing
5838 landing pads.
5839 * except.h (expand_dw2_landing_pad_for_region): Declare.
5840 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5841
5842 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
5843
5844 PR target/49816
5845 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5846
5847 2011-07-22 Jason Merrill <jason@redhat.com>
5848
5849 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5850
5851 2011-07-22 Richard Henderson <rth@redhat.com>
5852
5853 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5854
5855 2011-07-22 Richard Henderson <rth@redhat.com>
5856
5857 * jump.c (maybe_propagate_label_ref): Split out of...
5858 (mark_all_labels): ... here. Do not attempt label_ref
5859 propagation while in cfglayout mode.
5860
5861 2011-07-22 Jakub Jelinek <jakub@redhat.com>
5862
5863 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5864 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5865 (dwarf_attr_name): Handle DW_AT_GNU_macros.
5866 (dwarf2out_define): If the vector is empty and
5867 lineno is 0, emit a dummy entry first.
5868 (dwarf2out_undef): Likewise. Remove redundant semicolon.
5869 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5870 optimize_macinfo_range): New functions.
5871 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
5872 mergeable, optimize longer strings using
5873 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5874 optimize longer sequences of define/undef ops from headers
5875 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
5876 emit a section headers.
5877 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5878 and macinfo_section_label to DEBUG_MACRO_SECTION
5879 resp. DEBUG_MACRO_SECTION_LABEL.
5880 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5881 instead of DW_AT_macro_info.
5882
5883 PR other/32998
5884 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5885 options.
5886 * dwarf2out.c: Include opts.h.
5887 (dchar_p): New typedef. Define heap VEC for it.
5888 (producer_string): New variable.
5889 (gen_producer_string): New function.
5890 (gen_compile_unit_die): Use it.
5891 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5892 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5893 * doc/invoke.texi: Document -grecord-gcc-switches and
5894 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5895 to -frecord-gcc-switches description.
5896
5897 2011-07-22 Jason Merrill <jason@redhat.com>
5898
5899 PR c++/30112
5900 * c-decl.c (c_linkage_bindings): Define.
5901
5902 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
5903
5904 PR debug/49815
5905 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
5906
5907 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
5908
5909 * config/i386/i386.c (ix86_option_override_internal): Disallow
5910 MS ABI in x32 mode.
5911 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
5912 only for TARGET_LP64.
5913 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
5914
5915 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5916
5917 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
5918 avoid warnings when GCC is built with a C++ compiler.
5919
5920 2011-07-22 Martin Jambor <mjambor@suse.cz>
5921
5922 PR lto/49796
5923 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
5924 if decl node is in another partition, call cgraph_get_node only once.
5925
5926 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
5927
5928 * config.gcc (x86_64-*-linux*): Set
5929 default_gnu_indirect_function to yes.
5930
5931 2011-07-22 Richard Guenther <rguenther@suse.de>
5932
5933 PR tree-optimization/45819
5934 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5935 preserve volatile and notrap flags.
5936
5937 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5938 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5939
5940 PR bootstrap/49794
5941 * configure.ac: Test AM_ICONV with CXX.
5942 * configure: Regenerate.
5943 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
5944
5945 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5946
5947 PR bootstrap/49797
5948 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
5949 (set_cloog_options): Use it.
5950
5951 2011-07-22 Jakub Jelinek <jakub@redhat.com>
5952
5953 PR c++/49756
5954 * gcc.c (main): Call stack_limit_increase (64MB).
5955 * toplev.c (toplev_main): Likewise.
5956
5957 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5958
5959 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
5960 instead of force_reg.
5961
5962 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
5963
5964 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
5965 needed and use force_reg after convert.
5966 (ix86_expand_call): Likewise.
5967 (ix86_expand_special_args_builtin): Likewise.
5968 (ix86_expand_builtin): Likewise.
5969
5970 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5971
5972 PR middle-end/47654
5973 PR middle-end/49649
5974 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
5975 in parameter. Initialize v1 and v2 based on the values returned
5976 by clast_name_to_lb_ub.
5977 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
5978 values.
5979 (type_for_clast_bin): Same.
5980 (type_for_clast_expr): Same.
5981 (type_for_clast_eq): Update calls to type_for_clast_expr.
5982 (type_for_clast_for): Same.
5983 (build_iv_mapping): Same.
5984 * graphite-ppl.h (value_min): New.
5985
5986 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5987
5988 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
5989 types whenever possible.
5990
5991 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
5992
5993 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
5994 and ub fields.
5995 (new_clast_name_index): Add lb and ub parameters.
5996 (free_clast_name_index): New.
5997 (clast_name_to_lb_ub): New.
5998 (save_clast_name_index): Add lb and ub parameters.
5999 (compute_bounds_for_param): New.
6000 (type_for_level): Removed.
6001 (type_for_clast_for): Removed level parameter. Do not call
6002 type_for_level.
6003 (graphite_create_new_loop): Store the lb and ub for the clast_name
6004 of the iterator of the loop that has been generated.
6005 (graphite_create_new_loop_guard): Remove parameter level.
6006 (create_params_index): Store the lb and ub of each parameter.
6007 (gloog): Use free_clast_name_index. Pass to create_params_index
6008 the current scop.
6009
6010 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6011
6012 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
6013 (max_precision_type): Inline max_signed_precision_type.
6014 (type_for_clast_red): Use max_precision_type.
6015 (type_for_clast_bin): Same.
6016 (type_for_clast_for): Same.
6017
6018 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6019
6020 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
6021 type_for_interval.
6022 (gcc_type_for_value): Renamed type_for_value.
6023 (gcc_type_for_clast_term): Renamed type_for_clast_term.
6024 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
6025 (gcc_type_for_clast_red): Renamed type_for_clast_red.
6026 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
6027 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
6028 (graphite_translate_clast_equation): Update calls.
6029 (compute_type_for_level): Renamed type_for_level.
6030 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
6031 (build_iv_mapping): Update calls.
6032 (graphite_create_new_loop_guard): Same.
6033
6034 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6035
6036 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
6037 comment.
6038
6039 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6040
6041 * graphite-clast-to-gimple.c (struct ivs_params): New.
6042 (clast_name_to_gcc): Use ivs_params to pass around parameters.
6043 (clast_to_gcc_expression): Same.
6044 (clast_to_gcc_expression_red): Same.
6045 (gcc_type_for_clast_term): Same.
6046 (gcc_type_for_clast_expr): Same.
6047 (gcc_type_for_clast_red): Same.
6048 (gcc_type_for_clast_bin): Same.
6049 (gcc_type_for_clast_eq): Same.
6050 (graphite_translate_clast_equation): Same.
6051 (graphite_create_guard_cond_expr): Same.
6052 (graphite_create_new_guard): Same.
6053 (graphite_create_new_loop): Same.
6054 (build_iv_mapping): Same.
6055 (translate_clast_user): Same.
6056 (graphite_create_new_loop_guard): Same.
6057 (translate_clast): Same.
6058 (translate_clast_for_loop): Same.
6059 (translate_clast_for): Same.
6060 (translate_clast_guard): Same.
6061 (initialize_cloog_names): Fix typo.
6062 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
6063
6064 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6065
6066 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
6067 (new_clast_name_index): Add level parameter.
6068 (clast_name_to_level): New.
6069 (save_clast_name_index): Add level parameter.
6070 (newivs_to_depth_to_newiv): Removed.
6071 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
6072 (graphite_create_new_loop): Add level parameter. Pass level to
6073 save_clast_name_index.
6074 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
6075 (create_params_index): Pass level to save_clast_name_index.
6076
6077 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6078
6079 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
6080 recompute type, lb, and ub. Get them from...
6081 (graphite_create_new_loop_guard): ...here. Pass in parameter
6082 pointers to type, lb, and ub.
6083 (translate_clast_for_loop): Update function calls.
6084 (translate_clast_for): Same.
6085
6086 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6087
6088 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
6089 psct_dynamic_dim.
6090 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
6091 (gcc_type_for_iv_of_clast_loop): Update use of level.
6092 (gloog): Start counting nesting level from 0.
6093 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
6094 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
6095 psct_dynamic_dim on level.
6096
6097 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6098
6099 * config/i386/i386.c (ix86_legitimize_address): Convert to
6100 Pmode if needed.
6101
6102 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6103
6104 * config/i386/i386.c (function_value_64): Always return pointers
6105 in Pmode.
6106 (ix86_promote_function_mode): New.
6107 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
6108
6109 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6110
6111 PR tree-optimization/49749
6112 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
6113 remove no-longer-used maxrank variable.
6114
6115 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6116
6117 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
6118
6119 2011-07-21 Jason Merrill <jason@redhat.com>
6120
6121 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
6122 * recog.h (struct insn_data_d): Check it instead of
6123 HAVE_DESIGNATED_INITIALIZERS.
6124 * genoutput.c (output_insn_data): Likewise.
6125
6126 2011-07-21 Richard Guenther <rguenther@suse.de>
6127
6128 PR tree-optimization/49770
6129 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
6130 valueized any operand. Renamed from ...
6131 (valueize_refs): ... this. New wrapper around valueize_refs_1.
6132 (valueize_shared_reference_ops_from_ref): Return whether we
6133 valueized any operand.
6134 (vn_reference_lookup): Only when we valueized any operand
6135 use the valueized reference for alias analysis. Do not preserve
6136 the original reference tree in this case.
6137
6138 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
6139
6140 * config/i386/i386.c (ix86_decompose_address): Reject all but
6141 register operands and subregs of DImode hard registers in index.
6142
6143 2011-07-21 Kai Tietz <ktietz@redhat.com>
6144
6145 * fold-const.c (fold_unary_loc): Preserve indirect
6146 comparison cast to none-boolean type.
6147 * tree-ssa.c (useless_type_conversion_p): Preserve cast
6148 from/to boolean-type.
6149 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
6150 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
6151 * tree-cfg.c (verify_gimple_comparison): Check result
6152 type of comparison expression.
6153 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
6154 of condition result and disallow type-cast sinking into comparison.
6155
6156 2011-07-21 Richard Guenther <rguenther@suse.de>
6157
6158 * tree-ssa-forwprop.c (combine_conversions): Return whether
6159 we have to run cfg-cleanup. Properly remove dead stmts.
6160 (ssa_forward_propagate_and_combine): Adjust.
6161
6162 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
6163
6164 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
6165
6166 2011-07-21 Kai Tietz <ktietz@redhat.com>
6167
6168 * tree-ssa-propagate.c (substitute_and_fold): Use
6169 do_dce flag to deside, if BB's statements are scanned
6170 in last to first, or first to last order.
6171
6172 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6173
6174 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
6175
6176 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
6177 Uros Bizjak <ubizjak@gmail.com>
6178 Richard Henderson <rth@redhat.com>
6179
6180 * config/i386/constraints.md (w): New.
6181
6182 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
6183 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
6184
6185 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
6186 instead of TARGET_64BIT.
6187
6188 * config/i386/i386.md (indirect_jump): Replace
6189 nonimmediate_operand with indirect_branch_operand.
6190 (*indirect_jump): Likewise. Replace constraint "m" with "w".
6191 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
6192 Convert operand 0 to Pmode for x32 if not PIC.
6193 (*tablejump_1): Replace nonimmediate_operand with
6194 indirect_branch_operand. Replace constraint "m" with "w".
6195 (*call_vzeroupper): Replace constraint "m" with "w".
6196 (*call): Likewise.
6197 (*call_rex64_ms_sysv_vzeroupper): Likewise.
6198 (*call_rex64_ms_sysv): Likewise.
6199 (*call_value_vzeroupper): Likewise.
6200 (*call_value): Likewise.
6201 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
6202 (*call_value_rex64_ms_sysv): Likewise.
6203 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6204
6205 * config/i386/predicates.md (indirect_branch_operand): New.
6206 (call_insn_operand): Support x32.
6207
6208 2011-07-20 Michael Eager <eager@eagercon.com>
6209
6210 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
6211
6212 2011-07-20 Richard Henderson <rth@redhat.com>
6213
6214 * cfg.c (dump_bb_info): Dump basic_block->flags.
6215 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
6216
6217 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6218
6219 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6220 of DImode hard registers in index.
6221 (ix86_legitimate_address_p): Allow subregs of base and index to span
6222 more than a word. Assert that subregs of base and index satisfy
6223 register_no_elim_operand predicates. Reject addresses where
6224 base and index have different modes.
6225
6226 2011-07-20 Robert Millan <rmh@gnu.org>
6227
6228 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6229
6230 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6231
6232 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6233 removing now-unnecessary assignment.
6234
6235 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6236
6237 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6238 memory address space to the type's address space.
6239
6240 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6241
6242 PR target/36467
6243 PR target/49687
6244 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6245 and expand appropriately if there is a CONST_INT in operand2.
6246 (usmulqihi3): New insn.
6247 (*sumulqihi3): New insn.
6248 (*osmulqihi3): New insn.
6249 (*oumulqihi3): New insn.
6250 (*muluqihi3.uconst): New insn_and_split.
6251 (*muluqihi3.sconst): New insn_and_split.
6252 (*mulsqihi3.sconst): New insn_and_split.
6253 (*mulsqihi3.uconst): New insn_and_split.
6254 (*mulsqihi3.oconst): New insn_and_split.
6255 (*ashifthi3.signx.const): New insn_and_split.
6256 (*ashifthi3.signx.const7): New insn_and_split.
6257 (*ashifthi3.zerox.const): New insn_and_split.
6258 (mulsqihi3): New insn.
6259 (muluqihi3): New insn.
6260 (muloqihi3): New insn.
6261 * config/avr/predicates.md (const_2_to_7_operand): New.
6262 (const_2_to_6_operand): New.
6263 (u8_operand): New.
6264 (s8_operand): New.
6265 (o8_operand): New.
6266 (s9_operand): New.
6267 (register_or_s9_operand): New.
6268
6269 2011-07-20 Kai Tietz <ktietz@redhat.com>
6270
6271 * builtins.c (fold_builtin_expect): See through the cast
6272 from truthvalue_type_node to long.
6273
6274 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6275
6276 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6277 where we can use them from the standard and altivec instruction
6278 sets, instead of always using the 3 operand VSX forms that require
6279 the destination to overlap one of the inputs.
6280 (vsx_fms*): Ditto.
6281 (vsx_fnma*): Ditto.
6282 (vsx_fnms*): Ditto.
6283
6284 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6285 for DF types.
6286 (fmsdf4_fpr): Ditto.
6287 (nfmadf4_fpr): Ditto.
6288 (nfmsdf4_fpr): Ditto.
6289
6290 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
6291
6292 * genrecog.c (make_insn_sequence): Correct position numbering
6293 when filtering out match_scratch and match_dup.
6294
6295 2011-07-20 Richard Guenther <rguenther@suse.de>
6296
6297 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6298 against already removed statements.
6299 (forward_propagate_into_comparison): Remove dead defining stmts.
6300 (forward_propagate_into_gimple_cond): Likewise.
6301 (forward_propagate_into_cond): Simplify.
6302 (ssa_forward_propagate_and_combine): Handle changed cfg from
6303 forward_propagate_into_comparison.
6304 * tree-ssa-phiopt.c (conditional_replacement): Use proper
6305 locations for newly built statements.
6306
6307 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6308
6309 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
6310
6311 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6312
6313 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
6314 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
6315
6316 2011-07-20 Richard Guenther <rguenther@suse.de>
6317
6318 PR middle-end/18908
6319 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
6320 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
6321 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
6322
6323 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
6324
6325 * config/frv/frv.c (frv_register_move_cost): Define explicitly
6326 costs for subclasses of GR_REGS.
6327
6328 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6329
6330 PR target/49780
6331 * config/i386/predicates.md (no_seg_addres_operand): No more special.
6332 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6333 of DImode hard registers in base.
6334 (ix86_legitimate_address_p): Allow SImode and DImode base and index
6335 registers.
6336
6337 2011-07-20 Richard Guenther <rguenther@suse.de>
6338
6339 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
6340 (unify_nodes): Deal with that.
6341 (solve_graph): Likewise.
6342
6343 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
6344
6345 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
6346 canonicalize left operand from ZERO_EXTEND to AND.
6347
6348 2011-07-20 Anatoly Sokolov <aesok@post.ru>
6349
6350 * target.def (class_max_nregs): New hook.
6351 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
6352 * doc/tm.texi: Regenerate.
6353 * targhooks.c (default_class_max_nregs): New function.
6354 * targhooks.h (default_class_max_nregs): Declare.
6355 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
6356 x_ira_reg_class_min_nregs arrays to unsigned char.
6357 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
6358 hook instead of CLASS_MAX_NREGS macro.
6359 * reginfo.c (restore_register_info): Ditto.
6360 * ira-conflicts.c (process_regs_for_copy): Use
6361 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6362 Change type rclass and aclass vars to reg_class_t.
6363 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
6364 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
6365 reg_class_t.
6366 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
6367 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6368
6369 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
6370 * config/i386/i386.c (ix86_class_max_nregs): New function.
6371 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
6372 instead of CLASS_MAX_NREGS macro.
6373 (TARGET_CLASS_MAX_NREGS): Define.
6374 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
6375 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
6376 * config/avr/avr.c (class_max_nregs): Remove function.
6377 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
6378 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
6379 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
6380 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
6381 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
6382 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
6383 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
6384 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
6385 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
6386 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
6387 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
6388 * config/score/score.h (CLASS_MAX_NREGS): Remove.
6389 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
6390 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
6391 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
6392
6393 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
6394
6395 * cif-code.def (OVERWRITABLE): Fix typo and move around.
6396 (TARGET_OPTIMIZATION_MISMATCH): Delete.
6397 (EH_PERSONALITY): Fix typo.
6398 (NON_CALL_EXCEPTIONS): Fix message.
6399 (OPTIMIZATION_MISMATCH): Adjust message.
6400 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
6401
6402 2011-07-19 Ian Lance Taylor <iant@google.com>
6403
6404 * doc/install.texi (Configuration): Document
6405 --enable-build-poststage1-with-cxx.
6406
6407 2011-07-19 Robert Millan <rmh@gnu.org>
6408
6409 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
6410 (GLIBC_DYNAMIC_LINKER): Remove.
6411
6412 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
6413 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6414 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6415 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
6416 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
6417 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
6418
6419 * config/mips/linux.h: Remove everything except for ...
6420 (GLIBC_DYNAMIC_LINKER): ... this macro.
6421
6422 * config/mips/linux64.h: Remove everything except for ...
6423 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6424 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6425 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
6426 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
6427 (GNU_USER_LINK_EMULATIONN32): New macros.
6428
6429 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
6430 Use the new headers.
6431
6432 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6433
6434 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
6435 Add offset_known_p and size_known_p fields.
6436 (MEM_OFFSET_KNOWN_P): Update accordingly.
6437 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
6438 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
6439 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
6440 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
6441 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
6442 (init_emit_regs): Likewise.
6443
6444 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6445
6446 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
6447 (MEM_OFFSET): Change from returning an rtx to returning a
6448 HOST_WIDE_INT.
6449 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
6450 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
6451 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6452 (clear_mem_offset): Declare.
6453 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
6454 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
6455 MEM_OFFSET to get a HOST_WIDE_INT offset.
6456 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
6457 (adjust_offset_for_component_ref): Take a bool "known_p"
6458 parameter and a HOST_WIDE_INT "offset" parameter.
6459 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
6460 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
6461 than an rtx. Use clear_mem_offset to clear the offset.
6462 * cfgcleanup.c (merge_memattrs): Likewise.
6463 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
6464 * function.c (assign_parm_find_stack_rtl): Likewise.
6465 (assign_parm_setup_stack): Likewise.
6466 * print-rtl.c (print_rtx): Likewise.
6467 * reload.c (find_reloads_subreg_address): Likewise.
6468 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6469 * var-tracking.c (INT_MEM_OFFSET): Likewise.
6470 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6471 (get_mem_align_offset): Likewise.
6472 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6473 (clear_mem_offset): New function.
6474 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
6475 offset rather than an rtx. Assume both the expressio and offset
6476 are available.
6477 (r10k_needs_protection_p_1): Update accordingly, checking the
6478 expression and offset availability here instead.
6479
6480 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6481
6482 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
6483 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
6484 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
6485 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
6486 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6487 (clear_mem_size): Declare.
6488 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6489 (clear_mem_size): New function.
6490 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
6491 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
6492 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
6493 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
6494 to clear the size.
6495 (nonoverlapping_memrefs_p): Likewise.
6496 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
6497 (expand_builtin_init_trampoline): Likewise.
6498 * calls.c (compute_argument_addresses): Likewise.
6499 * cfgcleanup.c (merge_memattrs): Likewise.
6500 * dce.c (find_call_stack_args): Likewise.
6501 * dse.c (record_store, scan_insn): Likewise.
6502 * dwarf2out.c (dw_sra_loc_expr): Likewise.
6503 * expr.c (emit_block_move_hints): Likewise.
6504 * function.c (assign_parm_find_stack_rtl): Likewise.
6505 * print-rtl.c (print_rtx): Likewise.
6506 * reload.c (find_reloads_subreg_address): Likewise.
6507 * rtlanal.c (may_trap_p_1): Likewise.
6508 * var-tracking.c (track_expr_p): Likewise.
6509 * varasm.c (assemble_trampoline_template): Likewise.
6510 * config/arm/arm.c (arm_print_operand): Likewise.
6511 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
6512 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
6513 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
6514 (expand_constant_setmem_prologue): Likewise.
6515 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
6516 * config/rs6000/rs6000.c (expand_block_move): Likewise.
6517 (adjacent_mem_locations): Likewise.
6518 * config/s390/s390.c (s390_expand_setmem): Likewise.
6519 (s390_expand_insv): Likewise.
6520 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
6521 (*extendqi<mode>2_short_displ): Likewise.
6522 * config/sh/sh.c (expand_block_move): Likewise.
6523 * config/sh/sh.md (extv, extzv): Likewise.
6524
6525 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6526
6527 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
6528 (mem_attrs_htab_eq): ...here.
6529 (find_mem_attrs): Replace with...
6530 (set_mem_attrs): ...this function. Take a mem_attrs structure
6531 rather than individual fields.
6532 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6533 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6534 (set_mem_size, change_address, adjust_address_1, offset_address)
6535 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6536 Update accordingly.
6537
6538 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6539
6540 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6541 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6542 Provide a dummy definition of MEM_ADDR_SPACE for generators.
6543 (target_rtl): Add x_mode_mem_attrs.
6544 (mode_mem_attrs): New macro.
6545 (get_mem_attrs): New function.
6546 * emit-rtl.c (get_mem_attrs): Rename to...
6547 (find_mem_attrs): ...this.
6548 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6549 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6550 (set_mem_size, change_address, adjust_address_1, offset_address)
6551 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6552 Update accordingly.
6553 (init_emit_regs): Initialize mode_mem_attrs.
6554
6555 2011-07-19 Richard Guenther <rguenther@suse.de>
6556
6557 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6558 TRUTH_*_EXPR handling.
6559 * tree-ssa-operands.c (get_expr_operands): Likewise.
6560 * tree-ssa-pre.c (fully_constant_expression): Likewise.
6561 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6562 Likewise.
6563 (is_and_or_or): Likewise.
6564 (is_norm_cond_subset_of): Likewise.
6565
6566 2011-07-19 Richard Guenther <rguenther@suse.de>
6567
6568 * tree.h (fold_build_pointer_plus_loc): New helper function.
6569 (fold_build_pointer_plus_hwi_loc): Likewise.
6570 (fold_build_pointer_plus): Define.
6571 (fold_build_pointer_plus_hwi): Likewise.
6572 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6573 (fold_builtin_memory_op): Likewise.
6574 (fold_builtin_stpcpy): Likewise.
6575 (fold_builtin_memchr): Likewise.
6576 (fold_builtin_strstr): Likewise.
6577 (fold_builtin_strchr): Likewise.
6578 (fold_builtin_strrchr): Likewise.
6579 (fold_builtin_strpbrk): Likewise.
6580 (fold_builtin_strcat): Likewise.
6581 (expand_builtin_memory_chk): Likewise.
6582 (fold_builtin_memory_chk): Likewise.
6583 * c-typeck.c (build_unary_op): Likewise.
6584 * cgraphunit.c (thunk_adjust): Likewise.
6585 * fold-const.c (build_range_check): Likewise.
6586 (fold_binary_loc): Likewise.
6587 * omp-low.c (extract_omp_for_data): Likewise.
6588 (expand_omp_for_generic): Likewise.
6589 (expand_omp_for_static_nochunk): Likewise.
6590 (expand_omp_for_static_chunk): Likewise.
6591 * tree-affine.c (add_elt_to_tree): Likewise.
6592 * tree-data-ref.c (split_constant_offset_1): Likewise.
6593 * tree-loop-distribution.c (generate_memset_zero): Likewise.
6594 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6595 * tree-predcom.c (ref_at_iteration): Likewise.
6596 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6597 (add_to_parts): Likewise.
6598 (create_mem_ref): Likewise.
6599 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6600 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6601 (number_of_iterations_le): Likewise.
6602 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6603 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6604 (vect_create_addr_base_for_vector_ref): Likewise.
6605 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6606 (vect_create_cond_for_alias_checks): Likewise.
6607 * tree-vrp.c (extract_range_from_assert): Likewise.
6608 * config/alpha/alpha.c (alpha_va_start): Likewise.
6609 (alpha_gimplify_va_arg_1): Likewise.
6610 * config/i386/i386.c (ix86_va_start): Likewise.
6611 (ix86_gimplify_va_arg): Likewise.
6612 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6613 * config/mep/mep.c (mep_expand_va_start): Likewise.
6614 (mep_gimplify_va_arg_expr): Likewise.
6615 * config/mips/mips.c (mips_va_start): Likewise.
6616 (mips_gimplify_va_arg_expr): Likewise.
6617 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6618 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6619 (rs6000_gimplify_va_arg): Likewise.
6620 * config/s390/s390.c (s390_va_start): Likewise.
6621 (s390_gimplify_va_arg): Likewise.
6622 * config/sh/sh.c (sh_va_start): Likewise.
6623 (sh_gimplify_va_arg_expr): Likewise.
6624 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6625 * config/spu/spu.c (spu_va_start): Likewise.
6626 (spu_gimplify_va_arg_expr): Likewise.
6627 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6628 Likewise.
6629 (xstormy16_gimplify_va_arg_expr): Likewise.
6630 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6631 (xtensa_gimplify_va_arg_expr): Likewise.
6632
6633 2011-07-19 Richard Guenther <rguenther@suse.de>
6634
6635 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6636 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6637 handling.
6638
6639 PR middle-end/18908
6640 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6641 result of BIT_*_EXPR to bitfield precision.
6642
6643 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
6644
6645 PR tree-optimization/49742
6646 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6647 as a potential write.
6648
6649 2011-07-19 Richard Guenther <rguenther@suse.de>
6650
6651 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6652 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6653 (forward_propagate_comparison): Simplify, remove obsolete code.
6654
6655 2011-07-19 Richard Guenther <rguenther@suse.de>
6656
6657 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6658 BIT_XOR_EXPR, same as the RTL expander does.
6659 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6660 (verify_gimple_assign_unary): Likewise.
6661 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6662 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6663 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6664
6665 2011-07-19 Jakub Jelinek <jakub@redhat.com>
6666
6667 PR tree-optimization/49768
6668 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6669 if offset is smaller than bitoffset, but offset+size is bigger
6670 than bitoffset.
6671
6672 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
6673
6674 PR tree-optimization/49771
6675 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6676 zero step, set segment length to the size of the data-ref's type.
6677
6678 2011-07-18 Martin Jambor <mjambor@suse.cz>
6679
6680 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6681 comments.
6682 (ipcp_values_pool): Declare.
6683 (ipcp_sources_pool): Likewise.
6684 (ipcp_lattice): Changed to forward declaration.
6685 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6686 cannot_devirtualize.
6687 (ipa_node_params): New fields descriptors, lattices, known_vals,
6688 clone_for_all_contexts and node dead, removed fields params and
6689 count_scale.
6690 (ipa_set_param_count): Removed.
6691 (ipa_get_param_count): Made to work with descriptors vector.
6692 (ipa_get_param): Updated.
6693 (ipa_param_cannot_devirtualize_p): Removed.
6694 (ipa_param_types_vec_empty): Likewise.
6695 (ipa_set_param_used): New function.
6696 (ipa_get_param_used): Updated to use descriptors vector.
6697 (ipa_func_list): Removed.
6698 (ipa_init_func_list): Removed declaration.
6699 (ipa_push_func_to_list_1): Likewise.
6700 (ipa_pop_func_from_list): Likewise.
6701 (ipa_push_func_to_list): Removed.
6702 (ipa_lattice_from_jfunc): Remove declaration.
6703 (ipa_get_jf_pass_through_result): Declare.
6704 (ipa_get_jf_ancestor_result): Likewise.
6705 (ipa_value_from_jfunc): Likewise.
6706 (ipa_get_lattice): Update.
6707 (ipa_lat_is_single_const): New function.
6708 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6709 (ipa_init_func_list): Likewise.
6710 (ipa_pop_func_from_list): Likewise.
6711 (ipa_get_param_decl_index): Fix coding style.
6712 (count_formal_params): Removed.
6713 (count_formal_params_1): Renamed to count_formal_params.
6714 (ipa_populate_param_decls): Update to use descriptors vector.
6715 (ipa_initialize_node_params): Likewise.
6716 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6717 (ipa_analyze_params_uses): Likewise.
6718 (ipa_free_node_params_substructures): Likewise and free also lattices
6719 and known values.
6720 (duplicate_array): Removed.
6721 (ipa_edge_duplication_hook): Add the new edge to the list of edge
6722 clones.
6723 (ipa_node_duplication_hook): Update to use new lattices.
6724 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6725 (ipa_free_all_structures_after_iinln): Likewise.
6726 (ipa_write_node_info): Update to use new lattices.
6727 (ipa_read_node_info): Likewise.
6728 (ipa_get_jf_pass_through_result): New function.
6729 (ipa_get_jf_ancestor_result): Likewise.
6730 (ipa_value_from_jfunc): Likewise.
6731 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6732 * ipa-cp.c: Reimplemented.
6733 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6734 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6735 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6736 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6737 * doc/invoke.texi (devirt-type-list-size): Removed description.
6738 (ipa-cp-value-list-size): Added description.
6739
6740 2011-07-18 Richard Henderson <rth@redhat.com>
6741
6742 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6743 before calling create_basic_block.
6744
6745 2011-07-18 Jakub Jelinek <jakub@redhat.com>
6746
6747 PR middle-end/49675
6748 * tree.c (build_common_builtin_nodes): Register
6749 __builtin_return_address, __cyg_profile_func_enter
6750 and __cyg_profile_func_exit.
6751
6752 2011-07-18 Richard Henderson <rth@redhat.com>
6753
6754 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
6755 (add_labels_and_missing_jumps): ... here.
6756 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
6757
6758 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
6759
6760 PR target/47744
6761 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6762 of DImode hard registers in PLUS address chains.
6763
6764 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6765
6766 PR bootstrap/49769
6767 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
6768 (alpha*-*-freebsd*): Likewise.
6769 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6770 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6771 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
6772 crtprec80.o, crtfastmath.o to extra_parts for all targets.
6773 (ia64*-*-elf*): Remove extra_parts.
6774 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
6775 (sparc64-*-linux*): Likewise.
6776 (sparc64-*-freebsd*): Likewise.
6777
6778 Revert:
6779 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
6780 (ia64*-*-linux*): Likewise.
6781 (mips64*-*-linux*): Likewise.
6782 (mips*-*-linux*): Likewise.
6783
6784 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
6785
6786 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
6787
6788 2011-07-18 Richard Guenther <rguenther@suse.de>
6789
6790 * gimplify.c (gimplify_expr): Use input_location, not saved_location
6791 when building new trees.
6792
6793 2011-07-18 Richard Guenther <rguenther@suse.de>
6794
6795 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
6796 expansion result to bitfield precision if required.
6797
6798 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6799
6800 * config.gcc (i[3456x]86-*-netware*): Remove.
6801
6802 * gthr-nks.h: Remove.
6803 * configure.ac (enable_threads): Remove nks.
6804 * configure: Regenerate.
6805
6806 * config/i386/i386.c (ix86_encode_section_info): Remove netware
6807 reference.
6808 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
6809 <netware.h> reference.
6810
6811 * config/i386/netware-libgcc.c,
6812 gcc/config/i386/netware-libgcc.def,
6813 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
6814 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
6815 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
6816 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6817
6818 * doc/extend.texi (Function Attributes,
6819 callee_pop_aggregate_return): Remove i?86-netware reference.
6820 * doc/install.texi (Configuration, --enable-threads): Remove nks.
6821
6822 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6823
6824 PR target/49746
6825 Revert:
6826 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6827
6828 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6829 patterns.
6830
6831 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
6832
6833 PR middle-end/49732
6834 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6835
6836 2011-07-16 Matthias Klose <doko@ubuntu.com>
6837
6838 * doc/install.texi: Document --enable-static-libjava.
6839
6840 2011-07-15 Richard Henderson <rth@redhat.com>
6841
6842 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6843 Replace all three arguments by returning a VEC of edges.
6844 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6845 pointers and counts.
6846 (fix_edges_for_rarely_executed_code): Merge ...
6847 (rest_of_handle_partition_blocks): ... into...
6848 (partition_hot_cold_basic_blocks): ... here. Return todo items if
6849 any work was performed.
6850 (pass_partition_blocks): Clear todo_flags_finish.
6851
6852 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
6853 Jakub Jelinek <jakub@redhat.com>
6854 Jonathan Wakely <jwakely.gcc@gmail.com>
6855
6856 PR libstdc++/49745
6857 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6858 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6859
6860 2011-07-15 Jason Merrill <jason@redhat.com>
6861
6862 PR testsuite/49741
6863 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6864 rather than --tool_opts.
6865
6866 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
6867
6868 * doc/plugins.texi (Building GCC plugins): gengtype needs its
6869 corresponding gtype.state.
6870
6871 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6872
6873 PR target/49723
6874 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6875
6876 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
6877
6878 PR target/48220
6879 * doc/md.texi (Standard Names): Document window_save.
6880 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6881 expand_debug_expr and expand_debug_source_expr. If the target has
6882 a window_save instruction, adjust the ENTRY_VALUE_EXP.
6883 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6884 SSA_NAME_VAR is a parameter.
6885 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6886 * var-tracking.c (parm_reg_t): New type and associated vector type.
6887 (windowed_parm_regs): New variable.
6888 (adjust_insn): If the target has a window_save instruction and this
6889 is the instruction, make its effect on parameter registers explicit.
6890 (next_non_note_insn_var_location): New function.
6891 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6892 (vt_add_function_parameter): If the target has a window_save insn,
6893 adjust the incoming RTL and record that in windowed_parm_regs.
6894 (vt_finalize): Free windowed_parm_regs.
6895
6896 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
6897
6898 * doc/invoke.texi (C6X Options): New section.
6899 * doc/md.texi (TI C6X family): New section.
6900 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6901 tic6x-*-uclinux.
6902 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6903 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6904 Provide C6X definitions.
6905 * config/c6x/c6x.md: New file.
6906 * config/c6x/constraints.md: New file.
6907 * config/c6x/predicates.md: New file.
6908 * config/c6x/c6x-sched.md.in: New file.
6909 * config/c6x/c6x-sched.md: New file.
6910 * config/c6x/gensched.sh: New file.
6911 * config/c6x/c6x-mult.md.in: New file.
6912 * config/c6x/genmult.sh: New file.
6913 * config/c6x/c6x-mult.md: New file.
6914 * config/c6x/sync.md: New file.
6915 * config/c6x/c6x-protos.h: New file.
6916 * config/c6x/sfp-machine.h: New file.
6917 * config/c6x/c6x.c: New file.
6918 * config/c6x/c6x.h: New file.
6919 * config/c6x/crti.s: New file.
6920 * config/c6x/crtn.s: New file.
6921 * config/c6x/lib1funcs.asm: New file.
6922 * config/c6x/c6x-modes.def: New file.
6923 * config/c6x/genopt.sh: New file.
6924 * config/c6x/c6x.opt: New file.
6925 * config/c6x/c6x-tables.opt: New file.
6926 * config/c6x/c6x-opts.h: New file.
6927 * config/c6x/c6x-isas.def: New file.
6928 * config/c6x/elf.h: New file.
6929 * config/c6x/elf-common.h: New file.
6930 * config/c6x/uclinux-elf.h: New file.
6931 * config/c6x/t-c6x: New file.
6932 * config/c6x/t-c6x-elf: New file.
6933 * config/c6x/t-c6x-uclinux: New file.
6934 * config/c6x/t-c6x-softfp: New file.
6935 * config/c6x/gtd.c: New file.
6936 * config/c6x/gtf.c: New file.
6937 * config/c6x/ltd.c: New file.
6938 * config/c6x/ltf.c: New file.
6939 * config/c6x/ged.c: New file.
6940 * config/c6x/gef.c: New file.
6941 * config/c6x/led.c: New file.
6942 * config/c6x/lef.c: New file.
6943 * config/c6x/eqd.c: New file.
6944 * config/c6x/eqf.c: New file.
6945 * config/c6x/libgcc-c6xeabi.ver: New file.
6946
6947 Revert
6948 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
6949 PR rtl-optimization/11320
6950 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6951 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6952 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6953 current_sched_info->compute_jump_reg_dependencies. Record which
6954 registers are used and which registers are set by the jump.
6955 Clear deps->reg_conditional_sets after a barrier.
6956 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6957 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6958 (init_deps): Initialize reg_conditional_sets.
6959 (free_deps): Clear reg_conditional_sets.
6960 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6961 Mark registers live on entry of the fallthrough block and conditionally
6962 set as set by the jump. Mark registers live on entry of non-fallthrough
6963 blocks as used by the jump.
6964 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6965 Mark new parameters as unused.
6966
6967 2011-07-14 Andrew Pinski <pinskia@gmail.com>
6968
6969 PR tree-opt/49309
6970 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
6971 Use fold_build2_loc instead of build2.
6972 Use the correct type for the new tree.
6973
6974 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
6975
6976 PR rtl-optimization/11320
6977 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
6978 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
6979
6980 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
6981
6982 PR target/49487
6983 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
6984 of REG.
6985 (*rotw<mode>): Use const_int_operand for operand2.
6986 Use match_scatch for operand3.
6987 (*rotb<mode>): Ditto
6988 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
6989
6990 2011-07-14 Richard Guenther <rguenther@suse.de>
6991
6992 PR tree-optimization/49651
6993 * tree-ssa-structalias.c (get_constraint_for_1): Properly
6994 handle dereferences with subvariables.
6995
6996 2011-07-14 Richard Guenther <rguenther@suse.de>
6997
6998 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
6999 (fold_stmt_1): Do it here directly on gimple and as a first thing.
7000
7001 2011-07-14 Richard Guenther <rguenther@suse.de>
7002
7003 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
7004 not bool_var when folding bool_var != 1 or bool_var == 0.
7005
7006 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7007
7008 * haifa-sched.c (schedule_insns): Remove outdated comment.
7009 (schedule_block): When computing a known value for TODO_SPEC,
7010 just set it rather than using logical operations.
7011 (try_ready): Likewise. Use a local variable rather than a
7012 pointer to TODO_SPEC. Reorder an if statement to move the
7013 easy case to the then block.
7014 * sched-deps.c (dep_spec_p): New static function.
7015 (update_dep): Use it to decide whether to call
7016 change_spec_dep_to_hard.
7017 (get_back_and_forw_lists): Use it.
7018 (sd_resolve_dep): Likewise.
7019 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
7020 (haifa_note_mem_dep): Likewise.
7021 (check_dep): Likewise.
7022 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
7023 (sched_free_deps): Free in two passes.
7024
7025 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
7026
7027 PR middle-end/49736
7028 * expr.c (all_zeros_p): Undo bogus part of last change.
7029
7030 2011-07-14 Matthias Klose <doko@ubuntu.com>
7031
7032 * doc/extend.texi (optimize attribute): Fix typo.
7033
7034 2011-07-14 Richard Guenther <rguenther@suse.de>
7035
7036 * gimplify.c (gimplify_expr): Only do required conversions.
7037
7038 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
7039
7040 PR target/43746
7041 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
7042 i.e. use default_elf_select_section.
7043 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
7044 (READONLY_DATA_SECTION_ASM_OP): Remove.
7045 (TARGET_ASM_NAMED_SECTION): Move from here...
7046 * config/avr/avr.c: ...to here.
7047 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
7048 (avr_asm_named_section): Make static.
7049
7050 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7051
7052 PR bootstrap/49739
7053 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
7054 and crtfastmath.o for Linux/x86.
7055
7056 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7057
7058 * haifa-sched.c: Include "hashtab.h"
7059 (sched_no_dce): New global variable.
7060 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
7061 SHADOW_P): New macros.
7062 (last_clock_var, cycle_issued_insns): Move declarations.
7063 (must_backtrack): New static variable.
7064 (struct delay_pair): New structure.
7065 (delay_htab, delay_htab_i2): New static variables.
7066 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
7067 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
7068 functions.
7069 (dep_cost_1): If delay pairs exist, try to look up the insns and
7070 use the correct pair delay if we find them.
7071 (rank-for_schedule): Tweak priority for insns that must be scheduled
7072 soon to avoid backtracking.
7073 (queue_insn): Detect conditions which force backtracking.
7074 (ready_add): Likewise.
7075 (struct sched_block_state): Add member shadows_only_p.
7076 (struct haifa_save_data): New structure.
7077 (backtrack_queue): New static variable.
7078 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
7079 unschedule_insns_until, restore_last_backtrack_point,
7080 free_topmost_backtrack_point, free_backtrack_queue,
7081 estimate_insn_tick, estimate_shadow_tick): New functions.
7082 (prune_ready_list): New arg shadows_only_p. All callers changed.
7083 If true, remove everything that isn't SHADOW_P. Look up delay
7084 pairs and estimate ticks to avoid scheduling the first insn too early.
7085 (verify_shadows): New function.
7086 (schedule_block): Add machinery to enable backtracking.
7087 (sched_init): Take sched_no_dce into account when setting
7088 DF_LR_RUN_DCE.
7089 (free_delay_pairs): New function.
7090 (init_h_i_d): Initialize INSN_EXACT_TICK.
7091 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
7092 * sched-deps.c (sd_unresolve_dep): New function.
7093 * sched-int. (struct haifa_sched_info): New fields save_state
7094 and restore_state.
7095 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
7096 feeds_backtrack_insn and shadow_p.
7097 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
7098 (sched_no_dce): Declare variable.
7099 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
7100 sd_unresolve_dep): Declare functions.
7101 * modulo-sched.c (sms_sched_info): Clear the two new fields.
7102 * sched-rgn.c (rgn_const_sched_info): Likewise.
7103 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7104 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
7105 (ebb_sched_info): Add them for the two new fields.
7106 (add_deps_for_risky_insns): Call add_delay_dependencies.
7107
7108 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7109
7110 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
7111 Rename -mr11.
7112 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
7113 (rs6000_call_indirect_aix): Ditto.
7114 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
7115 (call_indirect_aix<ptrsize>_internal): Ditto.
7116 (call_indirect_aix<ptrsize>_nor11): Ditto.
7117 (call_indirect_aix<ptrsize>_internal2): Ditto.
7118 (call_value_indirect_aix<ptrsize>): Ditto.
7119 (call_value_indirect_aix<ptrsize>_internal): Ditto.
7120 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7121 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7122 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
7123
7124 2011-07-13 Jason Merrill <jason@redhat.com>
7125
7126 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
7127
7128 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7129
7130 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
7131 * config/spu/spu.md ("clrsb<mode>2"): New expander.
7132
7133 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
7134
7135 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
7136 * configure: Regenerate.
7137
7138 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7139
7140 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
7141 (asm_file_start): Remove.
7142 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
7143 free_bb_for_insn around code that modifies insns before
7144 restarting df analysis.
7145
7146 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7147
7148 PR target/49541
7149 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
7150 (LINK_SPEC): ... here.
7151
7152 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7153
7154 * haifa-sched.c (struct sched_block_state): New.
7155 (schedule_block): Move some local variables into such a structure.
7156
7157 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7158
7159 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
7160 * config/i386/t-crtpc: Remove.
7161 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7162 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
7163 tmake_file.
7164 (x86_64-*-darwin*): Likewise.
7165 (i[34567]86-*-linux*): Likewise.
7166 (x86_64-*-linux*): Likewise.
7167
7168 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
7169 Handle -mpc32, -mpc64, -mpc80.
7170
7171 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7172
7173 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
7174 * config/alpha/t-crtfm: Remove.
7175 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
7176 * config/i386/t-crtfm: Remove.
7177 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
7178 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
7179 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
7180 * config/sparc/t-crtfm: Remove.
7181
7182 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
7183 (alpha*-*-freebsd*): Likewise.
7184 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
7185 (x86_64-*-darwin*): Likewise.
7186 (i[34567]86-*-linux*): Likewise.
7187 (x86_64-*-linux*): Likewise.
7188 (x86_64-*-mingw*): Likewise.
7189 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
7190 (ia64*-*-freebsd*): Likewise.
7191 (ia64*-*-linux*): Likewise.
7192 (mips64*-*-linux*): Likewise.
7193 (mips*-*-linux*): Likewise.
7194 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
7195 (sparc64-*-linux*): Likewise.
7196 (sparc64-*-freebsd*): Likewise.
7197
7198 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7199
7200 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
7201 * config/darwin-crt3.c: Move to ../libgcc/config.
7202 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7203 ($(T)crt3$(objext)): Remove.
7204 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
7205 ($(T)crt2$(objext)): Remove.
7206 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
7207 (powerpc64-*-darwin*): Likewise.
7208
7209 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7210
7211 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
7212
7213 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
7214 (addsi_1_zext): This.
7215
7216 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7217
7218 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
7219 * doc/tm.texi: Regenerate.
7220 * target.def (mergeable_rodata_prefix): New defhookpod.
7221 * varasm.c (mergeable_string_section, mergeable_constant_section):
7222 Use it. Allocate name with alloca.
7223
7224 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7225
7226 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7227
7228 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7229
7230 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7231 overlap check.
7232
7233 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7234
7235 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
7236 (count_type_elements): Delete.
7237 (complete_ctor_at_level_p): Declare.
7238 * expr.c (flexible_array_member_p): New function, split out from...
7239 (count_type_elements): ...here. Make static. Replace allow_flexarr
7240 parameter with for_ctor_p. When for_ctor_p is true, return the
7241 number of elements that should appear in the top-level constructor,
7242 otherwise return an estimate of the number of scalars.
7243 (categorize_ctor_elements): Replace p_must_clear with p_complete.
7244 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
7245 (complete_ctor_at_level_p): New function, borrowing union logic
7246 from old categorize_ctor_elements_1.
7247 (mostly_zeros_p): Return true if the constructor is not complete.
7248 (all_zeros_p): Update call to categorize_ctor_elements.
7249 * gimplify.c (gimplify_init_constructor): Update call to
7250 categorize_ctor_elements. Don't call count_type_elements.
7251 Unconditionally prevent clearing for variable-sized types,
7252 otherwise rely on categorize_ctor_elements to detect
7253 incomplete initializers.
7254
7255 2011-07-13 Richard Guenther <rguenther@suse.de>
7256
7257 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7258 the final type is integral.
7259
7260 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7261
7262 * sched-int.h (struct _dep): Add member cost.
7263 (DEP_COST, UNKNOWN_DEP_COST): New macros.
7264 * sched-deps.c (init_dep_1): Initialize DEP_COST.
7265 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7266 (sched_change_pattern): Reset it for dependent insns.
7267
7268 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7269
7270 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7271 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7272 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7273 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7274 (CRT0_S, MCRT0_S): Remove.
7275 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7276 Remove.
7277 (s-crt0): Remove.
7278 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7279
7280 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7281
7282 * cse.c (insert_with_costs): Put semi-colon after empty loop body
7283 on the next line.
7284 * emit-rtl.c (push_to_sequence): Likewise.
7285 * haifa-sched.c (max_issue): Likewise.
7286 * matrix-reorg.c (add_allocation_site): Likewise.
7287 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7288 * reload.c (alternative_allows_const_pool_ref): Likewise.
7289 * sched-rgn.c (rgn_add_block): Likewise.
7290 (rgn_fix_recovery_cfg): Likewise.
7291 * tree.c (attribute_list_contained): Likewise.
7292
7293 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
7294
7295 * config/i386/i386.c: Tidy processor feature bitmasks.
7296 (m_P4_NOCONA): New.
7297
7298 2011-07-12 Andrew Pinski <pinskia@gmail.com>
7299
7300 PR rtl-opt/49474
7301 * cprop.c (find_implicit_sets): Correct the condition.
7302
7303 2011-07-12 Richard Henderson <rth@redhat.com>
7304
7305 PR target/49713
7306 * dwarf2out.h (dwarf_frame_regnum): Remove.
7307 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
7308 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
7309 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
7310 (execute_dwarf2_frame): Initialize them.
7311 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
7312 users of the macros with the variables.
7313 (expand_builtin_dwarf_sp_column): Revert last change.
7314 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
7315 result of DWARF_FRAME_REGNUM into a local variable.
7316
7317 2011-07-12 Richard Henderson <rth@redhat.com>
7318
7319 PR target/49714
7320 * config/i386/i386.c (x86_output_mi_thunk): Use
7321 machopic_indirect_call_target instead of machopic_indirection_name
7322 directly.
7323
7324 2011-07-12 Laurent GUERBY <laurent@guerby.net>
7325 Eric Botcazou <ebotcazou@adacore.com>
7326
7327 * prefix.h: Wrap up in extern "C" block.
7328
7329 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
7330
7331 AMD bdver2 Enablement
7332 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
7333 (case ${target}): Add bdver2.
7334 * config/i386/driver-i386.c (host_detect_local_cpu): Let
7335 -march=native recognize bdver2 processors.
7336 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7337 bdver2 def_and_undef
7338 * config/i386/i386.c (struct processor_costs bdver2_cost): New
7339 bdver2 cost table.
7340 (m_BDVER2): New definition.
7341 (m_AMD_MULTIPLE): Includes m_BDVER2.
7342 (initial_ix86_tune_features): Add bdver2 tuning.
7343 (processor_target_table): Add bdver2 entry.
7344 (static const char *const cpu_names): Add bdver2 entry.
7345 (ix86_option_override_internal): Add bdver2 instruction sets.
7346 (ix86_issue_rate): Add bdver2.
7347 (ix86_adjust_cost): Add bdver2.
7348 (has_dispatch): Add bdver2.
7349 * config/i386/i386.h (TARGET_BDVER2): New definition.
7350 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
7351 (enum processor_type): Add PROCESSOR_BDVER2.
7352 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
7353 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
7354 description.
7355
7356 2011-07-12 Richard Henderson <rth@redhat.com>
7357
7358 PR target/49714
7359 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
7360 destination address in memory on some paths.
7361
7362 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
7363
7364 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
7365 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
7366 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
7367 * function.c (locate_and_pad_parm): Take it into account.
7368 * target.def (function_arg_round_boundary): New hook.
7369 * targhooks.c (default_function_arg_round_boundary): New function.
7370 * targhooks.h (default_function_arg_round_boundary): Declare.
7371 * doc/tm.texi: Regenerate.
7372
7373 2011-07-12 Richard Guenther <rguenther@suse.de>
7374
7375 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
7376 Do not perform no-op changes.
7377
7378 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
7379
7380 * config/arm/predicates.md (neon_struct_operand): Make a normal
7381 predicate.
7382 (neon_struct_or_register_operand): New predicate.
7383 * config/arm/neon.md (movmisalign<mode>): Replace predicates
7384 with neon_struct_or_register_operand.
7385 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
7386 neon_struct_operand instead of memory_operand.
7387
7388 2011-07-12 Martin Jambor <mjambor@suse.cz>
7389
7390 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
7391 * cgraph.c (cgraph_get_node_or_alias): Removed.
7392 (change_decl_assembler_name): Changed all calls to
7393 cgraph_get_node_or_alias to a call to cgraph_get_node.
7394 (cgraph_make_decl_local): Likewise.
7395 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
7396 * varasm.c (default_binds_local_p_1): Likewise.
7397 (decl_binds_to_current_def_p): Likewise.
7398
7399 2011-07-12 Jakub Jelinek <jakub@redhat.com>
7400
7401 PR tree-optimization/49712
7402 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
7403
7404 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
7405
7406 * genautomata.c (add_arc): Return void. All callers changed.
7407 (make_automaton): Remove dead code.
7408
7409 2011-07-11 Richard Henderson <rth@redhat.com>
7410
7411 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
7412 (DW_FRAME_POINTER_REGNUM): New.
7413 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
7414 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
7415 (dwf_regno): New.
7416 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
7417 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
7418 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
7419 Use it.
7420 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
7421 * dwarf2out.h (dwarf_frame_regnum): New.
7422 (struct cfa_loc): Document the domain of the reg member.
7423
7424 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
7425
7426 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
7427 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
7428
7429 2011-07-11 Jakub Jelinek <jakub@redhat.com>
7430
7431 PR debug/49676
7432 * dwarf2out.c (int_shift_loc_descriptor): New function.
7433 (int_loc_descriptor): If shorter, emit i as
7434 (i >> shift), shift, DW_OP_shl for suitable shift value.
7435 Similarly, try to optimize large negative values using
7436 DW_OP_neg of a positive value if shorter.
7437 (size_of_int_shift_loc_descriptor): New function.
7438 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
7439 changes.
7440 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
7441 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
7442 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
7443 is shorter.
7444 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
7445 addend as added DW_OP_plus if it is shorter.
7446
7447 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7448
7449 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
7450 (DTORS_SECTION_ASM_OP): Define.
7451
7452 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7453
7454 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
7455 * config/t-dfprules: Move to ../libgcc/config.
7456 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7457 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7458 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
7459 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
7460 Likewise.
7461 (i[34567]86-*-cygwin*): Likewise.
7462 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7463 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
7464 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
7465 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
7466 D64PBIT_FUNCS, D128PBIT_FUNCS.
7467
7468 2011-07-11 Richard Guenther <rguenther@suse.de>
7469
7470 * tree-vrp.c (simplify_conversion_using_ranges): Manually
7471 translate the source value-range through the conversion chain.
7472
7473 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
7474
7475 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
7476
7477 2011-07-11 Arthur Loiret <aloiret@debian.org>
7478
7479 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
7480 a bi-arch compiler defaulting to 31-bit. In this case:
7481 (tmake_file): Add s390/t-linux64.
7482 * doc/install.texi: Add s390-linux to the list of targets supporting
7483 --enable-targets=all.
7484
7485 2011-07-11 Arthur Loiret <aloiret@debian.org>
7486 Matthias Klose <doko@debian.org>
7487
7488 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
7489 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
7490 (tm_file): Add mips/linux64.h.
7491 (tmake_file): Add mips/t-linux64.
7492 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7493 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
7494 instead of hardcoded mabi=n32.
7495 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7496 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7497 convention.
7498
7499 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7500
7501 * passes.c (init_optimization_passes): Add invariant motion pass
7502 after induction variable optimization.
7503
7504 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
7505
7506 PR target/39633
7507 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
7508 offsets 1..5 set cc0 in a usable way.
7509
7510 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
7511
7512 * tree.h (call_expr_arg): Remove.
7513 (call_expr_argp): Likewise.
7514
7515 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
7516
7517 * config/sparc/sparc.md (save_register_window_1): Rename to...
7518 (window_save): ...this.
7519 * config/sparc/sparc.c (emit_save_register_window): Rename to...
7520 (emit_window_save): ...this.
7521 (sparc_expand_prologue): Adjust to above renaming.
7522
7523 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7524
7525 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
7526 of movabs for x32.
7527
7528 2011-07-10 Richard Henderson <rth@redhat.com>
7529
7530 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7531 run final, instead of emitting text directly.
7532
7533 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7534
7535 * config/i386/i386.c (ix86_option_override_internal): Turn on
7536 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
7537 small PIC models for TARGET_X32.
7538
7539 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
7540
7541 PR target/49684
7542 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7543 $(LIBGCC2_CFLAGS).
7544
7545 PR bootstrap/49680
7546 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7547 stray notes and debug insns by using prev_nonnote_nondebug_insn
7548 instead of PREV_INSN.
7549
7550 2011-07-09 Richard Henderson <rth@redhat.com>
7551
7552 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7553 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7554 * dwarf2out.c: ... here.
7555 (output_all_cfis): Remove.
7556 (dwarf2out_switch_text_section): Use output_cfis directly.
7557 (size_of_locs): Export.
7558 (output_loc_sequence, output_loc_sequence_raw): Export.
7559 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7560 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7561 output_cfa_loc_raw): Move to ...
7562 * dwarfcfi.c: ... here.
7563 * dwarf2out.h: Update decls.
7564
7565 2011-07-09 Richard Henderson <rth@redhat.com>
7566
7567 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7568 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7569 * dwarf2cfi.c: ... here.
7570 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7571 (DWARF_ROUND, DWARF_CIE_ID): Remove.
7572 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7573 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7574 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7575
7576 2011-07-09 Richard Henderson <rth@redhat.com>
7577
7578 * dwarf2cfi.c (cie_return_save): New.
7579 (queue_reg_save): Use compare_reg_or_pc.
7580 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7581 (dwarf2out_frame_debug_expr): Likewise.
7582 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7583 (initial_return_save): Likewise.
7584 (execute_dwarf2_frame): Save and restore initial return save from
7585 the cie to the fde.
7586 * config/mips/mips.c (mips_frame_set): Remove special case for
7587 DWARF_FRAME_RETURN_COLUMN.
7588
7589 2011-07-09 Richard Henderson <rth@redhat.com>
7590
7591 * dwarf2cfi.c (lookup_cfa): Remove.
7592 (execute_dwarf2_frame): Assert queues are empty on entry.
7593 Setup initial cfa directly, not via lookup_cfa.
7594 Don't clear args_size state here.
7595
7596 2011-07-09 Richard Henderson <rth@redhat.com>
7597
7598 * dwarf2cfi.c (add_cfi_vec): New.
7599 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
7600 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
7601 (execute_dwarf2_frame): Set add_cfi_vec.
7602
7603 2011-07-09 Richard Henderson <rth@redhat.com>
7604
7605 * defaults.h (ASM_COMMENT_START): Move here...
7606 * dwarf2asm.c: ... from here.
7607 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7608 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7609 * varasm.c: Likewise.
7610
7611 2011-07-09 Richard Henderson <rth@redhat.com>
7612
7613 PR debug/49686
7614 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7615 (create_cfi_notes): ... do it here instead.
7616
7617 2011-07-09 Jakub Jelinek <jakub@redhat.com>
7618
7619 PR debug/49676
7620 * dwarf2out.c (size_of_int_loc_descriptor): New function.
7621 (address_of_int_loc_descriptor): Use it.
7622 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7623
7624 2011-07-09 Richard Henderson <rth@redhat.com>
7625
7626 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7627 (prologue, epilogue): New.
7628 (return, *rts): New.
7629 (blockage, setd, seti): New.
7630 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7631 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7632 (pdp11_saved_regno): New.
7633 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7634 generate rtl instead of text.
7635 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7636 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
7637 * config/pdp11/pdp11-protos.h: Update.
7638
7639 2011-07-09 Richard Henderson <rth@redhat.com>
7640
7641 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7642 try to insert an rtl prologue here.
7643 (rs6000_output_function_epilogue): Similarly.
7644 * config/rs6000/rs6000.md (prologue): Emit a barrier to
7645 satisfy !TARGET_SCHED_PROLOG.
7646 (epilogue, sibcall_epilogue): Likewise.
7647
7648 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
7649
7650 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7651 (FP_REG_P): Delete.
7652 (IN_OR_GLOBAL_P): Likewise.
7653
7654 2011-07-08 Jason Merrill <jason@redhat.com>
7655
7656 PR c++/45437
7657 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7658 compound assignment.
7659
7660 * cgraph.c (cgraph_add_to_same_comdat_group): New.
7661 * cgraph.h: Declare it.
7662 * ipa.c (function_and_variable_visibility): Make sure thunks
7663 have the right visibility.
7664
7665 2011-07-08 Richard Henderson <rth@redhat.com>
7666
7667 PR bootstrap/49680
7668 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7669 any tablejump vector.
7670
7671 PR bootstrap/49680
7672 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7673 end of the prologue.
7674
7675 2011-07-08 Jakub Jelinek <jakub@redhat.com>
7676
7677 PR target/49621
7678 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7679 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7680 * config/rs6000/vector.md (vector_select_<mode>,
7681 vector_select_<mode>_uns): Change second operand of NE to
7682 CONST0_RTX (<MODE>mode) instead of const0_rtx.
7683 * config/rs6000/altivec.md (*altivec_vsel<mode>,
7684 *altivec_vsel<mode>_uns): Expect second operand of NE to be
7685 zero_constant of the corresponding vector mode.
7686 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7687 Likewise.
7688
7689 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
7690
7691 * graphite-dependences.c (build_alias_set_powerset): Remove
7692 continue from loop, add one more assert.
7693
7694 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
7695
7696 PR target/46779
7697 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7698 In particular, allow 8-bit values in r28 and r29.
7699 (avr_hard_regno_scratch_ok): Disallow any register that might be
7700 part of the frame pointer.
7701 (avr_hard_regno_rename_ok): Same.
7702 (avr_legitimate_address_p): Don't allow SUBREGs.
7703
7704 2011-07-08 Julian Brown <julian@codesourcery.com>
7705
7706 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7707 big-endian mode.
7708 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7709 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7710 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7711 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7712 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7713 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7714 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7715 registers in big-endian mode.
7716
7717 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
7718
7719 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7720 in terms of another.
7721 (write_attr_value): Write a cast if necessary.
7722
7723 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7724 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7725 (REG_WORDS_BIG_ENDIAN): Document.
7726 * doc/tm.texi: Regenerate.
7727 * reload.c (operands_match_p): Take it into account.
7728 (reload_adjust_reg_for_mode): Likewise.
7729 * rtlanal.c (subreg_get_info): Likewise.
7730
7731 2011-07-08 Richard Guenther <rguenther@suse.de>
7732
7733 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7734 folding.
7735
7736 2011-07-08 Kai Tietz <ktietz@redhat.com>
7737
7738 * fold-const.c (fold_truth_andor): Factored out truth_andor
7739 label from fold_binary as function.
7740 (fold_binary_loc): Replace truth_andor lable
7741 by function fold_truth_andor.
7742
7743 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
7744
7745 PR middle-end/49519
7746 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7747 check if address is stored in register. If so - give up.
7748 (check_sibcall_argument_overlap_1): Do not perform check of
7749 overlapping when it is call to address.
7750
7751 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
7752
7753 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
7754 of magic '31'.
7755
7756 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
7757
7758 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
7759 GET_MODE_BITSIZE where appropriate.
7760 (widen_leading, expand_parity, expand_ctz, expand_ffs,
7761 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
7762 expand_float, expand_fix): Likewise.
7763 * expr.c (convert_move, convert_modes, expand_expr_real_2,
7764 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7765 * stor-layout.c (get_mode_bounds): Likewise.
7766 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
7767 Likewise.
7768 * convert.c (convert_to_integer): Likewise.
7769 * expmed.c (expand_shift_1): Likewise.
7770
7771 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
7772 a bitsize.
7773
7774 * optabs.c (expand_binop): Tighten conditions for doubleword
7775 expansions.
7776 (widen_bswap): Assert that mode bitsize and precision are the same.
7777 * stor-layout.c (get_best_mode): Skip modes that have lower
7778 precision than bitsize.
7779 * recog.c (simplify_while_replacing): Assert that bitsize and
7780 precision are the same.
7781
7782 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7783
7784 * Makefile.in (LIBGCOV): Remove.
7785 (libgcc.mvars): Remove LIBGCOV.
7786 * libgov.c: Move to ../libgcc.
7787
7788 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7789
7790 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
7791
7792 2011-07-08 Martin Jambor <mjambor@suse.cz>
7793
7794 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
7795 is too big for total scalarization.
7796
7797 2011-07-07 Richard Henderson <rth@redhat.com>
7798
7799 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
7800 (DBX_DEBUGGING_INFO): Undef.
7801
7802 2011-07-07 Richard Henderson <rth@redhat.com>
7803
7804 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
7805 Handle some opcodes specially for debugging.
7806 * print-rtl.c: Include dwarf2out.h
7807 (print_rtx): Handle NOTE_INSN_CFI.
7808 * Makefile.in (print-rtl.o): Update.
7809
7810 2011-07-07 Richard Henderson <rth@redhat.com>
7811
7812 * tree-pass.h (pass_dwarf2_frame): Declare.
7813 * passes.c (init_optimization_passes): Add it.
7814 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
7815 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
7816 make static, do not call add_cfis_to_fde.
7817 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7818 dwarf2out_frame_init): Merge into...
7819 (execute_dwarf2_frame): ... here. New function.
7820 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
7821 saved_do_cfi_asm to a tri-state variable.
7822 (gate_dwarf2_frame, pass_dwarf2_frame): New.
7823 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7824 if it has yet to be done. Don't call dwarf2cfi_function_init.
7825 * dwarf2out.h, debug.h: Update decls.
7826 * final.c (final_start_function): Don't call
7827 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7828 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7829 * toplev.c (lang_dependent_init): Likewise.
7830
7831 2011-07-07 Richard Henderson <rth@redhat.com>
7832
7833 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7834 FDE_TABLE_INCREMENT): Replace with...
7835 (fde_vec): ... this, a new vector.
7836 (current_fde): Remove. Replace all users with cfun->fde.
7837 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7838 (size_of_aranges, dwarf2out_finish): Likewise.
7839 (dwarf2out_alloc_current_fde): Break out from ...
7840 (dwarf2out_begin_prologue): ... here.
7841 (dwarf2out_frame_init): Remove.
7842 * dwarf2cfi.c: Update all users of current_fde.
7843 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7844 * dwarf2out.h: Update decls.
7845 (dw_fde_node): Add fde_index member.
7846 * function.h (struct function): Add fde member.
7847
7848 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7849 Richard Henderson <rth@redhat.com>
7850
7851 * dwarf2cfi.c (add_cfi): Remove.
7852 (dwarf2out_cfi_label): Remove force argument. Only generate the
7853 label name.
7854 (add_fde_cfi): Simplify the different code paths.
7855 (add_cie_cfi): New.
7856 (old_cfa, old_cfa_remember): New.
7857 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7858 (last_reg_save_label): Remove.
7859 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7860 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7861 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7862 dwarf2out_frame_debug_cfa_expression,
7863 dwarf2out_frame_debug_cfa_restore,
7864 dwarf2out_frame_debug_cfa_window_save,
7865 dwarf2out_frame_debug_expr): Remove label parameter.
7866 (cfi_label_required_p, add_cfis_to_fde): New.
7867 (dwarf2out_frame_debug_after_prologue): New.
7868 (dwarf2cfi_frame_init): Initialize old_cfa.
7869 (dwarf2out_frame_debug_restore_state): Likewise.
7870 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7871 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7872 * final.c (final_start_function): Call
7873 dwarf2out_frame_debug_after_prologue.
7874
7875 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7876 Richard Henderson <rth@redhat.com>
7877
7878 * dwarf2cfi.c (cfi_insn): New.
7879 (dwarf2out_cfi_label): Don't emit cfi label here.
7880 (add_fde_cfi): Create a NOTE_INSN_CFI.
7881 (dwarf2out_frame_debug): Setup cfi_insn.
7882 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7883 (dwarf2out_cfi_begin_epilogue): Make static.
7884 (dwarf2out_frame_debug_restore_state): Make static.
7885 * dwarf2out.c (output_cfi_directive): Make static.
7886 (dwarf2out_emit_cfi): New.
7887 * dwarf2out.h: Update.
7888 * final.c (final): Remove CFI notes.
7889 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7890 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7891 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7892 * insn-notes.def (NOTE_INSN_CFI): New.
7893 (NOTE_INSN_CFI_LABEL): New.
7894 * rtl.h (union rtunion_def): Add rt_cfi member.
7895 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7896
7897 2011-07-07 Richard Henderson <rth@redhat.com>
7898
7899 * dwarf2cfi.c: New file.
7900 * Makefile.in (OBJS): Add it.
7901 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7902 * gengtype.c (open_base_files): Include dwarf2out.h.
7903 * coretypes.h (enum var_init_status): Move from ...
7904 * rtl.h: ... here.
7905 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
7906 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
7907 expand_builtin_dwarf_sp_column, init_return_column_size,
7908 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
7909 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
7910 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
7911 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
7912 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
7913 compute_barrier_args_size, dwarf2out_args_size,
7914 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
7915 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
7916 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
7917 queue_reg_save, dwarf2out_flush_queued_reg_saves,
7918 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
7919 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7920 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7921 dwarf2out_frame_debug_cfa_expression,
7922 dwarf2out_frame_debug_cfa_restore,
7923 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
7924 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
7925 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
7926 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
7927 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
7928 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
7929 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
7930 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
7931 dw_loc_descr_node): Move to dwarf2out.h.
7932 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
7933 mem_loc_descriptor): Export.
7934 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
7935 (dwarf2out_frame_init): Extract CIE generation code to
7936 dwarf2cfi_frame_init.
7937
7938 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
7939
7940 PR target/49660
7941 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
7942 MASK_V8PLUS, remove commented out flag and reorder.
7943
7944 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7945
7946 PR c/49644
7947 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
7948 one non-complex and one complex argument, call c_save_expr on both
7949 operands.
7950
7951 2011-07-07 Martin Jambor <mjambor@suse.cz>
7952
7953 PR middle-end/49495
7954 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
7955 (verify_cgraph_node): Some functinality moved to
7956 verify_edge_corresponds_to_fndecl, call it.
7957
7958 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7959
7960 * config.gcc (*local*): Remove.
7961 * doc/install-old.texi: Don't mention local configurations.
7962
7963 2011-07-07 Jakub Jelinek <jakub@redhat.com>
7964
7965 PR debug/49522
7966 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
7967 referencing debug insns that have been reset.
7968 (dead_debug_insert_before): Don't assert reg is non-NULL,
7969 instead return immediately if it is NULL.
7970
7971 2011-07-07 Joseph Myers <joseph@codesourcery.com>
7972
7973 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
7974
7975 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7976
7977 * hw-doloop.c: New file.
7978 * hw-doloop.h: New file.
7979 * Makefile.in (OBJS): Add hw-doloop.o.
7980 (hw-doloop.o): New rule.
7981 ($(obj_out_file)): Add hw-doloop.h dependency.
7982 * config/bfin/bfin.c: Include "hw-doloop.h".
7983 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
7984 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
7985 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
7986 type changed to hwloop_info. Return bool, true if the loop was
7987 successfully optimized. Remove code that was moved to
7988 hw-doloop.c, and adjust other parts.
7989 (hwloop_fail): New static function, containing parts that used
7990 to be in bfin_optimize_loop.
7991 (bfin_discover_loop, bfin_discover_loops, free_loops,
7992 bfin_reorder_loops): Remove.
7993 (hwloop_pattern_reg): New static function.
7994 (bfin_doloop_hooks): New variable.
7995 (bfin_reorg_loops): Remove most code, call reorg_loops.
7996 * config/bfin/bfin.md (doloop_end splitter): Also enable if
7997 loop counter is a memory_operand.
7998
7999 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
8000
8001 * config.gcc: Support --with-multilib-list for x86 Linux targets.
8002
8003 * configure.ac: Mention x86-64 for --with-multilib-list.
8004 * configure: Regenerated.
8005
8006 * config/i386/gnu-user64.h (SPEC_64): Support x32.
8007 (SPEC_32): Likewise.
8008 (ASM_SPEC): Likewise.
8009 (LINK_SPEC): Likewise.
8010 (TARGET_THREAD_SSP_OFFSET): Likewise.
8011 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
8012 (SPEC_X32): New.
8013
8014 * config/i386/i386.h (TARGET_X32): New.
8015 (TARGET_LP64): New.
8016 (LONG_TYPE_SIZE): Likewise.
8017 (POINTER_SIZE): Likewise.
8018 (POINTERS_EXTEND_UNSIGNED): Likewise.
8019 (OPT_ARCH64): Support x32.
8020 (OPT_ARCH32): Likewise.
8021
8022 * config/i386/i386.opt (mx32): New.
8023
8024 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
8025 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8026 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
8027 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8028
8029 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
8030 (BIONIC_DYNAMIC_LINKERX32): Likewise.
8031 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
8032
8033 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
8034
8035 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
8036
8037 * doc/invoke.texi: Document -mx32.
8038
8039 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8040
8041 * doc/invoke.texi (mwords-little-endian): Deprecate.
8042 * config/arm/arm.opt (mwords-little-endian): Likewise.
8043 * config/arm/arm.c (arm_option_override): Warn about the deprecation
8044 of -mwords-little-endian.
8045
8046 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8047
8048 * reload1.c (choose_reload_regs): Use mode sizes to check whether
8049 an old reload register completely defines the required value.
8050
8051 2011-07-07 Richard Guenther <rguenther@suse.de>
8052
8053 * fold-const.c (fold_unary_loc): Do not strip sign-changes
8054 for NEGATE_EXPR.
8055
8056 2011-07-07 Richard Guenther <rguenther@suse.de>
8057
8058 * tree-vrp.c (simplify_conversion_using_ranges): New function.
8059 (simplify_stmt_using_ranges): Call it.
8060
8061 2011-07-07 Kai Tietz <ktietz@redhat.com>
8062
8063 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
8064 (lookup_logical_inverted_value): Likewise.
8065 (simplify_bitwise_binary_1): Likewise.
8066 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
8067
8068 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8069
8070 * gcc.c (%[Spec]): Don't document.
8071 (struct spec_list): Update comment.
8072 (do_spec_1): Don't handle %[Spec].
8073 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
8074
8075 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8076
8077 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
8078 default based on TARGET_ASM_NAMED_SECTION.
8079 * common/common-target.def (have_named_sections): Default to true.
8080 * common/config/default-common.c: Don't include tm.h.
8081 * common/config/picochip/picochip-common.c
8082 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
8083 * common/config/m32c/m32c-common.c: Remove.
8084 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
8085 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8086 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8087 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8088 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8089 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8090 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8091
8092 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8093
8094 PR middle-end/49640
8095 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
8096 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
8097
8098 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8099
8100 PR libmudflap/49550
8101 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
8102
8103 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8104
8105 PR target/39150
8106 * configure.ac (gcc_cv_as_hidden): Also accept
8107 x86_64-*-solaris2.1[0-9]*.
8108 (gcc_cv_as_cfi_directive): Likewise.
8109 (gcc_cv_as_comdat_group_group): Likewise.
8110 (set_have_as_tls): Likewise.
8111 * configure: Regenerate.
8112 * config.gcc (i[34567]86-*-solaris2*): Also handle
8113 x86_64-*-solaris2.1[0-9]*.
8114 * config.host (i[34567]86-*-solaris2*): Likewise.
8115 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
8116 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
8117 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
8118 (TARGET_LD_EMULATION): Use it.
8119 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
8120 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
8121 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
8122 (ASM_CPU64_DEFAULT_SPEC): Define.
8123 (ASM_CPU_SPEC): Use %(asm_cpu_default).
8124 (ASM_SPEC): Redefine.
8125 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
8126 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
8127 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
8128 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
8129 configuration.
8130 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
8131
8132 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8133
8134 * config/sol2.h (ASM_SPEC): Split into ...
8135 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
8136 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
8137 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
8138 (ASM_SPEC): Use ASM_SPEC_BASE.
8139 * config/sparc/sol2.h (ASM_SPEC): Redefine.
8140
8141 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
8142
8143 * config/avr/avr.md (*reload_insi): Change predicate #1 to
8144 const_int_operand. Ditto for peep2 producing this insn.
8145 Add argument to output_reload_insisf call.
8146 (*movsi,*movsf): Add argument to output_movsisf call.
8147 (*reload_insf): New insn and new peep2 to produce it.
8148 * config/avr/avr-protos.h (output_movsisf): Change prototype.
8149 (output_reload_insisf): Change prototype.
8150 * config/avr/avr.c (avr_asm_len): New function.
8151 (output_reload_insisf): Rewrite.
8152 (output_movsisf): Change prototype. output_reload_insisf for
8153 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
8154 (adjust_insn_length): Add argument to output_movsisf and
8155 output_reload_insisf call.
8156
8157 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8158
8159 * emit-rtl.c (paradoxical_subreg_p): New function.
8160 * rtl.h (paradoxical_subreg_p): Declare.
8161 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
8162 apply_distributive_law, simplify_comparison, simplify_set): Use it.
8163 * cse.c (record_jump_cond, cse_insn): Likewise.
8164 * expr.c (force_operand): Likewise.
8165 * rtlanal.c (num_sign_bit_copies1): Likewise.
8166 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
8167 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
8168 (push_reload): Use precision to check for paradoxical subregs.
8169 * expmed.c (extract_bit_field_1): Likewise.
8170
8171 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
8172 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
8173 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
8174 simplify_set, simplify_logical, expand_compound_operation,
8175 make_extraction, force_to_mode, if_then_else_cond, extended_count,
8176 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
8177 record_value_for_reg): Likewise.
8178 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
8179 * simplify-rtx. c (simplify_unary_operation_1,
8180 simplify_binary_operation_1, simplify_const_relational_operation):
8181 Likewise.
8182
8183 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
8184 instead of GET_MODE_BITSIZE where appropriate.
8185 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
8186 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
8187 init_num_sign_bit_copies_in_rep): Likewise.
8188 * cse.c (fold_rtx, cse_insn): Likewise.
8189 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
8190 * simplify-rtx.c (simplify_unary_operation_1,
8191 simplify_const_unary_operation, simplify_binary_operation_1,
8192 simplify_const_binary_operation, simplify_ternary_operation,
8193 simplify_const_relational_operation, simplify_subreg): Likewise.
8194 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
8195 simplify_if_then_else, simplify_set, expand_compound_operation,
8196 expand_field_assignment, make_extraction, if_then_else_cond,
8197 make_compound_operation, force_to_mode, make_field_assignment,
8198 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
8199 extended_count, try_widen_shift_mode, simplify_shift_const_1,
8200 simplify_comparison, record_promoted_value, simplify_compare_const,
8201 record_dead_and_set_regs_1): Likewise.
8202
8203 Revert:
8204 * simplify-rtx.c (simplify_const_binary_operation): Use the
8205 shift_truncation_mask hook instead of performing modulo by width.
8206 Compare against mode precision, not bitsize.
8207 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8208 Use shift_truncation_mask instead of constructing the value manually.
8209
8210 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8211
8212 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
8213 declaration.
8214 (rs6000_save_toc_in_prologue_p): Ditto.
8215
8216 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
8217 up the static chain (r11) during indirect function calls.
8218 (-msave-toc-indirect): New undocumented debug switch.
8219
8220 * config/rs6000/rs6000.c (struct machine_function): Add
8221 save_toc_in_prologue field to note whether the prologue needs to
8222 save the TOC value in the reserved stack location.
8223 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
8224 to save the TOC in the prologue, do so.
8225 (rs6000_trampoline_init): Don't allow creating AIX style
8226 trampolines if -mno-r11 is in effect.
8227 (rs6000_call_indirect_aix): New function to create AIX style
8228 indirect calls, adding support for -mno-r11 to suppress loading
8229 the static chain, and saving the TOC in the prologue instead of
8230 the call body.
8231 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8232 TOC in the prologue.
8233
8234 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8235 register numbers.
8236 (TOC_REGNUM): Ditto.
8237 (STATIC_CHAIN_REGNUM): Ditto.
8238 (ARG_POINTER_REGNUM): Ditto.
8239 (SFP_REGNO): Delete, unused.
8240 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8241 function descriptor offsets.
8242 (TOC_SAVE_OFFSET_64BIT): Ditto.
8243 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8244 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8245 (AIX_FUNC_DESC_SC_32BIT): Ditto.
8246 (AIX_FUNC_DESC_SC_64BIT): Ditto.
8247 (ptrload): New mode attribute for the appropriate load of a pointer.
8248 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8249 (call_indirect_aix64): Ditto.
8250 (call_value_indirect_aix32): Ditto.
8251 (call_value_indirect_aix64): Ditto.
8252 (call_indirect_nonlocal_aix32_internal): Ditto.
8253 (call_indirect_nonlocal_aix32): Ditto.
8254 (call_indirect_nonlocal_aix64_internal): Ditto.
8255 (call_indirect_nonlocal_aix64): Ditto.
8256 (call): Rewrite AIX indirect function calls. Add support for
8257 eliminating the static chain, and for moving the save of the TOC
8258 to the function prologue.
8259 (call_value): Ditto.
8260 (call_indirect_aix<ptrsize>): Ditto.
8261 (call_indirect_aix<ptrsize>_internal): Ditto.
8262 (call_indirect_aix<ptrsize>_internal2): Ditto.
8263 (call_indirect_aix<ptrsize>_nor11): Ditto.
8264 (call_value_indirect_aix<ptrsize>): Ditto.
8265 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8266 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8267 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8268 (call_nonlocal_aix32): Relocate in the rs6000.md file.
8269 (call_nonlocal_aix64): Ditto.
8270
8271 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8272 -mno-r11 documentation.
8273
8274 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8275
8276 PR other/49658
8277 * doc/extend.texi (Compound Literals): Fix typo.
8278
8279 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
8280
8281 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8282
8283 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
8284
8285 * configure.ac (plugin-version.h): Generate
8286 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8287 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8288 macros.
8289
8290 * configure: Regenerate.
8291
8292 * doc/plugins.texi (Building GCC plugins): Mention
8293 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8294
8295 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8296
8297 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8298 * combine.c (make_extraction, gen_lowpart_or_truncate,
8299 apply_distributive_law, simplify_comparison,
8300 reg_truncated_to_mode, record_truncated_value): Use it.
8301 * cse.c (notreg_cost): Likewise.
8302 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8303 * expr.c (convert_move, convert_modes): Likewise.
8304 * optabs.c (expand_binop, expand_unop): Likewise.
8305 * postreload.c (move2add_last_label): Likewise.
8306 * regmove.c (optimize_reg_copy_3): Likewise.
8307 * rtlhooks.c (gen_lowpart_general): Likewise.
8308 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8309
8310 2011-07-06 Joseph Myers <joseph@codesourcery.com>
8311
8312 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
8313
8314 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8315
8316 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
8317 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
8318 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
8319 (simplify_const_unary_operation, simplify_binary_operation_1,
8320 simplify_const_binary_operation, simplify_const_relational_operation):
8321 Use them. Use GET_MODE_MASK for masking and sign-extensions.
8322 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
8323 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
8324 simplify_shift_const_1, simplify_comparison): Likewise.
8325 * expr.c (convert_modes): Likewise.
8326 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
8327 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
8328 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
8329
8330 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
8331
8332 2011-07-06 Richard Guenther <rguenther@suse.de>
8333
8334 PR tree-optimization/49645
8335 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
8336 register variables.
8337 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
8338 in type qualification here ...
8339 (copy_reference_ops_from_ref): ... not here.
8340 (vn_reference_lookup_3): ... or here.
8341 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
8342 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
8343
8344 2011-07-06 Ian Lance Taylor <iant@google.com>
8345
8346 * doc/install.texi (Configuration): It's
8347 --enable-gnu-indirect-function, not --enable-indirect-function.
8348
8349 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8350
8351 * simplify-rtx.c (simplify_const_binary_operation): Use the
8352 shift_truncation_mask hook instead of performing modulo by width.
8353 Compare against mode precision, not bitsize.
8354 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8355 Use shift_truncation_mask instead of constructing the value manually.
8356
8357 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
8358
8359 PR middle-end/47383
8360 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
8361 address computation and convert to address_mode if needed.
8362
8363 2011-07-06 Richard Guenther <rguenther@suse.de>
8364
8365 * tree.c (build_common_tree_nodes_2): Merge with
8366 build_common_tree_nodes.
8367 * tree.h (build_common_tree_nodes): Adjust prototype.
8368 (build_common_tree_nodes_2): Remove.
8369 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8370 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
8371
8372 2011-07-05 Jakub Jelinek <jakub@redhat.com>
8373
8374 PR tree-optimization/49618
8375 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
8376 t recurse on the decl.
8377 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
8378 return true if expr isn't known to be defined in current
8379 TU or some other LTO partition.
8380
8381 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8382
8383 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
8384 override CASE_VALUES_THRESHOLD.
8385
8386 * stmt.c (toplevel): Include params.h.
8387 (case_values_threshold): Use the --param case-values-threshold
8388 value if non-zero, otherwise use machine dependent value.
8389 (expand_case): Use case_values_threshold.
8390
8391 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
8392
8393 * doc/invoke.texi (--param case-values-threshold): Document.
8394
8395 2011-07-05 Richard Henderson <rth@redhat.com>
8396
8397 * dwarf2out.c (dwarf2out_cfi_label): Make static.
8398 (dwarf2out_flush_queued_reg_saves): Make static.
8399 (dwarf2out_reg_save): Remove.
8400 (dwarf2out_return_save): Remove.
8401 (dwarf2out_return_reg): Remove.
8402 (dwarf2out_reg_save_reg): Remove.
8403 (dwarf2out_def_cfa): Merge into ...
8404 (dwarf2out_frame_init): ... here.
8405 * dwarf2out.h, tree.h: Remove declarations as necessary.
8406
8407 2011-07-05 Richard Henderson <rth@redhat.com>
8408
8409 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
8410 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8411 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
8412 the alloc insn.
8413
8414 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
8415 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
8416 (process_epilogue): Don't call dwarf2out_def_cfa.
8417
8418 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
8419 indicate the return address save.
8420 (process_cfa_register): Likewise.
8421
8422 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
8423 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
8424
8425 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
8426 for ar.pfs save at alloc insn.
8427
8428 2011-07-05 Richard Henderson <rth@redhat.com>
8429
8430 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
8431 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8432 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
8433 stack pointer save.
8434 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
8435 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
8436 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
8437 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
8438
8439 2011-07-05 Richard Henderson <rth@redhat.com>
8440
8441 * config/vax/vax.md (define_c_enum unspecv): New. Define the
8442 VUNSPEC_* constants here instead of via define_constants.
8443 (VUNSPEC_PEM): New constant.
8444 (procedure_entry_mask): New insn.
8445 (prologue): New expander.
8446 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
8447 (vax_expand_prologue): Rename from vax_output_function_prologue;
8448 emit rtl instead of text.
8449 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8450 (print_operand): Add 'x' prefix.
8451
8452 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8453
8454 PR middle-end/47715
8455 * calls.c (precompute_register_parameters): Promote the function
8456 argument before checking non-legitimate constant.
8457
8458 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8459
8460 PR tree-optimization/47654
8461 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
8462 (lst_do_strip_mine_loop): Return an int.
8463 (lst_do_strip_mine): Same.
8464 (scop_do_strip_mine): Same.
8465 (scop_do_block): Loop blocking should strip-mine at least two loops.
8466 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
8467 (scop_do_interchange): Same.
8468 * graphite-poly.h (scop_do_interchange): Update declaration.
8469 (scop_do_strip_mine): Same.
8470
8471 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8472
8473 * graphite-clast-to-gimple.c (precision_for_value): Removed.
8474 (precision_for_interval): Removed.
8475 (gcc_type_for_interval): Use mpz_sizeinbase.
8476
8477 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8478
8479 * graphite-ppl.h (value_max): Correct computation of max.
8480
8481 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8482
8483 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
8484
8485 2011-07-05 Richard Guenther <rguenther@suse.de>
8486
8487 * c-decl.c (c_init_decl_processing): Defer building common
8488 tree nodes to c_common_nodes_and_builtins.
8489
8490 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
8491
8492 PR tree-optimization/49580
8493 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
8494 the loop's number of iterations.
8495 * tree-parloops.c (transform_to_exit_first_loop): Add the
8496 handling of the loop's number of iterations before the call
8497 to gimple_duplicate_sese_tail.
8498 Insert the stmt caclculating the new rhs of the loop's
8499 condition stmt to the preheader instead of iters_bb.
8500
8501 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8502
8503 PR rtl-optimization/47449
8504 * fwprop.c (forward_propagate_subreg): Don't propagate hard
8505 register nor zero/sign extended hard register.
8506
8507 2011-07-05 Richard Guenther <rguenther@suse.de>
8508
8509 PR tree-optimization/49518
8510 PR tree-optimization/49628
8511 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
8512 irrelevant and invariant data-references.
8513 (vect_analyze_data_ref_access): For invariant loads clear the
8514 group association.
8515
8516 2011-07-04 Jakub Jelinek <jakub@redhat.com>
8517
8518 PR rtl-optimization/49619
8519 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
8520 pass VOIDmode as op0_mode to recursive call, and return temp even
8521 when different from tor, just if it is not IOR of the original
8522 PLUS arguments.
8523
8524 PR rtl-optimization/49472
8525 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
8526 negating MULT, negate the second operand instead of first.
8527 (simplify_binary_operation_1) <case MULT>: If one operand is
8528 a NEG and the other is MULT, don't attempt to optimize by negation
8529 of the MULT operand if it only moves the NEG operation around.
8530
8531 PR debug/49602
8532 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8533 get_current_def return value if it can't be trusted to be
8534 the current value of the variable in the current bb.
8535
8536 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
8537
8538 PR target/49600
8539 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8540 general register to memory for !TARGET_INTER_UNIT_MOVES.
8541
8542 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8543
8544 PR target/44643
8545 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8546 instead of TREE_READONLY.
8547
8548 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8549
8550 * doc/extend.texi (AVR Built-in Functions): Update documentation
8551 of __builtin_avr_fmul*.
8552 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8553 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8554 * config/avr/avr.md (fmul): Rename to fmul_insn.
8555 (fmuls): Rename to fmuls_insn.
8556 (fmulsu): Rename to fmulsu_insn.
8557 (fmul,fmuls,fmulsu): New expander.
8558 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8559 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8560 * config/avr/libgcc.S (__fmul): New function.
8561 (__fmuls): New function.
8562 (__fmulsu,__fmulsu_exit): New function.
8563
8564 2011-07-04 Richard Guenther <rguenther@suse.de>
8565
8566 PR tree-optimization/49615
8567 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8568 basic-block index check.
8569
8570 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8571
8572 * longlong.h (count_leading_zeros, count_trailing_zeros,
8573 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8574 resp. 64.
8575
8576 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
8577
8578 PR tree-optimization/49610
8579 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8580 a basic block.
8581
8582 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
8583 Olivier Hainque <hainque@adacore.com>
8584 Nicolas Setton <setton@adacore.com>
8585
8586 * tree.h (TYPE_ARTIFICIAL): New flag.
8587 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8588 the DIE of the type if it is artificial.
8589 (gen_array_type_die): Likewise.
8590 (gen_enumeration_type_die): Likewise.
8591 (gen_struct_or_union_type_die): Likewise.
8592 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8593 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8594
8595 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8596
8597 * tree-object-size.c (pass_through_call): Handle
8598 BUILT_IN_ASSUME_ALIGNED.
8599
8600 2011-07-01 Martin Jambor <mjambor@suse.cz>
8601
8602 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8603
8604 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
8605
8606 PR middle-end/48016
8607 * explow.c (update_nonlocal_goto_save_area): Use proper mode
8608 for stack save area.
8609 * function.c (expand_function_start): Likewise.
8610
8611 2011-07-01 Richard Guenther <rguenther@suse.de>
8612
8613 PR middle-end/49596
8614 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8615 may have unknown refs.
8616
8617 2011-07-01 Kai Tietz <ktietz@redhat.com>
8618
8619 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8620
8621 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8622
8623 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8624 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8625 (Specific, mips-sgi-irix6): Likewise.
8626
8627 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8628
8629 PR libmudflap/49549
8630 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8631
8632 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8633
8634 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8635 [idx]= and [idx1 ... idx2]= before initializers if needed for
8636 array initializers.
8637
8638 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
8639
8640 * config.gcc (score-*-elf): Remove score7.o.
8641 * config/score/t-score-elf: Likewise.
8642 * config/score/score.c: Merge score7 to score.c and
8643 remove forwarding functions.
8644 * config/score/score7.c: Deleted.
8645 * config/score/score7.h: Deleted.
8646
8647 2011-07-01 Richard Guenther <rguenther@suse.de>
8648
8649 PR tree-optimization/49603
8650 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8651
8652 2011-06-30 Martin Jambor <mjambor@suse.cz>
8653
8654 * tree-sra.c (struct access): Rename total_scalarization to
8655 grp_total_scalarization
8656 (completely_scalarize_var): New function.
8657 (sort_and_splice_var_accesses): Set total_scalarization in the
8658 representative access.
8659 (analyze_access_subtree): Propagate total scalarization accross the
8660 tree, no holes in totally scalarized trees, simplify coverage
8661 computation.
8662 (analyze_all_variable_accesses): Call completely_scalarize_var instead
8663 of completely_scalarize_record.
8664
8665 2011-06-30 Richard Henderson <rth@redhat.com>
8666
8667 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8668 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8669 * config/i386/i386.c: Don't include dwarf2out.h.
8670 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8671 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8672 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
8673 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8674 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8675
8676 2011-06-30 Richard Henderson <rth@redhat.com>
8677
8678 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8679 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8680 * final.c (final_scan_insn): Look for it, and invoke
8681 dwarf2out_frame_debug before the insn if found.
8682
8683 2011-06-30 Richard Henderson <rth@redhat.com>
8684
8685 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8686 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8687
8688 2011-06-30 Richard Henderson <rth@redhat.com>
8689
8690 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8691 Define a vector of this type.
8692 (regs_saved_in_regs): Use a VEC.
8693 (num_regs_saved_in_regs): Remove.
8694 (compare_reg_or_pc): New.
8695 (record_reg_saved_in_reg): Split out from...
8696 (dwarf2out_flush_queued_reg_saves): ... here.
8697 (clobbers_queued_reg_save): Update for VEC.
8698 (reg_saved_in): Likewise.
8699 (dwarf2out_frame_debug_init): Likewise.
8700 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8701 (dwarf2out_frame_debug_cfa_register): Likewise.
8702
8703 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8704
8705 PR tree-optimization/49572
8706 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8707 type of the RHS instead of that of the LHS for the expression type.
8708
8709 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8710
8711 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8712 unconditionally.
8713
8714 2011-06-30 Richard Guenther <rguenther@suse.de>
8715
8716 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8717 * tree-ssa-structalias.c (create_variable_info_for): Do not
8718 add initial constraints for non-var-decls. Properly handle
8719 globals in other ltrans partitions.
8720 (intra_create_variable_infos): Manually create constraints for
8721 the fake no-alias parameter.
8722 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8723 and assert there are no clones.
8724
8725 2011-06-30 Richard Guenther <rguenther@suse.de>
8726
8727 PR tree-optimization/46787
8728 * tree-data-ref.c (dr_address_invariant_p): Remove.
8729 (find_data_references_in_stmt): Invariant accesses are ok now.
8730 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8731 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8732 invariant loads.
8733
8734 2011-06-30 Martin Jambor <mjambor@suse.cz>
8735
8736 PR tree-optimization/49094
8737 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8738 (build_accesses_from_assign): Use it.
8739
8740 2011-06-30 Jakub Jelinek <jakub@redhat.com>
8741
8742 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8743 handling of BUILT_IN_ASSUME_ALIGNED.
8744
8745 PR debug/49364
8746 * dwarf2out.c (output_abbrev_section): Don't return early
8747 if abbrev_die_table_in_use is 1.
8748 (dwarf2out_finish): Instead don't call output_abbrev_section
8749 nor emit abbrev_section_label in that case.
8750
8751 2011-06-30 Nick Clifton <nickc@redhat.com>
8752
8753 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
8754 for the V850E.
8755
8756 2011-06-30 Jakub Jelinek <jakub@redhat.com>
8757
8758 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8759 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
8760
8761 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
8762
8763 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8764 both pattern and original statements if necessary.
8765 (vect_transform_loop): Likewise.
8766 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
8767 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
8768 Mark the pattern statement only if the original statement doesn't
8769 have its own uses.
8770 (process_use): Call vect_mark_relevant with additional parameter.
8771 (vect_mark_stmts_to_be_vectorized): Likewise.
8772 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
8773 (vect_analyze_stmt): Handle both pattern and original statements
8774 if necessary.
8775 (vect_transform_stmt): Don't store vectorized pattern statement
8776 in the original statement.
8777 (vect_is_simple_use_1): Use related pattern statement only if the
8778 original statement is irrelevant.
8779 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8780
8781 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
8782
8783 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
8784 option.
8785 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
8786 entry.
8787 (TARGET_AVX128_OPTIMAL): New definition.
8788 * config/i386/i386.c (initial_ix86_tune_features): Initialize
8789 X86_TUNE_AVX128_OPTIMAL entry.
8790 (ix86_option_override_internal): Enable the generation
8791 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
8792 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
8793 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
8794
8795 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
8796
8797 PR tree-optimization/49539
8798 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
8799 names by means of stmt_references_abnormal_ssa_name.
8800 (associate_plusminus): Call can_propagate_from before propagating
8801 from definition statements.
8802 (ssa_forward_propagate_and_combine): Remove superfluous newline.
8803
8804 2011-06-29 Richard Guenther <rguenther@suse.de>
8805
8806 * doc/invoke.texi: Document -scev dump modifier.
8807 * tree-pass.h (TDF_SCEV): New dump flag.
8808 * tree-dump.c (dump_option_value_in): Add scev.
8809 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
8810 * tree-scalar-evolution.c: Likewise.
8811
8812 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
8813
8814 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
8815 (cxa_type_match): Correct declaration.
8816 (__gnu_unwind_pr_common): Reconstruct additional indirection
8817 when __cxa_type_match returns succeeded_with_ptr_to_base.
8818
8819 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8820
8821 PR rtl-optimization/49114
8822 * reload.c (struct replacement): Remove SUBREG_LOC member.
8823 (push_reload): Do not set it.
8824 (push_replacement): Likewise.
8825 (subst_reload): Remove dead code.
8826 (copy_replacements): Remove assertion.
8827 (copy_replacements_1): Do not handle SUBREG_LOC.
8828 (move_replacements): Likewise.
8829 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
8830 Detect subregs via recursive descent instead of via SUBREG_LOC.
8831
8832 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8833
8834 * config/avr/avr.c (avr_encode_section_info): Dispatch to
8835 default_encode_section_info.
8836
8837 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
8838
8839 PR tree-optimization/49545
8840 * builtins.c (get_object_alignment_1): Update function comment.
8841 Do not use DECL_ALIGN for functions, but test
8842 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8843 * fold-const.c (get_pointer_modulus_and_residue): Don't check
8844 for functions here.
8845 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8846
8847 2011-06-29 Jakub Jelinek <jakub@redhat.com>
8848
8849 PR debug/49567
8850 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8851 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8852
8853 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8854
8855 PR target/34734
8856 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8857 about uninitialized data attributed 'progmem' from here...
8858 (avr_encode_section_info): ...to this new function.
8859 (TARGET_ENCODE_SECTION_INFO): New define.
8860 (avr_section_type_flags): For data in ".progmem.data", remove
8861 section flag SECTION_WRITE.
8862
8863 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8864
8865 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8866 _xmulhisi3_exit.
8867 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8868 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
8869 (__umulhisi3): Ditto.
8870 * config/avr/avr.md (mulhisi3): New insn expender.
8871 (umulhisi3): New insn expender.
8872 (*mulhisi3_call): New insn.
8873 (*umulhisi3_call): New insn.
8874
8875 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8876
8877 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8878
8879 2011-06-28 Richard Henderson <rth@redhat.com>
8880
8881 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
8882 all code and arguments that handled pushes. Update all callers.
8883
8884 2011-06-28 Richard Henderson <rth@redhat.com>
8885
8886 * config/arm/arm.c (arm_output_function_prologue): Don't call
8887 thumb1_output_function_prologue.
8888 (arm_expand_prologue): Avoid dead store.
8889 (number_of_first_bit_set): Use ctz_hwi.
8890 (thumb1_emit_multi_reg_push): New.
8891 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8892 to emit the entire prologue as rtl.
8893 (thumb1_output_interwork): Split out from
8894 thumb1_output_function_prologue.
8895 (thumb1_output_function_prologue): Remove.
8896 (arm_attr_length_push_multi): Handle thumb1.
8897 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8898 (prologue_thumb1_interwork): New.
8899 (*push_multi): Allow thumb1; use push_mult_memory_operand.
8900 * config/arm/predicates.md (push_mult_memory_operand): New.
8901
8902 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
8903
8904 * config/sparc/sync.md (*stbar): Delete.
8905 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
8906
8907 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
8908
8909 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
8910
8911 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8912
8913 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
8914 (TARGET_64BIT_DEFAULT): Define.
8915 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
8916 of tm_file.
8917 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
8918
8919 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8920
8921 * common.opt (in_lto_p): New Variable entry.
8922 * flags.h (in_lto_p): Move to common.opt.
8923 * gcc.c: Include params.h.
8924 (set_option_handlers): Also use common_handle_option and
8925 target_handle_option.
8926 (main): Call global_init_params, finish_params and init_options_struct.
8927 * opts.c (debug_type_names): Move from toplev.c.
8928 (print_filtered_help): Access quiet_flag through opts pointer.
8929 (common_handle_option): Return early in the driver for some options.
8930 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
8931 opts pointer.
8932 * toplev.c (in_lto_p): Move to common.opt.
8933 (debug_type_names): Move to opts.c.
8934 * Makefile.in (OBJS): Remove opts.o.
8935 (OBJS-libcommon-target): Add opts.o.
8936 (gcc.o): Update dependencies.
8937
8938 2011-06-28 Kai Tietz <ktietz@redhat.com>
8939
8940 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
8941
8942 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8943
8944 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
8945 with '=' constraint modifier.
8946 (*divdf3_vfp): Likewise.
8947 ("*mulsf3_vfp"): Likewise.
8948 ("*muldf3_vfp"): Likewise.
8949 ("*mulsf3negsf_vfp"): Likewise.
8950 ("*muldf3negdf_vfp"): Likewise.
8951
8952 2011-06-28 Nick Clifton <nickc@redhat.com>
8953
8954 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
8955 relaxation when performing an incremental link.
8956
8957 2011-06-28 Kai Tietz <ktietz@redhat.com>
8958
8959 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
8960 within BB from last to first.
8961
8962 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8963
8964 * genattr-common.c: New. Based on genattr.c.
8965 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
8966 (MOSTLYCLEANFILES): Add insn-attr-common.h.
8967 (opts.o): Update dependencies.
8968 (.PRECIOUS): Add insn-attr-common.h.
8969 (simple_rtl_generated_h): Add insn-attr-common.h.
8970 (build/genattr-common.o): New.
8971 (genprogrtl): Add attr-common.
8972 * genattr.c (main): Include insn-attr-common.h. Don't generate
8973 definitions of DELAY_SLOTS or INSN_SCHEDULING.
8974 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
8975
8976 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
8977
8978 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
8979 avr-*-* and avr-*-rtems* targets.
8980
8981 * config/avr/elf.h: New file.
8982 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
8983 (TARGET_ASM_SELECT_SECTION): Define.
8984 (INIT_SECTION_ASM_OP): Undefine.
8985 (FINI_SECTION_ASM_OP): Undefine.
8986 (READONLY_DATA_SECTION_ASM_OP): Undefine.
8987 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
8988 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
8989 * config/avr/avr.h:
8990 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
8991 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
8992 (MAX_OFILE_ALIGNMENT): Move to elf.h.
8993 (STRING_LIMIT): Move to elf.h.
8994 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
8995 (ASM_DECLARE_OBJECT_NAME): Remove.
8996 (ESCAPES): Remove.
8997 (ASM_OUTPUT_SKIP): Remove.
8998 (DWARF2_DEBUGGING_INFO): Remove.
8999 (OBJECT_FORMAT_ELF): Remove.
9000 (USER_LABEL_PREFIX): Remove.
9001 (ASM_OUTPUT_EXTERNAL): Remove.
9002 (ASM_OUTPUT_ASCII): Remove.
9003 (TYPE_ASM_OP): Remove.
9004 (SIZE_ASM_OP): Remove.
9005 (WEAK_ASM_OP): Remove.
9006 (STRING_ASM_OP): Remove.
9007 (SET_ASM_OP): Remove.
9008 (ASM_WEAKEN_LABEL): Remove.
9009 (TYPE_OPERAND_FMT): Remove.
9010 (ASM_DECLARE_FUNCTION_SIZE): Remove.
9011 (ASM_FINISH_DECLARE_OBJECT): Remove.
9012 (NO_DOLLAR_IN_LABEL): Remove.
9013 (ASM_GENERATE_INTERNAL_LABEL): Remove.
9014 (ASM_OUTPUT_CASE_LABEL): Remove.
9015 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
9016 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
9017 (gas_output_ascii): Remove.
9018 (gas_output_limited_string): Remove.
9019 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9020 * config/avr/avr-protos.h
9021 (gas_output_ascii): Remove prototye.
9022 (gas_output_limited_string): Remove prototype.
9023
9024 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
9025
9026 PR target/48637
9027 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
9028 asm operands.
9029
9030 2011-06-27 Jan Hubicka <jh@suse.cz>
9031
9032 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
9033 node instead of references in node.
9034
9035 2011-06-27 Richard Henderson <rth@redhat.com>
9036
9037 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
9038 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
9039 inside ifdef.
9040
9041 2011-06-27 Jakub Jelinek <jakub@redhat.com>
9042
9043 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
9044
9045 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
9046 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
9047 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
9048 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
9049 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
9050 (evaluate_stmt, execute_fold_all_builtins): Handle
9051 BUILT_IN_ASSUME_ALIGNED.
9052 * tree-ssa-dce.c (propagate_necessity): Likewise.
9053 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9054 call_may_clobber_ref_p_1): Likewise.
9055 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
9056 (expand_builtin_assume_aligned): New function.
9057 * doc/extend.texi (__builtin_assume_aligned): Document.
9058
9059 PR debug/49544
9060 * cselib.c (promote_debug_loc): If cselib_preserve_constants
9061 and l has two DEBUG_INSN owned locs instead of just one, adjust
9062 the second location's setting_insn too.
9063
9064 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9065
9066 PR libmudflap/38738
9067 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
9068
9069 2011-06-27 Nick Clifton <nickc@redhat.com>
9070
9071 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
9072 bit position of highest bit set into a count of the high zero bits.
9073
9074 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9075
9076 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
9077
9078 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9079
9080 PR lto/48492
9081 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
9082 to a NULL parent.
9083
9084 2011-06-27 Richard Guenther <rguenther@suse.de>
9085
9086 PR tree-optimization/49394
9087 * passes.c (execute_one_pass): Restore current_pass after
9088 applying IPA transforms.
9089
9090 2011-06-27 Kai Tietz <ktietz@redhat.com>
9091
9092 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
9093 out of type precision after operation.
9094 (find_bswap): Take for limit value the integer auto-promotion
9095 into account.
9096
9097 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9098
9099 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
9100 forward scan as well.
9101
9102 2011-06-27 Tristan Gingold <gingold@adacore.com>
9103
9104 PR target/44241
9105 * config/vms/vms-protos.h: New file.
9106 * config/vms/vms-crtlmap.map: New file.
9107 * config/vms/vms.c: New file.
9108 * config/vms/make-crtlmap.awk: New file.
9109 * config/vms/vms-crtl.h: File removed.
9110 * config/vms/vms-crtl-64.h: File removed.
9111 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
9112 * config/alpha/vms64.h: Do not include vms-crtl-64.h
9113 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
9114 clear some builtins on VMS. Calls vms_patch_builtins.
9115 (avms_asm_output_external): Remove.
9116 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
9117 (struct crtl_name_spec): Remove
9118 (DO_CTRL_NAMES): Remove.
9119 * config/ia64/vms.h (struct crtl_name_spec): Remove
9120 (DO_CTRL_NAMES): Remove.
9121 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
9122 clear some builtins on VMS. Calls vms_patch_builtins.
9123 (ia64_asm_output_external): Remove DO_CRTL_NAME.
9124 * config/ia64/vms64.h: Do not include vms-crtl-64.h
9125 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
9126
9127 2011-06-27 Tristan Gingold <gingold@adacore.com>
9128
9129 * config/alpha/alpha.c (alpha_end_function): Always generate .end
9130 directive on VMS.
9131
9132 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9133
9134 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
9135 the function receives nonlocal gotos.
9136
9137 2011-06-27 Richard Guenther <rguenther@suse.de>
9138
9139 PR tree-optimization/49536
9140 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
9141 For non-scalar inner types use a scalar type according to
9142 the scalar inner mode.
9143
9144 2011-06-27 Richard Guenther <rguenther@suse.de>
9145
9146 PR tree-optimization/49365
9147 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
9148
9149 2011-06-27 Richard Guenther <rguenther@suse.de>
9150
9151 PR tree-optimization/49169
9152 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
9153 the alignment of function decls.
9154
9155 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
9156
9157 PR target/47997
9158 * config/darwin.c (darwin_mergeable_string_section): Place string
9159 constants in '.cstring' rather than '.const' when CF/NSStrings are
9160 active.
9161
9162 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
9163
9164 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
9165 (emit_save_register_window): Likewise.
9166 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
9167 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
9168 Swap back %o7/%i7 in register naming.
9169
9170 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
9171
9172 PR driver/49371
9173 * config/darwin.c (darwin_override_options): Improve warning when
9174 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
9175 is given with fpie/fPIE.
9176 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
9177 * config/darwin9.h (PIE_SPEC): New.
9178
9179 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
9180
9181 * timevar.c (timevar_print): Increase width for display of timevar
9182 name.
9183
9184 2011-06-24 Jakub Jelinek <jakub@redhat.com>
9185
9186 PR c++/46400
9187 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
9188 instead of TYPE_CHAIN for chain_next for types.
9189
9190 2011-06-24 Richard Henderson <rth@redhat.com>
9191
9192 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
9193 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
9194 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
9195 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
9196 (sparc_flat_expand_prologue): Emit individual instructions
9197 instead of one of the above.
9198
9199 2011-06-24 Easwaran Raman <eraman@google.com>
9200
9201 PR rtl-optimization/49429
9202 PR target/49454
9203 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
9204 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
9205 used to copy y into x.
9206 * calls.c (initialize_argument_information): Mark
9207 an argument addressable if it is passed by invisible reference.
9208 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
9209 if it is passed by reference.
9210
9211 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
9212
9213 PR rtl-optimization/49504
9214 * rtlanal.c (nonzero_bits1): Properly handle addition or
9215 subtraction of a pointer in Pmode if pointers extend unsigned.
9216 (num_sign_bit_copies1): Likewise.
9217
9218 2011-06-24 Martin Jambor <mjambor@suse.cz>
9219
9220 PR tree-optimizations/49516
9221 * tree-sra.c (sra_modify_assign): Choose the safe path for
9222 aggregate copies if we also did scalar replacements.
9223
9224 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9225
9226 PR target/49335
9227 * config/arm/predicates.md (add_operator): New.
9228 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9229
9230 2011-06-24 Andi Kleen <ak@linux.intel.com>
9231
9232 * tree-sra.c (type_internals_preclude_sra_p): Add msg
9233 parameter. Split up ifs and report reason in *msg.
9234 (reject): Add.
9235 (find_var_candiate): Add msg variable.
9236 Split up ifs and report reason to reject.
9237 (find_param_candidates): Add msg variable.
9238 Pass msg to type_internals_preclude_sra_p.
9239
9240 2011-06-23 Jeff Law <law@redhat.com>
9241
9242 PR middle-end/48770
9243 * reload.h (reload): Change to return a bool.
9244 * ira.c (ira): If requested by reload, run a fast DCE pass after
9245 reload has completed. Fix comment typo.
9246 * reload1.c (need_dce): New file scoped static.
9247 (reload): Set reload_completed here. Return whether or not a DCE
9248 pass after reload is needed.
9249 (delete_dead_insn): Set need_dce as needed.
9250
9251 PR middle-end/49465
9252 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9253 to detect threading through joiner block. If there was already
9254 an edge to the new target, then do not change the PHI nodes.
9255
9256 2011-06-23 Jakub Jelinek <jakub@redhat.com>
9257
9258 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9259 get_pointer_alignment to see if base isn't sufficiently aligned.
9260
9261 2011-06-23 Jan Hubicka <jh@suse.cz>
9262
9263 PR tree-optimize/49373
9264 * tree-pass.h (all_late_ipa_passes): Declare.
9265 * cgraphunit.c (init_lowered_empty_function): Fix properties.
9266 (cgraph_optimize): Execute late passes; remove unreachable funcions
9267 after materialization.
9268 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9269 LTOing.
9270 * passes.c (all_late_ipa_passes): Declare.
9271 (dump_passes, register_pass): Handle late ipa passes.
9272 (init_optimization_passes): Move ipa_pta to late passes; schedule
9273 fixup_cfg at beggining of all_passes.
9274 (apply_ipa_transforms): New function.
9275 (execute_one_pass): When doing simple ipa pass, apply all transforms.
9276
9277 2011-06-23 Joseph Myers <joseph@codesourcery.com>
9278
9279 * params.c: Include common/common-target.h. Don't include tm.h.
9280 (lang_independent_params): Move from toplev.c.
9281 (global_init_params): New.
9282 * params.h (global_init_params): Declare.
9283 * target.def (default_params): Move to common-target.def.
9284 * toplev.c (lang_independent_options): Remove.
9285 (lang_independent_params): Move to params.c.
9286 (general_init): Use global_init_params.
9287 * common/common-target.def (option_default_params): Move from
9288 target.def.
9289 * common/config/ia64/ia64-common.c: Include params.h.
9290 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9291 from ia64.c.
9292 * common/config/rs6000/rs6000-common.c: Include params.h.
9293 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9294 from rs6000.c.
9295 * common/config/sh/sh-common.c: Include params.h.
9296 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9297 from sh.c.
9298 * common/config/spu/spu-common.c: Include params.h.
9299 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9300 from spu.c.
9301 * config/ia64/ia64.c (ia64_option_default_params,
9302 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
9303 * config/rs6000/rs6000.c (rs6000_option_default_params,
9304 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
9305 * config/sh/sh.c (sh_option_default_params,
9306 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
9307 * config/spu/spu.c (spu_option_default_params,
9308 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
9309 * Makefile.in (OBJS): Remove params.o.
9310 (OBJS-libcommon-target): Add params.o.
9311 (params.o, $(common_out_object_file)): Update dependencies.
9312 * doc/tm.texi: Regenerate.
9313
9314 2011-06-23 Alan Modra <amodra@gmail.com>
9315
9316 PR bootstrap/49383
9317 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
9318 invocation for 2011-06-09 changes.
9319
9320 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9321
9322 PR libgomp/49490
9323 * omp-low.c (expand_omp_for_static_nochunk): Only
9324 use n ceil/ nthreads size for the first n % nthreads threads in the
9325 team instead of all threads except for the last few ones which
9326 get less work or none at all.
9327
9328 PR debug/49496
9329 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
9330 uses.
9331
9332 2011-06-22 Richard Guenther <rguenther@suse.de>
9333
9334 PR tree-optimization/49493
9335 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
9336 Refer to the alias target of variables.
9337 (associate_varinfo_to_alias_1): Remove.
9338 (ipa_pta_execute): Do not associate aliases with anything.
9339 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
9340 (cgraph_function_node): Likewise.
9341 (cgraph_function_or_thunk_node): Likewise.
9342 (varpool_variable_node): Likewise.
9343
9344 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9345
9346 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
9347 * config.gcc (arm*-*-linux*): Default to gnu tls.
9348 (arm*-*-*): Add --with-tls option.
9349 (all_defaults): Add 'tls'.
9350
9351 2011-06-22 Richard Henderson <rth@redhat.com>
9352
9353 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
9354 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9355 (dwarf2out_frame_debug_cfa_window_save): Rename from
9356 dwarf2out_window_save; make static.
9357 * tree.h (dwarf2out_window_save): Don't declare.
9358
9359 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
9360 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9361 (emit_save_register_window): Rename from gen_save_register_window;
9362 emit the insn and add REG_CFA_* notes.
9363 (sparc_expand_prologue): Update to match.
9364 * config/sparc/sparc.md (save_register_window_1): Simplify from
9365 save_register_window<P:mode>.
9366
9367 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
9368
9369 PR target/49497
9370 * config/i386/i386.md (*lea_general_2): Always allow SImode.
9371 (*lea_general_2_zext): Likewise.
9372 (imul to lea peepholes): Use const359_operand and check
9373 TARGET_PARTIAL_REG_STALL.
9374
9375 * config/i386/predicates.md (const359_operand): New.
9376
9377 2011-06-22 Michael Matz <matz@suse.de>
9378
9379 * cgraphunit.c (assemble_thunk): Use correct return type.
9380
9381 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
9382 Dmitry Melnik <dm@ispras.ru>
9383
9384 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
9385 (neon_output_shift_immediate): Ditto.
9386 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
9387 prototype.
9388 (neon_output_shift_immediate): Ditto.
9389 * config/arm/neon.md (vashl<mode>3): Modified constraint.
9390 (vashr<mode>3_imm): New insn pattern.
9391 (vlshr<mode>3_imm): Ditto.
9392 (vashr<mode>3): Modified constraint.
9393 (vlshr<mode>3): Ditto.
9394 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
9395 predicate.
9396 (imm_for_neon_rshift_operand): Ditto.
9397 (imm_lshift_or_reg_neon): Ditto.
9398 (imm_rshift_or_reg_neon): Ditto.
9399
9400 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
9401
9402 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9403
9404 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
9405 builtin calls even if likelyvalue is not CONSTANT.
9406 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
9407 Return get_value_for_expr of first operand
9408 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
9409 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9410 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
9411 their non-checking counterparts.
9412 (call_may_clobber_ref_p_1): Likewise.
9413 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
9414 like their non-checking counterparts.
9415 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9416 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
9417 like their non-checking counterparts.
9418 (find_func_clobbers): Likewise.
9419 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
9420 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
9421
9422 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
9423 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
9424 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
9425 of base type reference as argument.
9426 (resolve_addr_in_expr): Likewise. Fix keep computation.
9427 (convert_descriptor_to_signed): Renamed to...
9428 (convert_descriptor_to_mode): ... this. For wider types convert to
9429 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
9430 (typed_binop): New function.
9431 (scompare_loc_descriptor, ucompare_loc_descriptor,
9432 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
9433 default to unsigned type instead of signed.
9434
9435 PR debug/47858
9436 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
9437 (gimple_build_debug_source_bind_stat): New prototype.
9438 (gimple_build_debug_source_bind): Define.
9439 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
9440 gimple_debug_source_bind_get_value,
9441 gimple_debug_source_bind_get_value_ptr,
9442 gimple_debug_source_bind_set_var,
9443 gimple_debug_source_bind_set_value): New inlines.
9444 * gimple.c (gimple_build_debug_source_bind_stat): New function.
9445 * gimple-pretty-print.c (dump_gimple_debug): Handle
9446 GIMPLE_DEBUG_SOURCE_BIND.
9447 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
9448 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9449 * tree-parloops.c (eliminate_local_variables,
9450 separate_decls_in_region): Likewise.
9451 (separate_decls_in_region_debug): Renamed from
9452 separate_decls_in_region_debug_bind. Handle
9453 gimple_debug_source_bind_p.
9454 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
9455 prototypes.
9456 (DECL_HAS_DEBUG_ARGS_P): Define.
9457 (struct tree_function_decl): Add has_debug_args_flag field.
9458 * tree.c (debug_args_for_decl): New variable.
9459 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
9460 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
9461 (rewrite_debug_stmt_uses): New function.
9462 (rewrite_stmt): Use it to rewrite debug stmt uses.
9463 * rtl.def (DEBUG_PARAMETER_REF): New.
9464 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
9465 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
9466 DEBUG_PARAMETER_REF.
9467 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
9468 * print-rtl.c (print_rtx): Likewise.
9469 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
9470 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
9471 debug stmts in the first bb.
9472 * tree-inline.c (remap_ssa_name): If remapping default def
9473 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
9474 a source bind debug stmt.
9475 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
9476 (maybe_move_debug_stmts_to_successors): Likewise.
9477 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
9478 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
9479 debug args vector from old_decl to new_decl.
9480 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
9481 or modified parameters, add debug bind stmts before call
9482 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
9483 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
9484 on DECL_DEBUG_EXPRs from debug args vector.
9485 (expand_debug_source_expr): New function.
9486 (expand_debug_locations): Use it for source bind insns.
9487 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
9488 * var-tracking.c (prepare_call_arguments): Add debug args
9489 to call_arguments if any.
9490 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
9491 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
9492 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
9493 (get_ref_die_offset, parameter_ref_descriptor): New functions.
9494 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
9495 (gen_subprogram_die): Handle parameters identified by
9496 DEBUG_PARAMETER_REF.
9497
9498 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9499
9500 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
9501 * doc/install.texi (Configuration): Document --with-tls.
9502 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
9503 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
9504 (arm_tls_descseq_addr): New.
9505 (legitimize_tls_address): Add tlsdesc support.
9506 (arm_cannot_copy_insn_p): Check for tlscall.
9507 (arm_emit_tls_decoration): Likewise.
9508 * config/arm/arm.h (TARGET_GNU2_TLS): New.
9509 (OPTION_DEFAULT_SPECS): Add with-tls support.
9510 * config/arm/arm.md (R1_REGNUM): Define.
9511 (tlscall): New.
9512 * config/arm/arm.opt (tls_type): New enumeration type and values.
9513 (mtls-dialect): New switch.
9514 * config/arm/arm-opts.h (enum tls_type): New.
9515
9516 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
9517
9518 * attribs.c (register_attribute): Added assert to check that all
9519 attribute specs are registered with a name that is not empty and
9520 does not start with '_'.
9521 (decl_attributes): Avoid the lookup of the "naked" attribute spec
9522 if the function has no attributes.
9523 * tree.c (is_attribute_with_length_p): Removed.
9524 (is_attribute_p): Removed.
9525 (private_is_attribute_p): New.
9526 (private_lookup_attribute): New.
9527 (lookup_attribute): Removed.
9528 (lookup_ident_attribute): New.
9529 (remove_attribute): Require the first argument to be in the form
9530 'text', not '__text__'. Updated asserts.
9531 (merge_attributes): Use lookup_ident_attributes instead of
9532 lookup_attribute.
9533 (merge_dllimport_decl_attributes): Use remove_attribute.
9534 (attribute_list_contained): Likewise.
9535 (attribute_list_equal): Immediately return 1 if the arguments are
9536 identical pointers.
9537 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
9538 'int'. Require the first argument to be in the form 'text', not
9539 '__text__'. Require the second argument to be an identifier.
9540 (lookup_attribute): Made inline. Require the first argument to be
9541 in the form 'text', not '__text__'.
9542 (private_is_attribute_p, private_lookup_attribute): New.
9543 Updated comments.
9544
9545 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
9546
9547 * builtins.c: Add sync_ or SYNC__ to builtin names.
9548 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9549 * omp-low.c: Add sync_ or SYNC__ to builtin names.
9550
9551 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9552
9553 PR target/33049
9554 * config/avr/avr.md (extzv): New expander.
9555 (*extzv): New insn.
9556 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9557 * config/avr/constraints.md (C04): New constraint.
9558 * doc/md.texi (Machine Constraints): Document it.
9559
9560 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9561
9562 PR middle-end/49489
9563 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9564 unsignedp argument instead of 1 for clrsb_optab.
9565 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9566 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
9567 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9568 * optabs.c (widen_leading): Call widen_operand and expand_unop
9569 with 0 as unsignedp argument instead of 1 for clrsb_optab.
9570 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9571
9572 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9573
9574 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9575
9576 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
9577
9578 * gensupport.c (add_define_attr): New static function.
9579 (is_predicable): Allow multi-alternative lists for the "predicable"
9580 attribute.
9581 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9582 (process_one_cond_exec): Call alter_attrs_for_insn.
9583 * doc/md.texi (Defining Attributes): Mention some standard names.
9584 (Conditional Execution): Update documentation for "predicable".
9585
9586 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9587 __builtin_clrsbll): Document.
9588 * doc/rtl.texi (clrsb): New entry.
9589 * optabs.c (widen_leading): Renamed from widen_clz. New argument
9590 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
9591 (expand_unop): Handle clrsb_optab.
9592 (init_optabs): Initialize it.
9593 * optabs.h (enum optab_index): New entry OTI_clrsb.
9594 (clrsb_optab): Define.
9595 * genopinit.c (optabs): Add an entry for it.
9596 * builtins.c (expand_builtin): Handle clrsb builtin functions.
9597 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9598 BUILT_IN_CLRSBLL): New.
9599 * rtl.def (CLRSB): New code.
9600 * dwarf2out.c (mem_loc_descriptor): Handle it.
9601 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9602 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9603 and popcount.
9604 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9605 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9606 (__ctzDI2): Move declaration.
9607 * config/bfin/bfin.md (clrsbsi2): New expander.
9608 (signbitssi2): Use the CLRSB rtx.
9609 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
9610 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9611
9612 2011-06-21 Richard Guenther <rguenther@suse.de>
9613
9614 * ipa-inline-transform.c (inline_transform): Fix previous change.
9615
9616 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
9617
9618 PR tree-optimization/49478
9619 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9620 with constant operand.
9621
9622 2011-06-21 Richard Guenther <rguenther@suse.de>
9623
9624 * ipa-inline-transform.c (inline_transform): Fix typo.
9625
9626 2011-06-21 Richard Guenther <rguenther@suse.de>
9627
9628 PR tree-optimization/49483
9629 * tree-vect-stmts.c (vectorizable_assignment): Also handle
9630 VIEW_CONVERT_EXPR conversions.
9631
9632 2011-06-21 Joseph Myers <joseph@codesourcery.com>
9633
9634 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9635 * config/avr/avr-tables.opt: New file (generated).
9636 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9637 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9638 avr-mcus.def.
9639 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9640 (avr_option_override): Don't process -mmcu= argument here. Set
9641 avr_current_device using avr_mcu_index.
9642 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9643 * config/avr/avr.opt (mmcu=): Use Enum.
9644 * config/avr/t-avr (avr-devices.o): Update dependencies.
9645 ($(srcdir)/config/avr/avr-tables.opt): New.
9646 * target.def (help): Remove.
9647 * doc/tm.texi.in (TARGET_HELP): Remove.
9648 * doc/tm.texi: Regenerate.
9649 * opts.c: Don't include target.h.
9650 (common_handle_option): Don't call targetm.help.
9651 * system.h (TARGET_HELP): Poison.
9652 * Makefile.in (opts.o): Update dependencies.
9653
9654 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9655
9656 * config/usegld.h: New file.
9657 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9658 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9659 (LIB_SPEC): Likewise. Search /lib.
9660 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9661 (RDYNAMIC_SPEC): Handle GNU ld.
9662 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9663 Define.
9664 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9665 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9666 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9667 (STACK_CHECK_STATIC_BUILTIN): Define.
9668 * config/sol2.opt (compat-bsd): Remove.
9669 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9670 * config/sol2-bi.h: New file.
9671 * config/sol2-gld.h: Remove.
9672 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9673 (NO_DBX_BNSYM_ENSYM): Remove.
9674 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9675 (STACK_CHECK_STATIC_BUILTIN): Remove.
9676 Test USE_GLD instead of TARGET_GNU_LD.
9677 * config/i386/sol2-10.h: Rename to ...
9678 * config/i386/sol2-bi.h .. this.
9679 (SUBTARGET_EXTRA_SPECS): Redefine.
9680 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9681 (MULTILIB_DEFAULTS): Remove.
9682 (DEFAULT_ARCH32_P): Define.
9683 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9684 (ARCH64_SUBDIR): Define.
9685 Test USE_GLD instead of TARGET_GNU_LD.
9686 (I386_EMULATION): Rename to ...
9687 (ARCH32_EMULATION): ... this.
9688 (X86_64_EMULATION): Rename to ...
9689 (ARCH64_EMULATION): ... this.
9690 (TARGET_LD_EMULATION): Remove.
9691 (LINK_ARCH_SPEC): Remove.
9692 * config/i386/sol2-gas.h: Remove.
9693 * config/i386/t-sol2-10: Rename to ...
9694 * config/i386/t-sol2-64: ... this.
9695 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9696 (AS_SPARC64_FLAG): Define.
9697 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9698 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9699 depending on TARGET_CPU_DEFAULT.
9700 (CPP_CPU_SPEC): Redefine.
9701 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9702 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9703 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9704 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9705 ASM_ARCH_DEFAULT_SPEC): Redefine.
9706 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9707 LINK_ARCH_DEFAULT_SPEC.
9708 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9709 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9710 (ARCH64_SUBDIR): Define.
9711 (LINK_ARCH64_SPEC): Redefine.
9712 (CC1_SPEC): Redefine.
9713 (OPTION_DEFAULT_SPECS): Redefine.
9714 (MULTILIB_DEFAULTS): Define.
9715 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9716 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9717 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9718 (NO_DBX_BNSYM_ENSYM): Remove.
9719 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9720 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9721 (TARGET_ASM_NAMED_SECTION): Likewise.
9722 (STACK_CHECK_STATIC_BUILTIN): Remove.
9723 * config/sparc/sol2-bi.h: Remove.
9724 * config/sparc/sol2-gas-bi.h: Remove.
9725 * config/sparc/sol2-gas.h: Remove.
9726 * config/sparc/sol2-gld-bi.h: Remove.
9727 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9728 common parts ...
9729 (*-*-solaris2*): ... here.
9730
9731 2011-06-21 Christian Bruel <christian.bruel@st.com>
9732
9733 PR other/43564
9734 * ipa-inline.c (can_inline_edge_p): Check
9735 !DECL_DISREGARD_INLINE_LIMITS.
9736
9737 2011-06-21 Christian Bruel <christian.bruel@st.com>
9738
9739 PR middle-end/49139
9740 * cgraphunit.c (process_function_and_variable_attributes): warn when
9741 always_inline functions that are not inline.
9742 * ipa-inline-transform.c (inline_transform): Always call
9743 optimize_inline.
9744 * tree-inline.c (tree_inlinable_function_p): Use error instead
9745 of sorry.
9746 (expand_call_inline): Likewise.
9747
9748 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9749
9750 * Makefile.in (dg_target_exps): Set.
9751 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9752 instead of 7, try to divide it more evenly.
9753
9754 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
9755
9756 PR target/49089
9757 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
9758 (avx256_split_unaligned_store): New definition.
9759 (ix86_option_override_internal): Enable avx256 unaligned load/store
9760 splitting only when avx256_split_unaligned_load/store is set.
9761
9762 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
9763
9764 * regrename.c (scan_rtx_reg): Handle the case where we write to an
9765 open chain in a smaller mode without failing the entire block.
9766
9767 2011-06-21 Alan Modra <amodra@gmail.com>
9768
9769 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
9770 CONST high part large-toc address.
9771 (rs6000_tls_referenced_p): Make static.
9772 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
9773
9774 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9775
9776 PR target/49385
9777 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
9778 one of the operands is a register.
9779
9780 2011-06-20 Kai Tietz <ktietz@redhat.com>
9781
9782 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
9783 operations in combination with binary and.
9784
9785 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
9786
9787 * regrename.c (do_replace): Don't update notes.
9788
9789 2011-06-20 Alan Modra <amodra@gmail.com>
9790
9791 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
9792 of toc-relative address in CONST.
9793 (rs6000_delegitimize_address): Recognize changed address.
9794 (rs6000_legitimize_reload_address): Likewise.
9795 (rs6000_emit_move): Don't force these constants to memory.
9796 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
9797 toc-relative address in CONST.
9798 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9799 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9800
9801 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
9802
9803 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
9804 (count_trailing_zeros): Likewise.
9805
9806 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
9807
9808 PR other/49325
9809 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
9810 .init_array can be used with .ctors on targets.
9811 * configure: Regenerated.
9812
9813 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
9814
9815 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
9816 if the element type is volatile.
9817
9818 2011-06-18 Jan Hubicka <jh@suse.cz>
9819
9820 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9821 extra name aliases.
9822 (lto_symtab_resolve_can_prevail_p): Likewise.
9823 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9824 * cgraphbuild.c (record_reference): Remove extra body alias code.
9825 (mark_load): Likewise.
9826 (mark_store): Likewise.
9827 * cgraph.h (varpool_node): Remove extra_name filed;
9828 add alias_of and extraname_alias.
9829 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9830 (varpool_alias_aliased_node): New inline function.
9831 (varpool_variable_node): New function.
9832 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9833 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9834 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9835 (input_varpool_node): Likewise.
9836 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9837 (varpool_externally_visible_p): Remove extra body alias code.
9838 (function_and_variable_visibility): Likewise.
9839 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9840 (ipa_pta_execute): Use it.
9841 * varpool.c (varpool_remove_node): Remove extra name alias code.
9842 (varpool_mark_needed_node): Likewise.
9843 (varpool_analyze_pending_decls): Analyze aliases.
9844 (assemble_aliases): New functoin.
9845 (varpool_assemble_decl): Use it.
9846 (varpool_create_variable_alias): New function.
9847 (varpool_extra_name_alias): Rewrite.
9848 (varpool_for_node_and_aliases): New function.
9849
9850 2011-06-18 Jakub Jelinek <jakub@redhat.com>
9851
9852 PR target/49411
9853 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9854 last_arg_constant and last argument doesn't match its predicate,
9855 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9856 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9857 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9858 spelling of error message.
9859 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9860 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9861 const_0_to_255_operand instead of const_int_operand.
9862
9863 Revert:
9864 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9865
9866 * config/i386/sse.md (blendbits): Remove mode attribute.
9867 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9868 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9869 Check integer value of operand 3 in insn constraint.
9870
9871 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
9872
9873 PR rtl-optimization/48542
9874 * reload.c (find_equiv_reg): Stop looking when finding a
9875 setjmp-type call.
9876 * reload1.c (reload_as_needed): Invalidate all reload
9877 registers when crossing a setjmp-type call.
9878
9879 2011-06-16 Jeff Law <law@redhat.com>
9880
9881 * tree-ssa-threadupdate.c (struct redirection_data): New field
9882 intermediate_edge.
9883 (THREAD_TARGET2): Define.
9884 (redirection_data_eq): Also check that the intermediate edge is equal.
9885 (lookup_redirection_data): Drop useless argument. Extract the
9886 outgoing_edge and intermediate edge from E. Callers updated.
9887 (copy_phi_args, update_destination_phis): New functions.
9888 (fix_duplicate_block_edges): Likewise.
9889 (create_edge_and_update_destination_phis): Duplicate all the edges
9890 hung off e->aux. Use copy_phi_args.
9891 (create_duplicates): Use fix_duplicate_block_edges.
9892 (fixup_template_block): Likewise.
9893 (redirect_edges): If necessary, redirect the joiner block's incoming
9894 edge to the duplicate of the joiner block.
9895 (thread_block): Don't muck up loops when threading through a joiner
9896 block.
9897 (thread_through_loop_header): Handle threading through a joiner block.
9898 (mark_threaded_blocks, register_jump_thread): Likewise.
9899 * tree-flow.h (register_jump_thread): Add new argument. Callers
9900 updated.
9901 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9902 (thread_across_edge): Handle threading through a joiner block.
9903
9904 2011-06-16 Martin Jambor <mjambor@suse.cz>
9905
9906 PR tree-optimization/49343
9907 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
9908 calculate offset, provide 2nd operand for the new COMPONENT_REF.
9909
9910 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
9911
9912 * config/darwin-protos.h (machopic_select_rtx_section): Move to
9913 inside RTX_CODE ifdef.
9914
9915 2011-06-16 Tom de Vries <tom@codesourcery.com>
9916
9917 PR target/45098
9918 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
9919 Disallow NULL pointer for pointer arithmetic.
9920
9921 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9922
9923 PR target/49398
9924 Revert.
9925 2011-06-10 Wei Guozhi <carrot@google.com>
9926
9927 PR target/45335
9928 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
9929 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
9930 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
9931 related peephole2.
9932 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
9933 related peephole2.
9934 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
9935 (arm_legitimate_ldrd_p): New prototype.
9936 (arm_output_ldrd): New prototype.
9937 * config/arm/arm.c (arm_check_ldrd_operands): New function.
9938 (arm_legitimate_ldrd_p): New function.
9939 (arm_output_ldrd): New function.
9940
9941 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
9942
9943 PR middle-end/46500
9944 * doc/tm.texi.in: Update Copyright date.
9945 * doc/tm.texi: Regenerate.
9946 * targhooks.c (default_setup_incoming_varargs): Replace
9947 CUMULATIVE_ARGS* argument type with cumulative_args_t.
9948 (default_pretend_outgoing_varargs_named): Likewise.
9949 (hook_pass_by_reference_must_pass_in_stack): Likewise.
9950 (hook_callee_copies_named): Likewise.
9951 (default_function_arg_advance): Likewise.
9952 (default_function_arg): Likewise.
9953 (default_function_incoming_arg): Likewise.
9954 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9955 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9956 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9957 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9958 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9959 * targhooks.h (default_setup_incoming_varargs): Likewise.
9960 (default_pretend_outgoing_varargs_named): Likewise.
9961 (hook_pass_by_reference_must_pass_in_stack): Likewise.
9962 (hook_callee_copies_named): Likewise.
9963 (default_function_arg_advance): Likewise.
9964 (default_function_arg): Likewise.
9965 (default_function_incoming_arg): Likewise.
9966 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
9967 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
9968 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
9969 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
9970 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
9971 * target.def (pass_by_reference): Likewise.
9972 (setup_incoming_varargs, strict_argument_naming): Likewise.
9973 (pretend_outgoing_varargs_named, callee_copies): Likewise.
9974 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
9975 (function_incoming_arg): Likewise.
9976 * target.h: Don't include "tm.h" .
9977 (cumulative_args_t): New typedef.
9978 [GCC_TM_H] (get_cumulative_args): New static inline function.
9979 [GCC_TM_H] (pack_cumulative_args): Likewise.
9980 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
9981 argument type with cumulative_args_t.
9982 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
9983 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
9984 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
9985 (frv_arg_partial_bytes, frv_function_arg): Likewise.
9986 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
9987 (frv_function_arg_1): Likewise.
9988 * config/s390/s390.c (s390_pass_by_reference): Likewise.
9989 (s390_function_arg_advance, s390_function_arg): Likewise.
9990 * config/m32c/m32c.c (m32c_function_arg): Likewise.
9991 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
9992 (m32c_strict_argument_naming): Likewise.
9993 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
9994 (spu_function_arg_advance): Likewise.
9995 (spu_setup_incoming_varargs): Likewise. Make static.
9996 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
9997 Remove prototype.
9998 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
9999 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10000 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
10001 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
10002 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
10003 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
10004 (mep_pass_by_reference, mep_function_arg): Likewise.
10005 (mep_function_arg_advance): Likewise.
10006 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10007 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
10008 (m32r_function_arg, m32r_function_arg_advance): Likewise.
10009 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
10010 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
10011 (ix86_function_arg, ix86_pass_by_reference): Likewise.
10012 (ix86_setup_incoming_varargs): Likewise.
10013 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
10014 (sh_strict_argument_naming): Likewise.
10015 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
10016 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
10017 (sh_function_arg_advance, sh_function_arg): Likewise.
10018 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
10019 (pdp11_function_arg_advance): Likewise.
10020 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
10021 Likewise.
10022 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
10023 * config/avr/avr.c (avr_function_arg): Likewise.
10024 (avr_function_arg_advance): Likewise.
10025 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
10026 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
10027 (xtensa_function_arg_1): Likewise.
10028 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
10029 Likewise.
10030 (xstormy16_function_arg): Likewise.
10031 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
10032 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
10033 (fr30_function_arg_advance): Likewise.
10034 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10035 (lm32_function_arg, lm32_function_arg_advance): Likewise.
10036 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
10037 (moxie_function_arg, moxie_function_arg_advance): Likewise.
10038 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
10039 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
10040 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
10041 (cris_function_arg, cris_function_incoming_arg): Likewise.
10042 (cris_function_arg_advance, cris_function_arg_1): Likewise.
10043 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
10044 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
10045 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
10046 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
10047 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
10048 (mn10300_arg_partial_bytes): Likewise.
10049 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
10050 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
10051 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
10052 (ia64_function_arg_1): Likewise.
10053 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
10054 (m68k_function_arg): Likewise.
10055 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
10056 (rs6000_function_arg, setup_incoming_varargs): Likewise.
10057 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
10058 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
10059 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
10060 (picochip_arg_advance): Likewise.
10061 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
10062 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
10063 (mcore_function_arg_advance): Likewise.
10064 * config/score/score.c (score_pass_by_reference): Likewise.
10065 (score_function_arg_advance): Likewise.
10066 (score_arg_partial_bytes): Likewise. Make static.
10067 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
10068 * config/arm/arm.c (arm_arg_partial_bytes): Replace
10069 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10070 (arm_function_arg, arm_function_arg_advance): Likewise.
10071 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
10072 * config/pa/pa.c (pa_pass_by_reference): Likewise.
10073 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
10074 (pa_function_arg): Likewise.
10075 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
10076 (mips_function_arg, mips_function_arg_advance): Likewise.
10077 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
10078 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
10079 * config/vax/vax.c (vax_function_arg): Likewise.
10080 (vax_function_arg_advance): Likewise.
10081 * config/h8300/h8300.c (h8300_function_arg): Likewise.
10082 (h8300_function_arg_advance): Likewise.
10083 * config/v850/v850.c (v850_pass_by_reference): Likewise.
10084 (v850_strict_argument_naming, v850_function_arg): Likewise.
10085 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
10086 (v850_setup_incoming_varargs): Likewise.
10087 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
10088 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
10089 (mmix_function_arg, mmix_pass_by_reference): Likewise.
10090 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
10091 with const void *.
10092 * config/bfin/bfin.c (setup_incoming_varargs): Replace
10093 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10094 (bfin_function_arg_advance, bfin_function_arg): Likewise.
10095 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
10096 * calls.c (emit_call_1): Change type of args_so_far to
10097 cumulative_args_t. Changed all callers.
10098 (initialize_argument_information): Likewise.
10099 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
10100 * dse.c (get_call_args): Likewise.
10101 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
10102 * function.c (pass_by_reference, reference_callee_copied): Likewise.
10103 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
10104 New member args_so_far_v. Changed all users.
10105 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
10106 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10107 * config/mips/mips.c (mips_output_args_xfer): Likewise.
10108 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10109 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10110 * config/microblaze/microblaze.c (microblaze_expand_prologue):
10111 Likewise.
10112 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
10113 m32r_pass_by_reference.
10114
10115 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
10116
10117 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
10118 argument to be a VEC of statements.
10119 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
10120 assert that pattern statements have to have their vector type set.
10121 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
10122 Change the first argument to be a VEC of statements. Update
10123 documentation.
10124 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
10125 (vect_handle_widen_mult_by_const): New function.
10126 (vect_recog_widen_mult_pattern): Change the first argument to be a
10127 VEC of statements. Update documentation. Check that the constant is
10128 INTEGER_CST. Support multiplication by a constant that fits an
10129 intermediate type - call vect_handle_widen_mult_by_const.
10130 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
10131 call. Handle additional pattern statements if necessary.
10132
10133 2011-06-16 Nick Clifton <nickc@redhat.com>
10134
10135 PR target/49427
10136 * config.gcc: Set cpu_type to v850 for any V850 architecture.
10137 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
10138 md_file, extra_modes, out_file and extra_options are these are all
10139 deduced from cpu_type.
10140
10141 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10142
10143 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
10144 truncation mask to 63.
10145
10146 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10147
10148 PR target/49313
10149 PR target/29524
10150 * longlong.h: Add AVR support:
10151 (count_leading_zeros): New macro.
10152 (count_trailing_zeros): New macro.
10153 (COUNT_LEADING_ZEROS_0): New macro.
10154 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
10155 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
10156 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
10157 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
10158 (LIB2FUNCS_EXCLUDE): Add _clz.
10159 * config/avr/libgcc.S (XCALL): Move up in file.
10160 (XJMP): New C Macro.
10161 (DEFUN): New asm macro.
10162 (ENDF): New asm macro.
10163 (__ffssi2): New function.
10164 (__ffshi2): New function.
10165 (__loop_ffsqi2): New function.
10166 (__ctzsi2): New function.
10167 (__ctzhi2): New function.
10168 (__clzdi2): New function.
10169 (__clzsi2): New function.
10170 (__clzhi2): New function.
10171 (__paritydi2): New function.
10172 (__paritysi2): New function.
10173 (__parityhi2): New function.
10174 (__parityqi2): New function.
10175 (__popcounthi2): New function.
10176 (__popcountsi2): New function.
10177 (__popcountdi2): New function.
10178 (__popcountqi2): New function.
10179 (__bswapsi2): New function.
10180 (__bswapdi2): New function.
10181 (__ashldi3): New function.
10182 (__ashrdi3): New function.
10183 (__lshrdi3): New function.
10184 Fix suspicous lines.
10185
10186 2011-06-16 Richard Guenther <rguenther@suse.de>
10187
10188 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
10189 the same as x != 0.
10190 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
10191 to (bool) X & 1.
10192 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
10193 equality compares against zero for the lower bit.
10194
10195 2011-06-16 Jakub Jelinek <jakub@redhat.com>
10196
10197 PR tree-optimization/49419
10198 * tree-vrp.c (execute_vrp): Call init_range_assertions
10199 before estimate_numbers_of_iterations, call
10200 free_number_of_iterations_estimates before calling
10201 remove_range_assertions.
10202
10203 2011-06-16 Revital Eres <revital.eres@linaro.org>
10204
10205 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
10206 (struct partial_schedule): Add rows_length field.
10207 (verify_partial_schedule): Check rows_length.
10208 (ps_insert_empty_row): Handle rows_length.
10209 (create_partial_schedule): Likewise.
10210 (free_partial_schedule): Likewise.
10211 (reset_partial_schedule): Likewise.
10212 (create_ps_insn): Remove rest_count argument.
10213 (remove_node_from_ps): Update rows_length.
10214 (add_node_to_ps): Update rows_length and call create_ps_insn
10215 without passing row_rest_count.
10216 (rotate_partial_schedule): Update rows_length.
10217
10218 2011-06-16 Revital Eres <revital.eres@linaro.org>
10219
10220 * ddg.c (add_intra_loop_mem_dep): New function.
10221 (build_intra_loop_deps): Call it.
10222
10223 2011-06-13 Jeff Law <law@redhat.com>
10224
10225 * df-problems.c (df_lr_local_compute): Manually CSE
10226 PIC_OFFSET_TABLE_REGNUM.
10227 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10228 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10229
10230 2011-06-13 Jan Hubicka <jh@suse.cz>
10231
10232 * cgraphunit.c (handle_alias_pairs): New function.
10233 (cgraph_finalize_compilation_unit): Use it.
10234 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10235 as externally visible.
10236
10237 2011-06-15 Richard Guenther <rguenther@suse.de>
10238
10239 * expr.c (expand_expr_real_2): Reduce all integral types to
10240 bitfield precision.
10241 (expand_expr_real_1): Likewise.
10242
10243 2011-06-15 Martin Jambor <mjambor@suse.cz>
10244
10245 PR tree-optimization/48613
10246 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10247 ipa_node_params_vector is NULL.
10248
10249 2011-06-15 Jakub Jelinek <jakub@redhat.com>
10250
10251 PR debug/49382
10252 * dwarf2out.c (dw_loc_list_node): Add force field.
10253 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10254 location in the list, even if it is modified before first real insn.
10255 (output_loc_list): Emit empty ranges with force flag set.
10256 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10257
10258 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
10259
10260 PR target/49349
10261 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10262 (fence_to_rewind). Use it to notice when bookkeeping will be placed
10263 above a fence. Update comments.
10264 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10265 placed just above it. Do not allow NULL place_to_insert.
10266
10267 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
10268
10269 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10270 (slpeel_tree_peel_loop_to_edge): Don't call
10271 remove_dead_stmts_from_loop.
10272 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10273 remove irrelevant pattern statements. For irrelevant statements
10274 check if it is the last statement of a detected pattern, use
10275 corresponding pattern statement instead.
10276 (destroy_loop_vec_info): No need to remove pattern statements,
10277 only free stmt_vec_info.
10278 (vect_transform_loop): For irrelevant statements check if it is
10279 the last statement of a detected pattern, use corresponding
10280 pattern statement instead.
10281 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10282 pattern statements. Set basic block for the new statement.
10283 (vect_pattern_recog): Update documentation.
10284 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10285 operands of pattern statements.
10286 (vectorizable_call): Fix printing. In case of a pattern statement
10287 use the lhs of the original statement when creating a dummy
10288 statement to replace the original call.
10289 (vect_analyze_stmt): For irrelevant statements check if it is
10290 the last statement of a detected pattern, use corresponding
10291 pattern statement instead.
10292 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10293 statements use gsi of the original statement.
10294
10295 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10296
10297 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10298 common/common-target-def.h.
10299 * target.def (default_target_flags, handle_option,
10300 supports_split_stack, optimization_table, init_struct,
10301 except_unwind_info, unwind_tables_default, have_named_sections):
10302 Move to common/common-target.def.
10303 * target.h (enum opt_levels, struct default_options): Move to
10304 common/common-target.h.
10305 * targhooks.c (default_except_unwind_info,
10306 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10307 default_target_handle_option, empty_optimization_table): Move to
10308 common/common-targhooks.c.
10309 * targhooks.h (default_except_unwind_info,
10310 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10311 default_target_handle_option, empty_optimization_table): Move to
10312 common/common-targhooks.h.
10313 * common/common-target-def.h: Include common/common-targhooks.h.
10314 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
10315 defined.
10316 * common/common-target.def (handle_option, option_init_struct,
10317 option_optimization_table, default_target_flags,
10318 except_unwind_info, supports_split_stack, unwind_tables_default,
10319 have_named_sections): Move from target.def.
10320 (HOOK_PREFIX): Undefine at end of file.
10321 * common/common-target.h: Include input.h.
10322 (enum opt_levels, struct default_options): Move from target.h.
10323 * common/common-targhooks.c, common/common-targhooks.h: New.
10324 * config.gcc (target_has_targetm_common): Default to yes.
10325 (moxie*): Set target_has_targetm_common=no.
10326 (hppa*-*-*): Don't set target_has_targetm_common=yes.
10327 * doc/tm.texi: Regenerate.
10328 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
10329 (C_TARGET_DEF_H): Add common/common-targhooks.h.
10330 (GCC_OBJS): Remove vec.o.
10331 (OBJS): Remove hooks.o and vec.o.
10332 (OBJS-libcommon-target): Add vec.o, hooks.o and
10333 common/common-targhooks.o.
10334 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
10335 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
10336 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
10337 cfglayout.o, $(out_object_file), $(common_out_object_file)):
10338 Update dependencies.
10339 (common/common-targhooks.o): New.
10340 * common/config/default-common.c: Include tm.h. Add FIXME comment.
10341 * common/config/pa/pa-common.c: Include more headers. Take
10342 copyright dates from pa.c.
10343 (pa_option_optimization_table, pa_handle_option,
10344 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
10345 TARGET_HANDLE_OPTION): Move from pa.c.
10346 * common/config/alpha/alpha-common.c,
10347 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
10348 common/config/bfin/bfin-common.c,
10349 common/config/cris/cris-common.c,
10350 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
10351 common/config/h8300/h8300-common.c,
10352 common/config/i386/i386-common.c,
10353 common/config/ia64/ia64-common.c,
10354 common/config/iq2000/iq2000-common.c,
10355 common/config/lm32/lm32-common.c,
10356 common/config/m32c/m32c-common.c,
10357 common/config/m32r/m32r-common.c,
10358 common/config/m68k/m68k-common.c,
10359 common/config/mcore/mcore-common.c,
10360 common/config/mep/mep-common.c,
10361 common/config/microblaze/microblaze-common.c,
10362 common/config/mips/mips-common.c,
10363 common/config/mmix/mmix-common.c,
10364 common/config/mn10300/mn10300-common.c,
10365 common/config/pdp11/pdp11-common.c,
10366 common/config/picochip/picochip-common.c,
10367 common/config/rs6000/rs6000-common.c,
10368 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
10369 common/config/score/score-common.c, common/config/sh/sh-common.c,
10370 common/config/sparc/sparc-common.c,
10371 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
10372 common/config/vax/vax-common.c,
10373 common/config/xstormy16/xstormy16-common.c,
10374 common/config/xtensa/xtensa-common.c: New.
10375 * config/alpha/alpha.c: Include common/common-target.h.
10376 (alpha_option_optimization_table, alpha_handle_option,
10377 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10378 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
10379 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
10380 * config/arm/arm.c (arm_option_optimization_table,
10381 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10382 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
10383 arm-common.c.
10384 * config/avr/avr.c (avr_option_optimization_table,
10385 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10386 to avr-common.c.
10387 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
10388 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
10389 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
10390 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
10391 * config/cris/cris.c (cris_option_optimization_table,
10392 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10393 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
10394 cris-common.c.
10395 * config/fr30/fr30.c (fr30_option_optimization_table,
10396 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
10397 to fr30-common.c.
10398 * config/frv/frv.c (frv_option_optimization_table,
10399 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
10400 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
10401 * config/h8300/h8300.c (h8300_option_optimization_table,
10402 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10403 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
10404 * config/i386/i386-protos.h (ix86_handle_option): Declare.
10405 * config/i386/i386.c: Include common/common-target.h.
10406 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
10407 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
10408 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
10409 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
10410 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
10411 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
10412 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
10413 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
10414 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
10415 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
10416 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
10417 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
10418 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
10419 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
10420 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
10421 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
10422 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
10423 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
10424 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
10425 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
10426 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
10427 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
10428 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
10429 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
10430 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
10431 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
10432 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
10433 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
10434 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
10435 ix86_option_optimization_table, ix86_option_init_struct,
10436 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
10437 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10438 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
10439 i386-common.c.
10440 * config/i386/t-i386 (i386.o): Update dependencies.
10441 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
10442 * config/ia64/ia64.c (ia64_option_optimization_table,
10443 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10444 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10445 ia64_handle_option): Move to ia64-common.c.
10446 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
10447 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
10448 * config/lm32/lm32.c (lm32_option_optimization_table,
10449 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10450 to lm32-common.c.
10451 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
10452 m32c-common.c.
10453 * config/m32r/m32r.c (m32r_option_optimization_table,
10454 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10455 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10456 m32r_handle_option): Move to m32r-common.c.
10457 (m32r_memory_move_cost): Remove comment referring to
10458 TARGET_HANDLE_OPTION.
10459 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
10460 Move to m68k-common.c.
10461 * config/mcore/mcore.c (mcore_option_optimization_table,
10462 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10463 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
10464 * config/mep/mep.c (mep_option_optimization_table,
10465 mep_handle_option, TARGET_HANDLE_OPTION,
10466 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
10467 Move to mep-common.c.
10468 * config/microblaze/microblaze.c
10469 (microblaze_option_optimization_table,
10470 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10471 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
10472 * config/mips/mips.c (mips_handle_option,
10473 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10474 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
10475 mips-common.c.
10476 * config/mmix/mmix.c (mmix_option_optimization_table,
10477 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10478 Move to mmix-common.c.
10479 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
10480 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
10481 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10482 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
10483 * config/pa/pa.c: Include common/common-target.h.
10484 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10485 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10486 pa_handle_option): Move to pa-common.c.
10487 (pa_option_override): Use targetm_common.except_unwind_info.
10488 (pa_asm_output_mi_thunk, pa_function_section): Use
10489 targetm_common.have_named_sections.
10490 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
10491 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10492 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10493 pdp11_handle_option, pdp11_option_init_struct): Move to
10494 pdp11-common.c.
10495 * config/picochip/picochip.c (picochip_option_optimization_table,
10496 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
10497 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
10498 * config/rs6000/rs6000.c: Include common/common-target.h.
10499 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
10500 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
10501 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
10502 rs6000_handle_option): Move to rs6000-common.c.
10503 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10504 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
10505 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10506 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
10507 * config/s390/s390.c (processor_flags_table,
10508 s390_option_optimization_table, s390_option_init_struct,
10509 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
10510 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10511 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
10512 * config/s390/s390.h (processor_flags_table): Declare.
10513 * config/score/score.c (score_option_optimization_table,
10514 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10515 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
10516 score_handle_option): Move to score-common.c.
10517 * config/sh/sh.c (sh_option_optimization_table,
10518 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10519 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10520 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
10521 * config/sparc/sparc.c: Include common/common-target.h.
10522 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10523 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
10524 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
10525 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
10526 spu_option_init_struct): Move to spu-common.c.
10527 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
10528 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
10529 * config/v850/v850.c (small_memory_physical_max,
10530 v850_handle_memory_optionn v850_handle_option,
10531 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10532 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10533 v850-common.c.
10534 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10535 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10536 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10537 Move to xtensa-common.c.
10538 * cfglayout.c: Include common/common-target.h.
10539 (fixup_reorder_chain): Use targetm_common.have_named_sections.
10540 * cfgrtl.c: Include common/common-target.h.
10541 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10542 targetm_common.have_named_sections.
10543 * dbxout.c: Include common/common-target.h.
10544 (dbxout_function_end): Use targetm_common.have_named_sections.
10545 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10546 targetm_common.except_unwind_info.
10547 * dwarf2out.c: Include common/common-target.h.
10548 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10549 dwarf2out_begin_prologue, dwarf2out_frame_init,
10550 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10551 targetm_common.except_unwind_info.
10552 * except.c: Include common/common-target.h.
10553 (init_eh, finish_eh_generation,
10554 output_one_function_exception_table): Use
10555 targetm_common.except_unwind_info.
10556 (switch_to_exception_section): Use targetm_common.have_named_sections.
10557 * explow.c: Include common/common-target.h.
10558 * expr.c: Include common/common-target.h.
10559 (build_personality_function): Use targetm_common.except_unwind_info.
10560 * function.c: Include common/common-target.h.
10561 (expand_function_end): Use targetm_common.except_unwind_info.
10562 * haifa-sched.c: Include common/common-target.h.
10563 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10564 * lto-opts.c: Include common/common-target.h instead of target.h.
10565 (lto_reissue_options): Use targetm_common.handle_option.
10566 * opts.c: Include common/common-target.h.
10567 (target_handle_option): Use targetm_common.handle_option.
10568 (init_options_struct): Update comment referring to
10569 targetm.target_option.optimization. Use
10570 targetm_common.default_target_flags,
10571 targetm_common.unwind_tables_default and
10572 targetm_common.option_init_struct.
10573 (default_options_optimization): Use
10574 targetm_common.option_optimization_table.
10575 (finish_options): Use targetm_common.except_unwind_info,
10576 targetm_common.unwind_tables_default,
10577 targetm_common.have_named_sections and
10578 targetm_common.supports_split_stack.
10579 * toplev.c: Include common/common-target.h.
10580 (process_options): Use targetm_common.have_named_sections.
10581 * tree-tailcall.c: Include common/common-target.h.
10582 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10583 * tree.c: Include common/common-target.h.
10584 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10585 * varasm.c: Include common/common-target.h.
10586 (resolve_unique_section, hot_function_section,
10587 default_function_section): Use targetm_common.have_named_sections.
10588
10589 2011-06-14 Easwaran Raman <eraman@google.com>
10590
10591 PR rtl-optimization/44194
10592 * dse.c: Include tree-flow.h
10593 (insn_info): Add new field non_frame_wild_read.
10594 (group_info): Add new fields escaped_n and escaped_p.
10595 (kill_on_calls): New variable.
10596 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10597 (dse_step0): Initialize kill_on_calls.
10598 (can_escape): New function.
10599 (set_usage_bits): Add additional parameter; record information
10600 about escaped locations.
10601 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10602 (dse_step2_nospill): Set kill_on_calls based on
10603 group->escaped_n and group->escaped_n.
10604 (add_wild_read): Refactor into...
10605 (reset_active_stores): ... New function, and
10606 (free_read_records): ... New function.
10607 (add_non_frame_wild_read): New function.
10608 (scan_insn): Call add_non_frame_wild_read on non-const calls.
10609 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10610 (dse_step5_nospill): Call scan_reads_nospill for instructions
10611 marked as non_frame_wild_read.
10612 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10613
10614 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10615
10616 * common/common-target-def.h, common/common-target.def,
10617 common/common-target.h, common/config/default-common.c,
10618 common/config/pa/pa-common.c: New files.
10619 * Makefile.in (common_out_file, common_out_object_file,
10620 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10621 (OBJS-libcommon-target): Include $(common_out_object_file).
10622 (prefix.o): Update dependencies.
10623 ($(common_out_object_file), common/common-target-hooks-def.h,
10624 s-common-target-hooks-def-h): New.
10625 (s-tm-texi): Also check timestamp on common-target.def.
10626 (build/genhooks.o): Update dependencies.
10627 * config.gcc (common_out_file, target_has_targetm_common): Define.
10628 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10629 TARGET_ALWAYS_STRIP_DOTDOT.
10630 * configure.ac (common_out_object_file): Define.
10631 (common_out_file, common_out_object_file): Substitute.
10632 (common): Create directory.
10633 * configure: Regenerate.
10634 * doc/tm.texi.in (targetm_common): Document.
10635 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10636 * doc/tm.texi: Regenerate.
10637 * genhooks.c (hook_array): Also include common/common-target.def.
10638 * prefix.c (tm.h): Don't include.
10639 (common/common-target.h): Include.
10640 (ALWAYS_STRIP_DOTDOT): Don't define.
10641 (update_path): Use targetm_common.always_strip_dotdot instead of
10642 ALWAYS_STRIP_DOTDOT.
10643 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10644
10645 2011-06-14 David Li <davidxl@google.com>
10646
10647 * passes.c (execute_function_todo): Remove TODO_dump_func.
10648 (execute_one_pass): Remove TODO_dump_func.
10649 (execute_function_dump): New function.
10650 * tree-vrp.c: Remove TODO_dump_func.
10651 * regrename.c: Remove TODO_dump_func.
10652 * fwprop.c: Remove TODO_dump_func.
10653 * tree-into-ssa.c: Remove TODO_dump_func.
10654 * tree-complex.c: Remove TODO_dump_func.
10655 * tracer.c: Remove TODO_dump_func.
10656 * tree-loop-distribution.c: Remove TODO_dump_func.
10657 * postreload-gcse.c: Remove TODO_dump_func.
10658 * postreload.c: Remove TODO_dump_func.
10659 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10660 * tree-tailcall.c: Remove TODO_dump_func.
10661 * ipa-cp.c: Remove TODO_dump_func.
10662 * final.c: Remove TODO_dump_func.
10663 * tree-emutls.c: Remove TODO_dump_func.
10664 * omp-low.c: Remove TODO_dump_func.
10665 * tree-ssa-dse.c: Remove TODO_dump_func.
10666 * tree-ssa-uncprop.c: Remove TODO_dump_func.
10667 * auto-inc-dec.c: Remove TODO_dump_func.
10668 * reorg.c: Remove TODO_dump_func.
10669 * tree-ssa-copyrename.c: Remove TODO_dump_func.
10670 * tree-ssa-ccp.c: Remove TODO_dump_func.
10671 * compare-elim.c: Remove TODO_dump_func.
10672 * mode-switching.c: Remove TODO_dump_func.
10673 * modulo-sched.c: Remove TODO_dump_func.
10674 * tree-call-cdce.c: Remove TODO_dump_func.
10675 * cse.c: Remove TODO_dump_func.
10676 * web.c: Remove TODO_dump_func.
10677 * tree-stdarg.c: Remove TODO_dump_func.
10678 * lto-streamer-out.c: Remove TODO_dump_func.
10679 * tree-ssa-math-opts.c: Remove TODO_dump_func.
10680 * tree-ssa-dom.c: Remove TODO_dump_func.
10681 * tree-nrv.c: Remove TODO_dump_func.
10682 * loop-init.c: Remove TODO_dump_func.
10683 * gimple-low.c: Remove TODO_dump_func.
10684 * ipa-inline.c: Remove TODO_dump_func.
10685 * tree-ssa-sink.c: Remove TODO_dump_func.
10686 * jump.c: Remove TODO_dump_func.
10687 * ifcvt.c: Remove TODO_dump_func.
10688 * tree-ssa-loop.c: Remove TODO_dump_func.
10689 * recog.c: Remove TODO_dump_func.
10690 * dse.c: Remove TODO_dump_func.
10691 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10692 * matrix-reorg.c: Remove TODO_dump_func.
10693 * tree-eh.c: Remove TODO_dump_func.
10694 * regmove.c: Remove TODO_dump_func.
10695 * function.c: Remove TODO_dump_func.
10696 * tree-vectorizer.c: Remove TODO_dump_func.
10697 * ipa-split.c: Remove TODO_dump_func.
10698 * gcse.c: Remove TODO_dump_func.
10699 * tree-if-conv.c: Remove TODO_dump_func.
10700 * init-regs.c: Remove TODO_dump_func.
10701 * tree-ssa-phiopt.c: Remove TODO_dump_func.
10702 * implicit-zee.c: Remove TODO_dump_func.
10703 * lower-subreg.c: Remove TODO_dump_func.
10704 * bt-load.c: Remove TODO_dump_func.
10705 * tree-dfa.c: Remove TODO_dump_func.
10706 * except.c: Remove TODO_dump_func.
10707 * emit-rtl.c: Remove TODO_dump_func.
10708 * store-motion.c: Remove TODO_dump_func.
10709 * cfgexpand.c: Remove TODO_dump_func.
10710 * tree-cfgcleanup.c: Remove TODO_dump_func.
10711 * cfgcleanup.c: Remove TODO_dump_func.
10712 * tree-ssa-pre.c: Remove TODO_dump_func.
10713 * tree-sra.c: Remove TODO_dump_func.
10714 * tree-mudflap.c: Remove TODO_dump_func.
10715 * tree-ssa-copy.c: Remove TODO_dump_func.
10716 * cfglayout.c: Remove TODO_dump_func.
10717 * tree-ssa-forwprop.c: Remove TODO_dump_func.
10718 * tree-ssa-dce.c: Remove TODO_dump_func.
10719 * ira.c: Remove TODO_dump_func.
10720 * tree-ssa.c: Remove TODO_dump_func.
10721 * integrate.c: Remove TODO_dump_func.
10722 * tree-optimize.c: Remove TODO_dump_func.
10723 * tree-ssa-phiprop.c: Remove TODO_dump_func.
10724 * tree-object-size.c: Remove TODO_dump_func.
10725 * combine.c: Remove TODO_dump_func.
10726 * bb-reorder.c: Remove TODO_dump_func.
10727 * cprop.c: Remove TODO_dump_func.
10728 * var-tracking.c: Remove TODO_dump_func.
10729 * tree-profile.c: Remove TODO_dump_func.
10730 * tree-vect-generic.c: Remove TODO_dump_func.
10731 * reg-stack.c: Remove TODO_dump_func.
10732 * sched-rgn.c: Remove TODO_dump_func.
10733 * tree-ssa-structalias.c: Remove TODO_dump_func.
10734 * tree-switch-conversion.c: Remove TODO_dump_func.
10735 * tree-cfg.c: Remove TODO_dump_func.
10736 * tree-ssa-reassoc.c: Remove TODO_dump_func.
10737 * combine-stack-adj.c: Remove TODO_dump_func.
10738 * dce.c: Remove TODO_dump_func.
10739 * tree-ssanames.c: Remove TODO_dump_func.
10740 * regcprop.c: Remove TODO_dump_func.
10741
10742 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
10743
10744 PR middle-end/47364
10745 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10746 and properly handle result not in Pmode.
10747
10748 2011-06-14 Robert Millan <rmh@gnu.org>
10749
10750 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10751 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
10752 `config/linux.h'.
10753
10754 * config/i386/kfreebsd-gnu64.h: New file.
10755 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
10756 with `i386/kfreebsd-gnu64.h'.
10757
10758 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
10759 (GNU_USER_LINK_EMULATION64): New macros.
10760 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
10761 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
10762 of hardcoding `elf_i386' and `elf_x86_64'.
10763
10764 2011-06-14 Nick Clifton <nickc@redhat.com>
10765
10766 PR target/49403
10767 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
10768
10769 PR target/49402
10770 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
10771
10772 2011-06-14 Jakub Jelinek <jakub@redhat.com>
10773
10774 PR fortran/49103
10775 * tree.h (DECL_NONSHAREABLE): Define.
10776 (struct tree_decl_common): Change decl_common_unused to
10777 decl_nonshareable_flag.
10778 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
10779 Ignore vars with DECL_NONSHAREABLE bit set.
10780 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
10781 on stores to automatic aggregate vars.
10782
10783 PR rtl-optimization/49390
10784 Revert:
10785 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
10786
10787 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10788 MEM_ALIAS_SET.
10789
10790 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
10791 Tom de Vries <tom@codesourcery.com>
10792
10793 PR target/45098
10794 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
10795 Document changed semantics.
10796 (max_stmt_executions, max_stmt_executions_int): Declare.
10797 * tree-data-ref.c (estimated_loop_iterations)
10798 (estimated_loop_iterations_int): Move functions...
10799 * tree-ssa-loop-niter.c (estimated_loop_iterations)
10800 (estimated_loop_iterations_int): here.
10801 (record_estimate): Change nb_iterations_upper_bound and
10802 nb_iterations_estimate semantics.
10803 (max_stmt_executions, max_stmt_executions_int): New function.
10804 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
10805 (max_stmt_executions_tree): this.
10806 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
10807 estimated_loop_iterations_tree.
10808 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
10809 max_stmt_executions_int instead of estimated_loop_iterations_int.
10810 * predict.c (predict_loops): Idem.
10811 * tree-parloops.c (parallelize_loops): Idem.
10812 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
10813 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
10814 (init_omega_for_ddr_1): Idem.
10815 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
10816 (loop_prefetch_arrays): Idem
10817 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10818 max_stmt_executions instead of estimated_loop_iterations.
10819 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10820 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10821 instead of nb_iterations_upper_bound.
10822
10823 2011-06-13 Jan Hubicka <jh@suse.cz>
10824
10825 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10826
10827 2011-06-14 Richard Henderson <rth@redhat.com>
10828
10829 PR debug/48459
10830 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10831 (based_loc_descr): Assert it's true.
10832 (compute_frame_pointer_to_fb_displacement): Set it, rather than
10833 aborting immediately.
10834
10835 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
10836 Mingfeng Wu <mingfeng@faraday-tech.com>
10837
10838 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10839
10840 2011-06-13 Jan Hubicka <jh@suse.cz>
10841
10842 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10843
10844 2011-06-13 Jan Hubicka <jh@suse.cz>
10845
10846 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10847 similarly to DECL_COMDAT.
10848 * cgraphunit.c (cgraph_analyze_function): Likewise.
10849 * ipa.c (function_and_variable_visibility): Likewise.
10850
10851 2011-06-13 Jan Hubicka <jh@suse.cz>
10852
10853 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10854 BINFO_VIRTUALS when streaming for ltrans unit.
10855
10856 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
10857
10858 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10859 (movdi_internal64): Same.
10860
10861 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
10862
10863 PR target/44618
10864 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10865 a set of similar patterns, where the MATCH_OPERAND for the function
10866 argument is replaced with individual references to hardware registers.
10867 (save_fpregs_<mode>): Ditto
10868 (restore_gpregs_<mode>): Ditto
10869 (return_and_restore_gpregs_<mode>): Ditto
10870 (return_and_restore_fpregs_<mode>): Ditto
10871 (return_and_restore_fpregs_aix_<mode>): Ditto
10872
10873 2011-06-13 Jan Hubicka <jh@suse.cz>
10874
10875 * ipa-utils.c (postorder_stack): New structure.
10876 (ipa_reverse_postorder): Handle aliases.
10877
10878 2011-06-13 Jan Hubicka <jh@suse.cz>
10879
10880 * ipa-inline.c (reset_edge_caches): Walk aliases.
10881 (update_caller_keys): Do not test inlinability of aliases.
10882 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10883 (do_estimate_growth): Fix typo.
10884
10885 2011-06-13 Jan Hubicka <jh@suse.cz>
10886
10887 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10888 (can_remove_node_now_p): ... here; handle same comdat groups.
10889 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10890 (inline_call): Update use of can_remove_node_now_p.
10891
10892 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10893
10894 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10895 condition to disallow non-identical memory locations.
10896 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10897 preference to bit manipulation instructions.
10898
10899 2011-06-13 Jan Hubicka <jh@suse.cz>
10900
10901 * cgraph.c (cgraph_for_node_thunks_and_aliases,
10902 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10903 (nonremovable_p): New function.
10904 (cgraph_can_remove_if_no_direct_calls_p): New function.
10905 (used_from_object_file_p): New functoin.
10906 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
10907 references from aliases.
10908 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
10909 * ipa-inline.c (check_caller_edge): New function.
10910 (want_inline_function_called_once_p): Use it; accept aliases called
10911 once, too.
10912 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
10913
10914 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10915
10916 PR target/48454
10917 * config/arm/neon.md (vec_pack_trunc): Set the lengths
10918 correctly for the case with Quad vectors.
10919
10920 2011-06-13 Jakub Jelinek <jakub@redhat.com>
10921 Ira Rosen <ira.rosen@linaro.org>
10922
10923 PR tree-optimization/49352
10924 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
10925 all, make sure loop_use_stmt after the loop is a def stmt of a used
10926 SSA_NAME that is the only one defined inside of the loop. Don't
10927 check for COND_EXPR and GIMPLE_BINARY_RHS.
10928 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
10929 check_reduction is true.
10930
10931 2011-06-11 Jan Hubicka <jh@suse.cz>
10932
10933 PR middle-end/49373
10934 * ipa.c (cgraph_externally_visible_p): Check resolution info.
10935
10936 2011-06-11 Jan Hubicka <jh@suse.cz>
10937
10938 PR middle-end/48836
10939 * ipa-inline-transform.c: Include tree-pass.h
10940 (inline_transform): Set TODO_update_ssa_only_virtuals.
10941 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
10942
10943 2011-06-11 Jan Hubicka <jh@suse.cz>
10944
10945 PR middle-end/49378
10946 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
10947 aliases and thunks.
10948
10949 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
10950
10951 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
10952 Take number of iterations to peel into account for equally frequent
10953 misalignment values.
10954
10955 2011-06-11 Jan Hubicka <jh@suse.cz>
10956
10957 * lto-streamer-out.c (produce_symtab): Stream out the newly
10958 represented aliases.
10959
10960 2011-06-11 Jan Hubicka <jh@suse.cz>
10961
10962 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
10963 varying args.
10964 (ipa_update_after_lto_read): Likewise.
10965 (ipa_write_node_info): Do not sream call_with_var_arguments.
10966 (ipa_read_node_info): Likewise.
10967
10968 2011-06-11 Jan Hubicka <jh@suse.cz>
10969
10970 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
10971
10972 2011-06-11 Jan Hubicka <jh@suse.cz>
10973
10974 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
10975 (lto_symtab_resolve_can_prevail_p): Likewise.
10976 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
10977 * cgraph.c (same_body_aliases_done): New global var.
10978 (cgraph_same_body_alias_1): Rename to ...
10979 (cgraph_create_function_alias): ... this one; reorg to new
10980 representation.
10981 (cgraph_same_body_alias): Use cgraph_create_function_alias;
10982 record references when asked to.
10983 (cgraph_add_thunk): Fix formating.
10984 (cgraph_get_node): Kill same body alias code.
10985 (cgraph_node_for_asm): Likewise.
10986 (cgraph_remove_same_body_alias): Remove.
10987 (cgraph_remove_node): Kill same body alias code.
10988 (cgraph_mark_address_taken_node): Mark also the aliased function
10989 as having address taken.
10990 (dump_cgraph_node): Dump same body aliases.
10991 (cgraph_for_node_thunks_and_aliases): Update for new alias
10992 representation.
10993 (cgraph_for_node_and_aliases): Likewise.
10994 * cgraph.h (same_body): Kll pointer.
10995 (same_body_alias): Update comment.
10996 (same_body_aliases_done): Declare.
10997 (cgraph_remove_same_body_alias): Remove declaration.
10998 (cgraph_create_function_alias): Declare.
10999 (cgraph_process_same_body_aliases): Declare.
11000 (cgraph_function_with_gimple_body_p): Check for alias.
11001 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
11002 (cgraph_alias_aliased_node): New function.
11003 (cgraph_function_node): Update for new aliases.
11004 (cgraph_function_or_thunk_node): Likewise.
11005 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
11006 (inline_call): Remove dead aliases.
11007 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
11008 name hack for same body aliases.
11009 (clone_of_p): Look through aliases.
11010 (verify_cgraph_node): Verify aliases.
11011 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
11012 (cgraph_process_same_body_aliases): New function.
11013 (process_function_and_variable_attributes): Disable weakref warning on
11014 alias.
11015 (cgraph_analyze_functions): Handle aliases.
11016 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
11017 (assemble_thunks): Rename to ...
11018 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
11019 (cgraph_expand_function): Remove alias output code.
11020 (cgraph_output_in_order): Skip aliases.
11021 (cgraph_preserve_function_body_p): Aliases don't need preserving.
11022 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
11023 (ipa_record_reference): Do not assert on alias references.
11024 (ipa_ref_has_aliases_p): New function.
11025 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
11026 (ipa_ref_has_aliases_p): Declare.
11027 * lto-cgraph.c (lto_output_node): Handle aliases.
11028 (input_node): Likewise.
11029 * lto-streamer-out.c (lto_output): Skip aliases.
11030 (produce_symtab): Kill same_body_alias code.
11031 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
11032 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
11033 * ipa-inline.c (update_caller_keys): Walk aliases.
11034 (inline_small_functions): Fix thinko in previous patch.
11035 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
11036 (function_and_variable_visibility): Do not walk same body aliases.
11037 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
11038 (ipa_pta_execute): Use it.
11039
11040 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11041
11042 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
11043 (*vec_dupv2df): Rename from vec_dupv2df.
11044 (vec_dupv2df): New expander.
11045
11046 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11047
11048 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
11049
11050 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11051
11052 * config/i386/i386.md: Use default value in "isa" attribute.
11053 * config/i386/sse.md: Ditto.
11054 * config/i386/mmx.md: Ditto.
11055
11056 2011-06-10 Wei Guozhi <carrot@google.com>
11057
11058 PR target/45335
11059 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11060 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11061 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11062 related peephole2.
11063 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11064 related peephole2.
11065 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11066 (arm_legitimate_ldrd_p): New prototype.
11067 (arm_output_ldrd): New prototype.
11068 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11069 (arm_legitimate_ldrd_p): New function.
11070 (arm_output_ldrd): New function.
11071
11072 2011-06-10 David Li <davidxl@google.com>
11073
11074 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11075 * passes.c (passr_eq): New function.
11076 (create_pass_tab): New function.
11077 (pass_traverse): New function.
11078 (dump_one_pass): New function.
11079 (dump_pass_list): New function.
11080 (dump_passes): New function.
11081
11082 2011-06-10 Jan Hubicka <jh@suse.cz>
11083
11084 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
11085 setting the nothrow flag.
11086 * ipa-reference.c (propagate): Skip aliases.
11087 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
11088 (propagate_nothrow): Skip aliases; do not update cgraph.
11089 (local_pure_const): Do not update cgraph.
11090 * tree-profile.c (tree_profiling): Do fixup_cfg.
11091
11092 2011-06-10 Jan Hubicka <jh@suse.cz>
11093
11094 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
11095 (cgraph_local_node_p): ... here; handle aliases.
11096 (has_addr_references_p): Break out from ...;
11097 (cgraph_remove_unreachable_nodes) ... here.
11098
11099 2011-06-10 Jan Hubicka <jh@suse.cz>
11100
11101 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
11102 * common.opt (flag_inline_functions_called_once): Do not
11103 initialize to 1.
11104
11105 2011-06-10 Jan Hubicka <jh@suse.cz>
11106
11107 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
11108 (ipcp_initialize_node_lattices): Do not deal with aliases;
11109 Do not try to propagate through thunks.
11110 (ipcp_change_tops_to_bottom): Do not deal with aliases.
11111
11112 2011-06-10 Jan Hubicka <jh@suse.cz>
11113
11114 * ipa-prop.c (ipa_write_node_info): Stream jump functions
11115 for indirect calls.
11116 (ipa_read_node_info): Likewise.
11117
11118 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11119
11120 PR lto/49302
11121 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
11122 (build_and_insert_call): Likewise.
11123 (build_and_insert_ref): New.
11124 (gimple_expand_builtin_pow): Minor cleanup.
11125 (gimple_expand_builtin_cabs): New.
11126 (execute_cse_sincos): Add case for BUILT_IN_CABS.
11127
11128 2011-06-10 Jan Hubicka <jh@suse.cz>
11129
11130 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
11131 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
11132 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
11133 (ipcp_propagate_stage): Skip aliases when propagating.
11134 (ipcp_need_redirect_p): Skip aliases.
11135 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
11136 collect_callers_of_node.
11137 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
11138 for aliases.
11139 (ipa_compute_jump_functions): Look through aliases.
11140
11141 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11142
11143 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
11144
11145 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11146
11147 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
11148 Adjust comments.
11149 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
11150
11151 2011-06-10 Jan Hubicka <jh@suse.cz>
11152
11153 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
11154 Update call of gimple_get_virt_method_for_binfo.
11155 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
11156 refuse_thunks parameter.
11157 (gimple_fold_call): Update.
11158 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
11159
11160 2011-06-10 Jan Hubicka <jh@suse.cz>
11161
11162 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
11163 (not_all_callers_have_enough_arguments_p): ... this one; turn into
11164 worker for cgraph_for_node_and_aliases.
11165 (convert_callers_for_node): Break out from ...
11166 (convert_callers): ... here.
11167 (modify_function): Use collect_callers_of_node.
11168 (ipa_early_sra): Use cgraph_for_node_and_aliases.
11169
11170 2011-06-10 Richard Guenther <rguenther@suse.de>
11171
11172 PR tree-optimization/49361
11173 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
11174 when not already in gimple form.
11175
11176 2011-06-10 Richard Guenther <rguenther@suse.de>
11177
11178 PR bootstrap/49344
11179 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
11180 FOR_EACH_PHI_OR_STMT_USE.
11181
11182 2011-06-10 Jan Hubicka <jh@suse.cz>
11183
11184 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
11185 (clone_inlined_nodes): ... here.
11186 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
11187 to real destination prior inlining.
11188 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
11189 can_early_inline_edge_p, want_early_inline_function_p,
11190 want_early_inline_function_p, want_inline_small_function_p,
11191 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
11192 edge_badness, update_all_callee_keys, lookup_recursive_calls,
11193 add_new_edges_to_heap, inline_small_functions, flatten_function,
11194 inline_always_inline_functions, early_inline_small_functions): Use
11195 cgraph_function_or_thunk_node.
11196 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
11197 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
11198 (do_estimate_edge_growth_1): Break out from ...
11199 (do_estimate_growth) ... here; walk aliases.
11200 (inline_generate_summary): Skip aliases.
11201
11202 2011-06-10 Richard Guenther <rguenther@suse.de>
11203
11204 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
11205 forward when combining, visit inserted stmts when a stmt was changed.
11206
11207 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
11208
11209 * tree.h (error_operand_p): Add.
11210 * dbxout.c (dbxout_type_fields): Use the latter.
11211 * c-decl.c (add_stmt): Likewise.
11212 * gimplify.c (omp_add_variable, omp_notice_variable,
11213 gimplify_scan_omp_clauses): Likewise.
11214
11215 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
11216
11217 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
11218 when a value is actually passed in regs.
11219
11220 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
11221 Laurent Rougé <laurent.rouge@menta.fr>
11222
11223 * doc/invoke.texi (SPARC options): Add -mflat.
11224 * config/sparc/sparc.opt: Likewise.
11225 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11226 (sparc_flat_expand_prologue): Declare.
11227 (sparc_flat_expand_epilogue): Likewise.
11228 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11229 (CPP_ENDIAN_SPEC): Replace with...
11230 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
11231 (CPP_SPEC): Adjust to above change.
11232 (EXTRA_SPECS): Likewise.
11233 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11234 (INCOMING_REGNO): Likewise.
11235 (OUTGOING_REGNO): Likewise.
11236 (LOCAL_REGNO): Likewise.
11237 (SETUP_FRAME_ADDRESSES): Likewise.
11238 (FIXED_REGISTERS): Set 0 for %fp.
11239 (CALL_USED_REGISTERS): Likewise.
11240 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11241 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11242 (RETURN_ADDR_REGNUM): Define.
11243 (RETURN_ADDR_RTX): Use it.
11244 (INCOMING_RETURN_ADDR_REGNUM): Define.
11245 (INCOMING_RETURN_ADDR_RTX): Use it.
11246 (DWARF_FRAME_RETURN_COLUMN): Likewise.
11247 (EH_RETURN_REGNUM): Define.
11248 (EH_RETURN_STACKADJ_RTX): Use it.
11249 (EH_RETURN_HANDLER_RTX): Delete.
11250 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11251 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11252 Delete.
11253 (struct machine_function): Add frame_size, apparent_frame_size,
11254 frame_base_reg, frame_base_offset, n_global_fp_regs and
11255 save_local_in_regs_p fields.
11256 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11257 sparc_frame_base_offset, sparc_n_global_fp_regs,
11258 sparc_save_local_in_regs_p): New macros.
11259 (sparc_option_override): Error out if -fcall-saved-REG is specified
11260 for Out registers.
11261 (eligible_for_restore_insn): Fix formatting.
11262 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
11263 (eligible_for_sibcall_delay): Likewise.
11264 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11265 (sparc_legitimate_address_p): Adjust to above change.
11266 (save_global_or_fp_reg_p): New predicate.
11267 (return_addr_reg_needed_p): Likewise.
11268 (save_local_or_in_reg_p): Likewise.
11269 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
11270 (SORR_SAVE, SORR_RESTORE): Delete.
11271 (sorr_pred_t): New typedef.
11272 (sorr_act_t): New enum.
11273 (save_or_restore_regs): Rename to...
11274 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
11275 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11276 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
11277 mechanism. Add CFI information for double-word saves in 32-bit mode.
11278 (emit_adjust_base_to_offset): New function extracted from...
11279 (emit_save_or_restore_regs): ...this. Rename the rest to...
11280 (emit_save_or_restore_regs_global_fp_regs): ...this.
11281 (emit_save_or_restore_regs_local_in_regs): New function.
11282 (gen_create_flat_frame_[123]): New functions.
11283 (sparc_expand_prologue): Use SIZE local variable. Adjust.
11284 (sparc_flat_expand_prologue): New function.
11285 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11286 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
11287 (sparc_flat_expand_epilogue): New function.
11288 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11289 (output_return): Likewise.
11290 (output_sibcall): Likewise.
11291 (sparc_output_mi_thunk): Likewise.
11292 (sparc_frame_pointer_required): Likewise.
11293 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11294 function optimization.
11295 * config/sparc/sparc.md (flat): New attribute.
11296 (prologue): Add TARGET_FLAT handling.
11297 (save_register_window): Disable if TARGET_FLAT.
11298 (create_flat_frame_[123]): New patterns.
11299 (epilogue): Add TARGET_FLAT handling.
11300 (sibcall_epilogue): Likewise.
11301 (eh_return): New expander.
11302 (eh_return_internal): New insn and splitter.
11303 (return_internal): Add TARGET_FLAT handling.
11304 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
11305 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
11306 (nonlocal_goto): Add TARGET_FLAT handling.
11307 * config/sparc/t-elf: Add -mflat multilib.
11308 * config/sparc/t-leon: Likewise.
11309
11310 2011-06-10 Jan Hubicka <jh@suse.cz>
11311
11312 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
11313 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
11314 (self_recursive_p): Use cgraph_function_node.
11315 (propagate_pure_const): Likewise.
11316 (propagate_nothrow): Likewise.
11317 * ipa-reference.c (ipa_reference_get_not_read_global): Use
11318 cgraph_function_node.
11319 (propagate_bits): Likewise.
11320 (propagate): Likewise.
11321
11322 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11323 Richard Earnshaw <rearnsha@arm.com>
11324
11325 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
11326 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
11327 (*thumb2_movdi_vfp): Delete.
11328 (*arm_movdi_vfp_cortexa8): Delete.
11329 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
11330 (*movdi_vfp_cortexa8): Likewise.
11331
11332 2011-06-10 Richard Guenther <rguenther@suse.de>
11333
11334 * stor-layout.c (initialize_sizetypes): Give names to all
11335 sizetype kinds.
11336
11337 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
11338
11339 PR tree-optimization/49318
11340 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
11341 irrelevant pattern statements.
11342
11343 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11344
11345 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
11346
11347 PR bootstrap/49354
11348 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
11349 to last assignment.
11350
11351 2011-06-09 Jan Hubicka <jh@suse.cz>
11352
11353 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
11354 do not recompute reachable flag.
11355 (cgraph_finalize_function, cgraph_analyze_functions): Set
11356 redefined_extern_inline here.
11357
11358 2011-06-09 Jan Hubicka <jh@suse.cz>
11359
11360 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
11361 (cgraph_only_called_directly_p): ... this one; bring offline.
11362 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11363 varpool_used_from_object_file_p): Drop names from the declaratoin.
11364 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
11365 collect_callers_of_node): New.
11366 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
11367 (cgraph_edge_recursive_p): Use cgraph_function_node.
11368 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
11369 (cgraph_node_cannot_be_local_p_1): Break out from ...
11370 (cgraph_node_can_be_local_p): ... here; walk aliases.
11371 (cgraph_for_node_thunks_and_aliases): New function.
11372 (cgraph_for_node_and_aliases): New function.
11373 (cgraph_make_node_local_1): Break out from ...
11374 (cgraph_make_node_local) ... here; use
11375 cgraph_for_node_thunks_and_aliases.
11376 (cgraph_set_nothrow_flag_1): Break out from ...
11377 (cgraph_set_nothrow_flag) ... here;
11378 use cgraph_for_node_thunks_and_aliases.
11379 (cgraph_set_const_flag_1): Break out from ...
11380 (cgraph_set_const_flag) ... here;
11381 use cgraph_for_node_thunks_and_aliases.
11382 (cgraph_set_pure_flag_1): Break out from ...
11383 (cgraph_set_pure_flag) ... here;
11384 use cgraph_for_node_thunks_and_aliases.
11385 (cgraph_propagate_frequency_1): Break out from ...
11386 (cgraph_propagate_frequency) ... here; use
11387 cgraph_for_node_thunks_and_aliases.
11388 (cgraph_used_from_object_file_p): Do not care about aliases.
11389 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
11390 New functions.
11391 (collect_callers_of_node_1, collect_callers_of_node): New functions.
11392
11393 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11394
11395 PR rtl-optimization/49154
11396 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
11397 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
11398 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11399 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
11400 * config/cris/cris.h (cris_register_move_cost): Remove
11401 !TARGET_V32 code. Tweak comments.
11402
11403 2011-06-09 Jan Hubicka <jh@suse.cz>
11404
11405 * cgraphbuild.c (record_eh_tables): Mark personality function as having
11406 address taken.
11407
11408 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11409
11410 PR rtl-optimization/49154
11411 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
11412 is a matching slot in the hashtable, assign it to classes_ptr.
11413
11414 PR rtl-optimization/49154
11415 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
11416 register classes.
11417 * doc/tm.texi: Regenerate.
11418
11419 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
11420
11421 PR target/49307
11422 * config/sh/sh.md (UNSPEC_CHKADD): New.
11423 (chk_guard_add): New define_insn_and_split.
11424 (symGOT_load): Use chk_guard_add instead of blockage.
11425
11426 2011-06-09 Kai Tietz <ktietz@redhat.com>
11427
11428 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
11429
11430 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
11431
11432 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
11433
11434 2011-06-09 Wei Guozhi <carrot@google.com>
11435
11436 PR target/46975
11437 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
11438 (peephole2 for conditional move): Generate 16 bit instructions.
11439
11440 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
11441
11442 * config/i386/i386.md (*movdi_internal_rex64): Merge
11443 alternatives 6 and 8.
11444
11445 2011-06-09 David Li <davidxl@google.com>
11446
11447 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11448 * passes.c (passr_eq): New function.
11449 (create_pass_tab): New function.
11450 (pass_traverse): New function.
11451 (dump_one_pass): New function.
11452 (dump_pass_list): New function.
11453 (dump_passes): New function.
11454
11455 2011-06-09 David Li <davidxl@google.com>
11456
11457 * tree-complex.c (tree_lower_complex): Gate cleanup.
11458 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
11459 (execute_optimize_stdarg): Ditto.
11460 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
11461 (execute_cleanup_eh_1): Ditto.
11462 (execute_cleanup_eh): Ditto.
11463 * gcse.c (gate_rtl_pre): Ditto.
11464 (execute_rtl_pre): Ditto.
11465 * except.c (finish_eh_generation): Ditto.
11466 (convert_to_eh_region_ranges): Ditto.
11467 * cprop.c (one_cprop_pass): Ditto.
11468
11469 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
11470
11471 PR target/48673
11472 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
11473 in all basic blocks.
11474
11475 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11476
11477 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
11478 (HAVE_ENABLE_EXECUTE_STACK): Define.
11479 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
11480 (HAVE_ENABLE_EXECUTE_STACK): Define.
11481 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
11482 (HAVE_ENABLE_EXECUTE_STACK): Define.
11483 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
11484 (ENABLE_EXECUTE_STACK): Remove.
11485 (HAVE_ENABLE_EXECUTE_STACK): Define.
11486 [IN_LIBGCC2]: Don't include <windows.h>.
11487 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11488 (HAVE_ENABLE_EXECUTE_STACK): Define.
11489 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
11490 (HAVE_ENABLE_EXECUTE_STACK): Define.
11491 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
11492 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
11493 (HAVE_ENABLE_EXECUTE_STACK): Define.
11494 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
11495 (HAVE_ENABLE_EXECUTE_STACK): Define.
11496 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
11497 (HAVE_ENABLE_EXECUTE_STACK): Define.
11498 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11499 (HAVE_ENABLE_EXECUTE_STACK): Define.
11500 * config/alpha/alpha.c (alpha_trampoline_init): Test
11501 HAVE_ENABLE_EXECUTE_STACK.
11502 * config/i386/i386.c (ix86_trampoline_init): Likewise.
11503 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11504 (sparc64_initialize_trampoline): Likewise.
11505 * libgcc2.c [L_enable_execute_stack]: Remove.
11506 * system.h (ENABLE_EXECUTE_STACK): Poison.
11507 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
11508 * doc/tm.texi: Regenerate.
11509 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
11510
11511 2011-06-09 Jakub Jelinek <jakub@redhat.com>
11512
11513 PR middle-end/49308
11514 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
11515 variable. After resetting and rescanning insn continue with previous
11516 statement.
11517
11518 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11519
11520 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
11521 (gcc_cv_ld_hidden): Likewise.
11522 * configure: Regenerate.
11523 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
11524 (ix86_stack_protect_fail): Mark unused.
11525 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
11526 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
11527 [TARGET_MACHO]: Don't define.
11528 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
11529 (TARGET_STACK_PROTECT_FAIL): Likewise.
11530 (rs6000_stack_protect_fail): Mark unused.
11531 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11532 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
11533
11534 2011-06-08 Andi Kleen <ak@linux.intel.com>
11535
11536 * varasm.c (get_section): Print location of other conflict
11537 for section conflicts.
11538
11539 2011-06-08 Andi Kleen <ak@linux.intel.com>
11540
11541 * config/i386/driver-i386.c (host_detect_local_cpu):
11542 Add model 0x2d Intel CPU.
11543
11544 2011-06-08 Andi Kleen <ak@linux.intel.com>
11545
11546 * reginfo.c (global_regs_decl): Add.
11547 (globalize_reg): Add decl parameter. Compute location. Pass location
11548 to warnings and add inform. Store decl in global_regs_decl.
11549 * rtl.h (globalize_reg): Update prototype.
11550 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11551
11552 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
11553
11554 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11555
11556 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11557
11558 PR target/49305
11559 * config/sh/predicates.md (general_movsrc_operand): Check
11560 mode for memory with indexed address for QI and HImode.
11561 (general_movdst_operand): Likewise.
11562
11563 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
11564
11565 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11566
11567 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
11568
11569 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11570 (num_ssa_operands): Likewise.
11571 (op_iter_init_phiuse): Forward-declare.
11572 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11573
11574 2011-06-08 Nick Clifton <nickc@redhat.com>
11575
11576 * doc/invoke.texi (ARM Options): Update description of
11577 -mthumb-interwork.
11578
11579 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
11580
11581 * config/i386/driver-i386.c (host_detect_local_cpu): Support
11582 unknown Intel family 0x6 CPUs.
11583
11584 2011-06-08 Martin Jambor <mjambor@suse.cz>
11585
11586 * tree-sra.c (mark_rw_status): Removed.
11587 (analyze_access_subtree): New parameter parent instead of
11588 mark_read and mark_write, propagate from that.
11589
11590 2011-06-08 Julian Brown <julian@codesourcery.com>
11591
11592 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11593 for double-precision helper functions in hard-float mode if only
11594 single-precision arithmetic is supported in hardware.
11595
11596 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
11597
11598 PR rtl-optimization/49303
11599 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
11600 code_motion_path_driver returned 0 or 1.
11601 (sel_region_finish): Clear h_d_i_d.
11602
11603 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11604
11605 * config/sh/sh.c (prepare_move_operands): Set pic register
11606 appropriately for global and local dynamic tls models even
11607 if flag_pic is unset.
11608
11609 2011-06-07 Jason Merrill <jason@redhat.com>
11610
11611 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11612
11613 2011-06-07 Xinliang David Li <davidxl@google.com>
11614 * passes.c (enable_disable_pass): Handle assembler name.
11615 (is_pass_explicitly_enabled_or_disabled): Ditto.
11616
11617 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11618
11619 PR tree-optimization/48497
11620 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11621
11622 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11623
11624 PR tree-optimization/46728
11625 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11626 to use gimple_val_nonnegative_real_p.
11627 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11628 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11629
11630 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
11631
11632 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11633
11634 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
11635
11636 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11637 constant vectors.
11638
11639 2011-06-07 Richard Guenther <rguenther@suse.de>
11640
11641 * stor-layout.c (initialize_sizetypes): Initialize all
11642 sizetypes based on target definitions.
11643 (set_sizetype): Remove.
11644 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11645 * tree.h (set_sizetype): Remove.
11646
11647 2011-06-07 Nick Clifton <nickc@redhat.com>
11648
11649 * config.gcc: Unify V850 architecture options and add support for
11650 newer V850 architectures.
11651 * config/v850/t-v850e: Delete.
11652
11653 2011-06-07 Richard Guenther <rguenther@suse.de>
11654
11655 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11656 Call set_sizetype from here.
11657
11658 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
11659
11660 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11661 (*maddhisi4tb, *maddhisi4tt): New define_insns.
11662
11663 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
11664 Andrew Stubbs <ams@codesourcery.com>
11665
11666 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11667 multiplies.
11668 * doc/md.texi (Canonicalization of Instructions): Document widening
11669 multiply canonicalization.
11670
11671 2011-06-07 Jakub Jelinek <jakub@redhat.com>
11672
11673 PR gcov-profile/49299
11674 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11675
11676 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
11677
11678 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11679 a pointer.
11680 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11681 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11682 vect_recog_pow_pattern): Likewise.
11683 (vect_pattern_recog_1): Remove declaration.
11684 (widened_name_p): Remove declaration. Add new argument to specify
11685 whether to check that both types are either signed or unsigned.
11686 (vect_recog_widen_mult_pattern): Update documentation. Handle
11687 unsigned patterns and multiplication by constants.
11688 (vect_pattern_recog_1): Update vect_recog_func references. Use
11689 statement information from the statement returned from pattern
11690 detection functions.
11691 (vect_pattern_recog): Update vect_recog_func reference.
11692 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11693 multiplication by a constant use the type of the other operand.
11694
11695 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
11696
11697 PR rtl-optimization/49145
11698 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11699
11700 2011-06-06 Jakub Jelinek <jakub@redhat.com>
11701
11702 PR debug/49262
11703 * dwarf2out.c (native_encode_initializer): Decrement count in each
11704 iteration.
11705
11706 PR debug/49294
11707 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11708 non-MODE_INT modes.
11709
11710 PR c++/49264
11711 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11712 if stmt folded into nothing.
11713 * tree-inline.c (fold_marked_statements): If a builtin at the end of
11714 a bb folded into nothing, just update cgraph edges and move to next bb.
11715 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11716 to be NULL. Don't compute count and frequency if new_call is NULL.
11717
11718 2011-06-04 Diego Novillo <dnovillo@google.com>
11719
11720 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11721 (cgraph.o): Likewise.
11722 (cgraphunit.o): Likewise.
11723 * cgraphunit.c: Include lto-streamer.h
11724 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11725 if LTO is enabled.
11726 * lto-streamer-in.c (unpack_value_fields): Call
11727 streamer_hooks.unpack_value_fields if set.
11728 (lto_materialize_tree): For unhandled nodes, first try to
11729 call lto_streamer_hooks.alloc_tree, if it exists.
11730 (lto_input_ts_decl_common_tree_pointers): Move reading of
11731 DECL_INITIAL to lto_streamer_read_tree.
11732 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11733 (lto_streamer_read_tree): New.
11734 (lto_reader_init): Rename from lto_init_reader.
11735 Move initialization code to lto/lto.c.
11736 * lto-streamer-out.c (pack_value_fields): Call
11737 streamer_hooks.pack_value_fields if set.
11738 (lto_output_tree_ref): For tree nodes that are not normally indexable,
11739 call streamer_hooks.indexable_with_decls_p before giving up.
11740 (lto_output_ts_decl_common_tree_pointers): Move handling
11741 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11742 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11743 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
11744 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11745 (lto_streamer_write_tree): New.
11746 (lto_output): Call lto_streamer_init directly.
11747 (lto_writer_init): Remove.
11748 * lto-streamer.c (streamer_hooks): New.
11749 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11750 instead of lto_preload_common_nodes.
11751 (lto_is_streamable): Move from lto-streamer.h
11752 (lto_streamer_hooks_init): New.
11753 (streamer_hooks): New.
11754 (streamer_hooks_init): New.
11755 * lto-streamer.h (struct output_block): Forward declare.
11756 (struct lto_input_block): Likewise.
11757 (struct data_in): Likewise.
11758 (struct bitpack_d): Likewise.
11759 (struct streamer_hooks): Declare.
11760 (streamer_hooks): Declare.
11761 (lto_streamer_hooks_init): Declare.
11762 (lto_streamer_write_tree): Declare.
11763 (lto_streamer_read_tree): Declare.
11764 (streamer_hooks_init): Declare.
11765 (lto_is_streamable): Move to lto-streamer.c
11766
11767 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11768
11769 * longlong.h (smul_ppmm): The resulting register pair contains the
11770 higher order word first.
11771
11772 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11773
11774 PR tree-optimization/46728
11775 * builtins.c (powi_table): Remove.
11776 (powi_lookup_cost): Remove.
11777 (powi_cost): Remove.
11778 (expand_powi_1): Remove.
11779 (expand_powi): Remove.
11780 (expand_builtin_pow_root): Remove.
11781 (expand_builtin_pow): Remove.
11782 (expand_builtin_powi): Eliminate handling of constant exponent.
11783 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
11784
11785 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11786
11787 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
11788
11789 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11790
11791 * dce.c (reset_unmarked_insns_debug_uses): New.
11792 (delete_unmarked_insns): Skip debug insns.
11793 (prescan_insns_for_dce): Likewise.
11794 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
11795 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
11796 active reg can be found.
11797 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
11798 (convert_regs_1): Use it.
11799
11800 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11801
11802 * tree-pretty-print.c (dump_function_header): Add flags.
11803 Don't dump decl_uid with nouid.
11804 * tree-pretty-print.h (dump_function_header): Adjust.
11805 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
11806 * passes.c (pass_init_dump_file): Pass dump_flags on.
11807 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
11808
11809 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11810
11811 PR bootstrap/49270
11812 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
11813
11814 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
11815
11816 PR tree-optimization/49243
11817 * calls.c (setjmp_call_p): Also check if fndecl has the
11818 returns_twice attribute.
11819
11820 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11821
11822 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11823 -ffast-math etc.
11824
11825 2011-06-06 Richard Henderson <rth@redhat.com>
11826 Georg-Johann Lay <avr@gjlay.de>
11827
11828 PR target/42210
11829 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11830 New predicates.
11831 * config/avr/avr.md ("insv"): New insn expander.
11832 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11833 "*insv.not.io", "*insv.reg"): New insns.
11834
11835 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
11836
11837 PR target/49285
11838 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11839 to nonimmediate_operand from memory_operand for the operand that is to
11840 be forced to memory by the expander. Lose the constraints.
11841
11842 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
11843
11844 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11845 EH return when delayed branches are disabled.
11846
11847 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
11848
11849 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11850 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
11851 calculation.
11852 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11853 Simplify MODE_V1DF and MODE_V2SF handling.
11854 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11855 Simplify MODE_SF handling.
11856
11857 2011-06-04 Jan Hubicka <jh@suse.cz>
11858
11859 PR tree-optimization/48893
11860 PR tree-optimization/49091
11861 PR tree-optimization/49179
11862 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11863 Bounds check.
11864
11865 2011-06-04 Jan Hubicka <jh@suse.cz>
11866
11867 PR lto/48954
11868 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11869 bitmaps.
11870
11871 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
11872
11873 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11874
11875 2011-06-04 Jakub Jelinek <jakub@redhat.com>
11876
11877 PR target/49281
11878 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11879 to be strictly smaller than 1 << shiftcount.
11880
11881 2011-06-04 Jan Hubicka <jh@suse.cz>
11882
11883 PR tree-optimize/48929
11884 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11885 of empty predicate.
11886
11887 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
11888
11889 PR debug/48333
11890 * calls.c (emit_call_1): Prefer the __builtin declaration of
11891 builtin functions.
11892
11893 2011-06-03 Diego Novillo <dnovillo@google.com>
11894
11895 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11896 (lto_input_tree_pointers): Likewise.
11897 * lto-streamer-out.c (pack_value_fields): Likewise.
11898 (lto_output_tree_pointers): Likewise.
11899 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11900 and OPTIMIZATION_NODE.
11901
11902 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11903
11904 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
11905 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
11906 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
11907 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
11908 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
11909 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
11910 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
11911 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
11912 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
11913 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
11914 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
11915 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
11916 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
11917 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
11918 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
11919 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
11920 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
11921 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
11922 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
11923 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
11924 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
11925 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
11926 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
11927 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
11928 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
11929 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
11930 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
11931 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
11932 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
11933 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
11934 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
11935 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
11936 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
11937 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
11938 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
11939 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
11940 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
11941 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
11942 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
11943 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
11944 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
11945 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
11946 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
11947 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
11948 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
11949 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
11950 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
11951 * system.h (MD_UNWIND_SUPPORT): Poison.
11952 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
11953 * doc/tm.texi: Regenerate.
11954 * unwind-dw2.c: Include md-unwind-support.h instead of
11955 MD_UNWIND_SUPPORT.
11956 * config/ia64/unwind-ia64.c: Likewise.
11957 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
11958
11959 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
11960
11961 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
11962
11963 2011-06-03 Richard Henderson <rth@redhat.com>
11964 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11965
11966 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
11967 (sigill_hdlr): Correct insn, insn size.
11968 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
11969
11970 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11971
11972 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
11973 t-slibgcc-dummy.
11974 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
11975 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
11976 * config/mips/t-iris: Remove.
11977 * config/mips/t-irix6: New file.
11978 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
11979
11980 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11981
11982 * Makefile.in (LIB2ADDEHDEP): Remove.
11983 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
11984 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
11985 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
11986 * config/t-darwin (LIB2ADDEHDEP): Remove.
11987 * config/t-freebsd (LIB2ADDEHDEP): Remove.
11988 * config/t-linux (LIB2ADDEHDEP): Remove.
11989
11990 2011-06-03 Diego Novillo <dnovillo@google.com>
11991
11992 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
11993 (lto_register_var_decl_in_symtab): Likewise.
11994 (lto_register_function_decl_in_symtab): Likewise.
11995 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
11996 logic to uniquify_nodes.
11997
11998 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11999
12000 * config/alpha/t-osf5: Remove.
12001 * config/alpha/t-osf-pthread: Remove.
12002 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
12003 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
12004
12005 2011-06-03 Julian Brown <julian@codesourcery.com>
12006
12007 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
12008 (strongarm1110): Use strongarm tuning.
12009 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
12010 * config/arm/arm.c (arm_strongarm_tune): New.
12011 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12012 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
12013 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
12014 setting, using previous defaults or 1 for Cortex-A5.
12015 (arm_option_override): Set max_insns_skipped from current tuning.
12016
12017 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
12018
12019 * doc/install.texi (Options specification): Document --with-specs.
12020
12021 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12022
12023 * config/arm/neon.md (orndi3_neon): Actually split it.
12024
12025 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12026
12027 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
12028 * var-tracking.c (reverse_op): Limite recurse depth to 5.
12029
12030 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12031
12032 PR debug/47590
12033 * target.def (delay_sched2, delay_vartrack): New.
12034 * doc/tm.texi.in: Update.
12035 * doc/tm.texi: Rebuild.
12036 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
12037 * var-tracking.c (gate_handle_var_tracking): Likewise.
12038 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
12039 (bfin_flag_var_tracking): Drop.
12040 (output_file_start): Don't save and override flag_var_tracking.
12041 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
12042 (bfin_reorg): Test original variables.
12043 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12044 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
12045 (ia64_flag_var_tracking): Drop.
12046 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12047 (ia64_file_start): Don't save and override flag_var_tracking.
12048 (ia64_override_options_after_change): Ditto
12049 flag_schedule_insns_after_reload.
12050 (ia64_reorg): Test original variables.
12051 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
12052 (picochip_flag_var_tracking): Drop.
12053 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12054 (picochip_option_override): Don't save and override
12055 flag_schedule_insns_after_reload.
12056 (picochip_asm_file_start): Ditto flag_var_tracking.
12057 (picochip_reorg): Test original variables.
12058 * config/spu/spu.c (spu_flag_var_tracking): Drop.
12059 (TARGET_DELAY_VARTRACK): Define.
12060 (spu_var_tracking): New.
12061 (spu_machine_dependent_reorg): Call it.
12062 (asm_file_start): Don't save and override flag_var_tracking.
12063
12064 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
12065
12066 PR target/49163
12067 * config/sh/predicates.md (general_movsrc_operand): Return 0
12068 for memory and memory subreg of which address is an invalid
12069 indexed address for QI and HImode.
12070 (general_movdst_operand): Likewise.
12071
12072 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12073
12074 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
12075 edges only, when there is a non-local label in the function.
12076 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
12077
12078 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12079
12080 * config/i386/constraints.md (Y3): New register constraint.
12081 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
12082 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
12083 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
12084 *sse2_interleave_lowv2df.
12085
12086 2011-06-02 Julian Brown <julian@codesourcery.com>
12087
12088 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
12089 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
12090 (arm_cortex_a5_tune): New.
12091
12092 2011-06-02 Julian Brown <julian@codesourcery.com>
12093
12094 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
12095 * config/arm/arm.c (arm_default_branch_cost): New.
12096 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12097 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
12098 (arm_fa726_tune): Set branch_cost field using
12099 arm_default_branch_cost.
12100 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
12101 current_tune structure.
12102 * dojump.c (tm_p.h): Include file.
12103
12104 2011-06-02 Julian Brown <julian@codesourcery.com>
12105
12106 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
12107 tuning.
12108 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
12109 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
12110 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
12111 field.
12112 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
12113 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
12114 (arm_fa726te_tune): Add prefer_constant_pool setting.
12115 (arm_v6t2_tune, arm_cortex_tune): New.
12116 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
12117 prefer_constant_pool setting.
12118
12119 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12120
12121 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
12122 switch statement.
12123 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
12124 (*movdf_internal) <case 6,7,8>: Ditto.
12125
12126 * config/i386/constraints.md (Y4): New register constraint.
12127 * config/i386/sse.md (vec_set<mode>_0): Merge with
12128 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
12129 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
12130 *vec_extractv2di_1_sse.
12131 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
12132 and *vec_concatv2di_rex64_sse.
12133
12134 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
12135
12136 PR target/48807
12137 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
12138 of cgraph_local_info for null before attempting to use it.
12139
12140 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12141
12142 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
12143 (current_function_dynamic_alloc_count): Delete.
12144 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
12145 (expand_builtin_nonlocal_goto): Remove obsolete comment.
12146 (expand_builtin_update_setjmp_buf): Remove dead code.
12147 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
12148 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
12149 support.
12150 * function.c (instantiate_virtual_regs): Likewise.
12151 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
12152 for a block with a single abnormal incoming edge.
12153 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
12154 (SETJMP_VIA_SAVE_AREA): Delete.
12155 * config/sparc/sparc-protos.h (load_got_register): Declare.
12156 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
12157 (load_got_register): Make global.
12158 (sparc_frame_pointer_required): Add 'static'.
12159 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
12160 (sparc_builtin_setjmp_frame_value): New function.
12161 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
12162 (save_stack_nonlocal): New expander.
12163 (restore_stack_nonlocal): Likewise.
12164 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
12165 (nonlocal_goto_internal): New insn.
12166 (goto_handler_and_restore): Delete.
12167 (builtin_setjmp_setup): Likewise.
12168 (do_builtin_setjmp_setup): Likewise.
12169 (setjmp): Likewise.
12170 (builtin_setjmp_receiver): New expander.
12171
12172 2011-06-01 David Li <davidxl@google.com>
12173
12174 PR middle-end/49261
12175 * tree-pretty-print.c (dump_function_header): Format cleanup.
12176
12177 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
12178
12179 PR target/49238
12180 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
12181 needed when original operands are used for msw_skip comparison.
12182
12183 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12184
12185 PR debug/49250
12186 * var-tracking.c (add_uses, add_stores): Don't call
12187 cselib_subst_to_values on ENTRY_VALUE.
12188
12189 2011-06-01 Diego Novillo <dnovillo@google.com>
12190
12191 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
12192 output_record_start with LTO_null instead of output_zero.
12193 (lto_output_ts_binfo_tree_pointers): Likewise.
12194 (lto_output_tree): Likewise.
12195 (output_eh_try_list): Likewise.
12196 (output_eh_region): Likewise.
12197 (output_eh_lp): Likewise.
12198 (output_eh_regions): Likewise.
12199 (output_bb): Likewise.
12200 (output_function): Likewise.
12201 (output_unreferenced_globals): Likewise.
12202 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
12203 instead of NUM_TREE_CODES.
12204 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
12205 (lto_output_int_in_range): Change << to >> when shifting VAL.
12206
12207 2011-06-01 Diego Novillo <dnovillo@google.com>
12208
12209 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
12210 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
12211
12212 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12213
12214 PR target/45074
12215 * optabs.h (valid_multiword_target_p): Declare.
12216 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
12217 doing multi-word operations.
12218 * optabs.c (expand_binop): Likewise.
12219 (expand_doubleword_bswap): Likewise.
12220 (expand_absneg_bit): Likewise.
12221 (expand_unop): Likewise.
12222 (expand_copysign_bit): Likewise.
12223 (multiword_target_p): New function.
12224
12225 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12226
12227 PR rtl-optimization/48830
12228 PR rtl-optimization/48808
12229 PR rtl-optimization/48792
12230 * reload.c (push_reload): Check contains_reg_of_mode.
12231 * reload1.c (strip_paradoxical_subreg): New function.
12232 (gen_reload_chain_without_interm_reg_p): Use it to handle
12233 paradoxical subregs.
12234 (emit_output_reload_insns, gen_reload): Likewise.
12235
12236 2011-06-01 David Li <davidxl@google.com>
12237
12238 * predict.c : Change pass name
12239 * ipa.c: Ditto.
12240 * dce.c: Ditto.
12241 * tree-profile.c: Ditto.
12242 * except.c: Ditto.
12243
12244 2011-06-01 David Li <davidxl@google.com>
12245
12246 * tree-pretty-print.c (dump_function_header): New function.
12247 * final.c (rest_of_clean_state): Use header dumper.
12248 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12249 * passes.c (pass_init_dump_file): Use header dumper.
12250
12251 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12252
12253 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12254 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12255 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12256 New functions.
12257 (mem_loc_descriptor): Use them.
12258
12259 * var-tracking.c (create_entry_value): New function.
12260 (vt_add_function_parameter): Use it.
12261
12262 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12263
12264 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12265 Include <signal.h>, <ucontext.h>.
12266 (sigill_caught): Define.
12267 (sigill_hdlr): New function.
12268 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12269 insns can be executed.
12270 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12271 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12272
12273 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12274
12275 * config/t-slibgcc-darwin: Move to ...
12276 * config/t-slibgcc-dummy: ... this. Clarify comments.
12277 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12278 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12279 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12280 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
12281 Remove i386/t-crtstuff from tmake_file.
12282 (i[34567]86-*-solaris2*): Remove t-svr4,
12283 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12284 t-slibgcc-dummy.
12285 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12286 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12287 sparc/t-crtfm from tmake_file.
12288 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12289 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12290 Remove extra_parts.
12291 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12292 * config/i386/t-nwld (SHLIB_LINK): Remove.
12293 * config/i386/t-rtems-i386: Rename to ...
12294 * config/i386/t-rtems: ... this.
12295 ($(T)crti.o, $(T)crtn.o): Remove.
12296 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12297 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12298 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12299 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12300 EXTRA_MULTILIB_PARTS): Remove.
12301 * config/sparc/t-sol2-64: Likewise.
12302 * config/sparc/t-sol2: Remove.
12303 * config/sparc/t-crtin: Remove.
12304 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
12305 * config/i386/gmon-sol2.c: Remove.
12306 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
12307 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
12308 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
12309 * config/i386/sol2-gc1.asm: Remove.
12310 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
12311 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
12312 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
12313 * config/t-slibgcc-sld: Remove.
12314
12315 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12316
12317 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
12318 base_type_for_mode with op_mode instead of mode.
12319
12320 2011-06-01 Paul Brook <paul@cpodesourcery.com>
12321
12322 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
12323 Cortex-A15.
12324 * config/arm/arm-tune.md: Regenerate.
12325 * config/arm/arm-tables.opt: Regenerate.
12326 * config/arm/arm.c (FL_DIV): Rename...
12327 (FL_THUMB_DIV): ... to this.
12328 (FL_ARM_DIV): Define.
12329 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
12330 (arm_arch_hwdiv): Remove.
12331 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
12332 (arm_issue_rate): Add cortexr5.
12333 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
12334 __ARM_ARCH_EXT_IDIV__.
12335 (TARGET_IDIV): Define.
12336 (arm_arch_hwdiv): Remove.
12337 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
12338 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
12339 (divsi3, udivsi3): New patterns.
12340 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
12341 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
12342
12343 2011-06-01 Martin Jambor <mjambor@suse.cz>
12344
12345 * ipa-utils.c (ipa_dfs_info): New field scc_no.
12346 * ipa-utils.c (searchc): Set scc_no.
12347
12348 2011-06-01 Martin Jambor <mjambor@suse.cz>
12349
12350 * ipa-utils.c (searchc_env): New field allow_overwritable.
12351 (searchc): do not ignore edges to overwritable nodes if indicated
12352 by env->allow_overwritable.
12353 (ipa_reduced_postorder): Set env.allow_overwritable.
12354
12355 2011-06-01 Richard Guenther <rguenther@suse.de>
12356
12357 * tree.c (free_lang_data): Do not reset boolean_type_node nor
12358 char_type_node.
12359 * lto-streamer.c (lto_record_common_node): Take node pointer,
12360 do not register types.
12361 (lto_preload_common_nodes): Explicitly skip preloading nodes
12362 that differ between frontends.
12363
12364 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12365
12366 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
12367 NON_FLOAT_REGS.
12368
12369 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12370
12371 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
12372 parameter value for dump. Dump cost on outermost call only.
12373 (rs6000_memory_move_cost): Dump cost on outermost call only.
12374
12375 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12376
12377 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
12378 DW_OP_GNU_convert ops.
12379
12380 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
12381 cselib_preserve_constants.
12382 (cselib_lookup_1): If cselib_preserve_constants,
12383 a new VALUE is being created for REG and there is a VALUE for the
12384 same register in wider mode, add another loc with lowpart SUBREG of
12385 the wider VALUE.
12386 (cselib_subst_to_values): Handle ENTRY_VALUE.
12387 * var-tracking.c (replace_expr_with_values): Return NULL for
12388 ENTRY_VALUE too.
12389 * dwarf2out.c (convert_descriptor_to_signed): New function.
12390 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
12391 instead of two shifts.
12392 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
12393 the right mode if needed.
12394 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
12395 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
12396 convert_descriptor_to_signed.
12397 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
12398 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
12399
12400 PR target/48688
12401 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
12402
12403 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12404
12405 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
12406 of X87MODEI12 and SWI48x instead of SSEMODEI24.
12407 (SWI248x): New mode iterator, rename from X87MODEI.
12408 (X87MODEI): Remove mode iterator.
12409 (X87MODEI12): Ditto.
12410 (SSEMODEI24): Ditto.
12411
12412 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12413
12414 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
12415 * doc/invoke.texi: Document max-vartrack-expr-depth.
12416 * var-tracking.c (EXPR_DEPTH): New.
12417 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
12418
12419 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12420
12421 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
12422 * config/i386/sse.md: Add n to negated FMA pattern names.
12423
12424 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12425
12426 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
12427
12428 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12429
12430 * gengtype-state.c (read_state_params_structs): Initialize previous.
12431
12432 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12433
12434 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
12435 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
12436
12437 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12438
12439 * config/i386/i386.md (*movtf_internal): Avoid allocating general
12440 registers. Penalize F*r->o alternative to prevent partial memory
12441 stalls. Slightly penalize *roF->*r alternative. Generate SSE
12442 CONST_DOUBLE immediates when optimizing function for size. Do not move
12443 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12444 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
12445 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
12446 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
12447 alternatives.
12448 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
12449
12450 (fp_register_operand splitters): Use fp_register_operand
12451 constraint. Do not use FP_REG_P in insn condition.
12452 (any_fp_register_operand splitters): Use any_fp_register_operand
12453 constraint. Do not use ANY_FP_REG_P in insn condition.
12454
12455 2011-05-31 Jan Hubicka <jh@suse.cz>
12456
12457 * cgraph.h (cgraph_inline_failed_t): Give enum a name
12458 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
12459 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
12460 (lto_output_edge): Use output_enum and var_len_unsigned.
12461 (lto_output_varpool_node): Likewise.
12462 (input_overwrite_node): Do not take resolution parameter;
12463 extract it from a bitpack.
12464 (input_node): Do not read resolution; use input_enum and
12465 var_len_unsigned.
12466 (input_varpool_node): Likewise.
12467 (input_edge): Likewise.
12468 (input_cgraph_1): Likewise.
12469
12470 2011-05-31 Richard Guenther <rguenther@suse.de>
12471
12472 * gimple.c (gimple_register_canonical_type): Do not register
12473 any types via gimple_register_type.
12474
12475 2011-05-31 Jan Hubicka <jh@suse.cz>
12476
12477 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
12478 of thunks.
12479
12480 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12481
12482 PR rtl-optimization/49235
12483 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
12484 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
12485
12486 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
12487
12488 PR tree-optimization/49093
12489 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
12490 data references.
12491
12492 2011-05-31 Dodji Seketeli <dodji@redhat.com>
12493
12494 PR debug/49047
12495 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
12496 for concrete functions containing the code of cloned functions.
12497
12498 2011-05-31 Richard Guenther <rguenther@suse.de>
12499
12500 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
12501 to ...
12502 (forward_propagate_into_comparison_1): ... this.
12503 (forward_propagate_comparison): Rename to ...
12504 (forward_propagate_into_comparison): ... this. Split out
12505 real forward propagation code to ...
12506 (forward_propagate_comparison): ... this.
12507 (forward_propagate_into_gimple_cond): Remove looping.
12508 (forward_propagate_into_cond): Likewise.
12509 (simplify_not_neg_expr): Return whether we have done something.
12510 (simplify_gimple_switch): Likewise.
12511 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
12512 (ssa_forward_propagate_and_combine): ... this. Re-structure
12513 to do a forward forward-propagation walk on BBs and a backward
12514 stmt combining walk on BBs. Consistently re-scan changed statements.
12515 (pass_forwprop): Adjust.
12516
12517 2011-05-30 Ian Lance Taylor <iant@google.com>
12518
12519 * godump.c (go_format_type): Correct length of name added to
12520 obstack for anonymous field.
12521
12522 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
12523
12524 PR target/49186
12525 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
12526 part of the second operand is 0.
12527
12528 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
12529
12530 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12531 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
12532 to memory for !TARGET_MEMORY_MISMATCH_STALL.
12533 (*movdf_internal_rex64): Do not penalize F->r alternative.
12534 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12535 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
12536 when optimizing function for size. Do not move CONST_DOUBLEs
12537 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12538 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
12539 SUBREGs. Do not check for MEM_P operands in the insn condition,
12540 check for ANY_FP_REGNO_P instead.
12541 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12542 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12543 function for speed.
12544 * config/i386/i386.c (ix86_option_override_internal): Do not
12545 set TARGET_INTEGER_DFMODE_MOVES here.
12546
12547 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
12548
12549 PR target/49168
12550 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12551
12552 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12553
12554 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12555 DW_TAG_rvalue_reference_type even for
12556 -gdwarf-4 -fno-debug-types-section.
12557
12558 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12559
12560 PR tree-optimization/46728
12561 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12562 (build_and_insert_binop): New.
12563 (gimple_expand_builtin_pow): Reorder args for
12564 build_and_insert_call; use build_and_insert_binop; add more
12565 optimizations for fractional exponents.
12566
12567 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
12568
12569 PR bootstrap/49190
12570
12571 Revert:
12572 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12573
12574 * tree.h (struct tree_identifier): Inherit from tree_typed, not
12575 tree_common.
12576 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12577 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12578 TS_BASE instead of TS_COMMON.
12579 * varasm.c (assemble_name): Remove assert.
12580
12581 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
12582
12583 * config.gcc: Keep obselete list sorted.
12584
12585 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12586 Eric Botcazou <ebotcazou@adacore.com>
12587
12588 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12589 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12590 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12591 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12592 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12593
12594 2011-05-30 Richard Guenther <rguenther@suse.de>
12595
12596 * gimple.c (gimple_types_compatible_p_1): Compare record
12597 and union type members properly.
12598
12599 2011-05-30 Richard Guenther <rguenther@suse.de>
12600
12601 PR tree-optimization/49210
12602 * ipa-split.c (split_function): Care for the case where the call
12603 result is not trivially convertible to the result holding variable.
12604
12605 2011-05-30 Richard Guenther <rguenther@suse.de>
12606
12607 PR tree-optimization/49218
12608 * tree-vrp.c (adjust_range_with_scev): Properly check whether
12609 overflow occured.
12610
12611 2011-05-30 Richard Guenther <rguenther@suse.de>
12612
12613 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12614 New function split out from ...
12615 (forward_propagate_into_gimple_cond): ... here. Adjust.
12616 (forward_propagate_into_cond): Likewise.
12617 (forward_propagate_comparison): Also propagate into
12618 comparisons on assignment RHS. Change return value to
12619 behave similar to forward_propagate_into_cond.
12620 (tree_ssa_forward_propagate_single_use_vars): Handle
12621 strict-overflow warnings properly for forward_propagate_comparison.
12622
12623 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12624
12625 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12626 from plugin linker.
12627 * configure: Regenerate.
12628
12629 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
12630
12631 PR tree-optimization/49199
12632 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12633 non-reduction operands are either defined in the loop or by induction.
12634
12635 2011-05-29 Xinliang David Li <davidxl@google.com>
12636
12637 * opts-global.c (handle_common_deferred_options): Handle new options.
12638 * passes.c (register_one_dump_file): Call register_pass_name.
12639 (execute_one_pass): Check explicit enable/disable flag.
12640 (passr_hash): New function.
12641 (passr_eq): Ditto.
12642 (register_pass_name): Ditto.
12643 (get_pass_by_name): Ditto.
12644 (pass_hash): Ditto.
12645 (pass_eq): Ditto.
12646 (enable_pass): Ditto.
12647 (disable_pass): Ditto.
12648 (is_pass_explicitly_enabled_or_disabled): Ditto.
12649
12650 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
12651
12652 * config/i386/i386.md (*movoi_internal_avx): Use
12653 standard_sse_constant_opcode for alternative 0.
12654 (*movti_internal_sse): Ditto.
12655 (*movti_internal_rex64): Use standard_sse_constant_opcode for
12656 alternative 2.
12657 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12658 sselog1 type moves.
12659 (*movsi_internal): Ditto.
12660 (*movdi_internal): Ditto. Add ssecvt type moves.
12661
12662 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
12663
12664 PR target/48830
12665 * rtlanal.c (simplify_subreg_regno): Adjust comment.
12666
12667 2011-05-29 Jakub Jelinek <jakub@redhat.com>
12668
12669 PR rtl-optimization/49095
12670 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12671 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12672
12673 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12674
12675 PR target/43995
12676 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12677 recurse_p argument. Only follow register copies if it is set,
12678 and prevent mips_find_pic_call_symbol from recursing.
12679 (mips_find_pic_call_symbol): Add a recurse_p argument.
12680 Pass it to mips_pic_call_symbol_from_set.
12681 (mips_annotate_pic_calls): Update accordingly.
12682
12683 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12684
12685 * emit-rtl.c (try_split): Use a loop to search for
12686 NOTE_INSN_CALL_ARG_LOCATIONs.
12687
12688 2011-05-29 Richard Guenther <rguenther@suse.de>
12689
12690 PR tree-optimization/49217
12691 * ipa-pure-const.c (propagate_pure_const): Fix typos.
12692
12693 2011-05-28 Jan Hubicka <jh@suse.cz>
12694
12695 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12696 length.
12697 (string_slot_free): Remove
12698 (create_output_block): Initialize obstack.
12699 (destroy_output_block): Free obstack.
12700 (lto_string_index): Add PERSISTENT parameter; do not duplicate
12701 the string unless it needs to be added into the hash.
12702 (lto_output_string_with_length): Add persistent attribute;
12703 handle NULL strings.
12704 (lto_output_string): Add PERSISTENT parameter.
12705 (output_string_cst, output_identifier): Simplify.
12706 (lto_output_location_bitpack): Update.
12707 (lto_output_builtin_tree): Update.
12708 * lto-streamer.h (struct output_block): Add obstack.
12709 (lto_output_string, lto_output_string_with_length): Remove
12710 declarations; functions are static now.
12711
12712 2011-05-28 Jan Hubicka <jh@suse.cz>
12713
12714 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12715 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12716 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12717 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12718 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12719 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12720 unpack_ts_decl_with_vis_value_fields,
12721 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12722 lto_get_builtin_tree): Use enum and variable length i/o.
12723 * basic-block.h (profile_status_d): Add PROFILE_LAST.
12724 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12725 New functions.
12726 (bp_pack_enum, bp_unpack_enum): New macros.
12727
12728 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12729
12730 * genrecog.c: Remove redundant forward declarations.
12731
12732 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12733
12734 * config.gcc: Deprecate mips*-*-openbsd*.
12735
12736 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12737
12738 PR bootstrap/49195
12739 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12740 for match_op_dup.
12741
12742 2011-05-27 Andrew Pinski <pinskia@gmail.com>
12743
12744 PR middle-end/48981
12745 * gengtype.c (vec_prefix_type): New function.
12746 (note_def_vec): Use vec_prefix_type and change the length
12747 attribute to be based on the prefix.
12748 * vec.c: Include coretypes.h before vec.h.
12749 (struct vec_prefix): Remove.
12750 (vec_gc_p_reserve): Change the offsetof to sizeof.
12751 (vec_gc_p_reserve_exact): Likewise.
12752 (vec_heap_p_reserve): Likewise.
12753 (vec_heap_p_reserve_exact): Likewise.
12754 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
12755 (vec_stack_p_reserve): Change the offsetof to sizeof.
12756 (vec_stack_p_reserve_exact): Likewise.
12757 * vec.h (struct vec_prefix): New struct definition.
12758 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
12759 (VEC_T_GTY(T,B)): Likewise.
12760 (DEF_VEC_FUNC_P(T)): Use prefix field.
12761 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
12762 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
12763
12764 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12765
12766 PR tree-optimization/46728
12767 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
12768 (powi_as_mults): Add gimple_set_location.
12769 (build_and_insert_call): New.
12770 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
12771 0.5, 0.25, 0.75, 1./3., or 1./6.
12772
12773 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
12774
12775 * doc/contrib.texi: Update copyright years.
12776 (Contributors): Add Zdenek Sojka.
12777
12778 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
12779
12780 * c-decl.c (c_push_function_context): Copy the current statement
12781 list stack.
12782 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
12783 (finish_struct): Call building_stmt_list_p instead of checking
12784 cur_stmt_list.
12785 * c-parser.c (c_parser_postfix_expression): Likewise.
12786 * c-typeck.c (c_end_compound_stmt): Likewise.
12787 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
12788 * tree-iterator.c (stmt_list_cache): Change to a VEC.
12789 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
12790 (free_stmt_list): Likewise.
12791 * tree.h (struct tree_statement_list): Include typed_tree instead
12792 of tree_common.
12793 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
12794 as TS_TYPED instead of TS_COMMON.
12795
12796 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12797 Uros Bizjak <ubizjak@gmail.com>
12798
12799 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
12800 (HAVE_AS_IX86_TLSGDPTL): Define.
12801 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
12802 (HAVE_AS_IX86_TLSLDMPLT): Define.
12803 * configure: Regenerate.
12804 * config.in: Regenerate.
12805 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
12806 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12807 TARGET_SUN_TLS, use @tlsgdplt or @plt.
12808 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
12809 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
12810 @tlsldmplt or @plt.
12811 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
12812
12813 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
12814
12815 * sched-int.h (struct _haifa_deps_insn_data): New members cond
12816 and reverse_cond.
12817 (INSN_COND, INSN_REVERSE_COND): New macros.
12818 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12819 once.
12820 (sched_get_condition_with_rev): Cache the results, and look them up
12821 if possible.
12822 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12823 are clobbered by the current insn.
12824 * target.def (exposed_pipline): New sched data hook.
12825 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12826 * doc/tm.texi: Regenerate.
12827
12828 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12829
12830 PR tree-optimization/49170
12831 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
12832 sincos or cexp.
12833
12834 2011-05-27 Richard Guenther <rguenther@suse.de>
12835
12836 PR middle-end/49189
12837 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12838 of comparisons.
12839
12840 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
12841
12842 * haifa-sched.c (sched_scan_info): Remove.
12843 (schedule_block): Call sched_extend_luids rather than sched_init_luids
12844 with NULL args.
12845 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12846 Remove functions.
12847 (sched_scan): Remove.
12848 (sched_extend_luids): Renamed from luids_extend_insn and no longer
12849 static. All callers changed.
12850 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12851 static. All callers changed.
12852 (sched_init_luids): Remove all arguments except the first. All
12853 callers changed. Don't use sched_scan.
12854 (haifa_init_h_i_d): Likewise.
12855 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12856 manually rather than using sched_init_luids. Likewise with
12857 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12858 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12859 rather than sched_init_luids with NULL args.
12860 * sel-sched-ir.c (new_insns): Remove variable.
12861 (sched_scan): New static function, previously in haifa-sched.c. Remove
12862 all arguments but the first two; all callers changed.
12863 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12864 rather than sched_init_luids.
12865 (sel_init_bbs): Remove second argument. All callers changed.
12866 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12867 with NULL arguments.
12868 (create_insn_rtx_from_pattern): Likewise.
12869 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12870 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12871 (sched_init_insn_luid, sched_extend_luids): Declare.
12872 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12873 declarations.
12874
12875 2011-05-27 Richard Guenther <rguenther@suse.de>
12876
12877 PR middle-end/49177
12878 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12879 A CMP B ? (T) true : (T) false for non-integral types T again.
12880
12881 2011-05-27 Jan Hubicka <jh@suse.cz>
12882
12883 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12884 so 0 means NULL string.
12885 (lto_output_string_with_length): ... here.
12886 (lto_output_string, output_string_cst, output_identifier): Update
12887 handling of NULL strings.
12888 (lto_output_location_bitpack): New function.
12889 (lto_output_location): Use it.
12890 (lto_output_tree_ref): Use output_record_start.
12891 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12892 len values.
12893 * lto-streamer-in.c (string_for_index): Break out from ...; offset
12894 values by 1.
12895 (input_string_internal): ... here;
12896 (input_string_cst, input_identifier, lto_input_string): Update handling
12897 of NULL strings.
12898 (lto_input_location_bitpack): New function
12899 (lto_input_location): Use it.
12900 (unpack_ts_type_common_value_fields): Pack align & alias in var len
12901 values.
12902 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12903 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12904 (bp_pack_value): Sanity check the value range.
12905 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
12906 New functions.
12907 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
12908 New functions.
12909
12910 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
12911
12912 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
12913 call_arg_location instructions down the floor.
12914
12915 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
12916
12917 PR rtl-optimization/49154
12918 * ira.c (setup_pressure_classes): Process class without sublcasses
12919 as a candidate for pressure classes.
12920
12921 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
12922
12923 PR rtl-optimization/48575
12924 * genrecog.c (position_type): New enum.
12925 (position): New structure.
12926 (decision): Use position structure instead of a string.
12927 (root_pos, peep2_insn_pos_list): New variables.
12928 (next_position, compare_positions): New functions.
12929 (new_decision): Use position structures instead of strings.
12930 (maybe_both_true): Likewise.
12931 (change_state): Likewise.
12932 (write_tree): Likewise.
12933 (make_insn_sequence): Likewise.
12934
12935 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12936
12937 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
12938 TS_BASE instead of TS_COMMON.
12939 (find_decls_types_r): Check for TS_TYPED structure before looking at
12940 TREE_TYPE.
12941 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
12942 Add chain field.
12943 (BLOCK_CHAIN): Use new chain field.
12944
12945 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
12946
12947 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
12948 moves expensive on Power7 also.
12949
12950 2011-05-26 Richard Guenther <rguenther@suse.de>
12951
12952 * fold-const.c (fold_unary_loc): Remove bogus code.
12953
12954 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12955
12956 * tree.h (struct tree_identifier): Inherit from tree_typed, not
12957 tree_common.
12958 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12959 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12960 TS_BASE instead of TS_COMMON.
12961 * varasm.c (assemble_name): Remove assert.
12962
12963 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
12964
12965 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
12966 substituted first.
12967 * libgcc-std.ver: Delete file.
12968
12969 2011-05-26 Richard Guenther <rguenther@suse.de>
12970
12971 PR tree-optimization/48702
12972 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
12973 only when we know the base address is within bounds.
12974 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
12975 assume the base address of TARGET_MEM_REFs is in bounds.
12976
12977 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12978
12979 PR target/49099
12980 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
12981 declaration in TARGET_SOLARIS.
12982
12983 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
12984
12985 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
12986 The instruction is then expanded explicitly.
12987 (supported_compare): Callable instruction.
12988 (compare): Likewise.
12989
12990 2011-05-26 Jakub Jelinek <jakub@redhat.com>
12991
12992 PR c++/49165
12993 * gimplify.c (shortcut_cond_r): Don't special case
12994 COND_EXPRs if they have void type on one of their arms.
12995
12996 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
12997
12998 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
12999 to reduce duplication, and to achieve a slightly more logical order
13000 of operations.
13001
13002 2011-05-26 Jakub Jelinek <jakub@redhat.com>
13003
13004 PR tree-optimization/49161
13005 * tree-vrp.c (struct case_info): New type.
13006 (compare_case_labels): Sort case_info structs instead of
13007 trees, and not primarily by CASE_LABEL uids but by
13008 label_for_block indexes.
13009 (find_switch_asserts): Put case labels into struct case_info
13010 array instead of TREE_VEC, adjust sorting, compare label_for_block
13011 values instead of CASE_LABELs.
13012
13013 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13014
13015 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
13016 ("orndi3_neon"): Likewise.
13017 ("bic<mode>3_neon"): Likewise.
13018
13019 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
13020
13021 PR tree-optimization/49038
13022 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
13023 Ensure at least one epilogue iteration if required by data
13024 accesses with gaps.
13025 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13026 to mark loops that require peeling for gaps.
13027 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
13028 (vect_get_known_peeling_cost): Take peeling for gaps into
13029 account.
13030 (vect_transform_loop): Generate epilogue if required by data
13031 access with gaps.
13032 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
13033 loop as requiring an epilogue if there are gaps in the end of
13034 the strided group.
13035
13036 2011-05-25 Ian Lance Taylor <iant@google.com>
13037
13038 * godump.c (go_format_type): Output the first field with a usable
13039 Go type, if any.
13040
13041 2011-05-25 Ian Lance Taylor <iant@google.com>
13042
13043 * godump.c (go_format_type): Check for invalid type names, pointer
13044 target types, and struct field types.
13045
13046 2011-05-25 Jason Merrill <jason@redhat.com>
13047
13048 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
13049
13050 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
13051
13052 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
13053
13054 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13055
13056 * config/i386/i386.md (*movqi_extv_1)): Put back
13057 "register_operand" check in "type" calculation.
13058 (*movqi_extzv_2): Likewise.
13059
13060 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13061
13062 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
13063
13064 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13065
13066 PR bootstrap/49160
13067 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
13068 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
13069 __divxc3, __divtc3): Wrap definitions in #ifndef.
13070
13071 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13072
13073 PR target/49142
13074 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
13075 "register_operand" check and replace q_regs_operand with
13076 QIreg_operand in "type" calculation.
13077 (*movqi_extv_1): Likewise.
13078 (*movqi_extzv_2_rex64): Likewise.
13079 (*movqi_extzv_2): Likewise.
13080
13081 * config/i386/predicates.md (QIreg_operand): New.
13082
13083 2011-05-25 Richard Guenther <rguenther@suse.de>
13084
13085 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13086 type-based offset disambiguation, streamline MEM_REF and
13087 TARGET_MEM_REF handling.
13088
13089 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13090
13091 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
13092 (bdesc_special_args): Add pause intrinsic.
13093
13094 * config/i386/i386.md (UNSPEC_PAUSE): New.
13095 (pause): Likewise.
13096 (*pause): Likewise.
13097 * config/i386/ia32intrin.h (__pause): Likewise.
13098
13099 * doc/extend.texi (X86 Built-in Functions): Add documentation for
13100 pause intrinsic.
13101
13102 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13103
13104 PR tree-optimization/46728
13105 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
13106 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
13107
13108 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
13109
13110 * tree.h (struct tree_exp): Inherit from struct tree_typed.
13111 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
13112 instead of TS_COMMON.
13113
13114 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13115
13116 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
13117 LIBGCC2_GNU_PREFIX is defined.
13118 (__N): New macro.
13119 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
13120 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
13121 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
13122 __clz_tab): Define using __N.
13123 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
13124 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
13125 * target.def (libfunc_gnu_prefix): New hook.
13126 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
13127 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
13128 * doc/tm.texi: Regenerate.
13129 * system.h (LIBGCC2_GNU_PREFIX): Poison.
13130 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
13131 account.
13132 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
13133 (init_optabs): Likewise for the bswap libfuncs.
13134 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
13135 and divide.
13136 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
13137 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
13138 * libgcc-std.ver: Remove.
13139 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
13140 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
13141 libgcc-std.ver.
13142 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13143 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
13144 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
13145 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
13146 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
13147 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13148 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13149 * config/fixed-bit.h (FIXED_OP): Define differently depending on
13150 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
13151 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
13152
13153 2011-05-25 Jan Hubicka <jh@suse.cz>
13154
13155 * lto-streamer-out.c (output_record_start): Use lto_output_enum
13156 (lto_output_tree): Use output_record_start.
13157 * lto-streamer-in.c (input_record_start): Use lto_input_enum
13158 (lto_get_pickled_tree): Use input_record_start.
13159 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
13160 (lto_value_range_error): New function.
13161 * lto-streamer.h (lto_value_range_error): Declare.
13162 (lto_output_int_in_range, lto_input_int_in_range): New functions.
13163 (lto_output_enum, lto_input_enum): New macros.
13164
13165 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
13166
13167 * common.opt (flag_stack_usage_info): New variable.
13168 (-Wstack-usage): New option.
13169 * doc/invoke.texi (Warning options): Document -Wstack-usage.
13170 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
13171 <OPT_fstack_usage>: Likewise.
13172 * toplev.c (output_stack_usage): Handle -Wstack-usage.
13173 * calls.c (expand_call): Test flag_stack_usage_info variable instead
13174 of flag_stack_usage.
13175 (emit_library_call_value_1): Likewise.
13176 * explow.c (allocate_dynamic_stack_space): Likewise.
13177 * function.c (instantiate_virtual_regs ): Likewise.
13178 (prepare_function_start): Likewise.
13179 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
13180 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
13181 * config/arm/arm.c (arm_expand_prologue): Likewise.
13182 (thumb1_expand_prologue): Likewise.
13183 * config/avr/avr.c (expand_prologue): Likewise.
13184 * config/i386/i386.c (ix86_expand_prologue): Likewise.
13185 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13186 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
13187 * config/mips/mips.c (mips_expand_prologue): Likewise.
13188 * config/pa/pa.c (hppa_expand_prologue): Likewise.
13189 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13190 * config/s390/s390.c (s390_emit_prologue): Likewise.
13191 * config/sh/sh.c (sh_expand_prologue): Likewise.
13192 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13193 * config/spu/spu.c (spu_expand_prologue): Likewise.
13194
13195 2011-05-25 Richard Guenther <rguenther@suse.de>
13196
13197 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
13198 (gimple_canonical_types_compatible_p): Likewise.
13199
13200 2011-05-25 Jan Hubicka <jh@suse.cz>
13201
13202 PR middle-end/49062
13203 * ipa.c (function_and_variable_visibility): Only add to same
13204 comdat group list if DECL_ONE_ONLY.
13205
13206 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
13207
13208 PR rtl-optimization/49014
13209 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
13210
13211 2011-05-25 Jakub Jelinek <jakub@redhat.com>
13212
13213 PR target/49128
13214 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13215
13216 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13217
13218 PR rtl-optimization/48757
13219 * ira-build.c (loop_with_eh_edge_p): Rename to
13220 loop_with_complex_edge_p, check edges on complexity, make function
13221 conditional.
13222 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13223 conditional.
13224
13225 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13226
13227 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13228 force flag_ira_share_save_slots to 0.
13229
13230 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13231
13232 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13233 (vt_initialize): Set PROLOGUE_BB unconditionally.
13234 Add block comment about CFA_BASE_RTX machinery.
13235 Reset FP_CFA_OFFSET to -1 on all invalid paths.
13236 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13237
13238 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
13239
13240 PR objc/48187
13241 * c-parser.c (c_parser_objc_class_instance_variables): More robust
13242 parsing of syntax error in ObjC instance variable lists. In
13243 particular, avoid an infinite loop if there is a stray ']'.
13244 Updated error message.
13245
13246 2011-05-24 Ian Lance Taylor <iant@google.com>
13247
13248 * godump.c (go_define): Don't accept a string immediately after
13249 another operand.
13250
13251 2011-05-24 Ian Lance Taylor <iant@google.com>
13252
13253 * godump.c (struct godump_container): Add invalid_hash field.
13254 (go_format_type): Return false if type is found in invalid_hash.
13255 (go_output_typedef): Add invalid type to invalid_hash.
13256 (go_finish): Create and delete invalid_hash.
13257
13258 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13259
13260 PR tree-optimization/46728
13261 * tree-ssa-math-opts.c (powi_table): New.
13262 (powi_lookup_cost): New.
13263 (powi_cost): New.
13264 (powi_as_mults_1): New.
13265 (powi_as_mults): New.
13266 (gimple_expand_builtin_powi): New.
13267 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13268 (gate_cse_sincos): Remove sincos/cexp restriction.
13269
13270 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13271
13272 PR target/3746
13273 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13274 mips-tdump native.
13275 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13276 * mips-tdump.c: Likewise.
13277
13278 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
13279
13280 PR target/49128
13281 * config/i386/driver-i386.c (host_detect_local_cpu): Always
13282 add -mno-XXX. Handle FMA.
13283
13284 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13285
13286 PR rtl-optimization/48633
13287 * ira-build.c (loop_with_eh_edge_p): New function.
13288 (mark_loops_for_removal): Use it.
13289
13290 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13291
13292 PR rtl-optimization/48971
13293 * ira.c (setup_pressure_classes): Don't check register move cost
13294 for classes with one registers. Don't add pressure class if there
13295 is a pressure class with the same available hard registers.
13296 Check contains_reg_of_mode. Fix a typo in collecting
13297 temp_hard_regset. Ignore hard registers not belonging to a class.
13298
13299 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
13300
13301 PR target/49133
13302 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
13303
13304 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13305 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13306
13307 PR gcov-profile/48845
13308 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
13309
13310 2011-05-24 Richard Guenther <rguenther@suse.de>
13311
13312 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
13313 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
13314 (gimple_types_compatible_p_1): Adjust.
13315 (iterative_hash_canonical_type): Do not bother about complete vs.
13316 incomplete types.
13317 (gimple_canonical_types_compatible_p): Likewise.
13318
13319 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13320
13321 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
13322
13323 2011-05-24 Richard Guenther <rguenther@suse.de>
13324
13325 PR bootstrap/49078
13326 * gimple.c (gimple_register_canonical_type): Revert
13327 previous change.
13328 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
13329 does not for a tree for the case where it matters. Cache
13330 pointer-type alias-sets.
13331
13332 2011-05-24 Joseph Myers <joseph@codesourcery.com>
13333
13334 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
13335 (OBJS): Remove options.o, opts-common.o and prefix.o.
13336 (OBJS-libcommon-target): New.
13337 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
13338 (BACKEND): Include libcommon-target.a.
13339 (MOSTLYCLEANFILES): Include libcommon-target.a.
13340 (libcommon-target.a): New.
13341 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
13342 prefix.o.
13343
13344 2011-05-23 Joseph Myers <joseph@codesourcery.com>
13345
13346 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
13347 parts of output shared with the driver.
13348 * optc-gen.awk: Don't generate parts of output not shared with the
13349 driver.
13350 * opth-gen.awk: Remove GCC_DRIVER conditionals.
13351 * doc/options.texi (SourcerInclude): Mention options-save.c.
13352 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
13353 (OBJS): Add options-save.o.
13354 (options-save.c, options-save.o): New.
13355 (options.o): Update dependencies.
13356 (gcc-options.o): Remove.
13357 (mostlyclean): Remove options-save.c.
13358
13359 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13360
13361 PR debug/49032
13362 * dbxout.c: Include cgraph.h.
13363 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
13364 and without value expr, return NULL if no varpool node exists for
13365 it or if it is not needed.
13366 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
13367
13368 PR c/49120
13369 * c-decl.c (start_decl): Convert expr to void_type_node.
13370
13371 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
13372
13373 PR rtl-optimization/48826
13374 * emit-rtl.c (try_split): When splitting a call that is followed
13375 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
13376
13377 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13378
13379 * cfgexpand.c (expand_debug_expr): For unused non-addressable
13380 parameters passed in memory prefer using DECL_INCOMING_RTL over
13381 the pseudos it will be copied into.
13382
13383 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
13384
13385 PR target/47315
13386 * config/i386/i386.c (ix86_option_override_internal): Save the
13387 initial options after checking vzeroupper.
13388
13389 2011-05-23 David Li <davidxl@google.com>
13390
13391 PR tree-optimization/48988
13392 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
13393 Initialize has_valid_pred for each pred chain.
13394
13395 2011-05-23 Richard Guenther <rguenther@suse.de>
13396
13397 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
13398 (iterative_hash_gimple_type): Always hash type names.
13399
13400 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
13401
13402 * c-typeck.c (build_function_call_vec): Tweak call to
13403 check_function_arguments.
13404
13405 2011-05-23 Richard Guenther <rguenther@suse.de>
13406
13407 PR tree-optimization/49115
13408 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
13409 is not necessarily carried out, do not claim it kills the ref.
13410 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
13411
13412 2011-05-23 Richard Guenther <rguenther@suse.de>
13413
13414 PR middle-end/15419
13415 * builtins.c (fold_builtin_memory_op): Be less restrictive about
13416 what pointer types we accept for folding.
13417
13418 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13419
13420 * gthr-gnat.c: Remove.
13421 * gthr-gnat.h: Remove.
13422 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
13423 * config/t-freebsd (LIB2ADDEH): Likewise.
13424 * config/t-linux (LIB2ADDEH): Likewise.
13425 * config/t-sol2 (LIB2ADDEH): Likewise.
13426 * config/ia64/t-vms (LIB2ADDEH): Likewise.
13427 * configure.ac (target_thread_file): Remove gnat handling.
13428 * configure: Regenerate.
13429 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
13430
13431 2011-05-23 Tristan Gingold <gingold@adacore.com>
13432 Eric Botcazou <ebotcazou@adacore.com>
13433
13434 * gcov.c (create_file_names): If no object directory is specified,
13435 keep the directory of the file.
13436
13437 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13438
13439 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
13440 * configure: Regenerate.
13441
13442 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13443
13444 PR middle-end/48973
13445 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
13446 failed and the comparison has a single bit signed type, use
13447 constm1_rtx instead of const1_rtx for true value.
13448 (do_store_flag): If ops->type is single bit signed type, disable
13449 signel bit test optimization and pass -1 instead of 1 as last
13450 parameter to emit_store_flag_force.
13451
13452 2011-05-23 Tom de Vries <tom@codesourcery.com>
13453
13454 PR target/45098
13455 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
13456 function.
13457 (infer_loop_bounds_from_undefined): Use new function.
13458
13459 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13460
13461 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
13462 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
13463 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
13464 and -O0 otherwise.
13465 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
13466
13467 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13468
13469 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
13470 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13471 returns true.
13472
13473 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13474
13475 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
13476
13477 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13478
13479 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
13480 UNSPEC_MOVE_PIC pattern.
13481
13482 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13483
13484 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
13485 (sparc-*-rtems*): Likewise.
13486 (sparc64-*-elf*): Likewise.
13487 (sparc64-*-rtems*): Likewise.
13488 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
13489 * config/sparc/t-crtin: New file.
13490 * config/sparc/t-sol2 (crti.o): Delete rule.
13491 (crtn.o): Likewise.
13492 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
13493 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13494 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
13495 (ENDFILE_SPEC): Add crtn.o.
13496
13497 2011-05-22 Tom de Vries <tom@codesourcery.com>
13498
13499 PR middle-end/48689
13500 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
13501 CODE_CONTAINS_STRUCT (TS_COMMON).
13502
13503 2011-05-22 Jakub Jelinek <jakub@redhat.com>
13504
13505 PR middle-end/49029
13506 * expmed.c (extract_fixed_bit_field): Test whether target can be used
13507 only after deciding which mode to use.
13508
13509 2011-05-22 Tom de Vries <tom@codesourcery.com>
13510
13511 PR target/45098
13512 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
13513 for call to get_shiftadd_cost.
13514
13515 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
13516
13517 PR target/49104
13518 * config/i386/cpuid.h (bit_MMXEXT): New define.
13519
13520 2011-05-22 Nick Clifton <nickc@redhat.com>
13521
13522 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
13523 initialisation of non-existant args[2] element. Use args[] array
13524 not arg[] array to pass arguments to build_function_type_list.
13525
13526 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
13527
13528 PR tree-optimization/49087
13529 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
13530
13531 2011-05-21 Jason Merrill <jason@redhat.com>
13532
13533 PR c++/49092
13534 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13535 static storage duration.
13536
13537 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13538
13539 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13540 frame pointer.
13541
13542 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13543
13544 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13545 false if there are call-saved registers here...
13546 (sparc_can_use_return_insn_p): ...but here instead.
13547 (save_or_restore_regs): Fix thinko.
13548 (sparc_expand_prologue): Use current_function_is_leaf.
13549 (sparc_frame_pointer_required): Likewise.
13550
13551 2011-05-21 Nick Clifton <nickc@redhat.com>
13552
13553 PR target/49098
13554 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13555
13556 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
13557
13558 * gengtype.c (walk_type): Implemented "atomic" GTY option.
13559 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13560
13561 2011-05-21 Joseph Myers <joseph@codesourcery.com>
13562
13563 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
13564 * optc-gen.awk: Move common code to opt-read.awk.
13565 * opth-gen.awk: Likewise.
13566 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13567
13568 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
13569
13570 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13571
13572 2011-05-20 Tom de Vries <tom@codesourcery.com>
13573
13574 PR target/45098
13575 * tree-ssa-loop-ivopts.c: Include expmed.h.
13576 (get_shiftadd_cost): New function.
13577 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
13578
13579 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13580
13581 PR bootstrap/49086
13582 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13583 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13584
13585 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13586
13587 * Makefile.in: Update comment referring to $(OBJS-common).
13588
13589 2011-05-20 Ian Lance Taylor <iant@google.com>
13590
13591 * godump.c (go_output_typedef): Put enum constants in the macro
13592 hash table to avoid duplicate Go const definitions.
13593
13594 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13595
13596 * Makefile.in (LIBDEPS): Add libcommon.a.
13597 (LIBS): Likewise.
13598 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13599 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13600 pretty-print.o and version.o.
13601 (OBJS-libcommon): New.
13602 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13603 (BACKEND): Add libcommon.a.
13604 (MOSTLYCLEANFILES): Likewise.
13605 (libcommon.a): New.
13606 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13607 (cpp$(exeext)): Likewise.
13608 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13609 pretty-print.o and input.o.
13610 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13611 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13612 (errors.o): Remove.
13613 (mips-tfile): Don't explicitly use version.o.
13614 (mips-tdump): Likewise.
13615 (gcov.o): Depend on $(DIAGNOSTIC_H).
13616 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13617 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13618 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13619 * gcov-dump.c: Include intl.h and diagnostic.h.
13620 (main): Initialize diagnostics.
13621 * gcov.c: Include diagnostic.h.
13622 (fnotice): Remove.
13623 (main): Initialize diagnostics.
13624 * lto-wrapper.c: Include diagnostic.h.
13625 (main): Initialize diagnostics.
13626
13627 2011-05-20 Michael Matz <matz@suse.de>
13628
13629 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13630
13631 2011-05-20 Michael Matz <matz@suse.de>
13632 Richard Guenther <rguenther@suse.de>
13633
13634 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13635 use lto_streamer_cache_append directly instead of returning a VEC.
13636 (preload_common_node): Remove.
13637 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13638 track seen nodes.
13639 (lto_streamer_cache_create): Call lto_preload_common_nodes.
13640
13641 2011-05-20 Richard Guenther <rguenther@suse.de>
13642
13643 PR tree-optimization/49079
13644 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13645 MEM_REFs correctly for the trailing array access detection.
13646 Special case constants the same way as decls for overall size
13647 constraining.
13648
13649 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
13650
13651 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13652 argument expansion.
13653
13654 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13655
13656 PR tree-optimization/49073
13657 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13658 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13659 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13660
13661 2011-05-20 Richard Guenther <rguenther@suse.de>
13662
13663 PR middle-end/48849
13664 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13665 of pointer types the same way the middle-end does.
13666
13667 2011-05-20 Richard Guenther <rguenther@suse.de>
13668
13669 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13670 or pointer-to chains. Delay all fixup to uniquify_nodes.
13671
13672 2011-05-19 Quentin Neill <quentin.neill@amd.com>
13673
13674 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13675 (fma4_fmaddsub): Likewise
13676
13677 2011-05-19 Jan Hubicka <jh@suse.cz>
13678
13679 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13680 (GIMPLE_TYPE_PAIR_SIZE): New macro.
13681 (type_pair_cache): New static var.
13682 (lookup_type_pair): Use fixed sized custom hash; make inline.
13683 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13684 calls of lookup_type_pair.
13685 (print_gimple_types_stats): Remove cache stats.
13686 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13687 and gtc_ob.
13688
13689 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
13690
13691 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13692 when TARGET_RDRND is active.
13693 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13694 Generate dummy SImode target register when target is NULL.
13695
13696 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13697
13698 * config/arm/arm-fpus.def: New.
13699 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13700 arm-fpus.def.
13701 * config/arm/arm-tables.opt: Regenerate.
13702 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13703 (arm_option_override): Don't decode FPU name to string here.
13704 * config/arm/arm.opt (mfpu=): Use Enum.
13705 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13706 Update dependencies.
13707
13708 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13709
13710 * collect2.c: Include diagnostic.h.
13711 (fatal_perror, fatal, error, fancy_abort): Remove.
13712 (main): Set progname. Call xmalloc_set_program_name and
13713 diagnostic_initialize.
13714 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13715 scan_libraries, resolve_lib_name): Call fatal_error instead of
13716 fatal and fatal_perror.
13717 * collect2.h (error, fatal, fatal_perror): Don't declare.
13718 * tlink.c: Include diagnostic-core.h.
13719 (recompile_files): Call fatal_error instead of fatal_perror.
13720 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13721 pretty-print.o and input.o.
13722 (collect2.o, tlink.o): Update dependencies.
13723
13724 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13725
13726 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13727
13728 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13729
13730 PR target/40483
13731 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13732 COMDAT group syntax, both SPARC and x86 variants.
13733 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13734 * configure: Regenerate.
13735 * config/sol2.h (TARGET_SOLARIS): Define.
13736 (PUSHSECTION_FORMAT): Remove.
13737 (SECTION_NAME_FORMAT): Define.
13738 * config/sol2.c: Include hashtab.h.
13739 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13740 expansion, using SECTION_NAME_FORMAT.
13741 (solaris_comdat_htab): New variable.
13742 (struct comdat_entry): Define.
13743 (comdat_hash): New function.
13744 (comdat_eq): New function.
13745 (solaris_elf_asm_comdat_section): New function.
13746 (solaris_define_comdat_signature): New function.
13747 (solaris_code_end): New function.
13748 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13749 (solaris_code_end): Declare.
13750 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13751 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
13752 solaris_code_end.
13753 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
13754 Remove ATTRIBUTE_UNUSED.
13755 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
13756 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
13757 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
13758 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
13759 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
13760 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
13761 (PUSHSECTION_FORMAT): Remove.
13762 (SECTION_NAME_FORMAT): Redefine.
13763
13764 2011-05-19 Kai Tietz <ktietz@redhat.com>
13765
13766 * tree-cfg.c (verify_gimple_assign_binary): Barf on
13767 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
13768 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
13769
13770 2011-05-19 Anatoly Sokolov <aesok@post.ru>
13771 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13772
13773 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
13774
13775 2011-05-19 Richard Guenther <rguenther@suse.de>
13776
13777 PR middle-end/48985
13778 * tree-object-size.c (addr_object_size): If the pointed-to
13779 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
13780
13781 2011-05-19 Richard Guenther <rguenther@suse.de>
13782
13783 * gimple.c (gimple_types_compatible_p_1): Compare names of
13784 the types themselves.
13785 (iterative_hash_gimple_type): And hash them that way.
13786 (gimple_register_type_1): If we register a main variant properly
13787 initialize the leader to ourselves.
13788
13789 2011-05-19 Tom de Vries <tom@codesourcery.com>
13790
13791 PR target/45098
13792 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
13793 get_loop_invariant_expr_id.
13794 (get_loop_invariant_expr_id): Use get_expr_id.
13795 (parm_decl_cost): New function.
13796 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
13797 Improve bound cost estimation. Use different inv_expr_id for elim and
13798 express cases.
13799
13800 2011-05-19 Tom de Vries <tom@codesourcery.com>
13801
13802 PR target/45098
13803 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
13804 cost_base.cost == 0.
13805
13806 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
13807
13808 PR target/49002
13809 * config/i386/sse.md
13810 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
13811 load cast.
13812
13813 2011-05-18 Jakub Jelinek <jakub@redhat.com>
13814
13815 PR tree-optimization/49039
13816 * tree-vrp.c (extract_range_from_binary_expr): For
13817 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13818 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13819
13820 2011-05-18 Tom de Vries <tom@codesourcery.com>
13821
13822 PR target/45098
13823 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13824
13825 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
13826
13827 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13828 (*tls_global_dynamic_64): Ditto.
13829 (*tls_local_dynamic_base_32_gnu): Ditto.
13830 (*tls_local_dynamic_base_64): Ditto.
13831 (tls_initial_exec_64_sun): Ditto.
13832
13833 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
13834
13835 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13836 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13837 bf592-none.
13838 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13839 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13840 * config/bfin/bfin.c (bfin_cpus): Add bf592.
13841 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13842 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13843 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13844 * config/bfin/elf.h (LIB_SPEC): Add bf592.
13845
13846 2011-05-18 Joseph Myers <joseph@codesourcery.com>
13847
13848 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13849 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13850 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13851 target_thread_pointer, arm_structure_size_boundary, struct
13852 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13853 struct abi_name, arm_all_abis): Remove.
13854 (arm_option_override) Don't process most enumerated option values here.
13855 Don't process target_fpe_name here. Work with integer not string for
13856 structure size boundary; use separate diagnostics for each case.
13857 * config/arm/arm.h (enum float_abi_type, enum
13858 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13859 to arm-opts.h.
13860 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13861 arm_structure_size_boundary): Remove.
13862 * config/arm/arm.opt (mabi=): Use Enum and Init.
13863 (arm_abi_type): New Enum and EnumValue entries.
13864 (mfloat-abi=): Use Enum and Init.
13865 (float_abi_type): New Enum and EnumValue entries.
13866 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13867 (mfp16-format=): Use Enum and Init.
13868 (arm_fp16_format_type): New Enum and EnumValue entries.
13869 (mstructure-size-boundary=): Use UInteger and Init.
13870 (mtp=): Use Enum and Init.
13871 (arm_tp_type): New Enum and EnumValue entries.
13872
13873 2011-05-18 Richard Guenther <rguenther@suse.de>
13874
13875 PR tree-optimization/49018
13876 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13877 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13878 gimple_has_side_effects.
13879
13880 2011-05-18 Richard Guenther <rguenther@suse.de>
13881
13882 * gimple.c (gimple_register_type_1): New function, split out from ...
13883 (gimple_register_type): ... here. Avoid infinite recursion.
13884
13885 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
13886
13887 PR tree-optimization/41881
13888 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13889 reduction_chains along with a macro for its access.
13890 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13891 (destroy_loop_vec_info): Free reduction chains.
13892 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13893 (vect_is_slp_reduction): New function.
13894 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13895 (vect_create_epilog_for_reduction): Support SLP reduction chains.
13896 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13897 definition types for reduction chains.
13898 (vect_supported_load_permutation_p): Don't allow permutations for
13899 reduction chains.
13900 (vect_analyze_slp_instance): Support reduction chains.
13901 (vect_analyze_slp): Try to build SLP instance from reduction chains.
13902 (vect_get_constant_vectors): Handle reduction chains.
13903 (vect_schedule_slp_instance): Mark the first statement of the
13904 reduction chain as reduction.
13905
13906 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
13907
13908 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
13909 names for group elements access.
13910 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
13911 reduction chains as well. Remove data reference and interleaving
13912 related words from the fields names.
13913 * tree-vect-loop.c (vect_transform_loop): Use new names for group
13914 elements access.
13915 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
13916 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
13917 vect_update_interleaving_chain, vect_same_range_drs,
13918 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
13919 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
13920 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
13921 vect_analyze_group_access, vect_analyze_data_ref_access,
13922 vect_create_data_ref_ptr, vect_transform_strided_load,
13923 vect_record_strided_load_vectors): Likewise.
13924 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
13925 vect_model_load_cost, vectorizable_store, vectorizable_load,
13926 vect_remove_stores, new_stmt_vec_info): Likewise.
13927 * tree-vect-slp.c (vect_build_slp_tree,
13928 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
13929
13930 2011-05-18 Richard Guenther <rguenther@suse.de>
13931
13932 PR middle-end/48989
13933 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
13934 operand verification.
13935 (verify_gimple_assign_binary): Likewise.
13936 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
13937 to non-1-precision BOOLEAN_TYPEs.
13938
13939 2011-05-18 Tom de Vries <tom@codesourcery.com>
13940
13941 PR target/45098
13942 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
13943
13944 2011-05-18 Jakub Jelinek <jakub@redhat.com>
13945
13946 PR tree-optimization/49000
13947 * tree-ssa.c (execute_update_addresses_taken): Call
13948 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
13949 be rewritten and decl has been marked for renaming, reset
13950 the debug stmt.
13951
13952 2011-05-17 Joseph Myers <joseph@codesourcery.com>
13953
13954 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
13955 enum_opts_set when testing if attributes have set -mfpmath=.
13956
13957 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
13958
13959 * config/mips/mips.c (mips_handle_option): Remove unused variable.
13960
13961 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
13962
13963 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
13964 info->entry with 0
13965 * tree-inline.c (maybe_inline_call_in_expr): Initialize
13966 id.transform_lang_insert_block with NULL.
13967
13968 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
13969
13970 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
13971 (output_fp_compare): Change args 3 and 4 to bool.
13972 (ix86_expand_call): Change arg 6 to bool.
13973 (ix86_attr_length_immediate_default): Change arg 2 to bool.
13974 (ix86_attr_length_vex_default): Change arg 3 to bool.
13975 * config/i386/i386.md: Update all uses.
13976 * config/i386/i386.c: Ditto.
13977 (ix86_flags_dependent): Change return type to bool.
13978
13979 2011-05-17 Richard Guenther <rguenther@suse.de>
13980
13981 * gimple.c (type_hash_pair_compare): Fix comparison.
13982
13983 2011-05-17 Richard Guenther <rguenther@suse.de>
13984
13985 * gimple.c (iterative_hash_gimple_type): Simplify singleton
13986 case some more, fix final hash value of the non-singleton case.
13987
13988 2011-05-17 Richard Guenther <rguenther@suse.de>
13989
13990 PR bootstrap/49013
13991 Revert
13992 2011-05-16 Richard Guenther <rguenther@suse.de>
13993
13994 * gimple.c (gimple_types_compatible_p_1): Use names of the
13995 type itself, not its main variant.
13996 (iterative_hash_gimple_type): Likewise.
13997
13998 2011-05-17 Richard Guenther <rguenther@suse.de>
13999
14000 * gimple.c (gimple_register_canonical_type): Use the main-variant
14001 leader for computing the canonical type.
14002
14003 2011-05-17 Nick Clifton <nickc@redhat.com>
14004
14005 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
14006 moves.
14007
14008 * config/rx/rx.md: Add peephole to remove redundant extensions
14009 after loads.
14010 (bitset_in_memory): Use rx_restricted_mem_operand.
14011 (bitinvert_in_memory): Likewise.
14012 (bitclr_in_memory): Likewise.
14013
14014 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
14015 Nick Clifton <nickc@redhat.com>
14016
14017 * config/rx/rx.md: Add peepholes to match a register move followed
14018 by a comparison of the moved register. Replace these with an
14019 addition of zero that does both actions in one instruction.
14020
14021 2011-05-17 Jakub Jelinek <jakub@redhat.com>
14022
14023 PR target/48986
14024 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
14025 predicate to allow CONST_INT.
14026 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
14027
14028 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14029
14030 * opts-common.c (opt_enum_arg_to_value): New.
14031 * opts.h (opt_enum_arg_to_value): Declare.
14032 * config/i386/i386.opt (fpmath): Remove.
14033 (mfpmath=): Use Enum, Init and Save.
14034 (fpmath_unit): New Enum and EnumValue entries.
14035 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
14036 name for function fpmath state.
14037 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
14038 * config/i386/i386.c: Include diagnostic.h.
14039 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
14040 (ix86_target_string): Take enum fpmath_unit value instead of string.
14041 (ix86_debug_options): Update call to ix86_target_string.
14042 (ix86_option_override_internal): Don't process fpmath strings here.
14043 (x86_function_specific_save, ix86_function_specific_restore):
14044 Don't handle fpmath state specially.
14045 (ix86_function_specific_print): Pass fpmath state to
14046 ix86_target_string instead of printing in this function.
14047 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
14048 Handle enum attributes.
14049 (IX86_ATTR_ENUM, ix86_opt_enum): New.
14050 (ix86_valid_target_attribute_tree): Update option_strings
14051 handling. Handle fpmath as enum option.
14052 (ix86_can_inline_p): Update field names for function fpmath state.
14053 (ix86_expand_builtin): Update call to ix86_target_string.
14054 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
14055 (ix86_fpmath): Remove.
14056 * config/i386/t-i386 (i386.o): Update dependencies.
14057
14058 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14059
14060 PR preprocessor/48677
14061 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
14062 from decoded_options[0], not from itself.
14063
14064 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
14065
14066 * config/i386/constraints.md (z): New constraint.
14067 * config/i386/i386.c (c): New mode attribute.
14068 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
14069 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
14070 constraint for operand 0.
14071 (*call_vzeroupper): Ditto.
14072 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
14073 (*call_rex64_ms_sysv_vzeroupper): Ditto.
14074 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
14075 Use "lzm" constraint for operand 0.
14076 (*call_pop_vzeroupper): Ditto.
14077 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
14078 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
14079 constraint for operand 0.
14080 (*sibcall_vzeroupper): Ditto.
14081 (*sibcall_rex64_ms_sysv): Ditto.
14082 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
14083 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
14084 *sibcall_pop_1. Use "Uz" constraint for operand 0.
14085 (*sibcall_pop_vzeroupper): Ditto.
14086 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
14087 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
14088 mode iterator. Use "<c>zm" constraint for operand 1.
14089 (*call_value_vzeroupper): Ditto.
14090 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
14091 for operand 1.
14092 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
14093 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
14094 *call_value_pop_1. Use "lzm" constraint for operand 1.
14095 (*call_value_pop_vzeroupper): Ditto.
14096 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
14097 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
14098 mode iterator. Use "Uz" constraint for operand 1.
14099 (*sibcall_value_vzeroupper): Ditto.
14100 (*sibcall_value_rex64_ms_sysv): Ditto.
14101 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
14102 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
14103 constraint for operand 1.
14104 (*sibcall_value_pop_vzeroupper): Ditto.
14105 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
14106 and "z" constraint for operand 2.
14107 (*tls_global_dynamic_32_gnu): Ditto.
14108 (*tls_local_dynamic_base_32_gnu): Ditto.
14109 (*tls_local_dynamic_base_64): Ditto.
14110 (*tls_local_dynamic_32_once): Ditto.
14111 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
14112 Update all callers.
14113 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
14114
14115 2011-05-16 Richard Guenther <rguenther@suse.de>
14116
14117 * gimple.c (gimple_types_compatible_p_1): Use names of the
14118 type itself, not its main variant.
14119 (iterative_hash_gimple_type): Likewise.
14120
14121 2011-05-16 Richard Guenther <rguenther@suse.de>
14122
14123 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
14124 always visit pointer target and function result and argument types.
14125
14126 2011-05-16 Jason Merrill <jason@redhat.com>
14127
14128 PR c++/48999
14129 * tree-inline.c (copy_statement_list): Put back recursion.
14130
14131 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14132
14133 PR target/27663
14134 PR target/41076
14135 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
14136 * config/avr/avr.md ("*ior<mode>qi.byte0",
14137 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
14138
14139 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14140
14141 PR target/45099
14142 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
14143 register is needed for a function argument.
14144
14145 2011-05-16 Richard Guenther <rguenther@suse.de>
14146
14147 * gimple.c (struct type_hash_pair): New type.
14148 (type_hash_pair_compare): New function.
14149 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
14150
14151 2011-05-16 Revital Eres <revital.eres@linaro.org>
14152
14153 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
14154
14155 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14156
14157 * config/i386/i386.md (floating point move splitters): Fix
14158 usage of standard_80387_constant_p.
14159 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
14160
14161 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14162
14163 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
14164
14165 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
14166
14167 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
14168 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
14169 (tree_ssa_lim_finalize): Likewise.
14170
14171 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
14172
14173 * config/i386/constraint.md (Yd, Yx): New register constraints.
14174 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
14175 Yd conditional register constraint.
14176 (*movtf_internal): Use standard_sse_constant_opcode.
14177 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
14178 Yx conditional register constraint.
14179 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
14180 Yd conditional register constraint. Use standard_sse_constant_p to
14181 check for valid SSE constants and call standard_sse_constant_opcode to
14182 output SSE insn.
14183 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
14184 constants and call standard_sse_constant_opcode to output SSE insn.
14185 * config/i386/i386.c (ix86_option_ovverride_internal): Set
14186 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
14187 optimize_size is set.
14188 (standard_sse_constant_opcode): Output conditional AVX insn templates.
14189
14190 2011-05-14 Tobias Burnus <burnus@net-b.de>
14191
14192 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
14193
14194 2011-05-13 Martin Jambor <mjambor@suse.cz>
14195
14196 * ipa-prop.c (ipa_cst_from_jfunc): New function.
14197 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
14198 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
14199 (evaluate_conditions_for_ipcp_clone): Removed.
14200 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
14201 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
14202 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14203
14204 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
14205
14206 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
14207 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
14208 lieu of MAY_HAVE_DEBUG_STMTS.
14209 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
14210 debug statements if !MAY_HAVE_DEBUG_STMTS.
14211
14212 2011-05-13 Martin Thuresson <martint@google.com>
14213
14214 PR gcov-profile/47793
14215 * libgcov.c (gcov_exit): Support relative profile paths.
14216 * doc/invoke.texi (-fprofile-dir): Update for above change.
14217
14218 2011-05-13 Richard Guenther <rguenther@suse.de>
14219
14220 * gimple.c (gimple_canonical_types_compatible_p): Do not use
14221 type-pair caching, do not compare hashes.
14222
14223 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
14224
14225 PR middle-end/48965
14226 * tree-cfg.c (edge_to_cases_cleanup): Return true.
14227 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14228
14229 2011-05-13 Kai Tietz <ktietz@redhat.com>
14230
14231 * gimplify.c (gimplify_expr): Make sure operand is boolified.
14232 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14233 compatible type for TRUTH_NOT_EXPR.
14234
14235 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
14236
14237 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14238 (ix86_hard_regno_mode_ok): Change return value to bool. Use
14239 can_create_pseudo_p ().
14240
14241 2011-05-13 Richard Guenther <rguenther@suse.de>
14242
14243 PR lto/48978
14244 * gimple.c (iterative_hash_gimple_type): Revert change in
14245 pointer target and function result and argument hashing.
14246
14247 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
14248
14249 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14250 (*movxf_internal_nointeger): Ditto.
14251 (*movdf_internal_rex64): Ditto.
14252 (*movdf_internal): Ditto.
14253 (*movdf_internal_nointeger): Ditto.
14254 (*movsf_internal): Ditto.
14255 (sincos splitters): Use can_create_pseudo ().
14256
14257 2011-05-13 Joseph Myers <joseph@codesourcery.com>
14258
14259 * config/i386/i386-opts.h: New.
14260 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14261 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14262 ix86_section_threshold): Remove.
14263 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
14264 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14265 OPT_mbranch_cost_.
14266 (ix86_option_override_internal): Don't decode strings for options
14267 other than -march=, -mtune= and -mfpmath=. Don't allow for
14268 __attribute__ uses in remaining diagnostics for options with
14269 string arguments. Don't check for integer arguments being negative.
14270 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14271 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14272 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14273 ix86_branch_cost, ix86_section_threshold): Remove.
14274 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14275 HeaderInclude.
14276 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14277 but not Var.
14278 (masm=): Use Enum and Init.
14279 (asm_dialect): New Enum and EnumValue entries.
14280 (mbranch-cost=): Use UInteger.
14281 (mlarge-data-threshold=): Use UInteger and Init.
14282 (mcmodel=): Use Enum and Init.
14283 (cmodel): New Enum and EnumValue entries.
14284 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14285 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14286 mregparm=): Use UInteger.
14287 (mstringop-strategy=): Use Enum and Init.
14288 (stringop_alg): New Enum and EnumValue entries.
14289 (mtls-dialect=): Use Enum and Init.
14290 (tls_dialect): New Enum and EnumValue entries.
14291 (mabi=): Use Enum and Init.
14292 (calling_abi): New Enum and EnumValue entries.
14293 (mveclibabi=): Use Enum and Init.
14294 (ix86_veclibabi): New Enum and EnumValue entries.
14295
14296 2011-05-13 Nick Clifton <nickc@redhat.com>
14297
14298 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14299 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14300
14301 2011-05-13 Kai Tietz <ktietz@redhat.com>
14302
14303 PR middle-end/48984
14304 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
14305 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
14306 (gimple_boolify): Check for cast for boolean_type_node instead for
14307 BOOLEAN_TYPE.
14308
14309 2011-05-13 Richard Guenther <rguenther@suse.de>
14310
14311 PR tree-optimization/48172
14312 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
14313 multiplying by number of iterations for equal step.
14314 (vect_create_cond_for_alias_checks): Likewise.
14315
14316 2011-05-13 Andreas Schwab <schwab@redhat.com>
14317
14318 * configure.ac: Use AS_HELP_STRING throughout.
14319 * configure: Regenerate.
14320
14321 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
14322
14323 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
14324 (ix86_emit_restore_regs_using_mov): Likewise.
14325 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14326
14327 2011-05-12 Anatoly Sokolov <aesok@post.ru>
14328
14329 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
14330 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
14331 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
14332 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14333 RTX_OK_FOR_OLO10_P): ...here.
14334 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
14335 SYMBOLIC_CONST.
14336
14337 2011-05-12 Kai Tietz <ktietz@redhat.com>
14338
14339 * gimplify.c (gimple_boolify): Re-boolify expression
14340 arguments even if expression type is of kind BOOLEAN_TYPE.
14341 (gimplify_boolean_expr): Removed.
14342 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
14343 and XOR. Additional take care that we keep expression's type.
14344 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
14345 of TRUTH_AND|OR|XOR_EXPR.
14346
14347 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14348
14349 PR tree-optimization/48975
14350 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
14351 on all bbs here and free and clear ifc_bbs at the end.
14352
14353 2011-05-12 Richard Guenther <rguenther@suse.de>
14354
14355 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
14356 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
14357 until after simple checks.
14358 (gimple_types_compatible_p): Likewise.
14359 (iterative_hash_gimple_type): Always hash pointer targets
14360 and function return and argument types.
14361 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
14362 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
14363 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
14364 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
14365 completely in the simple compare section.
14366 (gimple_register_canonical_type): Query the cache again after
14367 registering.
14368
14369 2011-05-12 Richard Guenther <rguenther@suse.de>
14370
14371 PR tree-optimization/48172
14372 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
14373 the number of iterations from the segment size calculation.
14374 (vect_create_cond_for_alias_checks): Adjust.
14375
14376 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14377
14378 PR debug/48967
14379 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
14380 if validate_subreg fails.
14381
14382 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
14383
14384 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
14385 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
14386 early.
14387
14388 2011-05-12 DJ Delorie <dj@redhat.com>
14389
14390 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
14391 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
14392 created builtin into rx_builtins array.
14393 (rx_builtin_decl): New function.
14394 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
14395
14396 2011-05-12 DJ Delorie <dj@redhat.com>
14397 Nick Clifton <nickc@redhat.com>
14398
14399 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
14400 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
14401 (rx_is_legitimate_address): Add pre-decrement and post-increment
14402 addressing in HImode and QImode. Fix test for out of range
14403 REG+INT addressing.
14404 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
14405 (rx_align_for_label): Test label before extracting its usage count.
14406 (rx_adjust_insn_lengths): Fix selection of insn codes.
14407 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
14408
14409 2011-05-11 Jason Merrill <jason@redhat.com>
14410
14411 * tree.c (type_hash_canon): Use struct tree_type_non_common.
14412
14413 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14414
14415 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
14416 reindent the subsequent block.
14417
14418 2011-05-11 Satoru Takabayashi <satorux@google.com>
14419 Paul Pluzhnikov <ppluzhnikov@google.com>
14420
14421 * doc/install.texi (Configuration): Document --with-linker-hash-style.
14422 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
14423 * config.in: Add LINKER_HASH_STYLE.
14424 * configure.ac: Add --with-linker-hash-style.
14425 * configure: Regenerate.
14426
14427 2011-05-11 Richard Guenther <rguenther@suse.de>
14428
14429 PR middle-end/48964
14430 * gimple.c (iterative_hash_canonical_type): Fix typo.
14431
14432 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
14433
14434 * config/i386/i386.c (legitimize_tls_address)
14435 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14436 expanders directly for TARGET_GNU2_TLS. Determine pic and
14437 __tls_get_addr symbol reference here. Update call to
14438 gen_tls_global_dynamic_{32,64} for added arguments.
14439 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14440 expanders directly for TARGET_GNU2_TLS. Determine
14441 __tls_get_addr symbol reference here. Update call to
14442 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
14443 unique UNSPEC REG_EQUIV to libcall block.
14444 (ix86_tls_get_addr): Declare static.
14445 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
14446 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
14447 Do not determine pic and __tls_get_addr symbol reference here. Do not
14448 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
14449 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
14450 (tls_global_dynamic_64): Add operand 2. Do not determine
14451 __tls_get_addr symbol reference here. Do not call
14452 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
14453 (tls_local_dynamic_base64): Ditto for operand 1.
14454
14455 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14456
14457 * function.c (expand_function_start): Initialize stack_check_probe_note
14458 only if the generic stack checking mechanism is used.
14459
14460 2011-05-11 Richard Guenther <rguenther@suse.de>
14461
14462 PR tree-optimization/15256
14463 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
14464 (A & B) | C, combine (A op CST1) op CST2.
14465 (tree_ssa_forward_propagate_single_use_vars): Only bother to
14466 visit assigns that have uses.
14467
14468 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14469
14470 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
14471 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
14472 (unpack_ts_type_common_value_fields): ...this. Update comment.
14473 (unpack_value_fields): Adjust for renaming.
14474 (lto_input_ts_type_tree_pointers): Split into...
14475 (lto_input_ts_type_common_tree_pointer): ...this and...
14476 (lto_input_ts_type_non_common_tree_pointers): ...this.
14477 (lto_input_tree_pointers): Adjust for above split.
14478 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
14479 (pack_ts_type_common_value_fields): ...this. Update comment.
14480 (lto_output_ts_type_tree_pointers): Split into...
14481 (lto_output_ts_type_common_tree_pointers): ...this and...
14482 (lto_output_ts_type_non_common_tree_pointers): ...this.
14483 (lto_output_tree_pointers): Adjust for above split.
14484 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
14485 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
14486 * stor-layout.c (vector_type_mode): Adjust location of mode field.
14487 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
14488 Define.
14489 (struct tree_type): Split into...
14490 (struct tree_type_common: ...this and...
14491 (struct tree_type_with_lang_specific): ...this and...
14492 (struct tree_type_non_common): ...this. Adjust accessor macros
14493 accordingly.
14494 (TYPE_VALUES_RAW): Define.
14495 (union tree_node): Update for above changes.
14496 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
14497 TS_TYPE_NON_COMMON.
14498 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
14499 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
14500 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
14501 * treestructu.def (TS_TYPE): Remove.
14502 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
14503 Define.
14504
14505 2011-05-11 Jakub Jelinek <jakub@redhat.com>
14506
14507 PR debug/48159
14508 * tree-ssa.c (reset_debug_uses): New function.
14509 * tree-flow.h (reset_debug_uses): New prototype.
14510 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
14511 * tree-loop-distribution.c (generate_loops_for_partition): Call
14512 reset_debug_uses on the stmts that will be removed. Keep around
14513 all debug stmts, don't count them as bits in partition bitmap.
14514 (generate_builtin): Don't count debug stmts or labels as bits in
14515 partition bitmap.
14516
14517 2011-05-11 Richard Guenther <rguenther@suse.de>
14518
14519 * gimple.c (gimple_type_hash_1): Merge with ...
14520 (gimple_type_hash): ... this.
14521 (gtc_visit): Remove mode parameter and simplify accordingly.
14522 (gimple_types_compatible_p_1): Likewise.
14523 (gimple_types_compatible_p): Likewise.
14524 (iterative_hash_gimple_type): Likewise.
14525 (visit): Likewise.
14526 (gimple_type_eq): Adjust.
14527
14528 2011-05-11 Revital Eres <revital.eres@linaro.org>
14529
14530 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14531 enters the branch create an anti edge in the opposite direction
14532 to prevent the creation of reg-moves.
14533 * modulo-sched.c: Adjust comment to reflect the fact we are
14534 scheduling closing branch.
14535 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14536 (stage_count): New field in struct partial_schedule.
14537 (calculate_stage_count): New function.
14538 (normalize_sched_times): Rename to reset_sched_times and handle
14539 incrementing the sched time of the nodes by a constant value
14540 passed as parameter.
14541 (duplicate_insns_of_cycles): Skip closing branch.
14542 (sms_schedule_by_order): Schedule closing branch.
14543 (ps_insn_find_column): Handle closing branch.
14544 (sms_schedule): Call reset_sched_times and adjust the code to
14545 support scheduling of the closing branch.
14546 (ps_insert_empty_row): Update calls to normalize_sched_times
14547 and rotate_partial_schedule functions.
14548
14549 2011-05-11 Richard Guenther <rguenther@suse.de>
14550
14551 PR middle-end/48953
14552 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14553
14554 2011-05-11 Joseph Myers <joseph@codesourcery.com>
14555
14556 * opts.c (finish_options): Move warning settings from process_options.
14557 * toplev.c (process_options): Move warning settings to finish_options.
14558
14559 2011-05-11 Richard Guenther <rguenther@suse.de>
14560
14561 PR tree-optimization/18041
14562 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14563 (simplify_bitwise_binary): ... this. Handle operand conversions
14564 by applying them to the result instead.
14565 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
14566
14567 2011-05-11 Richard Guenther <rguenther@suse.de>
14568
14569 * gimple.c (gimple_canonical_types_compatible_p): Split out
14570 from gimple_types_compatible_p and friends. Do not recurse
14571 to pointed-to types.
14572 (gimple_canonical_type_eq): Use it.
14573 (iterative_hash_canonical_type): Split out from
14574 iterative_hash_gimple_type and friends. Do not recurse
14575 to pointed-to types.
14576 (gimple_canonical_type_hash): Use it, allocate the hash here.
14577
14578 2011-05-11 Revital Eres <revital.eres@linaro.org>
14579
14580 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14581 recognizing doloop.
14582
14583 2011-05-11 Revital Eres <revital.eres@linaro.org>
14584
14585 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14586 instead of PREV_INSN.
14587
14588 2011-05-11 Revital Eres <revital.eres@linaro.org>
14589
14590 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14591 * loop-doloop.c (doloop_condition_get): Likewise.
14592 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14593 (doloop_end): New.
14594 * config/arm/arm.md (*addsi3_compare0): Remove "*".
14595
14596 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
14597
14598 * tree.def (CASE_LABEL_EXPR): Add an operand.
14599 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14600
14601 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14602
14603 * c-decl.c (c_override_global_bindings_to_false): Remove.
14604 (global_bindings_p): Don't check
14605 c_override_global_bindings_to_false.
14606 * c-tree.h (c_override_global_bindings_to_false): Remove.
14607 * c-typeck.c (composite_type): Don't set
14608 c_override_global_bindings_to_false.
14609
14610 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14611
14612 PR target/48857, 48495
14613 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14614 (VSX_MODE): Ditto.
14615 (VSX_MOVE_MODE): Ditto.
14616 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14617 VSX vector types. Add V2DImode.
14618 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14619 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14620 (MODES_TIEABLE_P): Ditto.
14621
14622 * config/rs6000/rs6000.c (rs6000_emit_move): Use
14623 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14624 VSX_VECTOR_MODE.
14625 (init_cumulative_args): Ditto.
14626 (rs6000_function_arg_boundary): Ditto.
14627 (rs6000_function_arg_advance_1): Ditto.
14628 (rs6000_function_arg): Ditto.
14629 (rs6000_function_ok_for_sibcall): Ditto.
14630 (emit_frame_save): Ditto.
14631 (rs6000_function_value): Ditto.
14632 (rs6000_libcall_value): Ditto.
14633
14634 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14635
14636 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14637 i386/darwin-lib.h to $libgcc_tm_file.
14638 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14639
14640 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14641
14642 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14643
14644 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14645
14646 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14647 * config/rs6000/rs6000-tables.opt: New file (generated).
14648 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14649 rs6000/rs6000-tables.opt to extra_options.
14650 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14651 * config/rs6000/rs6000.c (rs6000_select): Remove.
14652 (processor_target_table): Move contents to rs6000-cpus.def.
14653 (darwin_rs6000_override_options): Check
14654 global_options_set.x_rs6000_cpu_index instead of
14655 rs6000_select[1].string.
14656 (rs6000_option_override_internal): Likewise.
14657 (rs6000_handle_option): Don't assert that global structures are in
14658 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
14659 (rs6000_default_cpu): New variable.
14660 (rs6000_file_start): Set it instead of local default_cpu. Check
14661 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14662 global_options_set.x_rs6000_tune_index instead of rs6000_select.
14663 (rs6000_darwin_file_start): Check rs6000_default_cpu and
14664 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14665 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14666 rs6000_select): Remove.
14667 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14668 Remove.
14669 (mcpu=, mtune=): Use Var, Init, Enum and Save.
14670 * config/rs6000/t-rs6000
14671 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14672 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14673 global_options_set.x_rs6000_cpu_index instead of
14674 rs6000_select[1].string.
14675 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14676 global_options_set.x_rs6000_cpu_index instead of
14677 rs6000_select[1].string.
14678
14679 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14680
14681 * config.gcc (libgcc_tm_file): Define instead of including files
14682 from ../../libgcc/config/ in tm_file.
14683 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14684 * configure: Regenerate.
14685 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14686 libgcc_tm.h, cs-libgcc_tm.h): New.
14687 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14688 (clean): Remove libgcc_tm.h.
14689 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14690 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14691 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14692
14693 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
14694
14695 PR target/48896
14696 * config/avr/avr.c (avr_ret_register): Return unsigned int
14697 instead of int.
14698 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14699 it to avr_libcall_value.
14700 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14701 expand_expr.
14702 (avr_expand_binop_builtin): Ditto.
14703 (avr_expand_unop_builtin): Ditto.
14704
14705 2011-05-10 DJ Delorie <dj@redhat.com>
14706
14707 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14708 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14709 * config/rx/rx.c (rx_align_for_label): Add label and
14710 uses_threshold parameters. Do not align when the label is not
14711 used enough.
14712 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14713
14714 2011-05-10 Richard Guenther <rguenther@suse.de>
14715
14716 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14717 a series of conversions and apply foldings similar to what
14718 fold-const does.
14719 (tree_ssa_forward_propagate_single_use_vars): Call it.
14720
14721 2011-05-10 Jakub Jelinek <jakub@redhat.com>
14722
14723 PR tree-optimization/48611
14724 PR tree-optimization/48794
14725 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14726 referenced from RESX or EH_DISPATCH arguments.
14727
14728 PR debug/48928
14729 * dfp.c (decimal_to_decnumber): Handle conversion from
14730 dconst{1,2,m1,half}.
14731
14732 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14733
14734 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14735 for !flag_prefer_avx128.
14736 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14737
14738 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
14739
14740 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14741 (fold_ternary_loc): Use expr_location_or.
14742
14743 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
14744
14745 PR debug/48853
14746 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14747 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14748 Pmode and mem_mode is not VOIDmode.
14749
14750 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
14751
14752 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
14753 TYPE_QUAL_RESTRICT): Convert to enum.
14754
14755 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14756
14757 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
14758 (const_pow2_1_to_8_operand): Ditto.
14759 (const_pow2_1_to_128_operand): Ditto.
14760 (const_pow2_1_to_32768_operand): Ditto.
14761 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
14762 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
14763 in insn constraint to check integer value of operand 3.
14764 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
14765
14766 (PINSR_MODE): New mode iterator.
14767 (sse2p4_1): New mode attribute.
14768 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
14769 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
14770 iterator. Use const_int_operand instead of
14771 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
14772 exact_log2 in insn constraint to check integer value of operand 3.
14773
14774 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14775
14776 * config/i386/sse.md (blendbits): Remove mode attribute.
14777 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14778 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14779 Check integer value of operand 3 in insn constraint.
14780
14781 2011-05-09 Richard Guenther <rguenther@suse.de>
14782
14783 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
14784 for diagnostics.
14785 (lto_symtab_merge): Likewise. Do not register types here.
14786 (lto_symtab_merge_decls_2): Likewise.
14787 (lto_symtab_merge_decls_1): Likewise.
14788 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
14789 * gimple.c (enum gtc_mode): Declare.
14790 (gimple_types_compatible_p): Make static.
14791
14792 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14793
14794 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
14795 temporary register to match Pmode.
14796
14797 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14798
14799 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
14800 and *vec_concatv4si_1_avx.
14801
14802 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14803
14804 PR rtl-optimization/48927
14805 * ira-conflicts.c (commutative_constraint_p): Use
14806 recog_data.alternative_enabled_p to disable alternatives where
14807 "enabled" attribute is false.
14808 (get_dup_num): Ditto.
14809 * ira-lives.c (single_reg_class): Ditto.
14810 (ira_implicitly_set_insn_hard_regs): Ditto.
14811
14812 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
14813
14814 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14815 (dataflow_set_preserve_mem_locs): Likewise.
14816
14817 2011-05-09 Philipp Thomas <pth@suse.de>
14818
14819 * config/mep/mep.c (mep_validate_vliw): Syntax description
14820 should not be translated.
14821
14822 2011-05-09 Joseph Myers <joseph@codesourcery.com>
14823
14824 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14825 * config/mips/mips-tables.opt: New file (generated).
14826 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14827 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14828 MIPS_ARCH_OPTION_NATIVE): Define.
14829 * config/mips/mips.c (mips_cpu_info_table): Move contents to
14830 mips-cpus.def.
14831 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14832 mips_parse_cpu): Remove.
14833 (mips_cpu_info_from_opt, mips_default_arch): New.
14834 (mips_handle_option): Don't assert that global structures are in
14835 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14836 (mips_option_override): Use new variables and functions to set
14837 state of these options. Use strcmp to check for individual CPU names.
14838 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14839 definition.
14840 * config/mips/mips.opt (march=): Use ToLower and Enum.
14841 (mips): Use ToLower, Enum and Var.
14842 (mtune=): Use ToLower and Enum.
14843 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14844
14845 2011-05-08 Jan Hubicka <jh@suse.cz>
14846
14847 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14848 Arrange type pairs to be UID ordered.
14849 (gimple_lookup_type_leader): Make inline.
14850
14851 2011-05-09 Nick Clifton <nickc@redhat.com>
14852
14853 PR target/48899
14854 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14855 PROCESSOR_DEFAULT.
14856
14857 PR target/48897
14858 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14859 variable 's'.
14860
14861 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
14862
14863 * combine.c (simplify_comparison): Abstract out parts into...
14864 (simplify_compare_const): ... new function.
14865 (try_combine): Generalize parallel arithmetic/compare combining
14866 to call simplify_compare_const() and CANONICALIZE_COMPARE().
14867
14868 2011-05-08 Jan Hubicka <jh@suse.cz>
14869
14870 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14871 (cgraph_create_virtual_clone): Call hooks once virtual clone
14872 is finished.
14873 * cgraph.h (cgraph_clone_node): Update prototype.
14874 * ipa-cp.c (ipcp_estimate_growth): Use
14875 estimate_ipcp_clone_size_and_time.
14876 * ipa-inline-transform.c (clone_inlined_nodes): Update.
14877 * lto-cgraph.c (input_node): Update.
14878 * ipa-inline.c (recursive_inlining): Update.
14879 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14880 (evaluate_conditions_for_known_args): Break out from ...
14881 (evaluate_conditions_for_edge): ... here.
14882 (evaluate_conditions_for_ipcp_clone): New function.
14883 (inline_node_duplication_hook): Update clone summary based
14884 on parameter map.
14885 (estimate_callee_size_and_time): Rename to ...
14886 (estimate_node_size_and_time): take NODE instead of EDGE;
14887 take POSSIBLE_TRUTHS as argument.
14888 (estimate_callee_size_and_time): Update.
14889 (estimate_ipcp_clone_size_and_time): New function.
14890 (do_estimate_edge_time): Update.
14891
14892 2011-05-08 Richard Guenther <rguenther@suse.de>
14893
14894 PR middle-end/48908
14895 PR middle-end/48905
14896 * expmed.c (expand_shift_1): Compute adjusted constant shift
14897 amount manually.
14898
14899 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14900
14901 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14902
14903 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14904
14905 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
14906
14907 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
14908
14909 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
14910
14911 2011-05-07 Jan Hubicka <jh@suse.cz>
14912
14913 * ipa-inline-transform.c (inline_call): Account when program size
14914 decreases.
14915 * ipa-inline.c (relative_time_benefit): New function.
14916 (edge_badness): Reorganize to be power 2 based; fix thinko when
14917 computing badness for negative growth; update comments to match
14918 reality; better dumps.
14919
14920 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
14921
14922 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
14923 type to bool and adjust comment.
14924 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
14925 (fold_mathfn_compare): Remove calls to global_bindings_p.
14926 (fold_inf_compare): Likewise.
14927 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
14928 * c-tree.h (global_bindings_p): Adjust prototype.
14929 * c-decl.c (global_bindings_p): Return bool and simplify.
14930
14931 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
14932
14933 PR tree-optimization/48837
14934 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
14935 when accumulator transformation is performed.
14936
14937 2011-05-06 Jan Hubicka <jh@suse.cz>
14938
14939 * i386.h (ix86_tune_indices): Add
14940 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
14941 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
14942 * i386.c (initial_ix86_tune_features): Add
14943 X86_SOFTARE_PREFETCHING_BENEFICIAL.
14944 (software_prefetching_beneficial_p): Remove predicate.
14945 (ix86_option_override_internal): Use new macro.
14946
14947 2011-05-06 Jan Hubicka <jh@suse.cz>
14948
14949 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
14950
14951 2011-05-06 Jan Hubicka <jh@suse.cz>
14952
14953 * cgraph.c (cgraph_add_thunk): Create real function node instead
14954 of alias node; finalize it and mark needed/reachale; arrange visibility
14955 to be right and add it into the corresponding same comdat group list.
14956 (dump_cgraph_node): Dump thunks.
14957 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
14958 cgraph_function_with_gimple_body_p,
14959 cgraph_first_function_with_gimple_body,
14960 cgraph_next_function_with_gimple_body): New functions.
14961 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
14962 New macros.
14963 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
14964 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14965 * cgraphunit.c (cgraph_finalize_function): Only look into possible
14966 devirtualization when optimizing.
14967 (verify_cgraph_node): Verify thunks.
14968 (cgraph_analyze_function): Analyze thunks.
14969 (cgraph_mark_functions_to_output): Output thunks only in combination
14970 with function they are assigned to.
14971 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
14972 alias into normal node.
14973 (assemble_thunks): New functoin.
14974 (cgraph_expand_function): Use it.
14975 * lto-cgraph.c (lto_output_node): Stream thunks.
14976 (input_overwrite_node): Stream in thunks.
14977 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
14978 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
14979 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
14980 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
14981 (inline_analyze_function): Do not care about thunk jump functions.
14982 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
14983 * ipa-prop.c (ipa_prop_write_jump_functions): Use
14984 cgraph_function_with_gimple_body_p.
14985 * passes.c (do_per_function_toporder): Use
14986 cgraph_function_with_gimple_body_p.
14987 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
14988 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
14989 (function_called_by_processed_nodes_p): Likewise.
14990
14991 2011-05-06 Joseph Myers <joseph@codesourcery.com>
14992
14993 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
14994 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
14995 entries.
14996 (mabi=): Replace with separate entries for mabi=altivec,
14997 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
14998 mabi=ieeelongdouble and mabi=ibmlongdouble.
14999 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
15000 check for -mabi=spe without SPE ABI support here.
15001 (rs6000_handle_option): Replace OPT_mabi_ handling with
15002 OPT_mabi_altivec and OPT_mabi_spe handling.
15003
15004 2011-05-06 Cary Coutant <ccoutant@google.com>
15005
15006 * dwarf2out.c (contains_subprogram_definition): New function.
15007 (should_move_die_to_comdat): Call it.
15008
15009 2011-05-06 Jeff Law <law@redhat.com>
15010
15011 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
15012 remove_ctrl_stmt_and_useless_edges.
15013 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
15014 (fixup_template_block, thread_single_edge): Likewise.
15015 (mark_threaded_blocks): Use THREAD_TARGET.
15016
15017 2011-05-06 Alan Modra <amodra@gmail.com>
15018
15019 PR target/48900
15020 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15021 const0_rtx as the arg to the dummy __tls_get_addr libcall.
15022
15023 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15024
15025 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
15026 constraint modifier to "r".
15027
15028 2011-05-06 Joseph Myers <joseph@codesourcery.com>
15029
15030 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
15031 fall through for OPT_mcmodel_.
15032
15033 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15034
15035 * config/s390/s390.c (s390_asm_trampoline_template): Comment
15036 instruction sizes.
15037 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
15038
15039 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15040
15041 PR target/47930
15042 * config/arm/arm.opt (marm): Document it.
15043 (mthumb): Reject negative variant.
15044
15045 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15046
15047 PR target/48898
15048 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
15049 Fix typo in "ccvt" variable name.
15050
15051 2011-05-06 Tristan Gingold <gingold@adacore.com>
15052
15053 PR target/48895
15054 * config/vms/vms-ar.c (main): Remove cwd variable.
15055
15056 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15057
15058 PR debug/48902
15059 * var-tracking.c (prepare_call_arguments): Move else before #endif.
15060
15061 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
15062
15063 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
15064 * gimplify.c (gimplify_switch_expr): Likewise.
15065 * omp-low.c (expand_omp_sections): Likewise.
15066 * tree-eh.c (lower_try_finally_switch): Likewise.
15067 (lower_eh_dispatch): Likewise.
15068 * tree.h (build_case_label): Declare.
15069 * tree.c (build_case_label): Define.
15070
15071 2011-05-05 Jason Merrill <jason@redhat.com>
15072
15073 PR c++/40975
15074 * tree-inline.c (copy_tree_r): Use copy_statement_list.
15075 (copy_statement_list): Don't recurse.
15076 * stor-layout.c (copy_self_referential_tree_r): Don't allow
15077 STATEMENT_LIST.
15078
15079 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15080
15081 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
15082 through from -mfpu= handling.
15083 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
15084
15085 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
15086
15087 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
15088 POST_MODIFY.
15089
15090 2011-05-05 Steve Ellcey <sje@cup.hp.com>
15091
15092 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
15093 for 11.31.
15094 (hppa[12]*-*-hpux11*): Ditto.
15095 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
15096 * config/ia64/hpux-unix2003.h: New.
15097 * config/pa/pa-hpux1131.opt: New.
15098 * config/pa/pa-hpux1131.h: New.
15099 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
15100 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
15101 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
15102
15103 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15104
15105 PR debug/48853
15106 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
15107 instead of mode as 3rd argument to recursive call.
15108 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
15109 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
15110 VOIDmode.
15111 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
15112 don't give up if mode is Pmode and mem_mode is not VOIDmode.
15113 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
15114 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
15115
15116 2011-05-05 Julian Brown <julian@codesourcery.com>
15117
15118 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
15119 parenthesis in D-register case.
15120
15121 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15122
15123 * opt-functions.awk (var_type_struct): Handle Enum options.
15124 * optc-gen.awk: Don't check range of variables of character type.
15125 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
15126 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
15127 rs6000_sdata_name, rs6000_explicit_options): Remove.
15128 (rs6000_option_override_internal): Check for -malign-power here.
15129 Use global_options_set instead of rs6000_explicit_options.
15130 (rs6000_parse_fpu_option): Remove.
15131 (rs6000_handle_option): Access variables via opts and opts_set
15132 pointers. Use error_at and warning_at. Add fall-through
15133 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
15134 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
15135 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
15136 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
15137 here. Don't use rs6000_parse_fpu_option.
15138 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
15139 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
15140 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
15141 (mrecip=): Use Var.
15142 (mspe): Use Var and Save.
15143 (mtraceback=): Use Enum and Var.
15144 (rs6000_traceback_type): New Enum and EnumValue entries.
15145 (mfloat-gprs=): Use Enum, Var and Save.
15146 (rs6000_float_gprs): New Enum and EnumValue entries.
15147 (mlong-double-): use Var and Save.
15148 (msched-costly-dep=, minsert-sched-nops=): Use Var.
15149 (malign-): Use Enum and Var.
15150 (rs6000_alignment_flags): New Enum and EnumValue entries.
15151 (mfpu=): Use Enum.
15152 (fpu_type_t): New Enum and EnumValue entries.
15153 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15154 global_options_set instead of rs6000_explicit_options.
15155 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15156 global_options_set instead of rs6000_explicit_options.
15157 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15158 global_options_set instead of rs6000_explicit_options.
15159 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15160 global_options_set instead of rs6000_explicit_options.
15161 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
15162 global_options_set instead of rs6000_explicit_options.
15163 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15164 global_options_set instead of rs6000_explicit_options.
15165 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
15166 definition.
15167 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15168 global_options_set instead of rs6000_explicit_options.
15169 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
15170 (rs6000_cmodel): New Enum and EnumValue entries.
15171 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15172 global_options_set instead of rs6000_explicit_options.
15173 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
15174 (mtls-size=): Use Enum and Var.
15175 (rs6000_tls_size): New Enum and EnumValue entries.
15176
15177 2011-05-05 Michael Matz <matz@suse.de>
15178
15179 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
15180 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
15181 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
15182 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
15183 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
15184 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
15185 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
15186 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
15187 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
15188 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
15189 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
15190 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
15191 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
15192 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
15193 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
15194 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
15195
15196 2011-05-05 Richard Guenther <rguenther@suse.de>
15197
15198 * expmed.c (expand_variable_shift): Rename to ...
15199 (expand_shift_1): ... this. Take an expanded shift amount.
15200 For rotates recurse directly not building trees for the shift amount.
15201 (expand_variable_shift): Wrap around expand_shift_1.
15202 (expand_shift): Adjust.
15203
15204 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15205
15206 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
15207
15208 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
15209
15210 * tree.h (get_pending_sizes): Remove prototype.
15211 (put_pending_size): Likewise.
15212 (put_pending_sizes): Likewise.
15213 * stor-layout.c (pending_sizes): Delete.
15214 (get_pending_sizes): Likewise.
15215 (put_pending_size): Likewise.
15216 (put_pending_sizes): Likewise.
15217 (variable_size): Do not call put_pending_size and tidy up.
15218 * function.h (struct function): Remove dont_save_pending_sizes_p.
15219 * lto-streamer-in.c (input_function): Do not stream it.
15220 * lto-streamer-out.c (output_function): Likewise.
15221 * tree-inline.c (initialize_cfun): Do not copy it.
15222 * c-decl.c (store_parm_decls): Do not set it.
15223 * omp-low.c (create_task_copyfn): Likewise.
15224 * tree-optimize.c (tree_rest_of_compilation): Likewise.
15225
15226 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
15227
15228 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15229 conditions.
15230 (*movdf_internal): Ditto.
15231 (*movdf_internal_nointeger): Ditto.
15232 (*movsf_internal): Ditto.
15233
15234 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15235
15236 * c-decl.c (finish_decl): Don't call get_pending_sizes.
15237 (grokparm): Add parameter expr. Pass it to grokdeclarator.
15238 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
15239 (c_variable_size): Remove.
15240 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
15241 call put_pending_sizes.
15242 (get_parm_info): Add parameter expr. Use it to set
15243 arg_info->pending_sizes.
15244 (store_parm_decls): Use arg_info->pending_sizes instead or calling
15245 get_pending_sizes.
15246 * c-parser.c (c_parser_parms_declarator): Update call to
15247 c_parser_parms_list_declarator.
15248 (c_parser_parms_list_declarator): Take parameter expr. Update
15249 call to push_parm_decl. Update recursive call. Don't call
15250 get_pending_sizes. Update calls to get_parm_info.
15251 (c_parser_objc_method_definition): Update calls to
15252 c_parser_objc_method_decl and objc_start_method_definition.
15253 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15254 (c_parser_objc_method_decl): Add parameter expr. Update call to
15255 grokparm.
15256 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15257 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15258 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15259
15260 2011-05-05 Michael Hope <michael.hope@linaro.org>
15261
15262 PR pch/45979
15263 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15264 __ARM_EABI__ hosts.
15265
15266 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15267
15268 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15269 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15270 (spu_output_mi_thunk): New function.
15271
15272 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15273
15274 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15275 targetm.asm_out.print_operand.
15276 * config/sol2.c: Include target.h.
15277
15278 2011-05-04 Jan Hubicka <jh@suse.cz>
15279
15280 * ipa-inline.c (reset_edge_caches): New function.
15281 (update_caller_keys): Add check_inlinablity_for; do not
15282 reset edge caches; remove now unnecesary loop.
15283 (update_callee_keys): Add comments; reset node_growth_cache of callee.
15284 (update_all_callee_keys): Likewise.
15285 (inline_small_functions): Sanity check cache; update code
15286 recomputing it.
15287
15288 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
15289
15290 PR rtl-optimization/47612
15291 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15292 as the last insn of the sequence to be moved.
15293
15294 2011-05-04 Tobias Burnus <burnus@net-b.de>
15295
15296 PR fortran/48864
15297 * doc/invoke.texi (Ofast): Document that it
15298 enables Fortran's -fno-protect-parens.
15299
15300 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15301
15302 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
15303
15304 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
15305
15306 * stor-layout.c (variable_size): Do not issue errors.
15307
15308 2011-05-04 Richard Guenther <rguenther@suse.de>
15309
15310 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
15311 for array-ref indices.
15312 (tree_coverage_counter_addr): Likewise.
15313 (build_fn_info_type): Use size_int for index types.
15314 (build_gcov_info): Likewise.
15315
15316 2011-05-04 Richard Guenther <rguenther@suse.de>
15317
15318 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
15319 to build_int_cst.
15320 * c-typeck.c (really_start_incremental_init): Use bitsize_int
15321 for constructor indices.
15322 (push_init_level): Likewise.
15323
15324 2011-05-04 Richard Guenther <rguenther@suse.de>
15325
15326 * explow.c (promote_mode): Move variable declarations before code.
15327
15328 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
15329
15330 * tree.h (build_function_type_array): Declare.
15331 (build_varargs_function_type_array): Declare.
15332 (build_function_type_vec, build_varargs_function_type_vec): Define.
15333 * tree.c (build_function_type_array_1): New function.
15334 (build_function_type_array): New function.
15335 (build_varargs_function_type_array): New function.
15336
15337 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
15338
15339 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
15340 before setting STMT_VINFO_TYPE.
15341
15342 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15343
15344 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
15345 instead of spu_pass_by_reference.
15346
15347 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15348
15349 * calls.c (emit_library_call_value_1): Invoke
15350 promote_function_mode hook on libcall arguments.
15351 * explow.c (promote_function_mode, promote_mode): Handle TYPE
15352 argument being NULL.
15353 * targhooks.c (default_promote_function_mode): Lisewise.
15354 * config/s390/s390.c (s390_promote_function_mode): Likewise.
15355 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
15356
15357 * doc/tm.texi: Document that TYPE argument might be NULL.
15358
15359 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15360
15361 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
15362
15363 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15364
15365 From Bernd Schmidt
15366 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
15367
15368 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15369
15370 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
15371 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
15372 Move ...
15373 * mips-tfile.c: ... here.
15374 Don't include coretypes.h, tm.h, filenames.h.
15375 (saber_stop): Remove definition and all calls.
15376 [__SABER__]: Remove.
15377 (__LINE__): Remove default.
15378 (Size_t, Ptrdiff_t): Remove definitions.
15379 Replace by size_t, ptrdiff_t.
15380 [!MIPS_DEBUGGING_INFO]: Remove.
15381 (SHASH_SIZE, THASH_SIZE): Remove defaults.
15382 (progname): Add const.
15383 (STATIC): Remove.
15384 Replace all uses by static.
15385 (ALIGN_SYMTABLE_OFFSET): Remove default.
15386 * mips-tdump.c: Don't include coretypes.h, tm.h.
15387 Remove !MIPS_IS_STAB guard.
15388 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
15389 $(TM_H), filenames.h dependencies.
15390 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
15391
15392 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15393
15394 From Jie Zhang
15395 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
15396 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
15397
15398 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15399
15400 From Bernd Schmidt
15401 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
15402 account and save/restore RETS.
15403 (PROFILE_BEFORE_PROLOGUE): Define.
15404 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
15405 the push insn to use predecrement.
15406
15407 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15408
15409 From Jie Zhang
15410 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
15411
15412 2011-05-04 Nick Clifton <nickc@redhat.com>
15413
15414 * config/mn10300/mn10300.c: Include cfgloop.h.
15415 (DUMP): New macro.
15416 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
15417 Lcc or a FLcc insn into the instruction stream.
15418 (mn10300_block_contains_call): New function. Returns true if the
15419 given basic block contains a CALL insn.
15420 (mn10300_loop_contains_call_insn): New function. Returns true if
15421 the given loop contains a CALL insn.
15422 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
15423 to use the SETLB and Lcc or FLcc insns.
15424 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
15425 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
15426 * config/mn10300/mn10300.opt (msetlb): New option. Used to
15427 disable the SETLB optimization.
15428 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
15429 __SETLB__ or __NO_SETLB__.
15430 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
15431 (movsf_internal): Handle MDR register.
15432 (cmpsi): Make visible.
15433 (setlb): New pattern.
15434 (Lcc): New pattern.
15435 (FLcc): New pattern.
15436
15437 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15438
15439 PR target/48860
15440 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
15441 for reg<->xmm moves.
15442 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
15443 (vec_concatv2di_rex64_sse): Ditto.
15444 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
15445 (*vec_extractv2di_1_rex64): Ditto.
15446
15447 Revert:
15448 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15449
15450 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15451 reg<->xmm moves.
15452 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
15453
15454 2011-05-04 Richard Guenther <rguenther@suse.de>
15455
15456 * tree.h (int_const_binop): Remove notrunc argument.
15457 * fold-const.c (int_const_binop): Remove notrunc argument. Always
15458 create integer constants that are properly truncated.
15459 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
15460 (const_binop): Remove zero notrunc argument to int_const_binop.
15461 (size_binop_loc): Likewise.
15462 (fold_div_compare): Likewise.
15463 (maybe_canonicalize_comparison_1): Likewise.
15464 (fold_comparison): Likewise.
15465 (fold_binary_loc): Likewise.
15466 (multiple_of_p): Likewise.
15467 * expr.c (store_constructor): Likewise.
15468 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15469 (maybe_fold_stmt_addition): Likewise.
15470 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
15471 * stor-layout.c (layout_type): Likewise.
15472 * tree-data-ref.c (tree_fold_divides_p): Likewise.
15473 * tree-sra.c (build_ref_for_offset): Likewise.
15474 (build_user_friendly_ref_for_offset): Likewise.
15475 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
15476 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
15477 * tree-ssa-loop-niter.c (inverse): Likewise.
15478 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15479 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
15480 * tree-switch-conversion.c (check_range): Likewise.
15481 (build_constructors): Likewise.
15482 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
15483 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
15484 (extract_range_from_assert): Likewise.
15485 (vrp_int_const_binop): Likewise.
15486 (extract_range_from_binary_expr): Likewise.
15487 (extract_range_from_unary_expr): Likewise.
15488 (check_array_ref): Likewise.
15489 (find_case_label_range): Likewise.
15490 (simplify_div_or_mod_using_ranges): Likewise.
15491 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
15492 comparing case labels for merging.
15493
15494 2011-05-03 Mark Wielaard <mjw@redhat.com>
15495
15496 * dwarf2out.c (debug_str_hash_forced): Removed.
15497 (gen_label_for_indirect_string): Removed.
15498 (get_debug_string_label): Removed.
15499 (AT_string_form): Generate label directly.
15500 (output_indirect_string): Test indirect_string_node for
15501 DW_FORM_strp instead of checking label and refcount.
15502 (prune_indirect_string): Removed.
15503 (prune_unused_types): Don't check debug_str_hash_forced or
15504 call prune_indirect_string.
15505
15506 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15507
15508 PR other/48093
15509 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
15510
15511 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15512
15513 PR debug/47994
15514 PR debug/47919
15515 * combine.c (try_combine): Skip debug insns at m_split tests.
15516
15517 2011-04-26 Mark Wielaard <mjw@redhat.com>
15518
15519 PR42288
15520 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
15521 when info_section_emitted.
15522
15523 2011-05-03 Joseph Myers <joseph@codesourcery.com>
15524
15525 * config/mips/mips-opts.h: New.
15526 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
15527 to mips-opts.h.
15528 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
15529 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
15530 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
15531 via opts pointer.
15532 * config/mips/mips.h (enum mips_code_readable_setting): Move to
15533 mips-opts.h.
15534 (mips_abi, mips_code_readable): Don't declare.
15535 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15536 (mabi=): Use Enum and Var.
15537 (mips_abi): New Enum and EnumValue entries.
15538 (mcode-readable=): Use Enum and Var.
15539 (mips_code_readable_setting): New Enum and EnumValue entries.
15540 (mr10k-cache-barrier=): Use Enum and Var.
15541 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15542
15543 2011-05-03 Jan Hubicka <jh@suse.cz>
15544
15545 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15546 replace hash by pointer map.
15547 (cgraph_node_set_element_def, cgraph_node_set_element,
15548 const_cgraph_node_set_element, varpool_node_set_element_def,
15549 varpool_node_set_element, const_varpool_node_set_element): Remove.
15550 (free_cgraph_node_set, free_varpool_node_set): New function.
15551 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15552 * tree-emutls.c: Free varpool node set.
15553 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15554 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15555 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15556 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15557 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15558 Move here from ipa.c; implement using pointer_map
15559 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15560 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15561 debug_cgraph_node_set, varpool_node_set_new,
15562 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15563 dump_varpool_node_set, debug_varpool_node_set):
15564 Move to ipa-uitls.c.
15565 * passes.c (ipa_write_summaries): Update.
15566
15567 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15568
15569 From Mike Frysinger:
15570 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15571 bf542/bf544/bf547/bf548/bf549.
15572
15573 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15574
15575 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15576
15577 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15578
15579 From Bernd Schmidt:
15580 * config/bfin/bfin.md (MOVCC): New mode_macro.
15581 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15582 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
15583 comments from generated assembly.
15584
15585 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15586
15587 From Bernd Schmidt
15588 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15589 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15590 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15591 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15592 * config/bfin/lib1funcs.asm (___muldi3): New function.
15593
15594 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15595
15596 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15597 build_function_type_list instead of build_function_type.
15598 Rearrange initialization of `args' to do so.
15599
15600 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15601
15602 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15603 instead of build_function_type.
15604
15605 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15606
15607 * config/rs6000/rs6000.c (spe_init_builtins): Call
15608 build_function_type_list instead of build_function_type.
15609 (paired_init_builtins, altivec_init_builtins): Likewise.
15610 (builtin_function_type): Likewise.
15611
15612 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15613
15614 * config/sh/sh.c (sh_media_init_builtins): Call
15615 build_function_type_list instead of build_function_type.
15616
15617 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15618
15619 * config/sparc/sparc.c (sparc_file_end): Call
15620 build_function_type_list instead of build_function_type.
15621
15622 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15623
15624 * config/alpha/alpha.c (alpha_init_builtins): Call
15625 build_function_type_list instead of build_function_type.
15626
15627 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15628
15629 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
15630 build_function_type_list instead of build_function_type.
15631
15632 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15633
15634 * config/iq2000/i2000.c (iq2000_init_builtins): Call
15635 build_function_type_list instead of build_function_type.
15636 Delete `endlink' variable.
15637
15638 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15639
15640 * config/avr/avr.c (avr_init_builtins): Call
15641 build_function_type_list instead of build_function_type.
15642
15643 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15644
15645 * config/picochip/picochip.c (picochip_init_builtins): Call
15646 build_function_type_list instead of build_function_type.
15647 Delete `endlink' variable.
15648
15649 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15650
15651 * config/bfin/bfin.c (bfin_init_builtins): Call
15652 build_function_type_list instead of build_function_type.
15653
15654 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15655
15656 From Bernd Schmidt
15657 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15658 that's not CONST_INT. Seemingly redundant check is due to PR39768.
15659
15660 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15661
15662 From Jie Zhang:
15663 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15664 libbffastfp overrides libgcc when -mfast-fp.
15665
15666 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15667
15668 Originally from Bernd Schmidt
15669 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15670 * config/bfin/bfin.c (override_options): Test it and error if
15671 TARGET_FDPIC.
15672
15673 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15674
15675 Originally From Bernd Schmidt
15676 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15677 FD-PIC.
15678
15679 2011-05-03 Jeff Law <law@redhat.com>
15680
15681 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15682 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15683 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15684 than accessing AUX field directly. Free the AUX field before
15685 clearing it.
15686 (thread_block, thread_through_loop_header): Likewise.
15687 (thread_single_edge, mark_threaded_blocks): Likewise.
15688 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
15689 (register_jump_thread): Do not attempt to thread to a NULL edge.
15690
15691 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15692
15693 * function.c (init_function_start): Call decide_function_section.
15694 * varasm.c (decide_function_section): New function.
15695 (assemble_start_function): When not using
15696 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15697 or first_function_block_is_cold.
15698 * rtl.h (decide_function_section): Declare.
15699
15700 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15701 Jakub Jelinek <jakub@redhat.com>
15702
15703 PR target/48774
15704 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15705 only succeed if req_mode is the same as set_mode.
15706
15707 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15708
15709 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15710 * genemit.c (gen_exp): Handle RETURN.
15711 * emit-rtl.c (verify_rtx_sharing): Likewise.
15712 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15713 * rtl.c (copy_rtx): RETURN is shared.
15714 * rtl.h (enum global_rtl_index): Add GR_RETURN.
15715 (ret_rtx): New.
15716 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15717 * config/s390/s390.c (s390_emit_epilogue): Likewise.
15718 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15719 * config/cris/cris.c (cris_expand_return): Likewise.
15720 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15721 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15722 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15723 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15724 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15725 Likewise.
15726 * config/v850/v850.c (expand_epilogue): Likewise.
15727 * config/bfin/bfin.c (bfin_expand_call): Likewise.
15728 * config/arm/arm.md (epilogue): Likewise.
15729 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15730 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15731 variable to ret_reg.
15732
15733 2011-05-03 Richard Guenther <rguenther@suse.de>
15734
15735 PR lto/48846
15736 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15737 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15738 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15739
15740 2011-05-03 Richard Guenther <rguenther@suse.de>
15741
15742 * c-decl.c (grokdeclarator): Instead of looking at
15743 TREE_OVERFLOW check if the constant fits in the index type.
15744
15745 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15746
15747 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15748 (vec_store_lanes<mode><mode>): Likewise.
15749
15750 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15751
15752 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
15753 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
15754 convert_optab_index values.
15755 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
15756 * genopinit.c (optabs): Initialize the new optabs.
15757 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
15758 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
15759 (expand_STORE_LANES): New functions.
15760 * tree.h (build_array_type_nelts): Declare.
15761 * tree.c (build_array_type_nelts): New function.
15762 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
15763 (vect_model_load_cost): Likewise.
15764 (vect_store_lanes_supported, vect_load_lanes_supported)
15765 (vect_record_strided_load_vectors): Declare.
15766 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
15767 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
15768 (vect_transform_strided_load): Split out statement recording into...
15769 (vect_record_strided_load_vectors): ...this new function.
15770 * tree-vect-stmts.c (create_vector_array, read_vector_array)
15771 (write_vector_array, create_array_ref): New functions.
15772 (vect_model_store_cost): Add store_lanes_p argument.
15773 (vect_model_load_cost): Add load_lanes_p argument.
15774 (vectorizable_store): Try to use store-lanes functions for
15775 interleaved stores.
15776 (vectorizable_load): Likewise load-lanes and loads.
15777 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
15778 to vect_model_store_cost.
15779 (vect_build_slp_tree): Likewise vect_model_load_cost.
15780
15781 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15782
15783 * hooks.h (hook_bool_mode_uhwi_false): Declare.
15784 * hooks.c (hook_bool_mode_uhwi_false): New function.
15785 * target.def (array_mode_supported_p): New hook.
15786 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
15787 * doc/tm.texi: Regenerate.
15788 * stor-layout.c (mode_for_array): New function.
15789 (layout_type): Use it.
15790 * config/arm/arm.c (arm_array_mode_supported_p): New function.
15791 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
15792
15793 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
15794
15795 PR target/48723
15796 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
15797 for -fstack-check if the size to allocate is negative.
15798
15799 2011-05-02 Lawrence Crowl <crowl@google.com>
15800
15801 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
15802 (timevar_cond_start): New for starting a timer only when it is not
15803 already running.
15804 (timevar_cond_stop): New for stopping a timer when it was not already
15805 running.
15806
15807 * timevar.c (timevar_stop): Enable start/stop timers to start again.
15808 (timevar_cond_start): New as above.
15809 (timevar_cond_stop): New as above.
15810
15811 * timevar.def: Add start/stop timers for compiler phases,
15812 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
15813 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
15814 and TV_PHASE_FINALIZE.
15815 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
15816 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
15817 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15818 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15819 Make unused TV_OVERLOAD into a start/stop timer.
15820
15821 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15822 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15823 to indicate that they are start/stop timers.
15824
15825 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15826 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15827 Move initialization to do_compile.
15828 (do_compile): Add initialization from above.
15829 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15830
15831 * c-decl.c (c_write_global_declarations): Add start/stop of
15832 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15833
15834 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15835 or TV_PARSE_INLINE, as appropriate.
15836 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15837 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15838
15839 2011-05-02 Jason Merrill <jason@redhat.com>
15840
15841 PR c++/40975
15842 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15843
15844 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
15845
15846 PR c/35445
15847 * c-decl.c (finish_decl): Only create a composite if the types are
15848 compatible.
15849
15850 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15851
15852 * config/fr30/fr30-protos.h (Mmode): Don't define.
15853 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
15854 definition where used.
15855 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15856 define. Expand definitions where used.
15857 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15858 Expand definitions where used.
15859 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15860 rx_function_arg, rx_function_arg_advance,
15861 rx_function_arg_boundary): Expand definitions of those macros.
15862 * config/v850/v850-protos.h (Mmode): Don't define. Expand
15863 definition where used.
15864
15865 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15866
15867 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15868 reg<->xmm moves.
15869 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15870 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
15871 with *movv2sf_internal_rex64_avx.
15872 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15873 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15874 Use %v prefix in insn mnemonic to handle TARGET_AVX.
15875 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
15876 "vex" in "prefix" attribute calculation.
15877 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
15878
15879 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
15880
15881 PR target/47951
15882 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15883 inputs match the output.
15884
15885 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
15886
15887 PR target/47955
15888 * config/m68k/m68k.c (m68k_expand_prologue): Set
15889 current_function_static_stack_size.
15890
15891 2011-05-02 Jan Hubicka <jh@suse.cz>
15892
15893 * lto-streamer.c (lto_streamer_cache_insert_1,
15894 lto_streamer_cache_lookup, lto_streamer_cache_create,
15895 lto_streamer_cache_delete): Use pointer map instead of hashtable.
15896 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15897
15898 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15899
15900 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15901 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15902 config/m68k/t-opts: New files.
15903 * config/m68k/m68k-tables.opt: New file (generated).
15904 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
15905 extra_options and m68k/t-opts to tmake_file.
15906 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
15907 (all_isas): Initialize using m68k-isas.def.
15908 (all_microarchs): Initialize using m68k-microarchs.def.
15909 (m68k_find_selection): Remove.
15910 (m68k_handle_option): Don't assert that global structures are in
15911 use. Use error_at. Access variables via opts pointer. Don't
15912 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
15913 directly for -m68020-40 and -m68020-60.
15914 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
15915 m68k_tune_entry here.
15916 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
15917 to m68k-opts.h.
15918 (m68k_library_id_string): Remove declaration.
15919 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
15920 (m68k_library_id_string): New Variable.
15921 (march=, mcpu=, mtune=): Use Enum and Var.
15922
15923 2011-05-02 Richard Guenther <rguenther@suse.de>
15924
15925 * varasm.c (output_constructor_regular_field): Compute zero-based
15926 index with double-ints. Make sure to ICE instead of producing
15927 wrong code.
15928 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
15929 in asserts. Properly use a signed type.
15930
15931 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15932
15933 * config/i386/sse.md (V): New mode iterator.
15934 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
15935 TARGET_SSE2.
15936 (V_256): Rename from AVX256MODE.
15937 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
15938 condition to all users.
15939 (VF1): Ditto.
15940 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
15941 condition to all users.
15942 (VF_128): Make V4SF mode unconditional.
15943 (VF_256): Rename from AVX256MODEF2P.
15944 (VI4F_128): Rename from SSEMODE4S.
15945 (VI8F_128): Rename from SSEMODE2D.
15946 (VI4F_256): Rename from AVX256MODE8P.
15947 (VI8F_256): Rename from AVX256MODE4P.
15948 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
15949 (ssescalarmodesuffix): Remove SF and DF modes.
15950 (SSEMODE124): Remove.
15951 (SSEMODE1248): Ditto.
15952 (SSEMODEF2P): Ditto.
15953 (AVXMODEF2P): Ditto.
15954 (AVXMODEFDP): Ditto.
15955 (AVXMODEFSP): Ditto.
15956 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
15957 unconditional.
15958 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
15959 unconditional.
15960 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
15961 xop_pcmov_<mode>256. Use V mode iterator.
15962
15963 Adjust RTX patterns globally for renamed mode attributes.
15964
15965 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15966
15967 * haifa-sched.c (sched_emit_insn): Emit insn before first
15968 non-scheduled insn. Inform back-end about new insn. Add
15969 new insn to scheduled_insns list.
15970
15971 2011-05-02 Richard Guenther <rguenther@suse.de>
15972
15973 PR tree-optimization/48822
15974 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
15975 (process_scc): Indicate which iteration we start.
15976
15977 2011-05-02 Jan Hubicka <jh@suse.cz>
15978
15979 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
15980 (lto_section_overrun): New.
15981 * lto-section-out.c (append_block): Rename to ...
15982 (lto_append_block): ... this one; export.
15983 (lto_output_1_stream): Move lto lto-streamer.h
15984 (lto_output_data_stream): Update.
15985 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
15986 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
15987 functions.
15988
15989 2011-05-02 Richard Guenther <rguenther@suse.de>
15990
15991 * tree.c (tree_code_counts): New global array.
15992 (record_node_allocation_statistics): Count individual tree codes.
15993 (dump_tree_statistics): Dump individual code stats.
15994
15995 2011-05-01 Jan Hubicka <jh@suse.cz>
15996
15997 * ipa-inline.c (caller_growth_limits): Fix thinko when
15998 looking for largest stack frame.
15999 * ipa-inline.h (dump_inline_summary): Declare.
16000 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
16001 on stack usage.
16002 (dump_inline_summary): Export.
16003 (debug_inline_summary): Declare as DEBUG_FUNCTION.
16004
16005 2011-05-01 Anatoly Sokolov <aesok@post.ru>
16006
16007 * reginfo.c (memory_move_cost): Change rclass argument type form
16008 'enum reg_class' to reg_class_t.
16009 * reload.h (memory_move_cost): Update prototype.
16010 * postreload.c reload_cse_simplify_set): Change type dclass var to
16011 reg_class_t.
16012 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
16013 Update prototype.
16014 (ira_allocate_and_set_costs): Change aclass argument type form
16015 'enum reg_class' to reg_class_t.
16016 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
16017 Change aclass argument type to reg_class_t.
16018 (update_conflict_hard_reg_costs): Change type aclass and pref vars
16019 to reg_class_t.
16020 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
16021 memory_move_cost call.
16022
16023 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
16024 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
16025 Change type tmp var to reg_class_t.
16026
16027 2011-04-30 Jan Hubicka <jh@suse.cz>
16028
16029 * ipa-inline.c (can_inline_edge_p): Disregard limits when
16030 inlining into function with flatten attribute.
16031 (want_inline_small_function_p): Be more realistic about inlining
16032 cold calls where callee size grows.
16033
16034 2011-04-30 Jan Hubicka <jh@suse.cz>
16035
16036 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
16037 flags.
16038
16039 2011-04-30 Anatoly Sokolov <aesok@post.ru>
16040
16041 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16042 PRINT_OPERAND_PUNCT_VALID_P): Remove.
16043 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
16044 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
16045 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16046 (print_operand): Rename to...
16047 (sparc_print_operand): ...this. Make static. Adjust
16048 sparc_print_operand function call.
16049 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
16050 functions.
16051
16052 2011-04-30 Jan Hubicka <jh@suse.cz>
16053
16054 PR middle-end/48752
16055 * ipa-inline.c (early_inliner): Disable when doing late
16056 addition of function.
16057
16058 2011-04-30 Jakub Jelinek <jakub@redhat.com>
16059
16060 * dwarf2out.c (get_address_mode): New inline.
16061 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
16062 if not dwarf_strict emit
16063 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
16064 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
16065 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
16066 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
16067 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
16068 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
16069 mem_loc_descriptor callers.
16070 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16071 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
16072 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
16073 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
16074 (base_types): New variable.
16075 (get_base_type_offset, calc_base_type_die_sizes,
16076 base_type_for_mode, mark_base_types, base_type_cmp,
16077 move_marked_base_types): New functions.
16078 (calc_die_sizes): Assert that die_offset is 0 or equal to
16079 next_die_offset.
16080 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
16081 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
16082 callers. If not dwarf_strict, call mem_loc_descriptor even for
16083 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
16084 (gen_subprogram_die): Don't give up on call site parameters
16085 with non-integral or large integral modes. Adjust
16086 mem_loc_descriptor callers.
16087 (prune_unused_types): Call prune_unused_types_mark on base_types
16088 vector entries.
16089 (resolve_addr): Call mark_base_types.
16090 (dwarf2out_finish): Call move_marked_base_types.
16091
16092 PR tree-optimization/48809
16093 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
16094 type.
16095 (gen_inbound_check): Don't compute index_expr - range_min in utype
16096 again, instead reuse SSA_NAME initialized in build_arrays.
16097 Remove two useless gsi_for_stmt calls.
16098
16099 2011-04-29 Jeff Law <law@redhat.com>
16100
16101 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
16102
16103 2011-04-29 Martin Jambor <mjambor@suse.cz>
16104
16105 * cgraph.h (cgraph_postorder): Remove declaration.
16106 * ipa-utils.h (ipa_free_postorder_info): Declare.
16107 (ipa_reverse_postorder): Likewise.
16108 * cgraphunit.c: Include ipa-utils.h.
16109 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
16110 * ipa-inline.c: Include ipa-utils.h.
16111 (ipa_inline): Update call to ipa_reverse_postorder.
16112 * ipa-pure-const.c (propagate_pure_const): Update call to
16113 ipa_reduced_postorder and ipa_print_order. Call
16114 ipa_free_postorder_info to clean up.
16115 (propagate_nothrow): Likewise.
16116 * ipa-reference.c (propagate): Removed a useless call to
16117 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
16118 and ipa_print_order. Call ipa_free_postorder_info to clean up.
16119 * ipa.c: Include ipa-utils.h.
16120 (ipa_profile): Update call to ipa_reverse_postorder.
16121 (cgraph_postorder): Moved to...
16122 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
16123 (ipa_utils_print_order): Renamed to ipa_print_order.
16124 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
16125 comments.
16126 (ipa_free_postorder_info): New function.
16127 * passes.c: Include ipa-utils.h.
16128 (do_per_function_toporder): Update call to ipa_reverse_postorder.
16129 (ipa_write_summaries): Likewise.
16130 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
16131 (cgraphunit.o): Likewise.
16132 (ipa.o): Likewise.
16133 (ipa-inline.o): Likewise.
16134
16135 2011-04-29 Jan Hubicka <jh@suse.cz>
16136
16137 * gcc.dg/tree-ssa/inline-10.c: New testcase.
16138 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
16139 * ipa-inline.h (clause_t): Turn into unsigned int.
16140 * ipa-inline-analysis.c (add_clause): Do more simplification.
16141 (and_predicates): Shortcut more cases.
16142 (predicates_equal_p): Move forward; check that clauses are properly
16143 ordered.
16144 (or_predicates): Shortcut more cases.
16145 (edge_execution_predicate): Rewrite as...
16146 (set_cond_stmt_execution_predicate): ... this function; handle
16147 __builtin_constant_p.
16148 (set_switch_stmt_execution_predicate): New .
16149 (compute_bb_predicates): New.
16150 (will_be_nonconstant_predicate): Update TODO.
16151 (estimate_function_body_sizes): Use compute_bb_predicates
16152 and free them later, always try to estimate if stmt is constant.
16153 (estimate_time_after_inlining, estimate_size_after_inlining):
16154 Gracefully handle optimized out edges.
16155 (read_predicate): Fix off by one error.
16156
16157 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
16158
16159 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
16160
16161 2011-04-27 Xinliang David Li <davidxl@google.com>
16162
16163 * tree-profile.c (init_ic_make_global_vars): Set
16164 tls attribute on ic vars.
16165 * coverage.c (coverage_end_function): Initialize
16166 function_list with zero.
16167
16168 2011-04-29 Richard Guenther <rguenther@suse.de>
16169
16170 * builtins.c (fold_builtin_classify_type): Use integer_type_node
16171 for the type of the result.
16172 (fold_builtin_isascii): Likewise.
16173 (fold_builtin_toascii): Use integer_type_node where appropriate.
16174 (fold_builtin_logb): Likewise.
16175 (fold_builtin_frexp): Likewise.
16176 (fold_builtin_strstr): Likewise.
16177 (fold_builtin_strpbrk): Likewise.
16178 (fold_builtin_fputs): Likewise.
16179 (fold_builtin_sprintf): Likewise.
16180 (fold_builtin_snprintf): Likewise.
16181 (fold_builtin_printf): Likewise.
16182 (do_mpfr_remquo): Use a proper type for the assigned constant.
16183 (do_mpfr_lgamma_r): Likewise.
16184 * dwarf2out.c (resolve_one_addr): Use size_int.
16185 * except.c (init_eh): Likewise.
16186 (assign_filter_values): Use integer_type_node for filter values.
16187 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
16188 indices.
16189 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
16190 for EH region numbers.
16191 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
16192 for the shift amount.
16193
16194 2011-04-29 Richard Guenther <rguenther@suse.de>
16195
16196 * expr.h (expand_shift): Rename to ...
16197 (expand_variable_shift): ... this.
16198 (expand_shift): Take a constant shift amount.
16199 * expmed.c (expand_shift): Rename to ...
16200 (expand_variable_shift): ... this.
16201 (expand_shift): New wrapper around expand_variable_shift.
16202 * expr.c (convert_move, emit_group_load_1, emit_group_store,
16203 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
16204 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
16205 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
16206 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
16207 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
16208 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
16209 emit_store_flag_1, emit_store_flag): Likewise.
16210 * builtins.c (expand_builtin_signbit): Likewise.
16211 * calls.c (load_register_parameters): Likewise.
16212 * function.c (assign_parm_setup_block): Likewise.
16213 * lower-subreg.c (resolve_shift_zext): Likewise.
16214 * optabs.c (widen_bswap, expand_abs_nojump,
16215 expand_one_cmpl_abs_nojump, expand_float): Likewise.
16216 * spu/spu.c (spu_expand_extv): Likewise.
16217 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16218
16219 2011-04-29 Richard Guenther <rguenther@suse.de>
16220
16221 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16222 for the remapped region number.
16223 * predict.c (build_predict_expr): Use integer_type_node for the
16224 predict kind.
16225 * fold-const.c (fold_binary_loc): Use integer_type_node for
16226 the shift amount. Use a proper type for the PLUS_EXPR operand.
16227
16228 2011-04-29 Michael Matz <matz@suse.de>
16229
16230 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16231 other trees that just builtins.
16232 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16233
16234 2011-04-29 Richard Guenther <rguenther@suse.de>
16235
16236 * tree-nested.c (get_trampoline_type): Use size_int.
16237 (get_nl_goto_field): Likewise.
16238 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16239 for all indexes.
16240 (lower_eh_constructs_2): Likewise.
16241 (lower_resx): Likewise.
16242 (lower_eh_dispatch): Likewise.
16243 * tree-mudflap.c (mf_build_string): Use size_int.
16244 (mudflap_register_call): Use integer_type_node for the flag.
16245 (mudflap_enqueue_constant): Use size_int.
16246 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16247 instead of rebuilding it.
16248
16249 2011-04-29 Richard Guenther <rguenther@suse.de>
16250
16251 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16252 Handle OBJ_TYPE_REF.
16253 (find_func_aliases_for_call): Use it more consistently.
16254
16255 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
16256
16257 * haifa-sched.c (last_nondebug_scheduled_insn): New.
16258 (rank_for_schedule): Use it.
16259 (schedule_block): Set it.
16260
16261 2011-04-28 David Li <davidxl@google.com>
16262
16263 * tree.c (crc32_string): Use crc32_byte.
16264 (crc32_byte): New function.
16265 * tree.h (crc32_byte): New function.
16266 * gcov.c (read_graph_file): Handle new cfg_cksum.
16267 (read_count_file): Ditto.
16268 * profile.c (instrument_values): Ditto.
16269 (get_exec_counts): Ditto.
16270 (read_profile_edge_counts): Ditto.
16271 (compute_branch_probabilities): Ditto.
16272 (compute_value_histograms): Ditto.
16273 (branch_prob): Ditto.
16274 (end_branch_prob): Ditto.
16275 * coverage.c (read_counts_file): Ditto.
16276 (get_coverage_counts): Ditto.
16277 (tree_coverage_counter_addr): Ditto.
16278 (coverage_checksum_string): Ditto.
16279 (coverage_begin_output): Ditto.
16280 (coverage_end_function): Ditto.
16281 (build_fn_info_type): Ditto.
16282 (build_fn_info_value): Ditto.
16283 * libgcov.c (gcov_exit): Ditto.
16284 * gcov-dump.c (tag_function): Ditto.
16285 (compute_checksum): Remove.
16286
16287 2011-04-29 Alan Modra <amodra@gmail.com>
16288
16289 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16290 unspec plus offset. Tidy macho code.
16291
16292 2011-04-29 Martin Jambor <mjambor@suse.cz>
16293
16294 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16295 node instead of a decl. Update all callers.
16296 * cgraph.h: Update declaration.
16297
16298 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
16299
16300 PR tree-optimization/48765
16301 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16302 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
16303 to indicate if loop aware SLP is being used. Scan the statements
16304 and update the vectorization factor according to the type of
16305 vectorization before statement analysis.
16306 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16307 pass it to vect_analyze_loop_operations.
16308 (vectorizable_reduction): Set number of copies to 1 in case of pure
16309 SLP statement.
16310 * tree-vect-stmts.c (vectorizable_conversion,
16311 vectorizable_assignment, vectorizable_shift,
16312 vectorizable_operation, vectorizable_type_demotion,
16313 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
16314 Likewise.
16315 (vectorizable_condition): Move the check that it is not SLP
16316 vectorization before the number of copies check.
16317 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
16318 to vectorize the loop using SLP.
16319
16320 2011-04-28 Jakub Jelinek <jakub@redhat.com>
16321
16322 PR middle-end/48597
16323 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
16324 inline asm.
16325
16326 2011-04-28 Joseph Myers <joseph@codesourcery.com>
16327
16328 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
16329 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
16330 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16331 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16332 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
16333 linux*.h headers.
16334 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
16335 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16336 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16337 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16338 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16339 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
16340 REG_NAME.
16341 * config/i386/linux.h (REG_NAME): Don't define.
16342 * config/i386/linux64.h (REG_NAME): Don't define.
16343 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
16344 Undefine before defining.
16345
16346 2011-04-28 Jan Hubicka <jh@suse.cz>
16347
16348 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
16349 nonconstant_names array.
16350 (estimate_function_body_sizes): Build nonconstant_names array; handle
16351 BUILT_IN_CONSTANT_P.
16352
16353 2011-04-28 Richard Guenther <rguenther@suse.de>
16354
16355 PR bootstrap/48804
16356 Revert
16357 2011-04-28 Richard Guenther <rguenther@suse.de>
16358
16359 * tree-ssa-structalias.c (solve_constraints): Build succ graph
16360 as late as possible.
16361
16362 2011-04-28 Richard Guenther <rguenther@suse.de>
16363
16364 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
16365 (debug_constraint): Do it here.
16366 (dump_constraints): And here.
16367 (rewrite_constraints): And here.
16368 (dump_constraint_edge): Remove.
16369 (dump_constraint_graph): Rewrite to produce DOT output.
16370 (solve_constraints): Build succ graph as late as possible.
16371 Dump constraint graphs before and after solving.
16372
16373 2011-04-28 Richard Guenther <rguenther@suse.de>
16374
16375 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16376 New function split out from ...
16377 (find_func_aliases): ... here. Call it.
16378 (find_func_aliases_for_call): Likewise.
16379
16380 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
16381
16382 * internal-fn.h (internal_fn_name_array): Declare.
16383 (internal_fn_flags_array): Likewise.
16384
16385 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16386
16387 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
16388 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
16389 Move from sse.md.
16390 (ssemodefsuffix): Remove.
16391 (ssevecmodesuffix): New mode attribute.
16392 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
16393 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16394 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16395 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16396 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
16397 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
16398 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
16399 ssemodesuffix mode attribute.
16400 (float splitters): Use ssevecmodesuffix mode attribute.
16401 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
16402 (sseinsmode): Rename from avxvecmode.
16403 (avxsizesuffix): Rename from avxmodesuffix.
16404 (sseintvecmode): Rename from avxpermvecmode.
16405 (ssedoublevecmode): Rename from ssedoublesizemode.
16406 (ssehalfvecmode): Rename from avxhalfvecmode.
16407 (ssescalarmode): Rename from avxscalarmode.
16408 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
16409 templates for ssemodesuffix mode attribute.
16410 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
16411 mode attribute.
16412
16413 Adjust RTX patterns globally for renamed mode attributes.
16414
16415 2011-04-27 Jan Hubcika <jh@suse.cz>
16416
16417 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
16418 * ipa-inline-analysis.c: Include alloc-pool.h.
16419 (edge_predicate_pool): New.
16420 (trye_predicate_p): New function
16421 (false_predicate_p): New function.
16422 (add_clause): Sanity check that false clauses are "optimized";
16423 never add clauses to predicate that is already known to be false.
16424 (and_predicate): Use flase_predicate_p.
16425 (evaulate_predicate): Rename to ...
16426 (evaluate_predicate): ... this one; update all callers; assert
16427 that false is not listed among possible truths.
16428 (dump_predicate): Use true_predicate_p.
16429 (account_size_time): Use false_predicate_p.
16430 (evaulate_conditions_for_edge): Rename to ...
16431 (evaluate_conditions_for_edge) ... this one.
16432 (edge_set_predicate): New function.
16433 (inline_edge_duplication_hook): Duplicate edge predicates.
16434 (inline_edge_removal_hook): Free edge predicates.
16435 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
16436 (dump_inline_summary): Update.
16437 (estimate_function_body_sizes): Set edge predicates.
16438 (estimate_calls_size_and_time): Handle predicates.
16439 (estimate_callee_size_and_time): Update.
16440 (remap_predicate): Add toplev_predicate; update comment.
16441 (remap_edge_predicates): New function.
16442 (inline_merge_summary): Compute toplev predicate; update.
16443 (read_predicate): New function.
16444 (read_inline_edge_summary): Use it.
16445 (inline_read_section): Likewise.
16446 (write_predicate): New function.
16447 (write_inline_edge_summary): Use it.
16448 (inline_write_summary): Likewise.
16449 (inline_free_summary): Free alloc pool and edge summary vec.
16450
16451 2011-04-27 Richard Guenther <rguenther@suse.de>
16452
16453 * tree-ssa-structalias.c (changed_count): Remove.
16454 (changed): Use a bitmap.
16455 (unify_nodes): Adjust.
16456 (do_sd_constraint): Likewise.
16457 (do_ds_constraint): Likewise.
16458 (do_complex_constraint): Likewise.
16459 (solve_graph): Likewise.
16460
16461 2011-04-27 Jan Hubicka <jh@suse.cz>
16462
16463 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
16464
16465 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16466
16467 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
16468 (avx_vperm2f128_*_operand): Ditto.
16469 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
16470 Use avx_vpermilp_parallel in insn condition.
16471 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
16472 Use avx_vperm2f128_parallel in insn condition.
16473
16474 2011-04-27 Richard Guenther <rguenther@suse.de>
16475
16476 * Makefile.in (tree-ssa-structalias.o): Remove
16477 gt-tree-ssa-structalias.h dependency.
16478 (GTFILES): Remove tree-ssa-structalias.c.
16479 * tree.c (allocate_decl_uid): New function.
16480 (make_node_stat): Use it.
16481 (copy_node_stat): Likewise.
16482 * tree.h (allocate_decl_uid): Declare.
16483 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
16484 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
16485 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
16486 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
16487 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
16488 (struct heapvar_map): Likewise.
16489 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
16490 heapvar_insert): Likewise.
16491 (make_heapvar_for): Rename to ...
16492 (make_heapvar): ... this. Simplify.
16493 (fake_var_decl_obstack): New global var.
16494 (build_fake_var_decl): New function.
16495 (make_constraint_from_heapvar): Adjust.
16496 (handle_lhs_call): Likewise.
16497 (create_function_info_for): Likewise.
16498 (intra_create_variable_infos): Likewise.
16499 (init_alias_vars): Allocate fake_var_decl_obstack.
16500 (init_alias_heapvars, delete_alias_heapvars): Remove.
16501 (compute_points_to_sets): Do not call init_alias_heapvars.
16502 (ipa_pta_execute): Likewise.
16503 (delete_points_to_sets): Free fake_var_decl_obstack.
16504
16505 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16506
16507 * config/spu/divmovti4.c (union qword_UTItype): New data type.
16508 (si_from_UTItype, si_to_UTItype): New functions.
16509 (__udivmodti4): Use them to implement type-punning.
16510 * config/spu/multi3.c (union qword_TItype): New data type.
16511 (si_from_TItype, si_to_TItype): New functions.
16512 (__multi3): Use them to implement type-punning.
16513
16514 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16515
16516 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
16517
16518 2011-04-27 Jan Hubicka <jh@suse.cz>
16519
16520 * ipa-prop.c (function_insertion_hook_holder): New holder.
16521 (ipa_add_new_function): New function.
16522 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
16523 Register/deregister holder.
16524
16525 2011-04-27 Richard Guenther <rguenther@suse.de>
16526
16527 PR tree-optimization/48772
16528 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
16529
16530 2011-04-27 Richard Guenther <rguenther@suse.de>
16531
16532 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16533 TARGET_MEM_REF handling.
16534
16535 2011-04-27 Nick Clifton <nickc@redhat.com>
16536
16537 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16538 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16539 (REG_CLASS_NAMES): Likewise.
16540 (REG_CLASS_CONTENTS): Likewise.
16541 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16542 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16543 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
16544 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
16545 (EVEN_REGS): New macro. Alias for QUAD_REGS.
16546 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16547 duplicate register classes.
16548 (frv_class_likely_spilled_p): Likewise.
16549 (frv_register_move_cost): Likewise.
16550
16551 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16552 end of the regno_reg_class array.
16553
16554 2011-04-27 Jakub Jelinek <jakub@redhat.com>
16555
16556 PR c/48742
16557 * c-typeck.c (build_binary_op): Don't wrap arguments if
16558 int_operands is true.
16559
16560 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
16561
16562 PR target/48767
16563 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16564 targetm.calls.must_pass_in_stack for void type.
16565
16566 2011-04-26 Jan Hubicka <jh@suse.cz>
16567
16568 * cgraphbuild.c (build_cgraph_edges): Update call
16569 of cgraph_create_edge and cgraph_create_indirect_edge.
16570 * cgraph.c (cgraph_create_edge_including_clones,
16571 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16572 cgraph_update_edges_for_call_stmt_node): Do not take nest
16573 argument; do not initialize call_stmt_size/time.
16574 (dump_cgraph_node): Do not dump nest.
16575 (cgraph_clone_edge): Do not take loop_nest argument;
16576 do not propagate it; do not clone call_stmt_size/time.
16577 (cgraph_clone_node): Likewise.
16578 (cgraph_create_virtual_clone): Update.
16579 * cgraph.h (struct cgraph_edge): Remove
16580 call_stmt_size/call_stmt_time/loop_nest.
16581 (cgraph_create_edge, cgraph_create_indirect_edge,
16582 cgraph_create_edge_including_clones, cgraph_clone_node): Update
16583 prototype.
16584 * tree-emutls.c (gen_emutls_addr): Update.
16585 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16586 loop_nest; handle indirect calls, too.
16587 (clone_inlined_nodes): Do not care about updating inline summaries.
16588 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16589 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16590 stream call_stmt_size/call_stmt_time/loop_nest.
16591 * ipa-inline.c (edge_badness): Update.
16592 (ipa_inline): dump summaries after inlining.
16593 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16594 New.
16595 (inline_edge_summary): New function.
16596 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16597 (inline_edge_removal_hook): Handle edge summaries.
16598 (inline_edge_duplication_hook): New hook.
16599 (inline_summary_alloc): Alloc hooks.
16600 (initialize_growth_caches): Do not register removal hooks.
16601 (free_growth_caches); Do not free removal hook.
16602 (dump_inline_edge_summary): New function.
16603 (dump_inline_summary): Use it.
16604 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16605 (inline_update_callee_summaries): New function.
16606 (inline_merge_summary): Use it.
16607 (do_estimate_edge_time, do_estimate_edge_growth): Update.
16608 (read_inline_edge_summary): New function.
16609 (inline_read_section): Use it.
16610 (write_inline_edge_summary): New function.
16611 (inline_write_summary): Use it.
16612 (inline_free_summary): Free edge new holders.
16613 * tree-inline.c (copy_bb): Update.
16614
16615 2011-04-26 Jason Merrill <jason@redhat.com>
16616
16617 * tree-eh.c (lower_try_finally_switch): Create the label along with
16618 the CASE_LABEL_EXPR.
16619
16620 2011-04-26 David S. Miller <davem@davemloft.net>
16621 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16622
16623 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16624 * configure: Regenerate.
16625
16626 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16627
16628 PR target/48258
16629 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16630 reduction.
16631 (VEC_reduc): New code iterator and splitters for vector reduction.
16632 (VEC_reduc_name): Ditto.
16633 (VEC_reduc_rtx): Ditto.
16634 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16635 (reduc_<VEC_reduc_name>_v4sf): Ditto.
16636
16637 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16638 support for extracting SF on VSX.
16639
16640 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16641 generating xscvspdp.
16642 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16643 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16644 double add, minimum, maximum vector reduction.
16645 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16646 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16647 optimize double vector reduction.
16648 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16649
16650 2011-04-26 Joseph Myers <joseph@codesourcery.com>
16651
16652 * config/fr30/fr30.h (inhibit_libc): Don't define.
16653 * config/m32r/m32r-protos.h: Correct comment.
16654 * config/v850/v850.h (GHS_default_section_names,
16655 GHS_current_section_names): Use tree, not union tree_node *.
16656
16657 2011-04-26 Xinliang David Li <davidxl@google.com>
16658
16659 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16660 * c-family/c-opts.c (c_common_handle_option): Set
16661 warn_maybe_uninitialized.
16662 * opts.c (common_handle_option): Ditto.
16663 * common.opt: New option.
16664 * tree-ssa.c (warn_uninit): Add one more parameter.
16665 (warn_uninitialized_var): Pass warning code.
16666 * tree-flow.h: Interface change.
16667
16668 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16669
16670 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16671 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16672 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16673
16674 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16675
16676 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16677 * config/mips/mips.opt (mmips-tfile): Remove.
16678
16679 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16680 mips-tdump reference to ...
16681 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
16682 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16683 reference by Tru64 UNIX.
16684
16685 2011-04-26 Jakub Jelinek <jakub@redhat.com>
16686
16687 PR debug/48768
16688 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16689 is error_mark_node, set value to NULL.
16690
16691 PR tree-optimization/48734
16692 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16693 if return value from maybe_fold_*_comparsions isn't something
16694 the code is prepared to handle.
16695
16696 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
16697
16698 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16699 mode check.
16700 (ext_QIreg_nomode_operands): Remove.
16701 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16702 (*andsi_1): Ditto.
16703 (*andhi_1): Ditto.
16704
16705 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
16706
16707 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16708
16709 2011-04-26 Richard Guenther <rguenther@suse.de>
16710
16711 * c-typeck.c (build_unary_op): Do not expand array-refs via
16712 pointer arithmetic. Only adjust qualifiers for function types.
16713
16714 2011-04-26 Richard Guenther <rguenther@suse.de>
16715
16716 PR middle-end/48694
16717 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16718 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16719 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
16720 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16721
16722 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
16723
16724 * doc/extend.texi: Document __underlying_type.
16725
16726 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
16727
16728 * config/rs6000/titan.md (automata_option "progress"): Remove.
16729
16730 2011-04-25 Jeff Law <law@redhat.com>
16731
16732 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16733
16734 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16735
16736 * system.h (ENUM_BITFIELD): Remove.
16737
16738 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
16739 Eric Botcazou <ebotcazou@adacore.com>
16740
16741 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16742 for STORE_FLAG_VALUE==-1 case.
16743
16744 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
16745
16746 PR target/43804
16747 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16748 LEGITIMATE_PIC_OPERAND_P.
16749
16750 2011-04-24 Jan Hubicka <jh@suse.cz>
16751
16752 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16753 WPA hack.
16754 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
16755 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
16756 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
16757 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
16758 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
16759 Sanity check predicate length.
16760 (remap_predicate): Likewise; sanity check jump functions.
16761 (inline_read_section, inline_write_summary): Sanity check
16762 predicate length.
16763
16764 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16765
16766 PR other/48748
16767 * doc/extend.texi (Type Traits): Document __is_standard_layout,
16768 __is_literal_type, and __is_trivial; update throughout about
16769 possibly cv-qualified void types.
16770
16771 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
16772
16773 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
16774 testsuite and make it version agnostic.
16775
16776 2011-04-22 Jan Hubicka <jh@suse.cz>
16777
16778 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16779
16780 2011-04-23 Jakub Jelinek <jakub@redhat.com>
16781
16782 PR c/48685
16783 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
16784 to VOID_TYPE even around MODIFY_EXPR.
16785
16786 2011-04-22 Mike Stump <mikestump@comcast.net>
16787
16788 * gensupport.c (read_md_rtx): Fix typo in comment.
16789 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
16790 comment.
16791
16792 2011-04-22 Jan Hubicka <jh@suse.cz>
16793
16794 * gengtype.c (open_base_files): Add ipa-inline.h include.
16795 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
16796 ipa-prop.c; update all uses.
16797 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
16798 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
16799 merge summary of inlined function into former caller.
16800 * ipa-inline.c (max_benefit): Remove.
16801 (edge_badness): Compensate for removal of benefits.
16802 (update_caller_keys): Use
16803 reset_node_growth_cache/reset_edge_growth_cache.
16804 (update_callee_keys): Likewise.
16805 (update_all_callee_keys): Likewise.
16806 (inline_small_functions): Do not collect max_benefit; do not reset
16807 estimated_growth; call free_growth_caches and initialize_growth_caches.
16808 * ipa-inline.h (struct condition, type clause_t, struct predicate,
16809 struct size_time_entry): New structures.
16810 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
16811 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
16812 and estimated_growth.
16813 (edge_growth_cache_entry): New structure.
16814 (node_growth_cache, edge_growth_cache): New global vars.
16815 (estimate_growth): Turn into inline.
16816 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
16817 initialize_growth_caches, free_growth_caches): Declare.
16818 (estimate_edge_growth): Rewrite.
16819 (estimate_edge_time): Implement as inline cache lookup.
16820 (reset_node_growth_cache, reset_edge_growth_cache): New inline
16821 functions.
16822 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16823 (NUM_CONDITIONS): New constant.
16824 (predicate_conditions): New enum.
16825 (IS_NOT_CONSTANT): New constant.
16826 (edge_removal_hook_holder): New var.
16827 (node_growth_cache, edge_growth_cache): New global vars.
16828 (true_predicate, single_cond_predicate, false_predicate,
16829 not_inlined_predicate, add_condition, add_clause, and_predicates,
16830 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16831 dump_clause, dump_predicate, account_size_time,
16832 evaulate_conditions_for_edge): New functions.
16833 (inline_summary_alloc): Move to heap.
16834 (inline_node_removal_hook): Clear condition and entry vectors.
16835 (inline_edge_removal_hook): New function.
16836 (initialize_growth_caches, free_growth_caches): New function.
16837 (dump_inline_summary): Update.
16838 (edge_execution_predicate): New function.
16839 (will_be_nonconstant_predicate): New function.
16840 (estimate_function_body_sizes): Compute BB and constantness predicates.
16841 (compute_inline_parameters): Do not clear estimated_growth.
16842 (estimate_edge_size_and_time): New function.
16843 (estimate_calls_size_and_time): New function.
16844 (estimate_callee_size_and_time): New function.
16845 (remap_predicate): New function.
16846 (inline_merge_summary): New function.
16847 (do_estimate_edge_time): New function based on...
16848 (estimate_edge_time): ... this one.
16849 (do_estimate_edge_growth): New function.
16850 (do_estimate_growth): New function based on....
16851 (estimate_growth): ... this one.
16852 (inline_analyze_function): Analyze after deciding on jump functions.
16853 (inline_read_section): New function.
16854 (inline_read_summary): Use it.
16855 (inline_write_summary): Write all the new data.
16856 * ipa-prop.c (ipa_get_param_decl_index): Export.
16857 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16858 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16859 Declare.
16860 (ipa_get_lattice): Move here from ipa-cp.c
16861 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16862 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16863 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16864 cgraph_edge_inlinable_p): Remove.
16865 * cgraphunit.c: Include ipainline.h
16866 (cgraph_process_new_functions): Update call of
16867 compute_inline_parameters.
16868
16869 2011-04-22 Richard Guenther <rguenther@suse.de>
16870
16871 * tree.c (build_int_cst): Properly create canonicalized integer
16872 constants.
16873 (build_int_cst_type): Remove scary comments.
16874
16875 2011-04-22 Xinliang David Li <davidxl@google.com>
16876
16877 * toplev.c (process_options): Enable -Werror=coverage-mismatch
16878 by default when -Wno-error is not specified.
16879 * opts-global.c (decode_options): Remove call to
16880 control_warning_options.
16881
16882 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16883
16884 PR tree-optimization/48717
16885 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16886 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16887
16888 2011-04-22 Joseph Myers <joseph@codesourcery.com>
16889
16890 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
16891 definition where used.
16892
16893 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16894
16895 PR c/48716
16896 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16897 TREE_STATIC variables declared inside of some OpenMP construct.
16898
16899 2011-04-22 Martin Jambor <mjambor@suse.cz>
16900
16901 PR middle-end/48585
16902 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16903
16904 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
16905
16906 PR c/36750
16907 * c-typeck.c (pop_init_level): Do not warn about initializing
16908 with ` = {0}'.
16909
16910 2011-04-22 Alan Modra <amodra@gmail.com>
16911
16912 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
16913 when returning call_cookie.
16914 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
16915 pointers, to functions with no more vector args than the current
16916 function, and some non-local calls for ABI_V4.
16917 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
16918 sibcall_nonlocal_aix64): Combine to ..
16919 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
16920 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
16921 (sibcall_value_nonlocal_aix<mode>): ..likewise.
16922 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
16923 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
16924 operand.
16925 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
16926 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
16927 sibcall_value_symbolic_64): Delete.
16928
16929 2011-04-21 Xinliang David Li <davidxl@google.com>
16930
16931 * cgraph.h: Remove pid.
16932 * cgraph.c: Remove pid.
16933 * value-prof.c (init_node_map): New function.
16934 (del_node_map): New function.
16935 (find_func_by_funcdef_no): New function.
16936 (gimple_ic_transform): Call new function.
16937 * cgraphunit.c (cgraph_finalize_function): Remove pid.
16938 * function.c (get_last_funcdef_no): New function.
16939 * function.h (get_last_funcdef_no): New function.
16940 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
16941 to libgcov function.
16942 (tree-profiling): Call node map init and delete function.
16943
16944 2011-04-21 Ian Lance Taylor <iant@google.com>
16945
16946 * godump.c (go_format_type): Use exported Go name for anonymous
16947 field name.
16948
16949 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16950
16951 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
16952 Call builtin_function_type_list instead of builtin_function_type.
16953 (UNARY, BINARY, TRINARY, QUAD): Likewise.
16954
16955 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16956
16957 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
16958 build_function_type_list instead of build_function_type.
16959 Delete variable `endlink'.
16960
16961 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16962
16963 * config/s390/s390.c (s390_init_builtins): Call
16964 build_function_type_list instead of build_function_type.
16965
16966 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
16967
16968 * config/ia64/ia64.c (ia64_init_builtins): Call
16969 build_function_type_list instead of builtin_function_type.
16970
16971 2011-04-21 Easwaran Raman <eraman@google.com>
16972
16973 * cfgexpand.c (stack_var): Remove OFFSET...
16974 (add_stack_var): ...and its reference here...
16975 (expand_stack_vars): ...and here.
16976 (stack_var_cmp): Sort by descending order of size.
16977 (partition_stack_vars): Change heuristic.
16978 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
16979 (dump_stack_var_partition): Add newline after each partition.
16980
16981 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
16982 Jeff Law <law@redhat.com>
16983
16984 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
16985 * gengtype.c (matching_file_name_substitute): Likewise.
16986
16987 2011-04-21 Richard Guenther <rguenther@suse.de>
16988
16989 PR lto/48703
16990 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
16991
16992 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
16993
16994 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
16995
16996 2011-04-21 Richard Guenther <rguenther@suse.de>
16997
16998 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
16999 file name.
17000
17001 2011-04-21 Richard Guenther <rguenther@suse.de>
17002
17003 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17004 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
17005 Use DECL_P, not SSA_VAR_P.
17006 (ptr_derefs_may_alias_p): Likewise.
17007 (ptr_deref_may_alias_ref_p_1): Likewise.
17008 (decl_refs_may_alias_p): Likewise.
17009 (refs_may_alias_p_1): Likewise.
17010 (ref_maybe_used_by_call_p_1): Likewise.
17011 (call_may_clobber_ref_p_1): Likewise.
17012 (indirect_ref_may_alias_decl_p): Assume indirect refrences
17013 are either MEM_REF or TARGET_MEM_REF.
17014 (indirect_refs_may_alias_p): Likewise.
17015 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
17016 for MEM_EXPR of indirect calls.
17017
17018 2011-04-21 Tristan Gingold <gingold@adacore.com>
17019
17020 * vmsdbgout.c (write_srccorr): Compute file length from the string.
17021 (dst_file_info_struct): Remove flen field.
17022 (lookup_filename): Remove code that set flen field.
17023
17024 2011-04-21 Tristan Gingold <gingold@adacore.com>
17025
17026 * config/ia64/ia64.c (ia64_start_function): Add a guard.
17027
17028 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
17029
17030 PR target/48708
17031 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
17032 vec_extract and vec_concat for non-SSE4_1 targets.
17033
17034 2011-04-21 Richard Guenther <rguenther@suse.de>
17035
17036 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
17037 return statements.
17038
17039 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17040
17041 * config/i386/cygming.h (union tree_node, TREE): Don't define or
17042 undefine.
17043 (FILE): Don't undefine.
17044
17045 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17046
17047 * config/alpha/alpha.c (struct machine_function): Use rtx, not
17048 struct rtx_def *.
17049 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
17050 struct rtx_def *.
17051 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
17052 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
17053 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
17054 rtx_def *.
17055 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
17056 definitions where used.
17057 * config/microblaze/microblaze.h (struct microblaze_args): Use
17058 rtx, not struct rtx_def *.
17059 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
17060 rtx_def *.
17061 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
17062 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
17063 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
17064 not struct rtx_def *.
17065 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
17066 struct rtx_def *.
17067 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
17068 rtx_def *.
17069 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
17070
17071 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17072
17073 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
17074 operand_equal_p to compare DR_BASE_ADDRESSes.
17075 (vect_check_interleaving): Likewise.
17076
17077 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17078
17079 PR target/46329
17080 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
17081 for all Neon struct constants.
17082
17083 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17084
17085 * target.def (legitimate_constant_p): New hook.
17086 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
17087 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
17088 * doc/tm.texi: Regenerate.
17089 * hooks.h (hook_bool_mode_rtx_true): Declare.
17090 * hooks.c (hook_bool_mode_rtx_true): Define.
17091 * system.h (LEGITIMATE_CONSTANT_P): Poison.
17092 * calls.c (precompute_register_parameters): Replace uses of
17093 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
17094 (emit_library_call_value_1): Likewise.
17095 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
17096 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
17097 * ira-costs.c (scan_one_insn): Likewise.
17098 * recog.c (general_operand, immediate_operand): Likewise.
17099 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
17100 * reload1.c (init_eliminable_invariants): Likewise.
17101
17102 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
17103 mode argument.
17104 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
17105 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
17106 argument.
17107 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17108 * config/alpha/predicates.md (input_operand): Update call to
17109 alpha_legitimate_constant_p.
17110
17111 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
17112 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
17113 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
17114 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17115 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
17116 (arm_legitimate_constant_p): New functions.
17117 (arm_cannot_force_const_mem): Make static.
17118
17119 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
17120
17121 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
17122 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
17123 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
17124 instead of bfin_legitimate_constant_p.
17125 (bfin_legitimate_constant_p): Make static. Add a mode argument.
17126 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17127
17128 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
17129
17130 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
17131
17132 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
17133 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
17134 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17135 (frv_legitimate_constant_p): Make static. Add a mode argument.
17136
17137 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
17138 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
17139 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
17140
17141 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
17142 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
17143 * config/i386/i386.c (legitimate_constant_p): Rename to...
17144 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
17145 argument.
17146 (ix86_cannot_force_const_mem): Update accordingly.
17147 (ix86_legitimate_address_p): Likewise.
17148 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17149 * config/i386/i386.md: Update commentary.
17150
17151 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
17152 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
17153 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17154 (ia64_legitimate_constant_p): Make static. Add a mode argument.
17155
17156 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
17157
17158 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
17159 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
17160 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17161 (lm32_legitimate_constant_p): Make static. Add a mode argument.
17162
17163 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
17164 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
17165 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
17166
17167 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
17168 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17169 (m32r_legitimate_constant_p): New function.
17170
17171 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
17172 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
17173 LEGITIMATE_CONSTANT_P.
17174 (LEGITIMATE_CONSTANT_P): Delete.
17175 * config/m68k/m68k.c (m68k_expand_prologue): Call
17176 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
17177 (m68k_legitimate_constant_p): New function.
17178 * config/m68k/m68k.md: Update comments.
17179
17180 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
17181 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17182 (mcore_legitimate_constant_p): New function.
17183
17184 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
17185 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
17186 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
17187 Add a mode argument.
17188 (mep_legitimate_address): Update accordingly.
17189 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17190
17191 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
17192 Delete.
17193 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
17194 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
17195 static. Check OP's mode for VOIDmode.
17196 (microblaze_legitimate_constant_p): New function.
17197 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17198
17199 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
17200 * config/mips/mips.c (mips_legitimate_constant_p): New function.
17201 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
17202 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17203 * config/mips/predicates.md: Update comments.
17204
17205 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
17206 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
17207 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17208 (mmix_legitimate_constant_p): Make static, return a bool, and take
17209 a mode argument.
17210 (mmix_print_operand_address): Update accordingly.
17211
17212 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
17213 Delete.
17214 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
17215 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
17216 static. Add a mode argument.
17217 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17218
17219 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17220
17221 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17222 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17223 (pa_legitimate_constant_p): New function.
17224
17225 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17226
17227 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17228 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17229 (pdp11_legitimate_constant_p): New function.
17230
17231 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17232 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17233 (rs6000_legitimate_constant_p): New function.
17234
17235 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17236 (rx_legitimate_constant_p): ...this.
17237 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17238 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17239 (rx_legitimate_constant_p): ...this.
17240 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17241 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17242
17243 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17244 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17245 * config/s390/s390.c (legitimate_constant_p): Rename to...
17246 (s390_legitimate_constant_p): ...this. Make static, return a bool,
17247 and add a mode argument.
17248 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17249
17250 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17251
17252 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17253 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17254 (sh_legitimate_constant_p): New function.
17255
17256 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17257 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17258 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17259 (legitimate_constant_p): Rename to...
17260 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
17261 argument.
17262 (constant_address_p): Update accordingly.
17263
17264 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17265 argument and return a bool.
17266 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17267 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17268 (spu_legitimate_constant_p): Add a mode argument and return a bool.
17269 (spu_rtx_costs): Update accordingly.
17270 * config/spu/predicates.md (vec_imm_operand): Likewise.
17271
17272 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17273
17274 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17275 * config/v850/v850.c (v850_legitimate_constant_p): New function.
17276 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17277
17278 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17279 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17280 * config/vax/vax.c (legitimate_constant_p): Likewise.
17281
17282 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17283 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17284 (xtensa_legitimate_constant_p): New function.
17285
17286 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17287
17288 * target.def (cannot_force_const_mem): Add a mode argument.
17289 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17290 * doc/tm.texi: Regenerate.
17291 * hooks.h (hook_bool_mode_rtx_false): Declare.
17292 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17293 (hook_bool_mode_const_rtx_true): Likewise.
17294 (hook_bool_mode_rtx_false): New function.
17295 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17296 to be non-VOID. Update call to cannot_force_const_mem.
17297 (find_reloads): Update accordingly.
17298 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17299 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17300 argument.
17301 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17302 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
17303 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
17304 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
17305 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
17306 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
17307 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
17308 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17309 (m68k_cannot_force_const_mem): ...this new function.
17310 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
17311 argument.
17312 (mips_const_insns, mips_legitimize_const_move): Update calls.
17313 (mips_secondary_reload_class): Likewise.
17314 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17315 (pa_cannot_force_const_mem): ...this new function.
17316 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
17317 (rs6000_cannot_force_const_mem): ...this new function.
17318 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
17319 argument.
17320 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
17321 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
17322 to...
17323 (xtensa_cannot_force_const_mem): ...this new function.
17324
17325 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17326
17327 * config/mips/mips.c (mips16_build_function_stub): Call
17328 build_function_type_list instead of build_function_type.
17329 (mips16_build_call_stub): Likewise.
17330
17331 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17332
17333 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
17334 instead of build_function_type.
17335
17336 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17337
17338 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
17339 instead of build_function_type.
17340
17341 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
17342
17343 PR target/48678
17344 * config/i386/i386.md (insv): Change operand 0 constraint to
17345 "register_operand". Change operand 1 and 2 constraint to
17346 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
17347 * config/i386/sse.md (sse4_1_pinsrb): Export.
17348 (sse2_pinsrw): Ditto.
17349 (sse4_1_pinsrd): Ditto.
17350 (sse4_1_pinsrq): Ditto.
17351 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
17352 * config/i386/i386.c (ix86_expand_pinsr): New.
17353
17354 2011-04-20 Easwaran Raman <eraman@google.com>
17355
17356 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
17357 containing union type only with -fstrict-aliasing.
17358
17359 2011-04-20 Jim Meyering <meyering@redhat.com>
17360
17361 Remove useless if-before-free tests.
17362 * calls.c (expand_call, save_area): Likewise.
17363 * cfgcleanup.c (try_forward_edges): Likewise.
17364 * collect2.c (collect_execute): Likewise.
17365 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
17366 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
17367 * coverage.c (coverage_checksum_string): Likewise.
17368 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
17369 * cselib.c (cselib_init): Likewise.
17370 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
17371 (df_set_clean_cfg): Likewise.
17372 * function.c (free_after_compilation): Likewise.
17373 * gcc.c (do_spec_1, main): Likewise.
17374 * gcov.c (create_file_names): Likewise.
17375 * gensupport.c (identify_predicable_attribute): Likewise.
17376 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
17377 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
17378 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
17379 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
17380 * ipa-pure-const.c (local_pure_const): Likewise.
17381 * ipa-reference.c (propagate): Likewise.
17382 * ira-costs.c (free_ira_costs): Likewise.
17383 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
17384 * matrix-reorg.c (mat_free): Likewise.
17385 * prefix.c (get_key_value): Likewise.
17386 * profile.c (compute_value_histograms): Likewise.
17387 * reload1.c (free_reg_equiv): Likewise.
17388 * sched-deps.c (free_deps): Likewise.
17389 * sel-sched-ir.c (fence_clear): Likewise.
17390 * sese.c (set_rename, if_region_set_false_region): Likewise.
17391 * tree-data-ref.c (free_rdg): Likewise.
17392 * tree-eh.c (lower_try_finally): Likewise.
17393 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
17394 * tree-ssa-live.c (delete_var_map): Likewise.
17395 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
17396 * tree-ssa-pre.c (phi_trans_add): Likewise.
17397
17398 2011-04-20 Jakub Jelinek <jakub@redhat.com>
17399
17400 PR tree-optimization/48611
17401 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
17402 beyond ERT_MUST_NOT_THROW region.
17403
17404 2011-04-20 Catherine Moore <clm@codesourcery.com>
17405
17406 * config/mips/mips.opt (mfix-24k): New.
17407 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
17408 * config/mips/mips.md (length): Increase by 4 for stores if
17409 fixing 24K errata.
17410 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
17411 all noreorder if fixing 24K errata.
17412 * doc/invoke.texi: Document mfix-24k.
17413
17414 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
17415
17416 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
17417 quad-word modes, reduce to 9-bit index range when above 1016 limit.
17418
17419 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17420
17421 * config/arm/arm.c (arm_gen_constant): Move movw support ....
17422 (const_ok_for_op): ... to here.
17423
17424 2011-04-20 Kai Tietz <ktietz@redhat.com>
17425
17426 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
17427 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
17428
17429 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17430
17431 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
17432
17433 2011-04-20 Richard Guenther <rguenther@suse.de>
17434
17435 PR tree-optimization/47892
17436 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
17437 are if-convertible.
17438
17439 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
17440
17441 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
17442
17443 2011-04-20 Tristan Gingold <gingold@adacore.com>
17444
17445 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
17446
17447 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
17448
17449 PR target/18145
17450
17451 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
17452 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
17453 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17454 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17455 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
17456
17457 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
17458 New prototype.
17459
17460 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
17461 (avr_asm_named_section, avr_asm_output_aligned_common,
17462 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
17463 New functions to update...
17464 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
17465 (avr_asm_init_sections): Overwrite section callbacks for
17466 data_section, bss_section.
17467 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
17468 from here to...
17469 (avr_file_end): ...here.
17470
17471 2011-04-20 Richard Guenther <rguenther@suse.de>
17472
17473 PR middle-end/48695
17474 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
17475 objects and types here. Adjust for their offset before comparing.
17476
17477 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17478
17479 * tree-vect-stmts.c (vectorizable_store): Only chain one related
17480 statement per copy.
17481
17482 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17483
17484 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
17485 (GIMPLE_H): Include $(INTERNAL_FN_H).
17486 (OBJS-common): Add internal-fn.o.
17487 (internal-fn.o): New rule.
17488 * internal-fn.def: New file.
17489 * internal-fn.h: Likewise.
17490 * internal-fn.c: Likewise.
17491 * gimple.h: Include internal-fn.h.
17492 (GF_CALL_INTERNAL): New gf_mask.
17493 (gimple_statement_call): Put fntype into a union with a new
17494 internal_fn field.
17495 (gimple_build_call_internal): Declare.
17496 (gimple_build_call_internal_vec): Likewise.
17497 (gimple_call_same_target_p): Likewise.
17498 (gimple_call_internal_p): New function.
17499 (gimple_call_internal_fn): Likewise.
17500 (gimple_call_fntype): Return null for internal calls.
17501 (gimple_call_set_fntype): Assert that the function is not internal.
17502 (gimple_call_set_fn): Likewise.
17503 (gimple_call_set_fndecl): Likewise.
17504 (gimple_call_set_internal_fn): New function.
17505 (gimple_call_addr_fndecl): Handle null functions.
17506 (gimple_call_return_type): Likewise null types.
17507 * gimple.c (gimple_build_call_internal_1): New function.
17508 (gimple_build_call_internal): Likewise.
17509 (gimple_build_call_internal_vec): Likewise.
17510 (gimple_call_same_target_p): Likewise.
17511 (gimple_call_flags): Handle calls to internal functions.
17512 (gimple_call_fnspec): New function.
17513 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
17514 (gimple_has_side_effects): Handle null functions.
17515 (gimple_rhs_has_side_effects): Likewise.
17516 (gimple_call_copy_skip_args): Handle calls to internal functions.
17517 * cfgexpand.c (expand_call_stmt): Likewise.
17518 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
17519 * gimple-fold.c (gimple_fold_call): Handle null functions.
17520 (gimple_fold_stmt_to_constant_1): Don't fold
17521 calls to internal functions.
17522 * gimple-low.c (gimple_check_call_args): Handle calls to internal
17523 functions.
17524 * gimple-pretty-print.c (dump_gimple_call): Likewise.
17525 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
17526 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
17527 (do_warn_unused_result): Likewise.
17528 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
17529 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
17530 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17531 the target of a call.
17532 (initialize_hash_element): Update accordingly.
17533 (hashable_expr_equal_p): Use gimple_call_same_target_p.
17534 (iterative_hash_hashable_expr): Handle calls to internal functions.
17535 (print_expr_hash_elt): Likewise.
17536 * tree-ssa-pre.c (can_value_number_call): Likewise.
17537 (eliminate): Handle null functions.
17538 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17539 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17540 (find_func_aliases): Likewise.
17541 * value-prof.c (gimple_ic_transform): Likewise.
17542 (gimple_indirect_call_to_profile): Likewise.
17543 * lto-streamer-in.c (input_gimple_stmt): Likewise.
17544 * lto-streamer-out.c (output_gimple_stmt): Likewise.
17545
17546 2011-04-19 Jan Hubicka <jh@suse.cz>
17547
17548 * ipa-inline-transform.c (save_inline_function_body): Add comments.
17549 * ipa-inline.c (inline_small_functions): Compute summaries first,
17550 populate heap later.
17551
17552 2011-04-19 Jan Hubicka <jh@suse.cz>
17553
17554 * cgraph.h (save_inline_function_body): Remove.
17555 * ipa-inline-transform.c: New file, broke out of...
17556 * ipa-inline.c: ... this one; Update toplevel comment.
17557 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17558 make global.
17559 (update_noncloned_frequencies): Move to ipa-inline-transform.c
17560 (cgraph_mark_inline_edge): Rename to inline_call; move to
17561 ipa-inline-transform.c.
17562 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17563 move to ipa-inline-transform.c
17564 (recursive_inlining, inline_small_functions, flatten_function,
17565 ipa_inline, inline_always_inline_functions,
17566 early_inline_small_functions): Update.
17567 (inline_transform): Move to ipa-inline-transform.c.
17568 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17569 Declare.
17570 * Makefile.in (ipa-inline-transform.o): New file.
17571 * cgraphunit.c (save_inline_function_body): Move to
17572 ipa-inline-transform.c
17573
17574 2011-04-19 DJ Delorie <dj@redhat.com>
17575
17576 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17577 registers if we already know there aren't any.
17578 (m32c_emit_epilogue): Don't emit a barrier here.
17579 (m32c_emit_eh_epilogue): Likewise.
17580 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17581 operands at expand time.
17582 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17583 int" wchar type.
17584 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17585 duplicates. Provide aliases instead.
17586 * config/m32c/prologue.md (eh_return): Emit a barrier here.
17587 (eh_epilogue): Add a "(return)" here as a hint to other parts of
17588 the compiler.
17589
17590 2011-04-19 Anatoly Sokolov <aesok@post.ru>
17591
17592 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17593 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17594 (general_or_i64_p, sparc_register_move_cost): New function.
17595
17596 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17597
17598 * doc/install.texi (Configuration, --enable-threads): Remove mach.
17599 Add lynx, mipssde. Sort table.
17600
17601 2011-04-19 Xinliang David Li <davidxl@google.com>
17602
17603 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17604 not negative.
17605
17606 2011-04-19 Jakub Jelinek <jakub@redhat.com>
17607
17608 PR target/48678
17609 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17610 is a SUBREG with non-MODE_INT mode inside of it.
17611
17612 2011-04-19 Martin Jambor <mjambor@suse.cz>
17613
17614 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17615 also according to actual contants.
17616 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17617 (gimple_fold_call): Use it.
17618 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17619
17620 2011-04-19 Martin Jambor <mjambor@suse.cz>
17621
17622 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17623 non-pointer assignments.
17624
17625 2011-04-19 Martin Jambor <mjambor@suse.cz>
17626
17627 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17628 account anc_offset and otr_type from the indirect edge info.
17629 * ipa-prop.c (get_ancestor_addr_info): New function.
17630 (compute_complex_ancestor_jump_func): Assignment analysis moved to
17631 get_ancestor_addr_info, call it.
17632 (ipa_note_param_call): Do not initialize information about polymorphic
17633 calls, return the indirect call graph edge. Remove the last
17634 parameter, adjust all callers.
17635 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17636 parameters. Initialize polymorphic information in the indirect edge.
17637
17638 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17639
17640 PR lto/48148
17641 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17642 the types if they have different enumeration identifiers.
17643
17644 2011-04-19 Jan Hubicka <jh@suse.cz>
17645
17646 * cgraph.h (cgraph_optimize_for_size_p): Declare.
17647 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17648 * predict.c (cgraph_optimize_for_size_p): Break out from ...
17649 (optimize_function_for_size_p) ... here.
17650
17651 2011-04-19 Richard Guenther <rguenther@suse.de>
17652
17653 PR lto/48207
17654 * tree.c (free_lang_data): Do not reset the decl-assembler-name
17655 langhook.
17656
17657 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17658
17659 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17660 if DECL_NO_INLINE_WARNING_P is set on the function.
17661
17662 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
17663
17664 PR fortran/47976
17665 * reload1.c (inc_for_reload): Return void. All callers changed.
17666 (emit_input_reload_insns): Don't try to delete previous output
17667 reloads to a register, or record spill_reg_store for autoincs.
17668
17669 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
17670
17671 * gengtype.h: Updated copyright year.
17672 (struct input_file_st): Add inpisplugin field.
17673 (type_fileloc): New function.
17674 * gengtype.c
17675 (write_typed_struct_alloc_def): Add gcc_assert.
17676 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17677 (write_typed_alloc_defns): Don't output for plugin files.
17678 (input_file_by_name): Clear inpisplugin field.
17679 (main): Set inpisplugin field for plugin files.
17680
17681 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
17682
17683 * gengtype-state.c (string_eq): New.
17684 (read_state): Use string_eq instead of strcmp when creating the
17685 state_ident_tab.
17686
17687 2011-04-19 Wei Guozhi <carrot@google.com>
17688
17689 PR target/47855
17690 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17691 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17692 linkage.
17693 * config/arm/constraints.md (Uu): New constraint.
17694 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17695
17696 2011-04-19 Tristan Gingold <gingold@adacore.com>
17697
17698 * config.gcc (-*-*-*vms): Added.
17699 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17700 definitions moved.
17701 * config/vms/vms-ld.c: New file.
17702 * config/vms/vms-ar.c: New file.
17703 * config/vms/t-vmsnative: New file.
17704
17705 2011-04-18 Xinliang David Li <davidxl@google.com>
17706
17707 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17708
17709 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17710
17711 PR middle-end/48661
17712 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17713 if TREE_TYPE (v) is non-NULL.
17714
17715 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17716 gimple_get_virt_mehtod_for_binfo.
17717 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17718 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17719 callers.
17720 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17721
17722 2011-04-18 Michael Matz <matz@suse.de>
17723 Steve Ellcey <sje@cup.hp.com>
17724
17725 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17726 use its mode as source mode if it isn't VOIDmode.
17727
17728 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
17729
17730 * doc/passes.texi: Fill crossref nodes.
17731
17732 2011-04-18 Jim Meyering <meyering@redhat.com>
17733
17734 Fix doubled-word typos in comments and strings
17735 * config/alpha/vms-unwind.h: s/for for/for/
17736 * config/arm/unwind-arm.h: Likewise.
17737 * config/microblaze/microblaze.c: Likewise.
17738 * config/sh/constraints.md: s/in in/in/
17739 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17740
17741 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
17742
17743 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17744 (AVX_FLOAT_MODE_P): Ditto.
17745 (AVX128_VEC_FLOAT_MODE_P): Ditto.
17746 (AVX256_VEC_FLOAT_MODE_P): Ditto.
17747 (AVX_VEC_FLOAT_MODE_P): Ditto.
17748 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17749 (UNSPEC_MASKSTORE): Ditto.
17750 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17751 Merge from <sse>_movmsk<ssemodesuffix> and
17752 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
17753 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
17754 iterator.
17755 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
17756 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17757 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
17758
17759 2011-04-18 Jan Hubicka <jh@suse.cz>
17760
17761 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
17762
17763 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
17764 (want_inline_function_called_once_p): Break out the logic from
17765 ipa_inline.
17766 (edge_badness): Ensure that profile is not misupdated.
17767 (lookup_recursive_calls): Prioritize by call frequencies.
17768 (inline_small_functions): Move program size estimates here;
17769 actually process whole queue even when unit growth has been
17770 met. (to properly compute inline_failed reasons and for the
17771 case unit size decrease.) Revisit comments on recursive inlining.
17772 (ipa_inline): Remove unit summary code; first inline hot calls
17773 of functions called once, cold calls next.
17774 (order, nnodes): Remove unused variables.
17775 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
17776 (GTFILES): Remove ipa-inline.c
17777 * sel-sched.c (fill_insns): Silence uninitialized var warning.
17778
17779 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
17780
17781 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
17782
17783 2011-04-18 Jie Zhang <jie@codesourcery.com>
17784 Richard Earnshaw <rearnsha@arm.com>
17785
17786 * arm.c (neon_builtin_type_bits): Remove.
17787 (typedef enum neon_builtin_mode): New.
17788 (T_MAX): Don't define.
17789 (typedef enum neon_builtin_datum): Remove bits, codes[],
17790 num_vars and base_fcode. Add mode, code and fcode.
17791 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
17792 VAR10): Change accordingly.
17793 (neon_builtin_data[]): Change accordingly
17794 (arm_init_neon_builtins): Change accordingly.
17795 (neon_builtin_compare): Remove.
17796 (locate_neon_builtin_icode): Remove.
17797 (arm_expand_neon_builtin): Change accordingly.
17798
17799 * arm.h (enum arm_builtins): Move to ...
17800 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
17801
17802 * arm.c (arm_builtin_decl): Declare.
17803 (TARGET_BUILTIN_DECL): Define.
17804 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
17805 (arm_builtin_decls[]): New.
17806 (arm_init_neon_builtins): Store builtin declarations in
17807 arm_builtin_decls[].
17808 (arm_init_tls_builtins): Likewise.
17809 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
17810 (arm_builtin_decl): New.
17811
17812 2011-04-18 Richard Guenther <rguenther@suse.de>
17813
17814 * tree.c (upper_bound_in_type): Build properly canonicalized
17815 INTEGER_CSTs.
17816 (lower_bound_in_type): Likewise.
17817
17818 2011-04-18 Richard Guenther <rguenther@suse.de>
17819
17820 * gimple.h (gimple_call_addr_fndecl): New function.
17821 (gimple_call_fndecl): Use it.
17822 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17823 for direct calls.
17824 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17825 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17826
17827 2011-04-18 Richard Guenther <rguenther@suse.de>
17828
17829 PR middle-end/48650
17830 * tree.c (build_string): STRING_CST is now derived from tree_typed.
17831
17832 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
17833
17834 PR lto/48492
17835 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17836 DECL_IN_CONSTANT_POOL without RTL.
17837
17838 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
17839 Ira Rosen <ira.rosen@linaro.org>
17840
17841 PR target/48252
17842 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17843 to match neon_vzip/vuzp/vtrn_internal.
17844 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17845 outputs explicitly dependent on both inputs.
17846 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17847
17848 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17849
17850 PR tree-optimization/48616
17851 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17852 whether the shift is by scalar or vector based on whether all SLP
17853 scalar stmts have the same rhs.
17854
17855 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
17856
17857 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17858 memory operands.
17859
17860 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
17861
17862 PR target/43700
17863 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17864 registers.
17865
17866 2011-04-17 Jan Hubicka <jh@suse.cz>
17867
17868 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17869 * cgrpahunit.c (cgraph_finalize_function): Do not set
17870 finalized_by_frontend.
17871 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17872 finalized_by_frontend.
17873
17874 2011-04-17 Jan Hubicka <jh@suse.cz>
17875
17876 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17877 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17878 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17879 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17880 method.
17881 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17882 gimple-fold.c
17883 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17884
17885 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17886
17887 PR lto/48538
17888 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17889 is non-null before accessing it.
17890 (input_cgraph): Remove trailing spaces.
17891
17892 2011-04-17 Revital Eres <revital.eres@linaro.org>
17893
17894 * params.def (sms-min-sc): New param flag.
17895 * modulo-sched.c (sms_schedule): Use it.
17896 * doc/invoke.texi (sms-min-sc): Document it.
17897
17898 2011-04-17 Jan Hubicka <jh@suse.cz>
17899
17900 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17901 present, also set gimple_call_set_cannot_inline.
17902 * ipa-inline.c: Update toplevel comment.
17903 (MAX_TIME): Remove.
17904 (cgraph_clone_inlined_nodes): Fix linebreaks.
17905 (cgraph_check_inline_limits): Restructure to ...
17906 (caller_growth_limits): ... this one; be more tolerant
17907 on growth in nested inline chains; add explanatory comment;
17908 fix stack accounting thinko introduced by previous patch.
17909 (cgraph_default_inline_p): Remove.
17910 (report_inline_failed_reason): New function.
17911 (can_inline_edge_p): New function.
17912 (can_early_inline_edge_p): New function.
17913 (leaf_node_p): Move upwards in file.
17914 (want_early_inline_function_p): New function.
17915 (want_inline_small_function_p): New function.
17916 (want_inline_self_recursive_call_p): New function.
17917 (cgraph_edge_badness): Rename to ...
17918 (edge_badness) ... this one; fix linebreaks.
17919 (update_edge_key): Update call of edge_baddness; add
17920 detailed dump about queue updates.
17921 (update_caller_keys): Use can_inline_edge_p and
17922 want_inline_small_function_p.
17923 (cgraph_decide_recursive_inlining): Rename to...
17924 (recursive_inlining): Use can_inline_edge_p and
17925 want_inline_self_recursive_call_p; simplify and remove no longer
17926 valid FIXME.
17927 (cgraph_set_inline_failed): Remove.
17928 (add_new_edges_to_heap): Use can_inline_edge_p and
17929 want_inline_small_function_p.
17930 (cgraph_decide_inlining_of_small_functions): Rename to ...
17931 (inline_small_functions): ... this one; cleanup; use
17932 can/want predicates; cleanup debug ouput; work edges till fibheap
17933 is exhausted and do not stop once unit growth is reached; remove
17934 later loop processing remaining edges.
17935 (cgraph_flatten): Rename to ...
17936 (flatten_function): ... this one; use can_inline_edge_p
17937 and can_early_inline_edge_p predicates.
17938 (cgraph_decide_inlining): Rename to ...
17939 (ipa_inline): ... this one; remove unreachable nodes before
17940 inlining functions called once; simplify the pass.
17941 (cgraph_perform_always_inlining): Rename to ...
17942 (inline_always_inline_functions): ... this one; use
17943 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
17944 (cgraph_decide_inlining_incrementally): Rename to ...
17945 (early_inline_small_functions): ... this one; simplify
17946 using new predicates; cleanup; make dumps prettier.
17947 (cgraph_early_inlining): Rename to ...
17948 (early_inliner): newer inline regular functions into always-inlines;
17949 fix updating of call stmt summaries.
17950 (pass_early_inline): Update for new names.
17951 (inline_transform): Fix formating.
17952 (gate_cgraph_decide_inlining): Rename to ...
17953 (pass_ipa_inline): ... this one.
17954 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
17955 * ipa-inline-analysis.c (dump_inline_summary): Update.
17956 (compute_inline_parameters): Do not compute disregard_inline_limits;
17957 look for mismatching arguments.
17958 (estimate_growth): Fix handlig of non-trivial self recursion.
17959 (inline_read_summary): Do not read info->disregard_inline_limits.
17960 (inline_write_summary): Do not write info->disregard_inline_limits.
17961 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
17962 and move all checks into can_inline_edge_p predicate; re-enable code
17963 comparing optimization levels.
17964 (expand_call_inline): Do not test inline_forbidden_into_p.
17965 * Makefile.in (ipa-inline.o): Update arguments.
17966
17967 2011-04-17 Revital Eres <revital.eres@linaro.org>
17968
17969 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
17970
17971 2011-04-17 Revital Eres <revital.eres@linaro.org>
17972
17973 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
17974
17975 2011-04-17 Michael Matz <matz@suse.de>
17976
17977 PR tree-optimization/48622
17978 PR lto/48645
17979 * ipa-inline-analysis.c (inline_read_summary): Read size/time
17980 in same order as they're written.
17981
17982 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17983
17984 * config/pa/predicates.md: Reorganize and simplify predicates.
17985 Eliminate duplicate code checks.
17986 (arith_operand): Rename to arith14_operand
17987 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
17988 * config/pa/pa.md: Use renamed operands.
17989 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
17990 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
17991 arith11_operand, adddi3_operand, indexed_memory_operand,
17992 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
17993 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
17994 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
17995 move_dest_operand, move_src_operand, prefetch_cc_operand,
17996 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
17997 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
17998 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
17999 div_operand, int5_operand, movb_comparison_operator,
18000 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
18001 arith_double_operand, ireg_operand, lhs_lshift_operand,
18002 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
18003 integer_store_memory_operand): Likewise.
18004 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
18005 (integer_store_memory_operand, read_only_operand,
18006 function_label_operand, borx_reg_operand,
18007 non_hard_reg_operand): Likewise.
18008 (eq_neq_comparison_operator): Delete unused operator.
18009 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
18010 function_label_operand.
18011 (emit_move_sequence): Likewise.
18012
18013 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18014
18015 * config/i386/sse.md (sseunpackmode): New mode attribute.
18016 (ssepackmode): Ditto.
18017 (vec_pack_trunc_<mode>): Macroize expander from
18018 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
18019 (vec_unpacks_lo_<mode>): Macroize expander from
18020 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18021 (vec_unpacks_hi_<mode>): Macroize expander from
18022 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18023 (vec_unpacku_lo_<mode>): Macroize expander from
18024 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18025 (vec_unpacku_hi_<mode>): Macroize expander from
18026 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18027 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
18028 ix86_expand_sse4_unpack.
18029 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
18030
18031 2011-04-16 Jan Hubicka <jh@suse.cz>
18032
18033 * cgraphbuild.c: Include ipa-inline.h.
18034 (reset_inline_failed): Use initialize_inline_failed.
18035 * cgraph.c: Include ipa-inline.h.
18036 (cgraph_create_node_1): Do not initialize estimated_growth.
18037 (initialize_inline_failed): More to ipa-inline-analysis.c
18038 (dump_cgraph_node): Do not dump inline flags.
18039 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
18040 and disregard_inline_limits flags.
18041 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
18042 time, size, estimated_growth.
18043 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
18044 Update.
18045 * cgraphunit.c (cgraph_decide_is_function_needed): Use
18046 DECL_DISREGARD_INLINE_LIMITS.
18047 (cgraph_analyze_function): Do not initialize
18048 node->local.disregard_inline_limits.
18049 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18050 inlinable, versionable and disregard_inline_limits.
18051 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
18052 cgraph_check_inline_limits, cgraph_default_inline_p,
18053 cgraph_edge_badness, update_caller_keys, update_callee_keys,
18054 add_new_edges_to_heap): Update.
18055 (cgraph_decide_inlining_of_small_function): Update; set
18056 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
18057 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
18058 cgraph_decide_inlining_incrementally): Update.
18059 * ipa-inline.h (inline_summary): Add inlinable, versionable,
18060 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
18061 time, size and estimated_growth parameters.
18062 (estimate_edge_growth): Update.
18063 (initialize_inline_failed): Declare.
18064 * ipa-split.c: Include ipa-inline.h
18065 (execute_split_functions): Update.
18066 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
18067 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
18068 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
18069 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
18070 estimated_growth to INT_MIN.
18071 (inline_node_duplication_hook): Likewise.
18072 (dump_inline_summary): Dump new fields.
18073 (compute_inline_parameters): Update.
18074 (estimate_edge_time, estimate_time_after_inlining,
18075 estimate_size_after_inlining, estimate_growth, inline_read_summary,
18076 inline_write_summary):
18077 (initialize_inline_failed): Move here from cgraph.c.
18078 * tree-sra.c: Include ipa-inline.h.
18079 (ipa_sra_preliminary_function_checks): Update.
18080 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
18081 ipa-inline.h.
18082
18083 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18084
18085 * config/i386/sse.md (V16): New mode iterator.
18086 (VI1, VI8): Ditto.
18087 (AVXMODEQI, AVXMODEDI): Remove.
18088 (sse2, sse3): New mode attribute.
18089 (mov<mode>): Use V16 mode iterator.
18090 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
18091 (push<mode>1): Use V16 mode iterator.
18092 (movmisalign<mode>): Ditto.
18093 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18094 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
18095 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18096 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
18097 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
18098 avx_movdqu<avxmodesuffix>.
18099 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
18100 *avx_movdqu<avxmodesuffix>.
18101 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
18102 avx_lddqu<avxmodesuffix>.
18103 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
18104 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
18105 avx_movnt<AVXMODEDI:mode>.
18106 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
18107 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
18108
18109 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
18110
18111 PR target/48629
18112 * haifa-sched.c (prune_ready_list, schedule_block): Use
18113 sched_pressure_p rather than flag_sched_pressure.
18114
18115 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
18116
18117 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18118 cgraph_get_node instead of cgraph_get_create_node.
18119
18120 2011-04-15 Jakub Jelinek <jakub@redhat.com>
18121
18122 * cfgexpand.c (expand_debug_expr): Use
18123 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
18124
18125 2011-04-15 Michael Matz <matz@suse.de>
18126
18127 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
18128 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
18129 * function.c (gimplify_parameters): Ditto.
18130 * gimplify.c (gimplify_vla_decl): Ditto.
18131
18132 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
18133 (gimple_call_set_alloca_for_var): New inline function.
18134 (gimple_call_alloca_for_var_p): Ditto.
18135 * gimple.c (gimple_build_call_from_tree): Remember
18136 CALL_ALLOCA_FOR_VAR_P state.
18137 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
18138
18139 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
18140 calls if they were for VLA objects.
18141
18142 2011-04-15 Martin Jambor <mjambor@suse.cz>
18143
18144 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
18145 of ADR_EXPRs.
18146
18147 2011-04-15 Martin Jambor <mjambor@suse.cz>
18148
18149 PR middle-end/48601
18150 * tree-emutls.c (lower_emutls_function_body): Call
18151 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
18152 result is non-NULL.
18153
18154 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
18155
18156 * c-decl.c (detect_field_duplicates): Call
18157 objc_detect_field_duplicates instead of objc_get_interface_ivars.
18158
18159 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
18160
18161 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
18162 * gimple.c (gimple_asm_clobbers_memory_p): Define.
18163 * ipa-pure-const.c (check_stmt): Call it.
18164 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
18165
18166 2011-04-15 Richard Guenther <rguenther@suse.de>
18167
18168 PR tree-optimization/48290
18169 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
18170 Properly decide inhibiting propagation based on the valueized
18171 operand. Do loop-closed SSA form preserving here ...
18172 (init_copy_prop): ... not here.
18173
18174 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
18175
18176 PR target/48612
18177 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
18178 (*ieee_smax<mode>3): Likewise.
18179
18180 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18181
18182 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
18183 Replace match_operand with match_dup for the third operand in
18184 these expanders.
18185
18186 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18187
18188 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
18189 to track processing of conditionals. Update all callers.
18190 (try_combine, simplify_if_then_else): Update.
18191
18192 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18193
18194 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
18195 -fsched-pressure.
18196
18197 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
18198
18199 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
18200 instead of match_operand for operand 3.
18201
18202 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
18203
18204 * recog.h (insn_operand_data): Add an "allows_mem" field.
18205 * genoutput.c (output_operand_data): Initialize it.
18206 * optabs.c (maybe_legitimize_operand_same_code): New function.
18207 (maybe_legitimize_operand): Use it when matching the original
18208 op->value.
18209
18210 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18211
18212 * gimplify.c: Fix issues in comments throughout.
18213 (voidify_wrapper_expr): Fix long line.
18214 (build_stack_save_restore): Likewise.
18215 (gimplify_loop_expr): Likewise.
18216 (gimplify_compound_lval): Likewise.
18217 (gimplify_init_ctor_eval): Likewise.
18218 (gimplify_modify_expr_rhs): Likewise.
18219 (omp_notice_threadprivate_variable): Likewise.
18220
18221 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18222
18223 * cfgexpand.c (expand_call_stmt): Convert the function type to the
18224 original one if this is not a builtin function.
18225
18226 2011-04-14 Jakub Jelinek <jakub@redhat.com>
18227
18228 PR target/48605
18229 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18230 offset it as needed based on top 2 bits in operands[3], change
18231 MEM mode to SFmode and mask those 2 bits away from operands[3].
18232
18233 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18234
18235 * c-parser.c (c_parser_objc_protocol_definition): Updated for
18236 change from objc_declare_protocols() to objc_declare_protocol().
18237
18238 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
18239
18240 * config/i386/sse.md (sse4_1): New mode attribute.
18241 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18242 avx_blend<ssemodesuffix><avxmodesuffix> and
18243 sse4_1_blend<ssemodesuffix> using VF mode iterator.
18244 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18245 avx_blendv<ssemodesuffix><avxmodesuffix> and
18246 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18247 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18248 avx_dp<ssemodesuffix><avxmodesuffix> and
18249 sse4_1_dp<ssemodesuffix> using VF mode iterator.
18250 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18251 (sse4_1_packusdw): Merge with *avx_packusdw.
18252 (sse4_1_pblendvb): Merge with *avx_pblendvb.
18253 (sse4_1_pblendw): Merge with *avx_pblendw.
18254 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18255 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18256 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18257 VF mode iterator.
18258 (sse4_1_round<ssescalarmodesuffix>): Merge with
18259 *avx_round<ssescalarmodesuffix>.
18260 (aesenc): Merge with *avx_aesenc.
18261 (aesenclast): Merge with *avx_aesenclast.
18262 (aesdec): Merge with *avx_aesdec.
18263 (aesdeclast): Merge with *avx_aesdeclast.
18264 (pclmulqdq): Merge with *pclmulqdq.
18265 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18266 New predicate.
18267 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18268
18269 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
18270
18271 PR middle-end/48608
18272 * cfgexpand.c (get_decl_align_unit): Renamed to ...
18273 (align_local_variable): This. Update DECL_ALIGN.
18274 (add_stack_var): Updated.
18275 (expand_one_stack_var): Likewise.
18276
18277 2011-04-14 Richard Guenther <rguenther@suse.de>
18278
18279 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18280 Remove.
18281 (dse_initialize_block_local_data, dse_leave_block,
18282 record_voperand_set, get_stmt_uid): Likewise.
18283 (dse_possible_dead_store_p): Allow any kind of killing stmt.
18284 (dse_optimize_stmt): Remove voperand set handling code.
18285 Simplify and improve to handle any kind of killing stmt.
18286 (dse_record_phi): Remove.
18287 (dse_enter_block): Simplify.
18288 (tree_ssa_dse): Likewise.
18289 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18290
18291 2011-04-14 Jan Hubicka <jh@suse.cz>
18292
18293 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18294 * cgraph.h (struct inline_summary): Move to ipa-inline.h
18295 (cgraph_local_info): Remove inline_summary.
18296 * ipa-cp.c: Include ipa-inline.h.
18297 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18298 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18299 accesor.
18300 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18301 (input_overwrite_node): Do not set inline summary.
18302 (input_node): Do not stream inline summary.
18303 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
18304 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
18305 growth; we do not have inline parameters computed for that anyway.
18306 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
18307 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
18308 (inline_summary_t): New type and VECtor.
18309 (debug_inline_summary, dump_inline_summaries): Declare.
18310 (inline_summary): Use VOCtor.
18311 (estimate_edge_growth): Kill hack computing call stmt size directly.
18312 * lto-section-in.c (lto_section_name): Add inline section.
18313 * ipa-inline-analysis.c: Include lto-streamer.h
18314 (node_removal_hook_holder, node_duplication_hook_holder): New holders
18315 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
18316 (inline_summary_vec): Define.
18317 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
18318 dump_inline_summaries): New functions.
18319 (estimate_function_body_sizes): Properly compute size/time of outgoing
18320 calls.
18321 (compute_inline_parameters): Alloc inline_summary; do not compute
18322 size/time of incomming calls.
18323 (estimate_edge_time): Avoid missing time summary hack.
18324 (inline_read_summary): Read inline summary info.
18325 (inline_write_summary): Write inline summary info.
18326 (inline_free_summary): Free all hooks and inline summary vector.
18327 * lto-streamer.h: Add LTO_section_inline_summary section.
18328 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
18329 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
18330
18331 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18332
18333 * tree-vectorizer.h (vect_strided_store_supported): Add a
18334 HOST_WIDE_INT argument.
18335 (vect_strided_load_supported): Likewise.
18336 (vect_permute_store_chain): Return void.
18337 (vect_transform_strided_load): Likewise.
18338 (vect_permute_load_chain): Delete.
18339 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
18340 count argument. Check that the count is a power of two.
18341 (vect_strided_load_supported): Likewise.
18342 (vect_permute_store_chain): Return void. Update after above changes.
18343 Assert that the access is supported.
18344 (vect_permute_load_chain): Likewise.
18345 (vect_transform_strided_load): Return void.
18346 * tree-vect-stmts.c (vectorizable_store): Update calls after
18347 above interface changes.
18348 (vectorizable_load): Likewise.
18349 (vect_analyze_stmt): Don't check for strided powers of two here.
18350
18351 2011-04-14 Richard Guenther <rguenther@suse.de>
18352
18353 PR tree-optimization/48590
18354 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18355 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18356 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
18357 BUILT_IN_STACK_SAVE.
18358 * tree-ssa-dce.c (propagate_necessity): Handle
18359 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18360
18361 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18362
18363 * c-parser.c (c_parser_objc_class_declaration): Updated call to
18364 objc_declare_class.
18365
18366 2011-04-14 Richard Guenther <rguenther@suse.de>
18367
18368 * tree.h (get_object_alignment_1): Declare.
18369 * builtins.c (get_object_alignment_1): Split out worker from ...
18370 (get_object_alignment): ... here.
18371 * fold-const.c (get_pointer_modulus_and_residue): Use
18372 get_object_alignment_1.
18373
18374 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18375
18376 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
18377 type parameter.
18378 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
18379 parameter. Generalise code to handle arrays as well as vectors.
18380 (vect_setup_realignment): Update accordingly.
18381 * tree-vect-stmts.c (vectorizable_store): Likewise.
18382 (vectorizable_load): Likewise.
18383
18384 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18385
18386 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
18387 within the per-copy loop.
18388
18389 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18390
18391 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
18392 in the dump file.
18393
18394 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18395
18396 * doc/options.texi (Negative): Explicitly mention that the
18397 Negative chain must be circular.
18398
18399 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
18400
18401 * function.h (block_chainon): Declare.
18402 * function.c (block_chainon): Define.
18403
18404 2011-04-14 Anatoly Sokolov <aesok@post.ru>
18405 Eric Weddington <eric.weddington@atmel.com>
18406 Georg-Johann Lay <avr@gjlay.de>
18407
18408 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
18409 New Includes
18410 (avr_init_builtins, avr_expand_builtin,
18411 avr_expand_delay_cycles, avr_expand_unop_builtin,
18412 avr_expand_binop_builtin ): New functions.
18413 (avr_builtin_id): New enum
18414 (struct avr_builtin_description): New struct
18415 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
18416 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18417
18418 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
18419 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
18420 UNSPECV_DELAY_CYCLES): new enumeration values
18421 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
18422 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
18423 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
18424 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
18425 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
18426 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
18427 "fmulsu"): New insns
18428
18429 * config/avr/avr-c.c: fix line endings
18430 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
18431 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
18432 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
18433 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
18434 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
18435
18436 * doc/extend.texi (AVR Built-in Functions): New node
18437 (Target Builtins): Add documentation of AVR
18438 built-in functions.
18439
18440 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
18441
18442 PR target/44643
18443 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
18444 alone. Error if non-const data has attribute progmem.
18445
18446 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18447
18448 * tree.h (struct tree_constructor): Include tree_typed instead of
18449 tree_common.
18450 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
18451 TS_TYPED instead of TS_COMMON.
18452
18453 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18454
18455 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
18456 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
18457 (sse2_psadbw): Merge with *avx_psadbw.
18458 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
18459 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
18460 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
18461 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
18462 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
18463 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
18464 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
18465 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
18466 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
18467 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
18468 (ssse3_palignrti): Merge with *avx_palignrti.
18469
18470 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18471
18472 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
18473 * tree-ssanames.c (fini_ssanames): VEC_free it.
18474 (make_ssa_name_fn): Update for VECness of free_ssanames.
18475 (release_ssa_name, release_dead_ssa_names): Likewise.
18476 * tree.h (struct tree_ssa_name): Include tree_typed instead of
18477 tree_common.
18478 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
18479 TS_TYPED instead of TS_COMMON.
18480
18481 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18482
18483 * postreload-gcse.c (gcse_after_reload_main): Add calls to
18484 statistics_counter_event.
18485 * tree-ssa-copyrename.c (stats): Define.
18486 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
18487 statistics_counter_event.
18488 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
18489 (bswap_stats, widen_mul_stats): Define.
18490 (insert_reciprocals): Increment rdivs_inserted.
18491 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
18492 rfuncs_inserted. Add calls to statistics_counter_event.
18493 (execute_cse_sincos_1): Increment inserted.
18494 (execute_cse_sincos): Zeroize sincos_stats. Add call to
18495 statistics_counter_event.
18496 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
18497 of bswap_stats. Add calls to statistics_counter_event.
18498 (convert_mult_to_widen): Increment widen_mults_inserted.
18499 (convert_plusminus_to_widen): Increment maccs_inserted.
18500 (convert_mult_to_fma): Increment fmas_inserted.
18501 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
18502 calls to statistics_counter_event.
18503
18504 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
18505
18506 PR rtl-optimization/48455
18507 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
18508 `temp_costs->mem_cost'.
18509
18510 2011-04-13 Jan Hubicka <jh@suse.cz>
18511
18512 * ipa-inline.h: New file.
18513 * ipa-inline-analysis.c: New file. Broken out of ...
18514 * ipa-inline.c: ... this file; update toplevel comment;
18515 include ipa-inline.h
18516 (inline_summary): Move to ipa-inline.h
18517 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
18518 ipa-inline-analysis.c.
18519 (cgraph_estimate_time_after_inlining): Rename to
18520 estiamte_time_after_inlining; move to ipa-inline-analysis.c
18521 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
18522 to estimate_edge_growth.
18523 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
18524 rename to estimate_size_after_inlining.
18525 (cgraph_mark_inline_edge): Update for new naming convention.
18526 (cgraph_check_inline_limits): Likewise.
18527 (cgraph_edge_badness): Likewise.
18528 (cgraph_decide_recursive_inlining): Likewise.
18529 (cgraph_decide_inlining_of_small_functions): Likewise.
18530 (cgraph_decide_inlining_incrementally): Likewise.
18531 (cgraph_estimate_growth): Rename to estimate_growth; move to
18532 ipa-inline-analysis.c.
18533 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18534 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18535 (compute_inline_parameters): Likewise.
18536 (compute_inline_parameters_for_current): Likewise.
18537 (pass_inline_parameters): Likewise.
18538 (inline_indirect_intraprocedural_analysis): Likewise.
18539 (analyze_function): Rename to inline_analyze_function; likewise.
18540 (add_new_function): Move to ipa-inline-analysis.c.
18541 (inline_generate_summary): Likewise.
18542 (inline_read_summary): Likewise.
18543 (inline_write_summary): Likewise.
18544 * Makefile.in (ipa-inline-analysis.c): New file.
18545
18546 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18547
18548 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18549 * configure: Regenerate.
18550
18551 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18552
18553 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18554 instead of tree_common.
18555 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18556 Likewise.
18557 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18558 TS_TYPED rather than TS_COMMON.
18559 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18560
18561 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
18562
18563 PR target/45263
18564 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18565 r20 around calls of __tablejump_elpm__
18566
18567 2011-04-13 Jakub Jelinek <jakub@redhat.com>
18568
18569 PR middle-end/48591
18570 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18571 NULL.
18572 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18573
18574 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
18575
18576 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18577 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18578 (cfi_vec): New typedef.
18579 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18580 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18581 (cie_cfi_vec): New static variable.
18582 (cie_cfi_head): Delete.
18583 (add_cfi): Accept a cfi_vec * as first argument. All callers and
18584 declaration changed. Use vector rather than list operations.
18585 (new_cfi): Don't initialize the dw_cfi_next field.
18586 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18587 rather than list operations.
18588 (lookup_cfa): Use vector rather than list operations.
18589 (output_cfis): New argument upto. Accept a cfi_vec rather than
18590 a dw_cfi_ref list head as argument. All callers changed.
18591 Iterate over the vector using upto as a maximum index.
18592 (output_all_cfis): New static function.
18593 (output_fde): Use vector rather than list operations. Use the
18594 new upto argument for output_cfis rather than manipulating a
18595 list.
18596 (dwarf2out_begin_prologue): Change initializations to match
18597 new struct members.
18598 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18599 from the vector length rather than searching for the end of a list.
18600 Use output_all_cfis.
18601 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18602
18603 2011-04-13 Nick Clifton <nickc@redhat.com>
18604
18605 * config/rx/rx.md (movmemsi): Do not use this pattern when
18606 volatile pointers are involved.
18607
18608 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18609
18610 * config/i386/sse.md (pinsrbits): Remove.
18611 (sse2_packsswb): Merge with *avx_packsswb.
18612 (sse2_packssdw): Merge with *avx_packssdw.
18613 (sse2_packuswb): Merge with *avx_packuswb.
18614 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18615 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18616 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18617 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18618 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18619 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18620 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18621 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18622 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18623 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18624 (sse2_loadld): Merge with *avx_loadld.
18625 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18626 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18627 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18628 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18629 (vec_concatv2di): Merge with *vec_concatv2di_avx.
18630
18631 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
18632
18633 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18634 calling TREE_CHAIN.
18635 * print-tree.c (print_node): Likewise.
18636 * tree-inline.c (copy_tree_r): Likewise.
18637 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18638 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18639 instead of TS_COMMON.
18640 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18641 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18642 (copy_node_stat): Zero TREE_CHAIN only if necessary.
18643 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18644 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18645 ...and these...
18646 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18647 * tree.h: ...here.
18648 (TREE_CHAIN): Check for a TS_COMMON structure.
18649 (TREE_TYPE): Check for a TS_TYPED structure.
18650
18651 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
18652
18653 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18654 cgraph_get_create_node instead of cgraph_node.
18655
18656 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18657
18658 * c-parser.c (c_parser_initelt): Updated call to
18659 objc_build_message_expr.
18660 (c_parser_postfix_expression): Likewise.
18661
18662 2011-04-12 Kai Tietz <ktietz@redhat.com>
18663
18664 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18665 MASK_MS_BITFIELD_LAYOUT bit.
18666
18667 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18668
18669 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18670 assert it is always true.
18671 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18672 moves.
18673
18674 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18675
18676 * c-parser.c (c_lex_one_token): Rewritten conditional used when
18677 compiling Objective-C to be more efficient.
18678
18679 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
18680
18681 * opts-common.c (decode_cmdline_options_to_array): Remove variable
18682 argv_copied.
18683
18684 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18685
18686 * recog.h, genoutput.c, optabs.c: Revert last patch.
18687
18688 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18689
18690 PR target/48090
18691 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18692
18693 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18694
18695 * recog.h (insn_operand_data): Add an "allows_mem" field.
18696 * genoutput.c (output_operand_data): Initialize it.
18697 * optabs.c (maybe_legitimize_operand_same_code): New function.
18698 (maybe_legitimize_operand): Use it when matching the original
18699 op->value.
18700
18701 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18702
18703 * genpreds.c (process_define_predicate): Move most processing
18704 to gensupport.c. Continue to validate the expression.
18705 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18706 (process_define_predicate): Move processing to gensupport.c.
18707 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18708 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18709 (compute_predicate_codes): Moved from genrecog.c. Add lineno
18710 argument.
18711 (valid_predicate_name_p): New function, split out from old
18712 genpreds.c:process_define_predicate.
18713 (process_define_predicate): New function, combining code from
18714 old genpreds.c and genrecog.c functions.
18715 (process_rtx): Call it for DEFINE_PREDICATE and
18716 DEFINE_SPECIAL_PREDICATE.
18717
18718 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18719
18720 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18721 size of a '%A' memory reference.
18722 (T_DREG, T_QREG): New neon_builtin_type_bits.
18723 (arm_init_neon_builtins): Assert that the load and store operands
18724 are neon_struct_operands.
18725 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18726 (NEON_ARG_MEMORY): New builtin_arg.
18727 (neon_dereference_pointer): New function.
18728 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18729 Handle NEON_ARG_MEMORY.
18730 (arm_expand_neon_builtin): Update after above interface changes.
18731 Use NEON_ARG_MEMORY for loads and stores.
18732 * config/arm/predicates.md (neon_struct_operand): New predicate.
18733 * config/arm/iterators.md (V_two_elem): Tweak formatting.
18734 (V_three_elem): Use BLKmode for accesses that have no associated mode.
18735 (V_four_elem): Tweak formatting.
18736 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18737 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18738 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18739 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18740 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18741 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18742 (neon_vst4<mode>): Replace pointer operand with a memory operand.
18743 Use %A in the output template.
18744 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18745 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18746 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18747 the width of the memory access. Remove post-increment.
18748 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18749
18750 2011-04-12 Nick Clifton <nickc@redhat.com>
18751
18752 * config/v850/v850.c (expand_prologue): Do not use the CALLT
18753 instruction for interrupt handlers if the target is the basic V850
18754 architecture.
18755 (expand_epilogue): Likewise.
18756
18757 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18758
18759 PR rtl-optimization/48549
18760 * combine.c (propagate_for_debug): Also stop after BB_END of
18761 this_basic_block. Process LAST and just stop processing after it.
18762 (combine_instructions): If last_combined_insn has been deleted,
18763 set last_combined_insn to its PREV_INSN.
18764
18765 2011-04-12 Richard Guenther <rguenther@suse.de>
18766
18767 PR tree-optimization/46076
18768 * gimple.h (struct gimple_statement_call): Add fntype field.
18769 (gimple_call_fntype): Adjust.
18770 (gimple_call_set_fntype): New function.
18771 * gimple.c (gimple_build_call_1): Set the call function type.
18772 * gimplify.c (gimplify_call_expr): Preserve the function
18773 type the frontend used for the call.
18774 (gimplify_modify_expr): Likewise.
18775 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
18776 function type.
18777 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
18778 function type.
18779 * tree-ssa.c (useless_type_conversion_p): Function pointer
18780 conversions are useless.
18781
18782 2011-04-12 Martin Jambor <mjambor@suse.cz>
18783
18784 * cgraph.h (cgraph_node): Remove function declaration.
18785 (cgraph_create_node): Declare.
18786 (cgraph_get_create_node): Likewise.
18787 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
18788 Updated all callers.
18789 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
18790 the decl does not already exist. Call cgraph_get_create_node instead
18791 of cgraph_node.
18792 (cgraph_get_create_node): New function.
18793 (cgraph_same_body_alias): Update comment.
18794 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
18795 assert it does not return NULL.
18796 (cgraph_update_edges_for_call_stmt): Likewise.
18797 (cgraph_clone_edge): Likewise.
18798 (cgraph_create_virtual_clone): Likewise.
18799 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
18800 instead of cgraph_node.
18801 (cgraph_add_new_function): Call cgraph_create_node or
18802 cgraph_get_create_node instead of cgraph_node.
18803 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
18804 instead of cgraph_node.
18805 (record_eh_tables): Likewise.
18806 (mark_address): Likewise.
18807 (mark_load): Likewise.
18808 (build_cgraph_edges): Call cgraph_get_create_node instead
18809 of cgraph_node.
18810 (rebuild_cgraph_edges): Likewise.
18811 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
18812 instead of cgraph_node.
18813 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
18814 cgraph_node.
18815 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
18816 cgraph_create_node instead of cgraph_node.
18817 * c-decl.c (finish_function): Call cgraph_get_create_node instead
18818 of cgraph_node.
18819 * lto-cgraph.c (input_node): Likewise.
18820 * lto-streamer-in.c (input_function): Likewise.
18821 * varasm.c (mark_decl_referenced): Likewise.
18822 (assemble_alias): Likewise.
18823
18824 2011-04-12 Martin Jambor <mjambor@suse.cz>
18825
18826 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18827 instead of cgraph_node and assert it does not return NULL.
18828 * lto-streamer-in.c (lto_read_body): Likewise.
18829 * omp-low.c (new_omp_context): Likewise.
18830 (create_task_copyfn): Likewise.
18831 * tree-emutls.c (lower_emutls_function_body): Likewise.
18832 * matrix-reorg.c (transform_allocation_sites): Likewise.
18833
18834 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18835
18836 PR c/48552
18837 * c-typeck.c (build_asm_expr): Error out on attempts to use
18838 void type outputs or inputs for constraints that allow reg or
18839 don't allow memory.
18840
18841 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
18842 Richard Earnshaw <rearnsha@arm.com>
18843
18844 PR target/48250
18845 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18846 to use sign-magnitude offsets. Reject unsupported unaligned
18847 cases. Add detailed description in comments.
18848 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18849 condition from TARGET_32BIT to TARGET_ARM.
18850
18851 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
18852
18853 * tree.h (struct typed_tree): New.
18854 (struct tree_common): Include it instead of tree_base.
18855 (TREE_TYPE): Update for new location of type field.
18856 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18857 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18858 (union tree_node): Add typed field.
18859 * treestruct.def (TS_TYPED): New.
18860 * lto-streamer.c (check_handled_ts_structures): Handle it.
18861 * tree.c (MARK_TS_TYPED): New macro.
18862 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18863
18864 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
18865
18866 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18867 (force_nonfallthru): Do not alter the loop nest if no basic block
18868 was created.
18869
18870 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
18871
18872 * config/i386/sse.md (VI): New mode iterator.
18873 (SSEMODEI): Remove.
18874 (AVX256MODEI): Ditto.
18875 (AVXMODEF4P): Ditto.
18876 (avxvecpsmode): Ditto.
18877 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
18878 (sse2_andnot<mode>3): New expander.
18879 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18880 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
18881 (<any_logic:code><mode>3): Use VI mode iterator.
18882 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18883 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
18884 (*andnottf3): Handle AVX three-operand constraints.
18885 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18886
18887 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18888 Robert Millan <rmh@gnu.org>
18889
18890 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18891 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18892 GNU_USER_DYNAMIC_LINKER64): Define.
18893 (REG_NAME): Don't undefine.
18894 (MD_UNWIND_SUPPORT): Undefine.
18895 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18896 (REG_NAME): Don't undefine.
18897 (MD_UNWIND_SUPPORT): Undefine.
18898 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18899
18900 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18901
18902 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18903 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18904
18905 2011-04-11 Xinliang David Li <davidxl@google.com>
18906
18907 * value-profile.c (check_ic_target): New function.
18908 (gimple_ic_transform): Sanity check indirect call target.
18909 * gimple-low.c (gimple_check_call_args): Interface change.
18910 (gimple_check_call_matching_types): New function.
18911 * tree-inline.c (tree_can_inline_p): Call new function.
18912
18913 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
18914
18915 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
18916 tree-pretty-print.h & realmpfr.h.
18917
18918 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
18919
18920 PR middle-end/48464
18921 * ira.c (setup_pressure_classes): Fix typo in loop condition.
18922 (setup_allocno_and_important_classes): Ditto.
18923
18924 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18925
18926 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
18927 GNU_USER_DYNAMIC_LINKER.
18928 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
18929 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18930 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
18931 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18932 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18933 GNU_USER_TARGET_OS_CPP_BUILTINS.
18934 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
18935 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18936 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18937 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18938 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
18939 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18940 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18941 GNU_USER_TARGET_OS_CPP_BUILTINS.
18942 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18943 GNU_USER_DYNAMIC_LINKER.
18944 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18945 GNU_USER_TARGET_OS_CPP_BUILTINS.
18946 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
18947 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18948 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
18949 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18950 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
18951 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
18952 GNU_USER_DYNAMIC_LINKER64): Remove.
18953 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
18954 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18955 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18956 GNU_USER_DYNAMIC_LINKER.
18957 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18958 GNU_USER_TARGET_OS_CPP_BUILTINS.
18959 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18960 GNU_USER_TARGET_OS_CPP_BUILTINS.
18961 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
18962 to GNU_USER_TARGET_OS_CPP_BUILTINS.
18963 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
18964 GNU_USER_TARGET_OS_CPP_BUILTINS.
18965 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
18966 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
18967 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
18968 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
18969 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18970 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18971 GNU_USER_DYNAMIC_LINKER.
18972 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
18973 GNU_USER_TARGET_OS_CPP_BUILTINS.
18974 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
18975 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18976 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18977 GNU_USER_DYNAMIC_LINKER.
18978 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18979 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18980 * config/mips/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/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
18985 GNU_USER_DYNAMIC_LINKERN32.
18986 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
18987 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
18988 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
18989 GNU_USER_DYNAMIC_LINKER32.
18990 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
18991 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18992 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
18993 GNU_USER_DYNAMIC_LINKER.
18994 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
18995 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18996 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
18997 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
18998 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
18999 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
19000 GNU_USER_DYNAMIC_LINKER32.
19001 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19002 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
19003 GNU_USER_DYNAMIC_LINKER.
19004 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
19005 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19006 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19007 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
19008 GNU_USER_DYNAMIC_LINKER64.
19009 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
19010 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19011 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19012 GNU_USER_DYNAMIC_LINKER.
19013 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
19014 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19015 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19016 GNU_USER_DYNAMIC_LINKER.
19017 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
19018 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19019 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19020 GNU_USER_DYNAMIC_LINKER32.
19021 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19022 GNU_USER_DYNAMIC_LINKER64.
19023 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19024 GNU_USER_DYNAMIC_LINKER64.
19025 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
19026 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19027 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
19028 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19029 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19030
19031 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19032
19033 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
19034 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
19035 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
19036 GNU_USER_DYNAMIC_LINKER.
19037 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19038 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
19039 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
19040 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
19041 GNU_USER_DYNAMIC_LINKER64.
19042 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19043 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
19044 GNU_USER_LINK_EMULATION.
19045 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
19046 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
19047 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
19048 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
19049 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
19050 CPP_SPEC, CC1_SPEC): Remove.
19051 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
19052 (GNU_USER_DYNAMIC_LINKER): Define.
19053 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
19054 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
19055 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
19056 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
19057 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
19058 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
19059 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19060 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
19061 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
19062 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
19063 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
19064 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
19065 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
19066 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
19067 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
19068 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19069 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19070 GNU_USER_DYNAMIC_LINKER.
19071 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19072 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19073 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19074 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19075 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19076 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19077 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
19078 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
19079 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
19080 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
19081
19082 2011-04-11 Kai Tietz <ktietz@redhat.com>
19083
19084 PR target/9601
19085 PR target/11772
19086 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
19087 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
19088 comment.
19089 (ix86_is_msabi_thiscall): Removed.
19090 (ix86_is_type_thiscall): Likewise.
19091 (ix86_get_callcvt): New function.
19092 (ix86_comp_type_attributes): Simplify check.
19093 (ix86_function_regparm): Use ix86_get_callcvt for calling
19094 convention attribute checks.
19095 (ix86_return_pops_args): Likewise.
19096 (ix86_static_chain): Likewise.
19097 (x86_this_parameter): Likewise.
19098 (x86_output_mi_thunk): Likewise.
19099 (ix86_function_type_abi): Optimize check for types without attributes.
19100 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
19101 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
19102 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
19103 by flag-values.
19104 (IX86_BASE_CALLCVT): Helper macro.
19105 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
19106 Use ix86_get_callcvt for calling convention attribute checks and avoid
19107 symbol-decoration for stdcall in TARGET_RTD case.
19108 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
19109 Likewise.
19110 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
19111 for declaration.
19112
19113 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
19114
19115 * config/i386/sse.md (VI_128): New mode iterator.
19116 (VI12_128): Rename from SSEMODE12.
19117 (VI14_128): Rename from SSEMODE14.
19118 (VI124_128): New mode iterator.
19119 (VI24_128): Rename from SSEMODE248.
19120 (VI248_128): Rename from SSEMODE248.
19121 (SSEMODE124C8): Remove.
19122 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19123 (*sse2_<plusminus_insn><mode>3): Merge with
19124 *avx_<plusminus_insn><mode>3.
19125 (*mulv8hi3): Merge with *avx_mulv8hi3.
19126 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
19127 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
19128 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
19129 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
19130 (ashr<mode>3): Merge with *avx_ashr<mode>3.
19131 (lshr<mode>3): Merge with *avx_lshr<mode>3.
19132 (ashl<mode>3): Merge with *avx_ashl<mode>3.
19133 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
19134 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
19135 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19136 (*<smaxmin:code>v8hi3): Ditto.
19137 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
19138 (*<smaxmin:code>v16qi3): Ditto.
19139 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
19140 (*sse2_eq<mode>3): Ditto.
19141 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
19142 (*sse2_gt<mode>3): Ditto.
19143 (vcondv2di): Split out of vcond<mode>.
19144 (vconduv2di): Split out of vcondu<mode>.
19145
19146 2011-04-11 Richard Guenther <rguenther@suse.de>
19147
19148 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
19149 before calling tree_low_cst.
19150
19151 2011-04-11 Richard Guenther <rguenther@suse.de>
19152
19153 * stor-layout.c (layout_type): Compute all array index size operations
19154 in the original type.
19155 (initialize_sizetypes): Add comment.
19156 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
19157
19158 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19159
19160 * common.opt (Tbss=, Tdata=, Ttext=): New options.
19161
19162 2011-04-11 Martin Jambor <mjambor@suse.cz>
19163
19164 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
19165 of cgraph_node, handle NULL return value.
19166 (cgraph_global_info): Likewise.
19167 (cgraph_rtl_info): Likewise.
19168 * tree-inline.c (estimate_num_insns): Likewise.
19169 * gimplify.c (unshare_body): Likewise.
19170 (unvisit_body): Likewise.
19171 (gimplify_body): Likewise.
19172 * predict.c (optimize_function_for_size_p): Likewise.
19173 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19174 (call_may_clobber_ref_p_1): Likewise.
19175 * varasm.c (function_section_1): Likewise.
19176 (assemble_start_function): Likewise.
19177
19178 2011-04-11 Martin Jambor <mjambor@suse.cz>
19179
19180 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
19181 of cgraph_node.
19182 * final.c (rest_of_clean_state): Likewise.
19183 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
19184 * passes.c (pass_init_dump_file): Likewise.
19185 (execute_all_ipa_transforms): Likewise.
19186 (function_called_by_processed_nodes_p): Likewise.
19187 * predict.c (maybe_hot_frequency_p): Likewise.
19188 (probably_never_executed_bb_p): Likewise.
19189 (compute_function_frequency): Likewise.
19190 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
19191 (unnest_nesting_tree_1): Likewise.
19192 (lower_nested_functions): Likewise.
19193 * tree-optimize.c (execute_fixup_cfg): Likewise.
19194 (tree_rest_of_compilation): Likewise.
19195 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
19196 * tree-sra.c (ipa_early_sra): Likewise.
19197 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19198 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
19199 * ipa.c (record_cdtor_fn): Likewise.
19200 * ipa-inline.c (cgraph_early_inlining): Likewise.
19201 (compute_inline_parameters_for_current): Likewise.
19202 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19203 * ipa-pure-const.c (local_pure_const): Likewise.
19204 * ipa-split.c (split_function): Likewise.
19205 (execute_split_functions): Likewise.
19206 * cgraphbuild.c (build_cgraph_edges): Likewise.
19207 (rebuild_cgraph_edges): Likewise.
19208 (cgraph_rebuild_references): Likewise.
19209 (remove_cgraph_callee_edges): Likewise.
19210 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
19211 (verify_cgraph_node): Likewise.
19212 (cgraph_analyze_functions): Likewise.
19213 (cgraph_preserve_function_body_p): Likewise.
19214 (save_inline_function_body): Likewise.
19215 (save_inline_function_body): Likewise.
19216 * tree-inline.c (copy_bb): Likewise.
19217 (optimize_inline_calls): Likewise.
19218
19219 2011-04-11 Martin Jambor <mjambor@suse.cz>
19220
19221 PR tree-optimization/48195
19222 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19223 ipa_check_create_edge_args.
19224 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19225 ipa_check_create_edge_args.
19226 * ipa-inline.c (inline_generate_summary): Do not call
19227 ipa_check_create_node_params and ipa_check_create_edge_args.
19228 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19229 ipa_check_create_edge_args.
19230
19231 2011-04-09 Anatoly Sokolov <aesok@post.ru>
19232
19233 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19234 instead of loop.
19235 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19236 * function.c (record_hard_reg_sets): Likewise.
19237 * ira.c (compute_regs_asm_clobbered): Likewise.
19238 * sched-deps.c (sched_analyze_1): Likewise.
19239 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19240
19241 2011-04-09 Xinliang David Li <davidxl@google.com>
19242
19243 PR tree-optimization/PR48484
19244 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19245 has_valid_pred lazily
19246
19247 2011-04-09 Duncan Sands <baldrick@free.fr>
19248
19249 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19250
19251 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
19252
19253 * combine.c (combine_validate_cost): Adjust comments. Set registered
19254 cost of I0 to zero at the end, if any.
19255
19256 2011-04-08 Xinliang David Li <davidxl@google.com>
19257
19258 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19259 to insane profile data.
19260
19261 2011-04-08 Xinliang David Li <davidxl@google.com>
19262
19263 * ipa-cp.c (ipcp_update_profiling): Correct
19264 negative scale factor due to insane profile data.
19265
19266 2011-04-08 Xinliang David Li <davidxl@google.com>
19267
19268 * final.c (dump_basic_block_info): New function.
19269 (final): Dump basic block.
19270 (final_scan_insn): Remove old dump.
19271
19272 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
19273
19274 PR target/47829
19275 * config.gcc (i386-*-freebsd): Disable unwind table generation for
19276 crtbegin/crtend.
19277
19278 2011-04-08 Michael Matz <matz@suse.de>
19279
19280 PR middle-end/48389
19281 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19282 functions.
19283 (rebuild_jump_labels): Call rebuild_jump_labels_1.
19284 * rtl.h (rebuild_jump_labels_chain): Declare.
19285 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19286 insns inserted on edges.
19287
19288 2011-04-08 Joseph Myers <joseph@codesourcery.com>
19289
19290 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19291 * config/arm/arm-arches.def: New.
19292 * config/arm/arm-opts.h: New.
19293 * config/arm/genopt.sh: New.
19294 * config/arm/arm-tables.opt: New (generated).
19295 * config/arm/arm.c (arm_handle_option, arm_target_help,
19296 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19297 (all_architectures): Get most table contents from arm-arches.def.
19298 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19299 arm_selected_tune here.
19300 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19301 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19302 (march=, mcpu=, mtune=): Use Enum and Var.
19303 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
19304 (arm.o): Update dependencies.
19305
19306 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
19307
19308 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
19309 of header_file.
19310 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
19311 (write_typed_alloc_defns): Likewise.
19312 (main): Calls write_typed_alloc_defns with output_header.
19313
19314 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
19315
19316 PR inline-asm/48435
19317 * ira-color.c (setup_profitable_hard_regs): Add comments.
19318 Don't take prohibited hard regs into account.
19319 (setup_conflict_profitable_regs): Rename to
19320 get_conflict_profitable_regs.
19321 (check_hard_reg_p): Check prohibited hard regs.
19322
19323 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
19324
19325 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
19326 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
19327 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
19328
19329 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19330
19331 PR target/48366
19332 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
19333 move from floating point to shift amount register.
19334 (emit_move_sequence): Remove secondary reload support for floating
19335 point to shift amount amount register copies.
19336 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
19337 amount register copies.
19338 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
19339 register, return false if mode isn't a scalar integer mode.
19340 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
19341
19342 2011-04-08 Richard Guenther <rguenther@suse.de>
19343
19344 * gimple.c (gimple_call_flags): Remove kludge.
19345
19346 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19347
19348 * sel-sched.c (sel_region_init): Move call to
19349 sel_setup_region_sched_flags after setup_current_loop_nest.
19350
19351 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
19352
19353 PR rtl-optimization/48272
19354 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
19355 init_insn_reg_pressure_info. Adjust a caller.
19356 * sched-int.h (init_insn_reg_pressure_info): Declare.
19357 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
19358 when sched-pressure is enabled.
19359
19360 2011-04-08 Richard Guenther <rguenther@suse.de>
19361
19362 * gimple.c (gimple_set_modified): Do not queue calls to
19363 MODIFIED_NORETURN_CALLS here ...
19364 * tree-ssa-operands.c (update_stmt_operands): ... but here.
19365
19366 2011-04-08 Richard Guenther <rguenther@suse.de>
19367
19368 PR lto/48467
19369 * toplev.c (lang_dependent_init): Do not open asm_out_file
19370 in WPA mode, nor perform debug machinery initialization.
19371 (finalize): Do not unlink asm_out_file in WPA mode.
19372
19373 2011-04-08 Richard Guenther <rguenther@suse.de>
19374
19375 * gimple.h (gimple_call_fntype): New function.
19376 (gimple_call_return_type): Use it.
19377 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
19378 * gimple-low.c (gimple_check_call_args): Likewise.
19379 * gimple.c (gimple_call_flags): Likewise.
19380 (gimple_call_arg_flags): Likewise.
19381 (gimple_call_return_flags): Likewise.
19382 * tree-cfg.c (verify_gimple_call): Likewise.
19383 (do_warn_unused_result): Likewise.
19384 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
19385 * value-prof.c (gimple_ic_transform): Fix fndecl check.
19386
19387 2011-04-08 Dmitry Melnik <dm@ispras.ru>
19388
19389 PR rtl-optimization/48235
19390 * sel-sched.c (code_motion_process_successors): Recompute the last
19391 insn in basic block if control flow changed.
19392 (code_motion_path_driver): Ditto. Recompute the first insn as well.
19393 Update condition for ilist_remove.
19394
19395 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19396
19397 PR rtl-optimization/48302
19398 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
19399 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
19400 it to record added preheader blocks.
19401 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
19402 on to sel_add_loop_preheaders.
19403 (sel_region_init): Move call to setup_current_loop_nest after
19404 sel_init_bbs.
19405
19406 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19407
19408 PR target/48273
19409 * cfgloop.h (loop_has_exit_edges): New helper.
19410 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
19411 non-clonable.
19412 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19413 that have no exit edges.
19414
19415 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19416
19417 PR rtl-optimization/48442
19418 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
19419 all callers. Adjust assert.
19420
19421 2011-04-08 Jakub Jelinek <jakub@redhat.com>
19422
19423 PR tree-optimization/48377
19424 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
19425 is_packed to true even for types with smaller TYPE_ALIGN than
19426 TYPE_SIZE.
19427
19428 2011-04-08 Richard Guenther <rguenther@suse.de>
19429
19430 PR bootstrap/48513
19431 * doc/tm.texi: Re-generate.
19432
19433 2011-04-08 Wei Guozhi <carrot@google.com>
19434
19435 PR target/47855
19436 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
19437 * config/arm/arm.c (arm_attr_length_push_multi): New function.
19438 * config/arm/arm.md (*push_multi): Change the length computation to
19439 call a C function.
19440
19441 2011-04-08 Anatoly Sokolov <aesok@post.ru>
19442
19443 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
19444 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
19445 * doc/tm.texi: Regenerate.
19446 * system.h (ASM_OUTPUT_BSS): Poison.
19447 * varasm.c (asm_output_bss): Remove function.
19448 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
19449
19450 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
19451 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
19452 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
19453 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19454 Likewise.
19455 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19456 Likewise.
19457 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19458 Likewise.
19459 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
19460
19461 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19462
19463 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
19464 EnumValue lines.
19465
19466 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19467
19468 * config/m68k/m68k.c (m68k_handle_option): Don't handle
19469 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
19470 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
19471 OPT_mcpu32.
19472 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19473 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
19474 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
19475 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
19476 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
19477 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
19478 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19479 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
19480 options. Don't map other m68k options manually. Don't handle
19481 old-style options as canonical.
19482 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19483 * doc/install.texi (m68k-*-*): Document binutils version requirement.
19484
19485 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
19486
19487 * basic-block.h (force_nonfallthru): Move to...
19488 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
19489 (force_nonfallthru): ...here.
19490 * cfghooks.c (force_nonfallthru): New function.
19491 * cfgrtl.c (force_nonfallthru): Rename into...
19492 (rtl_force_nonfallthru): ...this.
19493 (commit_one_edge_insertion): Do not set AUX field.
19494 (commit_edge_insertions): Do not discover new basic blocks.
19495 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
19496 (cfg_layout_rtl_cfg_hooks): Likewise.
19497 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
19498 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
19499 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
19500
19501 2011-04-07 Anatoly Sokolov <aesok@post.ru>
19502
19503 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19504 Remove macros.
19505
19506 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
19507
19508 * config/i386/sse.md: Update copyright year.
19509 (avxcvtvecmode): Remove.
19510 (sse_movhlps): Merge with *avx_movhlps.
19511 (sse_movlhps): Merge with *avx_movlhps.
19512 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
19513 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
19514 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
19515 (sse_loadhps): Merge with *avx_loadhps.
19516 (sse_storelps): Merge with *avx_storelps.
19517 (sse_loadlps): Merge with *avx_loadlps.
19518 (sse_movss): Merge with *avx_movss.
19519 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
19520 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
19521 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
19522 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
19523 (vec_set<mode>_0): Ditto.
19524 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
19525 (sse4_1_insertps): Merge with *avx_insertps.
19526 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
19527 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
19528 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
19529 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
19530 (sse2_storehpd): Merge with *avx_storehpd.
19531 (sse2_loadhpd): Merge with *avx_loadhpd.
19532 (sse2_loadlpd): Merge with *avx_loadlpd.
19533 (sse2_movsd): Merge with *avx_movsd.
19534 (*vec_concatv2df): Merge with *vec_concatv2df.
19535
19536 2011-04-07 Jakub Jelinek <jakub@redhat.com>
19537
19538 PR debug/48343
19539 * combine.c (combine_instructions): Add last_combined_insn,
19540 update it if insn is after it, pass it to all try_combine calls.
19541 (try_combine): Add last_combined_insn parameter, pass it instead of
19542 i3 to propagate_for_debug.
19543
19544 2011-04-07 Nick Clifton <nickc@redhat.com>
19545
19546 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19547 to handle MDR <-> data register transfers.
19548 (movhi_internal): Likewise.
19549
19550 2011-04-07 Alan Modra <amodra@gmail.com>
19551
19552 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19553 previous stack info.
19554
19555 2011-04-07 Tom de Vries <tom@codesourcery.com>
19556
19557 PR target/43920
19558 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
19559 flow_find_cross_jump. Swap variables to implement backward replacement.
19560 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19561
19562 2011-04-07 Tom de Vries <tom@codesourcery.com>
19563
19564 PR target/43920
19565 * cfgcleanup.c (walk_to_nondebug_insn): New function.
19566 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
19567 and bb2.
19568 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19569 src1 or src2. Redirect edges to the last basic block. Update
19570 frequency and count on multiple basic blocks in case of fallthru.
19571
19572 2011-04-07 Tom de Vries <tom@codesourcery.com>
19573
19574 PR target/43920
19575 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19576 function.
19577 (old_insns_match_p): Change return type. Replace return false/true
19578 with return dir_none/dir_both. Use can_replace_by.
19579 (flow_find_cross_jump): Add dir_p parameter. Init replacement
19580 direction from dir_p. Register replacement direction in dir, last_dir
19581 and afterlast_dir. Handle new return type of old_insns_match_p using
19582 merge_dir. Return replacement direction in dir_p.
19583 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19584 return type of old_insns_match_p.
19585 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19586 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19587 flow_find_cross_jump.
19588 * basic-block.h (enum replace_direction): New type.
19589 (flow_find_cross_jump): Add parameter to declaration.
19590
19591 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19592
19593 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19594 (AVXMODEDCVTPS2DQ): Ditto.
19595 (VEC_FLOAT_MODE): Ditto.
19596 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
19597 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19598 (<any_logic:code><mode>3): Use VF mode iterator.
19599 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19600 Use VF mode iterator.
19601 (copysign<mode>3): Use VF mode iterator.
19602 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
19603 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19604 (*<any_logic:code><MODEF:mode>3): Merge with
19605 *avx_<any_logic:code><MODEF:mode>3.
19606 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19607 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19608 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19609 (avx_cvtdq2ps<avxmodesuffix>): Remove.
19610 (sse2_cvtdq2ps): Use %v modifier.
19611 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19612 (avx_cvtps2dq<avxmodesuffix>): Remove.
19613 (sse2_cvtps2dq): Use %v modifier.
19614 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19615 (avx_cvttps2dq<avxmodesuffix>): Remove.
19616 (sse2_cvttps2dq): Use %v modifier.
19617 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19618 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19619 (sse2_cvtsd2siq): Fix insn template.
19620 (sse2_cvtsd2siq_2): Ditto.
19621 (sse2_cvttsd2siq): Ditto.
19622 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19623 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19624
19625 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19626
19627 * gcov-io.c: Use GCC Runtime Library Exception.
19628
19629 2011-04-06 Jakub Jelinek <jakub@redhat.com>
19630
19631 PR debug/48466
19632 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19633 as base_reg whatever register reg has been eliminated to, instead
19634 of hardcoding STACK_POINTER_REGNUM.
19635
19636 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19637
19638 * doc/tm.texi.in: Document C target hooks as separate from general
19639 target hooks.
19640 * doc/tm.texi: Regenerate.
19641 * genhooks.c (struct hook_desc): Add docname field.
19642 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
19643 docname field.
19644 (hook_array): Include c-target.def.
19645 (emit_documentation): Use docname field in output.
19646 (emit_init_macros): Take docname argument. Only emit definitions
19647 for hooks matching docname.
19648 (main): Expect additional arguments in all cases. Pass argument
19649 to emit_init_macros.
19650 * target.def: Move initial macro definitions and comments to
19651 target-hooks-macros.h.
19652 (gcc_targetcm): Move to c-family/c-target.def.
19653 * target.h (targetcm): Move declaration to c-family/c-target.h.
19654 * targhooks.c (default_handle_c_option): Move to
19655 c-family/c-opts.c.
19656 * targhooks.h (default_handle_c_option): Move declaration to
19657 c-family/c-common.h.
19658 * target-hooks-macros.h: New file.
19659 * config.gcc (target_has_targetcm): Define and use to add to
19660 c_target_objs and cxx_target_objs.
19661 * config/default-c.c: New file.
19662 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19663 of target.h and target-def.h.
19664 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19665 (darwin_objc_construct_string, darwin_cfstring_ref_p,
19666 darwin_check_cfstring_format_arg): Make static.
19667 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19668 TARGET_STRING_OBJECT_REF_TYPE_P,
19669 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19670 * config/darwin-protos.h (darwin_objc_construct_string,
19671 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19672 declare.
19673 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19674 TARGET_STRING_OBJECT_REF_TYPE_P,
19675 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19676 * config/t-darwin (darwin-c.o): Update dependencies.
19677 * system.h (TARGET_HAS_TARGETCM): Poison.
19678 * Makefile.in (TARGET_H): Update.
19679 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19680 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19681 (default-c.o): New target.
19682 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19683 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19684 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
19685 c-target.def.
19686 (build/genhooks.o): Update dependencies.
19687
19688 2011-04-06 Richard Guenther <rguenther@suse.de>
19689
19690 * ipa-inline.c (enum inlining_mode): Remove.
19691 (cgraph_flatten): Use some other token.
19692 (cgraph_edge_early_inlinable_p): New function, split out from ...
19693 (cgraph_perform_always_inlining): New function, split out from ...
19694 (cgraph_decide_inlining_incrementally): ... here.
19695 (cgraph_mark_inline_edge): Adjust.
19696 (cgraph_early_inlining): Re-structure.
19697 (pass_early_inline): Require SSA form.
19698
19699 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
19700 Julian Brown <julian@codesourcery.com>
19701 Mark Shinwell <shinwell@codesourcery.com>
19702
19703 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19704 LO_REGS only for Thumb-1.
19705 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19706 be used in short instructions when optimising for size on Thumb-2.
19707
19708 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19709
19710 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19711 associated with user returns to be preserved.
19712
19713 2011-04-06 Tristan Gingold <gingold@adacore.com>
19714
19715 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19716 symbol_queue_size, DBXOUT_DECR_NESTING,
19717 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19718 if XCOFF_DEBUGGING_INFO.
19719
19720 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19721
19722 * config/i386/i386.md (attribute isa): New.
19723 (attribute enabled): New.
19724 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19725 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19726 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19727 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19728 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19729 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19730 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19731 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19732
19733 * config/i386/sse.md (VF): New mode iterator.
19734 (VF1): Ditto.
19735 (VF2): Ditto.
19736 (VF_128): Ditto.
19737 (SSEMODEF4): Remove.
19738 (attribute sse): Handle V8SF and V4DF modes.
19739 (<absneg:code><mode>2): Use VF mode iterator.
19740 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
19741 mode iterator.
19742 (<plusminus_insn><mode>3): Use VF mode iterator.
19743 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19744 Use VF mode iterator.
19745 (<sse>_vm<plusminus_insn><mode>3): Merge with
19746 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
19747 (mul<mode>3): Use VF mode iterator.
19748 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
19749 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
19750 mode iterator.
19751 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19752 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
19753 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
19754 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
19755 mode iterator.
19756 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
19757 Use VF1 mode iterator.
19758 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
19759 (sqrt<VF2:mode>2): New expander.
19760 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
19761 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
19762 and sqrtv2df2. Use VF mode iterator.
19763 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
19764 mode iterator.
19765 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
19766 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
19767 Use VF1 mode iterator.
19768 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
19769 (<smaxmin:code><mode>3): Use VF mode iterator.
19770 (*<smaxmin:code><mode>3_finite): Merge with
19771 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
19772 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19773 (<sse>_vm<smaxmin:code><mode>2): Merge with
19774 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
19775 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
19776 mode iterator.
19777 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
19778 mode iterator.
19779 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
19780 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
19781 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
19782 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
19783 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
19784 VF mode iterator.
19785 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
19786 Use VF_128 mode iterator.
19787 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
19788 mode iterator.
19789 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
19790 VF_128 mode iterator.
19791 (vcond<mode>): Use VF mode iterator.
19792 * config/i386/predicates.md (sse_comparison_operator): Merge with
19793 avx_comparison_float_operator. Do not declare as special_predicate.
19794 * config/i386/i386.c (struct builtin_description): Update for renamed
19795 compare patterns.
19796 (ix86_expand_args_builtin): Ditto.
19797 (ix86_expand_sse_compare_mask): Ditto.
19798
19799 2011-04-06 Richard Guenther <rguenther@suse.de>
19800
19801 * tree-inline.c (estimate_num_insns): For calls simply account
19802 for all passed arguments and a used return value.
19803
19804 2011-04-06 Richard Guenther <rguenther@suse.de>
19805
19806 PR tree-optimization/47663
19807 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
19808 call_stmt_time fields.
19809 (cgraph_edge_inlinable_p): Declare.
19810 (cgraph_edge_recursive_p): New inline function.
19811 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
19812 (cgraph_clone_edge): Copy it.
19813 * ipa-inline.c (cgraph_estimate_edge_time): New function.
19814 Account for call stmt time.
19815 (cgraph_estimate_time_after_inlining): Take edge argument.
19816 (cgraph_estimate_edge_growth): Account call stmt size.
19817 (cgraph_estimate_size_after_inlining): Take edge argument.
19818 (cgraph_mark_inline_edge): Adjust.
19819 (cgraph_check_inline_limits): Likewise.
19820 (cgraph_recursive_inlining_p): Remove.
19821 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19822 (cgraph_decide_recursive_inlining): Take edge argument and
19823 adjust.
19824 (cgraph_decide_inlining_of_small_functions): Do not avoid
19825 diags for recursive inlining here.
19826 (cgraph_flatten): Adjust.
19827 (cgraph_decide_inlining_incrementally): Likewise.
19828 (estimate_function_body_sizes): Remove call cost handling.
19829 (compute_inline_parameters): Initialize caller edge call costs.
19830 (cgraph_estimate_edge_growth): New function.
19831 (cgraph_estimate_growth): Use it.
19832 (cgraph_edge_badness): Likewise.
19833 (cgraph_check_inline_limits): Take an edge argument.
19834 (cgraph_decide_inlining_of_small_functions): Adjust.
19835 (cgraph_decide_inlining): Likewise.
19836 * tree-inline.c (estimate_num_insns): Only account for call
19837 return value if it is used.
19838 (expand_call_inline): Avoid diagnostics on recursive inline
19839 functions here.
19840 * lto-cgraph.c (lto_output_edge): Output edge call costs.
19841 (input_edge): Input edge call costs.
19842
19843 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19844
19845 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19846
19847 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
19848
19849 * doc/invoke.texi (Spec Files): Fix typo.
19850
19851 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19852
19853 * profile.c (branch_prob): Move declaration of local variable. Remove
19854 obsolete ??? comment. Expand the location explicitly instead of using
19855 the LOCATION_FILE and LOCATION_LINE macros.
19856
19857 2011-04-06 Wei Guozhi <carrot@google.com>
19858
19859 PR target/47855
19860 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19861 (arm_cond_branch): Likewise.
19862 (arm_cond_branch_reversed): Likewise.
19863 (arm_jump): Likewise.
19864 (push_multi): Likewise.
19865 * config/arm/constraints.md (Py): New constraint.
19866
19867 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19868
19869 PR bootstrap/48471
19870 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19871 Move these...
19872 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19873 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19874 #ifdef DBX_DEBUGGING_INFO.
19875
19876 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
19877
19878 PR bootstrap/48403
19879 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19880 if old and new states differ.
19881
19882 2011-04-05 Joseph Myers <joseph@codesourcery.com>
19883
19884 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19885 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19886 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19887 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19888 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19889 mcfv4e): Use Alias.
19890 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19891 ColdFire options to -mcpu= options.
19892
19893 2011-04-05 Jeff Law <law@redhat.com>
19894
19895 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19896 check if BB is a successor of LOOP->header and return
19897 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19898
19899 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
19900
19901 * cprop.c (struct reg_use): Remove.
19902 (reg_use_table): Make an array of RTX.
19903 (find_used_regs, constprop_register, local_cprop_pass,
19904 bypass_block): Simplify users of reg_use_table.
19905 (cprop_insn): Likewise. Iterate if copy propagation succeeded
19906 on one of the uses found by find_used_regs.
19907
19908 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19909
19910 PR bootstrap/48469
19911 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
19912 declaration.
19913
19914 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19915
19916 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
19917 as an rtx.
19918 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
19919
19920 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
19921
19922 PR middle-end/48441
19923 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
19924
19925 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19926
19927 * combine.c: Include obstack.h.
19928 (struct insn_link): Define.
19929 (uid_log_links): Adjust type.
19930 (FOR_EACH_LOG_LINK): New macro.
19931 (insn_link_obstack): Declare.
19932 (alloc_insn_link): Define.
19933 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
19934 type of link variables.
19935 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
19936 (try_combine, record_promoted_values, distribute_notes): Likewise.
19937 (distribute_links): Likewise. Tweak prototype.
19938 (clear_log_links): Delete.
19939 (adjust_for_new_dest): Call alloc_insn_link.
19940 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
19941
19942 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19943
19944 * gcse.c (modify_mem_list): Convert to an array of VECs.
19945 (canon_modify_mem_list, compute_transp): Tweak formatting.
19946 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
19947 (load_killed_in_block_p): Likewise.
19948 (record_last_mem_set_info): Likewise.
19949 (clear_modify_mem_tables): Likewise.
19950
19951 2011-04-05 Tom de Vries <tom@codesourcery.com>
19952
19953 PR middle-end/48461
19954 * function.c (emit_use_return_register_into_block): Only define if
19955 HAVE_return.
19956
19957 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
19958
19959 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
19960
19961 2011-04-05 Joseph Myers <joseph@codesourcery.com>
19962
19963 * config/rx/rx-opts.h: New.
19964 * config/rx/rx.c (rx_cpu_type): Remove.
19965 (rx_handle_option): Don't assert that global structures are in
19966 use. Access variables via opts pointer. Defer most handling of
19967 OPT_mint_register_. Use error_at.
19968 (rx_option_override): Handle deferred OPT_mint_register_ here.
19969 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
19970 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
19971 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
19972 (rx_cpu_types): New Enum and EnumValue entries.
19973 (mint-register=): Use Defer and use Var accordingly.
19974
19975 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19976
19977 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
19978 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
19979 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
19980 Move these...
19981 (debug_free_queue, debug_nesting, symbol_queue_index):
19982 ...and these...
19983 * dbxout.c: ...to here. Make static.
19984
19985 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19986
19987 * gcse.c (modify_pair): Define. Define a VEC of it.
19988 (canon_modify_mem_list): Convert to an array of VECs.
19989 (free_insn_expr_list_list): Delete.
19990 (clear_modify_mem_tables): Call VEC_free instead.
19991 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
19992 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
19993 (canon_list_insert, compute_transp): Likewise.
19994
19995 2011-04-05 Tom de Vries <tom@codesourcery.com>
19996
19997 PR target/43920
19998 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
19999 for size.
20000
20001 2011-04-05 Tom de Vries <tom@codesourcery.com>
20002
20003 PR target/43920
20004 * function.c (emit_use_return_register_into_block): New function.
20005 (thread_prologue_and_epilogue_insns): Use
20006 emit_use_return_register_into_block.
20007
20008 2011-04-05 Tom de Vries <tom@codesourcery.com>
20009
20010 PR target/43920
20011 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
20012 insn.
20013
20014 2011-04-05 Tom de Vries <tom@codesourcery.com>
20015
20016 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
20017
20018 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
20019
20020 * config/arm/arm.md (define_constants for unspec): Replace with
20021 define_c_enum.
20022 (define_constants for unspecv): Replace with define_c_enum.
20023 * config/arm/neon.md (define_constants for unspec): Replace with
20024 define_c_enum.
20025
20026 2011-04-04 Richard Henderson <rth@redhat.com>
20027
20028 PR bootstrap/48400
20029 * dwarf2out.c (output_line_info): Always emit line info from
20030 at least one section.
20031 (dwarf2out_init): Create text_section_line_info here ...
20032 (set_cur_line_info_table): ... not here.
20033
20034 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
20035
20036 PR target/48380
20037 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
20038 not called.
20039
20040 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
20041
20042 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
20043
20044 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
20045 (expr_equiv_p): Remove.
20046 (insert_set_in_table): Look at <dest, src> pair instead of expr.
20047 (hash_scan_set): Update call to insert_set_in_table.
20048 (dump_hash_table): Dump <dest, src> pair.
20049 (lookup_set): Simplify. Lookup <dest, src> pair.
20050 (compute_transp): Remove, fold heavily simplified code into...
20051 (compute_local_properties): ...here. Expect COMP and TRANSP
20052 unconditionally.
20053 (find_avail_set): Take set directly from struct expr.
20054 (find_bypass-set): Likewise.
20055 (bypass_block): Likewise.
20056 (cprop_insn): Likewise. Remove redundant INSN_P test.
20057
20058 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
20059 checks on form of COND from find_implicit_sets to here.
20060 (find_implicit_sets): Cleanup control flow. Split critical edges
20061 if it exposes implicit sets. Allocate/resize implicit_sets as
20062 necessary.
20063 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
20064 changed something. Run df_analyze after find_implicit_sets if any
20065 edges were split. Do not allocate implicit_sets here.
20066
20067 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
20068 (gcse_obstack): Renamed to cprop_obstack.
20069 (GNEW, GNEWVEC, GNEWVAR): Remove.
20070 (gmalloc): Remove.
20071 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
20072 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
20073 (gcse_alloc): Likewise, and rename to cprop_alloc.
20074 (alloc_gcse_men, free_gcse_mem): Remove.
20075 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
20076 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
20077 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
20078
20079 * cprop.c (oprs_not_set_p): Remove.
20080 (mark_set, mark_clobber): Remove.
20081 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
20082 (reg_not_set_p): New function.
20083 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
20084 (cprop_insn): Likewise.
20085 (cprop_jump): Use FOR_EACH_EDGE.
20086
20087 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
20088
20089 PR bootstrap/48403
20090 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
20091 (rank_for_schedule): Use scheduled_insns vector instead of
20092 last_scheduled_insn.
20093 (ok_for_early_queue_removal): Likewise.
20094 (queue_to_ready): Search forward in nonscheduled_insns_begin if
20095 we have a dbg_cnt.
20096 (choose_ready): Likewise.
20097 (commit_schedule): Use VEC_iterate.
20098 (schedule_block): Initialize nonscheduled_insns_begin. If we have
20099 a dbg_cnt, use it and ensure the first insn is in the ready list.
20100 (haifa_sched_init): Allocate scheduled_insns.
20101 (sched_extend_ready_list): Don't allocate it; reserve space.
20102 (haifa_sched_finish): Free it.
20103
20104 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20105
20106 * optc-gen.awk: Always remove type from Variable entry before
20107 recording in var_seen.
20108
20109 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
20110
20111 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
20112 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
20113 call to tidy_fallthru_edges.
20114
20115 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20116
20117 * doc/options.texi (ToLower): Document.
20118 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
20119 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
20120 * opts.h (cl_option): Add cl_tolower field.
20121 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
20122 arguments with lowercase strings.
20123 * config/rx/rx.opt (mcpu=): Add ToLower.
20124 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
20125 argument.
20126
20127 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20128
20129 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
20130
20131 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20132
20133 * config/vax/vax.c: Include reload.h.
20134
20135 2011-04-04 Anatoly Sokolov <aesok@post.ru>
20136
20137 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
20138 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20139 (sparc_preferred_reload_class): New function.
20140
20141 2011-04-04 Jakub Jelinek <jakub@redhat.com>
20142
20143 PR debug/48401
20144 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20145 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
20146
20147 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
20148
20149 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
20150 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
20151
20152 2011-04-03 Anatoly Sokolov <aesok@post.ru>
20153
20154 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
20155 (ASM_OUTPUT_ALIGNED_BSS): Define.
20156
20157 2011-04-03 Michael Matz <matz@suse.de>
20158
20159 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
20160 and next_slot members.
20161 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
20162 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
20163 (lto_streamer_cache_append): Declare.
20164 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
20165 unsigned index, remove offset parameter, ensure that we append
20166 or update existing entries.
20167 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
20168 parameter, update next_slot for append.
20169 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
20170 parameter.
20171 (lto_streamer_cache_insert_at): Likewise.
20172 (lto_streamer_cache_append): New function.
20173 (lto_streamer_cache_lookup): Use unsigned index.
20174 (lto_streamer_cache_get): Likewise.
20175 (lto_record_common_node): Don't test tree_node_can_be_shared.
20176 (preload_common_node): Adjust call to lto_streamer_cache_insert.
20177 (lto_streamer_cache_delete): Don't free offsets member.
20178 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
20179 (lto_output_string_with_length): Use lto_output_data_stream.
20180 (lto_output_tree_header): Remove ix parameter, don't write it.
20181 (lto_output_builtin_tree): Likewise.
20182 (lto_write_tree): Adjust callers to above, don't track and write
20183 offset, write unsigned index.
20184 (output_unreferenced_globals): Don't emit all global vars.
20185 (write_global_references): Use unsigned indices.
20186 (lto_output_decl_state_refs): Likewise.
20187 (write_symbol): Likewise.
20188 * lto-streamer-in.c (lto_input_chain): Move earlier.
20189 (input_function): Use unsigned index.
20190 (input_alias_pairs): Don't read and then ignore all global vars.
20191 (lto_materialize_tree): Remove ix_p parameter, don't read index,
20192 don't pass it back, use lto_streamer_cache_append.
20193 (lto_register_var_decl_in_symtab): Use unsigned index.
20194 (lto_register_function_decl_in_symtab): Likewise.
20195 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
20196 index.
20197 (lto_get_builtin_tree): Don't read index, use
20198 lto_streamer_cache_append.
20199 (lto_read_tree): Adjust call to lto_materialize_tree.
20200
20201 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
20202 don't use function calls in arguments to MIN.
20203
20204 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
20205 twice.
20206
20207 * gimple.c (gimple_type_leader_entry): Mark deletable.
20208
20209 2011-04-03 Alan Modra <amodra@gmail.com>
20210
20211 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
20212
20213 2011-04-03 Michael Matz <matz@suse.de>
20214
20215 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
20216 an integer.
20217 * tree.h (tree_decl_non_common.vindex): Adjust comment.
20218
20219 2011-04-03 Michael Matz <matz@suse.de>
20220
20221 * cgraphbuild.c (record_reference): Canonicalize constructor values.
20222 * gimple-fold.c (canonicalize_constructor_val): Accept being called
20223 without function context.
20224 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20225 current_function_decl and cfun.
20226
20227 2011-04-03 Michael Matz <matz@suse.de>
20228
20229 * tree.c (decl_init_priority_insert): Don't create entry for
20230 default priority.
20231 (decl_fini_priority_insert): Ditto.
20232 (fields_compatible_p, find_compatible_field): Remove.
20233 * tree.h (fields_compatible_p, find_compatible_field): Remove.
20234 * gimple.c (gimple_compare_field_offset): Adjust block comment.
20235
20236 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
20237
20238 * combine.c (try_combine): Remove useless local variable.
20239
20240 2011-04-03 Richard Guenther <rguenther@suse.de>
20241 Ira Rosen <ira.rosen@linaro.org>
20242
20243 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20244 non-variable offsets and compare the remaining bases of the two
20245 accesses instead of looking for exact same data-ref.
20246
20247 2011-04-02 Kai Tietz <ktietz@redhat.com>
20248
20249 PR target/48416
20250 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20251
20252 * i386.c (ix86_is_msabi_thiscall): New helper function.
20253 (ix86_is_type_thiscall): New helper function.
20254 (ix86_comp_type_attributes): Handle thiscall for method-functions
20255 special.
20256 (init_cumulative_args): Likewise.
20257 (find_drap_reg): Likewise.
20258 (ix86_static_chain): Likewise.
20259 (x86_this_parameter): Likewise.
20260 (x86_output_mi_thunk): Likewise.
20261
20262 2011-04-01 Olivier Hainque <hainque@adacore.com>
20263 Nicolas Setton <setton@adacore.com>
20264 Eric Botcazou <ebotcazou@adacore.com>
20265
20266 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20267 (add_gnat_descriptive_type_attribute): New function.
20268 (gen_array_type_die): Call it.
20269 (gen_enumeration_type_die): Likewise.
20270 (gen_struct_or_union_type_die): Likewise.
20271 (modified_type_die): Likewise.
20272 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20273 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20274 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20275
20276 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20277
20278 PR bootstrap/48148
20279 * dwarf2out.c (resolve_addr): Don't call force_decl_die
20280 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20281
20282 Revert:
20283 2011-03-17 Richard Guenther <rguenther@suse.de>
20284
20285 PR bootstrap/48148
20286 * lto-cgraph.c (input_overwrite_node): Clear the abstract
20287 origin for decls in other ltrans units.
20288 (input_varpool_node): Likewise.
20289
20290 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20291
20292 PR middle-end/48335
20293 * expr.c (expand_assignment): Handle all possibilities
20294 if TO_RTX is CONCAT.
20295 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20296 (store_split_bit_field): If SUBREG_REG (op0) or
20297 op0 itself has smaller mode than word, return it
20298 for offset 0 and const0_rtx for out-of-bounds stores.
20299 If word is const0_rtx, skip it.
20300
20301 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
20302
20303 * config/h8300/h8300.c (print_operand_address): Rename to...
20304 (h8300_print_operand_address): ...this. Make static. Adjust comments.
20305 Call h8300_print_operand and h8300_print_operand_address instead of
20306 print_operand and print_operand_address. Declare.
20307 (print_operand): Renake to...
20308 (h8300_print_operand): ...this. Make static. Adjust comments.
20309 Call h8300_print_operand instead of print_operand. Declare.
20310 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
20311 (h8300_register_move_cost): Likewise.
20312 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
20313 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
20314 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
20315 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
20316 * config/h8300/h8300-protos.h (print_operand): Delete.
20317 (print_operand_address): Delete.
20318
20319 2011-04-01 Richard Henderson <rth@redhat.com>
20320
20321 PR 48400
20322 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
20323 in strict mode before dwarf4. Re-order tests to early out
20324 before switching sections.
20325
20326 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
20327
20328 * config/h8300/constraints.md: New file.
20329 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
20330 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
20331 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
20332 * config/h8300/predicates.md (bit_operand): Likewise.
20333 (incdec_operand): Use satisfies_constraint_M and
20334 satisfies_constraint_O. Don't use C code block.
20335 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
20336 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
20337 (compute_mov_length): Use satisfies_constraint_G.
20338 (fix_bit_operand): Use satisfies_constraint_U.
20339 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
20340 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
20341 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
20342 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
20343 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
20344 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
20345 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20346 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
20347 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
20348 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
20349 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
20350 (EXTRA_MEMORY_CONSTRAINT): Delete.
20351
20352 2011-04-01 Andrew Pinski <pinskia@gmail.com>
20353 Michael Meissner <meissner@linux.vnet.ibm.com>
20354
20355 PR target/48262
20356 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
20357 operands, as per the specifications.
20358
20359 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
20360 (vec_extract_evenv4sf): Ditto.
20361 (vec_extract_evenv8hi): Ditto.
20362 (vec_extract_evenv16qi): Ditto.
20363 (vec_extract_oddv4si): Ditto.
20364
20365 2011-03-31 Mark Wielaard <mjw@redhat.com>
20366
20367 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
20368 high_pc attribute if the CU has no associated code. Only output
20369 DW_AT_entry_pc for CU if not generating strict dwarf and
20370 dwarf_version < 4.
20371
20372 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
20373
20374 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
20375 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
20376 out of ...
20377 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
20378 * final.c (final_start_function): Call the new function rather
20379 than using a NULL argument for dwarf2out_frame_debug.
20380
20381 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
20382 that contains the prologue.
20383
20384 * haifa-sched.c (queue_insn): New arg REASON. All callers
20385 changed. Print it in debugging output.
20386
20387 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
20388
20389 * sched-ebb.c (begin_schedule_ready): Remove second argument.
20390 Split most of the code into...
20391 (begin_move_insn): ... here. New function.
20392 (ebb_sched_info): Add a pointer to it.
20393 * haifa-sched.c (scheduled_insns): New static variable.
20394 (sched_extend_ready_list): Allocate it.
20395 (schedule_block): Use it to record the order of scheduled insns.
20396 Perform RTL changes to move insns only after all scheduling
20397 decisions have been made.
20398 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
20399 begin_move_insn field.
20400 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
20401 * sched-int.h (struct haifa_sched_info): Remove second argument
20402 from begin_schedule_ready hook. Add new member begin_move_insn.
20403 * sched-rgn.c (begin_schedule_ready): Remove second argument.
20404 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
20405
20406 * haifa-sched.c (prune_ready_list): New function, broken out of
20407 schedule_block.
20408 (schedule_block): Use it.
20409
20410 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20411
20412 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
20413
20414 2011-04-01 Kai Tietz <ktietz@redhat.com>
20415
20416 * config.gcc (*-*-mingw*): Allow as option the
20417 posix threading model.
20418 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
20419 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20420 definition.
20421 (CPP_SPEC): Add pthread/no-pthread handling.
20422 (LIB_SPEC): Likewise.
20423 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
20424 (LIB_SPEC): Likewise.
20425 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
20426 flag to pass -pthread option for shared libgcc build.
20427 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
20428 for shared libgcc build.
20429 * config/i386/t-mingw-pthread: New file.
20430 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
20431 New define to enable use of library pthread by default.
20432 * config/i386/mingw.opt (pthread): New driver option.
20433 (no-pthread): New driver option.
20434 * config/i386/cygming.opt: Make sure trailing empty line is retained.
20435 * config/i386/mingw-w64.opt: Likewise.
20436
20437 2011-04-01 Gary Funck <gary@intrepid.com>
20438
20439 * c-decl.c (grokdeclarator): Fix formatting.
20440
20441 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20442
20443 * expr.c (emit_block_move_via_movmem): Use n_generator_args
20444 instead of n_operands.
20445 (set_storage_via_setmem): Likewise.
20446 * optabs.c (maybe_gen_insn): Likewise.
20447 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
20448 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
20449 (mips_expand_builtin_direct): Likewise.
20450 * config/spu/spu.c (expand_builtin_args): Likewise.
20451
20452 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20453
20454 * recog.h (insn_data_d): Add n_generator_args.
20455 * genoutput.c (data): Likewise.
20456 (output_insn_data): Print it.
20457 (max_opno, num_dups): Delete.
20458 (scan_operands): Just fill in "d->operand[...]".
20459 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
20460
20461 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20462
20463 * gensupport.h (pattern_stats): New structure.
20464 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
20465 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
20466 (max_operand_1, max_operand_vec): Delete.
20467 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
20468
20469 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
20470
20471 * emit-rtl.c (emit_pattern_after_setloc): New function.
20472 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
20473 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
20474 (emit_pattern_after): New function.
20475 (emit_insn_after, emit_jump_insn_after): Call it.
20476 (emit_call_insn_after, emit_debug_insn_after): Likewise.
20477 (emit_pattern_before_setloc): New function.
20478 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
20479 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
20480 Likewise.
20481 (emit_pattern_before): New function.
20482 (emit_insn_before, emit_jump_insn_before): Call it.
20483 (emit_call_insn_before, emit_debug_insn_before): Likewise.
20484
20485 2011-03-31 Richard Henderson <rth@redhat.com>
20486
20487 * dwarf2out.c (dw_separate_line_info_ref): Remove.
20488 (dw_separate_line_info_entry): Remove.
20489 (enum dw_line_info_opcode): New.
20490 (dw_line_info_entry): Use it.
20491 (dw_line_info_table, dw_line_info_table_p): New.
20492 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
20493 (line_info_table, line_info_label_num): Remove.
20494 (line_info_table_in_use): Remove.
20495 (separate_line_info_table): Remove.
20496 (separate_line_info_table_allocated): Remove.
20497 (separate_line_info_table_in_use): Remove.
20498 (LINE_INFO_TABLE_INCREMENT): Remove.
20499 (line_info_label_num): New.
20500 (cur_line_info_table): New.
20501 (text_section_line_info, cold_text_section_line_info): New.
20502 (separate_line_info): New.
20503 (SEPARATE_LINE_CODE_LABEL): Remove.
20504 (print_dwarf_line_table): Remove.
20505 (debug_dwarf): Don't dump it.
20506 (output_one_line_info_table): New.
20507 (output_line_info): Use it.
20508 (new_line_info_table): New.
20509 (set_cur_line_info_table): New.
20510 (dwarf2out_switch_text_section): Use it.
20511 (dwarf2out_begin_function): Likewise.
20512 (push_dw_line_info_entry): New.
20513 (dwarf2out_source_line): Rewrite for new line info tables.
20514 (dwarf2out_init): Remove dead initailizations.
20515
20516 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20517
20518 * opts.h (cl_option): Add comments to fields. Add bit-fields for
20519 various flags.
20520 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
20521 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
20522 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
20523 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
20524 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
20525 * opt-functions.awk (flag_init, switch_bit_fields): New.
20526 (switch_flags): Don't handle flags moved to bit-fields. Don't
20527 generate CL_MISSING_OK or CL_SAVE.
20528 * optc-gen.awk: Update to generate bit-field output as well as
20529 flags field.
20530 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20531 bit-field instead of CL_REJECT_DRIVER flag.
20532 * opts-common.c (generate_canonical_option,
20533 decode_cmdline_option): Use bit-fields instead of CL_* flags.
20534 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20535 instead of CL_REJECT_NEGATIVE flag.
20536 * toplev.c (print_switch_values): Use cl_report bit-field instead
20537 of CL_REPORT flag.
20538
20539 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20540
20541 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20542 a zero minimum index only if it is redundant.
20543
20544 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
20545
20546 PR rtl-optimization/48381
20547 * ira-color.c (assign_hard_reg): Use hard reg set intersection
20548 instead of ira_class_hard_reg_index for calculating conflicting
20549 hard registers.
20550
20551 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
20552
20553 * cprop.c: Clean up hash table building.
20554 (reg_avail_info): Remove.
20555 (oprs_available_p): Remove.
20556 (record_last_reg_set_info): Remove.
20557 (record_last_set_info): Remove.
20558 (reg_available_p): New function.
20559 (gcse_constant_p): Do not treat unfolded conditions as constants.
20560 (make_set_regs_unavailable): New function.
20561 (hash_scan_set): Simplify with new reg_available_p.
20562 (compute_hash_table_work): Traverse insns stream only once.
20563 Do not compute reg_avail_info. Traverse insns in reverse order.
20564 Record implicit sets after recording explicit sets from the block.
20565
20566 2011-03-31 Michael Matz <matz@suse.de>
20567
20568 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20569
20570 2011-03-31 Anatoly Sokolov <aesok@post.ru>
20571
20572 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20573 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20574 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20575 (h8300_mode_dependent_address_p): New function.
20576 (h8300_get_index): Make static.
20577
20578 2011-03-31 Jeff Law <law@redhat.com>
20579
20580 * reload1.c (elimination_effects): Fix typo in recent change.
20581
20582 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20583 typo potentially leading to null pointer dereference.
20584
20585 * caller-save.c (new_saved_hard_reg): Eliminate return value.
20586 (setup_save_areas): Corresponding changes to avoid useless
20587 assignments.
20588
20589 * jump.c (reversed_comparison_code_parts): Avoid successive return
20590 statements when REVERSE_CONDITION is defined.
20591
20592 * expr.c (expand_assignment): Avoid useless assignments.
20593 (expand_expr_real_1): Likewise.
20594 (expand_expr_real_2): Avoid useless statements.
20595
20596 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20597
20598 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20599
20600 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20601 statements.
20602
20603 * stmt.c (expand_expr_stmt): Avoid useless assignment.
20604
20605 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20606
20607 PR target/47109
20608 * doc/tm.texi.in (TARGET_VERSION): Remove.
20609 * doc/tm.texi: Regenerate.
20610 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20611 * collect2.c (main): Don't use TARGET_VERSION.
20612 * mips-tdump.c (main): Don't use TARGET_VERSION.
20613 * mips-tfile.c (main): Don't use TARGET_VERSION.
20614 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20615 * config/rs6000/vxworksae.h: Remove.
20616 * config/alpha/alpha.h (TARGET_VERSION): Remove.
20617 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20618 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20619 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20620 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20621 * config/arm/arm.h (TARGET_VERSION): Remove.
20622 * config/arm/coff.h (TARGET_VERSION): Remove.
20623 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20624 * config/arm/elf.h (TARGET_VERSION): Remove.
20625 * config/arm/freebsd.h (TARGET_VERSION): Remove.
20626 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20627 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20628 * config/arm/pe.h (TARGET_VERSION): Remove.
20629 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20630 * config/arm/semi.h (TARGET_VERSION): Remove.
20631 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20632 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20633 * config/arm/vxworks.h (TARGET_VERSION): Remove.
20634 * config/avr/avr.h (TARGET_VERSION): Remove.
20635 * config/bfin/bfin.h (TARGET_VERSION): Remove.
20636 * config/fr30/fr30.h (TARGET_VERSION): Remove.
20637 * config/frv/frv.h (TARGET_VERSION): Remove.
20638 * config/h8300/h8300.h (TARGET_VERSION): Remove.
20639 * config/i386/cygwin.h (TARGET_VERSION): Remove.
20640 * config/i386/darwin.h (TARGET_VERSION): Remove.
20641 * config/i386/darwin64.h (TARGET_VERSION): Remove.
20642 * config/i386/djgpp.h (TARGET_VERSION): Remove.
20643 * config/i386/freebsd.h (TARGET_VERSION): Remove.
20644 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20645 * config/i386/gnu.h (TARGET_VERSION): Remove.
20646 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20647 * config/i386/i386elf.h (TARGET_VERSION): Remove.
20648 * config/i386/linux.h (TARGET_VERSION): Remove.
20649 * config/i386/linux64.h (TARGET_VERSION): Remove.
20650 * config/i386/lynx.h (TARGET_VERSION): Remove.
20651 * config/i386/mingw32.h (TARGET_VERSION): Remove.
20652 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20653 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20654 * config/i386/netware.h (TARGET_VERSION): Remove.
20655 * config/i386/nto.h (TARGET_VERSION): Remove.
20656 * config/i386/openbsd.h (TARGET_VERSION): Remove.
20657 * config/i386/vxworks.h (TARGET_VERSION): Remove.
20658 * config/ia64/elf.h (TARGET_VERSION): Remove.
20659 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20660 * config/ia64/hpux.h (TARGET_VERSION): Remove.
20661 * config/ia64/linux.h (TARGET_VERSION): Remove.
20662 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20663 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20664 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20665 * config/lm32/lm32.h (TARGET_VERSION): Remove.
20666 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20667 * config/m32c/m32c.h (TARGET_VERSION): Remove.
20668 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20669 * config/m32r/m32r.h (TARGET_VERSION): Remove.
20670 * config/m68k/linux.h (TARGET_VERSION): Remove.
20671 * config/m68k/m68k.h (TARGET_VERSION): Remove.
20672 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20673 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20674 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20675 * config/mep/mep.h (TARGET_VERSION): Remove.
20676 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20677 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20678 * config/mips/iris6.h (MACHINE_TYPE): Remove.
20679 * config/mips/linux.h (TARGET_VERSION): Remove.
20680 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20681 * config/mips/vxworks.h (TARGET_VERSION): Remove.
20682 * config/mmix/mmix.h (TARGET_VERSION): Remove.
20683 * config/mn10300/linux.h (TARGET_VERSION): Remove.
20684 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20685 * config/pa/pa.h (TARGET_VERSION): Remove.
20686 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20687 * config/picochip/picochip.h (TARGET_VERSION): Remove.
20688 * config/rs6000/aix.h (TARGET_VERSION): Remove.
20689 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20690 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20691 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20692 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20693 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20694 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20695 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20696 * config/rs6000/linux.h (TARGET_VERSION): Remove.
20697 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20698 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20699 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20700 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20701 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20702 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20703 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20704 * config/s390/linux.h (TARGET_VERSION): Remove.
20705 * config/s390/s390.h (TARGET_VERSION): Remove.
20706 * config/s390/tpf.h (TARGET_VERSION): Remove.
20707 * config/score/score.h (TARGET_VERSION): Remove.
20708 * config/sh/linux.h (TARGET_VERSION): Remove.
20709 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20710 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20711 * config/sh/sh.h (TARGET_VERSION): Remove.
20712 * config/sh/sh64.h (TARGET_VERSION): Remove.
20713 * config/sh/superh.h (TARGET_VERSION): Remove.
20714 * config/sh/vxworks.h (TARGET_VERSION): Remove.
20715 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20716 * config/sparc/linux.h (TARGET_VERSION): Remove.
20717 * config/sparc/linux64.h (TARGET_VERSION): Remove.
20718 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20719 TARGET_NAME32, TARGET_NAME): Remove.
20720 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20721 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20722 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20723 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20724 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20725 * config/spu/spu.h (TARGET_VERSION): Remove.
20726 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20727 * config/v850/v850.h (TARGET_VERSION): Remove.
20728 * config/vax/linux.h (TARGET_VERSION): Remove.
20729 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20730 * config/xtensa/elf.h (TARGET_VERSION): Remove.
20731 * config/xtensa/linux.h (TARGET_VERSION): Remove.
20732
20733 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20734
20735 PR target/48142
20736 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20737 frame-related from frame-unrelated adjustments to the stack pointer.
20738
20739 2011-03-31 Jakub Jelinek <jakub@redhat.com>
20740
20741 * common.opt (fdebug-types-section): Move earlier.
20742 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20743
20744 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
20745
20746 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20747 var.
20748
20749 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
20750
20751 * tree.h (CASE_CHAIN): Define.
20752 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
20753 (gimple_redirect_edge_and_branch): Likewise.
20754
20755 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
20756
20757 PR middle-end/48367
20758 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
20759 calculation.
20760
20761 2011-03-30 Jeff Law <law@redhat.com>
20762
20763 * PR bootstrap/48371
20764 * reload1.c (reload): Fix botch in last change.
20765
20766 * reload.h (struct reload): Fix typo introduced in last change.
20767
20768 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20769
20770 * config/arm/arm.opt (mhard-float, msoft-float): Mark
20771 Undocumented. Remove help text.
20772 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
20773 -mhard-float.
20774
20775 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20776
20777 * doc/options.texi (NegativeAlias): Document.
20778 (Alias): Mention NegativeAlias.
20779 * opt-functions.awk: Handle NegativeAlias.
20780 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
20781 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
20782 * opts.h (CL_NEGATIVE_ALIAS): Define.
20783 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
20784 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
20785 OPT_mspe_.
20786 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
20787 Alias entries.
20788 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20789 mno-spe and mno-isel instead of mspe=no and -misel=no.
20790
20791 2011-03-29 Mark Wielaard <mjw@redhat.com>
20792
20793 * common.opt (fdebug-types-section): New flag.
20794 * doc/invoke.texi: Document new -fno-debug-types-section flag.
20795 * dwarf2out.c (use_debug_types): New define.
20796 (struct die_struct): Mark die_id with GTY desc use_debug_types.
20797 (print_die): Guard output of type unit signatures using
20798 use_debug_types.
20799 (build_abbrev_table): Replace assert of dwarf_version >= 4
20800 with assert on use_debug_types.
20801 (size_of_die): Likewise.
20802 (unmark_dies): Likewise.
20803 (value_format): Decide AT_ref_external form on use_debug_types.
20804 (output_die): Replace dwarf_version version check guard with
20805 use_debug_types where appropriate.
20806 (modified_type_die): Likewise.
20807 (gen_reference_type_die): Likewise.
20808 (dwarf2out_start_source_file): Likewise.
20809 (dwarf2out_end_source_file): Likewise.
20810 (prune_unused_types_walk_attribs): Likewise.
20811 (dwarf2out_finish): Likewise.
20812
20813 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
20814
20815 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
20816
20817 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20818
20819 PR rtl-optimization/48332
20820 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20821 mode of input operand N and modeN to its actual mode.
20822
20823 2011-03-30 Jeff Law <law@redhat.com>
20824
20825 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20826 define accessor macro.
20827 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20828 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20829 (reg_equiv_init): Likewise.
20830 (reg_equivs_size): New variable.
20831 (reg_equiv_init_size): Remove.
20832 (allocate_initial_values): Move prototype to here from....
20833 * integrate.h (allocate_initial_values): Remove prototype.
20834 * integrate.c: Include reload.h.
20835 (allocate_initial_values): Corresponding changes.
20836 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20837 (fix_reg_equiv_init, no_equiv): Corresponding changes.
20838 (update_equiv_regs): Corresponding changes.
20839 (ira): Corresponding changes.
20840 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20841 (push_secondary_reload): Corresponding changes.
20842 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20843 (make_memloc, find_reloads_address): Corresponding changes.
20844 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20845 (find_reloads_address_1): Corresponding changes.
20846 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20847 (refers_to_regno_for_reload_p): Corresponding changes.
20848 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20849 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20850 * reload1.c: Include ggc.h.
20851 (grow_reg_equivs): New function.
20852 (replace_pseudos_in, reload): Corresponding changes.
20853 (calculate_needs_all_insns, alter_regs): Corresponding changes.
20854 (eliminate_regs_1, elimination_effects): Corresponding changes.
20855 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20856 (delete_output_reload): Likewise.
20857 * caller-save.c (mark_referenced_regs): Corresponding changes.
20858 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20859 * frv/predicates.md (frv_load_operand): Corresponding changes.
20860 * microblaze/microblaze.c (double_memory_operand): Corresponding
20861 changes.
20862 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20863 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20864 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20865 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20866 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20867 changes.
20868 * pa/pa.c (emit_move_sequence): Corresponding changes.
20869 * vax/vax.c (nonindexed_address_p): Corresponding changes.
20870
20871 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20872
20873 PR target/47551
20874 * config/arm/arm.c (coproc_secondary_reload_class): Handle
20875 structure modes. Don't check neon_vector_mem_operand for
20876 vector or structure modes.
20877
20878 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20879 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20880
20881 PR target/43590
20882 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20883 operand 1 and reshuffle the operands to match.
20884 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20885
20886 2011-03-30 Christian Schüler <cschueler@gmx.de>
20887
20888 PR driver/48208
20889 * config/c.opt (F): Added 'Driver' to -F option.
20890
20891 PR driver/48260
20892 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20893 handler function.
20894 * config/darwin.opt: Added '-arch' option.
20895
20896 2011-03-30 Nick Clifton <nickc@redhat.com>
20897
20898 * config/rx/rx.md: Add peepholes and patterns to combine
20899 extending loads and simple arithmetic instructions.
20900 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20901 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20902 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20903 modes to use pre-decrement and post-increment addressing.
20904 (rx_is_restricted_memory_address): Add range checking of REG+INT
20905 addresses.
20906 (rx_print_operand): Add support for %Q. Fix handling of %Q.
20907 (rx_memory_move_cost): Adjust cost of stores.
20908 (rx_adjust_insn_length): New function.
20909
20910 2011-03-30 Jakub Jelinek <jakub@redhat.com>
20911
20912 PR c/48305
20913 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20914 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
20915 matching arg00/arg01 types.
20916
20917 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
20918
20919 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
20920 last_location to UNKNOWN_LOCATION.
20921
20922 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
20923
20924 PR target/48349
20925 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
20926 FLOAT_SSE_REGS.
20927
20928 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20929 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20930
20931 PR bootstrap/48337
20932 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
20933 Init(PROCESSOR_V7).
20934 (sparc_cpu): Likewise.
20935 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
20936 PROCESSOR_V7.
20937
20938 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20939
20940 PR target/48336
20941 PR middle-end/48342
20942 PR rtl-optimization/48345
20943 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
20944 hard regs for given mode from profitable regs when doing secondary
20945 allocation.
20946
20947 2011-03-29 Jeff Law <law@redhat.com>
20948
20949 PR bootstrap/48327
20950 * tree-ssa-threadupdate.c (struct redirection_data): Remove
20951 do_not_duplicate field.
20952 (lookup_redirection_data): Corresponding changes.
20953 (create_duplicates): Always create a template block.
20954 (redirect_edges): Remove code which reused the original block
20955 when it was going to become unreachable code.
20956 (thread_block): Don't set do_not_duplicate field.
20957
20958 2011-03-29 Joseph Myers <joseph@codesourcery.com>
20959
20960 * lto-opts.c (register_user_option_p, lto_register_user_option):
20961 Make type argument unsigned.
20962 * lto-streamer.h (lto_register_user_option): Make type argument
20963 unsigned.
20964 * opth-gen.awk: Make CL_* macros unsigned.
20965 * opts-common.c (find_opt): Make lang_mask argument unsigned.
20966 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
20967 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
20968 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
20969 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
20970 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
20971 (find_opt): Make lang_mask argument unsigned.
20972
20973 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20974
20975 PR rtl-optimization/48331
20976 PR rtl-optimization/48334
20977 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
20978 for any used algorithm.
20979
20980 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
20981
20982 * ira-conflicts.c (build_object_conflicts): Add unused attribute
20983 to parent_max.
20984
20985 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
20986
20987 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
20988 (alpha_option_override): Don't set alpha_sr_alias_set.
20989 (emit_frame_store_1): Use gen_frame_mem rather than calling
20990 set_mem_alias_set.
20991 (alpha_expand_epilogue): Ditto.
20992
20993 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
20994
20995 PR tree-optimization/48290
20996 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
20997 vectorization, check that relevant phis in the basic block after
20998 the inner loop are really inner loop's exit phis.
20999
21000 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
21001
21002 PR debug/48190
21003 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
21004 (cached_dw_loc_list_def): New structure.
21005 (cached_dw_loc_list): New typedef.
21006 (cached_dw_loc_list_table): New variable.
21007 (cached_dw_loc_list_table_hash): New function.
21008 (cached_dw_loc_list_table_eq): Likewise.
21009 (add_location_or_const_value_attribute): Take a bool cache_p.
21010 Cache the list when the parameter is true.
21011 (gen_formal_parameter_die): Update caller.
21012 (gen_variable_die): Likewise.
21013 (dwarf2out_finish): Likewise.
21014 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
21015 while generating debug info for the decl.
21016 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
21017 (dwarf2out_init): Initialize cached_dw_loc_list_table.
21018 (resolve_addr): Cache the result of resolving a chain of
21019 location lists.
21020
21021 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
21022
21023 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
21024 conflict object hard regset nodes have intersecting hard reg sets.
21025
21026 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
21027 after regstat_init_n_sets_and_refs.
21028
21029 * ira.c: Add more comments at the top.
21030 (setup_stack_reg_pressure_class, setup_pressure_classes):
21031 Add comments how we compute the register pressure classes.
21032 (setup_allocno_and_important_classes): Add more comments.
21033 (setup_class_translate_array, reorder_important_classes)
21034 (setup_reg_class_relations): Add comments.
21035
21036 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
21037 start of the file.
21038
21039 * ira-color.c: Add 2011 to the Copyright line.
21040 (assign_hard_reg): Add more comments.
21041 (improve_allocation): Ditto.
21042
21043 * ira-costs.c: Add 2011 to the Copyright line.
21044 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
21045 comments.
21046 (setup_regno_cost_classes_by_mode): Ditto.
21047
21048 Initial patches from ira-improv branch:
21049
21050 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21051
21052 * ira-build.c (ira_create_object): Remove initialization of
21053 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
21054 (ira_create_allocno): Remove initialization of
21055 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
21056 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
21057 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21058 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
21059 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
21060 Initialize ALLOCNO_ADD_DATA.
21061 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
21062 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
21063 ALLOCNO_REG.
21064 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
21065 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
21066
21067 * ira.c (ira_reallocate): Remove.
21068 (setup_pressure_classes): Call
21069 ira_init_register_move_cost_if_necessary. Use
21070 ira_register_move_cost instead of ira_get_register_move_cost.
21071 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
21072 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
21073
21074 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
21075 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21076 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
21077 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
21078 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
21079 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
21080 Fix formatting.
21081 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
21082 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21083 (struct allocno_color_data): New.
21084 (allocno_color_data_t): New typedef.
21085 (allocno_color_data): New definition.
21086 (ALLOCNO_COLOR_DATA): New macro.
21087 (struct object_color_data): New.
21088 (object_color_data_t): New typedef.
21089 (object_color_data): New definition.
21090 (OBJECT_COLOR_DATA): New macro.
21091 (update_copy_costs, calculate_allocno_spill_cost): Call
21092 ira_init_register_move_cost_if_necessary. Use
21093 ira_register_move_cost instead of ira_get_register_move_cost.
21094 (move_spill_restore, update_curr_costs): Ditto.
21095 (allocno_spill_priority): Make it inline.
21096 (color_pass): Allocate and free allocno_color_dat and object_color_data.
21097 (struct coalesce_data, coalesce_data_t): New.
21098 (allocno_coalesce_data): New definition.
21099 (ALLOCNO_COALESCE_DATA): New macro.
21100 (merge_allocnos, coalesced_allocno_conflict_p): Use
21101 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
21102 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
21103 (coalesce_allocnos): Ditto.
21104 (setup_coalesced_allocno_costs_and_nums): Ditto.
21105 (collect_spilled_coalesced_allocnos): Ditto.
21106 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
21107 (setup_slot_coalesced_allocno_live_ranges): Ditto.
21108 (coalesce_spill_slots): Ditto.
21109 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
21110 free allocno_coalesce_data.
21111
21112 * ira-conflicts.c: Fix formatting.
21113 (process_regs_for_copy): Call
21114 ira_init_register_move_cost_if_necessary. Use
21115 ira_register_move_cost instead of ira_get_register_move_cost.
21116 (build_object_conflicts): Optimize.
21117
21118 * ira-costs.c (record_reg_classes): Optimize. Call
21119 ira_init_register_move_cost_if_necessary. Use
21120 ira_register_move_cost, ira_may_move_in_cost, and
21121 ira_may_move_out_cost instead of ira_get_register_move_cost and
21122 ira_get_may_move_cost.
21123 (record_address_regs): Ditto.
21124 (scan_one_insn): Optimize.
21125 (find_costs_and_classes): Optimize.
21126 (process_bb_node_for_hard_reg_moves): Call
21127 ira_init_register_move_cost_if_necessary. Use
21128 ira_register_move_cost instead of ira_get_register_move_cost.
21129
21130 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
21131 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
21132 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
21133 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
21134 definitions.
21135 (ira_initiate_emit_data, ira_finish_emit_data)
21136 (create_new_allocno): New functions.
21137 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
21138 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
21139 Use ira_register_move_cost instead of ira_get_register_move_cost.
21140
21141 * ira-int.h: Fix some comments.
21142 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
21143 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21144 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
21145 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
21146 add_data.
21147 (struct ira_allocno): Make mode and aclass a bitfield. Move other
21148 bitfield after mode. Make hard_regno a short int. Make
21149 hard_regno short. Remove first_coalesced_allocno and
21150 next_coalesced_allocno. Move mem_optimized_dest_p,
21151 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
21152 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
21153 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
21154 temp, colorable_p. Add new member add_data.
21155 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
21156 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
21157 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
21158 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
21159 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
21160 (ALLOCNO_ADD_DATA): New macro.
21161 (ira_emit_data_t): New typedef.
21162 (struct ira_emit_data): New. Move mem_optimized_dest_p,
21163 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
21164 from struct ira_allocno.
21165 (ALLOCNO_EMIT_DATA): New macro.
21166 (ira_allocno_emit_data, allocno_emit_reg): New.
21167 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
21168 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
21169 (OBJECT_ADD_DATA): New macro.
21170 (ira_reallocate): Remove.
21171 (ira_initiate_emit_data, ira_finish_emit_data): New.
21172 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
21173 (ira_init_register_move_cost_if_necessary): New.
21174 (ira_object_conflict_iter_next): Merge into
21175 ira_object_conflict_iter_cond.
21176 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
21177
21178 * ira-live.c (process_single_reg_class_operands): Call
21179 ira_init_register_move_cost_if_necessary. Use
21180 ira_register_move_cost instead of ira_get_register_move_cost.
21181
21182 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21183
21184 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
21185
21186 * ira-costs.c: Fix formatting.
21187 (cost_classes, cost_classes_num): Remove.
21188 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
21189 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
21190 (cost_classes_del, cost_classes_htab): New.
21191 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
21192 (initiate_regno_cost_classes, setup_cost_classes): New.
21193 (setup_regno_cost_classes_by_aclass): New.
21194 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
21195 (record_reg_classes): Use regno_cost_classes instead of
21196 cost_classes. Move checking opposite operand up.
21197 (record_address_regs): Use regno_cost_classes
21198 instead of cost_classes.
21199 (scan_one_insn): Ditto. Use always general register.
21200 (print_allocno_costs): Use regno_cost_classes instead of
21201 cost_classes.
21202 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
21203 (find_costs_and_classes): Set up cost classes for each registers.
21204 Use also their mode for this. Use regno_cost_classes instead of
21205 cost_classes.
21206 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
21207 cost_classes.
21208 (free_ira_costs, ira_init_costs): Don't use cost_classes.
21209 (ira_costs, ira_set_pseudo_classes): Call
21210 initiate_regno_cost_classes and finish_regno_cost_classes.
21211
21212 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
21213
21214 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
21215
21216 * target.def (ira_cover_classes): Remove.
21217
21218 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
21219
21220 * doc/tm.texi.in: Ditto.
21221
21222 * ira-conflicts.c: Remove mentioning cover classes from the file.
21223 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
21224 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
21225
21226 * targhooks.c (default_ira_cover_classes): Remove.
21227
21228 * targhooks.h (default_ira_cover_classes): Ditto.
21229
21230 * haifa-sched.c: Remove mentioning cover classes from the file.
21231 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21232 ira_pressure_classes and ira_pressure_classes_num instead of
21233 ira_reg_class_cover_size and ira_reg_class_cover. Use
21234 sched_regno_pressure_class instead of sched_regno_cover_class.
21235 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21236 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21237
21238 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
21239 classes from the file.
21240 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21241 (struct object_hard_regs, struct object_hard_regs_node): New.
21242 (struct ira_object): New members profitable_hard_regs,
21243 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21244 (struct ira_allocno): Rename cover_class to aclass. Rename
21245 cover_class_cost and updated_cover_class_cost to class_cost and
21246 updated_class_cost. Remove splay_removed_p and
21247 left_conflict_size. Add new members colorable_p.
21248 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21249 (ALLOCNO_COLORABLE_P): New macro.
21250 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21251 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21252 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21253 (OBJECT_...): Rename parameter C to O.
21254 (OBJECT_PROFITABLE_HARD_REGS): New macro.
21255 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21256 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21257 (struct target_ira_int): New members x_ira_max_memory_move_cost,
21258 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21259 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21260 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21261 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
21262 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
21263 x_ira_reg_class_subunion.
21264 (ira_max_memory_move_cost, ira_max_register_move_cost)
21265 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21266 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21267 (ira_important_class_nums, ira_reg_class_superunion): New macros.
21268 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21269 (ira_reg_class_union): Rename to ira_reg_class_subunion.
21270 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21271 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21272 (ira_tune_allocno_costs_and_cover_classes): Rename to
21273 ira_tune_allocno_costs.
21274 (ira_debug_hard_regs_forest): New.
21275 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21276 (ira_object_conflict_iter_next): Fix comments.
21277 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21278 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21279 cover_class to aclass.
21280 (ira_allocate_and_accumulate_costs): Ditto.
21281 (ira_allocate_and_set_or_copy_costs): Ditto.
21282
21283 * opts.c (decode_options): Remove ira_cover_class check.
21284
21285 * ira-color.c: Remove mentioning cover classes from the file. Use
21286 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21287 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21288 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21289 (splay-tree.h): Remove include.
21290 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21291 before copy_freq_compare_func.
21292 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21293 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21294 New definitions.
21295 (hard_regs_roots, hard_regs_node_vec): Ditto.
21296 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21297 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21298 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21299 (create_new_object_hard_regs_node): Ditto.
21300 (add_new_object_hard_regs_node_to_forest): Ditto.
21301 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21302 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
21303 Ditto.
21304 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
21305 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
21306 (remove_unused_object_hard_regs_nodes): Ditto.
21307 (enumerate_object_hard_regs_nodes): Ditto.
21308 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
21309 (object_hard_regs_subnode_t): Ditto.
21310 (struct object_hard_regs_subnode): Ditto.
21311 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
21312 (setup_object_hard_regs_subnode_index): Ditto.
21313 (get_object_hard_regs_subnodes_num): Ditto.
21314 (form_object_hard_regs_nodes_forest): Ditto.
21315 (finish_object_hard_regs_nodes_tree): Ditto.
21316 (finish_object_hard_regs_nodes_forest): Ditto.
21317 (allocnos_have_intersected_live_ranges_p): Rename to
21318 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21319 (pseudos_have_intersected_live_ranges_p): Rename to
21320 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21321 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
21322 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
21323 (update_copy_costs): Remove assert. Skip cost update if the hard
21324 reg does not belong the class.
21325 (assign_hard_reg): Process only profitable hard regs.
21326 (uncolorable_allocnos_num): Make it scalar.
21327 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
21328 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
21329 and ira_reg_class_max_nregs.
21330 (bucket_allocno_compare_func): Check frequency first.
21331 (sort_bucket): Add compare function as a parameter.
21332 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
21333 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
21334 (push_allocno_to_stack): Rewrite for checking new allocno
21335 colorability.
21336 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
21337 (push_only_colorable): Pass new parameter to sort_bucket.
21338 (push_allocno_to_spill): Remove.
21339 (allocno_spill_priority_compare): Make it inline and rewrite.
21340 (splay_tree_allocate, splay_tree_free): Remove.
21341 (allocno_spill_sort_compare): New function.
21342 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
21343 build and use splay tree. Choose first allocno in uncolorable
21344 allocno bucket to spill. Remove setting spill cost.
21345 (all_conflicting_hard_regs): Remove.
21346 (setup_allocno_available_regs_num): Check only profitable hard
21347 regs. Print info about hard regs nodes.
21348 (setup_allocno_left_conflicts_size): Remove.
21349 (put_allocno_into_bucket): Don't call
21350 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
21351 (improve_allocation): New.
21352 (color_allocnos): Call setup_profitable_hard_regs,
21353 form_object_hard_regs_nodes_forest, improve_allocation,
21354 finish_object_hard_regs_nodes_forest. Setup spill cost.
21355 (print_loop_title): Use pressure classes.
21356 (color_allocnso): Ditto.
21357 (do_coloring): Remove allocation and freeing splay_tree_node_pool
21358 and allocnos_for_spilling.
21359 (ira_sort_regnos_for_alter_reg): Don't setup members
21360 {first,next}_coalesced_allocno.
21361 (color): Remove allocating and freeing removed_splay_allocno_vec.
21362 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
21363 prohibited_class_mode_regs.
21364
21365 * ira-lives.c: Remove mentioning cover classes from the file. Fix
21366 formatting.
21367 (update_allocno_pressure_excess_length): Use pressure classes.
21368 (inc_register_pressure, dec_register_pressure): Check for pressure
21369 class.
21370 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
21371 pressure class. Use ira_reg_class_nregs instead of
21372 ira_reg_class_max_nregs.
21373 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
21374 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
21375 (single_reg_class): Use ira_reg_class_nregs instead of
21376 ira_reg_class_max_nregs.
21377 (process_bb_node_lives): Use pressure classes.
21378
21379 * ira-emit.c: Remove mentioning cover classes from the file. Use
21380 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
21381 (change_loop): Use pressure classes.
21382 (modify_move_list): Call ira_set_allocno_class instead of
21383 ira_set_allocno_cover_class.
21384
21385 * ira-build.c: Remove mentioning cover classes from the file. Use
21386 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
21387 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
21388 ALLOCNO_UPDATED_CLASS_COST instead of
21389 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21390 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
21391 (ira_create_allocno): Remove initialization of
21392 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
21393 ALLOCNO_COLORABLE_P.
21394 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21395 Update conflict regs for the objects.
21396 (create_cap_allocno): Remove assert. Don't propagate
21397 ALLOCNO_AVAILABLE_REGS_NUM.
21398 (ira_free_allocno_costs): New function.
21399 (finish_allocno): Change a part of code into call of
21400 ira_free_allocno_costs.
21401 (low_pressure_loop_node_p): Use pressure classes.
21402 (object_range_compare_func): Don't compare classes.
21403 (setup_min_max_conflict_allocno_ids): Ditto.
21404
21405 * loop-invariant.c: Remove mentioning cover classes from the file.
21406 Use ira_pressure_classes and ira_pressure_classes_num instead of
21407 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
21408 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
21409 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21410 Use reg_allocno_class instead of reg_cover_class.
21411 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
21412 STACK_REG_COVER_CLASS.
21413 (get_regno_cover_class): Rename to get_regno_pressure_class.
21414 (move_loop_invariants): Initialize and finalize regstat.
21415
21416 * ira.c: Remove mentioning cover classes from the file. Add
21417 comments about coloring without cover classes. Use ALLOCNO_CLASS
21418 instead of ALLOCNO_COVER_CLASS. Fix formatting.
21419 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
21420 setup_class_subset_and_memory_move_costs.
21421 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
21422 (setup_cover_and_important_classes): Rename to
21423 setup_allocno_and_important_classes.
21424 (setup_class_translate_array): New.
21425 (setup_class_translate): Call it for allocno and pressure classes.
21426 (cover_class_order): Rename to allocno_class_order.
21427 (comp_reg_classes_func): Use ira_allocno_class_translate instead
21428 of ira_class_translate.
21429 (reorder_important_classes): Set up ira_important_class_nums.
21430 (setup_reg_class_relations): Set up ira_reg_class_superunion.
21431 (print_class_cover): Rename to print_classes. Add parameter.
21432 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21433 Print pressure classes too.
21434 (find_reg_class_closure): Rename to find_reg_classes. Don't call
21435 setup_reg_subclasses.
21436 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21437 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21438 (setup_prohibited_class_mode_regs): Use
21439 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
21440 (clarify_prohibited_class_mode_regs): New function.
21441 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
21442 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
21443 (ira_init_once): Initialize them.
21444 (free_register_move_costs): Process them.
21445 (ira_init): Move calls of find_reg_classes and
21446 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
21447 Call clarify_prohibited_class_mode_regs.
21448 (ira_no_alloc_reg): Remove.
21449 (too_high_register_pressure_p): Use pressure classes.
21450
21451 * sched-deps.c: Remove mentioning cover classes from the file.
21452 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21453 ira_pressure_classes and ira_pressure_classes_num instead of
21454 ira_reg_class_cover_size and ira_reg_class_cover.
21455 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
21456 sched_regno_pressure_class instead of sched_regno_cover_class.
21457 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
21458 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21459
21460 * ira.h: Add 2010 to Copyright.
21461 (ira_no_alloc_reg): Remove external.
21462 (struct target_ira): Rename x_ira_hard_regno_cover_class,
21463 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
21464 x_ira_class_translate to x_ira_hard_regno_allocno_class,
21465 x_ira_allocno_classes_num, x_ira_allocno_classes, and
21466 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
21467 x_ira_pressure_classes, x_ira_pressure_class_translate, and
21468 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
21469 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
21470 x_ira_no_alloc_regs.
21471 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21472 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
21473 ira_allocno_classes_num and ira_allocno_classes.
21474 (ira_class_translate): Rename to ira_allocno_class_translate.
21475 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
21476 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
21477 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21478 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
21479 (ira_no_alloc_regs): New.
21480
21481 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
21482 classes from the file. Use ALLOCNO_CLASS instead of
21483 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
21484 ALLOCNO_COVER_CLASS_COST.
21485 (regno_cover_class): Rename to regno_aclass.
21486 (record_reg_classes): Use ira_reg_class_subunion instead of
21487 ira_reg_class_union.
21488 (record_address_regs): Check overflow.
21489 (scan_one_insn): Ditto.
21490 (print_allocno_costs): Print total mem cost fore regional allocation.
21491 (print_pseudo_costs): Use REG_N_REFS.
21492 (find_costs_and_classes): Use classes intersected with them on the
21493 1st pass. Check overflow. Use ira_reg_class_subunion instead of
21494 ira_reg_class_union. Use ira_allocno_class_translate and
21495 regno_aclass instead of ira_class_translate and regno_cover_class.
21496 Modify code for finding regno_aclass. Setup preferred classes for
21497 the next pass.
21498 (setup_allocno_cover_class_and_costs): Rename to
21499 setup_allocno_class_and_costs. Use regno_aclass instead of
21500 regno_cover_class. Use ira_set_allocno_class instead of
21501 ira_set_allocno_cover_class.
21502 (init_costs, finish_costs): Use regno_aclass instead of
21503 regno_cover_class.
21504 (ira_costs): Use setup_allocno_class_and_costs instead of
21505 setup_allocno_cover_class_and_costs.
21506 (ira_tune_allocno_costs_and_cover_classes): Rename to
21507 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
21508 by processing objects. Use ira_reg_class_max_nregs instead of
21509 ira_reg_class_nregs.
21510
21511 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
21512
21513 * sched-int.h: Remove mentioning cover classes from the file.
21514 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
21515
21516 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
21517 classes from the file.
21518 (struct reg_pref): Rename coverclass into allocnoclass.
21519 (reg_cover_class): Rename to reg_allocno_class.
21520
21521 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
21522
21523 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
21524
21525 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
21526
21527 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
21528
21529 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
21530
21531 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21532
21533 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21534
21535 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21536
21537 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21538
21539 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21540
21541 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21542 (i386_ira_cover_classes): Ditto.
21543
21544 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21545
21546 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21547
21548 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21549
21550 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21551
21552 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21553
21554 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21555
21556 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21557 (mips_ira_cover_classes): Ditto.
21558
21559 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21560
21561 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21562
21563 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21564
21565 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21566
21567 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21568
21569 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21570 (IRA_COVER_CLASSES_VSX): Ditto.
21571
21572 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21573 (rs6000_ira_cover_classes): Ditto.
21574
21575 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21576
21577 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21578
21579 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21580
21581 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21582
21583 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21584
21585 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21586
21587 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21588
21589 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21590
21591 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21592
21593 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21594
21595 2011-03-29 Jakub Jelinek <jakub@redhat.com>
21596
21597 PR debug/48253
21598 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21599 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21600 dw_fde_unlikely_section_end_label, cold_in_std_section,
21601 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21602 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21603 fields.
21604 (output_fde): Use dw_fde_second_{begin,end} if second is
21605 true, otherwise dw_fde_{begin,end}.
21606 (output_call_frame_info): Test dw_fde_second_begin != NULL
21607 instead of dw_fde_switched_sections.
21608 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21609 fields, initialize new fields. Initialize in_std_section
21610 unconditionally from the first partition.
21611 (dwarf2out_end_epilogue): Don't override dw_fde_end when
21612 dw_fde_second_begin is non-NULL.
21613 (dwarf2out_switch_text_section): Stop initializing removed
21614 dw_fde_struct fields, initialize new fields, initialize
21615 also dw_fde_end here. Set dw_fde_switch_cfi even when
21616 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
21617 (struct var_loc_list_def): Add last_before_switch field.
21618 (arange_table, arange_table_allocated, arange_table_in_use,
21619 ARANGE_TABLE_INCREMENT, add_arange): Removed.
21620 (size_of_aranges): Count !in_std_section and !second_in_std_section
21621 hunks in fdes, instead of looking at arange_table_in_use.
21622 (output_aranges): Add aranges_length argument, don't call
21623 size_of_aranges here. Instead of using aranges_table*
21624 emit ranges for fdes when !in_std_section resp.
21625 !second_in_std_section.
21626 (dw_loc_list): Break ranges crossing section switch.
21627 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
21628 use dw_fde_second_end instead of dw_fde_end as end of last range.
21629 (gen_subprogram_die): Don't call add_arange. Use
21630 dw_fde_{begin,end} for first partition and if switched
21631 section dw_fde_second_{begin,end} for the second.
21632 (var_location_switch_text_section_1,
21633 var_location_switch_text_section): New functions.
21634 (dwarf2out_begin_function): Initialize cold_text_section even
21635 when function_section () isn't text_section.
21636 (prune_unused_types): Don't walk arange_table.
21637 (dwarf2out_finish): Don't needlessly test
21638 flag_reorder_blocks_and_partition when testing cold_text_section_used.
21639 If info_section_emitted, call size_of_aranges and if it indicates
21640 non-empty .debug_aranges, call output_aranges with the computed
21641 size. Stop using removed dw_fde_struct fields, use
21642 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21643 for second.
21644
21645 PR debug/48203
21646 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21647 create ENTRY_VALUE if incoming or address of incoming's MEM
21648 is a hard REG.
21649 * dwarf2out.c (mem_loc_descriptor): Don't emit
21650 DW_OP_GNU_entry_value of DW_OP_fbreg.
21651 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21652 on ENTRY_VALUE is able to find the canonical parameter VALUE.
21653 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21654 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21655 ENTRY_VALUE_EXPs.
21656 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21657 is a REG_P or MEM_P with REG_P address, compute hash directly
21658 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21659 (preserve_only_constants): Don't clear VALUES forwaring
21660 ENTRY_VALUE to some other VALUE.
21661
21662 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
21663
21664 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21665 instead of GEN_INT.
21666
21667 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
21668
21669 * cfgexpand.c (expand_gimple_cond): Always set the source location and
21670 block before expanding the statement.
21671 (expand_gimple_stmt_1): Likewise. Set them here...
21672 (expand_gimple_stmt): ...and not here. Tidy.
21673 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21674 unknown.
21675
21676 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21677
21678 * Makefile.in: New rule for cprop.o.
21679 * gcse.c: Move constant/copy propagation to cprop.c.
21680 (compute_local_properties): Only handle expression tables.
21681 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21682 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21683 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21684 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21685 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21686 compute_cprop_data, find_used_regs, try_replace_reg,
21687 find_avail_set, cprop_jump, constprop_register, cprop_insn,
21688 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21689 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21690 find_bypass_set, reg_killed_on_edge, bypass_block,
21691 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21692 execute_rtl_cprop, pass_rtl_cprop): Move to...
21693 * cprop.c: ...here. New file, constant/copy propagation for RTL
21694 moved from gcse.c to here with minor cleanups in duplicated code.
21695
21696 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
21697
21698 * config/i386/i386.c (flag_opts): Fix a typo in
21699 -mavx256-split-unaligned-store.
21700
21701 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21702
21703 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21704 LIBCALL_VALUE): Remove macros.
21705 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21706 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21707 (h8300_function_value, h8300_libcall_value,
21708 h8300_function_value_regno_p): New functions.
21709
21710 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21711
21712 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21713
21714 2011-03-28 Jeff Law <law@redhat.com>
21715
21716 * tree-ssa-threadupdate.c (redirect_edges): Call
21717 create_edge_and_update_destination_phis as needed.
21718 (create_edge_and_update_destination_phis): Accept new BB argument.
21719 All callers updated.
21720 (thread_block): Do not update the profile when threading around
21721 intermediate blocks.
21722 (thread_single_edge): Likewise.
21723 (determine_bb_domination_status): If BB is not a successor of the
21724 loop header, return NONDOMINATING.
21725 (register_jump_thread): Note when we register a jump thread around
21726 an intermediate block.
21727 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21728 (thread_across_edge): Use it.
21729
21730 2011-03-28 Tristan Gingold <gingold@adacore.com>
21731
21732 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21733 when for_return is 2.
21734
21735 2011-03-28 Jeff Law <law@redhat.com>
21736
21737 * var-tracking.c (canonicalize_values_mark): Delete unused
21738 lhs assignment.
21739 (canonicalize_values_star, set_variable_part): Likewise.
21740 (clobber_variable_part, delete_variable_part): Likewise.
21741
21742 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21743
21744 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21745
21746 2011-03-28 Martin Jambor <mjambor@suse.cz>
21747
21748 * tree-inline.c (expand_call_inline): Do not check that destination
21749 node is analyzed.
21750 (optimize_inline_calls): Assert that destination node is analyzed.
21751 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21752 not call tree_lowering_passes.
21753 * cgraph.h (cgraph_analyze_function): Declare.
21754 * cgraphunit.c (cgraph_analyze_function): Make public.
21755
21756 2011-03-28 Joseph Myers <joseph@codesourcery.com>
21757
21758 * config/sparc/sparc-opts.h: New.
21759 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
21760 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
21761 (sparc_option_override): Store processor_type enumeration rather
21762 than string in cpu_default. Remove name and enumeration from
21763 cpu_table. Directly default -mcpu then default -mtune from -mcpu
21764 without using sparc_select. Use target_flags_explicit instead of
21765 fpu_option_set.
21766 * config/sparc/sparc.h (enum processor_type): Move to
21767 sparc-opts.h.
21768 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
21769 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
21770 HeaderInclude entry.
21771 (mcpu=, mtune=): Use Var and Enum.
21772 (sparc_processor_type): New Enum and EnumValue entries.
21773
21774 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21775 Iain Sandoe <iains@gcc.gnu.org>
21776
21777 PR target/48245
21778 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
21779
21780 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
21781
21782 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
21783 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
21784 Insert new statements at it in lieu of STMT.
21785 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
21786 * tree-vect-stmts.c (vectorizable_store): Likewise.
21787 (vectorizable_load): Likewise.
21788
21789 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
21790
21791 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
21792 (divtf3): Ditto.
21793 (multf3): Ditto.
21794 (subtf3): Ditto.
21795
21796 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
21797
21798 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
21799 unaligned 256bit load/store.
21800 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
21801 (*avx_movdqu<avxmodesuffix>): Likewise.
21802
21803 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21804
21805 PR target/48288
21806 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
21807 * config/pa/pa.md (iordi3): Use new predicate in expander.
21808 (iorsi3): Likewise.
21809
21810 2011-03-27 Anatoly Sokolov <aesok@post.ru>
21811
21812 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
21813 FUNCTION_VALUE_REGNO_P): Remove macros.
21814 * config/mips/mips-protos.h (mips_function_value): Remove.
21815 * config/mips/mips.c (mips_function_value): Rename to...
21816 (mips_function_value_1): ... this. Make static. Handle receiving
21817 the function type in 'fn_decl_or_type' argument.
21818 (mips_function_value, mips_libcall_value,
21819 mips_function_value_regno_p): New function.
21820 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21821 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21822
21823 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
21824
21825 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21826 and -mavx256-split-unaligned-store.
21827 (ix86_option_override_internal): Split 32-byte AVX unaligned
21828 load/store by default.
21829 (ix86_avx256_split_vector_move_misalign): New.
21830 (ix86_expand_vector_move_misalign): Use it.
21831
21832 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21833 -mavx256-split-unaligned-store.
21834
21835 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21836 256bit load/store. Generate unaligned store on misaligned memory
21837 operand.
21838 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21839 256bit load/store.
21840 (*avx_movdqu<avxmodesuffix>): Likewise.
21841
21842 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21843 -mavx256-split-unaligned-store.
21844
21845 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21846
21847 PR target/38598
21848 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21849 Update commentary.
21850
21851 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21852
21853 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21854 opno arguments with an expand_operand. Use create_input_operand.
21855 (mips_prepare_builtin_target): Delete.
21856 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21857 functions.
21858 (mips_expand_builtin_direct): Use create_output_operand and
21859 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
21860 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
21861 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21862
21863 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
21864
21865 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21866 function.
21867 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21868
21869 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
21870
21871 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21872 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
21873 basic blocks and call commit_edge_insertions directly.
21874 (fixup_abnormal_edges): Move from here to...
21875 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
21876 on the edges and return whether some have actually been inserted.
21877 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21878 compensation code.
21879
21880 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
21881
21882 PR rtl-optimization/48144
21883 * sel-sched-ir.c (merge_history_vect): Factor out from ...
21884 (merge_expr_data): ... here.
21885 (av_set_intersect): Rename to av_set_code_motion_filter.
21886 Update all callers. Call merge_history_vect when an expression
21887 is found in both sets.
21888 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21889
21890 2011-03-26 Alan Modra <amodra@gmail.com>
21891
21892 * config/rs6000/predicates.md (word_offset_memref_op): Handle
21893 cmodel medium addresses.
21894 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21895 64-bit gpr loads and stores.
21896 (rs6000_secondary_reload_ppc64): New function.
21897 * config/rs6000/rs6000-protos.h: Declare it.
21898 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21899
21900 2011-03-26 Alan Modra <amodra@gmail.com>
21901
21902 PR target/47487
21903 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21904 GNU Go in traceback table.
21905
21906 2011-03-25 Richard Henderson <rth@redhat.com>
21907
21908 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
21909 if there are exactly 6 operands.
21910 (set_storage_via_setmem): Similarly.
21911
21912 2011-03-25 Kai Tietz <ktietz@redhat.com>
21913
21914 * collect2.c (write_c_file_stat): Handle backslash
21915 as right-hand directory separator.
21916 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
21917 checking just for slash.
21918 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
21919 instead of checking for trailing slash.
21920 * gcc.c (record_temp_file): Use filename_cmp instead
21921 of strcmp.
21922 (do_spec_1): Likewise.
21923 (replace_outfile_spec_function): Likewise.
21924 (is_directory): Use filename_ncmp instead of strncmp.
21925 (print_multilib_info): Likewise.
21926 * gcov.c (find_source): Use filename_cmp instead
21927 instead of strcmp.
21928 (make_gcov_file_name): Fix order of slash/backslash
21929 checks.
21930 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
21931 (add_standard_paths): Likewise.
21932 * mips-tfile.c (saber_stop): Handle backslash.
21933 * prefix.c (update_path): Use filename_ncmp instead of
21934 strncmp.
21935 * profile.c (output_location): Use filename_cmp instead
21936 of strcmp.
21937 * read-md.c (handle_toplevel_file): Handle backslash.
21938 * tlink.c (frob_extension): Likewise.
21939 * tree-cfg.c (same_line_p): Use filename_cmp instead of
21940 strcmp.
21941 * tree-dump.c (dequeue_and_dump): Handle backslash.
21942 * tree.c (get_file_function_name): Likewise.
21943 * gengtype.c (read_input_list): Likewise.
21944 (get_file_realbasename): Likewise.
21945 (get_output_file_with_visibility): Use filename_cmp
21946 instead of strcmp.
21947
21948 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
21949
21950 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
21951 case to VFPv1.
21952
21953 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
21954
21955 * fold-const.c (expr_location_or): New function.
21956 (fold_truth_not_expr): Call it.
21957
21958 2011-03-25 Jeff Law <law@redhat.com>
21959
21960 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
21961 va_end.
21962 * c-family/c-common.c (def_fn_type): Likewise.
21963 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
21964 * emit-rtl.c (gen_rtvec): Likewise.
21965 * lto/lto-lang.c (def_fn_type): Likewise.
21966
21967 2011-03-25 Richard Guenther <rguenther@suse.de>
21968
21969 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
21970 also generate copies.
21971 (fini_copy_prop): Handle constant values properly.
21972
21973 2011-03-25 Jakub Jelinek <jakub@redhat.com>
21974
21975 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
21976 mode size instead of bitsize with DWARF2_ADDR_SIZE.
21977 (hash_loc_operands, compare_loc_operands): Handle
21978 DW_OP_GNU_entry_value.
21979
21980 2011-03-25 Kai Tietz <ktietz@redhat.com>
21981
21982 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
21983 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
21984 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
21985 comment and use macro TARGET_64BIT_MS_ABI instead.
21986 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
21987 and change default behavior for 32-bit MS_ABI.
21988 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
21989 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
21990 32-bit, too.
21991 (ix86_cfun_abi): Likewise.
21992 (ix86_maybe_switch_abi): Adjust comment.
21993 (init_cumulative_args): Check for bit-ness in MS_ABI case.
21994 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
21995 instead of checking for SYSV_ABI.
21996 (ix86_nsaved_sseregs): Likewise.
21997 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
21998 to 16 bytes.
21999 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
22000 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
22001 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
22002 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
22003 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
22004
22005 2011-03-25 Richard Guenther <rguenther@suse.de>
22006
22007 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
22008 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22009 (verify_gimple): Remove.
22010 * tree-cfg.c (verify_gimple_call): Merge verification
22011 from verify_stmts.
22012 (verify_gimple_phi): Merge verification from verify_stmts.
22013 (verify_gimple_label): New function.
22014 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
22015 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22016 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
22017 (verify_stmts): Rename to verify_gimple_in_cfg.
22018 (verify_gimple_in_cfg): New function.
22019 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
22020 * tree-ssa.c (verify_ssa): Likewise.
22021 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
22022
22023 2011-03-25 Richard Guenther <rguenther@suse.de>
22024
22025 * passes.c (init_optimization_passes): Add FRE pass after
22026 early SRA.
22027
22028 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
22029 Andrew Stubbs <ams@codesourcery.com>
22030
22031 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
22032 for Cortex-A8.
22033 (arm_movdi_vfp_cortexa8): New pattern.
22034 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
22035 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
22036 instructions when tuning for Cortex-A8. Set attribute "arch".
22037 * config/arm/arm.md: Move include arm-tune.md up a bit.
22038 (define_attr "arch"): Add "onlya8" and "nota8" values.
22039 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
22040
22041 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
22042
22043 PR bootstrap/48282
22044 Revert:
22045 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22046
22047 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22048 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22049 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22050 * passes.c (init_optimization_passes): Move
22051 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22052
22053 2011-03-25 Kai Tietz <ktietz@redhat.com>
22054
22055 * c-typeck.c (comptypes_internal): Replace target
22056 hook call of comp_type_attributes by version in tree.c file.
22057 * gimple.c (gimple_types_compatible_p_1): Likewise.
22058 * tree-ssa.c (useless_type_conversion_p): Likewise.
22059 * tree.c (build_type_attribute_qual_variant): Likewise.
22060 (attribute_value_equal): New static helper function.
22061 (comp_type_attributes): New function.
22062 (merge_attributes): Use attribute_value_equal for comparison.
22063 (attribute_list_contained): Likewise.
22064 * tree.h (comp_type_attributes): New prototype.
22065
22066 2011-03-25 Richard Guenther <rguenther@suse.de>
22067
22068 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
22069 of complex types at -O0.
22070 (verify_gimple_assign_binary): Likewise.
22071 (verify_gimple_assign_ternary): Likewise.
22072
22073 2011-03-24 Mark Wielaard <mjw@redhat.com>
22074
22075 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
22076 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
22077
22078 2011-03-24 Mark Wielaard <mjw@redhat.com>
22079
22080 PR debug/48041
22081 * dwarf2out.c (output_abbrev_section): Only write table when
22082 abbrev_die_table_in_use > 1.
22083
22084 2011-02-24 Richard Henderson <rth@redhat.com>
22085
22086 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
22087 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
22088 (alpha_expand_unaligned_load_words): Use extql.
22089 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
22090 (emit_insxl): Handle all modes for consistency.
22091
22092 2011-02-24 Richard Henderson <rth@redhat.com>
22093
22094 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
22095 (alpha_expand_unaligned_load): Likewise.
22096 (alpha_expand_unaligned_store): Likewise.
22097 (alpha_expand_unaligned_load_words): Likewise.
22098 (alpha_expand_unaligned_store_words): Likewise.
22099 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
22100 (alpha_split_lock_test_and_set_12): Likewise.
22101 (print_operand, alpha_fold_builtin_extxx): Likewise.
22102 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
22103 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
22104 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
22105 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
22106 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
22107 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
22108 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
22109 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
22110 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
22111 (extwl, extll, extql): Similarly.
22112 (inswh, inslh, insqh): Similarly.
22113 (mskbl, mskwl, mskll, mskql): Similarly.
22114 (mskwh, msklh, mskqh): Similarly.
22115
22116 2011-02-24 Richard Henderson <rth@redhat.com>
22117
22118 * config/alpha/alpha.md (attribute isa): Add er, ner.
22119 (attribute enabled): Handle them.
22120 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
22121
22122 2011-02-24 Richard Henderson <rth@redhat.com>
22123
22124 * config/alpha/alpha.md (attribute isa): Add vms.
22125 (attribute enabled): Handle it.
22126 (*movsf): Merge *movsf_{nofix,fix,nofp}.
22127 (*movdf): Merge *movdf_{nofix,fix,nofp}.
22128 (*movtf): Rename from *movtf_internal for consistency.
22129 (*movsi): Merge with *movsi_nt_vms.
22130 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
22131 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
22132 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
22133 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
22134
22135 2011-02-24 Richard Henderson <rth@redhat.com>
22136
22137 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
22138 (extendqisi2, extendhisi2): Likewise.
22139 (extendqidi2): Simplify BWX/non-BWX expansions.
22140 (extendhidi2): Similarly.
22141
22142 2011-02-24 Richard Henderson <rth@redhat.com>
22143
22144 * config/alpha/alpha.md (attribute isa): New.
22145 (attribute enabled): New.
22146 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
22147 (zero_extendqisi2, zero_extendqidi2): Similarly.
22148 (zero_extendhisi2, zero_extendhidi2): Similarly.
22149 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
22150
22151 2011-02-24 Richard Henderson <rth@redhat.com>
22152
22153 * config/alpha/predicates.md (input_operand): Revert last change;
22154 update comment to mention 32-bit VMS rather than Windows.
22155
22156 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22157
22158 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22159 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22160 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22161 * passes.c (init_optimization_passes): Move
22162 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22163
22164 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22165
22166 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
22167
22168 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22169
22170 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
22171 correctly.
22172
22173 2011-03-24 Jakub Jelinek <jakub@redhat.com>
22174
22175 PR debug/48204
22176 * simplify-rtx.c (simplify_const_unary_operation): Call
22177 real_convert when changing mode class with FLOAT_EXTEND.
22178
22179 2011-03-24 Nick Clifton <nickc@redhat.com>
22180
22181 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
22182 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22183 * config/rx/rx.c (rx_option_override): Set align_jumps,
22184 align_loops and align_labels if not set by the user.
22185 (rx_align_for_label): New function.
22186 (rx_max_skip_for_label): New function.
22187 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
22188 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
22189 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
22190 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
22191 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
22192
22193 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22194
22195 PR rtl-optimization/48263
22196 * optabs.c (expand_binop_directly): Reinstate convert_modes code
22197 and original commutative_p handling. Use maybe_gen_insn.
22198
22199 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22200
22201 * reload.c (find_reloads_subreg_address): Add address_reloaded
22202 parameter and return true there if the full address has been
22203 reloaded.
22204 (find_reloads_toplev): Pass address_reloaded flag.
22205 (find_reloads_address_1): Don't use address_reloaded parameter.
22206
22207 2011-03-24 Jeff Law <law@redhat.com>
22208
22209 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
22210 unused variable "ann".
22211 (remove_unused_locals): Likewise.
22212
22213 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
22214 statement.
22215
22216 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
22217 after it is freed.
22218
22219 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22220
22221 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22222 for invalid symbolic addresses.
22223 (s390_secondary_reload): Don't use s390_check_symref_alignment for
22224 larl operands.
22225
22226 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22227
22228 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22229 the argument in calls to fold_truth_not_expr.
22230
22231 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22232
22233 * tree.c (record_node_allocation_statistics): New function.
22234 (make_node_stat, copy_node_stat, build_string): Call it.
22235 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22236 (build1_stat, build_omp_clause): Likewise.
22237
22238 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22239
22240 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22241 last commit.
22242
22243 2011-03-24 Richard Guenther <rguenther@suse.de>
22244
22245 PR tree-optimization/48271
22246 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22247 blocks that still exist.
22248
22249 2011-03-24 Richard Guenther <rguenther@suse.de>
22250
22251 PR tree-optimization/48270
22252 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22253 not free datarefs before ddrs.
22254
22255 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22256
22257 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22258 from the address built for a reference with variable offset.
22259
22260 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22261
22262 PR target/48237
22263 * config/i386/i386.md (*movdf_internal_rex64): Do not split
22264 alternatives that can be handled with movq or movabsq insn.
22265 (*movdf_internal): Disable for !TARGET_64BIT.
22266 (*movdf_internal_nointeger): Ditto.
22267 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22268
22269 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22270
22271 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22272 (FUNCTION_ARG_ADVANCE): Likewise.
22273 * tm.texi.in: Change references to them to hook references.
22274 * tm.texi: Regenerate.
22275 * targhooks.c (default_function_arg): Eliminate check for target macro.
22276 (default_function_incoming_arg): Likewise.
22277 (default_function_arg_advance): Likewise.
22278 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22279 (function_arg_advance): Likewise.
22280 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22281
22282 2011-03-24 Richard Guenther <rguenther@suse.de>
22283
22284 PR middle-end/48269
22285 * tree-object-size.c (addr_object_size): Do not double-account
22286 for MEM_REF offsets.
22287
22288 2011-03-24 Diego Novillo <dnovillo@google.com>
22289
22290 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22291 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22292 (lto_input_data_block): Move from lto-opts.c. Make extern.
22293 Update all users.
22294 (lto_input_string): Rename from input_string. Make extern.
22295 Update all users.
22296 * lto-streamer-out.c (lto_output_string_with_length): Rename from
22297 output_string_with_length.
22298 Output 0 to indicate a non-NULL string. Update all callers to
22299 not emit 0.
22300 (lto_output_string): Rename from output_string. Make extern.
22301 Update all users.
22302 (lto_output_decl_state_streams): Make extern.
22303 (lto_output_decl_state_refs): Make extern.
22304 * lto-streamer.h (lto_input_string): Declare.
22305 (lto_input_data_block): Declare.
22306 (lto_output_string): Declare.
22307 (lto_output_string_with_length): Declare.
22308 (lto_output_decl_state_streams): Declare.
22309 (lto_output_decl_state_refs): Declare.
22310
22311 2011-03-24 Richard Guenther <rguenther@suse.de>
22312
22313 PR tree-optimization/46562
22314 * tree.c (build_invariant_address): New function.
22315 * tree.h (build_invariant_address): Declare.
22316 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
22317 a renamed function moved ...
22318 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
22319 Take valueization callback parameter.
22320 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
22321 * gimple-fold.h: New file.
22322 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
22323 (ccp_fold, fold_const_aggregate_ref,
22324 fold_ctor_reference, fold_nonarray_ctor_reference,
22325 fold_array_ctor_reference, fold_string_cst_ctor_reference,
22326 get_base_constructor): Move ...
22327 * gimple-fold.c: ... here.
22328 (gimple_fold_stmt_to_constant_1): New function
22329 split out from ccp_fold. Take a valueization callback parameter.
22330 Valueize all operands.
22331 (gimple_fold_stmt_to_constant): New wrapper function.
22332 (fold_const_aggregate_ref_1): New function split out from
22333 fold_const_aggregate_ref. Take a valueization callback parameter.
22334 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
22335 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
22336 invariant POINTER_PLUS_EXPRs to invariant form.
22337 (vn_valueize): New function.
22338 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
22339 * tree-vrp.c (vrp_valueize): New function.
22340 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
22341 to fold statements to constants.
22342 * tree-ssa-pre.c (eliminate): Properly guard propagation of
22343 function declarations.
22344 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
22345 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
22346
22347 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22348
22349 * config/h8300/predicates.md (jump_address_operand): Fix register
22350 mode check.
22351
22352 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
22353
22354 * doc/invoke.texi (max-stores-to-sink): Document.
22355 * params.h (MAX_STORES_TO_SINK): Define.
22356 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
22357 if either vectorization or if-conversion is disabled.
22358 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
22359 tree-vect-data-refs.c vect_equal_offsets.
22360 (dr_equal_offsets_p): New function.
22361 (find_data_references_in_bb): Remove static.
22362 * tree-data-ref.h (find_data_references_in_bb): Declare.
22363 (dr_equal_offsets_p): Likewise.
22364 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
22365 (vect_drs_dependent_in_basic_block): Update calls to
22366 vect_equal_offsets.
22367 (vect_check_interleaving): Likewise.
22368 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
22369 (cond_if_else_store_replacement): Rename to...
22370 (cond_if_else_store_replacement_1): ... this. Change arguments and
22371 documentation.
22372 (cond_if_else_store_replacement): New function.
22373 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
22374 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
22375
22376 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
22377
22378 PR target/46934
22379 * config/arm/arm.md (casesi): Use the gen_int_mode() function
22380 to subtract lower bound instead of GEN_INT().
22381
22382 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
22383
22384 PR other/48179
22385 PR other/48221
22386 PR other/48234
22387 * doc/extend.texi (Alignment): Move section to match order in TOC.
22388 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
22389 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
22390
22391 2011-03-23 Jeff Law <law@redhat.com>
22392
22393 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
22394 before removing the edge.
22395
22396 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
22397 it may have been freed by redirect_branch_edge or
22398 redirect_edge_succ_nodup.
22399
22400 2011-03-23 Richard Guenther <rguenther@suse.de>
22401
22402 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
22403 (check_va_list_escapes): Likewise.
22404 (check_all_va_list_escapes): Likewise.
22405
22406 2011-03-23 Richard Guenther <rguenther@suse.de>
22407
22408 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
22409 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
22410 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
22411 (alias.o): Likewise.
22412 (ipa-type-escape.o): Remove.
22413 (ipa-struct-reorg.o): Likewise.
22414 (GTFILES): Remove ipa-struct-reorg.c.
22415 * alias.c: Do not include ipa-type-escape.h.
22416 * tree-ssa-alias.c: Likewise.
22417 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
22418 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
22419 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
22420 and ipa-type-escape passes.
22421 * tree-pass.h (pass_ipa_type_escape): Remove.
22422 (pass_ipa_struct_reorg): Likewise.
22423 * ipa-struct-reorg.h: Remove.
22424 * ipa-struct-reorg.c: Likewise.
22425 * ipa-type-escape.h: Likewise.
22426 * ipa-type-escape.c: Likewise.
22427 * doc/invoke.texi (-fipa-struct-reorg): Remove.
22428 (--param struct-reorg-cold-struct-ratio): Likewise.
22429 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22430 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22431 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
22432
22433 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22434
22435 * config/s390/2084.md: Enable all insn reservations also for z9_ec
22436 cpu attribute value.
22437 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
22438 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
22439 * config/s390/s390.c (processor_flags_table): New constant array.
22440 (s390_handle_arch_option): Remove.
22441 (s390_handle_option): Remove s390_handle_arch_option invocations
22442 and OPT_mwarn_framesize_ handling.
22443 (s390_option_override): Remove s390_handle_arch_option invocation.
22444 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
22445 warnings.
22446 * config/s390/s390.md (cpu attribute): Add z9_ec value.
22447 * config/s390/s390.opt (s390_tune, s390_arch)
22448 (march=): Replace s390_arch_option enum and values with
22449 processor_type. Set variable name to s390_arch. Set
22450 initialization value.
22451 (mtune=): Replace s390_arch_option with processor_type. Set
22452 variable name to s390_tune. Set initialization value.
22453
22454 2011-03-23 Julian Brown <julian@codesourcery.com>
22455
22456 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
22457 accesses which are not naturally aligned.
22458
22459 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22460
22461 PR target/47553
22462 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
22463
22464 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22465
22466 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
22467 parameter from "int" to "enum insn_code".
22468 (expand_operand_type): New enum.
22469 (expand_operand): New structure.
22470 (create_expand_operand): New function.
22471 (create_fixed_operand, create_output_operand): Likewise
22472 (create_input_operand, create_convert_operand_to): Likewise.
22473 (create_convert_operand_from, create_address_operand): Likewise.
22474 (create_integer_operand): Likewise.
22475 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
22476 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22477 (expand_insn, expand_jump_insn): Likewise.
22478 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
22479 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
22480 (expand_movstr, expand_builtin___clear_cache): Likewise.
22481 (expand_builtin_lock_release): Likewise.
22482 * explow.c (allocate_dynamic_stack_space): Likewise.
22483 (probe_stack_range): Likewise. Allow check_stack to FAIL,
22484 and use the default handling in that case.
22485 * expmed.c (check_predicate_volatile_ok): Delete.
22486 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
22487 (emit_cstore): Likewise.
22488 * expr.c (emit_block_move_via_movmem): Likewise.
22489 (set_storage_via_setmem, expand_assignment): Likewise.
22490 (emit_storent_insn, try_casesi): Likewise.
22491 (emit_single_push_insn): Likewise. Allow the expansion to fail.
22492 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
22493 (expand_vec_shift_expr, expand_binop_directly): Likewise.
22494 (expand_twoval_unop, expand_twoval_binop): Likewise.
22495 (expand_unop_direct, emit_indirect_jump): Likewise.
22496 (emit_conditional_move, vector_compare_rtx): Likewise.
22497 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
22498 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
22499 (expand_sync_lock_test_and_set): Likewise.
22500 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
22501 (emit_unop_insn): Likewise.
22502 (expand_copysign_absneg): Change icode to an insn_code.
22503 (create_convert_operand_from_type): New function.
22504 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
22505 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22506 (expand_insn, expand_jump_insn): Likewise.
22507 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
22508 than const_int_operand for operand 2.
22509
22510 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22511
22512 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
22513 if possible.
22514
22515 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22516
22517 * emit-rtl.c (emit_pattern_before_noloc): New function.
22518 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
22519 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
22520 (emit_pattern_after_noloc): New function.
22521 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
22522 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
22523
22524 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22525
22526 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
22527 (__ffsDI2): Likewise.
22528
22529 2011-03-22 Richard Henderson <rth@redhat.com>
22530
22531 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22532 of !TARGET_ABI_OPEN_VMS.
22533 (alpha_trampoline_init, alpha_start_function): Likewise.
22534 (alpha_expand_epilogue, alpha_file_start): Likewise.
22535 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22536 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22537 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22538 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22539 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22540
22541 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22542
22543 * config/s390/s390-opts.h: New.
22544 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22545 s390_arch_flags, s390_warn_framesize, s390_stack_size,
22546 s390_stack_guard): Remove.
22547 (s390_handle_arch_option): Return void. Take enum
22548 s390_arch_option value instead of string and searching array.
22549 (s390_handle_option): Don't assert that global structures are in
22550 use. Access variables via opts pointer. Use error_at. Don't use
22551 sscanf for -mstack-guard= or -mstack-size=. Update call to
22552 s390_handle_arch_option.
22553 (s390_option_override): Update call to s390_handle_arch_option.
22554 (s390_emit_prologue): Use %d format for s390_stack_size in
22555 diagnostic. Use %wd for HOST_WIDE_INT.
22556 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22557 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22558 * config/s390/s390.opt (config/s390/s390-opts.h): New
22559 HeaderInclude entry.
22560 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22561 s390_arch_flags, s390_warn_framesize): New Variable entries.
22562 (s390_arch_option): New Enum and EnumValue entries.
22563 (march=): Use Enum instead of Var.
22564 (mstack-guard=, mstack-size=): Use UInteger and Var.
22565 (mtune=): Use Enum.
22566
22567 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22568
22569 * config/score/score.c (score_handle_option): Don't assert that
22570 global structures are in use. Access target_flags via opts
22571 pointer. Use value of -march= option to determine target_flags
22572 settings.
22573 * config/score/score.opt (march=): Use Enum.
22574 (score_arch): New Enum and EnumValue entries.
22575
22576 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22577
22578 * config/mep/mep.c (option_mtiny_specified): Remove.
22579 (mep_option_override): Move register handling for -mivc2 from
22580 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
22581 instead of option_mtiny_specified.
22582 (mep_handle_option): Access target_flags via opts pointer. Don't
22583 assert that global structures are in use. Defer part of -mivc2
22584 handling and move it to mep_option_override.
22585 * config/mep/mep.opt (IVC2): New Mask entry.
22586 (mivc2): Use Var and Defer instead of Mask.
22587
22588 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22589
22590 * config/v850/v850-opts.h: New.
22591 * config/v850/v850.c (small_memory): Replace with
22592 small_memory_physical_max array. Make that array static const.
22593 (v850_handle_memory_option): Take integer value of argument. Take
22594 gcc_options pointer, option text and location. Return void.
22595 Update for changes to small memory structures.
22596 (v850_handle_option): Access target_flags via opts pointer. Don't
22597 assert that global structures are in use. Update calls to
22598 v850_handle_memory_option.
22599 (v850_encode_data_area): Update references to small memory settings.
22600 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22601 (enum small_memory_type): Move to v850-opts.h.
22602 * config/v850/v850.opt (config/v850/v850-opts.h): New
22603 HeaderInclude entry.
22604 (small_memory_max): New Variable entry.
22605 (msda): Replace by pair of options msda= and msda-. Use UInteger.
22606 (mtda, mzda): Likewise.
22607
22608 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22609
22610 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22611 pointer. Don't assert that global structures are in use.
22612
22613 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22614
22615 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22616 via opts pointer. Don't assert that global structures are in use.
22617
22618 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22619
22620 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22621 (munix=93): Use Var.
22622 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22623 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22624 * config/pa/pa-opts.h: New.
22625 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22626 (pa_handle_option): Don't assert that global structures are in
22627 use. Access target_flags via opts pointer. Don't handle
22628 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22629 OPT_munix_98 here.
22630 (pa_option_override): Handle deferred OPT_mfixed_range_.
22631
22632 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22633
22634 * config/mn10300/mn10300-opts.h: New.
22635 * config/mn10300/mn10300.c (mn10300_processor,
22636 mn10300_tune_string): Remove.
22637 (mn10300_handle_option): Don't assert that global structures are
22638 in use. Access mn10300_processor via opts pointer. Don't handle
22639 OPT_mtune_ here.
22640 * config/mn10300/mn10300.h (enum processor_type): Move to
22641 mn10300-opts.h.
22642 (mn10300_processor): Remove.
22643 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22644 HeaderInclude entry.
22645 (mn10300_processor): New Variable entry.
22646 (mtune=): Use Var.
22647
22648 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22649
22650 * config/microblaze/microblaze.c: Don't include opts.h.
22651 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22652 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22653 (mno-clearbss): Use Var and Warn.
22654
22655 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22656
22657 * config/m32r/m32r-opts.h: New.
22658 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22659 (m32r_handle_option): Don't assert that global structures are in
22660 use. Access target_flags and m32r_cache_flush_func via opts
22661 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
22662 OPT_mno_flush_trap here.
22663 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22664 include of m32r-opts.h.
22665 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22666 HeaderInclude entry.
22667 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22668 (mmodel=): Use Enum and Var.
22669 (m32r_model): New Enum and EnumValue entries.
22670 (mno-flush-trap): Use Var.
22671 (msdata=): Use Enum and Var.
22672 (m32r_sdata): New Enum and EnumValue entries.
22673
22674 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22675
22676 * config/m32c/m32c.c: Don't include opts.h.
22677 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22678 m32c_handle_option): Remove.
22679 (m32c_option_override): Check global_options_set.x_target_memregs
22680 instead of target_memregs_set.
22681 * config/m32c/m32c.h (target_memregs): Remove.
22682 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22683 variable.
22684
22685 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22686
22687 * config/iq2000/iq2000-opts.h: New.
22688 * config/iq2000/iq2000.c: Don't include opts.h.
22689 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22690 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22691 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22692 HeaderInclude entry.
22693 (iq2000_tune): New Variable entry.
22694 (march=): Add comment. Use Enum.
22695 (iq2000_arch): New Enum and EnumValue entries.
22696 (mcpu=): Use Enum and Var.
22697 (iq2000_tune): New Enum and EnumValue entries.
22698
22699 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22700
22701 * config/ia64/ia64-opts.h: New.
22702 * config/ia64/ia64.c (ia64_tune): Remove.
22703 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22704 here. Use error_at.
22705 (ia64_option_override): Handle deferred OPT_mfixed_range_.
22706 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22707 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22708 HeaderInclude entry.
22709 (ia64_tune): New Variable entry.
22710 (mfixed-range=): Use Defer and Var.
22711 (mtune=): Use Enum and Var.
22712 (ia64_tune): New Enum and EnumValue entries.
22713
22714 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22715
22716 * config/frv/frv-opts.h: New.
22717 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22718 frv-opts.h.
22719 (frv_cpu_type): Remove.
22720 * config/frv/frv.c: Don't include opts.h.
22721 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22722 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22723 (frv_cpu_type): New Variable entry.
22724 (frv_cpu): New Enum and EnumValue entries.
22725
22726 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22727
22728 * config/cris/cris.c (cris_handle_option): Access target_flags via
22729 opts pointer. Don't assert that global structures are in use.
22730 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22731 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22732
22733 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22734
22735 * config/bfin/bfin-opts.h: New.
22736 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22737 bfin_si_revision, bfin_workarounds): Remove.
22738 (bfin_cpus): Make static const.
22739 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22740 not bfin_lib_id_given.
22741 (bfin_handle_option): Don't set bfin_lib_id_given. Access
22742 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22743 pointer. Use error_at. Don't assert that global structures are in use.
22744 * config/bfin/bfin.h: Include bfin-opts.h.
22745 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22746 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22747 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22748 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22749 entries.
22750
22751 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22752
22753 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
22754 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
22755 or -msoft-float here.
22756 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
22757 -msoft-float and -mhard-float.
22758 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
22759 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22760 msoft-float.
22761 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
22762 -msoft-float.
22763 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
22764 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
22765 not mhard-float.
22766 (LIBGCC_SPEC): Don't handle -msoft-float.
22767 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
22768 -mhard-float.
22769 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22770 msoft-float.
22771 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
22772 -mfloat-abi=*, not -msoft-float and -mhard-float.
22773 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
22774 -msoft-float.
22775 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
22776 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
22777 mhard-float and msoft-float.
22778 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
22779 mfloat-abi=soft in comments, not mhard-float and msoft-float.
22780 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22781 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
22782 mhard-float.
22783 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
22784 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
22785 msoft-float.
22786 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
22787 not mhard-float.
22788 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
22789 not msoft-float.
22790
22791 2011-03-22 Richard Henderson <rth@redhat.com>
22792
22793 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
22794 TARGET_ABI_WINDOWS_NT.
22795 (alpha_output_function_end_prologue): Likewise.
22796 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
22797 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22798 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
22799 (trap, *movsi_nt_vms): Likewise.
22800 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
22801 (*tablejump_osf_nt_internal): Remove.
22802 * config/alpha/predicates.md (input_operand): Only test Pmode.
22803
22804 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22805
22806 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
22807 via opts pointer. Use error_at. Don't assert that global
22808 structures are in use.
22809
22810 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22811
22812 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
22813 (ix86_handle_option): Access ix86_isa_flags and
22814 ix86_isa_flags_explicit via opts pointer. Don't assert that
22815 global structures are in use.
22816 (ix86_function_specific_save, ix86_function_specific_restore):
22817 Update ix86_isa_flags_explicit field name.
22818 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22819 (ix86_isa_flags_explicit): Rename TargetSave entry to
22820 x_ix86_isa_flags_explicit.
22821
22822 2011-03-22 Richard Henderson <rth@redhat.com>
22823
22824 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22825 (alpha_option_override, direct_return): Likewise.
22826 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22827 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22828 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22829 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22830 (alpha_expand_epilogue, alpha_end_function): Likewise.
22831 (alpha_init_libfuncs): Likewise.
22832 (struct machine_function): Remove unicosmk members.
22833 (print_operand) ['t']: Remove.
22834 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22835 unicosmk_output_module_name, unicosmk_output_common,
22836 current_section_align, unicosmk_output_text_section_asm_op,
22837 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22838 unicosmk_section_type_flags, unicosmk_unique_section,
22839 unicosmk_asm_named_section, unicosmk_insert_attributes,
22840 unicosmk_output_align, unicosmk_defer_case_vector,
22841 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22842 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22843 unicosmk_output_ssib, unicosmk_add_call_info_word,
22844 unicosmk_extern_head, unicosmk_output_default_externs,
22845 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22846 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22847 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22848 * config/alpha/alpha-protos.h: Update.
22849 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22850 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22851 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22852 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22853 (*mulsi_se, mulvsi3): Likewise.
22854 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22855 (*divmodsi_internal, call, call_value, realign): Likewise.
22856 (moddi3, umoddi3): Likewise; remove duplicate expander.
22857 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22858 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22859 (*movdi_nofix): Remove r/U alternative.
22860 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22861 * config/alpha/constraints.md ("U"): Remove.
22862 * config/alpha/predicates.md (call_operand"): Don't test
22863 TARGET_ABI_UNICOSMK.
22864
22865 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22866
22867 * target.def (handle_option): Take gcc_options and
22868 cl_decoded_option pointers and location_t.
22869 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22870 * doc/tm.texi: Regenerate.
22871 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22872 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22873 * lto-opts.c (lto_reissue_options): Generate option structure for
22874 targetm.handle_option call.
22875 * opts.c (target_handle_option): Update call to
22876 targetm.handle_option. Remove assertions about values now passed
22877 down to hook.
22878 * targhooks.c (default_target_handle_option): New.
22879 * targhooks.h (default_target_handle_option): Declare.
22880 * config/alpha/alpha.c: Include opts.h.
22881 (alpha_handle_option): Update to new hook interface.
22882 * config/arm/arm.c: Include opts.h.
22883 (arm_handle_option): Update to new hook interface.
22884 * config/arm/t-arm (arm.o): Update dependencies.
22885 * config/bfin/bfin.c: Include opts.h.
22886 (bfin_handle_option): Update to new hook interface.
22887 * config/cris/cris.c: Include opts.h.
22888 (cris_handle_option): Update to new hook interface.
22889 * config/frv/frv.c: Include opts.h.
22890 (frv_handle_option): Update to new hook interface.
22891 * config/i386/i386.c: Include opts.h.
22892 (ix86_handle_option): Update to new hook interface.
22893 (ix86_valid_target_attribute_inner_p): Generate option structure
22894 for call to ix86_handle_option.
22895 * config/i386/t-i386 (i386.o): Update dependencies.
22896 * config/ia64/ia64.c: Include opts.h.
22897 (ia64_handle_option): Update to new hook interface.
22898 * config/ia64/t-ia64 (ia64.o): Update dependencies.
22899 * config/iq2000/iq2000.c: Include opts.h.
22900 (iq2000_handle_option): Update to new hook interface.
22901 * config/m32c/m32c.c: Include opts.h.
22902 (m32c_handle_option): Update to new hook interface.
22903 * config/m32r/m32r.c: Include opts.h.
22904 (m32r_handle_option): Update to new hook interface.
22905 * config/m68k/m68k.c: Include opts.h.
22906 (m68k_handle_option): Update to new hook interface.
22907 * config/mep/mep.c: Include opts.h.
22908 (mep_handle_option): Update to new hook interface.
22909 * config/microblaze/microblaze.c: Include opts.h.
22910 (microblaze_handle_option): Update to new hook interface.
22911 * config/mips/mips.c: Include opts.h.
22912 (mips_handle_option): Update to new hook interface.
22913 * config/mn10300/mn10300.c: Include opts.h.
22914 (mn10300_handle_option): Update to new hook interface.
22915 * config/pa/pa.c: Include opts.h.
22916 (pa_handle_option): Update to new hook interface.
22917 * config/pdp11/pdp11.c: Include opts.h.
22918 (pdp11_handle_option): Update to new hook interface.
22919 * config/rs6000/rs6000.c: Include opts.h.
22920 (rs6000_handle_option): Update to new hook interface.
22921 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
22922 * config/rx/rx.c: Include opts.h.
22923 (rx_handle_option): Update to new hook interface.
22924 * config/s390/s390.c: Include opts.h.
22925 (s390_handle_option): Update to new hook interface.
22926 * config/score/score.c: Include opts.h.
22927 (score_handle_option): Update to new hook interface.
22928 * config/sh/sh.c: Include opts.h.
22929 (sh_handle_option): Update to new hook interface.
22930 * config/sparc/sparc.c: Include opts.h.
22931 (sparc_handle_option): Update to new hook interface.
22932 * config/v850/v850.c: Include opts.h.
22933 (v850_handle_option): Update to new hook interface.
22934
22935 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22936
22937 * gcc.c (driver_unknown_option_callback): Only permit and save
22938 unknown -Wno- options.
22939 (driver_wrong_lang_callback): Save options directly instead of via
22940 driver_unknown_option_callback.
22941
22942 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
22943
22944 * combine.c (simplify_set): Try harder to find the best CC mode when
22945 simplifying a nested COMPARE on the RHS.
22946
22947 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22948
22949 * config/alpha/gnu.h: Remove.
22950 * config/arc: Remove directory.
22951 * config/arm/netbsd.h: Remove.
22952 * config/arm/t-pe: Remove.
22953 * config/crx: Remove directory.
22954 * config/i386/netbsd.h: Remove.
22955 * config/m68hc11: Remove directory.
22956 * config/m68k/uclinux-oldabi.h: Remove.
22957 * config/mcore/mcore-pe.h: Remove.
22958 * config/mcore/t-mcore-pe: Remove.
22959 * config/netbsd-aout.h: Remove.
22960 * config/rs6000/gnu.h: Remove.
22961 * config/sh/sh-symbian.h: Remove.
22962 * config/sh/symbian-base.c: Remove.
22963 * config/sh/symbian-c.c: Remove.
22964 * config/sh/symbian-cxx.c: Remove.
22965 * config/sh/symbian-post.h: Remove.
22966 * config/sh/symbian-pre.h: Remove.
22967 * config/sh/t-symbian: Remove.
22968 * config/svr3.h: Remove.
22969 * config/vax/netbsd.h: Remove.
22970 * config.build: Don't handle i[34567]86-*-pe.
22971 * config.gcc: Remove handling of deprecations for most deprecated
22972 targets.
22973 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
22974 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
22975 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
22976 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
22977 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
22978 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
22979 Remove cases.
22980 * config.host: Don't handle i[34567]86-*-pe.
22981 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
22982 (ASM_SPEC32): Don't handle -mcall-gnu.
22983 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
22984 -mcall-gnu.
22985 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
22986 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
22987 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22988 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
22989 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
22990 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
22991 conditional on SYMBIAN.
22992 * configure.ac: Don't handle powerpc*-*-gnu*.
22993 * configure: Regenerate.
22994 * doc/extend.texi (interrupt attribute): Don't mention CRX.
22995 * doc/install-old.texi (m6811, m6812): Don't mention.
22996 * doc/install.texi (arc-*-elf*): Don't document multilib option.
22997 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
22998 (m68k-uclinuxoldabi): Don't mention.
22999 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
23000 Remove.
23001 (-mcall-gnu): Remove.
23002 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
23003 families): Remove constraint documentation.
23004
23005 2011-03-22 Marius Strobl <marius@FreeBSD.org>
23006
23007 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
23008 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
23009 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
23010
23011 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23012
23013 PR target/48226
23014 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
23015 vector when peeking at the next token for vector, don't expand the
23016 keywords.
23017
23018 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
23019
23020 * config/avr/avr-protos.h (expand_epilogue): Change prototype
23021 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
23022 * config/avr/avr.c (init_cumulative_args)
23023 (avr_function_arg_advance): Use it.
23024 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
23025 sibcall epilogues.
23026 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
23027 (avr_function_ok_for_sibcall): ...this new function.
23028 (avr_lookup_function_attribute1): New static Function.
23029 (avr_naked_function_p, interrupt_function_p)
23030 (signal_function_p, avr_OS_task_function_p)
23031 (avr_OS_main_function_p): Use it.
23032 * config/avr/avr.md ("sibcall", "sibcall_value")
23033 ("sibcall_epilogue"): New expander.
23034 ("*call_insn", "*call_value_insn"): New insn.
23035 ("call_insn", "call_value_insn"): Remove
23036 ("call", "call_value", "epilogue"): Change expander to handle
23037 sibling calls.
23038
23039 2011-03-21 Nick Clifton <nickc@redhat.com>
23040
23041 * doc/invoke.texi (Overall Options): Move closing brace to end of
23042 options list.
23043 (Optimization Options): Add missing @gol.
23044 (Directory Options): Likewise.
23045 (i386 and x86-64 Options): Likewise.
23046 (RS6000 and PowerPC Options): Likewise.
23047 (i386 and x86-64 Windows Options): Likewise.
23048 (V850 Options): Add text missing from descriptions.
23049
23050 2011-03-22 Richard Henderson <rth@redhat.com>
23051
23052 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
23053 (avr_incoming_return_addr_rtx): New.
23054 (emit_push_byte): New.
23055 (expand_prologue): Use it. Remove incorrect dwarf annotation for
23056 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
23057 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
23058 (emit_pop_byte): New.
23059 (expand_epilogue): Use it. Pop frame pointer by bytes.
23060 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
23061 (INCOMING_RETURN_ADDR_RTX): New.
23062 (INCOMING_FRAME_SP_OFFSET): New.
23063 (ARG_POINTER_CFA_OFFSET): New.
23064 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
23065 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
23066 (pophi): Remove.
23067
23068 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
23069
23070 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23071
23072 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23073 (FUNCTION_ARG_ADVANCE): Likewise.
23074 * tm.texi.in: Change references to them to hook references.
23075 * tm.texi: Regenerate.
23076 * targhooks.c (default_function_arg): Eliminate check for target
23077 macro.
23078 (default_function_incoming_arg): Likewise.
23079 (default_function_arg_advance): Likewise.
23080 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23081 (function_arg_advance): Likewise.
23082 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23083
23084 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23085
23086 * tree.c (build_call_1): New function.
23087 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
23088
23089 2011-03-22 Richard Guenther <rguenther@suse.de>
23090
23091 PR tree-optimization/48228
23092 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
23093 for single-arg PHIs.
23094
23095 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
23096
23097 PR rtl-optimization/48143
23098 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
23099 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
23100 sse2_cvtps2pd): Likewise.
23101
23102 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23103
23104 * recog.c (canonicalize_change_group): Use validate_unshare_change.
23105
23106 2011-03-22 Richard Guenther <rguenther@suse.de>
23107
23108 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
23109 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
23110 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
23111 and REALIGN_LOAD_EXPR.
23112 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
23113 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
23114 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
23115 DOT_PROD_EXPR case ...
23116 (expand_expr_real_2): ... here.
23117 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
23118 and REALIGN_LOAD_EXPR.
23119 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
23120 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
23121 (vect_create_epilog_for_reduction): Likewise.
23122 (vectorizable_reduction): Likewise.
23123 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
23124 * tree-vect-stmts.c (vectorizable_load): Likewise.
23125
23126 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
23127
23128 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
23129
23130 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23131
23132 * config/s390/s390.c (s390_delegitimize_address): Fix offset
23133 handling for PLTOFF/GOTOFF.
23134
23135 2011-03-22 Nick Clifton <nickc@redhat.com>
23136
23137 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
23138 trailing backslash from the end of the macro definition.
23139
23140 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23141
23142 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
23143 and PLT unspecs.
23144
23145 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
23146
23147 * expr.h (prepare_operand): Move to...
23148 * optabs.h (prepare_operand): ...here and change the insn code
23149 parameter from "int" to "enum insn_code".
23150 (insn_operand_matches): Declare.
23151 * expr.c (init_expr_target): Use insn_operand_matches.
23152 (compress_float_constant): Likewise.
23153 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
23154 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
23155 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
23156 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
23157 Likewise.
23158 (gen_cond_trap): Likewise.
23159 (prepare_operand): Likewise. Change icode to an insn_code.
23160 (insn_operand_matches): New function.
23161 * reload.c (find_reloads_address_1): Use insn_operand_matches.
23162 * reload1.c (gen_reload): Likewise.
23163 * targhooks.c (default_secondary_reload): Likewise.
23164
23165 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23166
23167 * config/alpha/alpha.md (unspec): New define_c_enum.
23168 (unspecv): Ditto.
23169
23170 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23171
23172 PR debug/48214
23173 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
23174 between a call and its CALL_ARG_LOCATION note.
23175
23176 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
23177
23178 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
23179
23180 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23181
23182 PR c/42544
23183 PR c/48197
23184 * c-common.c (shorten_compare): If primopN is first sign-extended
23185 to opN and then zero-extended to result type, set primopN to opN.
23186
23187 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
23188
23189 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
23190 for barrier handlers.
23191
23192 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23193
23194 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
23195 UNSPEC constants to be in the unspec enumeration, and redefine
23196 all UNSPECV constants to be in the unspecv enumeration, so that
23197 dumps print which unspec/unspec_volatile this is.
23198 * config/rs6000/vector.md (UNSPEC_*): Ditto.
23199 * config/rs6000/paired.md (UNSPEC_*): Ditto.
23200 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
23201 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
23202 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
23203
23204 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
23205 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
23206 UNSPECV_LWSYNC, since these are used as unspec_volatile.
23207 * config/rs6000/sync.md (isync, lwsync): Ditto.
23208
23209 2011-03-21 Richard Guenther <rguenther@suse.de>
23210
23211 * params.def (lto-min-partition): Fix typo.
23212
23213 2011-03-21 Richard Guenther <rguenther@suse.de>
23214
23215 PR c/47939
23216 * c-decl.c (grokdeclarator): Drop to the main variant only
23217 for array types. Drop flag_gen_aux_info check.
23218
23219 2011-03-21 Richard Guenther <rguenther@suse.de>
23220
23221 PR translation/47911
23222 * params.def (lto-partitions): Fix typo.
23223 (lto-min-partition): Fix wording.
23224
23225 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
23226
23227 * config/rs6000/t-freebsd: Remove duplication from file.
23228
23229 2011-03-21 Richard Guenther <rguenther@suse.de>
23230
23231 PR middle-end/47661
23232 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23233
23234 2011-03-21 Richard Guenther <rguenther@suse.de>
23235
23236 PR lto/48210
23237 * params.def (lto-partitions): Require at least 1 partition.
23238
23239 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23240
23241 * gthr-solaris.h: Remove.
23242 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23243 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23244 (LIB_SPEC): Likewise.
23245 * config/sol2.opt (threads): Remove.
23246 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23247 (sparc*-*-solaris2*): Likewise.
23248 * configure.ac (enable_threads): Enable solaris support.
23249 * configure: Regenerate.
23250 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23251 * doc/install.texi (Configuration, --enable-threads=lib): Remove
23252 solaris.
23253
23254 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23255
23256 * config.gcc: Obsolete *-*-solaris2.8*.
23257 * doc/install.texi (Specific, *-*-solaris2*): Document it.
23258
23259 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23260
23261 PR bootstrap/48135
23262 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23263 reference. Solaris 8 perl works.
23264
23265 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23266
23267 PR bootstrap/48135
23268 * doc/install.texi (Prerequisites): Move jar etc. up.
23269 Explain support library version requirements.
23270
23271 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23272
23273 PR bootstrap/48135
23274 * doc/install.texi (Prerequisites): Move Perl to build
23275 requirements. Always necessary on Solaris 2 with Sun ld.
23276
23277 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23278
23279 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23280 binutils 2.21.
23281 (Specific, i?86-*-solaris2.[89]): Likewise.
23282 (Specific, i?86-*-solaris2.10): Likewise.
23283 (Specific, mips-sgi-irix6): Likewise.
23284 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23285 Update for binutils 2.21.
23286
23287 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23288
23289 * configure.ac (gcc_cv_lto_plugin): Fix typo.
23290 Allow -fuse-linker-plugin for non-default plugin linker.
23291 * configure: Regenerate.
23292
23293 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
23294
23295 PR bootstrap/48167
23296 * gengtype.c (files_rules): Added rule for cp/parser.h.
23297
23298 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23299
23300 PR target/48213
23301 * config/s390/s390.c (s390_delegitimize_address): Don't call
23302 lowpart_subreg if orig_x has BLKmode.
23303
23304 2011-03-21 Kai Tietz <ktietz@redhat.com>
23305
23306 PR target/12171
23307 * doc/plugins.texi: Adjust documentation for plugin register_callback.
23308 * tree.h (attribute_spec): Add new member affects_type_identity.
23309 * attribs.c (empty_attribute_table): Adjust attribute_spec
23310 initializers.
23311 * config/alpha/alpha.c: Likewise.
23312 * config/arc/arc.c: Likewise.
23313 * config/arm/arm.c: Likewise.
23314 * config/avr/avr.c: Likewise.
23315 * config/bfin/bfin.c: Likewise.
23316 * config/crx/crx.c: Likewise.
23317 * config/darwin.h: Likewise.
23318 * config/h8300/h8300.c: Likewise.
23319 * config/i386/cygming.h: Likewise.
23320 * config/i386/i386.c: Likewise.
23321 * config/ia64/ia64.c: Likewise.
23322 * config/m32c/m32c.c: Likewise.
23323 * config/m32r/m32r.c: Likewise.
23324 * config/m68hc11/m68hc11.c: Likewise.
23325 * config/m68k/m68k.c: Likewise.
23326 * config/mcore/mcore.c: Likewise.
23327 * config/mep/mep.c: Likewise.
23328 * config/microblaze/microblaze.c: Likewise.
23329 * config/mips/mips.c: Likewise.
23330 * config/rs6000/rs6000.c: Likewise.
23331 * config/rx/rx.c: Likewise.
23332 * config/sh/sh.c: Likewise.
23333 * config/sol2.h: Likewise.
23334 * config/sparc/sparc.c: Likewise.
23335 * config/spu/spu.c: Likewise.
23336 * config/stormy16/stormy16.c: Likewise.
23337 * config/v850/v850.c: Likewise.
23338
23339 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
23340
23341 * simplify-rtx.c (simplify_binary_operation_1): Handle
23342 (xor (and A B) C) case when B and C are both constants.
23343
23344 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
23345
23346 * tree-dfa.c (add_referenced_var): Fix typo in comment.
23347
23348 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
23349
23350 PR bootstrap/48168
23351 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
23352
23353 2011-03-20 Jakub Jelinek <jakub@redhat.com>
23354
23355 PR rtl-optimization/48156
23356 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
23357 assume df and df_lr are not NULL.
23358
23359 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23360
23361 PR debug/48023
23362 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
23363 between a call and its CALL_ARG_LOCATION note.
23364
23365 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
23366
23367 PR debug/48178
23368 * config/sh/sh.c (find_barrier): Don't emit a constant pool
23369 between a call and its corresponding CALL_ARG_LOCATION note.
23370
23371 2011-03-19 Anatoly Sokolov <aesok@post.ru>
23372
23373 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
23374 instead of loop. Use HARD_REGISTER_NUM_P predicate.
23375 * haifa-sched.c (setup_ref_regs): Ditto.
23376 * caller-save.c (add_used_regs_1): Ditto.
23377 * dse.c (look_for_hardregs): Ditto.
23378 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
23379 * sched-rgn.c (check_live_1): Ditto.
23380
23381 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23382
23383 * c-decl.c (diagnose_mismatched_decls): Give an error for
23384 redefining a typedef with variably modified type.
23385
23386 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23387
23388 * c-decl.c (grokfield): Don't allow typedefs for structures or
23389 unions with no tag by default.
23390 * doc/extend.texi (Unnamed Fields): Update.
23391
23392 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
23393
23394 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23395 Rewrite using indirect functions.
23396 (lwp_slwpcb): Ditto.
23397 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
23398 (avx_vinsertf128<mode>): Ditto.
23399
23400 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23401
23402 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
23403 unspecs.
23404
23405 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23406
23407 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
23408 splitting between a call and its corresponding CALL_ARG_LOCATION note.
23409
23410 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
23411
23412 PR rtl-optimization/48170
23413 * gcse.c (hoist_code): Remove bogus asserts.
23414
23415 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
23416
23417 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
23418 computation for prologue/epilogue.
23419
23420 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23421
23422 * Makefile.in (check-consistency): Remove.
23423
23424 2011-03-18 Jakub Jelinek <jakub@redhat.com>
23425
23426 PR debug/48176
23427 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
23428 arange_table_in_use is 0, but either text_section_used or
23429 cold_text_section_used is true. Don't call it if
23430 !info_section_emitted.
23431
23432 2011-03-18 Anatoly Sokolov <aesok@post.ru>
23433
23434 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
23435 FUNCTION_VALUE_REGNO_P): Remove.
23436 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
23437 Remove.
23438 * config/avr/avr.c (avr_ret_register): Make static inline.
23439 (avr_function_value_regno_p): New function.
23440 (avr_libcall_value): Make static. Add 'func' argument.
23441 (avr_function_value): Make static. Rename 'func' argument to
23442 'fn_decl_or_type', forward it to avr_libcall_value. Call
23443 avr_ret_register function instead of RET_REGISTER macro.
23444 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23445
23446 2011-03-18 Jason Merrill <jason@redhat.com>
23447
23448 PR c++/23372
23449 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
23450
23451 2011-03-18 Richard Guenther <rguenther@suse.de>
23452
23453 * doc/install.texi (--enable-gold): Remove.
23454 (--with-plugin-ld): Document.
23455 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
23456
23457 2011-03-18 Andrew Pinski <pinskia@gmail.com>
23458
23459 PR middle-end/47790
23460 * expr.c (optimize_bitfield_assignment_op): Revamp to work
23461 again after expansion changes.
23462
23463 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
23464
23465 * combine.c (try_combine): Do simplification only call of
23466 subst() on i2 even when i1 is present. Update comments.
23467
23468 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
23469
23470 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
23471 and UNSPEC_PCREL_SYMOFF.
23472
23473 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23474
23475 * config/s390/s390.md: Use define_c_enum for the unspec constant
23476 definitions.
23477
23478 2011-03-18 Richard Henderson <rth@redhat.com>
23479 Jakub Jelinek <jakub@redhat.com>
23480
23481 PR bootstrap/48161
23482 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
23483 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
23484
23485 2011-03-17 Anatoly Sokolov <aesok@post.ru>
23486
23487 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23488 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
23489 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
23490 Change return type to bool.
23491 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23492
23493 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23494
23495 PR debug/48163
23496 * var-tracking.c (prepare_call_arguments): If CALL target
23497 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
23498 pc instead of looking it up using cselib_lookup and use
23499 Pmode for it if x has VOIDmode.
23500 * dwarf2out.c (gen_subprogram_die): If also both first and
23501 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
23502
23503 PR debug/48163
23504 * function.c (assign_parms): For data.passed_pointer parms
23505 use MEM of data.entry_parm instead of data.entry_parm itself
23506 as DECL_INCOMING_RTL.
23507 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
23508 also when passed and declared mode is the same, DECL_RTL
23509 is a MEM with pseudo as address and DECL_INCOMING_RTL is
23510 a MEM too.
23511
23512 2011-03-16 Jeff Law <law@redhat.com>
23513
23514 PR rtl-optimization/37273
23515 * ira-costs.c (scan_one_insn): Detect constants living in memory and
23516 handle them like argument loads from stack slots. Do not double
23517 count memory for memory constants and argument loads from stack slots.
23518
23519 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23520
23521 PR debug/48160
23522 * var-tracking.c (prepare_call_arguments): Check SUBREG.
23523
23524 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23525
23526 PR target/48171
23527 * config/i386/i386.opt: Add Save to -mavx and -mfma.
23528
23529 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23530
23531 PR bootstrap/48153
23532 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23533 if dwarf_strict.
23534 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23535 Clear call_arg_locations and call_arg_loc_last always.
23536
23537 PR middle-end/48152
23538 * var-tracking.c (prepare_call_arguments): If argument needs to be
23539 passed by reference, adjust argtype and mode.
23540
23541 2011-03-17 Richard Guenther <rguenther@suse.de>
23542
23543 PR middle-end/48134
23544 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23545 a value make sure to fold the statement.
23546
23547 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
23548
23549 PR target/43872
23550 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23551 return condition with !cfun->calls_alloca.
23552
23553 2011-03-17 Richard Guenther <rguenther@suse.de>
23554
23555 PR bootstrap/48148
23556 * lto-cgraph.c (input_overwrite_node): Clear the abstract
23557 origin for decls in other ltrans units.
23558 (input_varpool_node): Likewise.
23559
23560 2011-03-17 Richard Guenther <rguenther@suse.de>
23561
23562 PR middle-end/48165
23563 * tree-object-size.c (compute_object_offset): Properly return
23564 the offset operand of MEM_REFs as sizetype.
23565
23566 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23567
23568 PR rtl-optimization/48141
23569 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23570 * dse.c: Include params.h.
23571 (active_local_stores_len): New variable.
23572 (add_wild_read, dse_step1): Clear it when setting active_local_stores
23573 to NULL.
23574 (record_store, check_mem_read_rtx): Decrease it when removing
23575 from the chain.
23576 (scan_insn): Likewise. Increase it when adding to chain, if it
23577 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23578 set active_local_stores to NULL before the addition.
23579 * Makefile.in (dse.o): Depend on $(PARAMS_H).
23580
23581 PR rtl-optimization/48141
23582 * dse.c (record_store): If no positions are needed in an insn
23583 that cannot be deleted, at least unchain it from active_local_stores.
23584
23585 2011-03-16 Dodji Seketeli <dodji@redhat.com>
23586
23587 PR debug/47510
23588 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23589 (lookup_type_die_strip_naming_typedef): ... here.
23590 (get_context_die): Use it.
23591 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23592 the anonymous struct named by the naming typedef.
23593
23594 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
23595
23596 PR target/48154
23597 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23598 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23599
23600 2011-03-16 Jeff Law <law@redhat.com>
23601
23602 * tree-vrp.c (identify_jump_threads): Slightly simplify type
23603 check for operands of conditional. Allow type to be a pointer.
23604
23605 2011-03-16 Richard Guenther <rguenther@suse.de>
23606
23607 PR tree-optimization/48149
23608 * fold-const.c (fold_binary_loc): Fold
23609 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23610
23611 2011-03-16 Richard Guenther <rguenther@suse.de>
23612
23613 PR tree-optimization/26134
23614 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23615 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23616 (non_rewritable_mem_ref_base): Handle complex type component
23617 accesses, constrain offsets for vector and complex extracts
23618 more properly.
23619
23620 2011-03-16 Richard Guenther <rguenther@suse.de>
23621
23622 PR tree-optimization/48146
23623 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23624 operands avoiding the need for renaming.
23625
23626 2011-03-16 Richard Guenther <rguenther@suse.de>
23627
23628 * gimple-fold.c (maybe_fold_reference): Open-code relevant
23629 constant folding. Move MEM_REF canonicalization first.
23630 Rely on fold_const_aggregate_ref for initializer folding.
23631 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23632
23633 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23634
23635 PR middle-end/48136
23636 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23637 arg0/arg1 or their arguments are always fold converted to matching
23638 types.
23639
23640 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23641 to nargs.
23642
23643 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23644
23645 PR lto/46944
23646 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23647 Handle in-tree gold.
23648 (ld_vers): Extract binutils version for gold.
23649 (gcc_cv_ld_hidden): Handle gold here.
23650 (gcc_cv_lto_plugin): Determine level of linker plugin support.
23651 * configure: Regenerate.
23652 * config.in: Regenerate.
23653 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23654 -fuse-linker-plugin otherwise.
23655 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
23656 (LINK_COMMAND_SPEC): Use it.
23657 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23658
23659 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23660
23661 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23662 * calls.c: Remove debug.h include.
23663 (emit_call_1): Don't call virtual_call_token debug hook.
23664 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23665 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23666 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23667 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23668 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23669 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23670 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23671 dwarf2out_virtual_call): Remove.
23672 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23673 copy_call_info and virtual_call hooks.
23674 (dwarf2out_init): Don't initialize vcall_insn_table,
23675 debug_dcall_section and debug_vcall_section.
23676 (prune_unused_types): Don't mark nodes from dcall_table.
23677 (dwarf2out_finish): Don't output dcall or vcall tables.
23678 * final.c (final_scan_insn): Don't call direct_call or
23679 virtual_call debug hooks.
23680 * debug.h (struct gcc_debug_hooks): Remove direct_call,
23681 virtual_call_token, copy_call_info and virtual_call hooks.
23682 (debug_nothing_uid): Remove prototype.
23683 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23684 copy_call_info and virtual_call hooks.
23685 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23686 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23687 * debug.c (do_nothing_debug_hooks): Likewise.
23688 (debug_nothing_uid): Remove.
23689 * doc/invoke.texi (-fenable-icf-debug): Remove.
23690 * common.opt (-fenable-icf-debug): Likewise.
23691
23692 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23693 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23694 call's MEM. Handle functions returning aggregate through a hidden
23695 first pointer. For virtual calls add clobbered pc to call arguments
23696 chain.
23697 * dwarf2out.c (gen_subprogram_die): Emit
23698 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23699 can't be emitted.
23700
23701 PR debug/45882
23702 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23703 * rtl.h (ENTRY_VALUE_EXP): Define.
23704 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23705 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23706 * print-rtl.c (print_rtx): Likewise.
23707 * gengtype.c (adjust_field_rtx_def): Likewise.
23708 * var-tracking.c (vt_add_function_parameter): Adjust
23709 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23710 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23711 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23712 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23713 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23714
23715 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23716 Call var_location debug hook even on CALL_INSNs.
23717 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23718 * rtl.def (ENTRY_VALUE): New.
23719 * dwarf2out.c: Include cfglayout.h.
23720 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23721 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23722 (struct call_arg_loc_node): New type.
23723 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23724 tail_call_site_count): New variables.
23725 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23726 DW_TAG_GNU_call_site_parameter.
23727 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23728 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23729 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23730 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23731 and DW_AT_GNU_all_source_call_sites.
23732 (mem_loc_descriptor): Handle ENTRY_VALUE.
23733 (add_src_coords_attributes): Don't add enything if
23734 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23735 (dwarf2out_abstract_function): Save and clear call_arg_location,
23736 call_site_count and tail_call_site_count around dwarf2out_decl call.
23737 (gen_call_site_die): New function.
23738 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23739 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23740 (dwarf2out_function_decl): Clear call_arg_locations,
23741 call_arg_loc_last, set call_site_count and tail_call_site_count
23742 to -1 and free block_map.
23743 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23744 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
23745 followed by any real instructions.
23746 (dwarf2out_begin_function): Set call_site_count and
23747 tail_call_site_count to 0.
23748 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23749 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23750 attempt to force a DIE for it and worst case remove the attribute.
23751 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23752 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
23753 the decl itself.
23754 * var-tracking.c: Include tm_p.h.
23755 (vt_stack_adjustments): For calls call note_register_arguments.
23756 (argument_reg_set): New variable.
23757 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
23758 ensure the VALUE is resolved.
23759 (call_arguments): New variable.
23760 (prepare_call_arguments): New function.
23761 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
23762 (struct expand_loc_callback_data): Add ignore_cur_loc field.
23763 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
23764 always use the best expression.
23765 (vt_expand_loc): Add ignore_cur_loc argument.
23766 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
23767 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
23768 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
23769 note for all calls.
23770 (vt_add_function_parameter): Use cselib_lookup_from_insn.
23771 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
23772 argument. Don't call cselib_preserve_only_values and
23773 cselib_reset_table.
23774 (note_register_arguments): New function.
23775 (vt_initialize): Compute argument_reg_set. Call
23776 vt_add_function_parameters before processing basic blocks instead of
23777 afterwards. For calls call prepare_call_arguments before calling
23778 cselib_process_insn.
23779 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
23780 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
23781 (var-tracking.o): Depend on $(TM_P_H).
23782 * cfglayout.h (insn_scope): New prototype.
23783 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
23784 * cfglayout.c (insn_scope): No longer static.
23785 * insn-notes.def (CALL_ARG_LOCATION): New.
23786 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
23787 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
23788 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
23789 nothing for DECL_EXTERNAL BLOCK_VARS.
23790
23791 2011-03-16 Alan Modra <amodra@gmail.com>
23792
23793 PR target/45844
23794 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
23795 create invalid offset address for vsx splat insn.
23796 * config/rs6000/predicates.md (splat_input_operand): New.
23797 * config/rs6000/vsx.md (vsx_splat_*): Use it.
23798
23799 2011-03-15 Xinliang David Li <davidxl@google.com>
23800
23801 PR c/47837
23802 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
23803 (normalize_preds): New function.
23804 (is_use_properly_guarded): Normalize def predicates.
23805
23806 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23807
23808 PR target/46788
23809 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
23810 in the output template.
23811
23812 2011-03-15 Richard Guenther <rguenther@suse.de>
23813
23814 PR middle-end/47650
23815 * tree-pretty-print.c (dump_function_declaration): Properly
23816 dump unprototyped and varargs function types.
23817
23818 2011-03-15 Richard Guenther <rguenther@suse.de>
23819
23820 PR tree-optimization/13954
23821 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23822 and friends.
23823
23824 2011-03-15 Richard Guenther <rguenther@suse.de>
23825
23826 PR tree-optimization/48037
23827 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23828 selects into BIT_FIELD_REFs.
23829 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23830 vector select.
23831
23832 2011-03-15 Jakub Jelinek <jakub@redhat.com>
23833
23834 PR tree-optimization/48129
23835 * builtins.c (fold_builtin_snprintf): Convert to type of
23836 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23837 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23838
23839 2011-03-15 Richard Guenther <rguenther@suse.de>
23840
23841 PR tree-optimization/41490
23842 * tree-ssa-dce.c (propagate_necessity): Handle returns without
23843 value but with VUSE.
23844 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23845 return statements.
23846 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23847 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23848 * tree-tailcall.c (find_tail_calls): Ignore returns.
23849
23850 2011-03-15 Richard Guenther <rguenther@suse.de>
23851
23852 PR middle-end/48031
23853 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23854 or variable-indexed array accesses when in gimple form.
23855
23856 2011-03-15 Richard Guenther <rguenther@suse.de>
23857
23858 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23859
23860 2011-03-15 Alan Modra <amodra@gmail.com>
23861
23862 PR target/48032
23863 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23864 presume symbol_refs without a symbol_ref_decl are suitably
23865 aligned, nor other trees we may see here. Handle anchor symbols.
23866 (legitimate_constant_pool_address_p): Comment. Add mode param.
23867 Check cmodel=medium addresses. Adjust all calls.
23868 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23869 creating cmodel=medium optimized access to locals.
23870 * config/rs6000/constraints.md (R): Pass QImode to
23871 legitimate_constant_pool_address_p.
23872 * config/rs6000/predicates.md (input_operand): Pass mode to
23873 legitimate_constant_pool_address_p.
23874 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23875 Update prototype.
23876
23877 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23878
23879 PR target/48053
23880 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23881 64-bit constants being loaded into registers other than GPRs such
23882 as loading 0 into a VSX register.
23883
23884 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23885
23886 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23887
23888 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23889
23890 PR middle-end/47917
23891 * builtins.c (fold_builtin_snprintf): New function.
23892 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23893 (fold_builtin_4): Likewise.
23894
23895 PR middle-end/38878
23896 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23897 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
23898 and C - X == X also strip nops from +/-/p+ operand.
23899 When optimizing -X == C, fold C to arg0's type.
23900
23901 PR debug/47946
23902 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23903 emit it as add_AT_int instead of add_AT_unsigned.
23904
23905 2011-03-14 Tom Tromey <tromey@redhat.com>
23906
23907 * unwind-dw2.c: Include sys/sdt.h if it exists.
23908 (_Unwind_DebugHook): Use STAP_PROBE2.
23909 * config.in, configure: Rebuild.
23910 * configure.ac: Check for sys/sdt.h.
23911
23912 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
23913
23914 * config/i386/i386.md (ROUND_FLOOR): New constant.
23915 (ROUND_CEIL): Ditto.
23916 (ROUND_TRUNC): Ditto.
23917 (ROUND_MXCSR): Ditto.
23918 (ROUND_NO_EXC): Ditto.
23919 (rint<mode>2): Use new defines instead of numerical constants.
23920 (floor<mode>2): Ditto.
23921 (ceil<mode>2): Ditto.
23922 (btrunc<mode>2): Ditto.
23923 * config/i386/i386-builtin-types.def: Define ROUND function type
23924 aliases.
23925 * config/i386/i386.c (enum ix86_builtins): Add
23926 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
23927 (struct builtin_description): Add
23928 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
23929 (ix86_expand_sse_round): New static function.
23930 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
23931 function types.
23932 (ix86_builtin_vectorized_function): Handle
23933 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23934
23935 2011-03-14 Tom Tromey <tromey@redhat.com>
23936
23937 * c-parser.c (c_parser_asm_string_literal): Clear
23938 warn_overlength_strings.
23939
23940 2011-03-14 Tom Tromey <tromey@redhat.com>
23941
23942 * c-parser.c (disable_extension_diagnostics): Save
23943 warn_overlength_strings.
23944 (restore_extension_diagnostics): Restore warn_overlength_strings.
23945
23946 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23947
23948 * BASE-VER: Change to 4.7.0.
23949
23950 2011-03-14 Richard Guenther <rguenther@suse.de>
23951
23952 PR middle-end/48098
23953 * tree.c (build_vector_from_val): Adjust assert to requirements
23954 and reality.
23955
23956 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23957
23958 PR bootstrap/48102
23959 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
23960
23961 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
23962
23963 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
23964 terms of target_flags_explicit. Adjust copyright year.
23965
23966 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
23967 * config/rs6000/t-freebsd: New file. Add override for
23968 LIB2FUNCS_EXTRA.
23969
23970 2011-03-13 Chris Demetriou <cgd@google.com>
23971
23972 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
23973 (-fno-diagnostics-show-option): this, to reflect current default.
23974 (-Werror=): Update text about -fno-diagnostics-show-option.
23975
23976 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
23977
23978 PR target/48053
23979 * config/rs6000/predicates.md (easy_vector_constant_add_self,
23980 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
23981 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
23982 mode is not V2DImode or V2DFmode.
23983 (vspltis_constant): Do not handle V2DImode and V2DFmode.
23984 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
23985 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
23986 registers to 0.
23987 (movdi_internal64): Likewise.
23988
23989 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
23990
23991 PR tree-optimization/47127
23992 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
23993 parameter.
23994 (set_cloog_options): Same.
23995 (scop_to_clast): Same.
23996 (print_clast_stmt): Do not call cloog_state_malloc and
23997 cloog_state_free.
23998 (print_generated_program): Same.
23999 (gloog): Same.
24000 * graphite-clast-to-gimple.h (cloog_state): Declared.
24001 (scop_to_clast): Adjust declaration.
24002 * graphite.c (cloog_state): Defined here.
24003 (graphite_initialize): Call cloog_state_malloc.
24004 (graphite_finalize): Call cloog_state_free.
24005
24006 2011-03-11 Jason Merrill <jason@redhat.com>
24007
24008 * attribs.c (lookup_attribute_spec): Take const_tree.
24009 * tree.h: Adjust.
24010
24011 2011-03-11 Joseph Myers <joseph@codesourcery.com>
24012
24013 * config/sparc/sparc.c (sparc_option_override): Use
24014 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
24015
24016 2011-03-11 Richard Guenther <rguenther@suse.de>
24017
24018 PR tree-optimization/48067
24019 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
24020 multiplication result will be only used once on the target
24021 stmt.
24022
24023 2011-03-11 Richard Guenther <rguenther@suse.de>
24024
24025 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
24026
24027 2011-03-11 Richard Guenther <rguenther@suse.de>
24028
24029 PR lto/48073
24030 * tree.c (find_decls_types_r): Do not walk types only reachable
24031 from IDENTIFIER_NODEs.
24032
24033 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24034
24035 PR middle-end/48044
24036 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
24037 all vnode->force_output nodes as needed.
24038
24039 2011-03-11 Jason Merrill <jason@redhat.com>
24040
24041 PR c++/48069
24042 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
24043 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
24044
24045 2011-03-11 Martin Jambor <mjambor@suse.cz>
24046
24047 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
24048 cgraph_node.
24049
24050 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24051
24052 PR tree-optimization/48063
24053 * ipa-inline.c (cgraph_decide_inlining): Don't try to
24054 inline functions called once if !tree_can_inline_p (node->callers).
24055
24056 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
24057
24058 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
24059 extra_objs.
24060 * config/score/score3.c: Delete.
24061 * config/score/score3.h: Delete.
24062 * config/score/mul-div.S: Delete.
24063 * config/score/sfp-machine.h: Add new file.
24064 * config/score/constraints.md: Add new file.
24065 * config/score/t-score-softfp: Add new file.
24066 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
24067 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
24068 (score7_extra_constraint): Delete.
24069 (score7_option_override): Remove unused code.
24070 * config/score/score.c: Remove score3 and score5 define and code.
24071 * config/score/score.h: Remove score3 and score5 define and code.
24072 * config/score/score.md: Remove score3 template and unusual insn.
24073 * config/score/score.opt: Remove score3 and score5 options.
24074
24075 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24076
24077 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
24078 when _HPUX_SOURCE is defined.
24079 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
24080
24081 2011-03-10 Jason Merrill <jason@redhat.com>
24082
24083 PR c++/48029
24084 * stor-layout.c (layout_type): Don't set structural equality
24085 on arrays of incomplete type.
24086 * tree.c (type_hash_eq): Handle comparing them properly.
24087
24088 2011-03-10 Jakub Jelinek <jakub@redhat.com>
24089
24090 PR debug/48043
24091 * config/s390/s390.c (s390_delegitimize_address): Make sure the
24092 result mode matches original rtl mode.
24093
24094 2011-03-10 Nick Clifton <nickc@redhat.com>
24095
24096 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
24097 (andsi3, andsi3_flags): Fix timings for three operand alternative.
24098
24099 2011-03-09 Jakub Jelinek <jakub@redhat.com>
24100
24101 PR rtl-optimization/47866
24102 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
24103 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
24104 if target wasn't scalar.
24105 * function.c (assign_stack_temp_for_type): Assert that neither
24106 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
24107 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
24108 macro.
24109 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
24110
24111 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24112
24113 * config/s390/s390-protos.h (s390_label_align): New prototype.
24114 * config/s390/s390.c (s390_label_align): New function.
24115 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
24116
24117 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
24118
24119 PR target/47755
24120 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
24121 V2DI/V2DF constants. Only all 0's or all 1's are easy.
24122 (output_vec_const_move): Ditto.
24123
24124 2011-03-08 Anatoly Sokolov <aesok@post.ru>
24125
24126 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
24127 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
24128 * config/mips/mips.c (mips_preferred_reload_class): Make static.
24129 Change 'rclass' argument and result type to reg_class_t.
24130 (TARGET_PREFERRED_RELOAD_CLASS): Define.
24131
24132 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
24133
24134 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24135 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
24136 (TARGET_MEMORY_MOVE_COST): Define.
24137 (avr_register_move_cost, avr_memory_move_cost): New Functions.
24138
24139 2011-03-08 Jakub Jelinek <jakub@redhat.com>
24140
24141 PR debug/47881
24142 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
24143 removed anything.
24144
24145 PR tree-optimization/48022
24146 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
24147 for EQ/NE_EXPR.
24148
24149 2011-03-07 Jakub Jelinek <jakub@redhat.com>
24150
24151 PR debug/47991
24152 * var-tracking.c (find_use_val): Return NULL for
24153 cui->sets && cui->store_p BLKmode MEMs.
24154
24155 2011-03-07 Anatoly Sokolov <aesok@post.ru>
24156
24157 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
24158 Remove.
24159 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
24160 xstormy16_print_operand_address): Remove.
24161 * config/stormy16/stormy16.c (xstormy16_print_operand,
24162 xstormy16_print_operand_address): Make static.
24163 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24164
24165 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
24166
24167 PR target/47862
24168 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24169 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
24170 before definition.
24171
24172 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
24173
24174 PR bootstrap/48000
24175 * cfgloopmanip.c (fix_bb_placements): Return immediately
24176 if FROM is BASE_LOOP's header.
24177
24178 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
24179
24180 * gimplify.c (gimplify_function_tree): Fix building calls
24181 to __builtin_return_address.
24182
24183 2011-03-07 Alan Modra <amodra@gmail.com>
24184
24185 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
24186 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
24187 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
24188 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
24189 return_mode args.
24190 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
24191 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
24192 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
24193 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
24194 * config/rs6000/rs6000.c
24195 (rs6000_elf_end_indicate_exec_stack): Rename to..
24196 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
24197 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
24198 (rs6000_file_start): ..here.
24199 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
24200 file scope variables.
24201 (call_ABI_of_interest): New function.
24202 (init_cumulative_args): Set above vars when function return value
24203 is a float, vector, or small struct.
24204 (rs6000_function_arg_advance_1): Likewise for function args.
24205 (rs6000_va_start): Set rs6000_passes_float if variable arg function
24206 references float args.
24207
24208 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
24209
24210 * doc/cfg.texi: Remove "See" before @ref.
24211 * doc/invoke.texi: Likewise.
24212
24213 2011-03-05 Jason Merrill <jason@redhat.com>
24214
24215 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
24216
24217 2011-03-05 Anthony Green <green@moxielogic.com>
24218
24219 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24220
24221 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
24222
24223 PR rtl-optimization/47899
24224 * cfgloopmanip.c (fix_bb_placements): Fix first argument
24225 to flow_loop_nested_p when moving the loop upward.
24226
24227 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
24228
24229 PR target/47719
24230 * arm.md (movhi_insn_arch4): Accept any immediate constant.
24231
24232 2011-03-05 Jakub Jelinek <jakub@redhat.com>
24233
24234 PR tree-optimization/47967
24235 * ipa-cp.c (build_const_val): Return NULL instead of creating
24236 VIEW_CONVERT_EXPR for mismatching sizes.
24237 (ipcp_create_replace_map): Return NULL if build_const_val failed.
24238 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24239 give up on versioning.
24240
24241 2011-03-05 Alan Modra <amodra@gmail.com>
24242
24243 PR target/47986
24244 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24245 full cmodel medium/large lo_sum + high addresses.
24246
24247 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24248
24249 * config/s390/s390.c (s390_decompose_address): Reject non-literal
24250 pool references in UNSPEC_LTREL_OFFSET.
24251
24252 2011-03-04 Jan Hubicka <jh@suse.cz>
24253
24254 PR lto/47497
24255 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24256 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24257 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24258 Add node pointers.
24259 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24260 cgraph_add_thunk): Add node pointers.
24261 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24262 associated to right node.
24263 (input_node): Update use of cgraph_same_body_alias
24264 and cgraph_add_thunk.
24265
24266 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
24267
24268 * config/i386/i386.opt (mprefer-avx128): New flag.
24269 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24270 modes when the flag -mprefer-avx128 is on.
24271
24272 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
24273
24274 * dwarf2out.c (compare_loc_operands): Fix address handling.
24275
24276 2011-03-04 Alan Modra <amodra@gmail.com>
24277
24278 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24279
24280 2011-03-04 Richard Guenther <rguenther@suse.de>
24281
24282 PR middle-end/47968
24283 * expmed.c (extract_bit_field_1): Prefer vector modes that
24284 vec_extract patterns can handle.
24285
24286 2011-03-04 Richard Guenther <rguenther@suse.de>
24287
24288 PR middle-end/47975
24289 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24290
24291 2011-03-04 Richard Henderson <rth@redhat.com>
24292
24293 * explow.c (emit_stack_save): Remove 'after' parameter.
24294 (emit_stack_restore): Likewise.
24295 * expr.h: Update to match.
24296 * builtins.c, calls.c, stmt.c: Likewise.
24297 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24298 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24299 * function.c (expand_function_end): Insert the emit_stack_save
24300 sequence before parm_birth_insn instead of after.
24301
24302 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
24303
24304 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
24305 (ssse3_pmaddubsw128): Ditto.
24306 (ssse3_pmaddubsw): Ditto.
24307
24308 2011-03-03 Steve Ellcey <sje@cup.hp.com>
24309
24310 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
24311
24312 2011-03-03 Jakub Jelinek <jakub@redhat.com>
24313
24314 PR c/47963
24315 * gimplify.c (omp_add_variable): Only call omp_notice_variable
24316 on TYPE_SIZE_UNIT if it is a DECL.
24317
24318 PR debug/47283
24319 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
24320 first operand is not is_gimple_mem_ref_addr, try to fold it.
24321 If the operand still isn't is_gimple_mem_ref_addr, clear
24322 MEM_EXPR on op0.
24323
24324 2011-03-03 Richard Guenther <rguenther@suse.de>
24325
24326 PR middle-end/47283
24327 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
24328 match comment.
24329 (refs_may_alias_p_1): For release branches return true if
24330 we are confused by our input.
24331
24332 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24333
24334 * config/s390/s390.c (s390_function_value): Rename to ...
24335 (s390_function_and_libcall_value): ... this.
24336 (s390_function_value): New function.
24337 (s390_libcall_value): New function.
24338 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
24339 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
24340 target macro definitions.
24341 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
24342
24343 2011-03-02 Joseph Myers <joseph@codesourcery.com>
24344
24345 * config/i386/freebsd64.h (CC1_SPEC): Define.
24346 * config/i386/linux64.h (CC1_SPEC): Define.
24347 * config/i386/x86-64.h (CC1_SPEC): Don't define.
24348
24349 2011-03-02 Anatoly Sokolov <aesok@post.ru>
24350
24351 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24352 Remove.
24353 * config/stormy16/stormy16.c: Include reload.h.
24354 (xstormy16_memory_move_cost): New function.
24355 (TARGET_MEMORY_MOVE_COST): Define.
24356
24357 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
24358
24359 PR rtl-optimization/47925
24360 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
24361 with side effects. Remove the more-specific check for volatile asms.
24362
24363 2011-03-02 Alan Modra <amodra@gmail.com>
24364
24365 PR target/47935
24366 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
24367 toc relative addresses for valid offsets.
24368
24369 2011-03-01 Richard Guenther <rguenther@suse.de>
24370
24371 PR tree-optimization/47890
24372 * tree-vect-loop.c (get_initial_def_for_induction): Set
24373 related stmt properly.
24374
24375 2011-03-01 Richard Guenther <rguenther@suse.de>
24376
24377 PR lto/47924
24378 * lto-streamer.c (lto_record_common_node): Also register
24379 the canonical type.
24380
24381 2011-03-01 Richard Guenther <rguenther@suse.de>
24382
24383 PR lto/46911
24384 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24385 Do not stream DECL_ABSTRACT_ORIGIN.
24386 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24387 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24388 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24389 Do not stream DECL_ABSTRACT_ORIGIN.
24390 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24391 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24392
24393 2011-02-28 Anatoly Sokolov <aesok@post.ru>
24394
24395 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
24396 FUNCTION_VALUE_REGNO_P): Remove.
24397 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
24398 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
24399 Add 'outgoing' argument.
24400 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
24401 function.
24402 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24403 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24404
24405 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
24406
24407 PR debug/28047
24408 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
24409 (lookup_filename): Likewise.
24410 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
24411
24412 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
24413 Jakub Jelinek <jakub@redhat.com>
24414
24415 PR middle-end/47893
24416 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
24417 (assign_stack_local_1): Change last argument type to int.
24418 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
24419 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
24420 don't record padding space into frame_space_list nor use those areas.
24421 (assign_stack_local): Adjust caller.
24422 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
24423 of assign_stack_local, pass 0 as last argument.
24424 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
24425 callers.
24426
24427 2011-02-28 Jakub Jelinek <jakub@redhat.com>
24428
24429 PR debug/47283
24430 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
24431 Use target address_mode and pointer_mode hooks instead of hardcoded
24432 Pmode and ptr_mode. Handle some simple cases of extending if
24433 POINTERS_EXTEND_UNSIGNED < 0.
24434 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
24435 Call convert_debug_memory_address.
24436 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
24437 convert_debug_memory_address.
24438
24439 PR middle-end/46790
24440 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
24441 * configure: Regenerated.
24442 * config.in: Regenerated.
24443 * varasm.c (default_function_section): Return NULL
24444 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
24445
24446 2011-02-28 Martin Jambor <mjambor@suse.cz>
24447
24448 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
24449 the description to match the printed values.
24450
24451 2011-02-28 Richard Guenther <rguenther@suse.de>
24452
24453 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
24454 of the copied scope tree.
24455
24456 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24457
24458 * doc/extend.texi (Function Attributes): Avoid deeply (and
24459 wrongly) nested tables.
24460
24461 2011-02-27 Jakub Jelinek <jakub@redhat.com>
24462
24463 PR middle-end/47903
24464 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
24465 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
24466 r isn't op0 nor op1.
24467
24468 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24469
24470 * config/avr/avr.md: Remove magic comment for emacs.
24471
24472 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24473
24474 PR target/45261
24475 * config/avr/avr.c (avr_option_override): Use error on bad options.
24476 (avr_help): New function.
24477 (TARGET_HELP): Define.
24478
24479 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
24480
24481 PR target/42240
24482 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
24483 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
24484
24485 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
24486
24487 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
24488 (ARM Options): Ditto.
24489 (i386 and x86-64 Options): Ditto.
24490 (RX Options): Ditto.
24491 (SPARC Options): Ditto.
24492
24493 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
24494
24495 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
24496 FreeBSD 6 and later. Generally use cpu generic.
24497
24498 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
24499
24500 * doc/cpp.texi: Update copyright years.
24501
24502 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
24503
24504 PR target/46898
24505 * config/lm32/lm32.md (ashrsi3): Added needed variable.
24506
24507 2011-02-25 Jon Beniston <jon@beniston.com>
24508
24509 PR target/46898
24510 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
24511 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
24512 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
24513 (lm32_block_move_inline): Add type cast to remove warning.
24514 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
24515 (gen_int_relational): Move declarations to start of function.
24516
24517 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
24518
24519 PR tree-optimization/45470
24520 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
24521 can throw internally only.
24522 * tree-vect-stmts.c (vectorizable_call): Likewise.
24523
24524 2011-02-24 Anatoly Sokolov <aesok@post.ru>
24525
24526 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
24527 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24528 * config/stormy16/stormy16-protos.h
24529 (xstormy16_preferred_reload_class): Remove.
24530 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24531 static. Change 'rclass' argument and return type to reg_class_t.
24532 (TARGET_PREFERRED_RELOAD_CLASS,
24533 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24534
24535 2011-02-24 Richard Guenther <rguenther@suse.de>
24536
24537 * lto-streamer-in.c (input_bb): Do not find referenced vars
24538 in debug statements.
24539
24540 2011-02-23 Jason Merrill <jason@redhat.com>
24541
24542 * common.opt (fabi-version): Document v5 and v6.
24543
24544 2011-02-23 Richard Guenther <rguenther@suse.de>
24545
24546 PR tree-optimization/47849
24547 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24548
24549 2011-02-23 Jie Zhang <jie@codesourcery.com>
24550
24551 * opts-common.c (decode_cmdline_option): Print empty string
24552 argument as "" in decoded->orig_option_with_args_text.
24553 * gcc.c (execute): Print empty string argument as ""
24554 in the verbose output.
24555 (do_spec_1): Keep empty string argument.
24556
24557 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
24558
24559 * config.gcc: Declare score-* and crx-* obsolete.
24560
24561 2011-02-23 Jie Zhang <jie@codesourcery.com>
24562
24563 PR rtl-optimization/47763
24564 * web.c (web_main): Ignore naked clobber when replacing register.
24565
24566 2011-02-22 Anatoly Sokolov <aesok@post.ru>
24567
24568 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24569 Remove.
24570
24571 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
24572
24573 PR doc/47848
24574 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24575
24576 2011-02-22 Mike Stump <mikestump@comcast.net>
24577
24578 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24579 assembler.
24580 * configure: Regenerate.
24581
24582 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
24583
24584 PR rtl-optimization/46002
24585 * ira-color.c (update_copy_costs): Change class intersection
24586 test to reg_class_contents[] test of 'hard_regno'.
24587
24588 2011-02-21 Joseph Myers <joseph@codesourcery.com>
24589
24590 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24591 than Driver option.
24592 * config/hpux11.opt (mt): Likewise.
24593 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24594 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24595 * config/vax/elf.opt (mno-asm-pic): Likewise.
24596 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24597
24598 2011-02-21 Mike Stump <mikestump@comcast.net>
24599
24600 PR target/47822
24601 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24602 tree so we can get save the type.
24603 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24604 for CFString instead of trying to use past the end of the builtins.
24605 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24606 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24607 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24608 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24609 Rename to darwin_builtin_cfstring.
24610 (darwin_init_cfstring_builtins): Return the built type.
24611
24612 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
24613
24614 PR target/47840
24615 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24616 (_mm256_insert_epi64): Use _mm_insert_epi64.
24617
24618 2011-02-21 Anatoly Sokolov <aesok@post.ru>
24619
24620 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24621 * config/stormy16/stormy16-protos.h
24622 (xstormy16_mode_dependent_address_p): Remove.
24623 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24624 Make static. Change return type to bool. Change argument type to
24625 const_rtx. Remove dead code.
24626 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24627
24628 2011-02-21 Richard Guenther <rguenther@suse.de>
24629
24630 PR lto/47820
24631 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24632 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24633 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24634 TUs context.
24635 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24636 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24637
24638 2011-02-20 Richard Guenther <rguenther@suse.de>
24639
24640 PR lto/47822
24641 * tree.c (free_lang_data_in_decl): Clean builtins from
24642 the TU decl BLOCK_VARS.
24643
24644 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
24645
24646 PR debug/47620
24647 PR debug/47630
24648 * haifa-sched.c (fix_tick_ready): Skip tick computation
24649 for debug insns.
24650
24651 2011-02-19 Richard Guenther <rguenther@suse.de>
24652
24653 PR lto/47647
24654 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24655 Remove lazy BLOCK_VARS streaming.
24656 (lto_input_ts_block_tree_pointers): Likewise.
24657 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24658
24659 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24660
24661 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24662
24663 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24664
24665 * config/i386/biarch32.h, config/i386/mach.h,
24666 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24667
24668 2011-02-19 Jakub Jelinek <jakub@redhat.com>
24669
24670 PR target/47800
24671 * config/i386/i386.md (peephole2 for shift and plus): Use
24672 operands[1] original mode in the first insn.
24673
24674 2011-02-18 Mike Stump <mikestump@comcast.net>
24675
24676 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24677
24678 2011-02-18 Jan Hubicka <jh@suse.cz>
24679
24680 PR middle-end/47788
24681 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24682 to zero when the function is not inlinable at all.
24683
24684 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24685
24686 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24687 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24688 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24689 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24690 * config/pa/t-pa64: Likewise.
24691 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24692
24693 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24694
24695 PR driver/47787
24696 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24697
24698 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24699
24700 PR target/47792
24701 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24702
24703 2011-02-18 Anatoly Sokolov <aesok@post.ru>
24704
24705 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24706 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24707 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24708 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24709 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24710 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24711 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24712 m32r_load_postinc_p, m32r_store_preinc_predec_p,
24713 m32r_legitimate_address_p): New functions.
24714 * config/m32r/constraints.md (constraint "S"): Don't use
24715 STORE_PREINC_PREDEC_P.
24716 (constraint "U"): Don't use LOAD_POSTINC_P.
24717
24718 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
24719
24720 PR rtl-optimization/46178
24721 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24722 compute ira_hard_regno_cover_class[].
24723
24724 2011-02-18 Richard Guenther <rguenther@suse.de>
24725
24726 PR lto/47798
24727 * lto-streamer.h (lto_global_var_decls): Declare.
24728 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24729 statics for global var processing.
24730
24731 2011-02-18 Richard Guenther <rguenther@suse.de>
24732
24733 PR tree-optimization/47737
24734 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24735 edge dominance check.
24736
24737 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24738
24739 PR debug/47780
24740 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24741 avoid invalid rtx sharing.
24742
24743 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
24744
24745 * doc/cpp.texi (Obsolete Features): Add background on the
24746 origin of assertions.
24747
24748 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
24749
24750 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24751 objc_abi == 2.
24752 * config/darwin.c (output_objc_section_asm_op): Added support for
24753 ABI v1 and v2.
24754 (is_objc_metadata): New.
24755 (darwin_objc2_section): New.
24756 (darwin_objc1_section): New.
24757 (machopic_select_section): Added support for ABI v1 and v2.
24758 (darwin_emit_objc_zeroed): New.
24759 (darwin_output_aligned_bss): Detect objc metadata and treat it
24760 appropriately.
24761 (darwin_asm_output_aligned_decl_common): Same.
24762 (darwin_asm_output_aligned_decl_local): Same.
24763 * config/darwin-sections.def: Updated for ABI v1 and v2.
24764 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
24765 compiling Objective-C code for the NeXT runtime, default to using
24766 ABI version 0 for 32-bit, and version 2 for 64-bit.
24767
24768 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24769
24770 * common.opt (optimize_fast): New Variable.
24771 * opts.c (default_options_optimization): Use opts->x_optimize_fast
24772 instead of local variable ofast.
24773
24774 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
24775
24776 * doc/invoke.texi (fobjc-abi-version): Documented.
24777 (fobjc-nilcheck): Documented.
24778 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
24779 version.
24780
24781 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24782
24783 PR driver/47390
24784 * common.opt (export-dynamic): New Driver option.
24785 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
24786
24787 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24788
24789 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
24790
24791 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
24792 Jan Hubicka <jh@suse.cz>
24793
24794 PR debug/47106
24795 PR debug/47402
24796 * cfgexpand.c (account_used_vars_for_block): Remove.
24797 (estimated_stack_frame_size): Use referenced vars.
24798 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
24799 that were referenced in the original function. Test src_fn
24800 rather than cfun. Drop redundant get_var_ann.
24801 (setup_one_parameter): Drop redundant get_var_ann.
24802 (declare_return_variable): Likewise.
24803 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
24804 (copy_arguments_for_versioning): Drop redundant get_var_ann.
24805 * ipa-inline.c (compute_inline_parameters): Do not compute
24806 disregard_inline_limits here.
24807 (compute_inlinable_for_current, pass_inlinable): New.
24808 (pass_inline_parameters): Require PROP_referenced_vars.
24809 * cgraphunit.c (cgraph_process_new_functions): Don't run
24810 compute_inline_parameters explicitly unless function is in SSA form.
24811 (cgraph_analyze_function): Set .disregard_inline_limits.
24812 * tree-sra.c (convert_callers): Compute inliner parameters
24813 only for functions already in SSA form.
24814
24815 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24816
24817 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24818 -mlittle-endian-data.
24819
24820 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24821
24822 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24823 -mno-fpu, not -fpu and -no-fpu.
24824 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24825 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24826
24827 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
24828
24829 PR target/43653
24830 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24831 input reload with PLUS RTX.
24832
24833 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24834
24835 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24836 of InverseVar(MDMX).
24837
24838 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24839
24840 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24841 --m4-340.
24842
24843 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24844
24845 * config/mn10300/mn10300.opt (mno-crt0): New.
24846
24847 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24848
24849 * config/m68k/uclinux.opt (static-libc): New Driver option.
24850
24851 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24852
24853 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24854
24855 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24856
24857 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24858 %{muser-extend-enabled}.
24859
24860 2011-02-16 Richard Guenther <rguenther@suse.de>
24861
24862 PR tree-optimization/47738
24863 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24864 the TODO from tree_predictive_commoning.
24865
24866 2011-02-15 Jeff Law <law@redhat.com>
24867
24868 Revert
24869 2011-01-25 Jeff Law <law@redhat.com>
24870
24871 PR rtl-optimization/37273
24872 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24873 handle them like argument loads from stack slots. Do not double
24874 count memory for memory constants and argument loads from stack slots.
24875
24876 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
24877
24878 PR target/47755
24879 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24880 mode for vector constants. Remove code that checks for TImode.
24881
24882 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24883
24884 PR debug/47106
24885 PR debug/47402
24886 * cgraph.h (compute_inline_parameters): Return void.
24887 * ipa-inline.c (compute_inline_parameters): Adjust.
24888
24889 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24890
24891 PR debug/47106
24892 PR debug/47402
24893 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24894 rather than decl.
24895 * cfgexpand.c (estimated_stack_frame_size): Likewise.
24896 * ipa-inline.c (compute_inline_parameters): Adjust.
24897
24898 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24899
24900 PR debug/47106
24901 PR debug/47402
24902 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24903 Adjust all users. Pass FN to...
24904 * tree-flow-inline.h (first_referenced_var): ... this. Add
24905 fn argument.
24906 * ipa-struct-reorg.c: Adjust.
24907 * tree-dfa.c: Adjust.
24908 * tree-into-ssa.c: Adjust.
24909 * tree-sra.c: Adjust.
24910 * tree-ssa-alias.c: Adjust.
24911 * tree-ssa-live.c: Adjust.
24912 * tree-ssa.c: Adjust.
24913 * tree-ssanames.c: Adjust.
24914 * tree-tailcall.c: Adjust.
24915
24916 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24917
24918 PR debug/47106
24919 PR debug/47402
24920 * tree-flow.h (referenced_var_lookup): Add fn parameter.
24921 Adjust all callers.
24922 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
24923 * tree-flow-inline.h: Adjust.
24924 * gimple-pretty-print.c: Adjust.
24925 * tree-into-ssa.c: Adjust.
24926 * tree-ssa.c: Adjust.
24927 * cfgexpand.c: Adjust.
24928
24929 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24930
24931 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
24932 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24933 (EXTRA_CONSTRAINT): Delete.
24934 * config/iq2000/constraints.md: New file.
24935 * config/iq2000/iq2000.md: Include it.
24936 (define_insn ""): Delete.
24937 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
24938 unsupported constraint letters from patterns.
24939 (call_value, call_value_internal1): Likewise.
24940 (call_value_multiple_internal1): Likewise.
24941
24942 2011-02-15 Nick Clifton <nickc@redhat.com>
24943
24944 * config/mn10300/mn10300.c: Include tm-constrs.h.
24945 (struct liw_data): New data structure describing an LIW candidate
24946 instruction.
24947 (extract_bundle): Use struct liw_data. Allow small integer
24948 operands for some instructions.
24949 (check_liw_constraints): Use struct liw_data. Remove swapped
24950 parameter. Add comments describing the checks. Fix bug when
24951 assigning the source of liw1 to the source of liw2.
24952 (liw_candidate): Delete. Code moved into extract_bundle.
24953 (mn10300_bundle_liw): Use struct liw_data. Check constraints
24954 before swapping.
24955 * config/mn10300/predicates.md (liw_operand): New predicate.
24956 Allows registers and small integer constants.
24957 * config/mn10300/constraints.md (O): New constraint. Accetps
24958 integers in the range -8 to +7 inclusive.
24959 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
24960 for moving a small integer into a register. Give this alternative
24961 LIW attributes.
24962 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
24963 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
24964 using the J,K,L and M constraints,
24965 (liw): Remove SI mode on second operands to allow for HI and QI
24966 mode values.
24967 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
24968 instruction.
24969
24970 2011-02-15 Richard Guenther <rguenther@suse.de>
24971
24972 PR tree-optimization/47743
24973 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
24974 for a non-type-compatible VN lookup bail out.
24975
24976 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24977
24978 * config/fr30/constraints.md: New file.
24979 * config/fr30/fr30.md: Include it.
24980 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
24981 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24982 (EXTRA_CONSTRAINT): Delete.
24983
24984 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
24985
24986 * config/frv/constraints.md: New file.
24987 * config/frv/predicates.md: Include it.
24988 * config/frv/frv.c (reg_class_from_letter): Delete.
24989 (frv_option_override): Don't initialize it.
24990 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
24991 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
24992 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
24993 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
24994 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
24995 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
24996 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
24997 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
24998 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
24999 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
25000 (REG_CLASS_FROM_CONSTRAINT): Delete.
25001
25002 2011-02-15 Jakub Jelinek <jakub@redhat.com>
25003
25004 PR middle-end/47581
25005 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
25006 if frame size is 0 in a leaf function.
25007
25008 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25009
25010 PR pch/14940
25011 * config/alpha/host-osf.c: New file.
25012 * config/alpha/x-osf: New file.
25013 * config.host (alpha*-dec-osf*): Use it.
25014
25015 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25016
25017 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25018 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
25019 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
25020 (rx_mode_dependent_address_p): ...this. Make static. Change argument
25021 type to const_rtx.
25022 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25023
25024 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25025
25026 * config/stormy16/constraints.md: New file.
25027 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
25028 Use satisfies_constraint_Q and satisfies_constraint_R.
25029 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
25030 Delete.
25031 (xstormy16_legitiamte_address_p): Declare.
25032 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
25033 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25034 (EXTRA_CONSTRAINT): Delete.
25035 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
25036 Un-staticize.
25037 (xstormy16_extra_constraint_p): Delete.
25038
25039 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
25040
25041 PR tree-optimization/46494
25042 * loop-unroll.c (split_edge_and_insert): Adjust comment.
25043 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
25044 (pass_rtl_loop_done): Add TODO_verify_flow.
25045 * fwprop.c (pass_rtl_fwprop): Likewise.
25046 * modulo-sched.c (pass_sms): Likewise.
25047 * tree-ssa-dom.c (pass_dominator): Likewise.
25048 * tree-ssa-loop-ch.c (pass_ch): Likewise.
25049 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
25050 (pass_tree_loop_done): Likewise.
25051 * tree-ssa-pre.c (execute_pre): Likewise.
25052 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
25053 * tree-ssa-sink.c (pass_sink_code): Likewise.
25054 * tree-vrp.c (pass_vrp): Likewise.
25055
25056 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25057
25058 * config/v850/constraints.md: New file.
25059 * config/v850/v850.md: Include it.
25060 * config/v850/predicates.md (reg_or_0_operand): Use
25061 satisfies_constraint_G.
25062 (special_symbolref_operand): Use satisfies_constraint_K.
25063 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
25064 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
25065 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
25066 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25067 (EXTRA_CONSTRAINT): Delete.
25068 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
25069 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
25070 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
25071
25072 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25073
25074 PR target/47696
25075 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
25076 description.
25077
25078 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25079
25080 * config/mcore/constraints.md: New file.
25081 * config/mcore/mcore.md: Include it.
25082 * config/mcore/mcore.c (reg_class_from_letter): Delete.
25083 * config/mcore/mcore.h (reg_class_from_letter): Delete.
25084 (REG_CLASS_FROM_LETTER): Delete.
25085 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
25086 insn_const_int_ok_for_constraint.
25087 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
25088 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
25089 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25090 (EXTRA_CONSTRAINT): Delete.
25091
25092 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25093
25094 PR ada/41929
25095 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
25096 (IS_SIGHANDLER): Define.
25097 (sparc64_is_sighandler): New function, split off from
25098 sparc64_fallback_frame_state.
25099 (sparc_is_sighandler): New function, split off from
25100 sparc_fallback_frame_state.
25101 (sparc64_fallback_frame_state): Merge with ...
25102 (sparc_fallback_frame_state): ... this into ...
25103 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
25104 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
25105 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
25106 stack instead of hardcoded offsets.
25107
25108 2011-02-14 Andriy Gapon <avg@freebsd.org>
25109
25110 PR target/45808
25111 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
25112
25113 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25114
25115 * configure: Regenerate.
25116
25117 2011-02-12 Joseph Myers <joseph@codesourcery.com>
25118
25119 PR driver/45731
25120 * gcc.c (asm_options): Correct spec matching --target-help.
25121
25122 2011-02-12 Martin Jambor <mjambor@suse.cz>
25123
25124 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
25125 to gimple call error.
25126
25127 2011-02-12 Mike Stump <mikestump@comcast.net>
25128
25129 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
25130 comments in backslash regions.
25131
25132 2011-02-12 Mike Stump <mikestump@comcast.net>
25133 Jakub Jelinek <jakub@redhat.com>
25134 Iain Sandoe <iains@gcc.gnu.org>
25135
25136 PR target/47324
25137 * dwarf2out.c (output_cfa_loc): When required, apply the
25138 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
25139 (output_loc_sequence): Likewise.
25140 (output_loc_operands_raw): Likewise.
25141 (output_loc_sequence_raw): Likewise.
25142 (output_cfa_loc): Likewise.
25143 (output_loc_list): Suppress register number adjustment when
25144 calling output_loc_sequence()
25145 (output_die): Likewise.
25146
25147 2011-02-12 Anatoly Sokolov <aesok@post.ru>
25148
25149 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25150 Remove macros.
25151 * config/xtensa/xtensa.c (xtensa_register_move_cost,
25152 xtensa_memory_move_cost): New functions.
25153 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
25154
25155 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
25156
25157 PR lto/47225
25158 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
25159 in the current directory.
25160 * configure: Rebuilt.
25161
25162 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25163
25164 * config/darwin.c (darwin_override_options): Add a hunk missed
25165 from the commit of r168571. Trim comment line lengths and
25166 correct indents of the preceding block.
25167
25168 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25169
25170 * gcc.c (driver_handle_option): Concatenate the argument to -F with
25171 the switch.
25172
25173 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25174
25175 * common.opt (nostartfiles): New Driver option.
25176
25177 2011-02-11 Xinliang David Li <davidxl@google.com>
25178
25179 PR tree-optimization/47707
25180 * tree-chrec.c (convert_affine_scev): Keep type precision.
25181
25182 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
25183
25184 PR tree-optimization/47420
25185 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
25186
25187 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
25188
25189 PR rtl-optimization/47614
25190 * rtl.h (check_for_inc_dec): Declare.
25191 * dse.c (check_for_inc_dec): Externalize...
25192 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
25193 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
25194
25195 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25196
25197 PR driver/47678
25198 * gcc.c (main): Do not compile inputs if there were errors in
25199 option handling.
25200 * opts-common.c (read_cmdline_option): Check for wrong language
25201 after other error checks.
25202
25203 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
25204
25205 * cgraph.c: Fix comment typos.
25206 * cgraph.h: Likewise.
25207 * cgraphunit.c: Likewise.
25208 * ipa-cp.c: Likewise.
25209 * ipa-inline.c: Likewise.
25210 * ipa-prop.c: Likewise.
25211 * ipa-pure-const.c: Likewise.
25212 * ipa-ref.c: Likewise.
25213 * ipa-reference.c: Likewise.
25214
25215 2011-02-11 Jakub Jelinek <jakub@redhat.com>
25216
25217 PR debug/47684
25218 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
25219
25220 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25221
25222 PR testsuite/47400
25223 * doc/sourcebuild.texi (Require Support): Document
25224 dg-require-ascii-locale.
25225
25226 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
25227
25228 * doc/lto.texi (Write summary): Fix missing parentheses.
25229
25230 2011-02-10 DJ Delorie <dj@redhat.com>
25231
25232 * config/m32c/m32c.c (m32c_option_override): Disable
25233 -fcombine-stack-adjustments until flag value tracking and compare
25234 optimization can be rewritten.
25235
25236 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
25237
25238 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25239 PROCESSOR_POWER7.
25240 (PROCESSOR_DEFAULT64): Likewise.
25241
25242 2011-02-10 Richard Henderson <rth@redhat.com>
25243
25244 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25245 change from 2011-02-03.
25246 * config/rx/rx.c (flags_from_code): Likewise.
25247 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25248 is valid, n/pz otherwise.
25249 (rx_select_cc_mode): Return CCmode if Y is not zero.
25250
25251 2011-02-10 Richard Guenther <rguenther@suse.de>
25252
25253 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25254
25255 2011-02-10 Richard Guenther <rguenther@suse.de>
25256
25257 PR tree-optimization/47677
25258 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25259
25260 2011-02-10 Jakub Jelinek <jakub@redhat.com>
25261
25262 PR target/47665
25263 * combine.c (make_compound_operation): Only change shifts into
25264 multiplication for SCALAR_INT_MODE_P.
25265
25266 2011-02-10 Jie Zhang <jie@codesourcery.com>
25267
25268 PR testsuite/47622
25269 Revert
25270 2011-02-05 Jie Zhang <jie@codesourcery.com>
25271 PR debug/42631
25272 * web.c (entry_register): Don't clobber the number of the
25273 first uninitialized reference in used[].
25274
25275 2011-02-09 Richard Guenther <rguenther@suse.de>
25276
25277 PR tree-optimization/47664
25278 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25279 all edges again.
25280
25281 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
25282
25283 PR target/46481
25284 PR target/47032
25285 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25286 PROCESSOR_POWER7.
25287 (PROCESSOR_DEFAULT64): Same.
25288 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25289
25290 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25291
25292 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25293
25294 2011-02-09 Martin Jambor <mjambor@suse.cz>
25295
25296 PR middle-end/45505
25297 * tree-sra.c (struct access): New flags grp_scalar_read and
25298 grp_scalar_write. Changed description of assignment read and write
25299 flags.
25300 (dump_access): Dump new flags, reorder all of them.
25301 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25302 to detect multiple scalar reads.
25303 (analyze_access_subtree): Use the new scalar read write flags instead
25304 of the old flags. Adjusted comments.
25305
25306 2011-02-08 DJ Delorie <dj@redhat.com>
25307
25308 PR target/47548
25309 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
25310 patterns.
25311
25312 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25313
25314 * config/m68k/uclinux.opt: New.
25315 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
25316
25317 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25318
25319 * config/cris/elf.opt (sim): New Driver option.
25320
25321 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25322
25323 * config/xtensa/elf.opt: New.
25324 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
25325
25326 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25327
25328 * config/vax/elf.opt: New.
25329 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
25330
25331 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25332
25333 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
25334
25335 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25336
25337 * config/gnu-user.opt: New.
25338 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
25339 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
25340 *-*-uclinux*): Use gnu-user.opt.
25341
25342 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
25343
25344 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
25345 * config/i386/gnu.h (CPP_SPEC): Likewise.
25346
25347 2011-02-08 Ian Lance Taylor <iant@google.com>
25348
25349 * common.opt (fcx-limited-range): Add SetByCombined flag.
25350 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
25351 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
25352 (fassociative-math, freciprocal-math): Likewise.
25353 (funsafe-math-optimizations): Likewise.
25354 * opth-gen.awk: Handle SetByCombined.
25355 * optc-gen.awk: Likewise.
25356 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
25357 (set_unsafe_math_optimizations_flags): Likewise.
25358 * doc/options.texi (Option properties): Document SetByCombined.
25359
25360 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25361
25362 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
25363 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
25364 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
25365 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
25366 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
25367
25368 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
25369
25370 PR tree-optimization/46834
25371 PR tree-optimization/46994
25372 PR tree-optimization/46995
25373 * graphite-sese-to-poly.c (used_outside_reduction): New.
25374 (detect_commutative_reduction): Call used_outside_reduction.
25375 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
25376 translate_scalar_reduction_to_array only when at least one
25377 loop-phi/close-phi tuple has been detected.
25378
25379 2011-02-08 Richard Guenther <rguenther@suse.de>
25380
25381 PR middle-end/47639
25382 * tree-vect-generic.c (expand_vector_operations_1): Update
25383 stmts here ...
25384 (expand_vector_operations): ... not here. Cleanup EH info
25385 and the CFG if required.
25386
25387 2011-02-08 Richard Guenther <rguenther@suse.de>
25388
25389 PR tree-optimization/47641
25390 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
25391 require type compatibility.
25392
25393 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25394
25395 * gimple-low.c (lower_function_body): Don't remove the location of
25396 the return statement here.
25397 (lower_gimple_return): Do it here instead but only if the return
25398 statement is actually used twice.
25399
25400 2011-02-08 Richard Guenther <rguenther@suse.de>
25401
25402 PR tree-optimization/47632
25403 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
25404 unused up_to_stmt parameter, return whether cfg-cleanup is
25405 necessary, remove EH info properly.
25406 (forward_propagate_into_gimple_cond): Adjust caller.
25407 (forward_propagate_into_cond): Likewise.
25408 (forward_propagate_comparison): Likewise.
25409 (tree_ssa_forward_propagate_single_use_vars): Make
25410 forward_propagate_comparison case similar to the two others.
25411
25412 2011-02-08 Nick Clifton <nickc@redhat.com>
25413
25414 * config/mn10300/mn10300.opt (mliw): New command line option.
25415 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
25416 (liw_bundling): New automaton.
25417 (liw): New attribute.
25418 (liw_op): New attribute.
25419 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
25420 (movsi_internal): Add LIW attributes.
25421 (andsi3): Likewise.
25422 (iorsi3): Likewise.
25423 (xorsi3): Likewise.
25424 (addsi3): Separate register and immediate alternatives.
25425 Add LIW attributes.
25426 (subsi3): Likewise.
25427 (cmpsi): Likewise.
25428 (aslsi3): Likewise.
25429 (lshrsi3): Likewise.
25430 (ashrsi3): Likewise.
25431 (liw): New pattern.
25432 * config/mn10300/mn10300.c (liw_op_names): New
25433 (mn10300_print_operand): Handle 'W' operand descriptor.
25434 (extract_bundle): New function.
25435 (check_liw_constraints): New function.
25436 (liw_candidate): New function.
25437 (mn10300_bundle_liw): New function.
25438 (mn10300_reorg): New function.
25439 (TARGET_MACHINE_DEPENDENT_REORG): Define.
25440 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
25441 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
25442 __LIW__ or __NO_LIW__.
25443 * doc/invoke.texi: Describe the -mliw command line option.
25444
25445 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25446
25447 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
25448 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25449 pthread_mutex_unlock): Remove.
25450 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
25451 * config/pa/t-pa64: Likewise.
25452 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
25453 shared libc if not linking against libpthread.
25454 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25455
25456 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
25457
25458 PR target/47558
25459 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
25460 on 10.6 and later to ensure that we always use the unwinder from
25461 the system. Only add -no_compact_unwind when tarteting darwin
25462 10.6 or later.
25463
25464 2011-02-07 Steve Ellcey <sje@cup.hp.com>
25465
25466 PR target/46997
25467 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
25468 (vec_interleave_lowv2sf): Ditto.
25469 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
25470 (vec_extract_oddv2sf): Ditto.
25471
25472 2011-02-07 Mike Stump <mikestump@comcast.net>
25473
25474 PR target/42333
25475 Add __ieee_divdc3 entry point.
25476 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
25477 entry point.
25478 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
25479 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
25480 * config/darwin.c (darwin_rename_builtins): Add.
25481 * config/darwin-protos.h (darwin_rename_builtins): Add.
25482
25483 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
25484
25485 PR target/47636
25486 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
25487 for the condition.
25488
25489 2011-02-07 Mike Stump <mikestump@comcast.net>
25490
25491 * config/darwin.opt (mmacosx-version-min): Update default OS version.
25492
25493 2011-02-07 Denis Chertykov <chertykov@gmail.com>
25494
25495 PR target/47534
25496 * config/avr/libgcc.S (exit): Move .endfunc
25497
25498 2011-02-07 Richard Guenther <rguenther@suse.de>
25499
25500 PR tree-optimization/47615
25501 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
25502 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
25503 (run_scc_vn): Initialize it.
25504 (visit_reference_op_load): Use it.
25505 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
25506
25507 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25508
25509 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
25510 DImode trapping arithmetic libfuncs.
25511
25512 2011-02-07 Richard Guenther <rguenther@suse.de>
25513
25514 PR tree-optimization/47621
25515 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
25516 two duplicates ...
25517 (execute_update_addresses_taken): ... here. Make it more
25518 conservative in what we accept.
25519
25520 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25521
25522 * config/sparc/freebsd.h (ASM_SPEC): Define.
25523 * config/sparc/vxworks.h (ASM_SPEC): Define.
25524
25525 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25526
25527 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25528
25529 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
25530
25531 * doc/invoke.texi: Remove reference to compiler internals from
25532 user documentation.
25533
25534 * reg-notes.def: Remove REG_VALUE_PROFILE.
25535 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25536
25537 2011-02-05 Jakub Jelinek <jakub@redhat.com>
25538
25539 PR middle-end/47610
25540 * varasm.c (default_section_type_flags): If decl is NULL,
25541 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25542
25543 2011-02-05 Jie Zhang <jie@codesourcery.com>
25544
25545 PR debug/42631
25546 * web.c (entry_register): Don't clobber the number of the
25547 first uninitialized reference in used[].
25548
25549 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
25550
25551 PR tree-optimization/46194
25552 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25553 (build_classic_dist_vector_1): Do not represent classic distance
25554 vectors when the access functions are variating in different loops.
25555
25556 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25557
25558 * config/mips/iris6.opt: New.
25559 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25560
25561 2011-02-04 Richard Henderson <rth@redhat.com>
25562 Steve Ellcey <sje@cup.hp.com>
25563
25564 PR target/46997
25565 * config/ia64/predicates.md (mux1_brcst_element): New.
25566 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25567 * config/ia64/ia64.c (ia64_unpack_assemble): New.
25568 (ia64_unpack_sign): New.
25569 (ia64_expand_unpack): Rewrite using new routines.
25570 (ia64_expand_widen_sum): Ditto.
25571 (ia64_expand_dot_prod_v8qi): Ditto.
25572 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25573 routines, add endian check.
25574 (pmpy2_even): Rename from pmpy2_r, add endian check.
25575 (pmpy2_odd): Rename from pmpy2_l, add endian check.
25576 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25577 (vec_widen_smult_hi_v4hi): Ditto.
25578 (vec_widen_umult_lo_v4hi): Ditto.
25579 (vec_widen_umult_hi_v4hi): Ditto.
25580 (mulv2si3): Change endian checks.
25581 (sdot_prodv4hi): Rewrite with new calls.
25582 (udot_prodv4hi): New.
25583 (vec_pack_ssat_v4hi): Add endian check.
25584 (vec_pack_usat_v4hi): Ditto.
25585 (vec_pack_ssat_v2si): Ditto.
25586 (max1_even): Rename from max1_r, add endian check.
25587 (max1_odd): Rename from max1_l, add endian check.
25588 (*mux1_rev): Format change.
25589 (*mux1_mix): Ditto.
25590 (*mux1_shuf): Ditto.
25591 (*mux1_alt): Ditto.
25592 (*mux1_brcst_v8qi): Use new predicate.
25593 (vec_extract_evenv8qi): Remove endian check.
25594 (vec_extract_oddv8qi): Ditto.
25595 (vec_interleave_lowv4hi): Format change.
25596 (vec_interleave_highv4hi): Ditto.
25597 (mix2_even): Rename from mix2_r, add endian check.
25598 (mix2_odd): Rename from mux2_l, add endian check.
25599 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25600 (vec_extract_evenodd_helper): Format change.
25601 (vec_extract_evenv4hi): Remove endian check.
25602 (vec_extract_oddv4hi): Remove endian check.
25603 (vec_interleave_lowv2si): Format change.
25604 (vec_interleave_highv2si): Format change.
25605 (vec_initv2si): Remove endian check.
25606 (vecinit_v2si): Add endian check.
25607 (reduc_splus_v2sf): Add endian check.
25608 (reduc_smax_v2sf): Ditto.
25609 (reduc_smin_v2sf): Ditto.
25610 (vec_initv2sf): Remove endian check.
25611 (fpack): Add endian check.
25612 (fswap): Add endian check.
25613 (vec_interleave_highv2sf): Add endian check.
25614 (vec_interleave_lowv2sf): Add endian check.
25615 (fmix_lr): Add endian check.
25616 (vec_setv2sf): Format change.
25617 (*vec_extractv2sf_0_be): Use shift to extract operand.
25618 (*vec_extractv2sf_1_be): New.
25619 (vec_pack_trunc_v4hi): Add endian check.
25620 (vec_pack_trunc_v2si): Format change.
25621
25622 2011-02-04 Jakub Jelinek <jakub@redhat.com>
25623
25624 PR inline-asm/23200
25625 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
25626 do bb, locus and block comparison and disallow loads if it is not set.
25627 (stmt_is_replaceable_p): New function.
25628 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25629 callers.
25630 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25631 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25632 SSA_NAME_DEF_STMT.
25633 * tree-flow.h (stmt_is_replaceable_p): New prototype.
25634
25635 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25636
25637 * config/rs6000/xilinx.opt: New.
25638 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25639
25640 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25641
25642 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25643
25644 2011-02-03 Anatoly Sokolov <aesok@post.ru>
25645
25646 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25647 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25648 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25649 secondary_reload_info, xtensa_secondary_reload): Remove.
25650 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25651 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25652 (xtensa_preferred_reload_class): Make static. Change return and
25653 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25654 Use CONST_DOUBLE_P predicate.
25655 (xtensa_preferred_output_reload_class): New function.
25656 (xtensa_secondary_reload): Make static.
25657
25658 2011-02-03 Joseph Myers <joseph@codesourcery.com>
25659
25660 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25661 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25662 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25663
25664 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25665
25666 PR middle-end/31490
25667 * output.h (SECTION_RELRO): Define.
25668 (SECTION_MACH_DEP): Adjust.
25669 (get_variable_section): New prototype.
25670 * varpool.c (varpool_finalize_named_section_flags): New function.
25671 (varpool_assemble_pending_decls): Call it.
25672 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25673 * cgraphunit.c (cgraph_output_in_order): Call
25674 varpool_finalize_named_section_flags.
25675 * varasm.c (get_section): Allow section flags conflicts between
25676 relro and read-only sections if the section hasn't been declared yet.
25677 Set SECTION_OVERRIDE after diagnosing section type conflict.
25678 (get_variable_section): No longer static.
25679 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25680 readonly sections that need relocations.
25681 (decl_readonly_section_1): New function.
25682 (decl_readonly_section): Use it.
25683
25684 Revert:
25685 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
25686 Steve Ellcey <sje@cup.hp.com>
25687
25688 PR middle-end/31490
25689 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25690 if section attribute used.
25691
25692 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25693
25694 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25695 * config/darwin.c (SECTION_NO_ANCHOR): Define.
25696 (darwin_init_sections): Remove assertion.
25697
25698 2011-02-03 Nick Clifton <nickc@redhat.com>
25699
25700 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25701 lt and ge.
25702 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25703 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25704 instead of "n" and "pz".
25705 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25706 CC_FLAG_S.
25707
25708 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25709
25710 PR target/47312
25711 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25712 fma, expand FMA_EXPR as fma{,f,l} call.
25713
25714 PR lto/47274
25715 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25716 copy them into a unsigned char variable and pass address of it to
25717 lto_output_data_stream.
25718
25719 PR target/47564
25720 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25721 around backend_init_target and lang_dependent_init_target calls.
25722 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25723 (verify_cgraph_node): Don't call set_cfun here. Use
25724 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25725 Set error_found for incorrectly represented calls to thunks.
25726
25727 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
25728
25729 PR debug/43092
25730 PR rtl-optimization/43494
25731 * rtl.h (for_each_inc_dec_fn): New type.
25732 (for_each_inc_dec): Declare.
25733 * rtlanal.c (struct for_each_inc_dec_ops): New type.
25734 (for_each_inc_dec_find_inc_dec): New fn.
25735 (for_each_inc_dec_find_mem): New fn.
25736 (for_each_inc_dec): New fn.
25737 * dse.c (struct insn_size): Remove.
25738 (replace_inc_dec, replace_inc_dec_mem): Remove.
25739 (emit_inc_dec_insn_before): New fn.
25740 (check_for_inc_dec): Use it, along with for_each_inc_dec.
25741 (canon_address): Pass mem modes to cselib_lookup.
25742 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
25743 (cselib_lookup_from_insn): Likewise.
25744 (cselib_subst_to_values): Likewise.
25745 * cselib.c (find_slot_memmode): New var.
25746 (cselib_find_slot): New fn. Use it instead of
25747 htab_find_slot_with_hash everywhere.
25748 (entry_and_rtx_equal_p): Use find_slot_memmode.
25749 (autoinc_split): New fn.
25750 (rtx_equal_for_cselib_p): Rename and implement in terms of...
25751 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
25752 Deal with autoinc. Special-case recursion into MEMs.
25753 (cselib_hash_rtx): Likewise.
25754 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
25755 address and MEM modes.
25756 (cselib_subst_to_values): Add memmode, pass it on.
25757 Deal with autoinc.
25758 (cselib_lookup): Add memmode argument, pass it on.
25759 (cselib_lookup_from_insn): Add memmode.
25760 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
25761 (struct cselib_record_autoinc_data): New.
25762 (cselib_record_autoinc_cb): New fn.
25763 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
25764 mode to cselib_lookup. Reset autoinced REGs here instead of...
25765 (cselib_process_insn): ... here.
25766 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
25767 to cselib_lookup.
25768 (add_uses): Likewise, also to cselib_subst_to_values.
25769 (add_stores): Likewise.
25770 * sched-deps.c (add_insn_mem_dependence): Pass mode to
25771 cselib_subst_to_values.
25772 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
25773 * gcse.c (do_local_cprop): Adjusted.
25774 * postreload.c (reload_cse_simplify_set): Adjusted.
25775 (reload_cse_simplify_operands): Adjusted.
25776 * sel-sched-dump (debug_mem_addr_value): Pass mode.
25777
25778 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
25779
25780 PR tree-optimization/45122
25781 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
25782 unsafe assumptions when there's more than one loop exit.
25783
25784 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25785
25786 PR target/47272
25787 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25788 Document using vector double with the load/store builtins, and
25789 that the load/store builtins always use Altivec instructions.
25790
25791 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
25792 to use altivec memory instructions, even on VSX.
25793 (vector_altivec_store_<mode>): Ditto.
25794
25795 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
25796 function.
25797
25798 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25799 V2DF, V2DI support to load/store overloaded builtins.
25800
25801 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
25802 altivec load/store builtins for V2DF/V2DI types.
25803
25804 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25805 set avoid indexed addresses on power6 if -maltivec.
25806 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
25807 vector_altivec_load/vector_altivec_store builtins.
25808 (altivec_expand_st_builtin): Ditto.
25809 (altivec_expand_builtin): Add VSX memory builtins.
25810 (rs6000_init_builtins): Add V2DI types to internal types.
25811 (altivec_init_builtins): Add support for V2DF/V2DI altivec
25812 load/store builtins.
25813 (rs6000_address_for_altivec): Insure memory address is appropriate
25814 for Altivec.
25815
25816 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
25817 vec_vsx_ld and vec_vsx_st.
25818 (vsx_store_<mode>): Ditto.
25819
25820 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25821 variables to hold long long types for VSX vector memory builtins.
25822 (RS6000_BTI_unsigned_long_long): Ditto.
25823 (long_long_integer_type_internal_node): Ditti.
25824 (long_long_unsigned_type_internal_node): Ditti.
25825
25826 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25827 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25828 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25829
25830 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25831 short cuts.
25832 (vec_vsx_st): Ditto.
25833
25834 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25835
25836 * config/pa/pa-hpux10.opt: New.
25837 * config/hpux11.opt (pthread): New Driver option.
25838 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25839 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25840
25841 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25842
25843 * config/ia64/vms.opt: New.
25844 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25845
25846 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25847
25848 PR target/47580
25849 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25850 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25851 generator functions.
25852 (vsx_floatuns<VSi><mode>2): Ditto.
25853 (vsx_fix_trunc<mode><VSi>2): Ditto.
25854 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25855
25856 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25857
25858 * config/i386/djgpp.opt (posix): New Driver option.
25859
25860 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
25861
25862 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25863 Move to the unsupported targets list.
25864
25865 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
25866
25867 PR rtl-optimization/47525
25868 * df-scan.c: Update copyright years.
25869 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25870 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25871
25872 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25873
25874 * config/i386/sysv4.h (TARGET_VERSION): Remove.
25875 (SUBTARGET_RETURN_IN_MEMORY): Remove.
25876 (ASM_OUTPUT_ASCII): Remove.
25877 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25878
25879 2011-02-02 Jeff Law <law@redhat.com>
25880
25881 PR middle-end/47543
25882 * reload.c (find_reloads_address): Handle reg+d address where both
25883 components are invalid by reloading the entire address.
25884
25885 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25886 Richard Guenther <rguenther@suse.de>
25887
25888 PR tree-optimization/40979
25889 PR bootstrap/47044
25890 * passes.c (init_optimization_passes): After LIM call copy_prop
25891 and DCE to clean up.
25892 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25893
25894 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25895
25896 PR tree-optimization/47576
25897 PR tree-optimization/47555
25898 * doc/invoke.texi (scev-max-expr-complexity): Documented.
25899 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25900 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25901 * tree-scalar-evolution.c (follow_ssa_edge): Use
25902 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25903
25904 2011-02-02 Richard Guenther <rguenther@suse.de>
25905
25906 PR tree-optimization/47566
25907 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
25908
25909 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
25910
25911 PR debug/47106
25912 PR debug/47402
25913 * tree-inline.c (declare_return_variable): Remove unused caller
25914 variable.
25915
25916 PR debug/47106
25917 PR debug/47402
25918 * tree-flow-inline.h (clear_is_used, is_used_p): New.
25919 * cfgexpand.c (account_used_vars_for_block): Use them.
25920 * tree-nrv.c (tree_nrv): Likewise.
25921 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
25922 (dump_scope_block): Likewise.
25923 (remove_unused_locals): Likewise.
25924
25925 PR debug/47106
25926 PR debug/47402
25927 * tree-inline.c (declare_return_variable): Add result decl to
25928 local decls only once.
25929 * gimple-low.c (record_vars_into): Mark newly-created variables
25930 as referenced.
25931
25932 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
25933
25934 PR debug/47498
25935 PR debug/47501
25936 PR debug/45136
25937 PR debug/45130
25938 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
25939 debug insns.
25940 (no_real_insns_p, schedule_block, set_priorities): Drop special
25941 treatment of boundary debug insns.
25942 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
25943 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
25944 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
25945 (BOUNDARY_DEBUG_INSN_P): Likewise.
25946 (SCHEDULE_DEBUG_INSN_P): Likewise.
25947 * sched-rgn.c (init_ready_list): Drop special treatment of
25948 boundary debug insns.
25949 * final.c (rest_of_clean_state): Clear notes' BB.
25950
25951 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25952
25953 * config/openbsd.opt (assert=): New Driver option.
25954
25955 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25956
25957 * config/i386/nto.opt: New.
25958 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
25959
25960 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25961
25962 * config/i386/netware.opt: New.
25963 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
25964
25965 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25966
25967 * config/interix.opt (posix): New Driver option.
25968
25969 2011-02-01 DJ Delorie <dj@redhat.com>
25970
25971 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
25972
25973 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
25974 class for A0/A1.
25975
25976 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
25977
25978 PR tree-optimization/47561
25979 * toplev.c (process_options): Print the Graphite flags. Add
25980 flag_loop_flatten to the list of options requiring Graphite.
25981
25982 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25983
25984 * config/i386/cygming.opt (posix): New Driver option.
25985
25986 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25987
25988 * config/arm/vxworks.opt: New.
25989 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
25990
25991 2011-02-01 Joseph Myers <joseph@codesourcery.com>
25992
25993 * config/alpha/elf.opt: New.
25994 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
25995 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
25996
25997 2011-02-01 Richard Guenther <rguenther@suse.de>
25998
25999 PR tree-optimization/47559
26000 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
26001 store-motion on references that can throw.
26002
26003 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
26004
26005 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
26006 * tree-pass.h (TDF_CSELIB): New macro.
26007 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
26008 cselib_lookup): Check for it rather than for TDF_DETAILS.
26009
26010 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
26011
26012 PR driver/47547
26013 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
26014 is HOST_BIT_BUCKET.
26015
26016 * opts.c (finish_options): Don't add x_aux_base_name if it is
26017 HOST_BIT_BUCKET.
26018
26019 2011-02-01 Richard Guenther <rguenther@suse.de>
26020
26021 PR tree-optimization/47555
26022 Revert
26023 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
26024
26025 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26026
26027 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
26028
26029 PR gcc/46692
26030 * config/lm32/t-lm32: Add multilib for all CPU options.
26031
26032 2011-02-01 Richard Guenther <rguenther@suse.de>
26033
26034 PR tree-optimization/47541
26035 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
26036 sure to have a field at offset zero.
26037
26038 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26039
26040 * config/arc/arc.opt (EB, EL): New Driver options.
26041
26042 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26043
26044 * config/alpha/osf5.opt: New.
26045 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
26046
26047 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26048
26049 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
26050
26051 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
26052
26053 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
26054 -floop-interchange.
26055 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
26056 is an alias of -floop-interchange and that it requires the
26057 Graphite infrastructure.
26058 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
26059 flag_loop_interchange based on the value of flag_tree_loop_linear.
26060
26061 2011-01-31 Jakub Jelinek <jakub@redhat.com>
26062 Richard Guenther <rguenther@suse.de>
26063
26064 PR tree-optimization/47538
26065 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
26066 type instead of r1type, except for comparisons. For right
26067 shifts and comparisons punt if there are mismatches in
26068 sizetype vs. non-sizetype types.
26069
26070 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26071
26072 * doc/sourcebuild.texi (Effective-Target Keywords): Document
26073 avx_runtime.
26074
26075 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26076
26077 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
26078 version number.
26079 * configure: Regenerate.
26080
26081 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26082
26083 * configure.ac (gcc_cv_ld_static_option): Define.
26084 (gcc_cv_ld_dynamic_option): Define.
26085 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
26086 instead.
26087 (HAVE_LD_STATIC_DYNAMIC): Update message.
26088 (LD_STATIC_OPTION): Define.
26089 (LD_DYNAMIC_OPTION): Define.
26090 * configure: Regenerate.
26091 * config.in: Regenerate.
26092 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
26093 HAVE_LD_STATIC_DYNAMIC]: Use them.
26094
26095 2011-01-31 Nick Clifton <nickc@redhat.com>
26096
26097 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
26098 registers inside interrupt handlers if the handler is not a leaf
26099 function.
26100
26101 2011-01-31 Nick Clifton <nickc@redhat.com>
26102
26103 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
26104 reg_renumber returning an INVALID_REGNUM.
26105
26106 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26107
26108 PR libgcj/44341
26109 * doc/install.texi: Document host options discarded when cross
26110 configuring target libraries.
26111
26112 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26113
26114 Reverted:
26115 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26116 PR debug/45136
26117 PR debug/45130
26118 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26119 debug insns.
26120 (no_real_insns_p, schedule_block, set_priorities): Drop special
26121 treatment of boundary debug insns.
26122 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26123 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26124 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26125 (BOUNDARY_DEBUG_INSN_P): Likewise.
26126 (SCHEDULE_DEBUG_INSN_P): Likewise.
26127 * sched-rgn.c (init_ready_list): Drop special treatment of
26128 boundary debug insns.
26129 * final.c (rest_of_clean-state): Clear notes' BB.
26130
26131 2011-01-31 Alan Modra <amodra@gmail.com>
26132
26133 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
26134 toc relative expressions as we do in print_operand_address.
26135
26136 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
26137
26138 * doc/extend.texi: Follow spelling conventions.
26139 * doc/invoke.texi: Fix a typo.
26140
26141 2011-01-30 Joseph Myers <joseph@codesourcery.com>
26142
26143 * config/hpux11.opt: New.
26144 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
26145 ia64*-*-hpux*): Use hpux11.opt.
26146
26147 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
26148
26149 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
26150 to tmake_file.
26151
26152 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26153
26154 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
26155 support sites.
26156
26157 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26158
26159 * doc/install.texi (Binaries): Remove outdated reference for
26160 Motorola 68HC11/68HC12 downloads.
26161
26162 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26163
26164 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
26165 Drepper's paper.
26166
26167 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
26168
26169 PR bootstrap/47147
26170 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
26171 used by NetBSD.
26172
26173 2011-01-28 Ahmad Sharif <asharif@google.com>
26174
26175 * value-prof.c (check_counter): Corrected error message.
26176
26177 2011-01-29 Jie Zhang <jie@codesourcery.com>
26178
26179 * config/arm/arm.c (arm_legitimize_reload_address): New.
26180 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26181 arm_legitimize_reload_address.
26182 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
26183
26184 2011-01-28 Ian Lance Taylor <iant@google.com>
26185
26186 * godump.c (go_define): Ignore macros whose definitions include
26187 two adjacent operands.
26188
26189 2011-01-28 Jakub Jelinek <jakub@redhat.com>
26190
26191 PR target/42894
26192 * varasm.c (force_const_mem): Store copy of x in desc->constant
26193 instead of x itself.
26194 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
26195 itself into REG_EQUAL note.
26196
26197 2011-01-28 Joseph Myers <joseph@codesourcery.com>
26198
26199 * config/freebsd.opt (posix, rdynamic): New Driver options.
26200
26201 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26202
26203 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
26204 -Bstatic/-Bdynamic.
26205 * configure: Regenerate.
26206
26207 2011-01-27 Joseph Myers <joseph@codesourcery.com>
26208
26209 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
26210 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
26211
26212 2011-01-27 Anatoly Sokolov <aesok@post.ru>
26213
26214 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
26215 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
26216 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26217 (s390_preferred_reload_class): Make static. Change return and
26218 'rclass' argument type to reg_class_t.
26219
26220 2011-01-27 Jan Hubicka <jh@suse.cz>
26221
26222 PR middle-end/46949
26223 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26224 (process_function_and_variable_attributes): Check defined weakrefs.
26225
26226 2011-01-27 Martin Jambor <mjambor@suse.cz>
26227
26228 PR tree-optimization/47228
26229 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26230 build_ref_for_offset.
26231
26232 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26233
26234 * config/spu/spu-elf.h (ASM_SPEC): Remove.
26235
26236 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
26237
26238 PR rtl-optimization/46856
26239 * postreload.c (reload_combine_recognize_const_pattern): Do not
26240 separate cc0 setter and user on cc0 targets.
26241
26242 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
26243
26244 PR c/43082
26245 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26246 passed a VOID_TYPE expression, immediately emit an error and
26247 return error_mark_node.
26248
26249 2011-01-26 Jeff Law <law@redhat.com>
26250
26251 PR rtl-optimization/47464
26252 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26253 rather than may_trap_p as needed.
26254
26255 2011-01-26 DJ Delorie <dj@redhat.com>
26256
26257 PR rtl-optimization/46878
26258 * combine.c (insn_a_feeds_b): Check for the implicit cc0
26259 setter/user dependency as well.
26260
26261 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
26262
26263 PR rtl-optimization/44469
26264 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26265 after removing trivially dead basic blocks.
26266
26267 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26268
26269 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26270 * config/frv/frv.h (LINK_SPEC): Likewise.
26271 * config/i386/netware.h (LINK_SPEC): Likewise.
26272 * config/m68k/linux.h (ASM_SPEC): Likewise.
26273 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26274 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26275 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26276 * config/sparc/linux.h (ASM_SPEC): Likewise.
26277 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26278 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26279
26280 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26281
26282 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26283 * config/frv/frv.h (ASM_SPEC): Likewise.
26284 * config/m68k/linux.h (ASM_SPEC): Likewise.
26285 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26286 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26287 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26288 * config/sparc/linux.h (ASM_SPEC): Likewise.
26289 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26290 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26291
26292 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26293
26294 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26295 * config/frv/frv.h (LINK_SPEC): Likewise.
26296 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26297
26298 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26299
26300 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26301 * config/frv/frv.h (ASM_SPEC): Likewise.
26302 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
26303 * config/m68k/linux.h (ASM_SPEC): Likewise.
26304 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26305 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26306 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26307 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
26308 * config/sparc/linux.h (ASM_SPEC): Likewise.
26309 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26310 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26311 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
26312
26313 2011-01-26 Steve Ellcey <sje@cup.hp.com>
26314
26315 PR target/46997
26316 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
26317 (*mux2): Ditto.
26318 (vec_extract_evenodd_help): Ditto.
26319 (vec_extract_evenv4hi): Ditto.
26320 (vec_extract_oddv4hi): Ditto.
26321 (vec_interleave_lowv2si): Ditto.
26322 (vec_interleave_highv2si): Ditto.
26323 (vec_extract_evenv2si): Ditto.
26324 (vec_extract_oddv2si: Ditto.
26325 (vec_pack_trunc_v2si): Ditto.
26326
26327 2011-01-22 Jan Hubicka <jh@suse.cz>
26328
26329 PR target/47237
26330 * cgraph.h (cgraph_local_info): New field can_change_signature.
26331 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
26332 signature can change.
26333 (ipcp_estimate_growth): Call sequence simplify only if calle signature
26334 can change.
26335 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
26336 (cgraph_function_versioning): We can not change signature of functions
26337 that don't allow that.
26338 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
26339 (lto_input_node): Likewise.
26340 * ipa-inline.c (compute_inline_parameters): Compute
26341 local.can_change_signature.
26342 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
26343 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
26344 functions that can not change signature.
26345 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
26346 init_cumulative_args): Do not use local calling conventions
26347 for functions that can not change signature.
26348
26349 2011-01-22 Jan Hubicka <jh@suse.cz>
26350
26351 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
26352
26353 2011-01-26 Richard Guenther <rguenther@suse.de>
26354
26355 PR tree-optimization/47190
26356 * cgraphunit.c (process_common_attributes): New function.
26357 (process_function_and_variable_attributes): Use it.
26358
26359 2011-01-26 Richard Guenther <rguenther@suse.de>
26360
26361 PR lto/47423
26362 * cgraphbuild.c (record_eh_tables): Record reference to personality
26363 function.
26364
26365 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
26366
26367 PR debug/45454
26368 * sel-sched.c (moveup_expr): Don't let debug insns prevent
26369 non-debug insns from moving up.
26370
26371 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26372
26373 PR target/40125
26374 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
26375 t-dlldir{,-x} fragment for build and add it to tmake_file.
26376 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
26377 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
26378 * config/i386/t-dlldir: New file.
26379 (SHLIB_DLLDIR): Define.
26380 * config/i386/t-dlldir-x: New file.
26381 (SHLIB_DLLDIR): Define.
26382 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
26383 (SHLIB_INSTALL): Use it.
26384
26385 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
26386
26387 PR target/47246
26388 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
26389 lower bound of the allowed Thumb-2 coprocessor load/store
26390 index range to -256. Add explaining comment.
26391
26392 2011-01-25 Ian Lance Taylor <iant@google.com>
26393
26394 * godump.c (go_define): Improve lexing of macro expansion to only
26395 accept expressions which match Go spec.
26396
26397 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26398
26399 PR c++/43601
26400 * tree.c (handle_dll_attribute): Handle it.
26401 * doc/extend.texi (@item dllexport): Mention it.
26402 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
26403
26404 2011-01-25 Ian Lance Taylor <iant@google.com>
26405
26406 PR tree-optimization/26854
26407 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
26408 (decl_jump_unsafe): Move higher in file, with no other change.
26409 (bind): Set has_jump_unsafe_decl if appropriate.
26410 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
26411 (check_earlier_gotos): Likewise.
26412 (c_check_switch_jump_warnings): Likewise.
26413
26414 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
26415
26416 * doc/invoke.texi (Warning Options): Add missing hyphen.
26417 (-fprofile-dir): Minor grammatical fixes.
26418 (-fbranch-probabilities): Likewise.
26419
26420 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26421
26422 PR debug/45136
26423 PR debug/45130
26424 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26425 debug insns.
26426 (no_real_insns_p, schedule_block, set_priorities): Drop special
26427 treatment of boundary debug insns.
26428 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26429 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26430 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26431 (BOUNDARY_DEBUG_INSN_P): Likewise.
26432 (SCHEDULE_DEBUG_INSN_P): Likewise.
26433 * sched-rgn.c (init_ready_list): Drop special treatment of
26434 boundary debug insns.
26435 * final.c (rest_of_clean-state): Clear notes' BB.
26436
26437 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26438
26439 * Makefile.in (LAMBDA_H): Removed.
26440 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
26441 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
26442 lambda-trans.o, and tree-loop-linear.o.
26443 (lto-symtab.o): Remove dependence on LAMBDA_H.
26444 (tree-loop-linear.o): Remove rule.
26445 (lambda-mat.o): Same.
26446 (lambda-trans.o): Same.
26447 (lambda-code.o): Same.
26448 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
26449 (tree-vect-slp.o): Same.
26450 * hwint.h (gcd): Moved here.
26451 (least_common_multiple): Same.
26452 * lambda-code.c: Removed.
26453 * lambda-mat.c: Removed.
26454 * lambda-trans.c: Removed.
26455 * lambda.h: Removed.
26456 * tree-loop-linear.c: Removed.
26457 * lto-symtab.c: Do not include lambda.h.
26458 * omega.c (gcd): Removed.
26459 * passes.c (init_optimization_passes): Remove pass_linear_transform.
26460 * tree-data-ref.c (print_lambda_vector): Moved here.
26461 (lambda_vector_copy): Same.
26462 (lambda_matrix_copy): Same.
26463 (lambda_matrix_id): Same.
26464 (lambda_vector_first_nz): Same.
26465 (lambda_matrix_row_add): Same.
26466 (lambda_matrix_row_exchange): Same.
26467 (lambda_vector_mult_const): Same.
26468 (lambda_vector_negate): Same.
26469 (lambda_matrix_row_negate): Same.
26470 (lambda_vector_equal): Same.
26471 (lambda_matrix_right_hermite): Same.
26472 * tree-data-ref.h: Do not include lambda.h.
26473 (lambda_vector): Moved here.
26474 (lambda_matrix): Same.
26475 (dependence_level): Same.
26476 (lambda_transform_legal_p): Removed declaration.
26477 (lambda_collect_parameters): Same.
26478 (lambda_compute_access_matrices): Same.
26479 (lambda_vector_gcd): Same.
26480 (lambda_vector_new): Same.
26481 (lambda_vector_clear): Same.
26482 (lambda_vector_lexico_pos): Same.
26483 (lambda_vector_zerop): Same.
26484 (lambda_matrix_new): Same.
26485 * tree-flow.h (least_common_multiple): Removed declaration.
26486 * tree-parloops.c (lambda_trans_matrix): Moved here.
26487 (LTM_MATRIX): Same.
26488 (LTM_ROWSIZE): Same.
26489 (LTM_COLSIZE): Same.
26490 (LTM_DENOMINATOR): Same.
26491 (lambda_trans_matrix_new): Same.
26492 (lambda_matrix_vector_mult): Same.
26493 (lambda_transform_legal_p): Same.
26494 * tree-pass.h (pass_linear_transform): Removed declaration.
26495 * tree-ssa-loop.c (tree_linear_transform): Removed.
26496 (gate_tree_linear_transform): Removed.
26497 (pass_linear_transform): Removed.
26498 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
26499 flag_loop_interchange.
26500
26501 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26502
26503 PR tree-optimization/47265
26504 PR tree-optimization/47443
26505 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
26506 if name still has some uses.
26507
26508 2011-01-25 Martin Jambor <mjambor@suse.cz>
26509
26510 PR tree-optimization/47382
26511 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
26512 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
26513
26514 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
26515
26516 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
26517 sjlj_except_unwind_info.
26518
26519 2011-01-25 Richard Guenther <rguenther@suse.de>
26520
26521 PR tree-optimization/47426
26522 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
26523 visible functions results escape.
26524
26525 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26526
26527 PR target/45701
26528 * config/arm/arm.c (any_sibcall_uses_r3): New function.
26529 (arm_get_frame_offsets): Use it.
26530
26531 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26532 Jakub Jelinek <jakub@redhat.com>
26533
26534 PR tree-optimization/47271
26535 * tree-if-conv.c (bb_postdominates_preds): New.
26536 (if_convertible_bb_p): Call bb_postdominates_preds.
26537 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26538 (predicate_scalar_phi): Call bb_postdominates_preds.
26539
26540 2011-01-25 Nick Clifton <nickc@redhat.com>
26541
26542 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26543 * config/rx/rx.c (rx_function_value): Likewise.
26544 (rx_promote_function_mode): Likewise.
26545 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26546 in order to make it legitimate.
26547 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26548 make sure that the first operand is the same as the result register.
26549 (addsi3_unspec): Delete.
26550 (subdi3): Do not accept immediate operands.
26551 (subdi3_internal): Likewise.
26552
26553 2011-01-25 Jeff Law <law@redhat.com>
26554
26555 PR rtl-optimization/37273
26556 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26557 handle them like argument loads from stack slots. Do not double
26558 count memory for memory constants and argument loads from stack slots.
26559
26560 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26561
26562 PR tree-optimization/47427
26563 PR tree-optimization/47428
26564 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26565 coalesce if the new root var would be TREE_READONLY.
26566
26567 2011-01-25 Richard Guenther <rguenther@suse.de>
26568
26569 PR middle-end/47414
26570 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26571 correct type for TBAA.
26572
26573 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26574
26575 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26576 (close_phi_written_to_memory): Call for_each_index with
26577 dr_indices_valid_in_loop.
26578
26579 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26580
26581 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26582 when it is initialized.
26583
26584 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26585
26586 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26587 call to graphite_find_data_references_in_stmt.
26588 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26589 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
26590 call to graphite_find_data_references_in_stmt.
26591 (analyze_drs_in_stmts): Same.
26592 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26593 in which the scalar analysis of indices is performed.
26594 (create_data_ref): Same. Update call to dr_analyze_indices.
26595 (find_data_references_in_stmt): Update call to create_data_ref.
26596 (graphite_find_data_references_in_stmt): Same.
26597 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26598 declaration.
26599 (create_data_ref): Same.
26600 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26601 call to create_data_ref.
26602
26603 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26604
26605 * graphite-sese-to-poly.c (build_poly_scop): Move
26606 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26607
26608 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26609
26610 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26611 VAR_DECL, PARM_DECL, and RESULT_DECL.
26612
26613 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26614
26615 * graphite-dependences.c (reduction_dr_1): Allow several reductions
26616 in a reduction PBB.
26617 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26618 that have already been marked as PBB_IS_REDUCTION.
26619
26620 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26621
26622 * graphite-scop-detection.c (same_close_phi_node): New.
26623 (remove_duplicate_close_phi): New.
26624 (make_close_phi_nodes_unique): New.
26625 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26626
26627 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26628
26629 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26630 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26631 of both data references to be the same.
26632
26633 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26634
26635 * graphite-dependences.c (build_lexicographical_constraint): Remove
26636 the gdim parameter.
26637 (build_lexicographical_constraint): Adjust call to
26638 ppl_powerset_is_empty.
26639 (dependence_polyhedron): Same.
26640 (graphite_legal_transform_dr): Same.
26641 (graphite_carried_dependence_level_k): Same.
26642 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26643 parameter.
26644 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26645
26646 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26647
26648 * graphite-sese-to-poly.c
26649 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26650 (close_phi_written_to_memory): New.
26651 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26652 and unshare_expr.
26653
26654 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26655
26656 * doc/install.texi: Update the expected version number of PPL to 0.11.
26657 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26658 #if PPL_VERSION_MINOR < 11.
26659
26660 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26661
26662 * graphite-dependences.c: Include graphite-cloog-util.h.
26663 (new_poly_ddr): Inlined into dependence_polyhedron.
26664 (free_poly_ddr): Moved close by new_poly_ddr.
26665 (dependence_polyhedron_1): Renamed dependence_polyhedron.
26666 Early return NULL when ppl_powerset_is_empty returns true.
26667 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
26668 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
26669 (graphite_legal_transform_dr): Call new_poly_ddr.
26670 (graphite_carried_dependence_level_k): Same.
26671 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
26672 (dot_transformed_deps_stmt_1): Removed.
26673 (dot_deps_stmt_1): Call dot_deps_stmt_2.
26674 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
26675 (dot_deps_1): Call dot_deps_2.
26676 * Makefile.in (graphite-dependences.o): Add missing dependence on
26677 graphite-cloog-util.h.
26678
26679 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26680
26681 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26682 (build_lexicographical_constraint): Same.
26683 (dependence_polyhedron_1): Same.
26684 (graphite_legal_transform_dr): Same.
26685 (graphite_carried_dependence_level_k): Same.
26686 * graphite-ppl.c (ppl_powerset_is_empty): New.
26687 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26688 * tree-data-ref.c (dump_data_reference): Print the basic block index.
26689
26690 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26691
26692 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26693 the "a followed by b" relation and document it.
26694
26695 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26696
26697 * graphite-dependences.c (build_lexicographical_constraint): Stop the
26698 iteration when the bag of constraints is empty.
26699
26700 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26701
26702 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26703
26704 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26705
26706 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26707 nest and two loop depths as parameters.
26708 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26709 lst_perfect_nestify.
26710
26711 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26712
26713 * graphite-dependences.c (print_pddr): Call
26714 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26715
26716 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26717
26718 * graphite-ppl.c (debug_gmp_value): New.
26719 * graphite-ppl.h (debug_gmp_value): Declared.
26720
26721 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
26722
26723 * doc/install.texi: Document availability of cloog-0.16.
26724
26725 2011-01-25 Vladimir Kargov <kargov@gmail.com>
26726
26727 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26728 invalid postdominance info.
26729
26730 2011-01-24 Jan Hubicka <jh@suse.cz>
26731
26732 PR c/21659
26733 * doc/extend.texi (weak pragma): Drop claim that it must
26734 appear before definition.
26735 * varasm.c (merge_weak, declare_weak): Only sanity check
26736 that DECL is not output at a time it is declared weak.
26737
26738 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
26739
26740 * machmode.def: Fixed comments.
26741
26742 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
26743
26744 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26745
26746 2011-01-24 Paul Koning <ni1d@arrl.net>
26747
26748 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26749 WORDS_BIG_ENDIAN.
26750
26751 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
26752
26753 PR target/46519
26754 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
26755 (block_info): Add scanned and prev.
26756 (move_or_delete_vzeroupper_2): Return if the basic block
26757 has been scanned and the upper 128bit state is unchanged
26758 from the last scan.
26759 (move_or_delete_vzeroupper_1): Return true if the exit
26760 state is changed.
26761 (move_or_delete_vzeroupper): Visit basic blocks using the
26762 work-list based algorithm based on vt_find_locations in
26763 var-tracking.c.
26764
26765 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
26766
26767 2011-01-24 Nick Clifton <nickc@redhat.com>
26768
26769 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
26770 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
26771 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
26772 then define __v850e1__.
26773 * doc/invoke.texi: Document -mv850es.
26774
26775 2011-01-24 Richard Henderson <rth@redhat.com>
26776
26777 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
26778 compound unordered comparisons.
26779 * config/rx/rx.c (rx_split_fp_compare): Remove.
26780 * config/rx/rx-protos.h: Update.
26781 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
26782 (cbranchsf4): Don't call rx_split_fp_compare.
26783 (*cbranchsf4): Use rx_split_cbranch.
26784 (*cmpsf): Don't accept "i" constraint.
26785 (*conditional_branch): Only valid after reload.
26786 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
26787
26788 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26789
26790 PR target/47385
26791 * config/rs6000/altivec.md (vector constant splitters): Add
26792 support for creating vector single precision constants if -mvsx is
26793 used and we would create the constant using Altivec primitives.
26794
26795 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
26796 Richard Sandiford <rdsandiford@googlemail.com>
26797
26798 PR rtl-optimization/47166
26799 * reload1.c (emit_reload_insns): Disable the spill_reg_store
26800 mechanism for PRE_MODIFY and POST_MODIFY.
26801 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
26802 reloadreg.
26803
26804 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
26805
26806 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
26807
26808 2011-01-22 Jan Hubicka <jh@suse.cz>
26809
26810 PR lto/47333
26811 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
26812
26813 2011-01-22 Jan Hubicka <jh@suse.cz>
26814
26815 PR tree-optimization/43884
26816 PR lto/44334
26817 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26818 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26819
26820 2011-01-22 Anatoly Sokolov <aesok@post.ru>
26821
26822 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26823 * config/s390/s390.c (s390_register_move_cost,
26824 s390_memory_move_cost): New.
26825 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26826
26827 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26828
26829 PR middle-end/47401
26830 * except.c (sjlj_assign_call_site_values): Move setting the
26831 crtl->uses_eh_lsda flag to ...
26832 (sjlj_mark_call_sites): ... here.
26833 (sjlj_emit_function_enter): Support NULL dispatch label.
26834 (sjlj_build_landing_pads): In a function with no landing pads
26835 that still has must-not-throw regions, generate code to register
26836 a personality function with empty LSDA.
26837
26838 2011-01-21 Richard Henderson <rth@redhat.com>
26839
26840 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26841
26842 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26843
26844 * compare-elim.c: New file.
26845 * Makefile.in (OBJS-common): Add it.
26846 (compare-elim.o): New.
26847 * common.opt (fcompare-elim): New.
26848 * opts.c (default_options_table): Add OPT_fcompare_elim.
26849 * tree-pass.h (pass_compare_elim_after_reload): New.
26850 * passes.c (init_optimization_passes): Add it.
26851 * recog.h: Protect against re-inclusion.
26852 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26853 * doc/invoke.texi (-fcompare-elim): Document it.
26854 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26855 * doc/tm.texi: Rebuild.
26856
26857 2011-01-22 Nick Clifton <nickc@redhat.com>
26858
26859 * config/rx/rx.md (cstoresf4): Pass comparison operator to
26860 rx_split_fp_compare.
26861
26862 2011-01-22 Nick Clifton <nickc@redhat.com>
26863
26864 * config/rx/rx.md (UNSPEC_CONST): New.
26865 (deallocate_and_return): Wrap the amount popped off the stack in
26866 an UNSPEC_CONST in order to stop it being rejected by
26867 -mmax-constant-size.
26868 (pop_and_return): Add a "(return)" rtx.
26869 (call): Drop the immediate operand.
26870 (call_internal): Likewise.
26871 (call_value): Likewise.
26872 (call_value_internal): Likewise.
26873 (sibcall_internal): Likewise.
26874 (sibcall_value_internal): Likewise.
26875 (sibcall): Likewise. Generate an explicit call using
26876 sibcall_internal.
26877 (sibcall_value): Likewise.
26878 (mov<>): FAIL if a constant operand is not legitimate.
26879 (addsi3_unpsec): New pattern.
26880
26881 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26882 (ok_for_max_constant): New function.
26883 (gen_safe_add): New function.
26884 (rx_expand_prologue): Use gen_safe_add.
26885 (rx_expand_epilogue): Likewise.
26886 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
26887 UNSPEC CONSTs.
26888
26889 2011-01-21 Jeff Law <law@redhat.com>
26890
26891 PR tree-optimization/47053
26892 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26893 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26894 statements are deleted.
26895 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
26896 is nonempty, then purge dead edges and cleanup the CFG.
26897
26898 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26899
26900 PR debug/47402
26901 Temporarily revert:
26902 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26903 PR debug/47106
26904 * tree-dfa.c (create_var_ann): Mark variable as used.
26905
26906 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26907
26908 PR middle-end/45566
26909 * except.c (convert_to_eh_region_ranges): Emit queued no-region
26910 notes from other section in hot/cold partitioning even if
26911 last_action is -3. Increment call_site_base.
26912
26913 PR rtl-optimization/47366
26914 * fwprop.c (forward_propagate_into): Return bool. If
26915 any changes are made, -fnon-call-exceptions is used and
26916 REG_EH_REGION note is present, call purge_dead_edges
26917 and return true if it purged anything.
26918 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
26919 any EH edges were purged.
26920
26921 2011-01-21 Jeff Law <law@redhat.com>
26922
26923 PR rtl-optimization/41619
26924 * caller-save.c (setup_save_areas): Break out code to determine
26925 which hard regs are live across calls by examining the reload chains
26926 so that it is always used.
26927 Eliminate code which checked REG_N_CALLS_CROSSED.
26928
26929 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26930
26931 PR tree-optimization/47355
26932 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
26933 NOP has non-debug uses beyond PHIs in new_bb.
26934
26935 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26936
26937 PR debug/47106
26938 * cfgexpand.c (account_used_vars_for_block): Only account vars
26939 that are annotated as used.
26940 (estimated_stack_frame_size): Don't set TREE_USED.
26941 * tree-dfa.c (create_var_ann): Mark variable as used.
26942
26943 2011-01-21 Richard Guenther <rguenther@suse.de>
26944
26945 PR middle-end/47395
26946 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
26947
26948 2011-01-21 Richard Guenther <rguenther@suse.de>
26949
26950 PR tree-optimization/47365
26951 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
26952 (vn_reference_lookup_pieces): Adjust.
26953 (vn_reference_lookup): Likewise.
26954 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
26955 (vn_reference_lookup_3): Only look through kills if in
26956 VN_WALKREWRITE mode.
26957 (vn_reference_lookup_pieces): Adjust.
26958 (vn_reference_lookup): Likewise.
26959 (visit_reference_op_load): Likewise.
26960 (visit_reference_op_store): Likewise.
26961 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
26962 (compute_avail): Likewise.
26963 (eliminate): Likewise.
26964
26965 2011-01-21 Jakub Jelinek <jakub@redhat.com>
26966
26967 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
26968 DECL_IGNORED_P non-reg vars if they are used.
26969
26970 PR tree-optimization/47391
26971 * varpool.c (const_value_known_p): Return false if
26972 decl is volatile.
26973
26974 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
26975
26976 PR bootstrap/47215
26977 * config/i386/i386.c (ix86_local_alignment): Handle
26978 case for va_list_type_node is nil.
26979 (ix86_canonical_va_list_type): Likewise.
26980
26981 2011-01-21 Alan Modra <amodra@gmail.com>
26982
26983 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
26984 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
26985
26986 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26987
26988 * config/arm/arm.md (define_attr type): Rename f_load
26989 and f_store to f_fpa_load and f_fpa_store. Update.
26990 (write_conflict): Deal with rename fallout.
26991 (*push_fp_multi): Likewise.
26992 * config/arm/fpa.md (f_load): Use f_fpa_load.
26993 (f_store): Use f_fpa_store.
26994 (*movsf_fpa): Likewise.
26995 (*movdf_fpa): Likewise.
26996 (*movxf_fpa): Likewise.
26997 (*thumb2_movsf_fpa): Likewise.
26998 (*thumb2_movdf_fpa): Likewise.
26999 (*thumb2_movxf_fpa): Likewise.
27000 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
27001 f_loadd and f_stored.
27002 (*thumb2_movdi_vfp): Likewise.
27003 (*thumb2_movsf_vfp): Fix attribute to f_loads.
27004 (*thumb2_movsi_vfp): Likewise.
27005 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
27006 Use f_loads instead of f_load.
27007 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
27008
27009 2011-01-20 Anatoly Sokolov <aesok@post.ru>
27010
27011 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27012 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
27013 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27014 (xtensa_mode_dependent_address_p): New function.
27015 (constantpool_address_p): Make static. Change return type to bool.
27016 Change argument type to const_rtx. Use CONST_INT_P predicate.
27017
27018 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
27019
27020 PR debug/46583
27021 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
27022
27023 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27024
27025 PR debug/47283
27026 * cfgexpand.c (expand_debug_expr): Instead of generating
27027 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
27028 etc. handling.
27029
27030 2011-01-20 Richard Guenther <rguenther@suse.de>
27031
27032 PR middle-end/47370
27033 * tree-inline.c (remap_gimple_op_r): Recurse manually for
27034 the pointer operand of MEM_REFs.
27035
27036 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27037
27038 PR tree-optimization/46130
27039 * ipa-split.c (consider_split): If return_bb contains non-virtual
27040 PHIs other than for retval or if split_function would not adjust it,
27041 refuse to split.
27042
27043 2011-01-20 Richard Guenther <rguenther@suse.de>
27044
27045 PR tree-optimization/47167
27046 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
27047 Revert previous change, only avoid enumeral type changes.
27048
27049 2011-01-19 Mike Stump <mikestump@comcast.net>
27050
27051 * doc/tm.texi.in (BRANCH_COST): Englishify.
27052 * doc/tm.texi (BRANCH_COST): Likewise.
27053
27054 2011-01-19 Dodji Seketeli <dodji@redhat.com>
27055
27056 PR c++/47291
27057 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
27058 (gen_scheduled_generic_parms_dies): New functions.
27059 (gen_struct_or_union_type_die): Schedule template parameters DIEs
27060 generation for the end of CU compilation.
27061 (dwarf2out_finish): Generate template parameters DIEs here.
27062
27063 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27064
27065 PR debug/46240
27066 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
27067 debug bind stmt on merge edges.
27068
27069 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27070
27071 PR debug/47079
27072 PR debug/46724
27073 * function.c (instantiate_expr): Instantiate incoming rtl of
27074 implicit arguments, and recurse on VALUE_EXPRs.
27075 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
27076 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
27077
27078 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27079
27080 * c-parser.c (c_parser_for_statement): Initialize
27081 collection_expression.
27082
27083 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27084
27085 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
27086
27087 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27088
27089 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
27090 (LINK_SHLIB_SPEC): Don't use %(link_path).
27091 (SUBTARGET_EXTRA_SPECS): Remove link_path.
27092
27093 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27094
27095 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
27096 (NO_SHARED_LIB_SUPPORT): Remove.
27097 (LINK_SHLIB_SPEC): Remove one conditional definition.
27098
27099 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27100
27101 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
27102 %{call_shared}.
27103 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
27104 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
27105 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
27106 %{call_shared} and conditionals on these options not being passed.
27107 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
27108 %{call_shared}.
27109
27110 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27111
27112 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
27113 simplify.
27114
27115 * ipa-split.c: Spelling fixes.
27116
27117 2011-01-19 Richard Henderson <rth@redhat.com>
27118
27119 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
27120 (*mulsi3): Likewise.
27121
27122 * longlong.h [__mn10300__] (count_leading_zeros): New.
27123 [__mn10300__] (umul_ppmm, smul_ppmm): New.
27124 [__mn10300__] (add_ssaaaa, subddmmss): New.
27125 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
27126 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
27127
27128 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27129
27130 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
27131
27132 2011-01-19 Richard Henderson <rth@redhat.com>
27133
27134 * config/mn10300/mn10300.md (addsi3_flags): New.
27135 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
27136 (subsi3_flags, subc_internal, subdi3): New.
27137 (subdi3_internal, *subdi3_degenerate): New.
27138 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
27139
27140 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
27141 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
27142 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
27143 * config/mn10300/mn10300-protos.h: Update.
27144 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
27145 (return_ret): Likewise. Rename from return_internal_regs.
27146 (return_internal): Remove.
27147
27148 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
27149 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
27150 (mn10300_legitimate_constant_p): Likewise.
27151 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
27152 (mn10300_frame_size): New.
27153 (mn10300_expand_prologue): Use it.
27154 (mn10300_expand_epilogue): Likewise.
27155 (mn10300_initial_offset): Likewise.
27156 * config/mn10300/mn10300-protos.h: Update.
27157 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
27158 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
27159 (prologue, epilogue, return_internal): Tidy output code.
27160 (mn10300_store_multiple_operation, return): Likewise.
27161 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
27162 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
27163 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
27164 (load_pic, am33_load_pic): New.
27165 (mn10300_load_pic0, mn10300_load_pic1): New.
27166
27167 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
27168 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
27169 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
27170 (cc_flags_for_mode, cc_flags_for_code): New.
27171 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
27172 overflow flag is not valid. Validate that the flags we need
27173 for the comparison are valid.
27174 (mn10300_output_cmp): Remove.
27175 (mn10300_output_add): New.
27176 (mn10300_select_cc_mode): Use cc_flags_for_code.
27177 (mn10300_split_cbranch): New.
27178 (mn10300_match_ccmode): New.
27179 (mn10300_split_and_operand_count): New.
27180 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
27181 to the function.
27182 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
27183 (addsi3): ... here. Use mn10300_output_add.
27184 (*addsi3_flags): New.
27185 (*am33_subsi3, *mn10300_subsi3): Merge...
27186 (subsi3): ... here. Use attribute isa.
27187 (*subsi3_flags): New.
27188 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
27189 when possible.
27190 (*am33_andsi3, *mn10300_andsi3): Merge...
27191 (andsi3): ... here.
27192 (*andsi3_flags): New.
27193 (andsi3 splitters): New.
27194 (*am33_iorsi3, *mn10300_iorsi3): Merge...
27195 (iorsi3): ... here.
27196 (*iorsi3_flags): New.
27197 (*am33_xorsi3, *mn10300_xorsi3): Merge...
27198 (xorsi3): ... here.
27199 (*xorsi3_flags): New.
27200 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
27201 (one_cmplsi2): ... here.
27202 (*one_cmplsi2_flags): New.
27203 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
27204 instead of "dax" in constraints. Use mn10300_split_cbranch.
27205 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
27206 use matching constraints to eliminate a self-comparison.
27207 (*integer_conditional_branch): Rename from integer_conditional_branch.
27208 Use int_mode_flags to match CC_REG.
27209 (*cbranchsi4_btst, *btstsi): New.
27210 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
27211 mn10300_split_cbranch.
27212 (*am33_cmpsf): Rename from am33_cmpsf.
27213 (*float_conditional_branch): Rename from float_conditional_branch.
27214 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
27215 (zero_extendqisi2): ... here.
27216 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
27217 (zero_extendhisi2): ... here.
27218 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
27219 (extendqisi2): ... here.
27220 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27221 (extendhisi2): ... here.
27222 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27223 (ashlsi3): ... here.
27224 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27225 (lshrsi3): ... here.
27226 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27227 (ashrsi3): ... here.
27228 (consecutive add peephole): Remove.
27229 * config/mn10300/predicates.md (label_ref_operand): New.
27230 (int_mode_flags): New.
27231 (CCZN_comparison_operator): New.
27232
27233 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27234 (throughput_42_latency_43): New reservation.
27235 (mulsidi3, umulsidi3): New expanders.
27236 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
27237 the MDR register to allocation; separately allocate the low and
27238 high parts of the DImode result.
27239 (umulsidi3_internal): Similarly.
27240 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27241 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
27242 (udivsi3, umodsi3): Remove.
27243 (udivmodsi4, divmodsi4): New expanders.
27244 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
27245 (*divmodsi4): Simiarly.
27246 (ext_internal): New.
27247
27248 * config/mn10300/constraints.md ("z"): New constraint.
27249 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27250 (FIXED_REGISTERS): Don't fix MDR.
27251 (CALL_USED_REGSITERS): Reformat nicely.
27252 (REG_ALLOC_ORDER): Add MDR.
27253 (enum regclass): Add MDR_REGS.
27254 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27255 (IRA_COVER_CLASSES): Add MDR_REGS.
27256 (REGNO_REG_CLASS): Handle MDR_REG.
27257 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27258 (mn10300_register_move_cost): Likewise.
27259 * config/mn10300/mn10300.md (MDR_REG): New.
27260 (*movsi_internal): Handle moves to/from MDR_REGS.
27261
27262 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27263 POST_MODIFY.
27264 (mn10300_secondary_reload): Tidy combination reload classes.
27265 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27266 addresses for AM33. Allow symbolic offsets for reg+imm.
27267 (mn10300_regno_in_class_p): New.
27268 (mn10300_legitimize_reload_address): New.
27269 * config/mn10300/mn10300.h (enum reg_class): Remove
27270 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27271 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
27272 SP_OR_GENERAL_REGS.
27273 (REG_CLASS_NAMES): Update to match.
27274 (REG_CLASS_CONTENTS): Likewise.
27275 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27276 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27277 (REGNO_IN_RANGE_P): Remove.
27278 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27279 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27280 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27281 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27282 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27283 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27284 (REGNO_GENERAL_P): New.
27285 (HAVE_POST_MODIFY_DISP): New.
27286 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27287 (LEGITIMIZE_RELOAD_ADDRESS): New.
27288 * config/mn10300/mn10300-protos.h: Update.
27289
27290 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27291 DATA_REGS for AM33 stack-pointer destination.
27292 (mn10300_preferred_output_reload_class): Likewise.
27293 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27294 into a form appropriate for ...
27295 (TARGET_SECONDARY_RELOAD): New.
27296 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27297 * config/mn10300/mn10300-protos.h: Update.
27298 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27299 reload_insi; use the "A" constraint for the scratch; handle AM33
27300 moves of sp to non-address registers.
27301
27302 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
27303 (*movqi_internal): ... here.
27304 (*am33_movhi, *mn10300_movhi): Merge into...
27305 (*movhi_internal): ... here.
27306 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
27307 as the source/destination of moves from/to SP.
27308 (movsf): Only allow for AM33-2.
27309 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
27310 any integer constant constraint. Only allow for AM33-2. Tidy
27311 all of the alternative outputs.
27312 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
27313 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
27314 for MN103.
27315 (udivsi3, umodsi3): New patterns for MN103 only.
27316
27317 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
27318
27319 * doc/tm.texi.in: Spell out that a lack of register class unions
27320 can lead to ICEs.
27321 * doc/tm.texi: Regenerate.
27322
27323 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27324
27325 PR rtl-optimization/47337
27326 * dce.c (check_argument_store): New function.
27327 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
27328
27329 PR tree-optimization/47290
27330 * tree-eh.c (infinite_empty_loop_p): New function.
27331 (cleanup_empty_eh): Use it.
27332
27333 2011-01-18 Steve Ellcey <sje@cup.hp.com>
27334
27335 PR target/46997
27336 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
27337 (a64_expand_widen_sum): Ditto.
27338 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
27339 (vec_extract_evenodd_help): Ditto.
27340 (vec_extract_evenv4hi): Ditto.
27341 (vec_extract_oddv4hi): Ditto.
27342 (vec_extract_evenv2si): Ditto.
27343 (vec_extract_oddv2si): Ditto.
27344 (vec_extract_evenv2sf): Ditto.
27345 (vec_extract_oddv2sf): Ditto.
27346 (vec_pack_trunc_v4hi: Ditto.
27347 (vec_pack_trunc_v2si): Ditto.
27348 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
27349 (vec_interleave_highv8qi): Ditto.
27350 (mix1_r): Ditto.
27351 (vec_extract_oddv8qi): Ditto.
27352 (vec_interleave_lowv4hi): Ditto.
27353 (vec_interleave_highv4hi): Ditto.
27354 (vec_interleave_lowv2si): Ditto.
27355 (vec_interleave_highv2si): Ditto.
27356
27357 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27358
27359 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
27360 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
27361 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
27362 (pa_c_mode_for_suffix): New.
27363 (TARGET_EXPAND_BUILTIN): Define.
27364 (TARGET_C_MODE_FOR_SUFFIX): Define.
27365 (pa_builtins): Define.
27366 (pa_init_builtins): Register __float128 type and init new support
27367 builtins.
27368 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
27369 * config/pa/quadlib.c (_U_Qfcopysign): New.
27370
27371 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
27372
27373 PR middle-end/46894
27374 * explow.c (allocate_dynamic_stack_space): Do not assume more than
27375 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
27376 are defined.
27377
27378 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27379
27380 PR tree-optimization/47179
27381 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
27382 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
27383
27384 2011-01-18 Richard Guenther <rguenther@suse.de>
27385
27386 PR rtl-optimization/47216
27387 * emit-rtl.c: Include tree-flow.h.
27388 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
27389 of replicating it with different semantics.
27390 * Makefile.in (emit-rtl.o): Adjust.
27391
27392 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27393
27394 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
27395 (cortex_a9_dp): Handle neon types correctly.
27396
27397 2011-01-18 Jakub Jelinek <jakub@redhat.com>
27398
27399 PR rtl-optimization/47299
27400 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
27401 subtarget. Use normal multiplication if both operands are constants.
27402 * expmed.c (expand_widening_mult): Don't try to optimize constant
27403 multiplication if op0 has VOIDmode. Convert op1 constant to mode
27404 before using it.
27405
27406 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27407
27408 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
27409 spacing after 'e.g.', typos, comma, hyphenation.
27410
27411 2011-01-17 Richard Henderson <rth@redhat.com>
27412
27413 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
27414 (rx_restricted_mem_operand): New.
27415 (rx_shift_operand): Use register_operand.
27416 (rx_source_operand, rx_compare_operand): Likewise.
27417 * config/rx/rx.md (addsi3_flags): New expander.
27418 (adddi3): Rewrite as expander.
27419 (adc_internal, *adc_flags, adddi3_internal): New patterns.
27420 (subsi3_flags): New expander.
27421 (subdi3): Rewrite as expander.
27422 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
27423
27424 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
27425 (rx_init_builtins): Remove sat builtin.
27426 (rx_expand_builtin): Likewise.
27427 * config/rx/rx.md (ssaddsi3): New.
27428 (*sat): Rename from sat. Represent the CC_REG input.
27429
27430 * config/rx/predicates.md (rshift_operator): New.
27431 * config/rx/rx.c (rx_expand_insv): Remove.
27432 * config/rx/rx-protos.h: Update.
27433 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
27434 operand to the canonical position.
27435 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
27436 (*bitclr, *bitclr_in_memory): Similarly.
27437 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
27438 (insv): Retain the zero_extract in the expansion.
27439
27440 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
27441 (bswaphi2, bitinvert, revw): Likewise.
27442
27443 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
27444 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
27445 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
27446 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
27447 (bitset, bitset_in_memory): Likewise.
27448 (bitinvert, bitinvert_in_memory): Likewise.
27449 (bitclr, bitclr_in_memory): Likewise.
27450 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
27451 (rx_strend, rx_cmpstrn): Likewise.
27452 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
27453 (bitop peep2 patterns): Remove.
27454
27455 * config/rx/rx.c (rx_match_ccmode): New.
27456 * config/rx/rx-protos.h: Update.
27457 * config/rx/rx.md (abssi2): Clobber, don't set flags.
27458 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
27459 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
27460 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
27461 (fix_truncsfsi2, floatsisf2): Likewise.
27462 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
27463 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
27464 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
27465 (*subsi3_flags, *xorsi3_flags): New.
27466
27467 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
27468
27469 * config/rx/rx.c (rx_print_operand): Remove workaround for
27470 unsplit comparison operations.
27471
27472 * config/rx/rx.md (movsicc): Split after reload.
27473 (*movsicc): Merge *movsieq and *movsine via match_operator.
27474 (*stcc): New pattern.
27475
27476 * config/rx/rx.c (rx_float_compare_mode): Remove.
27477 * config/rx/rx.h (rx_float_compare_mode): Remove.
27478 * config/rx/rx.md (cstoresi4): Split after reload.
27479 (*sccc): New pattern.
27480
27481 * config/rx/predicates.md (label_ref_operand): New.
27482 (rx_z_comparison_operator): New.
27483 (rx_zs_comparison_operator): New.
27484 (rx_fp_comparison_operator): New.
27485 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
27486 Validate that the flags are set properly for the comparison.
27487 (rx_gen_cond_branch_template): Remove.
27488 (rx_cc_modes_compatible): Remove.
27489 (mode_from_flags): New.
27490 (flags_from_code): Rename from flags_needed_for_conditional.
27491 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
27492 (rx_select_cc_mode): Likewise.
27493 (rx_split_fp_compare): New.
27494 (rx_split_cbranch): New.
27495 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
27496 (*cbranchsi4): Use match_operator and rx_split_cbranch.
27497 (*cbranchsf4): Similarly.
27498 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
27499 match_operator and rx_split_cbranch.
27500 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
27501 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
27502 (*cmpsi): Rename from cmpsi.
27503 (*tstsi): Rename from tstsi.
27504 (*cmpsf): Rename from cmpsf; use CC_Fmode.
27505 (*conditional_branch): Rename from conditional_branch.
27506 (*reveresed_conditional_branch): Remove.
27507 (b<code>): Remove expander.
27508 * config/rx/rx-protos.h: Update.
27509
27510 * config/rx/rx.c (rx_compare_redundant): Remove.
27511 * config/rx/rx.md (cmpsi): Don't use it.
27512 * config/rx/rx-protos.h: Update.
27513
27514 * config/rx/rx-modes.def (CC_F): New mode.
27515 * config/rx/rx.c (rx_select_cc_mode): New.
27516 * config/rx/rx.h (SELECT_CC_MODE): Use it.
27517 * config/rx/rx-protos.h: Update.
27518
27519 2011-01-17 Richard Henderson <rth@redhat.com>
27520
27521 * except.c (dump_eh_tree): Fix stray ; after for statement.
27522
27523 2011-01-17 Richard Guenther <rguenther@suse.de>
27524
27525 PR tree-optimization/47313
27526 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
27527 handling before copying the body. Properly deal with
27528 by-reference result in SSA form.
27529
27530 2011-01-17 Ian Lance Taylor <iant@google.com>
27531
27532 PR target/47219
27533 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27534 (struct_value_alias_set): Don't define.
27535 (sparc_option_override): Don't set sparc_sr_alias_set and
27536 struct_value_alias_set.
27537 (save_or_restore_regs): Use gen_frame_mem rather than calling
27538 set_mem_alias_set.
27539 (sparc_struct_value_rtx): Likewise.
27540
27541 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
27542
27543 PR target/47318
27544 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27545 (_mm_maskstore_pd): Likewise.
27546 (_mm_maskload_ps): Likewise.
27547 (_mm_maskstore_ps): Likewise.
27548 (_mm256_maskload_pd): Change mask to __m256i.
27549 (_mm256_maskstore_pd): Likewise.
27550 (_mm256_maskload_ps): Likewise.
27551 (_mm256_maskstore_ps): Likewise.
27552
27553 * config/i386/i386-builtin-types.def: Updated.
27554 (ix86_expand_special_args_builtin): Likewise.
27555
27556 * config/i386/i386.c (bdesc_special_args): Update
27557 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27558 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27559 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27560 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27561
27562 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27563 Use <avxpermvecmode> on mask register.
27564 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27565
27566 2011-01-17 Olivier Hainque <hainque@adacore.com>
27567 Michael Haubenwallner <michael.haubenwallner@salomon.at>
27568 Eric Botcazou <ebotcazou@adacore.com>
27569
27570 PR target/46655
27571 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27572 if <= USHRT_MAX in 32-bit mode.
27573
27574 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27575
27576 * doc/install.texi (Configuration, Specific): Wrap long
27577 lines in examples. Allow line wrapping in long options
27578 and URLs where beneficial for PDF output.
27579
27580 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
27581
27582 * config/mips/mips.c (mips_classify_symbol): Don't return
27583 SYMBOL_PC_RELATIVE for nonlocal labels.
27584
27585 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
27586
27587 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27588
27589 2011-01-15 Jan Hubicka <jh@suse.cz>
27590
27591 PR tree-optimization/47276
27592 * ipa.c (function_and_variable_visibility): Do not try to mark alias
27593 declarations as needed.
27594
27595 2011-01-15 Martin Jambor <mjambor@suse.cz>
27596
27597 * common.opt (fdevirtualize): New flag.
27598 * doc/invoke.texi (Option Summary): Document it.
27599 * opts.c (default_options_table): Add devirtualize flag.
27600 * ipa-prop.c (detect_type_change): Return immediately if
27601 devirtualize flag is not set.
27602 (detect_type_change_ssa): Likewise.
27603 (compute_known_type_jump_func): Likewise.
27604 (ipa_analyze_virtual_call_uses): Likewise.
27605
27606 2011-01-14 Martin Jambor <mjambor@suse.cz>
27607
27608 PR tree-optimization/45934
27609 PR tree-optimization/46302
27610 * ipa-prop.c (type_change_info): New type.
27611 (stmt_may_be_vtbl_ptr_store): New function.
27612 (check_stmt_for_type_change): Likewise.
27613 (detect_type_change): Likewise.
27614 (detect_type_change_ssa): Likewise.
27615 (compute_complex_assign_jump_func): Check for dynamic type change.
27616 (compute_complex_ancestor_jump_func): Likewise.
27617 (compute_known_type_jump_func): Likewise.
27618 (compute_scalar_jump_functions): Likewise.
27619 (ipa_analyze_virtual_call_uses): Likewise.
27620 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27621
27622 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27623
27624 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27625 * config/i386/i386.opt (msse5): New Alias.
27626
27627 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27628
27629 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27630 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27631 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27632 * config/sparc/sparc.h (CC1_SPEC): Likewise.
27633
27634 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27635
27636 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27637 -mcpu options.
27638 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27639 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27640 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27641 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27642 Likewise.
27643 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27644
27645 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27646
27647 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27648
27649 2011-01-14 Mike Stump <mikestump@comcast.net>
27650
27651 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27652 * config/fr30/fr30.md: Likweise
27653 (movsi_push): Likewise.
27654 (movsi_pop): Likewise.
27655 (enter_func): Likewise.
27656 * config/moxie/moxie.md (movsi_push): Likewise.
27657 (movsi_pop): Likewise.
27658
27659 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27660
27661 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27662 %{no_archive} %{exact_version}.
27663 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27664 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27665 %{no_archive} %{exact_version}.
27666 * config/mips/openbsd.h (LINK_SPEC): Likewise.
27667 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27668 * config/mips/vxworks.h: Likewise.
27669
27670 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27671
27672 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27673
27674 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27675
27676 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27677 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27678
27679 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27680
27681 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27682 -nodefaultlib.
27683
27684 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27685
27686 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27687 for mcpu not cpu.
27688 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27689 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27690 not cpu.
27691 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27692 Don't handle -shlib.
27693
27694 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27695
27696 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27697 (CC1_SPEC): Don't handle -profile.
27698
27699 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27700
27701 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27702 * config/mips/mips.h (CC1_SPEC): Likewise.
27703
27704 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27705
27706 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27707 * config/mips/mips.h (CC1_SPEC): Likewise.
27708
27709 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27710
27711 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27712 * config/m32r/linux.h (LINK_SPEC): Likewise.
27713 * config/mips/linux.h (LINK_SPEC): Likewise.
27714 * config/mips/linux64.h (LINK_SPEC): Likewise.
27715 * config/sparc/linux.h (LINK_SPEC): Likewise.
27716 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27717 LINK_SPEC): Likewise.
27718 * config/xtensa/linux.h (LINK_SPEC): Likewise.
27719
27720 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27721
27722 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27723 %{version:-v}.
27724 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27725
27726 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27727
27728 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27729 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27730
27731 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27732
27733 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27734
27735 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27736
27737 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27738 supports -Bstatic/-Bdynamic.
27739 * configure: Regenerate.
27740
27741 2011-01-14 Jan Hubicka <jh@suse.cz>
27742 Jack Howarth <howarth@bromo.med.uc.edu>
27743
27744 PR target/46037
27745 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27746 when checking debug_info_level. Test write_symbols instead of
27747 debug_hooks->var_location when setting flag_var_tracking_uninit.
27748
27749 2011-01-14 Richard Guenther <rguenther@suse.de>
27750
27751 PR tree-optimization/47179
27752 * target.def (ref_may_alias_errno): New target hook.
27753 * targhooks.h (default_ref_may_alias_errno): Declare.
27754 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
27755 (default_ref_may_alias_errno): New function.
27756 * target.h (struct ao_ref_s): Declare.
27757 * tree-ssa-alias.c: Include target.h.
27758 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
27759 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
27760 (targhooks.o): Likewise.
27761 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
27762 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
27763
27764 2011-01-14 Richard Guenther <rguenther@suse.de>
27765
27766 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
27767
27768 2011-01-14 Richard Guenther <rguenther@suse.de>
27769
27770 PR tree-optimization/47280
27771 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
27772 return CFG changes.
27773 (tree_ssa_forward_propagate_single_use_vars): Deal with
27774 CFG changes from associate_plusminus.
27775
27776 2011-01-14 Richard Guenther <rguenther@suse.de>
27777
27778 PR middle-end/47281
27779 Revert
27780 2011-01-11 Richard Guenther <rguenther@suse.de>
27781
27782 PR tree-optimization/46076
27783 * tree-ssa.c (useless_type_conversion_p): Conversions from
27784 unprototyped to empty argument list function types are useless.
27785
27786 2011-01-14 Richard Guenther <rguenther@suse.de>
27787
27788 PR tree-optimization/47286
27789 * tree-ssa-structalias.c (new_var_info): Register variables are global.
27790
27791 2011-01-14 Martin Jambor <mjambor@suse.cz>
27792
27793 PR middle-end/46823
27794 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
27795
27796 2011-01-13 Anatoly Sokolov <aesok@post.ru>
27797
27798 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
27799 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27800 * config/xtensa/xtensa.c (xtensa_libcall_value,
27801 xtensa_function_value_regno_p): New functions.
27802 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27803
27804 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
27805
27806 PR c++/47213
27807 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
27808 PE specific hook.
27809 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
27810 New function prototype.
27811 * config/i386/winnt.c (i386_pe_assemble_visibility):
27812 Warn only if attribute was specified by user.
27813
27814 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
27815
27816 PR target/47251
27817 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27818 floating point.
27819 (floatunsdidf2_fcfidu): Ditto.
27820
27821 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27822
27823 * config/s390/s390.c (print_operand_address): Replace 'error' with
27824 'output_operand_lossage'.
27825 (print_operand): Likewise.
27826
27827 2011-01-13 Jeff Law <law@redhat.com>
27828
27829 PR rtl-optimization/39077
27830 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27831 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27832 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27833 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27834 * gcse.c (prune_insertions_deletions): New function.
27835 (compute_pre_data): Use it.
27836
27837 2011-01-13 Dodji Seketeli <dodji@redhat.com>
27838
27839 PR debug/PR46973
27840 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27841 static function.
27842 (prune_unused_types_mark): Use it.
27843
27844 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
27845
27846 PR rtl-optimization/45352
27847 * sel-sched.c: Update copyright years.
27848 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27849 in the advancing loop when we have issued issue_rate insns.
27850
27851 2011-01-12 Richard Henderson <rth@redhat.com>
27852
27853 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27854 (TARGET_MD_ASM_CLOBBERS): New.
27855
27856 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27857 (TARGET_DELEGITIMIZE_ADDRESS): New.
27858
27859 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27860 (clzsi2, *bsch): New patterns.
27861
27862 * config/mn10300/mn10300.md (INT): New mode iterator.
27863 (*mov<INT>_clr): New pattern, and peep2 to generate it.
27864
27865 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27866 flag_split_wide_types.
27867
27868 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27869 (mn10300_trampoline_init): Rewrite without a template, an immediate
27870 load and a direct branch.
27871 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27872
27873 2011-01-12 Anatoly Sokolov <aesok@post.ru>
27874
27875 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27876 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27877 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27878 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27879
27880 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
27881
27882 PR debug/47209
27883 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27884 of type.
27885
27886 2011-01-12 Jan Hubicka <jh@suse.cz>
27887
27888 PR driver/47244
27889 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27890 (PLUGIN_COND_CLOSE): New macro.
27891 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27892
27893 2011-01-12 Richard Guenther <rguenther@suse.de>
27894
27895 PR lto/47259
27896 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27897 register variables in a MEM_REF.
27898
27899 2011-01-12 Joseph Myers <joseph@codesourcery.com>
27900
27901 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27902 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27903 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27904 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
27905 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
27906 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
27907 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
27908 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
27909 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
27910 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
27911 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
27912 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
27913 * config/gnu-user.h: New. Copied from linux.h.
27914 (LINUX_TARGET_STARTFILE_SPEC): Rename to
27915 GNU_USER_TARGET_STARTFILE_SPEC.
27916 (LINUX_TARGET_ENDFILE_SPEC): Rename to
27917 GNU_USER_TARGET_ENDFILE_SPEC.
27918 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
27919 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
27920 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
27921 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
27922 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
27923 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
27924 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
27925 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
27926 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
27927 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
27928 * config/arm/linux-eabi.h (CC1_SPEC): Use
27929 GNU_USER_TARGET_CC1_SPEC.
27930 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
27931 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
27932 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
27933 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
27934 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
27935 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
27936 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
27937 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
27938
27939 2011-01-12 Richard Guenther <rguenther@suse.de>
27940
27941 PR other/46946
27942 * doc/invoke.texi (ffast-math): Document it is turned on
27943 with -Ofast.
27944
27945 2011-01-12 Jan Hubicka <jh@suse.cz>
27946
27947 PR tree-optimization/47233
27948 * opts.c (common_handle_option): Disable ipa-reference with profile
27949 feedback.
27950
27951 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
27952
27953 * c-parser.c (c_parser_objc_at_property_declaration): Improved
27954 error message.
27955
27956 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
27957
27958 * c-parser.c (c_lex_one_token): Updated and reindented some
27959 comments. No changes in code.
27960
27961 2011-01-11 Ian Lance Taylor <iant@google.com>
27962
27963 * godump.c (go_output_var): Don't output the variable if there is
27964 already a type with the same name.
27965
27966 2011-01-11 Ian Lance Taylor <iant@google.com>
27967
27968 * godump.c (go_format_type): Don't generate float80.
27969
27970 2011-01-11 Richard Henderson <rth@redhat.com>
27971
27972 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
27973 declaration. Rewrite for both speed and size.
27974 (mn10300_address_cost_1): Remove.
27975 (mn10300_register_move_cost): New.
27976 (mn10300_memory_move_cost): New.
27977 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
27978 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
27979 extensions, shifts, BSWAP, CLZ.
27980 (mn10300_wide_const_load_uses_clr): Remove.
27981 (TARGET_REGISTER_MOVE_COST): New.
27982 (TARGET_MEMORY_MOVE_COST): New.
27983 * config/mn10300/mn10300-protos.h: Update.
27984 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
27985
27986 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
27987 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
27988 * config/mn10300/mn10300-protos.h: Update.
27989 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
27990 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
27991 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
27992 (*test_int_bitfield, *test_byte_bitfield): Remove.
27993 (*bit_test, *subreg_bit_test): Remove.
27994 * config/mn10300/predicates.md (const_8bit_operand): Remove.
27995
27996 * config/mn10300/constraints.md ("c"): Rename from "A".
27997 ("A", "D"): New constraint letters.
27998 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
27999 (fmssf4, fnmasf4, fnmssf4): Likewise.
28000
28001 * config/mn10300/mn10300.md (isa): New attribute.
28002 (enabled): New attribute.
28003
28004 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
28005 (abssf2, negsf2): Define only for hardware fp.
28006 (sqrtsf2): Reformat.
28007 (addsf3, subsf3, mulsf3): Merge expander and insn.
28008
28009 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
28010 (DEBUGGER_AUTO_OFFSET): Remove.
28011 (DEBUGGER_ARG_OFFSET): Remove.
28012
28013 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
28014 Emit register stores with the same offsets as the hardware.
28015 (mn10300_store_multiple_operation): Don't check that the register
28016 save offsets are monotonic.
28017 * config/mn10300/mn10300-protos.h: Update.
28018
28019 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
28020
28021 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
28022 in terms of the value on the stack, not the MDR register.
28023
28024 2011-01-11 Jan Hubicka <jh@suse.cz>
28025
28026 PR lto/45721
28027 PR lto/45375
28028 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
28029 (symbol_alias_set_destroy, symbol_alias_set_contains,
28030 propagate_aliases_backward): Declare.
28031 * lto-streamer-out.c (struct sets): New sturcture.
28032 (trivally_defined_alias): New function.
28033 (output_alias_pair_p): Rewrite.
28034 (output_unreferenced_globals): Fix output of alias pairs.
28035 (produce_symtab): Likewise.
28036 * ipa.c (function_and_variable_visibility): Set weak alias destination
28037 as needed in lto.
28038 * varasm.c (symbol_alias_set_t): Remove.
28039 (symbol_alias_set_destroy): Export.
28040 (propagate_aliases_forward, propagate_aliases_backward): New functions
28041 based on ...
28042 (compute_visible_aliases): ... this one; remove.
28043 (trivially_visible_alias): New
28044 (trivially_defined_alias): New.
28045 (remove_unreachable_alias_pairs): Rewrite.
28046 (finish_aliases_1): Reorganize code checking if alias is defined.
28047 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
28048 in LTO mode.
28049
28050 2011-01-11 Richard Guenther <rguenther@suse.de>
28051
28052 PR tree-optimization/46076
28053 * tree-ssa.c (useless_type_conversion_p): Conversions from
28054 unprototyped to empty argument list function types are useless.
28055
28056 2011-01-11 Richard Guenther <rguenther@suse.de>
28057
28058 PR middle-end/45235
28059 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
28060 volatile MEMs as MEM_READONLY_P.
28061
28062 2011-01-11 Richard Guenther <rguenther@suse.de>
28063
28064 PR tree-optimization/47239
28065 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
28066
28067 2011-01-11 Jeff Law <law@redhat.com>
28068
28069 PR tree-optimization/47086
28070 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
28071 IVs from statements that might throw.
28072
28073 2011-01-10 Jan Hubicka <jh@suse.cz>
28074
28075 PR lto/45375
28076 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
28077
28078 2011-01-10 Jan Hubicka <jh@suse.cz>
28079
28080 PR lto/45375
28081 * profile.c (read_profile_edge_counts): Ignore profile inconistency
28082 when correcting profile.
28083
28084 2011-01-10 Jan Hubicka <jh@suse.cz>
28085
28086 PR lto/46083
28087 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
28088 DECL_FINI_PRIORITY.
28089 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
28090 Restore DECL_FINI_PRIORITY.
28091
28092 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28093
28094 * doc/gimple.texi: Fix quoting of multi-word return values in
28095 @deftypefn statements. Ensure presence of return value. Wrap
28096 overlong @deftypefn lines.
28097 (is_gimple_operand, is_gimple_min_invariant_address): Remove
28098 descriptions of removed functions.
28099 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
28100 of multi-word return value in @deftypefn statement.
28101
28102 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28103
28104 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
28105 (Conditional Expressions, Logical Operators)
28106 (Statement and operand traversals): Do not indent smallexample
28107 code. Fix duplicate function argument in example.
28108
28109 2011-01-10 Jeff Law <law@redhat.com>
28110
28111 PR tree-optimization/47141
28112 * ipa-split.c (split_function): Handle case where we are
28113 returning a value and the return block has a virtual operand phi.
28114
28115 2011-01-10 Jan Hubicka <jh@suse.cz>
28116
28117 PR tree-optimization/47234
28118 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
28119 (pass_feedback_split_functions): Declare.
28120 * passes.c (init_optimization_passes): Add ipa-split as subpass of
28121 tree-profile.
28122 * ipa-split.c (gate_split_functions): Update comments; disable
28123 split-functions for profile_arc_flag and branch_probabilities.
28124 (gate_feedback_split_functions): New function.
28125 (execute_feedback_split_functions): New function.
28126 (pass_feedback_split_functions): New global var.
28127
28128 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
28129
28130 PR lto/46760
28131 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
28132 calling gimple_call_set_cannot_inline.
28133
28134 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
28135
28136 * config/darwin-sections.def: Remove unused section.
28137
28138 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
28139
28140 PR c++/47218
28141 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
28142
28143 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
28144
28145 PR objc/47232
28146 * c-parser.c (c_parser_declaration_or_fndef): Improved
28147 error message.
28148
28149 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
28150
28151 * config/i386/winnt.c (i386_pe_start_function): Make sure
28152 to switch back to function's section.
28153
28154 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
28155
28156 PR gcc/46902
28157 PR testsuite/46912
28158 * plugin.c: Move include of dlfcn.h from here...
28159 * system.h: ... to here.
28160
28161 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28162
28163 * doc/cpp.texi (C++ Named Operators): Fix markup for header
28164 file name.
28165 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
28166 two extra empty pages in PDF output.
28167
28168 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
28169
28170 PR objc/47078
28171 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
28172 for error recovery purposes behave as if it was not specified so
28173 that the default type is usd.
28174
28175 2011-01-07 Jan Hubicka <jh@suse.cz>
28176
28177 PR tree-optmization/46469
28178 * ipa.c (function_and_variable_visibility): Clear needed flags on
28179 nodes with external decls; handle weakrefs merging correctly.
28180
28181 2011-01-07 Joseph Myers <joseph@codesourcery.com>
28182
28183 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
28184 not false.
28185
28186 2011-01-07 Jan Hubicka <jh@suse.cz>
28187
28188 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
28189 and no longer claim that gold is required for linker plugin.
28190 * configure: Regenerate.
28191 * gcc.c (PLUGIN_COND): New macro.
28192 (LINK_COMMAND_SPEC): Use it.
28193 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
28194 * config.in (HAVE_LTO_PLUGIN): New.
28195 * configure.ac (--with-lto-plugin): New parameter; autodetect
28196 HAVE_LTO_PLUGIN.
28197
28198 2011-01-07 Jan Hubicka <jh@suse.cz>
28199
28200 PR tree-optimization/46367
28201 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
28202 when we can update original.
28203 (cgraph_mark_inline_edge): Sanity check.
28204 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
28205
28206 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28207
28208 * config/spu/spu.h (ASM_COMMENT_START): Define.
28209
28210 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
28211
28212 PR driver/42445
28213 * gcc.c (%>S): New.
28214 (SWITCH_KEEP_FOR_GCC): Likewise.
28215 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
28216 (do_spec_1): Handle "%>".
28217
28218 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
28219
28220 2011-01-07 Jakub Jelinek <jakub@redhat.com>
28221
28222 PR target/47201
28223 * config/i386/i386.c (ix86_delegitimize_address): If
28224 simplify_gen_subreg fails, return orig_x.
28225
28226 PR bootstrap/47187
28227 * value-prof.c (gimple_stringop_fixed_value): Handle
28228 lhs of the call properly.
28229
28230 2011-01-07 Jan Hubicka <jh@suse.cz>
28231
28232 PR lto/45375
28233 * lto-opt.c (lto_reissue_options): Set flag_shlib.
28234
28235 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28236
28237 * target.def (function_switched_text_sections): New hook.
28238 * doc/tm.texi: Regenerated.
28239 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28240 * final.c (default_function_switched_text_sections): New.
28241 (final_scan_insn): Call function_switched_text_sections when a
28242 mid-function section change occurs.
28243 * output.h (default_function_switched_text_sections): Declare.
28244 * config/darwin-protos.h (darwin_function_switched_text_sections):
28245 Likewise.
28246 * config/darwin.c (darwin_function_switched_text_sections): New.
28247 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28248
28249 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28250
28251 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
28252 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
28253 the secondary code fragment when outputting for DWARF == 2.
28254
28255 2011-01-07 Anatoly Sokolov <aesok@post.ru>
28256
28257 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28258 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28259 Remove.
28260 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28261 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28262
28263 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
28264
28265 PR debug/46704
28266 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28267 when it is not empty.
28268
28269 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
28270
28271 Bobcat Enablement
28272 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28273 (case ${target}): Add btver1.
28274 * config/i386/driver-i386.c (host_detect_local_cpu): Let
28275 -march=native recognize btver1 processors.
28276 * config/i386/i386-c.c (ix86_target_macros_internal): Add
28277 btver1 def_and_undef
28278 * config/i386/i386.c (struct processor_costs btver1_cost): New
28279 btver1 cost table.
28280 (m_BTVER1): New definition.
28281 (m_AMD_MULTIPLE): Includes m_BTVER1.
28282 (initial_ix86_tune_features): Add btver1 tune.
28283 (processor_target_table): Add btver1 entry.
28284 (static const char *const cpu_names): Add btver1 entry.
28285 (software_prefetching_beneficial_p): Add btver1.
28286 (ix86_option_override_internal): Add btver1 instruction sets.
28287 (ix86_issue_rate): Add btver1.
28288 (ix86_adjust_cost): Add btver1.
28289 * config/i386/i386.h (TARGET_BTVER1): New definition.
28290 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28291 (enum processor_type): Add PROCESSOR_BTVER1.
28292 * config/i386/i386.md (define_attr "cpu"): Add btver1.
28293
28294 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28295
28296 PR target/43309
28297 * config/i386/i386.c (legitimize_tls_address)
28298 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28299 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28300 (tls_initial_exec_64_sun): New pattern.
28301
28302 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28303
28304 * doc/invoke.texi (Overall Options): Improve wording and markup
28305 of the description of -wrapper.
28306
28307 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28308
28309 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
28310 rdynamic, threads): New Driver options.
28311
28312 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28313
28314 PR target/38118
28315 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
28316 if coming from .tdata.
28317 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
28318
28319 2011-01-06 Jan Hubicka <jh@suse.cz>
28320
28321 PR lto/47188
28322 * collect2.c (main): Do not enable LTOmode when plugin is active.
28323
28324 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28325
28326 PR other/45915
28327 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
28328 --version output if supported.
28329 * configure: Regenerate.
28330
28331 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28332
28333 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
28334 Driver options.
28335
28336 2011-01-06 Jakub Jelinek <jakub@redhat.com>
28337
28338 PR c/47150
28339 * c-convert.c (convert): When converting a complex expression
28340 other than COMPLEX_EXPR to a different complex type, ensure
28341 c_save_expr is called instead of save_expr, unless in_late_binary_op.
28342 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
28343 when converting COMPLEX_TYPE.
28344
28345 2011-01-06 Ira Rosen <irar@il.ibm.com>
28346
28347 PR tree-optimization/47139
28348 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
28349 only the last reduction value is used outside the loop. Update
28350 documentation.
28351
28352 2011-01-05 Joseph Myers <joseph@codesourcery.com>
28353
28354 * config/rtems.opt: New.
28355 * config.gcc (*-*-rtems*): Use rtems.opt.
28356
28357 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
28358
28359 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
28360 processors do not support 3DNow instructions.
28361
28362 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28363
28364 * config/spu/spu.c (spu_option_override): Set parameter
28365 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
28366
28367 2011-01-05 Jan Hubicka <jh@suse.cz>
28368
28369 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
28370 at the command line.
28371
28372 2011-01-05 Martin Jambor <mjambor@suse.cz>
28373
28374 PR lto/47162
28375 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
28376 deltas on streamed outgoing edges.
28377 (output_node_opt_summary): Output info for outgoing edges only when
28378 the node is in new parameter set.
28379 (output_cgraph_opt_summary): New parameter set, passed to the two
28380 aforementioned functions. Update its forward declaration and its
28381 callee too.
28382
28383 2011-01-05 Tom Tromey <tromey@redhat.com>
28384
28385 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
28386 operator to c_finish_omp_atomic.
28387 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
28388 (build_unary_op): Update.
28389 (build_modify_expr): Update.
28390 (build_asm_expr): Update.
28391
28392 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28393
28394 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
28395 newly inserted insns.
28396 (pad_bb): Likewise.
28397 (spu_emit_branch_hint): Likewise.
28398 (insert_hbrp_for_ilb_runout): Likewise.
28399 (spu_machine_dependent_reorg): Call df_finish_pass after
28400 schedule_insns returns.
28401
28402 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28403
28404 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
28405
28406 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
28407
28408 PR tree-optimization/47005
28409 * tree-sra.c (struct access): Add 'non_addressable' bit.
28410 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
28411 (decide_one_param_reduction): Return 0 if the parameter is passed by
28412 reference and one of the accesses in the group is non_addressable.
28413
28414 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28415
28416 PR tree-optimization/47056
28417 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
28418 (mark_load): Likewise. Handle FUNCTION_DECL specially.
28419 (mark_store): Likewise. Pass STMT to ipa_record_reference.
28420
28421 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28422
28423 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
28424 initializer. Skip view conversions from aggregate types.
28425
28426 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
28427
28428 PR bootstrap/47055
28429 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
28430
28431 2011-01-04 Philipp Thomas <pth@suse.de>
28432
28433 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
28434 obvious typo.
28435
28436 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28437
28438 * function.c (thread_prologue_and_epilogue_insns): Do not crash
28439 on empty epilogue sequences.
28440
28441 2011-01-04 Joseph Myers <joseph@codesourcery.com>
28442
28443 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
28444 non-static): New Driver options.
28445
28446 2011-01-04 Jie Zhang <jie@codesourcery.com>
28447
28448 PR driver/47137
28449 * gcc.c (default_compilers[]): Set combinable field to 0
28450 for all assembly languages.
28451
28452 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
28453
28454 * config/mips/loongson3a.md: New file.
28455 * config/mips/mips.md: Include loongson3a.md.
28456 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
28457 TUNE_LOONGSON_3A.
28458
28459 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
28460
28461 PR middle-end/47017
28462 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
28463 instead of convert_memory_address_addr_space on the base expression.
28464
28465 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28466
28467 * config/spu/spu.c (spu_option_override): Update error text
28468 for bad -march= / -mtune= values.
28469
28470 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28471
28472 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
28473 if branch-hint optimization will be performed.
28474
28475 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28476
28477 PR tree-optimization/47148
28478 * ipa-split.c (split_function): Convert arguments to
28479 DECL_ARG_TYPE if possible.
28480
28481 PR tree-optimization/47155
28482 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
28483 when computing uns.
28484
28485 PR rtl-optimization/47157
28486 * combine.c (try_combine): If undobuf.other_insn becomes
28487 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
28488 and set *new_direct_jump_p too.
28489
28490 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
28491
28492 PR tree-optimization/47021
28493 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
28494
28495 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28496
28497 * gcc.c (process_command): Update copyright notice dates.
28498 * gcov.c (print_version): Likewise.
28499 * gcov-dump.c (print_version): Likewise.
28500 * mips-tfile.c (main): Likewise.
28501 * mips-tdump.c (main): Likewise.
28502
28503 2011-01-03 Martin Jambor <mjambor@suse.cz>
28504
28505 PR tree-optimization/46801
28506 * tree-sra.c (type_internals_preclude_sra_p): Check whether
28507 aggregate fields start at byte boundary instead of the bit-field flag.
28508
28509 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
28510
28511 PR driver/47137
28512 * gcc.c (main): Revert revision 168407.
28513
28514 2011-01-03 Martin Jambor <mjambor@suse.cz>
28515
28516 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
28517
28518 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28519
28520 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
28521 vector optab to expand vector/scalar shift, update gimple to vector.
28522
28523 2011-01-03 Martin Jambor <mjambor@suse.cz>
28524
28525 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
28526 a thunk.
28527
28528 2011-01-03 Martin Jambor <mjambor@suse.cz>
28529
28530 PR tree-optimization/46984
28531 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28532 HOST_WIDE_INT.
28533 (cgraph_create_indirect_edge): Fixed line length.
28534 (cgraph_indirect_call_info): Declare.
28535 (cgraph_make_edge_direct) Update declaration.
28536 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28537 (cgraph_create_indirect_edge): Use it.
28538 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
28539 callees.
28540 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28541 the new thunk_delta representation.
28542 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28543 HOST_WIDE_INT.
28544 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28545 (ipa_read_indirect_edge_info): Likewise.
28546 * lto-cgraph.c (output_edge_opt_summary): New function.
28547 (output_node_opt_summary): Call it on all outgoing edges.
28548 (input_edge_opt_summary): New function.
28549 (input_node_opt_summary): Call it on all outgoing edges.
28550
28551 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
28552
28553 PR driver/47137
28554 * gcc.c (main): Don't check have_o when settting combine_inputs.
28555
28556 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
28557
28558 * regrename.c: Add general comment describing the pass.
28559 (struct du_head): Remove 'length' field.
28560 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28561 (regrename_optimize): Do not sort chains. Rework comments, add others.
28562 Force renaming to the preferred class (if any) in the first pass and do
28563 not consider registers that belong to it in the second pass.
28564 (create_new_chain): Do not set 'length' field.
28565 (scan_rtx_reg): Likewise.
28566
28567 2011-01-02 Jakub Jelinek <jakub@redhat.com>
28568
28569 PR tree-optimization/47140
28570 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28571 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28572 to bit_value_binop.
28573
28574 PR rtl-optimization/47028
28575 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28576 parm_birth_insn instead of at the beginning of first bb.
28577
28578 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
28579
28580 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28581 Remove the word "see" before "@pxref".
28582 * doc/rtl.texi: Remove the word "see" before "@pxref".
28583
28584 2011-01-01 Jan Hubicka <jh@suse.cz>
28585
28586 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28587 memory.
28588
28589 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
28590
28591 PR target/38662
28592 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28593
28594 \f
28595 Copyright (C) 2011 Free Software Foundation, Inc.
28596
28597 Copying and distribution of this file, with or without modification,
28598 are permitted in any medium without royalty provided the copyright
28599 notice and this notice are preserved.