]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
re PR target/50091 (-fstack-check generates wrong assembly)
[gcc.git] / gcc / ChangeLog
1 2011-09-18 Eric Botcazou <ebotcazou@adacore.com>
2 Iain Sandoe <developer@sandoe-acoustics.co.uk>
3
4 PR target/50091
5 * config/rs6000/rs6000.md (probe_stack): Use explicit operand.
6 * config/rs6000/rs6000.c (output_probe_stack_range): Likewise.
7
8 2011-09-18 H.J. Lu <hongjiu.lu@intel.com>
9
10 * config/i386/bmiintrin.h: Remove tmp.
11 * config/i386/tbmintrin.h: Likewise.
12
13 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
14
15 PR tree-optimization/50414
16 * tree-vect-slp.c (vect_get_constant_vectors): Handle MAX_EXPR and
17 MIN_EXPR.
18
19 2011-09-18 Ira Rosen <ira.rosen@linaro.org>
20
21 PR tree-optimization/50412
22 * tree-vect-data-refs.c (vect_analyze_group_access): Fail for
23 acceses that require epilogue loop if vectorizing outer loop.
24
25 2011-09-17 David S. Miller <davem@davemloft.net>
26
27 * config/sparc/sparc.md (UNSPEC_EDGE8, UNSPEC_EDGE8L,
28 UNSPEC_EDGE16, UNSPEC_EDGE16L, UNSPEC_EDGE32, UNSPEC_EDGE32L):
29 New unspecs.
30 (define_attr type): New type 'edge'.
31 (edge8_vis, edge8l_vis, edge16_vis, edge16l_vis, edge32_vis,
32 edge32l_vis): New patterns.
33 * config/sparc/ultra1_2.md: Add insn reservation for 'edge'.
34 * config/sparc/ultra3.md: Likewise.
35 * config/sparc/niagara.md: Likewise.
36 * config/sparc/niagara2.md: Likewise.
37 * config/sparc/sparc.d (sparc_vis_init_builtins): Generate
38 builtins for VIS edge instructions.
39 * config/sparc/visintrin.h (__vis_edge8, __vis_edge8l)
40 (__vis_edge16, __vis_edge16l, __vis_edge32, __vis_edge32l): New
41 intrinsics.
42 (__v8qi, __v4qi): Make unsigned.
43 (__vis_faligndatadi, ___vis_faligndatav2si, __vis_faligndatav4hi,
44 __vis_faligndatav8qi, __vis_fmul8x16au, __vis_fmul8x16al,
45 __vis_fpack32): Fix types.
46 * doc/extend.texi: Document new 'edge' VIS intrinsics.
47
48 * gcc/config/sparc/sparc.c (niagara2_costs): Adjust integer
49 divide costs.
50 (niagara3_costs): New.
51 (sparc_option_override): Use it.
52 * gcc/config/sparc/niagara2.md: Adjust with more accurate
53 Niagara-3 reservations.
54
55 2011-09-17 Jakub Jelinek <jakub@redhat.com>
56
57 * config/i386/sse.md (VIMAX_AVX2): Change V4DI to V2TI.
58 (sse2_avx, sseinsnmode): Add V2TI.
59 (REDUC_SMINMAX_MODE): New mode iterator.
60 (reduc_smax_v4sf, reduc_smin_v4sf, reduc_smax_v8sf,
61 reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df): Remove.
62 (reduc_<code>_<mode>): New smaxmin and umaxmin expanders.
63 (sse2_lshrv1ti3): Rename to...
64 (<sse2_avx2>_lshr<mode>3): ... this. Use VIMAX_AVX2 mode
65 iterator. Move before umaxmin expanders.
66 * config/i386/i386.h (VALID_AVX256_REG_MODE,
67 SSE_REG_MODE_P): Accept V2TImode.
68 * config/i386/i386.c (ix86_expand_reduc): Handle V32QImode,
69 V16HImode, V8SImode and V4DImode.
70
71 * config/i386/i386.c (ix86_build_const_vector): Handle V8SImode
72 and V4DImode.
73 (ix86_build_signbit_mask): Likewise.
74 (ix86_expand_int_vcond): Likewise. Handle V16HImode and
75 V32QImode.
76 (bdesc_args): Use CODE_FOR_{s,u}m{ax,in}v{32q,16h,8s}i3
77 instead of CODE_FOR_avx2_{s,u}m{ax,in}v{32q,16h,8s}i3.
78 * config/i386/sse.md (avx2_<code><mode>3 umaxmin expand): Rename
79 to...
80 (<code><mode>3) ... this.
81 (avx2_<code><mode>3 smaxmin expand): Rename to...
82 (<code><mode>3) ... this.
83 (smax<mode>3, smin<mode>3): Macroize using smaxmin code iterator.
84 (smaxv2di3, sminv2di3): Macroize using smaxmin code iterator and
85 VI8_AVX2 mode iterator.
86 (umaxv2di3, uminv2di3): Macroize using umaxmin code iterator and
87 VI8_AVX2 mode iterator.
88 (vcond<V_256:mode><VI_256:mode>, vcondu<V_256:mode><VI_256:mode>):
89 New expanders.
90
91 2011-09-17 Richard Sandiford <rdsandiford@googlemail.com>
92
93 * config/ia64/itanium2.md: Use match_test rather than eq/ne symbol_ref
94 throughout file.
95
96 2011-09-16 David S. Miller <davem@davemloft.net>
97
98 * config/sparc/visintrin.h: New file.
99 * config.gcc: Add it to extra_headers on sparc.
100
101 2011-09-16 Jakub Jelinek <jakub@redhat.com>
102
103 * config/i386/i386.c (ix86_expand_reduc_v4sf): Rename to ...
104 (ix86_expand_reduc): ... this. Handle also V8SFmode and V4DFmode.
105 * config/i386/sse.md (reduc_splus_v4sf, reduc_smax_v4sf,
106 reduc_smin_v4sf): Adjust callers.
107 (reduc_smax_v8sf, reduc_smin_v8sf, reduc_smax_v4df, reduc_smin_v4df):
108 New expanders.
109
110 * config/i386/sse.md (vec_extract_hi_<mode>,
111 vec_extract_hi_v16hi, vec_extract_hi_v32qi): Use
112 vextracti128 instead of vextractf128 for -mavx2 and
113 integer vectors. For V4DFmode fix up mode attribute.
114 (VEC_EXTRACT_MODE): For TARGET_AVX add 32-byte vectors.
115 (vec_set_lo_<mode>, vec_set_hi_<mode>): For VI8F_256 modes use V4DF
116 instead of V8SF mode attribute.
117 (avx2_extracti128): Change into define_expand.
118 * config/i386/i386.c (ix86_expand_vector_extract): Handle
119 32-byte vector modes if TARGET_AVX.
120
121 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
122
123 * config/avr/avr.md: (umulqihi3, mulqihi3): Write as one pattern.
124 (umulqi3_highpart, smulqi3_highpart): Ditto.
125 (*maddqihi4.const, *umaddqihi4.uconst): Ditto.
126 (*msubqihi4.const, *umsubqihi4.uconst): Ditto.
127 (*muluqihi3.uconst, *mulsqihi3.sconst): Ditto.
128
129 2011-09-16 Georg-Johann Lay <avr@gjlay.de>
130
131 PR target/50358
132 * config/avr/avr.md (*ashiftqihi2.signx.1): New insn.
133 (*maddqi4, *maddqi4.const): New insns.
134 (*msubqi4, *msubqi4.const): New insns.
135 * config/avr/avr.c (avr_rtx_costs): Record costs of above in cases
136 PLUS:QI and MINUS:QI. Increase costs of multiply-add/-sub for
137 HImode by 1 in the case of multiplying with a CONST_INT.
138 Record cost of *ashiftqihi2.signx.1 in case ASHIFT:QI.
139
140 2011-09-15 Jan Hubicka <jh@suse.cz>
141
142 PR lto/50430
143 * gimple-fold.c (gimple_get_virt_method_for_binfo): Do not ICE on
144 error_mark_node in the DECL_INITIAL of vtable.
145
146 2011-09-15 Diego Novillo <dnovillo@google.com>
147
148 * Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from
149 @SYSROOT_CFLAGS_FOR_TARGET@.
150 * configure.ac (SYSROOT_CFLAGS_FOR_TARGET): Set from
151 build-sysroot.
152 * configure: Regenerate.
153 (site.exp): Add definition of TEST_ALWAYS_FLAGS.
154 Remove setting of GCC_UNDER_TEST.
155
156 2011-09-15 Uros Bizjak <ubizjak@gmail.com>
157
158 * config/i386/i386.c (output_fp_compare): Return %v prefixed
159 instruction mnemonics for TARGET_AVX.
160
161 * config/i386/i386.md (*movdf_internal_rex64): use cond RTX in
162 "type" attribute calculation.
163 (*movdf_internal): Ditto.
164 (*movsf_internal): Ditto.
165
166 2011-09-15 James Greenhalgh <james.greenhalgh@arm.com>
167
168 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): New builtin macro.
169
170 2011-09-15 Jason Merrill <jason@redhat.com>
171
172 PR c++/50361
173 * expr.c (count_type_elements): Handle NULLPTR_TYPE.
174
175 2011-09-15 Jan Hubicka <jh@suse.cz>
176
177 * ipa-inline-analysis.c (add_condition): Add conditions parameter;
178 simplify obviously true clauses.
179 (and_predicates, or_predicates): Add conditions parameter.
180 (inline_duplication_hoook): Update.
181 (mark_modified): New function.
182 (unmodified_parm): New function.
183 (eliminated_by_inlining_prob, (set_cond_stmt_execution_predicate,
184 set_switch_stmt_execution_predicate, will_be_nonconstant_predicate):
185 Use unmodified_parm.
186 (estimate_function_body_sizes): Update.
187 (remap_predicate): Update.
188
189 2011-09-15 Ira Rosen <ira.rosen@linaro.org>
190
191 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Allow
192 read-after-read dependencies in basic block SLP.
193
194 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
195
196 * config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
197 throughout file.
198
199 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
200
201 * config/sh/sh.md: Use match_test rather than eq/ne symbol_ref
202 throughout file.
203
204 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
205
206 * config/s390/s390.md: Use match_test rather than eq/ne symbol_ref
207 throughout file.
208
209 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
210
211 * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
212 throughout file.
213 * config/rs6000/constraints.md: Likewise.
214
215 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
216
217 * config/microblaze/microblaze.md: Use match_test rather than
218 eq/ne symbol_ref throughout file.
219
220 2011-09-14 Richard Sandiford <rdsandiford@googlemail.com>
221
222 * config/bfin/bfin.md: Use match_test rather than eq/ne symbol_ref
223 throughout file.
224
225 2011-09-14 Tom de Vries <tom@codesourcery.com>
226
227 PR middle-end/50251
228 * explow.c (emit_stack_restore): Set crtl->need_drap if
229 stack_restore is emitted.
230
231 2011-09-14 Julian Brown <julian@codesourcery.com>
232
233 * config/arm/arm.c (arm_override_options): Add unaligned_access
234 support.
235 (arm_file_start): Emit attribute for unaligned access as appropriate.
236 * config/arm/arm.md (UNSPEC_UNALIGNED_LOAD)
237 (UNSPEC_UNALIGNED_STORE): Add constants for unspecs.
238 (insv, extzv): Add unaligned-access support.
239 (extv): Change to expander. Likewise.
240 (extzv_t1, extv_regsi): Add helpers.
241 (unaligned_loadsi, unaligned_loadhis, unaligned_loadhiu)
242 (unaligned_storesi, unaligned_storehi): New.
243 (*extv_reg): New (previous extv implementation).
244 * config/arm/arm.opt (munaligned_access): Add option.
245 * config/arm/constraints.md (Uw): New constraint.
246 * expmed.c (store_bit_field_1): Adjust bitfield numbering according
247 to size of access, not size of unit, when BITS_BIG_ENDIAN !=
248 BYTES_BIG_ENDIAN. Don't use bitfield accesses for
249 volatile accesses when -fstrict-volatile-bitfields is in effect.
250 (extract_bit_field_1): Likewise.
251
252 2011-09-14 Richard Sandiford <richard.sandiford@linaro.org>
253
254 * simplify-rtx.c (simplify_subreg): Check that the inner mode is
255 a scalar integer before applying integer-only optimisations to
256 inner arithmetic.
257
258 2011-09-14 Bernd Schmidt <bernds@codesourcery.com>
259
260 * config/mips/mips.c (mips_expand_epilogue): Generate a
261 simple_return only if the return address is in r31.
262
263 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
264
265 * cfgcleanup.c (try_head_merge_bb): If get_condition returns
266 NULL for a jump that is a cc0 insn, pick the previous insn for
267 move_before.
268
269 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
270
271 * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
272 throughout file.
273
274 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
275
276 * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
277 throughout file.
278
279 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
280
281 * config/mn10300/mn10300.md: Use match_test rather than eq/ne
282 symbol_ref throughout file.
283
284 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
285
286 * config/m68k/m68k.md: Use match_test rather than eq/ne symbol_ref
287 throughout file.
288
289 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
290
291 * config/h8300/h8300.md: Use match_test rather than eq/ne symbol_ref
292 throughout file.
293
294 2011-09-13 Richard Sandiford <rdsandiford@googlemail.com>
295
296 * config/arm/arm.md: Use match_test rather than eq/ne symbol_ref
297 throughout file.
298 * config/arm/neon.md: Likewise.
299 * config/arm/vfp.md: Likewise.
300 * config/arm/thumb2.md: Likewise.
301 * config/arm/cortex-m4.md: Likewise.
302
303 2011-09-13 Sevak Sargsyan <sevak.sargsyan@ispras.ru>
304
305 * config/arm/neon.md (neon_vabd<mode>_2, neon_vabd<mode>_3): New
306 define_insn patterns for combine.
307
308 2011-09-13 Giuseppe Scrivano <gscrivano@gnu.org>
309
310 * reorg.c: Always define make_return_insns.
311
312 2011-09-13 Jan Hubicka <jh@suse.cz>
313
314 PR other/49533
315 * cgraphunit.c (assemble_thunks_and_aliases): Force alias to be output.
316
317 2011-09-13 Jan Hubicka <jh@suse.cz>
318
319 PR other/49533
320 * ipa-inline-transform.c (can_remove_node_now_p): Fix thunkos.
321
322 2011-09-13 Paul Brook <paul@codesourcery.com>
323
324 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
325 (ARM_TARGET2_DWARF_FORMAT): Provide default definition.
326 * config/arm/linux-eabi.h (ARM_TARGET2_DWARF_FORMAT): Define.
327 * config/arm/symbian.h (ARM_TARGET2_DWARF_FORMAT): Define.
328 * config/arm/uclinux-eabi.h(ARM_TARGET2_DWARF_FORMAT): Define.
329 * config/arm/t-bpabi (EXTRA_HEADERS): Add unwind-arm-common.h.
330 * config/arm/t-symbian (EXTRA_HEADERS): Add unwind-arm-common.h.
331 * config/c6x/c6x.c (c6x_output_file_unwind): Don't rely on dwarf2 code
332 enabling unwind tables.
333 (c6x_debug_unwind_info): New function.
334 (TARGET_ARM_EABI_UNWINDER): Define.
335 (TARGET_DEBUG_UNWIND_INFO): Define.
336 * config/c6x/c6x.h (DWARF_FRAME_RETURN_COLUMN): Define.
337 (TARGET_EXTRA_CFI_SECTION): Remove.
338 * config/c6x/t-c6x-elf (EXTRA_HEADERS): Set.
339 * ginclude/unwind-arm-common.h: New file.
340
341 2011-09-13 Georg-Johann Lay <avr@gjlay.de>
342
343 PR target/50358
344 * config/avr/predicates.md (const_1_to_6_operand): New predicate.
345 * config/avr/avr.md: (extend_s): New code attribute.
346 (mul_r_d): New code attribute.
347 (*maddqihi4, *umaddqihi4): New insns.
348 (*msubqihi4, *umsubqihi4): New insns.
349 (*usmaddqihi4, *sumaddqihi4): New insns.
350 (*usmsubqihi4, *susubdqihi4): New insns.
351 (*umaddqihi4.uconst, *maddqihi4.sconst): New insn-and-splits.
352 (*umsubqihi4.uconst, *msubqihi4.sconst): New insn-and-splits.
353 (*umsubqihi4.uconst.ashift): New insn-and-split.
354 (*msubqihi4.sconst.ashift): New insn-and-split.
355 (*sumaddqihi4.uconst): New insn-and-split.
356 (*sumsubqihi4.uconst): New insn-and-split.
357 * config/avr/avr.c (avr_rtx_costs): Report costs of above in case
358 PLUS:HI and MINUS:HI.
359
360 2011-09-13 Revital Eres <revital.eres@linaro.org>
361
362 modulo-sched.c (remove_node_from_ps): Return void instead of bool.
363 (optimize_sc): Adjust call to remove_node_from_ps.
364 (sms_schedule): Add print info.
365
366 2011-09-13 Bernd Schmidt <bernds@codesourcery.com>
367
368 * rtl.c (copy_rtx): Do not handle frame_related, jump or call
369 flags specially.
370
371 2011-09-12 Jakub Jelinek <jakub@redhat.com>
372
373 PR bootstrap/50010
374 * dwarf2cfi.c (add_cfis_to_fde): Ignore non-active insns in between
375 NOTE_INSN_CFI notes, with the exception of
376 NOTE_INSN_SWITCH_TEXT_SECTIONS.
377
378 2011-09-12 Bernd Schmidt <bernds@codesourcery.com>
379 Richard Sandiford <rdsandiford@googlemail.com>
380
381 * config/mips/mips.c (mips_epilogue): New structure.
382 (mips16e_save_restore_reg): Queue REG_CFA_RESTORE notes when
383 restoring registers.
384 (mips_epilogue_emit_cfa_restores): New function.
385 (mips_epilogue_set_cfa): Likewise.
386 (mips_restore_reg): Queue REG_CFA_RESTORE notes. When restoring
387 the current CFA register from the stack, redefine the CFA in terms
388 of the stack pointer.
389 (mips_expand_epilogue): Set up mips_epilogue. Attach CFA information
390 to the epilogue instructions.
391
392 2011-09-12 Richard Sandiford <rdsandiford@googlemail.com>
393
394 * config/mips/mips.c (mips16e_save_restore_reg): Add a reg_parm_p
395 argument.
396 (mips16e_build_save_restore): Update accordingly.
397
398 2011-09-12 Jakub Jelinek <jakub@redhat.com>
399
400 PR rtl-optimization/50212
401 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
402 Skip also lps with NULL landing_pad or non-LABEL_P landing_pad.
403
404 PR debug/50299
405 * calls.c (load_register_parameters): Use use_reg_mode instead
406 of use_reg when adding a single register CALL_INSN_FUNCTION_USAGE
407 entry.
408 (expand_call): Set EXPR_LIST mode to TYPE_MODE of the argument
409 for stack CALL_INSN_FUNCTION_USAGE uses.
410 * expr.h (use_reg_mode): New prototype.
411 (use_reg): Changed into inline around use_reg_mode.
412 * expr.c (use_reg): Renamed to...
413 (use_reg_mode): ... this. Added MODE argument, set EXPR_LIST
414 mode to that mode instead of VOIDmode.
415 * var-tracking.c (prepare_call_arguments): Don't track parameters
416 whose EXPR_LIST mode is VOIDmode, BLKmode or X mode isn't convertible
417 to it using lowpart_subreg. Convert VALUE and REG/MEM to the
418 EXPR_LIST mode.
419
420 2011-09-12 Georg-Johann Lay <avr@gjlay.de>
421
422 PR target/43746
423 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define.
424 (progmem_section): New Variable.
425 (avr_asm_init_sections): Initialize it.
426 (TARGET_ASM_SELECT_SECTION): Define to...
427 (avr_asm_select_section): ... this new Function.
428 (avr_replace_prefix): New Function.
429 (avr_asm_function_rodata_section): Use it.
430 (avr_insert_attributes): Don't add section attribute for PROGMEM.
431 (avr_section_type_flags): Use avr_progmem_p instead of section
432 name to detect if object is in PROGMEM.
433 (avr_asm_named_section): Set section name prefix for objects in
434 PROGMEM.
435
436 2011-09-12 Jakub Jelinek <jakub@redhat.com>
437
438 PR bootstrap/50352
439 * config/arm/arm.md (*push_fp_multi): Add % before %( and %) in the
440 sprintf format string.
441
442 2011-09-12 Richard Guenther <rguenther@suse.de>
443
444 PR tree-optimization/50343
445 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check
446 that the reduction is over an SSA name before checking its definition.
447
448 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
449
450 * config/cris/cris.md: Use match_test rather than eq/ne symbol_ref
451 throughout file.
452
453 2011-09-11 Richard Sandiford <rdsandiford@googlemail.com>
454
455 * config/mips/mips.md: Use match_test rather than eq/ne symbol_ref
456 throughout file.
457 * config/mips/sb1.md: Likewise.
458 * config/mips/predicates.md: Replace (match_test "!...")
459 with (not (match_test "..."))
460 * config/mips/constraints.md: Likewise.
461
462 2011-09-09 Andrew Stubbs <ams@codesourcery.com>
463
464 * config/arm/arm-cores.def (generic-armv7-a): New architecture.
465 * config/arm/arm-tables.opt: Regenerate.
466 * config/arm/arm-tune.md: Regenerate.
467 * config/arm/arm.c (arm_file_start): Output .arch directive when
468 user passes -mcpu=generic-*.
469 (arm_issue_rate): Add genericv7a support.
470 * config/arm/arm.h (EXTRA_SPECS): Add asm_cpu_spec.
471 (ASM_CPU_SPEC): New define.
472 * config/arm/elf.h (ASM_SPEC): Use %(asm_cpu_spec).
473 * config/arm/semi.h (ASM_SPEC): Likewise.
474 * doc/invoke.texi (ARM Options): Document -mcpu=generic-*
475 and -mtune=generic-*.
476
477 2011-09-09 Richard Guenther <rguenther@suse.de>
478
479 PR tree-optimization/50328
480 * tree-vect-loop.c (vect_is_simple_reduction_1): Allow one
481 constant or default-def operand.
482
483 2011-09-09 Richard Guenther <rguenther@suse.de>
484
485 * tree-ssa-pre.c (create_expression_by_pieces): Fold the
486 last statement.
487
488 2011-09-09 Richard Guenther <rguenther@suse.de>
489
490 * gimple.h (fold_stmt_inplace): Adjust to take a gimple_stmt_iterator
491 instead of a statement.
492 * gimple-fold.c (fold_stmt_inplace): Likewise.
493 * sese.c (graphite_copy_stmts_from_block): Adjust.
494 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
495 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Use
496 fold_stmt.
497 (forward_propagate_addr_into_variable_array_index): Likewise.
498 (forward_propagate_addr_expr_1): adjust.
499 (associate_plusminus): Likewise.
500 (ssa_forward_propagate_and_combine): Likewise.
501 * tree-ssa-mathopts.c (replace_reciprocal): Adjust.
502 (execute_cse_reciprocals): Likewise.
503 * tree-ssa.c (insert_debug_temp_for_var_def): Adjust.
504
505 2011-09-09 Nick Clifton <nickc@redhat.com>
506
507 * config/mn10300/mn10300.c (mn10300_split_and_operand_count):
508 Return a positive value to indicate that the bits at the
509 bottom of the register should be cleared.
510
511 2011-09-09 Richard Guenther <rguenther@suse.de>
512
513 * tree-ssa-operands.c (swap_tree_operands): Always adjust
514 existing operand positions.
515
516 2011-09-09 Richard Guenther <rguenther@suse.de>
517
518 PR middle-end/50333
519 * tree-data-ref.c (split_constant_offset): Do not try to handle
520 ternary ops.
521
522 2011-09-08 Andrew Stubbs <ams@codesourcery.com>
523
524 PR tree-optimization/50318
525 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Correct
526 typo in use of mult_rhs1 and mult_rhs2.
527
528 2011-09-08 Uros Bizjak <ubizjak@gmail.com>
529
530 * config/i386/i386.c (standard_sse_constant_p): Handle AVX2 modes.
531 (standard_sse_constant_opcode) <case 2>: Change vpcmpeqd template.
532
533 2011-09-08 Bernd Schmidt <bernds@codesourcery.com>
534
535 * config/arm/arm.md (push_multi): Emit predicates.
536 (push_fp_multi): Likewise.
537 * config/arm/arm.c (vfp_output_fstmd): Likewise.
538
539 2011-09-08 Dodji Seketeli <dodji@redhat.com>
540
541 PR c++/33255 - Support -Wunused-local-typedefs warning
542 * c-decl.c (lookup_name): Use the new maybe_record_typedef_use.
543 (pushdecl): Use the new record_locally_defined_typedef.
544 (store_parm_decls): Allocate cfun->language.
545 (finish_function): Use the new maybe_warn_unused_local_typedefs,
546 and free cfun->language.
547 (c_push_function_context): Allocate cfun->language here only if needed.
548 (c_pop_function_context): Likewise, mark cfun->language
549 for collection only when it should be done.
550 * c-common.c (handle_used_attribute): Don't ignore TYPE_DECL nodes.
551 * c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
552 maybe_record_local_typedef_use.
553 * doc/invoke.texi: Update documentation for
554 -Wunused-local-typedefs.
555
556 2011-09-08 Enkovich Ilya <ilya.enkovich@intel.com>
557
558 * config/i386/i386-protos.h (ix86_lea_outperforms): New.
559 (ix86_avoid_lea_for_add): Likewise.
560 (ix86_avoid_lea_for_addr): Likewise.
561 (ix86_split_lea_for_addr): Likewise.
562
563 * config/i386/i386.c (LEA_MAX_STALL): New.
564 (increase_distance): Likewise.
565 (insn_defines_reg): Likewise.
566 (insn_uses_reg_mem): Likewise.
567 (distance_non_agu_define_in_bb): Likewise.
568 (distance_agu_use_in_bb): Likewise.
569 (ix86_lea_outperforms): Likewise.
570 (ix86_ok_to_clobber_flags): Likewise.
571 (ix86_avoid_lea_for_add): Likewise.
572 (ix86_avoid_lea_for_addr): Likewise.
573 (ix86_split_lea_for_addr): Likewise.
574 (distance_non_agu_define): Search in pred BBs added.
575 (distance_agu_use): Search in succ BBs added.
576 (IX86_LEA_PRIORITY): Value changed from 2 to 0.
577 (LEA_SEARCH_THRESHOLD): Now depends on LEA_MAX_STALL.
578 (ix86_lea_for_add_ok): Use ix86_lea_outperforms to make decision.
579
580 * config/i386/i386.md: Split added to transform non destructive
581 add into move and add.
582 (lea_1): transformed into insn_and_split to avoid AGU stalls.
583 (lea<mode>_2): Likewise.
584
585 2011-09-08 Martin Jambor <mjambor@suse.cz>
586
587 PR tree-optimization/50287
588 * ipa-split.c (split_function): Do not create SSA names for
589 non-gimple-registers.
590
591 2011-09-08 Richard Guenther <rguenther@suse.de>
592
593 PR tree-optimization/19831
594 * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Also
595 skip builtins with vdefs that do not really store something.
596 (propagate_necessity): For calls to free that we can associate
597 with an allocation function do not mark the freed pointer
598 definition necessary.
599 (eliminate_unnecessary_stmts): Remove a call to free if
600 the associated call to an allocation function is not necessary.
601
602 2011-09-08 Richard Guenther <rguenther@suse.de>
603
604 PR tree-optimization/19831
605 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark
606 allocation functions as necessary.
607
608 2011-09-08 Iain Sandoe <iains@gcc.gnu.org>
609
610 * config/darwin-driver.c (darwin_find_version_from_kernel): New routine
611 cut from ...
612 (darwin_default_min_version): Amended to provide defaults
613 for the cross directory case.
614 (darwin_driver_init): call darwin_default_min_version unconditionally.
615 * config/darwin.h (DEF_MIN_OSX_VERSION): New.
616 * config/darwin9.h: Likewise.
617 * config/darwin10.h: Likewise.
618 * config/rs6000/darwin7.h: Likewise.
619
620 2011-09-08 Jakub Jelinek <jakub@redhat.com>
621
622 PR target/50310
623 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Return
624 code early if TARGET_AVX.
625 (ix86_expand_fp_vcond): Handle LTGT and UNEQ.
626
627 2011-09-07 Jakub Jelinek <jakub@redhat.com>
628
629 * config/i386/sse.md (sseinsnmode): Remove 32-byte integer vector
630 duplicates.
631
632 PR target/50310
633 * config/i386/sse.md (*andnot<mode>3, *<code><mode>3): Fix up
634 "mode" attribute computation.
635
636 2011-09-07 Bernd Schmidt <bernds@codesourcery.com>
637
638 * regrename.c (struct du_head): Make nregs signed.
639 (closed_chains): Remove.
640 (create_new_chain): Return the new chain.
641 (chain_from_id): New static function.
642 (dump_def_use_chain): Change argument to be an int, indicating
643 the first ID to print. All callers changed.
644 (merge_overlapping_regs): Use chain_from_id. Assert that
645 chains don't conflict with themselves.
646 (rename_chains): Take no argument. Iterate over id_to_chain
647 rather to find chains to rename. Clear tick before the main loop.
648 (struct incoming_reg_info): New struct.
649 (struct bb_rename_info): New struct.
650 (init_rename_info, set_incoming_from_chain, merge_chains): New
651 static functions.
652 (regrename_analyze): New static function, broken out of
653 regrename_optimize. Record and make use of open chain information
654 at basic block boundaries, and merge chains where possible.
655 (scan_rtx_reg): Make this_nregs signed. Don't update
656 closed_chains.
657 (build_def_use): Return a bool to indicate success. All callers
658 changed. Don't initialize global data here.
659 (regrename_optimize): Move most code out of here into
660 regrename_analyze.
661 * regs.h (add_range_to_hard_reg_set, remove_range_from_hard_reg_set,
662 range_overlaps_hard_reg_set_p, range_in_hard_reg_set_p): New
663 static inline functions.
664 * vec.h (FOR_EACH_VEC_ELT_FROM): New macro.
665
666 * bb-reorder.c (insert_section_boundary_note): Don't check
667 optimize_function_for_speed_p.
668 (gate_handle_partition_blocks): Do it here instead.
669 (gate_handle_reorder_blocks): Move preliminary checks here ...
670 (rest_of_handle_reorder_blocks): ... from here.
671
672 2011-09-07 Martin Jambor <mjambor@suse.cz>
673
674 PR middle-end/50301
675 * ipa-cp.c (find_more_values_for_callers_subset): Check jump
676 function index bounds.
677 (perhaps_add_new_callers): Likewise.
678
679 2011-09-07 Martin Jambor <mjambor@suse.cz>
680
681 PR tree-optimization/49911
682 * tree-sra.c (analyze_access_subtree): Change type of to-be-replaced
683 enumerations to the corresponding plain integer type.
684
685 2011-09-07 Richard Guenther <rguenther@suse.de>
686
687 PR tree-optimization/50319
688 * tree-if-conv.c (set_bb_predicate): Assert we only set
689 canonical predicates.
690 (add_to_predicate_list): Simplify. Allow TRUTH_NOT_EXPR
691 around canonical predicates.
692 (predicate_bbs): Do not re-gimplify already canonical
693 predicates. Properly unshare them though.
694 (find_phi_replacement_condition): Simplify.
695
696 2011-09-07 Richard Sandiford <richard.sandiford@linaro.org>
697
698 PR target/49030
699 * config/arm/arm-protos.h (maybe_get_arm_condition_code): Declare.
700 * config/arm/arm.c (maybe_get_arm_condition_code): New function,
701 reusing the old code from get_arm_condition_code. Return ARM_NV
702 for invalid comparison codes.
703 (get_arm_condition_code): Redefine in terms of
704 maybe_get_arm_condition_code.
705 * config/arm/predicates.md (arm_comparison_operator): Use
706 maybe_get_arm_condition_code.
707
708 2011-09-07 Richard Guenther <rguenther@suse.de>
709
710 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
711 Canonicalize negated predicates by swapping edges.
712 (forward_propagate_into_cond): Likewise.
713
714 2011-09-07 Richard Guenther <rguenther@suse.de>
715
716 PR tree-optimization/50213
717 * tree-flow.h (simple_iv_increment_p): Declare.
718 * tree-ssa-dom.c (simple_iv_increment_p): Export. Also handle
719 POINTER_PLUS_EXPR.
720 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Do
721 not propagate simple IV counter increments.
722
723 2011-09-07 Eric Botcazou <ebotcazou@adacore.com>
724 Iain Sandoe <iains@gcc.gnu.org>
725
726 * config/rs6000/rs6000.c (compute_save_world_info): Test
727 cfun->has_nonlocal_label to determine if the out-of-line save
728 world call may be used.
729
730 2011-09-07 Nick Clifton <nickc@redhat.com>
731
732 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Set the jump
733 label on the parallel part of the insn.
734
735 2011-09-07 Jakub Jelinek <jakub@redhat.com>
736
737 PR debug/50191
738 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Try
739 avoid_constant_pool_reference first instead of last.
740
741 2011-09-06 Michael Meissner <meissner@linux.vnet.ibm.com>
742
743 * doc/configfiles.texi (Configuration Files): Update documentation
744 about tm_p.h and remove FIXME comment.
745
746 2011-09-06 Uros Bizjak <ubizjak@gmail.com>
747
748 * config/i386/i386.c (ix86_function_value_regno_p): Use AX_REG.
749 (function_value_32): Do not check TARGET_MMX, TARGET_SSE or TARGET_AVX.
750
751 2011-09-06 Iain Sandoe <iains@gcc.gnu.org>
752
753 * config/darwin10.h Remove duplicate LIB_SPEC.
754
755 2011-09-06 Enkovich Ilya <ilya.enkovich@intel.com>
756
757 PR middle-end/44382
758 * target.def (reassociation_width): New hook.
759
760 * doc/tm.texi.in (reassociation_width): Likewise.
761
762 * doc/tm.texi (reassociation_width): Likewise.
763
764 * doc/invoke.texi (tree-reassoc-width): New param documented.
765
766 * hooks.h (hook_int_uint_mode_1): New default hook.
767
768 * hooks.c (hook_int_uint_mode_1): Likewise.
769
770 * config/i386/i386.h (ix86_tune_indices): Add
771 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
772
773 (TARGET_REASSOC_INT_TO_PARALLEL): New.
774 (TARGET_REASSOC_FP_TO_PARALLEL): Likewise.
775
776 * config/i386/i386.c (initial_ix86_tune_features): Add
777 X86_TUNE_REASSOC_INT_TO_PARALLEL and X86_TUNE_REASSOC_FP_TO_PARALLEL.
778
779 (ix86_reassociation_width): New function.
780
781 * params.def (PARAM_TREE_REASSOC_WIDTH): New param added.
782
783 * tree-ssa-reassoc.c (get_required_cycles): New function.
784 (get_reassociation_width): Likewise.
785 (swap_ops_for_binary_stmt): Likewise.
786 (rewrite_expr_tree_parallel): Likewise.
787
788 (rewrite_expr_tree): Refactored. Part of code moved into
789 swap_ops_for_binary_stmt.
790
791 (reassociate_bb): Now checks reassociation width to be used and
792 call rewrite_expr_tree_parallel instead of rewrite_expr_tree if needed.
793
794 2011-09-06 Richard Guenther <rguenther@suse.de>
795
796 PR tree-optimization/47025
797 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): BUILT_IN_VA_END
798 uses nothing.
799 (call_may_clobber_ref_p_1): BUILT_IN_VA_END is a barrier like
800 BUILT_IN_FREE.
801 (stmt_kills_ref_p_1): BUILT_IN_VA_END kills what its argument
802 definitely points to.
803 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
804 BUILT_IN_VA_START doesn't let its va_list argument escape.
805 * tree-ssa-dce.c (propagate_necessity): BUILT_IN_VA_END does
806 not make any previous stores necessary.
807
808 2011-09-06 Martin Jambor <mjambor@suse.cz>
809
810 * ipa-inline.h (struct inline_summary): Move versionable flag...
811 * cgraph.h (struct cgraph_local_info): ...here
812 * ipa-cp.c (determine_versionability): Use the new versionable flag.
813 (determine_versionability): Likewise.
814 (ipcp_versionable_function_p): Likewise.
815 (ipcp_generate_summary): Likewise.
816 * ipa-inline-analysis.c (dump_inline_summary): Do not dump the
817 versionable flag.
818 (compute_inline_parameters): Do not clear the versionable flag.
819 (inline_read_section): Do not stream the versionable flag.
820 (inline_write_summary): Likewise.
821 * lto-cgraph.c (lto_output_node): Stream the versionable flag.
822 (input_overwrite_node): Likewise.
823
824 2011-09-06 Richard Guenther <rguenther@suse.de>
825
826 PR tree-optimization/48149
827 * tree-ssa-sccvn.c (vn_get_expr_for): Simplify. Fix tuplification bug.
828 (vn_valueize): Move earlier.
829 (valueize_expr): Use vn_valueize.
830 (simplify_binary_expression): Simplify, also combine COMPLEX_EXPR
831 operands.
832 (simplify_unary_expression): Simplify.
833
834 2011-09-06 Richard Guenther <rguenther@suse.de>
835
836 PR tree-optimization/48317
837 * tree-ssa-sccvn.h (struct vn_nary_op_s): Make op a true
838 trailing array.
839 (sizeof_vn_nary_op): New inline function.
840 (vn_nary_op_lookup_pieces): Adjust.
841 (vn_nary_op_insert_pieces): Likewise.
842 * tree-ssa-sccvn.c (vn_nary_op_eq): Also compare the length.
843 (init_vn_nary_op_from_pieces): Adjust signature. Deal with
844 any number of operands.
845 (vn_nary_length_from_stmt): New function.
846 (init_vn_nary_op_from_stmt): Adjust for CONSTRUCTOR handling.
847 (vn_nary_op_lookup_pieces): Adjust signature and allocate properly
848 sized temporary.
849 (vn_nary_op_lookup): Likewise.
850 (vn_nary_op_lookup_stmt): Likewise.
851 (vn_nary_op_insert_into): Likewise.
852 (vn_nary_op_insert_stmt): Likewise.
853 (visit_use): Handle CONSTRUCTOR as nary.
854 * tree-ssa-pre.c (phi_translate_1): Adjust.
855 (create_expression_by_pieces): Likewise.
856 (compute_avail): Likewise.
857
858 2011-09-06 Ira Rosen <ira.rosen@linaro.org>
859
860 * config/arm/arm.c (arm_preferred_simd_mode): Check
861 TARGET_NEON_VECTORIZE_DOUBLE instead of
862 TARGET_NEON_VECTORIZE_QUAD.
863 (arm_autovectorize_vector_sizes): Likewise.
864 * config/arm/arm.opt (mvectorize-with-neon-quad): Make inverse
865 mask of mvectorize-with-neon-double. Add RejectNegative.
866 (mvectorize-with-neon-double): New.
867
868 2011-09-06 Richard Guenther <rguenther@suse.de>
869
870 * tree-ssa-sccvn.c (visit_use): CSE stmt pieces and simplify matching.
871
872 2011-09-06 Tom de Vries <tom@codesourcery.com>
873
874 * recog.c (asm_labels_ok): New function.
875 (check_asm_operands): Use asm_labels_ok.
876
877 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
878
879 PR target/49606
880 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): Check Pmode.
881 (PMODE_INSN): New macro.
882 * config/mips/mips.c (gen_load_const_gp): Use PMODE_INSN.
883 (mips_got_load, mips_expand_synci_loop): Likewise.
884 (mips_save_gp_to_cprestore_slot): Handle SImode and DImode
885 cprestore patterns.
886 (mips_emit_loadgp): Use PMODE_INSN. Handle SImode and DImode
887 copygp_mips16 patterns.
888 (mips_expand_prologue): Handle SImode and DImode potential_cprestore
889 and use_cprestore patterns.
890 (mips_override_options): Check for incompatible -mabi and -mlong
891 combinations.
892 * config/mips/mips.md (unspec_got<mode>): Rename to...
893 (unspec_got_<mode>): ...this.
894 (copygp_mips16): Use the Pmode iterator.
895 (potential_cprestore, cprestore, use_cprestore): Likewise.
896 (clear_cache, indirect_jump): Use PMODE_INSN.
897 (indirect_jump<mode>): Rename to...
898 (indirect_jump_<mode>): ...this.
899 (tablejump): Use PMODE_INSN.
900 (tablejump<mode>): Rename to...
901 (tablejump_<mode>): ...this.
902 (exception_receiver): Handle restore_gp_si and restore_gp_di.
903 (restore_gp): Use the Pmode iterator.
904 * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Use
905 PMODE_INSN.
906
907 2011-09-05 Richard Sandiford <rdsandiford@googlemail.com>
908
909 * config/mips/mips.c (mips_gimplify_va_arg_expr): Unshare off.
910 Fix the type of the BIT_AND_EXPR.
911
912 2011-09-05 David S. Miller <davem@davemloft.net>
913
914 * config.host: Add driver-sparc.o and sparc/x-sparc on
915 native sparc*-*-linux* builds.
916 * config/sparc/driver-sparc.c: Correct Linux strings.
917 * config/sparc/linux.h: Add DRIVER_SELF_SPECS.
918 * config/sparc/linux64.h: Likewise.
919 * doc/invoke.texi: Document that Linux also supports
920 -mcpu=native and -mtune=native on sparc.
921
922 * config/sparc/sparc-opts.h (PROCESSOR_NIAGARA3,
923 PROCESSOR_NIAGARA4): New.
924 * config/sparc/sparc.opt: Handle new processor types.
925 * config/sparc/sparc.md: Add to "cpu" attribute.
926 * config/sparc/sparc.h (TARGET_CPU_niagara3,
927 TARGET_CPU_niagara4): New, treat as niagara2.
928 * config/sparc/linux64.h: Handle niagara3 and niagara4 like niagara2.
929 * config/sparc/sol2.h: Likewise.
930 * config/sparc/niagara2.md: Schedule niagara3 like niagara2.
931 * config/sparc/sparc.c (sparc_option_override): Add
932 niagara3 and niagara4 handling.
933 (sparc32_initialize_trampoline): Likewise.
934 (sparc64_initialize_trampoline): Likewise.
935 (sparc_use_sched_lookahead): Likewise.
936 (sparc_issue_rate): Likewise.
937 (sparc_register_move_cost): Likewise.
938 * config/sparc/driver-sparc.c (cpu_names): Use niagara3
939 and niagara4 as appropriate.
940 * doc/invoke.texi: Document new processor types.
941 * config.gcc: Recognize niagara3 and niagara4 in --with-cpu
942 and --with-tune options.
943
944 * config/sparc/sol2-64.h: Move ...
945 * config/sparc/default-64.h: ... to here. Update comment.
946 * config.gcc: Update Solaris sparc to use default-64.h, also
947 prefix this header into the list on sparc64-*-linux.
948 * config/sparc/linux64.h (TARGET_DEFAULT): Only override if
949 TARGET_64BIT_DEFAULT is defined. Remove commented out reference
950 to MASK_HARD_QUAD.
951
952 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
953
954 PR target/50289
955 * config/avr/avr.c (sequent_regs_live): Don't recognize sequences
956 that contain global register variable.
957
958 2011-09-05 Richard Guenther <rguenther@suse.de>
959
960 * tree-cfg.c (replace_uses_by): Use fold_stmt, not fold_stmt_inplace.
961
962 2011-09-05 Richard Guenther <rguenther@suse.de>
963
964 * stor-layout.c (layout_type): Use size_binop for array size
965 calculations.
966
967 2011-09-05 Georg-Johann Lay <avr@gjlay.de>
968
969 * config/avr/avr.h (progmem_section): Remove Declaration.
970 * config/avr/avr.c (progmem_section): Make static and rename to
971 progmem_swtable_section.
972 (avr_output_addr_vec_elt): No need to switch sections.
973 (avr_asm_init_sections): Use output_section_asm_op as section
974 callback for progmem_swtable_section.
975 (avr_output_progmem_section_asm_op): Remove Function.
976 (TARGET_ASM_FUNCTION_RODATA_SECTION): New Define.
977 (avr_asm_function_rodata_section): New static Function.
978 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Output
979 alignment 2**1 for jump tables.
980
981 2011-09-04 Jan Hubicka <jh@suse.cz>
982
983 * ipa-inline-analysis.c (set_cond_stmt_execution_predicate): Check that
984 parameter is SSA name.
985
986 2011-09-04 Richard Guenther <rguenther@suse.de>
987
988 Revert
989 2011-08-31 Richard Guenther <rguenther@suse.de>
990
991 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
992 special-casing.
993
994 2011-09-04 Iain Sandoe <iains@gcc.gnu.org>
995
996 PR debug/49901
997 * config/darwin.h (DEBUG_MACRO_SECTION): New macro.
998
999 2011-09-04 Jakub Jelinek <jakub@redhat.com>
1000 Ira Rosen <ira.rosen@linaro.org>
1001
1002 PR tree-optimization/50208
1003 * tree-vect-patterns.c (vect_handle_widen_mult_by_const): Add an
1004 argument. Check that def_stmt is inside the loop.
1005 (vect_recog_widen_mult_pattern): Update calls to
1006 vect_handle_widen_mult_by_cons.
1007 (vect_operation_fits_smaller_type): Check that def_stmt is
1008 inside the loop.
1009
1010 2011-09-04 Ira Rosen <ira.rosen@linaro.org>
1011
1012 * tree-vectorizer.c (vect_print_dump_info): Print line
1013 number when dumping to a file.
1014 (vectorize_loops): Add new messages to dump file.
1015
1016 2011-09-03 Martin Jambor <mjambor@suse.cz>
1017
1018 * ipa-prop.h (ipa_jump_func_t): New typedef.
1019 (struct ipa_edge_args): Removed field argument_count, field
1020 jump_functions turned into a vector.
1021 (ipa_set_cs_argument_count): Removed.
1022 (ipa_get_cs_argument_count): Updated to work on vectors.
1023 (ipa_get_ith_jump_func): Likewise.
1024 * ipa-prop.c (ipa_count_arguments): Removed.
1025 (compute_scalar_jump_functions): Use ipa_get_ith_jump_func to access
1026 jump functions. Update caller.
1027 (compute_pass_through_member_ptrs): Likewise.
1028 (compute_cst_member_ptr_arguments): Likewise.
1029 (ipa_compute_jump_functions_for_edge): Get number of arguments from
1030 the statement, allocate vector.
1031 (ipa_compute_jump_functions): Do not call ipa_count_arguments.
1032 (duplicate_ipa_jump_func_array): Removed.
1033 (ipa_edge_duplication_hook): Use VEC_copy, do not copy argument count.
1034 (ipa_read_node_info): Allocate vector.
1035
1036 2011-09-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1037
1038 PR middle-end/50232
1039 * config/pa/pa.md (return): Define "return" insn pattern.
1040 (epilogue): Use it when no epilogue is needed.
1041 * config/pa/pa.c (pa_can_use_return_insn): New function.
1042 * config/pa/pa-protos.h (pa_can_use_return_insn): Declare.
1043
1044 2011-09-03 Eric Botcazou <ebotcazou@adacore.com>
1045
1046 * cfgexpand.c (add_stack_var): Assert that the alignment is not zero.
1047 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Revert latest change.
1048 Force at least BITS_PER_UNIT alignment on the new variable.
1049
1050 2011-09-02 Gary Funck <gary@intrepid.com>
1051
1052 * opts.c (print_specific_help): Fix off-by-one compare in
1053 assertion check.
1054 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
1055 CL_TARGET, CL_COMMON, CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED):
1056 Increase by +5 to allow for more languages.
1057 * optc-gen.awk: Generate #if that ensures that the number of
1058 languages is within the implementation-defined limit.
1059
1060 2011-09-02 Michael Matz <matz@suse.de>
1061
1062 PR middle-end/50260
1063 * ipa-split.c (split_function): Call add_referenced_var.
1064
1065 * tree-ssa-phiopt.c (cond_store_replacement): Don't call get_var_ann.
1066 (cond_if_else_store_replacement_1): Ditto.
1067 * tree-ssa-pre.c (get_representative_for): Ditto.
1068 (create_expression_by_pieces): Ditto.
1069 (insert_into_preds_of_block): Ditto.
1070 * tree-sra.c (create_access_replacement): Ditto.
1071 (get_replaced_param_substitute): Ditto.
1072
1073 2011-09-02 Bernd Schmidt <bernds@codesourcery.com>
1074
1075 * config/c6x/c6x.md (collapse-ndfa, no-comb-vect): New
1076 automata_options.
1077 (d1, l1, s1, m1, d2, l2, s2, m2): Changed to define_query_cpu_unit.
1078 (l1w, s1w, l2w, s2w): Define in the main automaton.
1079 (fps1, fpl1, adddps1, adddpl1, fps2, fpl2, adddps2, adddpl2): New
1080 units.
1081 * config/c6x/c6x.c (c6x_sched_insn_info): Add unit_mask member.
1082 (c6x_unit_names): Add the new units.
1083 (c6x_unit_codes): New static array.
1084 (UNIT_QID_D1, UNIT_QID_L1, UNIT_QID_S1, UNIT_QID_M1, UNIT_QID_FPS1,
1085 UNIT_QID_FPL1, UNIT_QID_ADDDPS1, UNIT_QID_ADDDPL1,
1086 UNIT_QID_SIDE_OFFSET): New macros.
1087 (RESERVATION_S2): Adjust value.
1088 (c6x_option_override): Compute c6x_unit_codes.
1089 (assign_reservations): Take the unit_mask of the last instruction
1090 into account. Detect floating point reservations by looking for
1091 the new units. Don't assign reservations if the field is already
1092 nonzero.
1093 (struct c6x_sched_context): Add member prev_cycle_state_ctx.
1094 (init_sched_state): Initialize it.
1095 (c6x_clear_sched_context): Free it.
1096 (insn_set_clock): Clear reservation.
1097 (prev_cycle_state): New static variable.
1098 (c6x_init_sched_context): Save it.
1099 (c6x_sched_init): Allocate space for it and clear it.
1100 (c6x_sched_dfa_pre_cycle_insn): New static function.
1101 (c6x_dfa_new_cycle): Save state at the start of a new cycle.
1102 (c6x_variable_issue): Only record units in the unit_mask that
1103 were not set at the start of the cycle.
1104 (c6x_variable_issue): Compute and store the unit_mask from the
1105 current state.
1106 (reorg_split_calls): Ensure the new information remains correct.
1107 (TARGET_SCHED_DFA_NEW_CYCLE, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
1108 TARGET_SCHED_DFA_PRE_CYCLE_INSN): Define.
1109 * config/c6x/c6x.h (CPU_UNITS_QUERY): Define.
1110 * config/c6x/c6x-sched.md.in (fp4_ls_N__CROSS_, adddp_ls_N__CROSS_):
1111 Add special reservations.
1112 * config/c6x/c6x-sched.md: Regenerate.
1113
1114 2011-09-02 Martin Jambor <mjambor@suse.cz>
1115
1116 * ipa-prop.h (ipa_node_params): Removed fields
1117 called_with_var_arguments and node_versionable.
1118 (ipa_set_called_with_variable_arg): Removed.
1119 (ipa_is_called_with_var_arguments): Likewise.
1120 * ipa-cp.c (ipa_get_lattice): Fixed index check in an assert.
1121 (determine_versionability): Do not check for type attributes and va
1122 builtins. Record versionability into inline summary.
1123 (initialize_node_lattices): Do not check
1124 ipa_is_called_with_var_arguments.
1125 (propagate_constants_accross_call): Likewise, ignore arguments we do
1126 not have PARM_DECLs for, set variable flag for parameters that were
1127 not passed a value.
1128 (create_specialized_node): Dump info that we cannot change signature.
1129 * ipa-prop.c (ipa_compute_jump_functions): Do not care about variable
1130 number of arguments.
1131 (ipa_make_edge_direct_to_target): Likewise.
1132 (ipa_update_after_lto_read): Likewise.
1133 (ipa_node_duplication_hook): Do not copy called_with_var_arguments flag.
1134 * tree-inline.c (copy_arguments_for_versioning): Copy PARM_DECLs if
1135 they were remapped.
1136
1137 2011-09-02 Richard Guenther <rguenther@suse.de>
1138
1139 PR tree-optimization/27460
1140 PR middle-end/29269
1141 * doc/md.texi (vcond): Document.
1142 * genopinit.c (optabs): Turn vcond{,u}_optab into a conversion
1143 optab with two modes.
1144 * optabs.h (enum convert_optab_index): Add COI_vcond, COI_vcondu.
1145 (enum direct_optab_index): Remove DOI_vcond, DOI_vcondu.
1146 (vcond_optab): Adjust.
1147 (vcondu_optab): Likewise.
1148 (expand_vec_cond_expr_p): Adjust prototype.
1149 * optabs.c (get_vcond_icode): Adjust.
1150 (expand_vec_cond_expr_p): Likewise.
1151 (expand_vec_cond_expr): Likewise.
1152 * tree-vect-stmts.c (vect_is_simple_cond): Return the comparison
1153 vector type.
1154 (vectorizable_condition): Allow differing types for comparison
1155 and result.
1156 * config/i386/i386.c (ix86_expand_sse_cmp): Use proper mode
1157 for the comparison.
1158 * config/i386/sse.md (vcond<mode>): Split to
1159 vcond<V_256:mode><VF_256:mode>, vcond<V_128:mode><VF_128:mode>,
1160 vcond<V_128:mode><VI124_128:mode> and
1161 vcondu<V_128:mode><VI124_128:mode>.
1162 (vcondv2di): Change to vcond<VI8F_128:mode>v2di.
1163 (vconduv2di): Likewise.
1164 * config/arm/neon.md (vcond<mode>): Change to vcond*<mode><mode>.
1165 (vcondu<mode>): Likewise.
1166 * config/ia64/vect.md (vcond<mode>): Likewise.
1167 (vcondu<mode>): Likewise.
1168 (vcondv2sf): Likewise.
1169 * config/mips/mips-ps-3d.md (vcondv2sf): Likewise.
1170 * config/rs6000/paired.md (vcondv2sf): Likewise.
1171 * config/rs6000/vector.md (vcond<mode>): Likewise.
1172 (vcondu<mode>): Likewise.
1173 * config/spu/spu.md (vcond<mode>): Likewise.
1174 (vcondu<mode>): Likewise.
1175
1176 2011-09-02 Richard Guenther <rguenther@suse.de>
1177
1178 * pretty-print.h (pp_unsigned_wide_integer): New.
1179 * tree-pretty-print.c (dump_generic_node): Print unsigned
1180 host-wide-int fitting INTEGER_CSTs with pp_unsigned_wide_integer.
1181
1182 2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
1183
1184 PR target/49987
1185 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for
1186 valid CONST_VECTOR operands.
1187 (rs6000_expand_vector_init): Likewise.
1188
1189 2011-09-02 Martin Jambor <mjambor@suse.cz>
1190
1191 * cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
1192 * gimple-fold.c (gimple_get_virt_method_for_binfo): Rewritten to use
1193 BINFO_VTABLE. Parameter delta removed, all callers updated.
1194 * tree.c (free_lang_data_in_binfo): Clear BINFO_VIRTUALs instead
1195 BINFO_VTABLE.
1196 * cgraph.c (cgraph_make_edge_direct): Removed parameter delta, updated
1197 all calls.
1198 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Removed
1199 handling of thunk_delta.
1200 * ipa-cp.c (get_indirect_edge_target): Removed parameter delta.
1201 (devirtualization_time_bonus): Do not handle thunk deltas.
1202 (ipcp_discover_new_direct_edges): Likewise.
1203 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1204 (try_make_edge_direct_simple_call): Likewise.
1205 (try_make_edge_direct_virtual_call): Likewise.
1206 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1207 parameter set as unused.
1208 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1209 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise. Mark
1210 parameter set as unused.
1211 (output_edge_opt_summary): Likewise. Mark both parameters as unused.
1212 (input_edge_opt_summary): Likewise.
1213 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not stream
1214 BINFO_VIRTUALS at all.
1215 * lto-streamer-in.c (lto_input_ts_binfo_tree_pointers): Likewise.
1216
1217 2011-09-02 Richard Guenther <rguenther@suse.de>
1218
1219 * tree-ssa-ccp.c (fold_builtin_alloca_for_var): Do not fold alloca (0).
1220 (ccp_fold_stmt): Continue replacing args when folding alloca fails.
1221
1222 2011-08-31 Richard Guenther <rguenther@suse.de>
1223
1224 * expr.c (expand_expr_real_2): Move COND_EXPR and VEC_COND_EXPR
1225 handling here, from ...
1226 (expand_expr_real_1): ... here.
1227 * gimple-pretty-print.c (dump_ternary_rhs): Handle COND_EXPR
1228 and VEC_COND_EXPR.
1229 * gimple.c (gimple_rhs_class_table): Make COND_EXPR and VEC_COND_EXPR
1230 a GIMPLE_TERNARY_RHS.
1231 * tree-cfg.c (verify_gimple_assign_ternary): Handle COND_EXPR
1232 and VEC_COND_EXPR here ...
1233 (verify_gimple_assign_single): ... not here.
1234 * gimple-fold.c (fold_gimple_assign): Move COND_EXPR folding.
1235 * tree-object-size.c (cond_expr_object_size): Adjust.
1236 (collect_object_sizes_for): Likewise.
1237 * tree-scalar-evolution.c (interpret_expr): Don't handle ternary RHSs.
1238 * tree-ssa-forwprop.c (forward_propagate_into_cond): Fix and simplify.
1239 (ssa_forward_propagate_and_combine): Adjust.
1240 * tree-ssa-loop-im.c (move_computations_stmt): Build the COND_EXPR
1241 as ternary.
1242 * tree-ssa-threadedge.c (fold_assignment_stmt): Adjust.
1243 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
1244 * tree-vect-stmt.c (vectorizable_condition): Likewise.
1245 * tree-vrp.c (extract_range_from_cond_expr): Likewise.
1246 (extract_range_from_assignment): Likewise.
1247
1248 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1249
1250 * config/i386/i386.md: Use (match_test ...) for attribute tests.
1251 * config/i386/mmx.md: Likewise.
1252 * config/i386/sse.md: Likewise.
1253 * config/i386/predicates.md (call_insn_operand): Use
1254 (not (match_test "...")) instead of (match_test "!...")
1255 * config/i386/constraints.md (w): Likewise.
1256
1257 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1258
1259 * doc/md.texi: Describe the use of match_tests in attribute tests.
1260 * rtl.def (MATCH_TEST): Update commentary.
1261 * genattrtab.c (attr_copy_rtx, check_attr_test, clear_struct_flag)
1262 (write_test_expr, walk_attr_value): Handle MATCH_TEST.
1263
1264 2011-08-31 Richard Sandiford <rdsandiford@googlemail.com>
1265
1266 * genattrtab.c (attr_rtx_1): Hash SYMBOL_REFs.
1267 (attr_string): Use copy_md_ptr_loc.
1268
1269 2011-08-31 Martin Jambor <mjambor@suse.cz>
1270
1271 PR middle-end/49886
1272 * ipa-inline-analysis.c (compute_inline_parameters): Set
1273 can_change_signature of noes with typde attributes.
1274 * ipa-split.c (split_function): Do not skip any arguments if
1275 can_change_signature is set.
1276
1277 2011-08-31 Martin Jambor <mjambor@suse.cz>
1278
1279 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Alias
1280 check removed.
1281
1282 2011-08-31 Richard Guenther <rguenther@suse.de>
1283
1284 * fold-const.c (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE
1285 special-casing.
1286
1287 2011-08-31 Marc Glisse <marc.glisse@inria.fr>
1288
1289 * doc/generic.texi (Types for C++): CP_TYPE_QUALS -> cp_type_quals.
1290
1291 2011-08-31 Tom de Vries <tom@codesourcery.com>
1292
1293 PR middle-end/43513
1294 * Makefile.in (tree-ssa-ccp.o): Add $(PARAMS_H) to rule.
1295 * tree-ssa-ccp.c (params.h): Include.
1296 (fold_builtin_alloca_for_var): New function.
1297 (ccp_fold_stmt): Use fold_builtin_alloca_for_var.
1298
1299 2011-08-30 Uros Bizjak <ubizjak@gmail.com>
1300
1301 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1302 Handle FMA option.
1303
1304 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1305
1306 * config/arm/arm.c (optimal_immediate_sequence_1): Make b1, b2,
1307 b3 and b4 unsigned.
1308
1309 2011-08-30 Andrew Stubbs <ams@codesourcery.com>
1310
1311 * config/arm/arm.c (arm_gen_constant): Set can_negate correctly
1312 when code is SET.
1313
1314 2011-08-30 Richard Guenther <rguenther@suse.de>
1315
1316 PR middle-end/48571
1317 * gimple.h (maybe_fold_offset_to_address): Remove.
1318 (maybe_fold_offset_to_reference): Likewise.
1319 (maybe_fold_stmt_addition): Likewise.
1320 (may_propagate_address_into_dereference): Likewise.
1321 * tree-inline.c (remap_gimple_op_r): Do not reconstruct
1322 array references.
1323 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1324 Canonicalize invariant POINTER_PLUS_EXPRs to invariant MEM_REF
1325 addresses instead.
1326 (may_propagate_address_into_dereference): Remove.
1327 (maybe_fold_offset_to_array_ref): Likewise.
1328 (maybe_fold_offset_to_reference): Likewise.
1329 (maybe_fold_offset_to_address): Likewise.
1330 (maybe_fold_stmt_addition): Likewise.
1331 (fold_gimple_assign): Do not reconstruct array references but
1332 instead canonicalize invariant POINTER_PLUS_EXPRs to invariant
1333 MEM_REF addresses.
1334 (gimple_fold_stmt_to_constant_1): Likewise.
1335 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
1336 * gimplify.c (gimplify_conversion): Likewise.
1337 (gimplify_expr): Likewise.
1338
1339 2011-08-30 Ilya Tocar <ilya.tocar@intel.com>
1340
1341 * config/i386/fmaintrin.h: New.
1342 * config.gcc: Add fmaintrin.h.
1343 * config/i386/i386.c
1344 (enum ix86_builtins) <IX86_BUILTIN_VFMADDSS3>: New.
1345 <IX86_BUILTIN_VFMADDSD3>: Likewise.
1346 * config/i386/sse.md (fmai_vmfmadd_<mode>): New.
1347 (*fmai_fmadd_<mode>): Likewise.
1348 (*fmai_fmsub_<mode>): Likewise.
1349 (*fmai_fnmadd_<mode>): Likewise.
1350 (*fmai_fnmsub_<mode>): Likewise.
1351 * config/i386/immintrin.h: Add fmaintrin.h.
1352
1353 2011-08-30 Bernd Schmidt <bernds@codesourcery.com>
1354
1355 * genautomata.c (NO_COMB_OPTION): New macro.
1356 (no_comb_flag): New static variable.
1357 (gen_automata_option): Handle NO_COMB_OPTION.
1358 (comb_vect_p): False if no_comb_flag.
1359 (add_vect): Move computation of min/max values. Return early if
1360 no_comb_flag.
1361 * doc/md.texi (automata_option): Document no-comb-vect.
1362
1363 * config/i386/i386.c (get_pc_thunk_name): Change prefix to
1364 "__x86.get_pc_thunk".
1365
1366 * bb-reorder.c (insert_section_boundary_note): Only do it if
1367 we reordered the blocks; i.e. not if !optimize_function_for_speed_p.
1368
1369 2011-08-30 Christian Bruel <christian.bruel@st.com>
1370
1371 * coverage.c (coverage_init): Check flag_branch_probabilities instead of
1372 flag_profile_use.
1373
1374 2011-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1375
1376 * config/rs6000/rs6000.opt (-msave-toc-indirect): Change default
1377 to off. Document switch.
1378 * doc/invoke.texi (-msave-toc-indirect): Ditto.
1379
1380 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1381
1382 * gthr-posix.h (__gthread_active_p): Do not use preprocessor
1383 conditionals and comments inside macro arguments.
1384
1385 2011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
1386 Richard Guenther <rguenther@suse.de>
1387
1388 * tree.h (constant_boolean_node): Adjust prototype.
1389 * fold-const.c (fold_convert_loc): Move aggregate conversion
1390 leeway down.
1391 (constant_boolean_node): Make value parameter boolean, add
1392 vector type handling.
1393 (fold_unary_loc): Use constant_boolean_node.
1394 (fold_binary_loc): Preserve types properly when folding
1395 COMPLEX_EXPR <__real x, __imag x>.
1396 * gimplify.c (gimplify_expr): Handle vector comparison.
1397 * tree.def (EQ_EXPR, ...): Document behavior on vector typed
1398 comparison.
1399 * tree-cfg.c (verify_gimple_comparison): Verify vector typed
1400 comparisons.
1401
1402 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1403
1404 PR middle-end/48722
1405 * emit-rtl.c (unshare_all_rtl_again): For CALL_INSNs,
1406 reset_used_flags also in CALL_INSN_FUNCTION_USAGE.
1407 (verify_rtl_sharing): Likewise and verify_rtx_sharing
1408 in there too.
1409 (unshare_all_rtl_in_chain): For CALL_INSNs
1410 copy_rtx_if_shared also CALL_INSN_FUNCTION_USAGE.
1411
1412 2011-08-29 Richard Guenther <rguenther@suse.de>
1413
1414 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Set a location
1415 on the built ADDR_EXPR.
1416
1417 2011-08-29 Jakub Jelinek <jakub@redhat.com>
1418
1419 PR debug/50215
1420 * var-tracking.c (create_entry_value): Call cselib_lookup_from_insn
1421 before adding ENTRY_VALUE to val->locs.
1422
1423 2011-08-28 Mikael Pettersson <mikpe@it.uu.se>
1424
1425 PR bootstrap/50218
1426 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
1427 comp.
1428
1429 2011-08-27 Bernd Schmidt <bernds@codesourcery.com>
1430
1431 * doc/rtl.texi (simple_return): Document.
1432 (parallel, PATTERN): Here too.
1433 * doc/md.texi (return): Mention it's allowed to expand to simple_return
1434 in some cases.
1435 (simple_return): Document standard pattern.
1436 * gengenrtl.c (special_rtx): SIMPLE_RETURN is special.
1437 * final.c (final_scan_insn): Use ANY_RETURN_P on body.
1438 * reorg.c (function_return_label, function_simple_return_label):
1439 New static variables, replacing...
1440 (end_of_function_label): ... this.
1441 (simplejump_or_return_p): New static function.
1442 (optimize_skip, steal_delay_list_from_fallthrough,
1443 fill_slots_from_thread): Use it.
1444 (relax_delay_slots): Likewise. Use ANY_RETURN_P on body.
1445 (rare_destination, follow_jumps): Use ANY_RETURN_P on body.
1446 (find_end_label): Take a new arg which is one of the two return
1447 rtxs. Depending on which, set either function_return_label or
1448 function_simple_return_label. All callers changed.
1449 (make_return_insns): Make both kinds.
1450 (dbr_schedule): Adjust for two kinds of end labels.
1451 * function.c (emit_return_into_block): Set JUMP_LABEL properly.
1452 * genemit.c (gen_exp): Handle SIMPLE_RETURN.
1453 (gen_expand, gen_split): Use ANY_RETURN_P.
1454 * df-scan.c (df_uses_record): Handle SIMPLE_RETURN.
1455 * rtl.def (SIMPLE_RETURN): New code.
1456 * ifcvt.c (find_if_case_1): Be more careful about
1457 redirecting jumps to the EXIT_BLOCK.
1458 * jump.c (condjump_p, condjump_in_parallel_p, any_condjump_p,
1459 returnjump_p_1): Handle SIMPLE_RETURNs.
1460 * print-rtl.c (print_rtx): Likewise.
1461 * rtl.c (copy_rtx): Likewise.
1462 * bt-load.c (compute_defs_uses_and_gen): Use ANY_RETURN_P.
1463 * combine.c (simplify_set): Likewise.
1464 * resource.c (find_dead_or_set_registers, mark_set_resources):
1465 Likewise.
1466 * emit-rtl.c (verify_rtx_sharing, classify_insn, copy_insn_1,
1467 copy_rtx_if_shared_1, mark_used_flags): Handle SIMPLE_RETURNs.
1468 (init_emit_regs): Initialize simple_return_rtx.
1469 * cfglayout.c (fixup_reorder_chain): Pass a JUMP_LABEL to
1470 force_nonfallthru_and_redirect.
1471 * rtl.h (ANY_RETURN_P): Allow SIMPLE_RETURN.
1472 (GR_SIMPLE_RETURN): New enum value.
1473 (simple_return_rtx): New macro.
1474 * basic-block.h (force_nonfallthru_and_redirect): Adjust
1475 declaration.
1476 * cfgrtl.c (force_nonfallthru_and_redirect): Take a new jump_label
1477 argument. All callers changed. Be careful about what kinds of
1478 returnjumps to generate.
1479 * config/i386/3i86.c (ix86_pad_returns, ix86_count_insn_bb,
1480 ix86_pad_short_function): Likewise.
1481 * config/arm/arm.c (arm_final_prescan_insn): Handle both kinds
1482 of return.
1483 * config/mips/mips.md (any_return): New code_iterator.
1484 (optab): Add cases for return and simple_return.
1485 (return): Expand to a simple_return.
1486 (simple_return): New pattern.
1487 (*<optab>, *<optab>_internal for any_return): New patterns.
1488 (return_internal): Remove.
1489 * config/mips/mips.c (mips_expand_epilogue): Make the last insn
1490 a simple_return_internal.
1491
1492 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1493
1494 * config/i386/sse.md (*absneg<mode>2): Fix split condition.
1495 (vec_extract_lo_<mode>): Prevent both operands in memory.
1496 (vec_extract_lo_v16hi): Ditto.
1497 (*vec_extract_v4sf_mem): Add TARGET_SSE insn constraint.
1498
1499 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1500
1501 * config/i386/sse.md (mulv16qi3): Attach REG_EQUAL note.
1502 (*sse2_mulv4si3): Ditto.
1503 (mulv2di3): Ditto.
1504 * config/i386/i386.c (legitimize_tls_address): Change REG_EQIV
1505 notes to REG_EQUAL.
1506
1507 2011-08-27 Uros Bizjak <ubizjak@gmail.com>
1508
1509 PR target/50202
1510 * config/i386/sse.md (sse4_2_pcmpestr): Emit NOTE_INSN_DELETED note
1511 when all outputs are unused.
1512 (sse4_2_pcmpistr): Ditto.
1513
1514 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1515
1516 * config/i386/i386.md (round<mode>2): New expander.
1517 * config/i386/i386.c (enum ix86_builtins): Add
1518 IX86_BUILTIN_ROUND{PS,PD}_AZ{,256}.
1519 (struct builtin_description): Add __builtin_ia32_round{ps,pd}_az{,256}
1520 descriptions.
1521 (ix86_builtin_vectorized_function): Handle BUILT_IN_ROUND{,F} builtins.
1522 (ix86_build_const_vector): Rewrite using loop with RTVEC_ELT accessor.
1523
1524 2011-08-26 Uros Bizjak <ubizjak@gmail.com>
1525
1526 PR middle-end/50083
1527 * convert.c (convert_to_integer) <BUIT_IN_ROUND{,F,L}>: Convert
1528 only when TARGET_C99_FUNCTIONS.
1529 <BUILT_IN_NEARBYINT{,F,L}>: Ditto.
1530 <BUILT_IN_RINT{,F,L}>: Ditto.
1531
1532 2011-08-26 Michael Matz <matz@suse.de>
1533 Jakub Jelinek <jakub@redhat.com>
1534
1535 PR lto/50165
1536 * lto-streamer-in.c (canon_file_name): Initialize new_slot->len;
1537 don't call strlen twice, use memcpy.
1538
1539 2011-08-26 H.J. Lu <hongjiu.lu@intel.com>
1540
1541 * config/i386/bmi2intrin.h: Allow in <immintrin.h>.
1542 * config/i386/bmiintrin.h: Likewise.
1543 * config/i386/lzcntintrin.h: Likewise.
1544
1545 * config/i386/immintrin.h: Include <lzcntintrin.h>,
1546 <bmiintrin.h> and <bmi2intrin.h>.
1547
1548 2011-08-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1549
1550 PR target/50166
1551 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Check count in main.
1552 * configure: Regenerate.
1553
1554 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1555
1556 PR c/50179
1557 * c-typeck.c (c_process_expr_stmt): Skip over nops and
1558 call mark_exp_read even if exprv is ADDR_EXPR.
1559
1560 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
1561
1562 * df-problems.c (df_note_bb_compute): Pass uses rather than defs
1563 to df_set_dead_notes_for_mw.
1564
1565 2011-08-26 Richard Guenther <rguenther@suse.de>
1566
1567 * varasm.c (decode_addr_const): Handle MEM_REF[&X, OFF].
1568
1569 2011-08-26 Zdenek Dvorak <ook@ucw.cz>
1570 Tom de Vries <tom@codesourcery.com>
1571
1572 * tree-ssa-loop-ivopts.c (struct cost_pair): Add comp field.
1573 (struct ivopts_data): Add loop_single_exit_p field.
1574 (niter_for_exit): Change parameter desc_p into return value. Return
1575 desc if desc->may_be_zero. Free desc if unused.
1576 (niter_for_single_dom_exit): Change return type.
1577 (find_induction_variables): Handle changed return type of
1578 niter_for_single_dom_exit. Dump may_be_zero.
1579 (add_candidate_1): Keep original base and step type for IP_ORIGINAL.
1580 (set_use_iv_cost): Add and handle comp parameter.
1581 (determine_use_iv_cost_generic, determine_use_iv_cost_address): Add
1582 comp argument to set_use_iv_cost.
1583 (strip_wrap_conserving_type_conversions, expr_equal_p)
1584 (difference_cannot_overflow_p, iv_elimination_compare_lt): New function.
1585 (may_eliminate_iv): Add comp parameter. Handle new return type of
1586 niter_for_exit. Use loop_single_exit_p. Use iv_elimination_compare_lt.
1587 (determine_use_iv_cost_condition): Add comp argument to set_use_iv_cost
1588 and may_eliminate_iv.
1589 (rewrite_use_compare): Move call to iv_elimination_compare to ...
1590 (may_eliminate_iv): Here.
1591 (tree_ssa_iv_optimize_loop): Initialize loop_single_exit_p.
1592
1593 2011-08-26 Tom de Vries <tom@codesourcery.com>
1594
1595 * tree-pretty-print (dump_generic_node): Test for NULL_TREE before
1596 accessing TREE_TYPE.
1597
1598 2011-08-26 Jiangning Liu <jiangning.liu@arm.com>
1599
1600 * config/arm/arm.md (*ior_scc_scc): Enable for Thumb2 as well.
1601 (*ior_scc_scc_cmp): Likewise
1602 (*and_scc_scc): Likewise.
1603 (*and_scc_scc_cmp): Likewise.
1604 (*and_scc_scc_nodom): Likewise.
1605 (*cmp_ite0, *cmp_ite1, *cmp_and, *cmp_ior): Handle Thumb2.
1606
1607 2011-08-26 Jakub Jelinek <jakub@redhat.com>
1608
1609 * rtlanal.c (nonzero_bits1): Handle CLRSB.
1610
1611 2011-08-26 Richard Guenther <rguenther@suse.de>
1612
1613 * expr.c (string_constant): Handle &MEM_REF.
1614
1615 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1616
1617 * config/arm/arm.c (struct four_ints): New type.
1618 (count_insns_for_constant): Delete function.
1619 (find_best_start): Delete function.
1620 (optimal_immediate_sequence): New function.
1621 (optimal_immediate_sequence_1): New function.
1622 (arm_gen_constant): Move constant splitting code to
1623 optimal_immediate_sequence.
1624 Rewrite constant negation/invertion code.
1625
1626 2011-08-26 Andrew Stubbs <ams@codesourcery.com>
1627
1628 * config/arm/arm-protos.h (const_ok_for_op): Add prototype.
1629 * config/arm/arm.c (const_ok_for_op): Add support for addw/subw.
1630 Remove prototype. Remove static function type.
1631 * config/arm/arm.md (*arm_addsi3): Add addw/subw support.
1632 Add arch attribute.
1633 * config/arm/constraints.md (Pj, PJ): New constraints.
1634
1635 2011-08-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1636
1637 * config/arm/cortex-a9.md ("cortex_a9_mult_long"): New.
1638 ("cortex_a9_multiply_long"): New and use above. Handle all
1639 long multiply cases.
1640 ("cortex_a9_multiply"): Handle smmul and smmulr.
1641 ("cortex_a9_mac"): Handle smmla.
1642
1643 2011-08-25 Richard Henderson <rth@redhat.com>
1644
1645 PR 50132
1646 PR 49864
1647 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jump for
1648 non-constant stack adjutment.
1649 * expr.c (find_args_size_adjust): Break out from ...
1650 (fixup_args_size_notes): ... here.
1651 * rtl.h (find_args_size_adjust): Declare.
1652
1653 2011-08-25 Uros Bizjak <ubizjak@gmail.com>
1654
1655 * config/i386/i386.md (isa): Add sse2, sse2_noavx, sse3,
1656 sse4 and sse4_noavx.
1657 (enabled): Handle sse2, sse2_noavx, sse3, sse4 and sse4_noavx.
1658 (*pushdf_rex64): Change Y2 register constraint to x.
1659 (*movdf_internal_rex64): Ditto.
1660 (*zero_extendsidi2_rex64): Ditto.
1661 (*movdi_internal): Change Y2 register constraint to x
1662 and update "isa" attribute.
1663 (*pushdf): Ditto.
1664 (*movdf internal): Ditto.
1665 (zero_extendsidi2_1): Ditto.
1666 (*truncdfdf_mixed): Ditto.
1667 (*truncxfdf2_mixed): Ditto.
1668 * config/i386/mmx.md (*mov<mode>_internal_rex64): Change Y2
1669 register constraint to x.
1670 (*movv2sf_internal_rex64): Ditto.
1671 (*mov<mode>_internal): Change Y2 register constraint to x
1672 and add "isa" attribute.
1673 (*movv2sf_internal): Ditto.
1674 (*vec_extractv2si_1): Ditto.
1675 * config/i386/sse.md ("vec_set<mode>_0): Change Y2 and Y4 register
1676 constraints to x and update "isa" attribute.
1677 (*vec_interleave_highv2df): Change Y3 registerconstraint
1678 to x and update "isa" attribute.
1679 (*vec_interleave_lowv2df): Ditto.
1680 (*vec_concatv2df): Change Y2 register constraint to x and
1681 update "isa" attribute.
1682 (sse2_loadld): Ditto.
1683 (*vec_extractv2di_1): Ditto.
1684 (*vec_dupv4si): Ditto.
1685 (*vec_dupv2di): Ditto.
1686 (*vec_concatv4si): Ditto.
1687 (vec_concatv2di): Ditto.
1688 * config/i386/constraints.md (Y2): Remove.
1689 (Y3): Ditto.
1690 (Y4): Ditto.
1691
1692 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1693
1694 * regrename.c (scan_rtx_reg, scan_rtx_address, build_def_use,
1695 dump_def_use_chain): Don't declare.
1696 (mark_conflict, create_new_chain): Move before users.
1697 (regrename_optimize): Move to near end of file.
1698
1699 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1700
1701 * config/avr-protos.h (byte_immediate_operand): Remove Prototype.
1702 (secondary_input_reload_class): Remove Prototype.
1703 * config/avr/avr.c (byte_immediate_operand): Remove Function.
1704 * config/avr/avr.md (setmemhi): Use u8_operand.
1705 (strlenhi): Use const0_rtx for comparison.
1706 * config/avr/avr.h (avr_reg_order): Remove Declaration.
1707
1708 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1709
1710 * config/avr/avr.c (reg_class_tab): Make local to
1711 avr_regno_reg_class. Return smallest register class available.
1712
1713 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1714
1715 * config/avr/avr.c (STR_PREFIX_P): New Define.
1716 (avr_asm_declare_function_name): Use it.
1717 (avr_asm_named_section): Use it.
1718 (avr_section_type_flags): Use it.
1719
1720 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1721
1722 * doc/md.texi (automata_option): Document collapse-ndfa.
1723 * genautomata.c (COLLAPSE_OPTION): New macro.
1724 (collapse_flag): New static variable.
1725 (struct description): New member normal_decls_num.
1726 (struct automaton): New members advance_ainsn and collapse_ainsn.
1727 (gen_automata_option): Check for COLLAPSE_OPTION.
1728 (collapse_ndfa_insn_decl): New static variable.
1729 (add_collapse_ndfa_insn_decl, special_decl_p): New functions.
1730 (find_arc): If insn is the collapse-ndfa insn, accept any arc we find.
1731 (transform_insn_regexps): Call add_collapse_ndfa_insn_decl if
1732 necessary. Use normal_decls_num rather than decls_num, remove
1733 test for special decls.
1734 (create_alt_states, form_ainsn_with_same_reservs): Use special_decl_p.
1735 (make_automaton); Likewise. Use the new advance_cycle_insn member
1736 of struct automaton.
1737 (create_composed_state): Disallow advance-cycle arcs if collapse_flag
1738 is set.
1739 (NDFA_to_DFA): Don't create composed states for the collapse-ndfa
1740 transition. Create the necessary transitions for it.
1741 (create_ainsns): Return void. Take an automaton_t argument, and
1742 update its ainsn_list, advance_ainsn and collapse_ainsn members. All
1743 callers changed.
1744 (COLLAPSE_NDFA_VALUE_NAME): New macro.
1745 (output_tables): Output code to define it.
1746 (output_internal_insn_code_evaluation): Output code to accept
1747 const0_rtx as collapse-ndfa transition.
1748 (output_default_latencies, output_print_reservation_func,
1749 output_print_description): Reorganize loops to use normal_decls_num
1750 as loop bound; remove special case for advance_cycle_insn_decl.
1751 (initiate_automaton_gen): Handle COLLAPSE_OPTION.
1752 (check_automata_insn_issues): Check for collapse_ainsn.
1753 (expand_automate): Allocate sufficient space. Initialize
1754 normal_decls_num.
1755
1756 2011-08-25 Georg-Johann Lay <avr@gjlay.de>
1757
1758 * config/avr/avr.md: Fix indentation from r177991.
1759
1760 2011-08-25 Bernd Schmidt <bernds@codesourcery.com>
1761
1762 * regrename.c (struct du_head): Remove member terminated.
1763 (create_new_chain): Don't initialize it.
1764 (scan_rtx_reg): Don't set or test it, test the open_chains_set
1765 bitmap instead.
1766 (tick, this_tick): New global variables, moved out of
1767 regrename_optimize.
1768 (current_id, open_chains, closed_chains, open_chains_set,
1769 live_in_chains, live_hard_regs): Reorder declarations.
1770 (dump_def_use_chain): Move function earlier in the file.
1771 (rename_chains): New static function, broken out of
1772 regrename_optimize.
1773 (regrename_optimize): Use it. Remove #if 0'ed code.
1774
1775 2011-08-25 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1776
1777 * varasm.c: (default_binds_local_p_1): Commentary typo fix.
1778
1779 2011-08-24 H.J. Lu <hongjiu.lu@intel.com>
1780
1781 PR target/50172
1782 * config/i386/i386.c (ix86_expand_builtin): Convert to Pmode if needed.
1783
1784 2011-08-24 Richard Guenther <rguenther@suse.de>
1785
1786 * tree-data-ref.c (dr_analyze_indices): Avoid unsharing the
1787 ref in the basic-block case. Move stripping array-refs
1788 to the place we create an access-function for it. Remove
1789 bogus stripping down a MEM_REF to its base.
1790
1791 2011-08-24 Richard Guenther <rguenther@suse.de>
1792
1793 * fold-const.c (fold_comparison): Fold &a < &a + 4 even
1794 with -fno-strict-overflow.
1795
1796 2011-08-24 Richard Guenther <rguenther@suse.de>
1797
1798 * tree-vectorizer.c (vect_print_dump_info): Avoid the
1799 file and location clutter when dumping to dump files.
1800
1801 2011-08-24 Simon Baldwin <simonb@google.com>
1802
1803 * gengtype-state.c (write_state): Remove timestamped header line.
1804
1805 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1806
1807 * Makefile.in (CFLAGS-collect2.o, CFLAGS-c-family/c-opts.o)
1808 (CFLAGS-c-family/c-pch.o, CFLAGS-prefix.o, CFLAGS-version.o)
1809 (CFLAGS-lto-compress.o, CFLAGS-toplev.o, CFLAGS-intl.o)
1810 (CFLAGS-cppbuiltin.o, CFLAGS-cppdefault.o): New.
1811 (collect2.o, c-family/c-cppbuiltin.o, c-family/c-opts.o)
1812 (c-family/c-pch.o, prefix.o, version.o, lto-compress.o, toplev.o)
1813 (intl.o, cppbuiltin.o, cppdefault.o): Remove explicit compilation
1814 rules.
1815 (lto-wrapper$(exeext)): Use $(LINKER) not $(COMPILER).
1816
1817 2011-08-24 Joseph Myers <joseph@codesourcery.com>
1818
1819 * Makefile.in (ALL_CXXFLAGS): Include $(CFLAGS-$@).
1820
1821 2011-08-24 Richard Guenther <rguenther@suse.de>
1822
1823 PR tree-optimization/50067
1824 * tree-data-ref.c (dr_analyze_indices): Do not add an access
1825 function for a MEM_REF base that has no evolution in the loop
1826 nest or that is not analyzable.
1827
1828 2011-08-23 Vladimir Makarov <vmakarov@redhat.com>
1829
1830 * ira.c (ira_init_register_move_cost): Check small subclasses
1831 through ira_reg_class_max_nregs and ira_available_class_regs.
1832
1833 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
1834
1835 * config/i386/constraints.md (Yp): New register constraint.
1836 * config/i386/i386.md (*addhi_1): Merge with *addhi_1_lea using
1837 Yp register constraint.
1838 (*addqi_1): Merge with *addqi_1_lea using Yp register constraint.
1839 (*ashlhi3_1): Merge with *ashlhi3_1_lea using Yp register constraint.
1840 (*ashlqi3_1): Merge with *ashlqi3_1_lea using Yp register constraint.
1841
1842 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
1843
1844 * config/i386/sse.md (<s>mul<mode>3_highpart): Update.
1845
1846 2011-08-23 Mark Heffernan <meheff@google.com>
1847
1848 PR middle-end/38509
1849 * common.opt (Wfree-nonheap-object): New option.
1850 * doc/invoke.texi (Warning options): Document -Wfree-nonheap-object.
1851 * builtins.c (maybe_emit_free_warning): Add OPT_Wfree_nonheap_object
1852 to warning.
1853 (expand_builtin): Make warning conditional.
1854
1855 2011-08-23 Uros Bizjak <ubizjak@gmail.com>
1856
1857 * config/i386/i386.md (type): Add imulx, ishiftx and rotatex.
1858 (length_immediate): Handle imulx, ishiftx and rotatex.
1859 (imm_disp): Ditto.
1860 (isa): Add bmi2.
1861 (enabled): Handle bmi2.
1862 (*mul<mode><dwi>3): Split from *<u>mul<mode><dwi>3.
1863 (*umul<mode><dwi>3): Ditto. Add imulx BMI2 alternative.
1864 (*bmi2_umulditi3_1): New insn pattern.
1865 (*bmi2_umulsidi3_1): Ditto.
1866 (*umul<mode><dwi>3 splitter): New splitter to avoid flags dependency.
1867 (*bmi2_ashl<mode>3_1): New insn pattern.
1868 (*ashl<mode>3_1): Add ishiftx BMI2 alternative.
1869 (*ashl<mode>3_1 splitter): New splitter to avoid flags dependency.
1870 (*bmi2_ashlsi3_1_zext): New insn pattern.
1871 (*ashlsi3_1_zext): Add ishiftx BMI2 alternative.
1872 (*ashlsi3_1_zext splitter): New splitter to avoid flags dependency.
1873 (*bmi2_<shiftrt_insn><mode>3_1): New insn pattern.
1874 (*<shiftrt_insn><mode>3_1): Add ishiftx BMI2 alternative.
1875 (*<shiftrt_insn><mode>3_1 splitter): New splitter to avoid
1876 flags dependency.
1877 (*bmi2_<shiftrt_insn>si3_1_zext): New insn pattern.
1878 (*<shiftrt_insn>si3_1_zext): Add ishiftx BMI2 alternative.
1879 (*<shiftrt_insn>si3_1_zext splitter): New splitter to avoid
1880 flags dependency.
1881 (*bmi2_rorx<mode>3_1): New insn pattern.
1882 (*<rotate_insn><mode>3_1): Add rotatex BMI2 alternative.
1883 (*rotate<mode>3_1 splitter): New splitter to avoid flags dependency.
1884 (*rotatert<mode>3_1 splitter): Ditto.
1885 (*bmi2_rorxsi3_1_zext): New insn pattern.
1886 (*<rotate_insn>si3_1_zext): Add rotatex BMI2 alternative.
1887 (*rotatesi3_1_zext splitter): New splitter to avoid flags dependency.
1888 (*rotatertsi3_1_zext splitter): Ditto.
1889
1890 2011-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
1891
1892 * common/config/i386/i386-common.c (OPTION_MASK_ISA_BMI2_SET): New.
1893 (OPTION_MASK_ISA_BMI2_UNSET): Likewise.
1894 (ix86_handle_option): Handle OPT_mbmi2 case.
1895 * config.gcc (i[34567]86-*-*): Add bmi2intrin.h.
1896 (x86_64-*-*): Likewise.
1897 * config/i386/bmi2intrin.h: New file.
1898 * config/i386/cpuid.h (bit_BMI2): New.
1899 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1900 BMI2 feature.
1901 * config/i386/i386-c.c (ix86_target_macros_internal):
1902 Conditionally define __BMI2__.
1903 * config/i386/i386.c (ix86_option_override_internal): Define PTA_BMI2.
1904 Handle BMI2 option.
1905 (ix86_valid_target_attribute_inner_p): Handle BMI2 option.
1906 (print_reg): New code.
1907 (ix86_print_operand): Likewise.
1908 (ix86_builtins): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1909 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1910 IX86_BUILTIN_PEXT64.
1911 (bdesc_args): Add IX86_BUILTIN_BZHI32, IX86_BUILTIN_BZHI64,
1912 IX86_BUILTIN_PDEP32, IX86_BUILTIN_PDEP64, IX86_BUILTIN_PEXT32,
1913 IX86_BUILTIN_PEXT64.
1914 * config/i386/i386.h (TARGET_BMI2): New.
1915 * config/i386/i386.md (UNSPEC_PDEP): New.
1916 (UNSPEC_PEXT): Likewise.
1917 (*bmi2_bzhi_<mode>3): Likewise.
1918 (*bmi2_pdep_<mode>3): Likewise.
1919 (*bmi2_pext_<mode>3): Likewise.
1920 * config/i386/i386.opt (mbmi2): New.
1921 * config/i386/x86intrin.h: Include bmi2intrin.h when __BMI2__
1922 is defined.
1923 * doc/extend.texi: Document BMI2 built-in functions.
1924 * doc/invoke.texi: Document -mbmi2.
1925
1926 2011-08-23 Jakub Jelinek <jakub@redhat.com>
1927
1928 PR middle-end/50161
1929 * simplify-rtx.c (simplify_const_unary_operation): If
1930 op is CONST_INT, don't look at op_mode, but use instead mode.
1931 * optabs.c (add_equal_note): For FFS, CLZ, CTZ,
1932 CLRSB, POPCOUNT, PARITY and BSWAP use operand mode for
1933 operation and TRUNCATE/ZERO_EXTEND if needed.
1934 * doc/rtl.texi (ffs, clrsb, clz, ctz, popcount, parity, bswap):
1935 Document that operand mode must be same as operation mode,
1936 or VOIDmode.
1937 * config/avr/avr.md (paritysi2, *parityqihi2.libgcc,
1938 *paritysihi2.libgcc, popcountsi2, *popcountsi2.libgcc,
1939 *popcountqihi2.libgcc, clzsi2, *clzsihi2.libgcc, ctzsi2,
1940 *ctzsihi2.libgcc, ffssi2, *ffssihi2.libgcc): For unary ops
1941 use the mode of operand for the operation and add truncate
1942 or zero_extend around if needed.
1943 * config/c6x/c6x.md (ctzdi2): Likewise.
1944 * config/bfin/bfin.md (clrsbsi2, signbitssi2): Likewise.
1945
1946 2011-08-12 Michael Matz <matz@suse.de>
1947
1948 * cfgexpand.c (expand_one_register_var): Use get_pointer_alignment.
1949 (gimple_expand_cfg): Merge alignment info for coalesced pointer
1950 SSA names.
1951
1952 2011-08-23 Richard Guenther <rguenther@suse.de>
1953
1954 * Makefile.in (tree-data-ref.o): Add tree-affine.h dependency.
1955 * tree-affine.h (aff_comb_cannot_overlap_p): Declare.
1956 * tree-affine.c (aff_comb_cannot_overlap_p): New function, moved
1957 from ...
1958 * tree-ssa-loop-im.c (cannot_overlap_p): ... here.
1959 (mem_refs_may_alias_p): Adjust.
1960 * tree-data-ref.h (dr_may_alias_p): Adjust.
1961 * tree-data-ref.c: Include tree-affine.h.
1962 (dr_analyze_indices): Do nothing for the non-loop case.
1963 (dr_may_alias_p): Distinguish loop and non-loop case. Disambiguate
1964 more cases in the non-loop case.
1965 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Adjust
1966 calls to dr_may_alias_p.
1967 (write_alias_graph_to_ascii_ecc): Likewise.
1968 (write_alias_graph_to_ascii_dot): Likewise.
1969 (build_alias_set_optimal_p): Likewise.
1970
1971 2011-08-23 Richard Guenther <rguenther@suse.de>
1972
1973 PR tree-optimization/50162
1974 * tree-vect-stmts.c (vectorizable_call): Fix argument lookup.
1975
1976 2011-08-23 Richard Guenther <rguenther@suse.de>
1977
1978 * tree-data-ref.c (dr_analyze_indices): Add comments, handle
1979 REALPART_EXPR and IMAGPART_EXPR similar to ARRAY_REFs.
1980 (create_data_ref): Also dump access functions for the created data-ref.
1981
1982 2011-08-22 Uros Bizjak <ubizjak@gmail.com>
1983 Kirill Yukhin <kirill.yukhin@intel.com>
1984
1985 PR target/50155
1986 * config/i386/sse.md (VI_AVX2): New.
1987 (<plusminus_insn><mode>3): Use VI_AVX2 mode iterator.
1988 (*<plusminus_insn><mode>3): Ditto.
1989 (<sse2_avx2>_andnot<mode>3): Ditto.
1990 (*andnot<mode>3): Fix order of cond operands.
1991 Add asserts for correct TARGET_xxx.
1992 (*<any_logic:code><mode>3): Ditto.
1993
1994 2011-08-22 Anatoly Sokolov <aesok@post.ru>
1995
1996 * config/m32c/m32c.h (CLASS_MAX_NREGS): Remove macro.
1997 * config/m32c/m32c-protos.h (m32c_class_max_nregs): Remove.
1998 * config/m32c/m32c.c (m32c_class_max_nregs): Make static. Change
1999 regclass argument type to reg_class_t. Change 'max' and 'v' vars
2000 and return types to unsigned char. Use reg_class_contents instead
2001 of class_contents.
2002 (TARGET_CLASS_MAX_NREGS): Define.
2003
2004 2011-08-22 Bernd Schmidt <bernds@codesourcery.com>
2005
2006 * config/c6x/c6x.md (indirect_jump_shadow): Tweak representation
2007 to make computed_jump_p return true.
2008
2009 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2010
2011 * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it.
2012 (PICFLAG_FOR_TARGET): Substitute.
2013 * aclocal.m4: Regenerate.
2014 * configure: Regenerate.
2015
2016 2011-08-22 Dodji Seketeli <dodji@redhat.com>
2017
2018 * c-family/c-pch.c (c_common_read_pch): Re-set line table right
2019 after reading in the pch.
2020
2021 2011-08-22 H.J. Lu <hongjiu.lu@intel.com>
2022
2023 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Error if __ELF__ isn't defined.
2024 * configure: Regenerated.
2025
2026 2011-08-22 Jakub Jelinek <jakub@redhat.com>
2027
2028 PR tree-optimization/50133
2029 * tree-vect-stmts.c (vect_finish_stmt_generation): Copy location
2030 from stmt instead of some statement around gsi.
2031
2032 PR middle-end/50141
2033 * expr.c (get_bit_range): Only use DECL_THREAD_LOCAL_P if
2034 innerdecl is a VAR_DECL.
2035
2036 2011-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
2037
2038 * config/i386/avx2intrin.h: New file.
2039 * config/i386/i386-builtin-types.def (PCINT, PCINT64, PV4SI,
2040 PV8SI, V32QI_FTYPE_V32QI, V32QI_FTYPE_V16QI, V16HI_FTYPE_V16HI,
2041 V16HI_FTYPE_V8HI, V8SI_FTYPE_V8SI, V16HI_FTYPE_V16QI,
2042 V8SI_FTYPE_V16QI, V4DI_FTYPE_V16QI, V8SI_FTYPE_V8HI,
2043 V4DI_FTYPE_V8HI, V4DI_FTYPE_V4SI, V4DI_FTYPE_PV4DI,
2044 V4DI_FTYPE_V2DI, V2DI_FTYPE_PCV2DI_V2DI, V4SI_FTYPE_PCV4SI_V4SI,
2045 V32QI_FTYPE_V16HI_V16HI, V16HI_FTYPE_V8SI_V8SI,
2046 V32QI_FTYPE_V32QI_V32QI, V16HI_FTYPE_V32QI_V32QI,
2047 V16HI_FTYPE_V16HI_V8HI, V16HI_FTYPE_V16HI_V16HI,
2048 V16HI_FTYPE_V16HI_INT, V16HI_FTYPE_V16HI_SI,
2049 V16HI_FTYPE_V16HI_V16HI_INT, V32QI_FTYPE_V32QI_V32QI_INT,
2050 V8SI_FTYPE_V8SI_V4SI, V8SI_FTYPE_V8SI_V8SI,
2051 V8SI_FTYPE_V16HI_V16HI, V8SI_FTYPE_V8SI_INT, V8SI_FTYPE_V8SI_SI,
2052 V8SI_FTYPE_PCV8SI_V8SI, V4DI_FTYPE_V4DI_V4DI,
2053 V4DI_FTYPE_V8SI_V8SI, V4DI_FTYPE_V4DI_V2DI,
2054 V4DI_FTYPE_PCV4DI_V4DI, V4DI_FTYPE_V4DI_INT,
2055 V2DI_FTYPE_V4DI_INT, V4DI_FTYPE_V4DI_V4DI_INT,
2056 V4DI_FTYPE_V4DI_V2DI_INT, VOID_FTYPE_PV2DI_V2DI_V2DI,
2057 VOID_FTYPE_PV4DI_V4DI_V4DI, VOID_FTYPE_PV4SI_V4SI_V4SI,
2058 VOID_FTYPE_PV8SI_V8SI_V8SI,
2059 V2DF_FTYPE_V2DF_PCDOUBLE_V4SI_V2DF_INT,
2060 V4DF_FTYPE_V4DF_PCDOUBLE_V4SI_V4DF_INT,
2061 V2DF_FTYPE_V2DF_PCDOUBLE_V2DI_V2DF_INT,
2062 V4DF_FTYPE_V4DF_PCDOUBLE_V4DI_V4DF_INT,
2063 V4SF_FTYPE_V4SF_PCFLOAT_V4SI_V4SF_INT,
2064 V8SF_FTYPE_V8SF_PCFLOAT_V8SI_V8SF_INT,
2065 V4SF_FTYPE_V4SF_PCFLOAT_V2DI_V4SF_INT,
2066 V4SF_FTYPE_V4SF_PCFLOAT_V4DI_V4SF_INT,
2067 V2DI_FTYPE_V2DI_PCINT64_V4SI_V2DI_INT,
2068 V4DI_FTYPE_V4DI_PCINT64_V4SI_V4DI_INT,
2069 V2DI_FTYPE_V2DI_PCINT64_V2DI_V2DI_INT,
2070 V4DI_FTYPE_V4DI_PCINT64_V4DI_V4DI_INT,
2071 V4SI_FTYPE_V4SI_PCINT_V4SI_V4SI_INT,
2072 V8SI_FTYPE_V8SI_PCINT_V8SI_V8SI_INT,
2073 V4SI_FTYPE_V4SI_PCINT_V2DI_V4SI_INT,
2074 V4SI_FTYPE_V4SI_PCINT_V4DI_V4SI_INT,
2075 V16HI_FTYPE_V16HI_SI_COUNT, V16HI_FTYPE_V16HI_V8HI_COUNT,
2076 V8SI_FTYPE_V8SI_SI_COUNT, V8SI_FTYPE_V8SI_V4SI_COUNT,
2077 V4DI_FTYPE_V4DI_INT_COUNT, V4DI_FTYPE_V4DI_V2DI_COUNT,
2078 V4DI_FTYPE_V4DI_INT_CONVERT,
2079 V4DI_FTYPE_V4DI_V4DI_INT_CONVERT): New.
2080 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MPSADBW256,
2081 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2082 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2083 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2084 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2085 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2086 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2087 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2088 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2089 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2090 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2091 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2092 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2093 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2094 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2095 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2096 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2097 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2098 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2099 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2100 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2101 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2102 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2103 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2104 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2105 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2106 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2107 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2108 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2109 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2110 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2111 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2112 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2113 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2114 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2115 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2116 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2117 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2118 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2119 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2120 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2121 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2122 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2123 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2124 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2125 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2126 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2127 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2128 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2129 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2130 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2131 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2132 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2133 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2134 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2135 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2136 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2137 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2138 IX86_BUILTIN_MOVNTDQA256, IX86_BUILTIN_VBROADCASTSS_PS,
2139 IX86_BUILTIN_VBROADCASTSS_PS256,
2140 IX86_BUILTIN_VBROADCASTSD_PD256,
2141 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2142 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2143 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2144 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2145 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2146 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2147 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2148 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2149 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2150 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2151 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2152 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2153 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256,
2154 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2155 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2156 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2157 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2158 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI,
2159 IX86_BUILTIN_GATHERSIV2DF, IX86_BUILTIN_GATHERSIV4DF,
2160 IX86_BUILTIN_GATHERDIV2DF, IX86_BUILTIN_GATHERDIV4DF,
2161 IX86_BUILTIN_GATHERSIV4SF, IX86_BUILTIN_GATHERSIV8SF,
2162 IX86_BUILTIN_GATHERDIV4SF, IX86_BUILTIN_GATHERDIV8SF,
2163 IX86_BUILTIN_GATHERSIV2DI, IX86_BUILTIN_GATHERSIV4DI,
2164 IX86_BUILTIN_GATHERDIV2DI, IX86_BUILTIN_GATHERDIV4DI,
2165 IX86_BUILTIN_GATHERSIV4SI, IX86_BUILTIN_GATHERSIV8SI,
2166 IX86_BUILTIN_GATHERDIV4SI, IX86_BUILTIN_GATHERDIV8SI.
2167 (bdesc_special_args): Add IX86_BUILTIN_MOVNTDQA256,
2168 IX86_BUILTIN_MASKLOADD, IX86_BUILTIN_MASKLOADQ,
2169 IX86_BUILTIN_MASKLOADD256, IX86_BUILTIN_MASKLOADQ256,
2170 IX86_BUILTIN_MASKSTORED, IX86_BUILTIN_MASKSTOREQ,
2171 IX86_BUILTIN_MASKSTORED256, IX86_BUILTIN_MASKSTOREQ256.
2172 (bdesc_args): Add IX86_BUILTIN_MPSADBW256,
2173 IX86_BUILTIN_PABSB256, IX86_BUILTIN_PABSW256,
2174 IX86_BUILTIN_PABSD256, IX86_BUILTIN_PACKSSDW256,
2175 IX86_BUILTIN_PACKSSWB256, IX86_BUILTIN_PACKUSDW256,
2176 IX86_BUILTIN_PACKUSWB256, IX86_BUILTIN_PADDB256,
2177 IX86_BUILTIN_PADDW256, IX86_BUILTIN_PADDD256,
2178 IX86_BUILTIN_PADDQ256, IX86_BUILTIN_PADDSB256,
2179 IX86_BUILTIN_PADDSW256, IX86_BUILTIN_PADDUSB256,
2180 IX86_BUILTIN_PADDUSW256, IX86_BUILTIN_PALIGNR256,
2181 IX86_BUILTIN_AND256I, IX86_BUILTIN_ANDNOT256I,
2182 IX86_BUILTIN_PAVGB256, IX86_BUILTIN_PAVGW256,
2183 IX86_BUILTIN_PBLENDVB256, IX86_BUILTIN_PBLENDVW256,
2184 IX86_BUILTIN_PCMPEQB256, IX86_BUILTIN_PCMPEQW256,
2185 IX86_BUILTIN_PCMPEQD256, IX86_BUILTIN_PCMPEQQ256,
2186 IX86_BUILTIN_PCMPGTB256, IX86_BUILTIN_PCMPGTW256,
2187 IX86_BUILTIN_PCMPGTD256, IX86_BUILTIN_PCMPGTQ256,
2188 IX86_BUILTIN_PHADDW256, IX86_BUILTIN_PHADDD256,
2189 IX86_BUILTIN_PHADDSW256, IX86_BUILTIN_PHSUBW256,
2190 IX86_BUILTIN_PHSUBD256, IX86_BUILTIN_PHSUBSW256,
2191 IX86_BUILTIN_PMADDUBSW256, IX86_BUILTIN_PMADDWD256,
2192 IX86_BUILTIN_PMAXSB256, IX86_BUILTIN_PMAXSW256,
2193 IX86_BUILTIN_PMAXSD256, IX86_BUILTIN_PMAXUB256,
2194 IX86_BUILTIN_PMAXUW256, IX86_BUILTIN_PMAXUD256,
2195 IX86_BUILTIN_PMINSB256, IX86_BUILTIN_PMINSW256,
2196 IX86_BUILTIN_PMINSD256, IX86_BUILTIN_PMINUB256,
2197 IX86_BUILTIN_PMINUW256, IX86_BUILTIN_PMINUD256,
2198 IX86_BUILTIN_PMOVMSKB256, IX86_BUILTIN_PMOVSXBW256,
2199 IX86_BUILTIN_PMOVSXBD256, IX86_BUILTIN_PMOVSXBQ256,
2200 IX86_BUILTIN_PMOVSXWD256, IX86_BUILTIN_PMOVSXWQ256,
2201 IX86_BUILTIN_PMOVSXDQ256, IX86_BUILTIN_PMOVZXBW256,
2202 IX86_BUILTIN_PMOVZXBD256, IX86_BUILTIN_PMOVZXBQ256,
2203 IX86_BUILTIN_PMOVZXWD256, IX86_BUILTIN_PMOVZXWQ256,
2204 IX86_BUILTIN_PMOVZXDQ256, IX86_BUILTIN_PMULDQ256,
2205 IX86_BUILTIN_PMULHRSW256, IX86_BUILTIN_PMULHUW256,
2206 IX86_BUILTIN_PMULHW256, IX86_BUILTIN_PMULLW256,
2207 IX86_BUILTIN_PMULLD256, IX86_BUILTIN_PMULUDQ256,
2208 IX86_BUILTIN_POR256, IX86_BUILTIN_PSADBW256,
2209 IX86_BUILTIN_PSHUFB256, IX86_BUILTIN_PSHUFD256,
2210 IX86_BUILTIN_PSHUFHW256, IX86_BUILTIN_PSHUFLW256,
2211 IX86_BUILTIN_PSIGNB256, IX86_BUILTIN_PSIGNW256,
2212 IX86_BUILTIN_PSIGND256, IX86_BUILTIN_PSLLDQI256,
2213 IX86_BUILTIN_PSLLWI256, IX86_BUILTIN_PSLLW256,
2214 IX86_BUILTIN_PSLLDI256, IX86_BUILTIN_PSLLD256,
2215 IX86_BUILTIN_PSLLQI256, IX86_BUILTIN_PSLLQ256,
2216 IX86_BUILTIN_PSRAWI256, IX86_BUILTIN_PSRAW256,
2217 IX86_BUILTIN_PSRADI256, IX86_BUILTIN_PSRAD256,
2218 IX86_BUILTIN_PSRLDQI256, IX86_BUILTIN_PSRLWI256,
2219 IX86_BUILTIN_PSRLW256, IX86_BUILTIN_PSRLDI256,
2220 IX86_BUILTIN_PSRLD256, IX86_BUILTIN_PSRLQI256,
2221 IX86_BUILTIN_PSRLQ256, IX86_BUILTIN_PSUBB256,
2222 IX86_BUILTIN_PSUBW256, IX86_BUILTIN_PSUBD256,
2223 IX86_BUILTIN_PSUBQ256, IX86_BUILTIN_PSUBSB256,
2224 IX86_BUILTIN_PSUBSW256, IX86_BUILTIN_PSUBUSB256,
2225 IX86_BUILTIN_PSUBUSW256, IX86_BUILTIN_PUNPCKHBW256,
2226 IX86_BUILTIN_PUNPCKHWD256, IX86_BUILTIN_PUNPCKHDQ256,
2227 IX86_BUILTIN_PUNPCKHQDQ256, IX86_BUILTIN_PUNPCKLBW256,
2228 IX86_BUILTIN_PUNPCKLWD256, IX86_BUILTIN_PUNPCKLDQ256,
2229 IX86_BUILTIN_PUNPCKLQDQ256, IX86_BUILTIN_PXOR256,
2230 IX86_BUILTIN_VBROADCASTSS_PS, IX86_BUILTIN_VBROADCASTSS_PS256,
2231 IX86_BUILTIN_VBROADCASTSD_PD256,
2232 IX86_BUILTIN_VBROADCASTSI256, IX86_BUILTIN_PBLENDD256,
2233 IX86_BUILTIN_PBLENDD128, IX86_BUILTIN_PBROADCASTB256,
2234 IX86_BUILTIN_PBROADCASTW256, IX86_BUILTIN_PBROADCASTD256,
2235 IX86_BUILTIN_PBROADCASTQ256, IX86_BUILTIN_PBROADCASTB128,
2236 IX86_BUILTIN_PBROADCASTW128, IX86_BUILTIN_PBROADCASTD128,
2237 IX86_BUILTIN_PBROADCASTQ128, IX86_BUILTIN_VPERMVARSI256,
2238 IX86_BUILTIN_VPERMDF256, IX86_BUILTIN_VPERMVARSF256,
2239 IX86_BUILTIN_VPERMDI256, IX86_BUILTIN_VPERMTI256,
2240 IX86_BUILTIN_VEXTRACT128I256, IX86_BUILTIN_VINSERT128I256,
2241 IX86_BUILTIN_PSLLVV4DI, IX86_BUILTIN_PSLLVV2DI,
2242 IX86_BUILTIN_PSLLVV8SI, IX86_BUILTIN_PSLLVV4SI,
2243 IX86_BUILTIN_PSRAVV8SI, IX86_BUILTIN_PSRAVV4SI,
2244 IX86_BUILTIN_PSRLVV4DI, IX86_BUILTIN_PSRLVV2DI,
2245 IX86_BUILTIN_PSRLVV8SI, IX86_BUILTIN_PSRLVV4SI.
2246 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_GATHERSIV2DF,
2247 IX86_BUILTIN_GATHERSIV4DF, IX86_BUILTIN_GATHERDIV2DF,
2248 IX86_BUILTIN_GATHERDIV4DF, IX86_BUILTIN_GATHERSIV4SF,
2249 IX86_BUILTIN_GATHERSIV8SF, IX86_BUILTIN_GATHERDIV4SF,
2250 IX86_BUILTIN_GATHERDIV8SF, IX86_BUILTIN_GATHERSIV2DI,
2251 IX86_BUILTIN_GATHERSIV4DI, IX86_BUILTIN_GATHERDIV2DI,
2252 IX86_BUILTIN_GATHERDIV4DI, IX86_BUILTIN_GATHERSIV4SI,
2253 IX86_BUILTIN_GATHERSIV8SI, IX86_BUILTIN_GATHERDIV4SI,
2254 IX86_BUILTIN_GATHERDIV8SI.
2255 (ix86_preferred_simd_mode): Support AVX2 modes.
2256 (ix86_expand_args_builtin): Support AVX2 builtins.
2257 (ix86_expand_special_args_builtin): Likewise.
2258 (ix86_expand_builtin): Likewise.
2259 * config/i386/i386.md (UNSPEC_VPERMSI): New.
2260 (UNSPEC_VPERMDF): Likewise.
2261 (UNSPEC_VPERMSF): Likewise.
2262 (UNSPEC_VPERMDI): Likewise.
2263 (UNSPEC_VPERMTI): Likewise.
2264 (UNSPEC_GATHER): Likewise.
2265 (ssemodesuffix): Extend.
2266 * config/i386/immintrin.h: Include avx2intrin.h when __AVX2__
2267 is defined.
2268 * config/i386/predicates.md (const1248_operand): New.
2269 * config/i386/sse.md (VI1_AVX2): New mode iterator.
2270 (VI2_AVX2): Likewise.
2271 (VI4_AVX2): Likewise.
2272 (VI8_AVX2): Likewise.
2273 (VIMAX_AVX2): Likewise.
2274 (SSESCALARMODE): Likewise.
2275 (VI12_AVX2): Likewise.
2276 (VI24_AVX2): Likewise.
2277 (VI124_AVX2): Likewise.
2278 (VI248_AVX2): Likewise.
2279 (VI48_AVX2): Likewise.
2280 (VI4SD_AVX2): Likewise.
2281 (V48_AVX2): Likewise.
2282 (AVX256MODE2P): Likewise.
2283 (AVXMODE48P_DI): Likewise.
2284 (sse2_avx2): New mode attribute.
2285 (ssse3_avx2): Likewise.
2286 (sse4_1_avx2): Likewise.
2287 (avx_avx2): Likewise.
2288 (ssebytemode): Likewise.
2289 (AVXTOSSEMODE): Likewise.
2290 (AVXMODE48P_DI): Likewise.
2291 (gthrfirstp): Likewise.
2292 (gthrlastp): Likewise.
2293 (lshift): New code_iterator
2294 (lshift): New code attribute.
2295 (lshift): Likewise.
2296 (ssescalarmodesuffix): Update.
2297 (sseunpackmode): Likewise.
2298 (ssepackmode): Likewise.
2299 (avx2_vec_dupv4sf): New insn pattern.
2300 (avx2_vec_dupv8sf): Likewise.
2301 (avx2_interleave_highv4di): Likewise.
2302 (avx2_interleave_lowv4di): Likewise.
2303 (avx2_umulv4siv4di3): Likewise
2304 (*avx2_umulv4siv4di3): Likewise
2305 (avx2_pmaddwd): Likewise.
2306 (*avx2_pmaddwd): Likewise.
2307 (avx2_lshrqv4di3): Likewise.
2308 (avx2_lshlqv4di3): Likewise.
2309 (avx2_lshl<mode>3): Likewise.
2310 (avx2_<umaxmin:code><mode>3): Likewise.
2311 (*avx2_<umaxmin:code><mode>3): Likewise.
2312 (avx2_<smaxmin:code><mode>3): Likewise.
2313 (*avx2_<smaxmin:code><mode>3): Likewise.
2314 (avx2_eq<mode>3): Likewise.
2315 (*avx2_eq<mode>3): Likewise.
2316 (avx2_gt<mode>3): Likewise.
2317 (avx2_interleave_highv32qi): New.
2318 (avx2_interleave_lowv32qi): Likewise.
2319 (avx2_interleave_highv16hi): Likewise.
2320 (avx2_interleave_lowv16hi): Likewise.
2321 (avx2_interleave_highv8si): Likewise.
2322 (avx2_interleave_lowv8si): Likewise.
2323 (avx2_pshufd): Likewise.
2324 (avx2_pshufd_1): Likewise.
2325 (avx2_pshuflwv3): Likewise.
2326 (avx2_pshuflw_1): Likewise.
2327 (avx2_pshufhwv3): Likewise.
2328 (avx2_pshufhw_1): Likewise.
2329 (avx2_uavgv32qi3): Likewise.
2330 (*avx2_uavgv32qi3): Likewise.
2331 (avx2_uavgv16hi3): Likewise.
2332 (*avx2_uavgv16hi3): Likewise.
2333 (avx2_pmovmskb): Likewise.
2334 (avx2_phaddwv16hi3): Likewise.
2335 (avx2_phadddv8si3): Likewise.
2336 (avx2_phaddswv16hi3): Likewise.
2337 (avx2_phsubwv16hi3): Likewise.
2338 (avx2_phsubdv8si3): Likewise.
2339 (avx2_phsubswv16hi3): Likewise.
2340 (avx2_pmaddubsw256): Likewise.
2341 (avx2_umulhrswv16hi3): Likewise.
2342 (*avx2_umulhrswv16hi3): Likewise.
2343 (avx2_packusdw): Likewise.
2344 (avx2_pblendd<mode>): Likewise.
2345 (avx2_<code>v16qiv16hi2): Likewise.
2346 (avx2_<code>v8qiv8si2): Likewise.
2347 (avx2_<code>v8hiv8si2): Likewise.
2348 (avx2_<code>v4qiv4di2): Likewise.
2349 (avx2_<code>v4hiv4di2): Likewise.
2350 (avx2_<code>v4siv4di2): Likewise.
2351 (avx2_pbroadcast<mode>): Likewise.
2352 (avx2_permvarv8si): Likewise.
2353 (avx2_permv4df): Likewise.
2354 (avx2_permvarv8sf): Likewise.
2355 (avx2_permv4di): Likewise.
2356 (avx2_permv2ti): Likewise.
2357 (avx2_vec_dupv4df): Likewise.
2358 (avx2_vbroadcasti128_<mode>): Likewise.
2359 (avx2_vec_set_lo_v4di): Likewise.
2360 (avx2_vec_set_hi_v4di): Likewise.
2361 (*avx2_maskmov<avx2modesuffix><avxmodesuffix>): Likewise.
2362 (avx2_extracti128): Likewise.
2363 (avx2_inserti128): Likewise.
2364 (avx2_ashrvv8si): Likewise.
2365 (avx2_ashrvv4si): Likewise.
2366 (avx2_<lshift>vv8si): Likewise.
2367 (avx2_<lshift>v<mode>): Likewise.
2368 (avx2_<lshift>vv2di): Likewise.
2369 (avx2_gathersi<mode>): Likewise.
2370 (*avx2_gathersi<mode>): Likewise.
2371 (avx2_gatherdi<mode>): Likewise.
2372 (*avx2_gatherdi<mode>): Likewise.
2373 (avx2_gatherdi<mode>256): Likewise.
2374 (*avx2_gatherdi<mode>256): Likewise.
2375 (<plusminus_insn><mode>3): Use VI mode iterator.
2376 (*<plusminus_insn><mode>3): Use VI mode iterator.
2377 (<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2378 sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2379 (*<sse2_avx2>_<plusminus_insn><mode>3): Rename from
2380 *sse2_<plusminus_insn><mode>3. Use VI12_AVX2 mode iterator.
2381 (mul<mode>3): Rename from mulv8hi3. Use VI2_AVX2 mode iterator.
2382 (*mul<mode>3): Rename from *mulv8hi3. Use VI2_AVX2 mode iterator.
2383 (<s>mul<mode>3_highpart): Rename from <s>mulv8hi3_highpart.
2384 Use VI2_AVX2 mode iterator.
2385 (*<s>mul<mode>3_highpart): Rename from *<s>mulv8hi3_highpart.
2386 Use VI2_AVX2 mode iterator.
2387 (mul<mode>3): Rename from mulv4si3. Use VI4_AVX2 mode iterator.
2388 (*mul<mode>3): Rename from *mulv4si3. Use VI4_AVX2 mode iterator.
2389 (*<sse4_1_avx2>_mulv2siv2di3): Rename from *sse4_1_mulv4si3.
2390 Use VI4_AVX2 mode iterator.
2391 (ashr<mode>3): Use VI24_AVX2 mode iterator.
2392 (lshr<mode>3): Use VI248_AVX2 mode iterator.
2393 (<sse2_avx2>_ashl<mode>3): Rename from sse2_ashlv1ti3.
2394 Use VIMAX_AVX2 mode iterator.
2395 (<sse2_avx2>_andnot<mode>3): Rename from sse2_andnot<mode>3.
2396 Use VI mode iterator.
2397 (*andnot<mode>3): Update for AVX2.
2398 (*<any_logic:code><mode>3): Likewise.
2399 (<sse2_avx2>_packsswb): Rename from sse2_packsswb.
2400 Use VI1_AVX mode iterator.
2401 (<sse2_avx2>_packssdw): Rename from sse2_packssdw.
2402 Use VI2_AVX mode iterator.
2403 (<sse2_avx2>_packuswb): Rename from sse2_packsswb.
2404 Use VI1_AVX mode iterator.
2405 (<sse2_avx2>_psadbw): Rename from sse2_psadbw.
2406 Use VI8_AVX2 mode iterator.
2407 (<ssse3_avx2>_pshufb<mode>3): Rename from ssse3_pshufbv16qi3.
2408 Use VI1_AVX2 mode iterator.
2409 (<ssse3_avx2>_psign<mode>3): Rename from ssse3_psign<mode>3.
2410 Use VI124_AVX2 mode iterator.
2411 (<ssse3_avx2>_palignr<mode>): Rename from ssse3_palignrti.
2412 Use SSESCALARMODE mode iterator.
2413 (abs<mode>2): Use VI124_AVX2 mode iterator.
2414 (<sse4_1_avx2>_movntdqa): Rename from sse4_1_movntdqa.
2415 Use VI8_AVX2 mode iterator.
2416 (<sse4_1_avx2>_mpsadbw): Rename from sse4_1_mpsadbw.
2417 Use VI1_AVX2 mode iterator.
2418 (<sse4_1_avx2>_pblendvb): Rename from sse4_1_pblendvb.
2419 Use VI1_AVX2 mode iterator.
2420 (<sse4_1_avx2>_pblendw): Rename from sse4_1_pblendvb.
2421 Use VI2_AVX2 mode iterator.
2422 (<avx_avx2>_maskload<avx2modesuffix><avxmodesuffix>): Rename from
2423 avx_maskload<ssemodesuffix><avxsizesuffix>. Use V48_AVX2 mode iterator.
2424 (<avx_avx2>_maskstore<avx2modesuffix><avxmodesuffix>): Rename from
2425 avx_maskstore<ssemodesuffix><avxsizesuffix>.
2426 Use V48_AVX2 mode iterator.
2427 * doc/extend.texi: Document AVX2 built-in functions.
2428 * doc/invoke.texi: Document -mavx2.
2429
2430 2011-08-22 Matthias Klose <doko@debian.org>
2431
2432 Revert:
2433 2011-07-11 Arthur Loiret <aloiret@debian.org>
2434 Matthias Klose <doko@debian.org>
2435 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
2436 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
2437 convention.
2438 * config.gcc (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
2439
2440 2011-08-22 Mikael Pettersson <mikpe@it.uu.se>
2441
2442 PR bootstrap/50146
2443 * ira-color.c (assign_hard_reg): Move saved_nregs declaration
2444 to #ifndef HONOR_REG_ALLOC_ORDER block.
2445
2446 2011-08-21 Richard Henderson <rth@redhat.com>
2447
2448 * rtl.h (INSN_ANNULLED_BRANCH_P): Only allow JUMP_INSN.
2449 * dwarf2cfi.c (scan_trace): Test JUMP_P before INSN_ANNULLED_BRANCH_P.
2450 * resource.c (next_insn_no_annul): Likewise.
2451 (mark_set_resources): Likewise.
2452 * reorg.c (delete_from_delay_slot): Likewise.
2453 (dbr_schedule, redundant_insn, try_merge_delay_insns): Likewise.
2454 (get_branch_condition): Test pc_rtx and LABEL_REF before dereferencing.
2455
2456 2011-08-21 Uros Bizjak <ubizjak@gmail.com>
2457
2458 * config/i386/i386.md (any_div): Remove.
2459 (sgnprefix): Update for removal.
2460 (u): Ditto.
2461
2462 2011-08-20 Vladimir Makarov <vmakarov@redhat.com>
2463
2464 * ira-lives.c (mark_pseudo_regno_subword_live): Use allocno class
2465 for ira_reg_class_max_nregs. Increase pressure by 1.
2466 (mark_pseudo_regno_subword_dead): Use allocno class
2467 for ira_reg_class_max_nregs.
2468
2469 2011-08-20 Richard Henderson <rth@redhat.com>
2470
2471 * config/c6x/eqd.c, config/c6x/eqf.c, config/c6x/ged.c,
2472 config/c6x/gef.c, config/c6x/gtd.c, config/c6x/gtf.c,
2473 config/c6x/led.c, config/c6x/lef.c, config/c6x/ltd.c,
2474 config/c6x/ltf.c: Adjust include path for soft-fp.
2475
2476 2011-08-20 H.J. Lu <hongjiu.lu@intel.com>
2477
2478 PR other/46770
2479 * config.gcc (tm_file): Add initfini-array.h if
2480 .init_arrary/.fini_array are supported.
2481
2482 * crtstuff.c: Don't generate .ctors nor .dtors sections if
2483 USE_INITFINI_ARRAY is defined.
2484
2485 * output.h (default_elf_init_array_asm_out_constructor): New.
2486 (default_elf_fini_array_asm_out_destructor): Likewise.
2487 * varasm.c (elf_init_array_section): Likewise.
2488 (elf_fini_array_section): Likewise.
2489 (get_elf_initfini_array_priority_section): Likewise.
2490 (default_elf_init_array_asm_out_constructor): Likewise.
2491 (default_elf_fini_array_asm_out_destructor): Likewise.
2492
2493 * config/initfini-array.h: New.
2494
2495 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2496
2497 * config/mips/mips.c (mips_class_max_nregs): Check that the mode is
2498 OK for ST_REGS and FP_REGS before taking those classes into account.
2499
2500 2011-08-20 Richard Sandiford <rdsandiford@googlemail.com>
2501
2502 * config/mips/mips.c (mips_reorg_process_insns): Check for jumps
2503 before checking for annulled branches.
2504
2505 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2506
2507 * config/i386/i386.c (ix86_binary_operator_ok): Use
2508 satisfies_constraint_L.
2509
2510 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2511 Michael Matz <matz@suse.de>
2512
2513 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
2514 trunc (a + copysign (nextafter (0.5, 0.0), a)).
2515
2516 2011-08-20 Anatoly Sokolov <aesok@post.ru>
2517
2518 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2519 * doc/tm.texi: Regenerate.
2520 * targhooks.c (default_preferred_output_reload_class): Don't use
2521 PREFERRED_OUTPUT_RELOAD_CLASS macro.
2522 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
2523
2524 2011-08-20 Jakub Jelinek <jakub@redhat.com>
2525
2526 PR tree-optimization/48739
2527 * tree-ssa.c: Include cfgloop.h.
2528 (execute_update_addresses_taken): When updating ssa, if in loop closed
2529 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
2530 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
2531
2532 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
2533
2534 PR rtl-optimization/49936
2535 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
2536 for calculation of max register move costs.
2537
2538 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2539
2540 * c-parser.c (c_parser_postfix_expression): Convert operands of
2541 __builtin_complex to their semantic types.
2542
2543 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
2544
2545 PR middle-end/49721
2546 * explow.c (convert_memory_address_addr_space): Also permute the
2547 conversion and addition of constant for zero-extend.
2548
2549 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2550
2551 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
2552 * doc/extend.texi (__builtin_complex): Document.
2553
2554 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2555
2556 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
2557 beyond conversions.
2558 (convert_mult_to_widen): Convert constant inputs to the right type.
2559 (convert_plusminus_to_widen): Don't automatically reject inputs that
2560 are not an SSA_NAME.
2561 Convert constant inputs to the right type.
2562
2563 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2564
2565 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
2566 to the correct type.
2567
2568 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2569
2570 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
2571 unsigned inputs of different modes.
2572 (convert_plusminus_to_widen): Likewise.
2573
2574 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2575
2576 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
2577 'type'.
2578 Use 'type' from caller, not inferred from 'rhs'.
2579 Don't reject non-conversion statements. Do return lhs in this case.
2580 (is_widening_mult_p): Add new argument 'type'.
2581 Use 'type' from caller, not inferred from 'stmt'.
2582 Pass type to is_widening_mult_rhs_p.
2583 (convert_mult_to_widen): Pass type to is_widening_mult_p.
2584 (convert_plusminus_to_widen): Likewise.
2585
2586 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2587
2588 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
2589 Ensure the the larger type is the first operand.
2590
2591 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2592
2593 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
2594 unsupported unsigned multiplies to signed.
2595 (convert_plusminus_to_widen): Likewise.
2596
2597 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2598
2599 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
2600 conversion statement separating multiply-and-accumulate.
2601
2602 2011-08-19 Richard Guenther <rguenther@suse.de>
2603
2604 PR tree-optimization/50067
2605 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
2606 offset only if we accounted for it.
2607
2608 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2609
2610 * config/arm/arm.md (maddhidi4): Remove '*' from name.
2611 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
2612 * optabs.c (find_widening_optab_handler_and_mode): New function.
2613 (expand_widen_pattern_expr): Use find_widening_optab_handler.
2614 (expand_binop_directly): Likewise.
2615 (expand_binop): Likewise.
2616 * optabs.h (find_widening_optab_handler): New macro define.
2617 (find_widening_optab_handler_and_mode): New prototype.
2618 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
2619 type precision rules.
2620 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
2621 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
2622 (is_widening_mult_rhs_p): Allow widening by more than one mode.
2623 Explicitly disallow mis-matched input types.
2624 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
2625 input types to fit the new handler.
2626 (convert_plusminus_to_widen): Likewise.
2627
2628 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
2629
2630 * expr.c (expand_expr_real_2): Use widening_optab_handler.
2631 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
2632 (gen_insn): $N now means $a must be wider than $b, not consecutive.
2633 * optabs.c (widened_mode): New function.
2634 (expand_widen_pattern_expr): Use widening_optab_handler.
2635 (expand_binop_directly): Likewise.
2636 (expand_binop): Likewise.
2637 * optabs.h (widening_optab_handlers): New struct.
2638 (optab_d): New member, 'widening'.
2639 (widening_optab_handler): New function.
2640 (set_widening_optab_handler): New function.
2641 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
2642 widening_optab_handler.
2643 (convert_plusminus_to_widen): Likewise.
2644
2645 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2646
2647 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
2648 pedantic.
2649 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
2650 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
2651
2652 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2653
2654 * opth-gen.awk: Do not declare target save/restore structures and
2655 functions if IN_RTS defined.
2656
2657 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2658
2659 PR target/49437
2660 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
2661 when stack was realigned in interrupt handler prologue.
2662
2663 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2664
2665 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
2666 (quals_from_declspecs): Assert _Noreturn not present.
2667 (grokdeclarator): Handle _Noreturn.
2668 (build_null_declspecs): Initialize noreturn_p.
2669 (declspecs_add_scspec): Handle RID_NORETURN.
2670 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
2671 (c_parser_attributes): Handle RID_NORETURN.
2672 * c-tree.h (struct c_declspecs): Add noreturn_p.
2673 * ginclude/stdnoreturn.h: New.
2674 * Makefile.in (USER_H): Add stdnoreturn.h.
2675
2676 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
2677
2678 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
2679 (OPTION_MASK_ISA_AVX_UNSET): Update.
2680 (OPTION_MASK_ISA_AVX2_UNSET): New.
2681 (ix86_handle_option): Handle OPT_mavx2 case.
2682 * config/i386/cpuid.h (bit_AVX2): New.
2683 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2684 AVX2 feature.
2685 * config/i386/i386-c.c (ix86_target_macros_internal):
2686 Conditionally define __AVX2__.
2687 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
2688 Define "core-avx2" processor alias. Handle avx2 option.
2689 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
2690 * config/i386/i386.h (TARGET_AVX2): New.
2691 * config/i386/i386.opt (mavx2): New.
2692 * doc/invoke.texi: Document -mavx2.
2693
2694 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
2695
2696 PR rtl-optimization/49890
2697 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
2698 subclasses of class which is superset of a pressure class.
2699
2700 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2701 Igor Zamyatin <igor.zamyatin@intel.com>
2702
2703 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
2704 with HOST_WIDE_INT for isa_flag.
2705 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
2706 isa variables.
2707
2708 * config/i386/i386.c (ix86_target_string): Replace int with
2709 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
2710 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
2711 (pta_flags): Removed.
2712 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
2713 (pta): Use HOST_WIDE_INT on flags.
2714 (builtin_isa): Use HOST_WIDE_INT on isa.
2715 (ix86_add_new_builtins): Likewise.
2716 (def_builtin): Use HOST_WIDE_INT on mask.
2717 (def_builtin_const): Likewise.
2718 (builtin_description): Likewise.
2719
2720 * config/i386/i386.opt (ix86_isa_flags): Replace int with
2721 HOST_WIDE_INT.
2722 (ix86_isa_flags_explicit): Likewise.
2723 (x_ix86_isa_flags_explicit): Likewise.
2724
2725 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
2726
2727 PR rtl-optimization/50107
2728 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
2729 (ira_hard_reg_in_set_p): New.
2730
2731 * ira-color.c (calculate_saved_nregs): New.
2732 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
2733 hard regs.
2734 (allocno_reload_assign, fast_allocation): Use
2735 ira_hard_reg_set_intersection_p instead of
2736 ira_hard_reg_not_in_set_p.
2737
2738 * ira.c (setup_reg_renumber): Use
2739 ira_hard_reg_set_intersection_p instead of
2740 ira_hard_reg_not_in_set_p.
2741 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
2742 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
2743
2744 * ira-costs.c (ira_tune_allocno_costs): Use
2745 ira_hard_reg_set_intersection_p instead of
2746 ira_hard_reg_not_in_set_p.
2747
2748 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
2749 Igor Zamyatin <igor.zamyatin@intel.com>
2750
2751 * hwint.h (HOST_WIDE_INT_1): New.
2752
2753 * opt-functions.awk (switch_bit_fields): Initialize the
2754 host_wide_int field.
2755 (host_wide_int_var_name): New.
2756 (var_type_struct): Check and return HOST_WIDE_INT.
2757
2758 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
2759
2760 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
2761
2762 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
2763 check masks for HOST_WIDE_INT.
2764
2765 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
2766 (option_enabled): Likewise.
2767 (get_option_state): Likewise.
2768
2769 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
2770 to HOST_WIDE_INT.
2771
2772 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2773 Marc Glisse <marc.glisse@normalesup.org>
2774
2775 PR libstdc++-v3/1773
2776 * target.def (decl_mangling_context): New C++ hook.
2777 * doc/tm.texi: Regenerate.
2778 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
2779 * config/sol2-protos.h: Group by source file.
2780 (solaris_cxx_decl_mangling_context): Declare.
2781 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
2782 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
2783 Use $<.
2784 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
2785 Add sol2-stubs.o to extra_objs.
2786
2787 2011-08-18 Jakub Jelinek <jakub@redhat.com>
2788
2789 PR target/50009
2790 * stor-layout.c (update_alignment_for_field): Don't ICE on
2791 packed flexible array members if ms_bitfield_layout_p.
2792
2793 PR target/50092
2794 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
2795 on the result before returning it.
2796
2797 PR debug/50017
2798 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
2799 is a debug stmt, use location of the first non-debug stmt after it.
2800
2801 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2802
2803 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
2804 (arm_size_rtx_costs): Likewise.
2805
2806 2011-08-18 Richard Guenther <rguenther@suse.de>
2807
2808 * tree.h (tree_int_cst_msb): Remove.
2809 * tree.c (tree_int_cst_msb): Likewise.
2810 (tree_int_cst_sign_bit): Move from ...
2811 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
2812
2813 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2814
2815 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
2816 * doc/tm.texi: Regenerate.
2817 * target.def (rtx_costs): Add an opno parameter.
2818 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2819 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2820 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
2821 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
2822 * cse.c (COST_IN): Add an opno parameter.
2823 (notreg_cost): Likewise. Update call to rtx_cost.
2824 (COST, fold_rtx): Update accordingly.
2825 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
2826 * expmed.c (emit_store_flag): Likewise.
2827 * optabs.c (avoid_expensive_constant): Add an opno parameter.
2828 Update call to rtx_cost.
2829 (expand_binop_directly, expand_binop): Likewise.
2830 (expand_twoval_binop, prepare_cmp_insn): Likewise.
2831 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
2832 (set_src_cost, get_full_set_src_cost): Update accordingly.
2833 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
2834 to target hook.
2835 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
2836 (default_adress_cost): Update calls to rtx_cost.
2837
2838 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
2839 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
2840 (arm_rtx_costs): Add an opno parameter.
2841 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
2842 adjust any recursive rtx-cost calls.
2843 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
2844 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2845 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
2846 * config/cris/cris.c (cris_rtx_costs): Likewise.
2847 * config/frv/frv.c (frv_rtx_costs): Likewise.
2848 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
2849 * config/i386/i386.c (ix86_rtx_costs): Likewise.
2850 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
2851 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
2852 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
2853 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
2854 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
2855 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
2856 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
2857 * config/mep/mep.c (mep_rtx_cost): Likewise.
2858 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
2859 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
2860 (mips_zero_extend_cost): Add an opno parameter.
2861 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
2862 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
2863 to rtx_cost.
2864 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
2865 rtx-cost calls.
2866 * config/pa/pa.c (hppa_rtx_costs): Likewise.
2867 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
2868 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
2869 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
2870 (rs6000_debug_rtx_costs): Likewise.
2871 * config/s390/s390.c (s390_rtx_costs): Likewise.
2872 * config/score/score-protos.h (score_rtx_costs): Likewise.
2873 * config/score/score.c (score_rtx_costs): Likewise.
2874 * config/sh/sh.c (andcosts): Update call to rtx_cost.
2875 (sh_rtx_costs): Add an opno parameter.
2876 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
2877 * config/spu/spu.c (spu_rtx_costs): Likewise.
2878 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
2879 * config/v850/v850.c (v850_rtx_costs): Likewise.
2880 * config/vax/vax.c (vax_rtx_costs): Likewise.
2881 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
2882
2883 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2884
2885 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
2886 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
2887 rtx_cost.
2888 * calls.c (precompute_register_parameters): Likewise.
2889 * combine.c (expand_compound_operation, make_extraction): Likewise.
2890 (force_to_mode, distribute_and_simplify_rtx): Likewise.
2891 * dse.c (find_shift_sequence): Likewise.
2892 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
2893 * expr.c (compress_float_constant): Likewise.
2894 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
2895 * gcse.c (want_to_gcse_p): Likewise.
2896 * ifcvt.c (noce_try_sign_mask): Likewise.
2897 * loop-doloop.c (doloop_optimize): Likewise.
2898 * loop-invariant.c (create_new_invariant): Likewise.
2899 * optabs.c (avoid_expensive_constant): Likewise.
2900 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
2901 (try_replace_in_use, reload_cse_move2add): Likewise.
2902 * reload1.c (calculate_elim_costs_all_insns): Likewise.
2903 (note_reg_elim_costly): Likewise.
2904 * rtlanal.c (insn_rtx_cost): Likewise.
2905 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2906 * stmt.c (lshift_cheap_p): Likewise.
2907 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
2908 * config/avr/avr.c (final_prescan_insn): Likewise.
2909 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
2910 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
2911
2912 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
2913
2914 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
2915 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
2916 * cfgloopanal.c (seq_cost): Likewise.
2917 * loop-invariant.c (create_new_invariant): Likewise.
2918 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
2919 (reload_cse_move2add): Use get_full_set_rtx_cost.
2920
2921 2011-08-18 Richard Guenther <rguenther@suse.de>
2922
2923 * expr.c (get_inner_reference): Fix typo in last change.
2924
2925 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
2926 Joseph Myers <joseph@codesourcery.com>
2927
2928 PR tree-optimization/49963
2929 * hwint.c (absu_hwi): Define.
2930 * hwint.h (absu_hwi): Declare.
2931 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
2932 of abs_hwi.
2933 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2934 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2935
2936 2011-08-18 Richard Guenther <rguenther@suse.de>
2937
2938 * expr.c (get_inner_reference): Sign-extend the constant
2939 twos-complement offset before doing arbitrary precision
2940 arithmetic on it.
2941 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2942 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
2943 to get_constraint_for_ptr_offset.
2944
2945 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
2946
2947 PR target/50068
2948 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
2949
2950 2011-08-17 Richard Guenther <rguenther@suse.de>
2951
2952 * tree.h (convert_to_ptrofftype_loc): New function.
2953 (convert_to_ptrofftype): Define.
2954 * builtins.c (expand_builtin_bzero): Use size_type_node.
2955 (fold_builtin_bzero): Likewise.
2956 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
2957 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
2958 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
2959 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
2960 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
2961 * fold-const.c (build_range_check): Negate using the original type.
2962 (fold_unary_loc): Use fold_build_pointer_plus_loc.
2963 * gimple-fold.c (gimple_adjust_this_by_delta): Use
2964 convert_to_ptrofftype.
2965 * gimplify.c (gimplify_self_mod_expr): Likewise.
2966 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
2967 (graphite_create_new_loop_guard): Likewise.
2968 * graphite-sese-to-poly.c (my_long_long): Remove.
2969 (scop_ivs_can_be_represented): Adjust.
2970 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
2971 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
2972 * tree-loop-distribution.c (build_size_arg_loc): Use
2973 size_type_node.
2974 (generate_memset_zero): Simplify.
2975 * tree-mudflap.c: Use fold_convert, not convert.
2976 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
2977 its own type.
2978 (determine_offset): Likewise for DR_STEP.
2979 (valid_initializer_p): Likewise.
2980 * tree-profile.c (prepare_instrumented_value): Convert the pointer
2981 to an integer type of same size.
2982 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
2983 to sizetype without need.
2984 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
2985 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
2986 * tree-ssa-loop-manip.c (create_iv): Likewise.
2987 (determine_exit_conditions): Adjust comment.
2988 * tree-ssa-pre.c (create_expression_by_pieces): Use
2989 convert_to_ptrofftype.
2990 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
2991 * varasm.c (array_size_for_constructor): Compute using double_ints.
2992
2993 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2994
2995 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
2996 when generating an integer result where possible. Short-cut
2997 comparison against 0 also for QImode.
2998
2999 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3000
3001 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
3002 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
3003 prototype.
3004 * config/spu/spu.c (spu_legitimize_reload_address): New function.
3005 (spu_legitimate_address_p): Do not check displacement if the base
3006 is an eliminable stack register.
3007
3008 2011-08-16 Anatoly Sokolov <aesok@post.ru>
3009
3010 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
3011 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
3012 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
3013 m32c_preferred_output_reload_class): Remove.
3014 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
3015 Change rclass argument and return types to reg_class_t. Use
3016 reg_class_subset_p instead of class_sizes.
3017 (m32c_preferred_output_reload_class): Make static. Change rclass
3018 argument and return types to reg_class_t.
3019 (TARGET_PREFERRED_RELOAD_CLASS,
3020 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3021
3022 2011-08-16 Kai Tietz <ktietz@redhat.com>
3023
3024 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
3025
3026 2011-08-16 Richard GUenther <rguenther@suse.de>
3027
3028 PR tree-optimization/50082
3029 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
3030 warnings here, instead of ...
3031 (ssa_forward_propagate_and_combine): ... here.
3032 (forward_propagate_into_comparison_1): Adjust.
3033 (forward_propagate_into_comparison): Likewise.
3034 (forward_propagate_into_gimple_cond): Likewise.
3035 (forward_propagate_into_cond): Likewise.
3036
3037 2011-08-16 Andreas Schwab <schwab@redhat.com>
3038
3039 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
3040 instead of ggc_alloc_zone_vec_rtvec_def.
3041
3042 2011-08-16 Richard Guenther <rguenther@suse.de>
3043
3044 * tree.h (ptrofftype_p): New helper function.
3045 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
3046 offset verification.
3047 (verify_gimple_assign_binary): Likewise.
3048 * tree.c (build2_stat): Likewise.
3049 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
3050 (reset_evolution_in_loop): Likewise.
3051 * tree-chrec.h (build_polynomial_chrec): Likewise.
3052
3053 2011-08-16 Liang Wang <lwang1@marvell.com>
3054
3055 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
3056 ggc_alloc_zone_vec_rtvec_def.
3057
3058 2011-08-16 Richard Guenther <rguenther@suse.de>
3059
3060 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
3061 helper factored out from ...
3062 (extract_range_from_binary_expr_1): ... here. Re-structure
3063 to not glob handling too different tree codes.
3064
3065 2011-08-15 Richard Henderson <rth@redhat.com>
3066
3067 PR middle-end/50006
3068 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
3069 setting out to include allocate_stack named pattern as well.
3070 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
3071 * stmt.c (expand_stack_restore): Likewise.
3072
3073 2011-08-15 Richard Guenther <rguenther@suse.de>
3074
3075 PR middle-end/50082
3076 * fold-const.c (maybe_canonicalize_comparison_1): Properly
3077 convert the modified operand to the other operand type.
3078 (fold_comparison): Call maybe_canonicalize_comparison_1 with
3079 useless conversions stripped from comparison operands.
3080
3081 2011-08-15 Richard Guenther <rguenther@suse.de>
3082
3083 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
3084 (extract_range_from_unary_expr_1): Restructure.
3085
3086 2011-08-15 Richard Guenther <rguenther@suse.de>
3087
3088 PR tree-optimization/50058
3089 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
3090 copy matching.
3091
3092 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3093
3094 PR target/50022
3095 * config/arm/arm.c (output_move_double): Add 2 parameters
3096 to count the number of insns emitted and whether to emit or not.
3097 Use the flag to decide when to emit and count number of instructions
3098 that will be emitted.
3099 Handle case where output_move_double might be called for calculating
3100 lengths with an invalid constant.
3101 (arm_count_output_move_double_insns): Define.
3102 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
3103 (output_move_double): Adjust prototype.
3104 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
3105 output_move_double.
3106 ("*movdi_vfp_cortexa8"): Likewise and add attribute
3107 for ce_count.
3108 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
3109 ("*movdf_soft_insn"): Likewise.
3110 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
3111 ("*cirrus_thumb2_movdi"): Likewise.
3112 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
3113 ("*cirrus_movdf_hard_insn"): Likewise.
3114 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
3115 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
3116 ("mov<mode>_internal VMMX"): Likewise.
3117 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
3118
3119 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
3120
3121 * config/i386/i386.c (ix86_expand_round_sse4): New function.
3122 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
3123 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
3124 for TARGET_ROUND.
3125
3126 (rint<mode>2): Simplify TARGET_ROUND check.
3127 (floor<mode>2): Ditto.
3128 (ceil<mode>2): Ditto.
3129 (btrunc<mode>2): Ditto.
3130
3131 2011-08-14 Anatoly Sokolov <aesok@post.ru>
3132
3133 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
3134 as mmix_preferred_output_reload_class.
3135
3136 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
3137
3138 * PR target/49903
3139 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
3140 (branch_unspec): New insn.
3141 (branch): Beauty farm.
3142 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
3143 to be IF_THEN_ELSE.
3144 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
3145 New static functions.
3146 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
3147 Use CONST_INT_P. Beauty.
3148
3149 2011-08-12 Richard Henderson <rth@redhat.com>
3150
3151 PR rtl-opt/49994
3152 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
3153 * sched-deps.c (init_deps): Clear it.
3154 (deps_analyze_insn): Consume it.
3155 (sched_analyze_insn): Fill it.
3156
3157 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3158
3159 PR target/48328
3160 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
3161 for tbh instructions.
3162
3163 2011-08-12 Diego Novillo <dnovillo@google.com>
3164
3165 * data-streamer.h (streamer_write_zero): Rename from output_zero.
3166 (streamer_write_uhwi): Rename from lto_output_uleb128.
3167 (streamer_write_hwi): Rename from output_sleb128.
3168 (streamer_write_string): Rename from lto_output_string.
3169 (streamer_string_index): Rename from lto_string_index.
3170 (streamer_write_string_with_length): Rename from
3171 lto_output_string_with_length.
3172 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
3173 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
3174 (streamer_read_string): Rename from lto_input_string.
3175 (streamer_read_indexed_string): Rename from input_string_internal.
3176 (streamer_read_uhwi): Rename from lto_input_uleb128.
3177 (streamer_read_hwi): Rename from lto_input_sleb128.
3178 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
3179 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
3180 (streamer_write_enum): Rename from lto_output_enum.
3181 (streamer_read_enum): Rename from lto_input_enum.
3182 (streamer_write_record_start): Rename from output_record_start.
3183 (streamer_read_record_start): Rename from input_record_start.
3184 (streamer_write_bitpack): Rename from lto_output_bitpack.
3185 (streamer_read_bitpack): Rename from lto_input_bitpack.
3186 (streamer_write_char_stream): Rename from lto_output_1_stream.
3187 (streamer_read_uchar): Rename from lto_input_1_unsigned.
3188 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
3189 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
3190 (streamer_read_string_cst): Rename from input_string_cst.
3191 (streamer_read_chain): Rename from lto_input_chain.
3192 (streamer_alloc_tree): Rename from lto_materialize_tree.
3193 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
3194 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
3195 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
3196 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
3197 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
3198 (streamer_write_chain): Rename from lto_output_chain.
3199 (streamer_write_tree_header): Rename from lto_output_tree_header.
3200 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
3201 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
3202 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
3203 (streamer_write_builtin): Rename from lto_output_builtin_tree.
3204 (streamer_check_handled_ts_structures): Rename from
3205 check_handled_ts_structures.
3206 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
3207 (streamer_tree_cache_insert_at): Rename from
3208 lto_streamer_cache_insert_at.
3209 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
3210 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
3211 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
3212 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
3213 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
3214 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
3215 (write_identifier): Rename from output_identifier.
3216 (write_ts_common_tree_pointers): Rename from
3217 lto_output_ts_common_tree_pointers.
3218 (write_ts_vector_tree_pointers): Rename from
3219 lto_output_ts_vector_tree_pointers.
3220 (write_ts_complex_tree_pointers): Rename from
3221 lto_output_ts_complex_tree_pointers.
3222 (write_ts_decl_minimal_tree_pointers): Rename from
3223 lto_output_ts_decl_minimal_tree_pointers.
3224 (write_ts_decl_common_tree_pointers): Rename from
3225 lto_output_ts_decl_common_tree_pointers.
3226 (write_ts_decl_non_common_tree_pointers): Rename from
3227 lto_output_ts_decl_non_common_tree_pointers.
3228 (write_ts_decl_with_vis_tree_pointers): Rename from
3229 lto_output_ts_decl_with_vis_tree_pointers.
3230 (write_ts_field_decl_tree_pointers): Rename from
3231 lto_output_ts_field_decl_tree_pointers.
3232 (write_ts_function_decl_tree_pointers): Rename from
3233 lto_output_ts_function_decl_tree_pointers.
3234 (write_ts_type_common_tree_pointers): Rename from
3235 lto_output_ts_type_common_tree_pointers.
3236 (write_ts_type_non_common_tree_pointers): Rename from
3237 lto_output_ts_type_non_common_tree_pointers.
3238 (write_ts_list_tree_pointers): Rename from
3239 lto_output_ts_list_tree_pointers.
3240 (write_ts_vec_tree_pointers): Rename from
3241 lto_output_ts_vec_tree_pointers.
3242 (write_ts_exp_tree_pointers): Rename from
3243 lto_output_ts_exp_tree_pointers.
3244 (write_ts_block_tree_pointers): Rename from
3245 lto_output_ts_block_tree_pointers.
3246 (write_ts_binfo_tree_pointers): Rename from
3247 lto_output_ts_binfo_tree_pointers.
3248 (write_ts_constructor_tree_pointers): Rename from
3249 lto_output_ts_constructor_tree_pointers.
3250 (write_ts_target_option): Rename from lto_output_ts_target_option.
3251 (write_ts_translation_unit_decl_tree_pointers): Rename from
3252 lto_output_ts_translation_unit_decl_tree_pointers.
3253 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
3254 Rename from lto_streamer_cache_add_to_node_array.
3255 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
3256 (record_common_node): Rename from lto_record_common_node.
3257
3258 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
3259 declarations.
3260 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
3261 function.
3262 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
3263 unused function.
3264 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
3265 (ipa-reference.o): Likewise.
3266 * lto-section-out.c: Include data-streamer.h.
3267 * ipa-reference.c: Include data-streamer.h.
3268
3269 2011-08-12 Nick Clifton <nickc@redhat.com>
3270
3271 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
3272 * doc/md.texi (cmpstrn): Note that the comparison stops if both
3273 fetched bytes are zero.
3274 (cmpstr): Likewise.
3275 (cmpmem): Note that the comparison does not stop if both of the
3276 fetched bytes are zero.
3277
3278 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
3279
3280 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
3281 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
3282 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
3283 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
3284 to integer_type_node.
3285 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
3286 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
3287 * builtins.c (expand_builtin_in): Ditto.
3288 (mathfn_built_in_1): Ditto.
3289 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
3290 BUILT_IN_IFLOOR.
3291 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
3292 BUILT_IN_IROUND.
3293 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
3294 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
3295 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
3296
3297 2011-08-12 Richard Guenther <rguenther@suse.de>
3298
3299 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
3300
3301 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
3302
3303 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
3304
3305 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
3306
3307 * config/arm/arm.c (get_label_padding): New function.
3308 (create_fix_barrier, arm_reorg): Use it.
3309
3310 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
3311
3312 PR target/49781
3313 * config/i386/i386.md (*lea_5_zext): New.
3314 (*lea_6_zext): Ditto.
3315 * config/i386/predicates.md (const_32bit_mask): New predicate.
3316 (lea_address_operand): Reject AND.
3317 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
3318 const_32bit_mask immediate.
3319 (ix86_print_operand_address): Handle AND.
3320 (memory_address_length): Ditto.
3321
3322 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
3323 Brian Hackett <bhackett1024@gmail.com>
3324
3325 * plugin.def: Add event for finish_decl.
3326 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
3327 * c-decl.c (finish_decl): Invoke callbacks on above event.
3328 * doc/plugins.texi: Document above event.
3329
3330 2011-08-11 Richard Guenther <rguenther@suse.de>
3331
3332 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
3333 lookups, make looking through aggregate copies stronger.
3334
3335 2011-08-11 Richard Henderson <rth@redhat.com>
3336
3337 PR bootstrap/50018
3338 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
3339
3340 2011-08-11 Richard Guenther <rguenther@suse.de>
3341
3342 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
3343 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
3344 (vrp_visit_stmt): Likewise.
3345
3346 2011-08-11 Richard Guenther <rguenther@suse.de>
3347
3348 PR middle-end/50040
3349 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
3350 load of the other piece with TREE_NO_WARNING.
3351 * tree-flow.h (warn_uninit): Adjust prototype.
3352 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
3353 the base variable and the expression that is used separately.
3354 Properly query all TREE_NO_WARNING flags.
3355 (struct walk_data): Remove.
3356 (warn_uninitialized_var): Likewise.
3357 (warn_uninitialized_vars): Do not walk gimple pieces but simply
3358 look at all SSA uses of the statement. Handle unused memory
3359 separately.
3360 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
3361
3362 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
3363
3364 * config/rx/rx.md (movsicc): Allow register to register transfers.
3365 (*movsicc): Likewise.
3366 (*stcc): Restrict this pattern to EQ and NE compares.
3367 (*stcc_reg): New pattern. Works for any comparison but only for
3368 register transfers.
3369
3370 2011-08-11 Diego Novillo <dnovillo@google.com>
3371
3372 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
3373 Call stream_write_tree instead of output_record_start.
3374 (lto_output_ts_binfo_tree_pointers): Likewise.
3375
3376 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
3377 Convert it to a macro.
3378 (stream_read_tree): Likewise.
3379
3380 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
3381 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
3382
3383 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
3384 and tree_read_bitfields.
3385 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
3386 (lto_write_tree): Call it.
3387 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
3388 * streamer-hooks.h (struct streamer_hooks): Remove fields
3389 name, is_streamable and alloc_tree. Update all users.
3390 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
3391 (lto_materialize_tree): ... here.
3392 Handle CALL_EXPR codes.
3393 Remove call to lto_streamer_cache_append.
3394 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
3395 * tree-streamer.h (tree_read_bitfields): Declare.
3396
3397 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
3398 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
3399 * tree-streamer.h (stream_read_tree): New. Replace all calls
3400 to lto_input_tree with it.
3401 (stream_write_tree): New. Replace all calls to lto_output_tree,
3402 lto_output_tree_ref and lto_output_tree_or_ref with it.
3403 * lto-streamer-in.c (lto_read_tree): Inline code from
3404 lto_streamer_read_tree.
3405 (lto_input_tree): Move from tree-streamer-in.c.
3406 * lto-streamer-out.c (lto_output_tree_ref): Make static.
3407 Remove handling of NULL values for EXPR.
3408 Do not handle EXPRs that are not indexable.
3409 (lto_write_tree): Move from tree-streamer-out.c.
3410 Inline lto_streamer_write_tree.
3411 (lto_output_tree): Move from tree-streamer-out.c.
3412 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
3413 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
3414 (lto_preload_common_nodes): Likewise.
3415 Remove assertions and adjustments for nodes
3416 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
3417 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
3418 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
3419 * lto-streamer.h (lto_input_tree): Declare.
3420 (lto_output_tree_ref): Remove.
3421 * streamer-hooks.h (struct streamer_hooks): Remove fields
3422 preload_common_nodes, indexable_with_decls_p,
3423 pack_value_fields, unpack_value_fields and output_tree_header.
3424 Update all users.
3425 * tree-streamer-in.c (lto_materialize_tree): Make extern.
3426 (lto_input_tree_pointers): Likewise.
3427 (lto_read_tree): Move to lto-streamer-in.c.
3428 (lto_input_integer_cst): Make extern.
3429 (lto_get_pickled_tree): Likewise.
3430 (lto_get_builtin_tree): Likewise.
3431 (lto_input_tree): Move to lto-streamer-in.c.
3432 * tree-streamer-out.c (pack_value_fields): Make extern.
3433 (lto_output_tree_or_ref): Remove. Replace all callers with
3434 calls to stream_write_tree.
3435 (lto_output_builtin_tree): Make extern.
3436 (lto_streamer_write_tree): Inline into lto_write_tree.
3437 (lto_output_tree_pointers): Make extern.
3438 (lto_output_tree_header): Likewise.
3439 (lto_output_integer_cst): Likewise.
3440 (lto_write_tree): Move to lto-streamer-out.c.
3441 (lto_output_tree): Likewise.
3442 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
3443 (preload_common_nodes): Likewise.
3444 (lto_streamer_cache_create): Call it.
3445 * tree-streamer.h: Include streamer-hooks.h.
3446 (stream_write_tree): New.
3447 (stream_read_tree): New.
3448 (lto_input_tree): Remove.
3449 (lto_materialize_tree): Declare.
3450 (lto_input_tree_pointers): Declare.
3451 (lto_get_pickled_tree): Declare.
3452 (lto_get_builtin_tree): Declare.
3453 (lto_input_integer_cst): Declare.
3454 (lto_output_tree_header): Declare.
3455 (pack_value_fields): Declare.
3456 (lto_output_tree_pointers): Declare.
3457 (lto_output_integer_cst): Declare.
3458 (lto_output_builtin_tree): Declare.
3459
3460 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3461
3462 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
3463 only if producer writes to the register given by regno.
3464
3465 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3466 Alexander Monakov <amonakov@ispras.ru>
3467
3468 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
3469 (sched_get_condition_with_rev_uncached): ... this. Factor out
3470 condition caching logic into ...
3471 (sched_get_condition_with_rev): ... this. Reimplement. Do not
3472 attempt to use cache for instructions with zero luid.
3473 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
3474 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
3475
3476 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3477
3478 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
3479 get_seqno_for_a_jump. Update the caller.
3480 (get_seqno_by_succs): New. Use it ...
3481 (get_seqno_for_a_jump): ... here to find a seqno if looking at
3482 predecessors was not sufficient.
3483 (get_seqno_by_preds): Include head in iteration range, exclude insn.
3484
3485 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3486
3487 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
3488
3489 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3490
3491 * sel-sched-ir.h (register_unavailable_p): Declare.
3492 * sel-sched-ir.c (register_unavailable_p): New. Use it...
3493 (set_unavailable_target_for_expr): ... here to properly test
3494 availability of a register.
3495 (speculate_expr): Ditto.
3496 * sel-sched.c (substitute_reg_in_expr): Ditto.
3497 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
3498
3499 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
3500
3501 * sel-sched.c (verify_target_availability): Fix usage of
3502 hard_regno_nregs.
3503
3504 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3505
3506 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
3507 recognized by cannot_copy_insn_p hook and volatile instructions.
3508
3509 2011-08-11 Dmitry Melnik <dm@ispras.ru>
3510
3511 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
3512
3513 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
3514
3515 * doc/md.texi (define_bypass): Say that the instruction names can
3516 be filename-style globs.
3517 * Makefile.in (FNMATCH_H): Define.
3518 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
3519 * genattrtab.c: Include fnmatch.h.
3520 (bypass_list): Change field name from "insn" to "pattern".
3521 (gen_bypass_1): Update accordingly.
3522 (process_bypasses): Use fnmatch to check for matches between
3523 insn reservations and define_bypasses.
3524 * genautomata.c: Include fnmatch.h.
3525 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
3526 and out_pattern respectively.
3527 (gen_bypass, insert_bypass): Update accordingly.
3528 (for_each_matching_insn, process_bypass_2, process_bypass_1)
3529 (process_bypass): New functions.
3530 (process_decls): Use process_bypass. Update after field name changes.
3531
3532 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
3533
3534 PR target/49687
3535 * config/avr/avr.md (smulqi3_highpart): New insn.
3536 (umulqi3_highpart): New insn.
3537 (*subqi3.ashiftrt7): New insn.
3538 (smulhi3_highpart): New expander.
3539 (umulhi3_highpart): Nex expander.
3540 (*smulhi3_highpart_call): New insn.
3541 (*umulhi3_highpart_call): New insn.
3542 (extend_u): New code attribute.
3543 (extend_prefix): Rename code attribute to extend_su.
3544 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
3545 widening QI/HI multiply.
3546
3547 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
3548
3549 PR tree-optimization/50039
3550 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
3551 that DEF_STMT has a stmt_vec_info.
3552
3553 2011-08-10 Richard Guenther <rguenther@suse.de>
3554
3555 * tree.h (can_trust_pointer_alignment): Remove.
3556 * builtins.c (can_trust_pointer_alignment): Remove.
3557
3558 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3559
3560 * c-typeck.c (scalar_to_vector): New function. Try scalar to
3561 vector conversion.
3562 (stv_conv): New enum for scalar_to_vector return type.
3563 (build_binary_op): Adjust.
3564 * doc/extend.texi: Description of scalar to vector expansion.
3565
3566 2011-08-10 Richard Guenther <rguenther@suse.de>
3567
3568 * tree.h (get_pointer_alignment): Remove max-align argument.
3569 (get_object_alignment): Likewise.
3570 * builtins.c (get_object_alignment_1): Adjust.
3571 (get_object_alignment): Remove max-align argument.
3572 (get_pointer_alignment): Likewise.
3573 (expand_builtin_strlen): Adjust.
3574 (expand_builtin_memcpy): Likewise.
3575 (expand_builtin_mempcpy_args): Likewise.
3576 (expand_builtin_strncpy): Likewise.
3577 (expand_builtin_memset_args): Likewise.
3578 (expand_builtin_memcmp): Likewise.
3579 (expand_builtin_strcmp): Likewise.
3580 (expand_builtin_strncmp): Likewise.
3581 (get_builtin_sync_mem): Likewise.
3582 (fold_builtin_memset): Likewise.
3583 (fold_builtin_memory_op): Likewise.
3584 (expand_builtin_memory_chk): Likewise.
3585 * emit-rtl.c (get_mem_align_offset): Likewise.
3586 (set_mem_attributes_minus_bitpos): Likewise.
3587 * expr.c (expand_assignment): Likewise.
3588 (expand_expr_real_1): Likewise.
3589 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
3590 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3591 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
3592 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
3593 * value-prof.c (gimple_stringops_transform): Likewise.
3594
3595 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
3596
3597 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
3598 * doc/tm.texi: Regenerate.
3599
3600 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
3601
3602 PR target/29560
3603 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
3604 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
3605 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
3606 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
3607 shift target is unused.
3608
3609 2011-08-10 Richard Guenther <rguenther@suse.de>
3610
3611 PR tree-optimization/49937
3612 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
3613 using get_object_alignment_1.
3614
3615 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3616
3617 * config/i386/i386.c (ix86_emit_i387_round): New function.
3618 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
3619 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
3620 Use ix86_emit_i387_round to expand round function for i387 math.
3621 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
3622 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
3623
3624 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3625
3626 * config/sync.c: Move to ../libgcc.
3627 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
3628 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
3629 Remove.
3630
3631 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3632
3633 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
3634 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
3635 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
3636 Change 'from' and 'to' arguments type to reg_class_t.
3637 (TARGET_REGISTER_MOVE_COST): Define.
3638
3639 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
3640
3641 PR target/50026
3642 Revert:
3643 PR rtl-optimization/49990
3644 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3645 ignore classes which can not change mode.
3646 (find_costs_and_classes): Ditto.
3647
3648 2011-08-09 Richard Guenther <rguenther@suse.de>
3649
3650 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
3651 information for ranges with only negative values.
3652 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
3653 BIT_AND_EXPR handling to handle ranges with negative values.
3654
3655 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
3656
3657 * config/i386/i386.c: Remove traling spaces.
3658 * config/i386/sse.md: Likewise.
3659 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
3660 (*fma_fmsub_<mode>): Likewise.
3661 (*fma_fnmadd_<mode>): Likewise.
3662 (*fma_fnmsub_<mode>): Likewise.
3663
3664 2011-08-09 Nick Clifton <nickc@redhat.com>
3665
3666 * config/rx/rx.md: Disable extender peepholes at -O3.
3667
3668 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
3669
3670 PR target/49781
3671 * config/i386/i386.md (reload_noff_load): New.
3672 (reload_noff_store): Ditto.
3673 * config/i386/i386.c (ix86_secondary_reload): Use
3674 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
3675 double-word moves from/to non-offsetable addresses instead of
3676 generating XMM temporary.
3677
3678 2011-08-09 Anatoly Sokolov <aesok@post.ru>
3679
3680 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
3681
3682 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
3683
3684 PR tree-optimization/50014
3685 * tree-vect-loop.c (vectorizable_reduction): Get def type before
3686 calling vect_get_vec_def_for_stmt_copy ().
3687
3688 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
3689
3690 PR rtl-optimization/49990
3691 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
3692 ignore classes which can not change mode.
3693 (find_costs_and_classes): Ditto.
3694
3695 2011-08-08 Richard Henderson <rth@redhat.com>
3696
3697 PR middle-end/49990
3698 * config/i386/i386.c (ix86_expand_prologue): Call
3699 for SEH target gen_prologue_use instead of gen_blockage
3700 at prologue's end.
3701
3702 2011-08-08 Martin Jambor <mjambor@suse.cz>
3703
3704 PR middle-end/49923
3705 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
3706 memory alignment.
3707
3708 2011-08-08 Diego Novillo <dnovillo@google.com>
3709
3710 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
3711 (DATA_STREAMER_H): New.
3712 (GIMPLE_STREAMER_H): New.
3713 (TREE_STREAMER_H): New.
3714 (STREAMER_HOOKS_H): New.
3715 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
3716 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
3717 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
3718 (data-streamer.o): New.
3719 (data-streamer-in.o): New.
3720 (data-streamer-out.o): New.
3721 (gimple-streamer-in.o): New.
3722 (gimple-streamer-out.o): New.
3723 (streamer-hooks.o): New.
3724 (tree-streamer.o): New.
3725 (tree-streamer-in.o): New.
3726 (tree-streamer-out.o): New.
3727 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3728 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
3729 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3730 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
3731 GIMPLE_STREAMER_H and TREE_STREAMER_H.
3732 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3733 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
3734 (ipa-inline-analysis.o): Likewise.
3735 (ipa-pure-const.o): Likewise.
3736 * data-streamer-in.c: New.
3737 * data-streamer-out.c: New.
3738 * data-streamer.c: New.
3739 * data-streamer.h: New.
3740 * gimple-streamer-in.c: New.
3741 * gimple-streamer-out.c: New.
3742 * gimple-streamer.h: New.
3743 * ipa-inline-analysis.c: Include data-streamer.h.
3744 * ipa-prop.c: Include data-streamer.h.
3745 * ipa-pure-const.c: Include data-streamer.h.
3746 * lto-cgraph.c: Include data-streamer.h.
3747 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
3748 (lto_input_widest_uint_uleb128): Likewise.
3749 (lto_input_sleb128): Likewise.
3750 (bp_unpack_var_len_unsigned): Likewise.
3751 (bp_unpack_var_len_int): Likewise.
3752 * lto-section-out.c (lto_output_uleb128_stream): Move to
3753 data-streamer-out.c.
3754 (lto_output_widest_uint_uleb128_stream): Likewise.
3755 (lto_output_sleb128_stream): Likewise.
3756 (bp_pack_var_len_unsigned): Likewise.
3757 (bp_pack_var_len_int): Likewise.
3758 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
3759 (struct string_slot): Remove. Update all users.
3760 (lto_tag_check_set): Make extern.
3761 (lto_tag_check_range): Move to lto-streamer.h.
3762 (lto_tag_check): Likewise.
3763 (hash_string_slot_node): Remove. Update all users.
3764 (eq_string_slot_node): Remove. Update all users.
3765 (string_for_index): Move to data-streamer-in.c
3766 (input_string_internal): Likewise.
3767 (input_string_cst): Move to tree-streamer-in.c.
3768 (input_identifier): Likewise.
3769 (lto_input_string): Move to data-streamer-in.c
3770 (input_record_start): Move to data-streamer.h
3771 (canon_file_name): Use new definition of struct string_slot
3772 from data-streamer.h. Set S_SLOT.LEN.
3773 (lto_input_location): Make extern.
3774 (lto_input_chain): Move to tree-streamer-in.c.
3775 (lto_init_eh): Make extern.
3776 (input_phi): Move to gimple-streamer-in.c.
3777 (input_gimple_stmt): Likewise.
3778 (input_bb): Likewise.
3779 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
3780 (unpack_ts_real_cst_value_fields): Likewise.
3781 (unpack_ts_fixed_cst_value_fields): Likewise.
3782 (unpack_ts_decl_common_value_fields): Likewise.
3783 (unpack_ts_decl_wrtl_value_fields): Likewise.
3784 (unpack_ts_decl_with_vis_value_fields): Likewise.
3785 (unpack_ts_function_decl_value_fields): Likewise.
3786 (unpack_ts_type_common_value_fields): Likewise.
3787 (unpack_ts_block_value_fields): Likewise.
3788 (unpack_ts_translation_unit_decl_value_fields): Likewise.
3789 (unpack_value_fields): Likewise.
3790 (lto_materialize_tree): Likewise.
3791 (lto_input_ts_common_tree_pointers): Likewise.
3792 (lto_input_ts_vector_tree_pointers): Likewise.
3793 (lto_input_ts_complex_tree_pointers): Likewise.
3794 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
3795 (lto_input_ts_decl_common_tree_pointers): Likewise.
3796 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
3797 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
3798 (lto_input_ts_field_decl_tree_pointers): Likewise.
3799 (lto_input_ts_function_decl_tree_pointers): Likewise.
3800 (lto_input_ts_type_common_tree_pointers): Likewise.
3801 (lto_input_ts_type_non_common_tree_pointers): Likewise.
3802 (lto_input_ts_list_tree_pointers): Likewise.
3803 (lto_input_ts_vec_tree_pointers): Likewise.
3804 (lto_input_ts_exp_tree_pointers): Likewise.
3805 (lto_input_ts_block_tree_pointers): Likewise.
3806 (lto_input_ts_binfo_tree_pointers): Likewise.
3807 (lto_input_ts_constructor_tree_pointers): Likewise.
3808 (lto_input_ts_target_option): Likewise.
3809 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
3810 (lto_input_tree_pointers): Likewise.
3811 (lto_get_pickled_tree): Likewise.
3812 (lto_get_builtin_tree): Likewise.
3813 (lto_read_tree): Likewise.
3814 (lto_input_integer_cst): Likewise.
3815 (lto_input_tree): Likewise.
3816 * lto-streamer-out.c: Include data-streamer.h,
3817 gimple-streamer.h and streamer-hooks.h.
3818 (struct string_slot): Move to data-streamer.h.
3819 (hash_string_slot_node): Likewise.
3820 (eq_string_slot_node): Likewise.
3821 (lto_string_index): Move to data-streamer-out.c.
3822 (lto_output_string_with_length): Likewise.
3823 (lto_output_string): Likewise.
3824 (output_string_cst): Move to tree-streamer-out.c.
3825 (output_identifier): Likewise.
3826 (output_zero): Move to data-streamer-out.c
3827 (output_uleb128): Likewise.
3828 (output_sleb128): Likewise.
3829 (output_record_start): Move to data-streamer.h
3830 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
3831 (pack_ts_real_cst_value_fields): Likewise.
3832 (pack_ts_fixed_cst_value_fields): Likewise.
3833 (pack_ts_decl_common_value_fields): Likewise.
3834 (pack_ts_decl_wrtl_value_fields): Likewise.
3835 (pack_ts_decl_with_vis_value_fields): Likewise.
3836 (pack_ts_function_decl_value_fields): Likewise.
3837 (pack_ts_type_common_value_fields): Likewise.
3838 (pack_ts_block_value_fields): Likewise.
3839 (pack_ts_translation_unit_decl_value_fields): Likewise.
3840 (pack_value_fields): Likewise.
3841 (lto_output_chain): Likewise.
3842 (lto_output_ts_common_tree_pointers): Likewise.
3843 (lto_output_ts_vector_tree_pointers): Likewise.
3844 (lto_output_ts_complex_tree_pointers): Likewise.
3845 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
3846 (lto_output_ts_decl_common_tree_pointers): Likewise.
3847 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
3848 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
3849 (lto_output_ts_field_decl_tree_pointers): Likewise.
3850 (lto_output_ts_function_decl_tree_pointers): Likewise.
3851 (lto_output_ts_type_common_tree_pointers): Likewise.
3852 (lto_output_ts_type_non_common_tree_pointers): Likewise.
3853 (lto_output_ts_list_tree_pointers): Likewise.
3854 (lto_output_ts_vec_tree_pointers): Likewise.
3855 (lto_output_ts_exp_tree_pointers): Likewise.
3856 (lto_output_ts_block_tree_pointers): Likewise.
3857 (lto_output_ts_binfo_tree_pointers): Likewise.
3858 (lto_output_ts_constructor_tree_pointers): Likewise.
3859 (lto_output_ts_target_option): Likewise.
3860 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
3861 (lto_output_tree_pointers): Likewise.
3862 (lto_output_tree_header): Likewise.
3863 (lto_output_builtin_tree): Likewise.
3864 (lto_write_tree): Likewise.
3865 (lto_output_integer_cst): Likewise.
3866 (lto_output_tree): Likewise.
3867 (output_phi): Move to gimple-streamer-out.c.
3868 (output_gimple_stmt): Likewise.
3869 (output_bb): Likewise.
3870 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
3871 (streamer_hooks): Move to streamer-hooks.c.
3872 (check_handled_ts_structures): Move to tree-streamer.c
3873 (lto_streamer_cache_add_to_node_array): Likewise.
3874 (lto_streamer_cache_insert_1): Likewise.
3875 (lto_streamer_cache_insert): Likewise.
3876 (lto_streamer_cache_insert_at): Likewise.
3877 (lto_streamer_cache_append): Likewise.
3878 (lto_streamer_cache_lookup): Likewise.
3879 (lto_streamer_cache_get): Likewise.
3880 (lto_record_common_node): Likewise.
3881 (lto_preload_common_nodes): Likewise.
3882 (lto_streamer_cache_create): Likewise.
3883 (lto_streamer_cache_delete): Likewise.
3884 (streamer_hooks_init): Move to streamer-hooks.c.
3885 * lto-streamer.h: Include diagnostic.h
3886 (struct output_block, struct lto_input_block,
3887 struct data_in, struct bitpack_d): Remove forward declarations.
3888 (struct bitpack_d): Move to data-streamer.h.
3889 (struct lto_streamer_cache_d): Move to tree-streamer.h.
3890 (struct streamer_hooks): Move to streamer-hooks.h.
3891 (bp_pack_var_len_unsigned): Move to data-streamer.h.
3892 (bp_pack_var_len_int): Likewise.
3893 (bp_unpack_var_len_unsigned): Likewise.
3894 (bp_unpack_var_len_int): Likewise.
3895 (lto_input_location): Declare.
3896 (lto_tag_check_set): Declare.
3897 (lto_init_eh): Declare.
3898 (lto_output_tree_ref): Declare.
3899 (lto_output_location): Declare.
3900 (bitpack_create): Move to data-streamer.h.
3901 (bp_pack_value): Likewise.
3902 (lto_output_bitpack): Likewise.
3903 (lto_input_bitpack): Likewise.
3904 (bp_unpack_value): Likewise.
3905 (lto_output_1_stream): Likewise.
3906 (lto_input_1_unsigned): Likewise.
3907 (lto_output_int_in_range): Likewise.
3908 (lto_input_int_in_range): Likewise.
3909 (bp_pack_int_in_range): Likewise.
3910 (bp_unpack_int_in_range): Likewise.
3911 (lto_output_enum): Likewise.
3912 (lto_input_enum): Likewise.
3913 (bp_pack_enum): Likewise.
3914 (bp_unpack_enum): Likewise.
3915 * streamer-hooks.c: New.
3916 * streamer-hooks.h: New.
3917 * tree-streamer-in.c: New.
3918 * tree-streamer-out.c: New.
3919 * tree-streamer.c: New.
3920 * tree-streamer.h: New.
3921
3922 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3923
3924 * gthr-posix95.h: Remove.
3925 * gthr.h [_PTHREADS95]: Remove.
3926 * configure.ac (enable_threads): Remove posix95.
3927 * configure: Regenerate.
3928 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
3929
3930 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
3931
3932 PR target/49781
3933 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
3934 SImode addresses.
3935 (ix86_print_operand_address): Handle zero-extended addresses.
3936 (memory_address_length): Add length of addr32 prefix for
3937 zero-extended addresses.
3938 (ix86_secondary_reload): Handle moves to/from double-word general
3939 registers from/to zero-extended addresses.
3940 * config/i386/predicates.md (lea_address_operand): Reject
3941 zero-extended operands.
3942
3943 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
3944
3945 PR other/48007
3946 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
3947
3948 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
3949 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
3950
3951 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
3952 (_Unwind_Context_Reg_Val): Likewise.
3953 (_Unwind_Get_Unwind_Word): Likewise.
3954 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
3955 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
3956 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
3957 for EXTENDED_CONTEXT_BIT.
3958 (__frame_state_for): Likewise.
3959 (uw_init_context_1): Likewise.
3960 (_Unwind_GetGR): Updated.
3961 (_Unwind_SetGR): Likewise.
3962 (_Unwind_GetGRPtr): Likewise.
3963 (_Unwind_SetGRPtr): Likewise.
3964 (_Unwind_SetGRValue): Likewise.
3965 (_Unwind_GRByValue): Likewise.
3966 (uw_install_context_1): Likewise.
3967
3968 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
3969 ASSUME_EXTENDED_UNWIND_CONTEXT.
3970 * doc/tm.texi: Regenerated.
3971
3972 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3973
3974 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
3975
3976 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3977
3978 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
3979 Linux/GNU-specific.
3980 (DEC Alpha Options, -mtune): Likewise.
3981 (MIPS Options, -march): native is supported on IRIX.
3982
3983 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3984
3985 * config/sparc/driver-sparc.c: New file.
3986 * config/sparc/x-sparc: New file.
3987 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
3988 * config/sparc/sparc.opt (native): New value for enum processor_type.
3989 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
3990 * config/sparc/sparc.c (sparc_option_override): Abort if
3991 PROCESSOR_NATIVE gets here.
3992 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
3993 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
3994 DRIVER_SELF_SPECS): Define.
3995 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
3996 (SPARC Options, -mtune): Likewise.
3997 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
3998 Substitute result.
3999 * configure: Regenerate.
4000 * Makefile.in (EXTRA_GCC_LIBS): Set.
4001 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
4002 (cpp$(exeext)): Likewise.
4003
4004 2011-08-08 Richard Guenther <rguenther@suse.de>
4005
4006 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
4007 split out from ...
4008 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
4009 by composition.
4010
4011 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
4012
4013 PR tree-optimization/50005
4014 * ipa-inline-analysis (remap_predicate): Add cast to
4015 silence signed/unsigned comparison warning.
4016
4017 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
4018
4019 * modulo-sched.c (get_sched_window): Use a table for the debug output.
4020 Print the current ii.
4021 (sms_schedule_by_order): Reduce whitespace in dump line.
4022
4023 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
4024
4025 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
4026 and one loop for successors. Fix upper bound of memory range.
4027
4028 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
4029
4030 PR target/50001
4031 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
4032 (TARGET_INSTANTIATE_DECLS): New define.
4033
4034 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
4035 Mikael Morin <mikael.morin@sfr.fr>
4036
4037 * Makefile.in (INCLUDES_FOR_TARGET): New.
4038 (LIBGCC2_CFLAGS): Use it.
4039 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
4040
4041 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
4042
4043 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
4044 frame->save_regs_using_mov calculation.
4045
4046 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
4047
4048 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
4049 * config/i386/sse.md (castmode): New mode attribute.
4050 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
4051 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
4052
4053 2011-08-05 Jan Hubicka <jh@suse.cz>
4054
4055 PR middle-end/49494
4056 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
4057
4058 2011-08-05 Jan Hubicka <jh@suse.cz>
4059
4060 PR middle-end/49500
4061 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
4062 handle aliases.
4063 (create_emultls_var):New function.
4064 (ipa_lower_emutls): Handle aliases correctly.
4065
4066 2011-08-05 Jan Hubicka <jh@suse.cz>
4067
4068 PR middle-end/49735
4069 * ipa-inline.c (recursive_inlining): Look through aliases.
4070
4071 2011-08-05 Jason Merrill <jason@redhat.com>
4072
4073 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
4074 declarations to beginning of function.
4075
4076 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
4077
4078 PR rtl-optimization/49900
4079 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
4080 ensure basic blocks stay in the same order.
4081
4082 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
4083
4084 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
4085 store_bit_field.
4086 (s390_expand_atomic): Same.
4087
4088 2011-08-05 Richard Henderson <rth@redhat.com>
4089
4090 PR rtl-opt/49977
4091 * dwarf2cfi.c (scan_insn_after): Split out of ...
4092 (scan_trace): ... here. Correctly place notes wrt sequences.
4093
4094 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
4095 Richard Henderson <rth@redhat.com>
4096
4097 PR rtl-opt/49982
4098 * expr.c (fixup_args_size_notes): Look through no-op moves.
4099
4100 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4101
4102 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
4103 of "m" for operand 0. Add type and mode attribute.
4104 (*pushxf_nointeger"): Use "<" constraint for operand 0.
4105 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
4106 constraint instead of "o" for opreand 1.
4107 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
4108 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
4109 operand 0, alternative 4.
4110 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
4111
4112 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4113
4114 * config/i386/predicates.md (lea_address_operand): Rename from
4115 no_seg_address_operand.
4116 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
4117 (*lea_1_zext): Ditto.
4118 (*lea_2): Ditto.
4119 (*lea_2_zext): Ditto.
4120
4121 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
4122
4123 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
4124 parts.base and parts.index.
4125 * config/i386/predicates.md (aligned_operand): Ditto.
4126 (cmpxchg8b_pic_memory_operand): Ditto.
4127
4128 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4129
4130 * config/soft-fp: Move to ../libgcc.
4131 * Makefile.in (SFP_MACHINE): Remove.
4132 (libgcc-support): Remove $(SFP_MACHINE) dependency.
4133 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
4134 * config/arm/t-arm-softfp: Move to
4135 ../libgcc/config/arm/t-softfp.
4136 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
4137 * config/c6x/t-c6x-softfp: Remove.
4138 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
4139 * config/i386/t-fprules-softfp: Move to
4140 ../libgcc/config/t-softfp-tf.
4141 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
4142 * config/ia64/t-fprules-softfp: Remove.
4143 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
4144 * config/lm32/t-fprules-softfp: Remove.
4145 * config/moxie/sfp-machine.h: Remove.
4146 * config/moxie/t-moxie-softfp: Remove.
4147 * config/rs6000/darwin-ldouble-format: Move to
4148 ../libgcc/config/rs6000/ibm-ldouble-format.
4149 * config/rs6000/darwin-ldouble.c: Move to
4150 ../libgcc/config/rs6000/ibm-ldouble.c
4151 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
4152 * config/rs6000/libgcc-ppc64.ver: Likewise.
4153 * config/rs6000/sfp-machine.h: Likewise.
4154 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
4155 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
4156 (LIB2FUNCS_EXTRA): Remove.
4157 (TARGET_LIBGCC2_CFLAGS): Remove.
4158 * config/rs6000/t-aix52: Likewise
4159 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4160 $(srcdir)/config/rs6000/darwin-ldouble.c.
4161 (SHLIB_MAPFILES): Remove.
4162 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
4163 $(srcdir)/config/rs6000/darwin-ldouble.c.
4164 * config/rs6000/t-fprules-softfp: Move to
4165 ../libgcc/config/t-softfp-sfdf.
4166 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
4167 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
4168 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
4169 $(srcdir)/config/rs6000/darwin-ldouble.c.
4170 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
4171 * config/score/t-score-softfp: Remove.
4172 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
4173 soft-fp/t-softfp from tmake_file.
4174 (arm*-*-uclinux*): Likewise.
4175 (arm*-*-ecos-elf): Likewise.
4176 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
4177 (arm*-*-rtems*): Likewise.
4178 (arm*-*-elf): Likewise.
4179 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
4180 tmake_file.
4181 (moxie-*-uclinux*): Likewise.
4182 (moxie-*-rtems*): Likewise.
4183 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
4184 tmake_file.
4185 (lm32-*-rtems*): Likewise.
4186 (lm32-*-uclinux*): Likewise.
4187 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
4188 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4189 (powerpc-*-linux*, powerpc64-*-linux*): Remove
4190 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
4191 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
4192 tmake_file.
4193 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
4194 tmake_file.
4195 (tic6x-*-uclinux): Likewise.
4196 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
4197 soft-fp/t-softfp from tmake_file.
4198 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
4199 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
4200 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
4201 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
4202 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
4203
4204 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4205
4206 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
4207 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
4208 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
4209 TPBIT, TPBIT_FUNCS.
4210 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
4211 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
4212 Remove.
4213 * config/arm/t-vxworks: Likewise.
4214 * config/arm/t-wince-pe: Likewise.
4215 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
4216 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4217 * config/bfin/t-bfin-elf: Likewise.
4218 * config/bfin/t-bfin-linux: Likewise.
4219 * config/bfin/t-bfin-uclinux: Likewise.
4220 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
4221 Remove.
4222 * config/fr30/t-fr30: Likewise.
4223 * config/frv/t-frv: Likewise.
4224 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
4225 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4226 * config/m32c/t-m32c: Likewise.
4227 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
4228 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4229 * config/mcore/t-mcore: Likewise.
4230 * config/mep/t-mep: Likewise.
4231 * config/microblaze/t-microblaze: Likewise.
4232 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
4233 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4234 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
4235 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4236 * config/mn10300/t-linux: Remove.
4237 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4238 * config/pdp11/t-pdp11: Likewise.
4239 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
4240 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
4241 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4242 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
4243 * config/rs6000/t-aix52: Likewise.
4244 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
4245 $(srcdir)/config/rs6000/ppc64-fp.c.
4246 * config/rs6000/t-fprules-fpbit: Remove.
4247 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
4248 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4249 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
4250 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4251 * config/sparc/t-elf: Likewise.
4252 * config/sparc/t-leon: Likewise.
4253 * config/sparc/t-leon3: Likewise.
4254 * config/spu/t-spu-elf: Likewise.
4255 (DPBIT_FUNCS): Remove.
4256 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
4257 * config/v850/t-v850: Likewise.
4258 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
4259 (avr-*-*): Likewise.
4260 (h8300-*-rtems*): Set libgcc_tm_file.
4261 (h8300-*-elf*): Likewise.
4262 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
4263 tmake_file.
4264 (powerpc-*-eabisim*): Likewise.
4265 (powerpc-*-elf*): Likewise.
4266 (powerpc-*-eabialtivec*): Likewise.
4267 (powerpc-xilinx-eabi*): Likewise.
4268 (powerpc-*-eabi*): Likewise.
4269 (powerpc-*-rtems*): Likewise.
4270 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
4271 (powerpcle-*-elf*): Likewise.
4272 (powerpcle-*-eabisim*): Likewise.
4273 (powerpcle-*-eabi*): Likewise.
4274 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
4275 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
4276 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
4277 Remove.
4278
4279 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4280
4281 * Makefile.in (UNWIND_H): Remove.
4282 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
4283 ../libgcc/Makefile.in.
4284 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
4285 (LIBUNWINDDEP): Remove.
4286 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
4287 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
4288 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
4289 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
4290 Don't copy $(UNWIND_H).
4291 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
4292 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
4293 * aclocal.m4: Regenerate.
4294 * configure: Regenerate.
4295 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
4296 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
4297 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
4298 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
4299 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
4300 * config/arm/libunwind.S, config/arm/pr-support.c,
4301 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
4302 ../libgcc/config/arm.
4303 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
4304 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
4305 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
4306 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
4307 ($(T)frvend$(objext)): Likewise.
4308 * config/ia64/t-glibc (LIB2ADDEH): Remove.
4309 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
4310 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
4311 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
4312 ../libgcc/config/ia64.
4313 * config/ia64/t-hpux (LIB2ADDEH): Remove.
4314 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
4315 * config/ia64/t-vms (LIB2ADDEH): Remove.
4316 * config/ia64/vms.h (UNW_IVMS_MODE,
4317 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
4318 * config/picochip/t-picochip (LIB2ADDEH): Remove.
4319 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
4320 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
4321 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
4322 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
4323 $(srcdir)/../libgcc to refer to unwinder sources.
4324 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
4325 * config/t-darwin (LIB2ADDEH): Remove.
4326 * config/t-freebsd (LIB2ADDEH): Remove.
4327 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
4328 * config/t-libunwind-elf: Move to ../libgcc/config.
4329 * config/t-linux (LIB2ADDEH): Remove.
4330 * config/t-sol2 (LIB2ADDEH): Remove.
4331 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
4332 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
4333
4334 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
4335
4336 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
4337
4338 * doc/invoke.texi: Document core-avx-i.
4339
4340 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4341
4342 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
4343
4344 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
4345
4346 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
4347 result of multiple results reduction when extracting the final
4348 value using scalar code.
4349
4350 2011-08-05 Richard Guenther <rguenther@suse.de>
4351
4352 PR tree-optimization/49984
4353 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
4354
4355 2011-08-05 Richard Guenther <rguenther@suse.de>
4356
4357 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
4358 return true for constant integer ranges.
4359 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
4360 BIT_IOR_EXPR handling.
4361
4362 2011-08-04 Kai Tietz <ktietz@redhat.com>
4363
4364 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
4365 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
4366
4367 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
4368
4369 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
4370 pattern def statement, and its access macro.
4371 (NUM_PATTERNS): Set to 5.
4372 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
4373 pattern def statement.
4374 (vect_transform_loop): Likewise.
4375 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
4376 function vect_recog_over_widening_pattern ().
4377 (vect_operation_fits_smaller_type): New function.
4378 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
4379 Likewise.
4380 (vect_pattern_recog_1): Move the code that marks pattern
4381 statements to vect_mark_pattern_stmts (), and call it. Update
4382 documentation.
4383 * tree-vect-stmts.c (vect_supportable_shift): New function.
4384 (vect_analyze_stmt): Handle pattern def statement.
4385 (new_stmt_vec_info): Initialize pattern def statement.
4386
4387 2011-08-04 Richard Henderson <rth@redhat.com>
4388
4389 PR target/49964
4390 * config/i386/i386.c (ix86_expand_call): Don't create nested
4391 PARALLELs for TARGET_VZEROUPPER.
4392 (ix86_split_call_vzeroupper): Fix extraction of the original call.
4393 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
4394 recognize nested PARALLELs.
4395 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
4396 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
4397 *sibcall_value_pop_vzeroupper): Likewise.
4398
4399 2011-08-04 Richard Henderson <rth@redhat.com>
4400
4401 PR middle-end/49968
4402 * calls.c (expand_call): Use fixup_args_size_notes for
4403 emit_stack_restore.
4404 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
4405 in non-standard modes.
4406
4407 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4408
4409 * gcc.c (self_spec): New variable.
4410 (static_specs): Add self_spec.
4411 (main): Call do_self_spec on "self_spec" specs after reading
4412 user specs files. Move compare_debug handling right after that.
4413
4414 2011-08-04 Richard Guenther <rguenther@suse.de>
4415
4416 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
4417 (value_range_nonnegative_p): New function.
4418 (ssa_name_nonnegative_p): Use it.
4419 (value_range_constant_singleton): New function.
4420 (op_with_constant_singleton_value_range): Use it.
4421 (extract_range_from_binary_expr_1): New function, split out from ...
4422 (extract_range_from_binary_expr): ... this. Remove fallback
4423 constant folding done here.
4424
4425 2011-08-04 Richard Guenther <rguenther@suse.de>
4426
4427 PR tree-optimization/49806
4428 * tree-vrp.c (op_with_boolean_value_range_p): New function.
4429 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
4430 a new statement for a final conversion to bool.
4431
4432 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
4433
4434 * gengtype-state.c: Include "bconfig.h" if
4435 GENERATOR_FILE is defined, "config.h" otherwise.
4436 * gengtype.c: Likewise.
4437 * gengtype-lex.l: Likewise.
4438 * gengtype-parse.c: Likewise.
4439 * Makefile.in (gengtype-lex.o-warn): New variable.
4440 (plugin_resourcesdir): Likewise.
4441 (plugin_bindir): Likewise.
4442 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
4443 (MOSTLYCLEANFILES): Add gengtype$(exeext).
4444 (native): Depend on gengtype$(exeext) is $enable_plugin
4445 is set to "yes".
4446 (gtype.state): Depend on s-gtype. Use temporary file.
4447 (gengtype-lex.o): New rule.
4448 (gengtype-parse.o): Likewise.
4449 (gengtype-state.o): Likewise.
4450 (gengtype$(exeext)): Likewise.
4451 (install-gengtype): Likewise.
4452 (gengtype.o): Likewise.
4453 (build/gengtype.o): Depend on version.h.
4454 (build/gengtype-state): Depend on double-int.h, version.h,
4455 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
4456 (install-plugin): Depend on install-gengtype.
4457
4458 2011-08-04 Jakub Jelinek <jakub@redhat.com>
4459
4460 PR middle-end/49905
4461 * tree.h (init_attributes): New prototype.
4462 * attribs.c (init_attributes): No longer static.
4463
4464 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4465
4466 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
4467 maybe_suffix.
4468
4469 2011-08-03 David Li <davidxl@google.com>
4470
4471 * tree-optimize.c (execute_fixup_cfg): Fix up entry
4472 outgoing edge counts after inlining.
4473
4474 2011-08-03 David Li <davidxl@google.com>
4475
4476 * profile.c (compute_branch_probabilities): Compute
4477 function frequency after profile annotation.
4478
4479 2011-08-04 Alan Modra <amodra@gmail.com>
4480
4481 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
4482 use_backchain_to_restore_sp initialisation.
4483 (rs6000_legitimate_offset_address_p): Simplify offset test.
4484
4485 2011-08-03 Richard Henderson <rth@redhat.com>
4486
4487 * config/spu/spu.md: Use define_c_enum instead of define_constants.
4488 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
4489 (UNSPECV_NOP): New.
4490
4491 2011-08-03 Richard Henderson <rth@redhat.com>
4492
4493 PR target/34888
4494 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
4495
4496 2011-08-03 Jakub Jelinek <jakub@redhat.com>
4497
4498 PR tree-optimization/49948
4499 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
4500
4501 2011-08-03 Anatoly Sokolov <aesok@post.ru>
4502
4503 * config/m32c/m32c.c (class_sizes): Remove.
4504 (reduce_class): Change arguments and return type to reg_class_t.
4505 Change type cc var to HARD_REG_SET. Change type best var to
4506 reg_class_t. Change type best_size var to unsigned int. Remove
4507 initialization class_sizes var. Use reg_class_size array instead
4508 of class_sizes. Use reg_class_contents array instead
4509 of class_contents.
4510
4511 2011-08-03 Richard Guenther <rguenther@suse.de>
4512
4513 PR middle-end/49958
4514 * fold-const.c (fold_binary_loc): Only associate
4515 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
4516 overflow wraps.
4517
4518 2011-08-03 Alan Modra <amodra@gmail.com>
4519
4520 PR rtl-optimization/49941
4521 * jump.c (mark_jump_label): Comment.
4522 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
4523 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
4524 (mark_used_flags): Don't mark RETURN.
4525
4526 2011-08-03 Richard Guenther <rguenther@suse.de>
4527
4528 PR tree-optimization/49938
4529 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
4530 deal with a POLYNOMIAL_CHREC.
4531
4532 2011-08-03 Revital Eres <revital.eres@linaro.org>
4533
4534 * modulo-sched.c (calculate_stage_count,
4535 calculate_must_precede_follow, get_sched_window,
4536 try_scheduling_node_in_cycle, remove_node_from_ps): Add
4537 declaration.
4538 (update_node_sched_params, set_must_precede_follow, optimize_sc):
4539 New functions.
4540 (reset_sched_times): Call update_node_sched_params.
4541 (sms_schedule): Call optimize_sc.
4542 (get_sched_window): Change function arguments.
4543 (sms_schedule_by_order): Update call to get_sched_window.
4544 Call set_must_precede_follow.
4545 (calculate_stage_count): Add function argument.
4546
4547 2011-08-02 Richard Henderson <rth@redhat.com>
4548
4549 PR target/49864
4550 PR target/49879
4551 * reg-notes.def (REG_ARGS_SIZE): New.
4552 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
4553 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
4554 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
4555 different stack levels.
4556 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
4557 (maybe_move_args_size_note): New.
4558 (combine_stack_adjustments_for_block): Use it.
4559 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
4560 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
4561 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
4562 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
4563 (cur_cfa): New.
4564 (queued_args_size): Remove.
4565 (add_cfi_args_size): Assert size is non-negative.
4566 (stack_adjust_offset, dwarf2out_args_size): Remove.
4567 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
4568 (notice_args_size, notice_eh_throw): New.
4569 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
4570 (dwarf2out_frame_debug_adjust_cfa): Likewise.
4571 (dwarf2out_frame_debug_cfa_offset): Likewise.
4572 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
4573 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
4574 (change_cfi_row): Don't emit args_size.
4575 (maybe_record_trace_start_abnormal): Split out from ...
4576 (maybe_record_trace_start): Here. Set args_size_undefined.
4577 (create_trace_edges): Update to match.
4578 (scan_trace): Handle REG_ARGS_SIZE.
4579 (connect_traces): Connect args_size between EH insns.
4580 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
4581 * explow.c (suppress_reg_args_size): New.
4582 (adjust_stack_1): Split out from ...
4583 (adjust_stack): ... here.
4584 (anti_adjust_stack): Use it.
4585 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
4586 * expr.c (mem_autoinc_base): New.
4587 (fixup_args_size_notes): New.
4588 (emit_single_push_insn_1): Rename from emit_single_push_insn.
4589 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
4590 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
4591 * reload1.c (reload_as_needed): Likewise.
4592 * rtl.h (fixup_args_size_notes): Declare.
4593
4594 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
4595
4596 PR bootstrap/49914
4597 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
4598 of abs.
4599 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4600 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
4601
4602 2011-08-02 Richard Henderson <rth@redhat.com>
4603
4604 * config/h8300/h8300.c (push, pop): Return the insn.
4605 (h8300_swap_into_er6): Generate correct unwind info.
4606 (h8300_swap_out_of_er6): Likewise.
4607 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
4608 complex cfa expression.
4609 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
4610
4611 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
4612
4613 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
4614
4615 2011-08-02 Richard Henderson <rth@redhat.com>
4616
4617 PR target/49878
4618 * config/h8300/h8300.c (h8300_move_ok): New.
4619 * config/h8300/h8300-protos.h: Declare it.
4620 * config/h8300/h8300.md (P): New mode iterator.
4621 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
4622 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
4623 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
4624 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
4625 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
4626 and pushqi1_h8300hs_normal; use PRE_MODIFY and
4627 register_no_sp_elim_operand.
4628 (*pushhi1_h8300hs_<P>): Similarly.
4629 (pushqi1, pushhi1, pushhi1_h8300): Remove.
4630 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
4631
4632 2011-08-02 Richard Henderson <rth@redhat.com>
4633
4634 PR target/49881
4635 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
4636
4637 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4638
4639 * c-parser.c (enum c_parser_prec): New enum, moved from within
4640 c_parser_binary_expression.
4641 (c_parser_binary_expression): Add PREC argument. Stop parsing
4642 if operator has lower or equal precedence than PREC.
4643 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
4644 callers.
4645 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
4646 Adjust c_finish_omp_atomic caller.
4647 (c_parser_omp_taskyield): New function.
4648 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
4649 (c_parser_omp_clause_name): Handle final and mergeable clauses.
4650 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
4651 functions.
4652 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
4653 and PRAGMA_OMP_CLAUSE_MERGEABLE.
4654 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
4655 (c_parser_omp_clause_reduction): Handle min and max.
4656 * c-typeck.c (c_finish_omp_clauses): Don't complain about
4657 const qualified predetermined vars in firstprivate clause.
4658 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4659 Handle MIN_EXPR and MAX_EXPR.
4660 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
4661 and OMP_CLAUSE_MERGEABLE.
4662 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
4663 and OMP_ATOMIC_CAPTURE_NEW.
4664 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
4665 OMP_CLAUSE_MERGEABLE.
4666 (omp_clause_code_name): Likewise.
4667 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4668 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
4669 and OMP_CLAUSE_MERGEABLE.
4670 (OMP_CLAUSE_FINAL_EXPR): Define.
4671 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
4672 OMP_CLAUSE_MERGEABLE.
4673 (expand_task_call): Likewise.
4674 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
4675 (expand_omp_atomic_fetch_op): Handle cases where old or new
4676 value is needed afterwards.
4677 (expand_omp_atomic): Call expand_omp_atomic_load resp.
4678 expand_omp_atomic_store.
4679 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
4680 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
4681 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
4682 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4683 * tree-nested.c (convert_nonlocal_omp_clauses,
4684 convert_local_omp_clauses): Likewise.
4685 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
4686 OMP_ATOMIC_CAPTURE_NEW): New.
4687 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
4688 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
4689 New inlines.
4690 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
4691 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
4692 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
4693
4694 2011-08-02 Kai Tietz <ktietz@redhat.com>
4695
4696 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
4697 boolean-type.
4698 (ssa_forward_propagate_and_combine): Interprete result of
4699 forward_propagate_comparison.
4700 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
4701 boolean-typed operands for comparisons.
4702
4703 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
4704
4705 * config/avr/libgcc.S: Gather related function in the
4706 same input section.
4707 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
4708 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
4709 references.
4710 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
4711 __udivmodsi4, __divmodsi4, __prologue_saves__,
4712 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
4713 __do_copy_data, __do_clear_bss, __do_global_ctors,
4714 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
4715
4716 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
4717
4718 PR target/47766
4719 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
4720 (stack_protect_test): The pattern compares ptr_mode value.
4721
4722 2011-08-02 Alan Modra <amodra@gmail.com>
4723
4724 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
4725 note for save_LR_around_toc_setup sequence.
4726
4727 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4728
4729 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
4730
4731 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
4732 Joseph Myers <joseph@codesourcery.com>
4733
4734 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
4735 * hwint.c: Include diagnostic-core.h.
4736 (abs_hwi): New.
4737 (gcd): Moved here...
4738 (pos_mul_hwi): New.
4739 (mul_hwi): New.
4740 (least_common_multiple): Moved here...
4741 * hwint.h (gcd): ... from here.
4742 (least_common_multiple): ... from here.
4743 (HOST_WIDE_INT_MIN): New.
4744 (HOST_WIDE_INT_MAX): New.
4745 (abs_hwi): Declared.
4746 (gcd): Declared.
4747 (pos_mul_hwi): Declared.
4748 (mul_hwi): Declared.
4749 (least_common_multiple): Declared.
4750 * omega.c (check_pos_mul): Removed.
4751 (check_mul): Removed.
4752 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
4753 mul_hwi instead of check_mul.
4754
4755 2011-08-01 Richard Henderson <rth@redhat.com>
4756
4757 PR target/49881
4758 * config/avr/avr.h (PUSH_ROUNDING): New.
4759 * config/avr/avr.md (pushqi1): Rename from *pushqi.
4760 (*pushhi, *pushsi, *pushsf): Remove.
4761 (MPUSH): New mode iterator.
4762 (push<MPUSH>1): New expander.
4763
4764 2011-08-01 Anatoly Sokolov <aesok@post.ru>
4765
4766 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
4767 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
4768 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
4769 mmix_preferred_output_reload_class): Remove.
4770 * config/mmix/mmix.c (mmix_preferred_reload_class,
4771 mmix_preferred_output_reload_class): Make static. Change rclass
4772 argument and return type to reg_class_t.
4773 (TARGET_PREFERRED_RELOAD_CLASS,
4774 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4775
4776 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
4777
4778 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
4779 handling.
4780
4781 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4782
4783 PR target/47766
4784 * config/i386/i386.md (PTR): New.
4785 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
4786 (stack_protect_test): Likewise.
4787 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
4788 (stack_tls_protect_set_<mode>): Likewise.
4789 (stack_tls_protect_test_<mode>): Likewise.
4790
4791 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
4792
4793 PR target/49927
4794 * config/i386/i386.c (ix86_address_subreg_operand): New.
4795 (ix86_decompose_address): Use ix86_address_subreg_operand.
4796 (ix86_legitimate_address_p): Do not assert that subregs satisfy
4797 register_no_elim_operand in DImode.
4798
4799 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
4800
4801 PR tree-optimization/49926
4802 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
4803 in a chain doesn't have uses both inside and outside the loop.
4804
4805 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4806
4807 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
4808 * config/avr/avr-devices.c (avr_mcu_types): Use it.
4809 * config/avr/avr-mcus.def (AVR_MCU): Use it.
4810 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
4811 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
4812 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
4813 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
4814 to detect if XJMP must not be skipped.
4815
4816 2011-08-02 Alan Modra <amodra@gmail.com>
4817
4818 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
4819 Delete.
4820 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
4821 (rs6000_emit_prologue): Don't prematurely return when
4822 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
4823 save_toc_in_prologue case.
4824 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
4825 calls_alloca.
4826
4827 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
4828
4829 * config/avr/avr-devices.c: Delete SVN property svn:executable.
4830 * config/avr/predicates.md: Ditto.
4831 * config/avr/driver-avr.c: Ditto.
4832 * config/avr/genopt.sh: Set SVN property svn:executable to *.
4833
4834 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
4835
4836 * calls.c (emit_library_call_value_1): Declare size only if
4837 BLOCK_REG_PADDING is defined.
4838
4839 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
4840
4841 PR target/49547
4842 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
4843 (x86_64-*-*): Likewise.
4844 * config/i386/i386.opt (mlzcnt): New.
4845 * config/i386/abmintrin.h: File removed.
4846 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
4847 * config/i386/lzcntintrin.h: ... here. New file.
4848 (__lzcnt): Rename to ...
4849 (__lzcnt32): ... this.
4850 * config/i386/bmiintrin.h (head): Update copyright year.
4851 (__lzcnt_u16): Removed.
4852 (__lzcnt_u32): Likewise.
4853 (__lzcnt_u64): Likewise.
4854 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
4855 is defined, remove abmintrin.h.
4856 * config/i386/cpuid.h (bit_LZCNT): New.
4857 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4858 LZCNT feature.
4859 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4860 __LZCNT__ if needed.
4861 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
4862 (ix86_option_override_internal): Handle LZCNT option.
4863 (ix86_valid_target_attribute_inner_p): Likewise.
4864 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
4865 * config/i386/i386.h (TARGET_LZCNT): New.
4866 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
4867 * config/i386/i386.md (clz<mode>2): Update insn constraint.
4868 (clz<mode>2_lzcnt): Likewise.
4869 * doc/invoke.texi: Mention -mlzcnt option.
4870 * doc/extend.texi: Likewise.
4871
4872 2011-08-01 Julian Brown <julian@codesourcery.com>
4873
4874 * configure.ac (fixed-point): Add ARM support.
4875 * configure: Regenerate.
4876 * config/arm/arm.c (arm_fixed_mode_set): New struct.
4877 (arm_set_fixed_optab_libfunc): New.
4878 (arm_set_fixed_conv_libfunc): New.
4879 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
4880 ARM-specific names.
4881 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
4882 return values in SImode.
4883 (arm_return_in_msb): Return fixed-point types in the msb.
4884 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
4885 upwards.
4886 (arm_scalar_mode_supported_p): Support fixed-point modes.
4887 (arm_vector_mode_supported_p): Support vector fixed-point modes.
4888 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
4889 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
4890 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
4891 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
4892 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
4893 New mode iterators.
4894 (qaddsub_suf): New mode attribute.
4895 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
4896 vector modes.
4897 * config/arm/predicates.md (sat_shift_operator): New predicate.
4898 * config/arm/arm-fixed.md: New.
4899 * config/arm/arm.md: Include arm-fixed.md.
4900 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
4901
4902 2011-08-01 Julian Brown <julian@codesourcery.com>
4903
4904 * calls.c (emit_library_call_value_1): Support padding for libcall
4905 arguments and return values.
4906 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
4907 downwards in big-endian mode.
4908
4909 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4910
4911 PR debug/49887
4912 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
4913 * config/sol2-protos.h: Likewise.
4914 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
4915 solaris_code_end.
4916 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
4917 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
4918 solaris_file_end.
4919 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
4920
4921 2011-08-01 Julian Brown <julian@codesourcery.com>
4922
4923 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
4924
4925 2011-08-01 Julian Brown <julian@codesourcery.com>
4926
4927 * final.c (output_addr_const): Print fixed-point constants as
4928 decimal not hex.
4929
4930 2011-08-01 Richard Guenther <rguenther@suse.de>
4931
4932 * stor-layout.c (initialize_sizetypes): Properly sign-extend
4933 bitsiztype TYPE_MAX_VALUE.
4934
4935 2011-08-01 Julian Brown <julian@codesourcery.com>
4936
4937 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
4938 comparison helpers.
4939
4940 2011-07-31 Richard Henderson <rth@redhat.com>
4941
4942 * config/h8300/crti.asm: Add flags to .section directive.
4943 * config/h8300/crtn.asm: Likewise.
4944
4945 2011-07-31 Richard Henderson <rth@redhat.com>
4946
4947 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
4948 * tree.c (build_common_tree_nodes): Likewise.
4949
4950 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
4951
4952 PR target/49880
4953 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
4954 (divsi3_i1): Likewise.
4955
4956 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4957
4958 PR tree-optimization/49749
4959 * tree-ssa-reassoc.c (get_rank): New forward declaration.
4960 (PHI_LOOP_BIAS): New macro.
4961 (phi_rank): New function.
4962 (loop_carried_phi): Likewise.
4963 (propagate_rank): Likewise.
4964 (get_rank): Add calls to phi_rank and propagate_rank.
4965
4966 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
4967
4968 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
4969 of TARGET_64BIT.
4970 (PTRDIFF_TYPE): Likewise.
4971
4972 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
4973
4974 PR target/49920
4975 * config/i386/i386.md (strset): Do not expand strset_singleop
4976 when %eax or $edi are fixed.
4977 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
4978 (*strsetsi_1): Ditto.
4979 (*strsethi_1): Ditto.
4980 (*strsetqi_1): Ditto.
4981 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
4982 (*rep_stossi): Ditto.
4983 (*rep_stosqi): Ditto.
4984 (*strlenqi_1): Ditto.
4985 (cmpstrnsi): Also fail when %ecx is fixed.
4986 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
4987 (*cmpstrnqi_1): Ditto.
4988 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
4989 (*strmovsi_1): Ditto.
4990 (*strmovhi_1): Ditto.
4991 (*strmovqi_1): Ditto.
4992 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
4993 (*rep_movsi): Ditto.
4994 (*rep_movqi): Ditto.
4995
4996 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
4997
4998 PR target/47908
4999 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
5000 Disable instruction scheduling for non-ColdFire targets.
5001 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
5002
5003 2011-07-31 Revital Eres <revital.eres@linaro.org>
5004
5005 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
5006 of anti-dep edge from a branch.
5007 (add_cross_iteration_register_deps): Create anti-dep edge from
5008 a branch.
5009
5010 2011-07-31 Revital Eres <revital.eres@linaro.org>
5011
5012 * modulo-sched.c: Change comment.
5013 (reset_sched_times): Fix print message.
5014 (print_partial_schedule): Add print info.
5015
5016 2011-07-31 Tom de Vries <tom@codesourcery.com>
5017
5018 PR middle-end/43513
5019 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
5020 get_object_alignment and TYPE_ALIGN.
5021
5022 2011-07-30 Tom de Vries <tom@codesourcery.com>
5023
5024 PR middle-end/43513
5025 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
5026 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
5027
5028 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5029
5030 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
5031 <sys/sbd.h>.
5032 (cpu_types): New array.
5033 (cputype): New function.
5034 (host_detect_local_cpu): Only define buf, f if !__sgi__.
5035 Use scaninvent instead of /proc/cpuinfo if __sgi__.
5036 * config.host: Also use driver-native.o, mips/x-native on
5037 mips-sgi-irix*.
5038 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
5039 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
5040 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
5041
5042 2011-07-29 Jakub Jelinek <jakub@redhat.com>
5043
5044 PR middle-end/49897
5045 PR middle-end/49898
5046 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
5047 in nested parallel and outer is a gimple_reg, mark it as addressable
5048 and set its bit in task_shared_vars bitmap too.
5049
5050 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
5051
5052 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
5053
5054 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5055
5056 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
5057 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
5058 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
5059 AMASK_LOCKPFTCHOK): Define.
5060 (host_detect_local_cpu): Remove buf, f, cpu_names.
5061 Define cpu_types, implver, amask.
5062 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
5063 native CPU.
5064 * config.host: Also use driver-alpha.o, alpha/x-alpha on
5065 alpha*-dec-osf*.
5066 * config/alpha/osf5.h [__alpha__ || __alpha]
5067 (host_detect_local_cpu): Declare.
5068 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
5069 (DRIVER_SELF_SPECS): Define.
5070
5071 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
5072
5073 PR target/47715
5074 * config/i386/i386.md (*load_tp_x32): New.
5075 (*load_tp_x32_zext): Ditto.
5076 (*add_tp_x32): Ditto.
5077 (*add_tp_x32_zext): Ditto.
5078 (*load_tp_<mode>): Disable for TARGET_X32 targets.
5079 (*add_tp_<mode>): Ditto.
5080 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
5081 ptr_mode and convert to Pmode if needed.
5082
5083 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
5084
5085 PR target/49687
5086 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
5087 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
5088 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
5089 Add X to register footprint: Clobber r26/r27.
5090
5091 2011-07-29 Richard Guenther <rguenther@suse.de>
5092
5093 * builtins.c (fold_builtin_signbit): Build the comparison
5094 with a proper type.
5095
5096 2011-07-29 Richard Guenther <rguenther@suse.de>
5097
5098 PR tree-optimization/49893
5099 * tree-predcom.c (suitable_reference_p): Volatile references
5100 are not suitable.
5101
5102 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
5103
5104 PR target/49313
5105 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5106 (__ctzsi2): Result for 0 may be undefined.
5107 (__ctzhi2): Result for 0 may be undefined.
5108 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5109 (__popcountsi2): Ditto. And don't clobber r26.
5110 (__popcountdi2): Ditto. And don't clobber r27.
5111 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5112 (parityhi2): New expand.
5113 (paritysi2): New expand.
5114 (popcounthi2): New expand.
5115 (popcountsi2): New expand.
5116 (clzhi2): New expand.
5117 (clzsi2): New expand.
5118 (ctzhi2): New expand.
5119 (ctzsi2): New expand.
5120 (ffshi2): New expand.
5121 (ffssi2): New expand.
5122 (copysignsf3): New insn.
5123 (bswapsi2): New expand.
5124 (*parityhi2.libgcc): New insn.
5125 (*parityqihi2.libgcc): New insn.
5126 (*paritysihi2.libgcc): New insn.
5127 (*popcounthi2.libgcc): New insn.
5128 (*popcountsi2.libgcc): New insn.
5129 (*popcountqi2.libgcc): New insn.
5130 (*popcountqihi2.libgcc): New insn-and-split.
5131 (*clzhi2.libgcc): New insn.
5132 (*clzsihi2.libgcc): New insn.
5133 (*ctzhi2.libgcc): New insn.
5134 (*ctzsihi2.libgcc): New insn.
5135 (*ffshi2.libgcc): New insn.
5136 (*ffssihi2.libgcc): New insn.
5137 (*bswapsi2.libgcc): New insn.
5138
5139 2011-07-29 Richard Guenther <rguenther@suse.de>
5140
5141 * tree-vrp.c (get_value_range): Only set parameter default
5142 definitions to varying, leave others at undefined.
5143 (extract_range_from_binary_expr): Fix undefined handling.
5144 (vrp_visit_phi_node): Handle merged undefined state.
5145
5146 2011-07-29 Wei Guozhi <carrot@google.com>
5147
5148 PR rtl-optimization/49799
5149 * combine.c (make_compound_operation): Check if the bit field is valid
5150 before change it to bit field extraction.
5151
5152 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
5153
5154 PR rtl-optimization/49891
5155 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
5156 newly created returnjumps.
5157
5158 2011-07-28 DJ Delorie <dj@redhat.com>
5159
5160 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
5161 local frame in a naked function, and produce a suitable error for
5162 that specific case.
5163
5164 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
5165 registers to be reloaded in HI classes when the target is HI.
5166
5167 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5168
5169 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
5170 bound_one, bound_two.
5171
5172 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5173
5174 PR middle-end/48648
5175 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
5176 CLAST assignments.
5177 (translate_clast): Same.
5178 (translate_clast_assignment): New.
5179
5180 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
5181
5182 PR tree-optimization/49876
5183 * sese.c (rename_uses): Do not return false on gloog_error: set
5184 the new_expr to integer_zero_node and continue code generation.
5185 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
5186
5187 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5188
5189 PR debug/49846
5190 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
5191 arguments also check if they aren't initialized with a MODE_INT
5192 mode of the same size.
5193
5194 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
5195
5196 * expr.c (get_bit_range): Handle *MEM_REF's.
5197
5198 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
5199
5200 * rtlanal.c (tablejump_p): False for returns.
5201 * reorg.c (first_active_target_insn): New static function.
5202 (find_end_label): Set JUMP_LABEL for a new returnjump.
5203 (optimize_skip, get_jump_flags, rare_destination,
5204 mostly_true_jump, get_branch_condition,
5205 steal_delay_list_from_target, own_thread_p,
5206 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
5207 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
5208 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
5209 * jump.c (delete_related_insns): Likewise.
5210 (jump_to_label_p): New function.
5211 (redirect_target): New static function.
5212 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
5213 (redirect_jump_1): Assert that the new label is nonnull.
5214 (redirect_jump): Likewise.
5215 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
5216 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
5217 exit block.
5218 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
5219 changed. Ensure that the right label is passed to redirect_jump.
5220 * function.c (emit_return_into_block,
5221 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
5222 ret_rtx in their JUMP_LABEL.
5223 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
5224 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
5225 pass ret_rtx as label.
5226 * cfglayout.c (fixup_reorder_chain): Use
5227 force_nonfallthru_and_redirect rather than force_nonfallthru.
5228 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
5229 * rtl.h (ANY_RETURN_P): New macro.
5230 (jump_to_label_p): Declare.
5231 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
5232 JUMP_LABELs.
5233 (mark_target_live_regs): Likewise.
5234 * basic-block.h (force_nonfallthru_and_redirect): Declare.
5235 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
5236 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
5237 alpha_tablejump_best_label): Remove functions.
5238 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
5239 alpha_tablejump_best_label): Remove declarations.
5240 * config/sh/sh.c (barrier_align, split_branches): Adjust for
5241 ret_rtx in JUMP_LABELs.
5242 * config/arm/arm.c (is_jump_table): Likewise.
5243
5244 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5245
5246 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
5247 special predicate. Remove explicit mode checks.
5248
5249 2011-07-28 Jakub Jelinek <jakub@redhat.com>
5250
5251 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
5252 DW_AT_data_member_location containing just DW_OP_plus_uconst.
5253
5254 PR debug/49871
5255 * dwarf2out.c (size_of_die, value_format, output_die): Use
5256 DW_FORM_udata instead of DW_FORM_data[48] for
5257 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
5258
5259 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5260
5261 * config/i386/i386.md (*tls_global_dynamic_64): Update
5262 length attribute.
5263
5264 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5265
5266 PR target/47715
5267 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
5268 tls_symbolic_operand check. Update code sequence for TARGET_X32.
5269 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
5270 (tls_dynamic_gnu2_64): Ditto.
5271 (*tls_dynamic_gnu2_lea_64): Ditto.
5272 (*tls_dynamic_gnu2_call_64): Ditto.
5273 (*tls_dynamic_gnu2_combine_64): Ditto.
5274
5275 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5276
5277 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
5278
5279 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5280
5281 PR target/47364
5282 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
5283
5284 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5285
5286 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
5287 before the core constraints. Adjust attributes.
5288 ("*thumb2_movdf_vfp"): Likewise.
5289
5290 2011-07-28 Kai Tietz <ktietz@redhat.com>
5291
5292 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
5293 (simplify_truth_ops_using_ranges): Likewise.
5294 (build_assert_expr_for): Likewise.
5295 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
5296 and handle BIT_NOT_EXPR for truth-operation.
5297
5298 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5299
5300 PR target/49313
5301 Undo r176835 from trunk
5302 2011-07-27 Georg-Johann Lay
5303
5304 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
5305
5306 PR target/49687
5307 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
5308 Add _muluhisi3, _mulshisi3, _usmulhisi3.
5309 * config/avr/libgcc.S (__mulsi3): Rewrite.
5310 (__mulhisi3): Rewrite.
5311 (__umulhisi3): Rewrite.
5312 (__usmulhisi3): New.
5313 (__muluhisi3): New.
5314 (__mulshisi3): New.
5315 (__mulohisi3): New.
5316 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
5317 declare.
5318 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
5319 (pseudo_register_or_const_int_operand): New.
5320 (combine_pseudo_register_operand): New.
5321 (u16_operand): New.
5322 (s16_operand): New.
5323 (o16_operand): New.
5324 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
5325 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
5326 (any_extend, any_extend2): New code iterators.
5327 (extend_prefix): New code attribute.
5328 (mulsi3): Rewrite. Turn insn to expander.
5329 (mulhisi3): Ditto.
5330 (umulhisi3): Ditto.
5331 (usmulhisi3): New expander.
5332 (*mulsi3): New insn-and-split.
5333 (mulu<mode>si3): New insn-and-split.
5334 (muls<mode>si3): New insn-and-split.
5335 (mulohisi3): New insn-and-split.
5336 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
5337 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
5338 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
5339 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
5340 insn-and-split.
5341 (*mulsi3_call): Rewrite.
5342 (*mulhisi3_call): Rewrite.
5343 (*umulhisi3_call): Rewrite.
5344 (*usmulhisi3_call): New insn.
5345 (*muluhisi3_call): New insn.
5346 (*mulshisi3_call): New insn.
5347 (*mulohisi3_call): New insn.
5348 (extendqihi2): Use combine_pseudo_register_operand as predicate
5349 for operand 1.
5350 (extendqisi2): Ditto.
5351 (zero_extendqihi2): Ditto.
5352 (zero_extendqisi2): Ditto.
5353 (zero_extendhisi2): Ditto.
5354 (extendhisi2): Ditto. Don't early-clobber operand 0.
5355
5356 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
5357
5358 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
5359
5360 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5361
5362 PR tree-optimization/49471
5363 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
5364 iv only when the largest type is unsigned. Do not call
5365 lang_hooks.types.type_for_size.
5366
5367 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5368
5369 PR middle-end/45450
5370 * graphite-poly.c (apply_poly_transforms): Disable legality check
5371 after an openscop read.
5372
5373 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
5374
5375 PR middle-end/47691
5376 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
5377 copy_bb_and_scalar_dependences.
5378 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
5379 (graphite_copy_stmts_from_block): Update call to rename_uses.
5380 (copy_bb_and_scalar_dependences): Update call to
5381 graphite_copy_stmts_from_block.
5382 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
5383
5384 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
5385
5386 PR target/49313
5387 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
5388 (__ctzsi2): Result for 0 may be undefined.
5389 (__ctzhi2): Result for 0 may be undefined.
5390 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
5391 (__popcountsi2): Ditto. And don't clobber r26.
5392 (__popcountdi2): Ditto. And don't clobber r27.
5393 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
5394 (parityhi2): New expand.
5395 (paritysi2): New expand.
5396 (popcounthi2): New expand.
5397 (popcountsi2): New expand.
5398 (clzhi2): New expand.
5399 (clzsi2): New expand.
5400 (ctzhi2): New expand.
5401 (ctzsi2): New expand.
5402 (ffshi2): New expand.
5403 (ffssi2): New expand.
5404 (copysignsf3): New insn.
5405 (bswapsi2): New expand.
5406 (*parityhi2.libgcc): New insn.
5407 (*parityqihi2.libgcc): New insn.
5408 (*paritysihi2.libgcc): New insn.
5409 (*popcounthi2.libgcc): New insn.
5410 (*popcountsi2.libgcc): New insn.
5411 (*popcountqi2.libgcc): New insn.
5412 (*popcountqihi2.libgcc): New insn-and-split.
5413 (*clzhi2.libgcc): New insn.
5414 (*clzsihi2.libgcc): New insn.
5415 (*ctzhi2.libgcc): New insn.
5416 (*ctzsihi2.libgcc): New insn.
5417 (*ffshi2.libgcc): New insn.
5418 (*ffssihi2.libgcc): New insn.
5419 (*bswapsi2.libgcc): New insn.
5420
5421 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5422
5423 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
5424 the mode of symbolic_opreand RTXes.
5425
5426 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
5427
5428 * config/i386/predicates.md (x86_64_movabs_operand): Return false
5429 for pic_32bit_operand RTXes.
5430 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
5431 in DImode.
5432
5433 2011-07-27 Kai Tietz <ktietz@redhat.com>
5434
5435 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
5436 for 32-bit, too.
5437 (ix86_handle_abi_attribute): Allow function attributes
5438 ms_abi/sysv_abi in 32-bit mode, too.
5439 * doc/extend.texi: Adjust attribute documentation.
5440
5441 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
5442 expression handling.
5443 (and_var_with_comparison_1): Likewise.
5444
5445 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
5446
5447 * params.h (ALLOW_STORE_DATA_RACES): New.
5448 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
5449 * Makefile.in (expr.o): Depend on PARAMS_H.
5450 * machmode.h (get_best_mode): Add argument.
5451 * fold-const.c (optimize_bit_field_compare): Add argument to
5452 get_best_mode.
5453 (fold_truthop): Same.
5454 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
5455 * expr.c (emit_group_store): Same.
5456 (copy_blkmode_from_reg): Same.
5457 (write_complex_part): Same.
5458 (optimize_bitfield_assignment_op): Add argument.
5459 Add argument to get_best_mode.
5460 (get_bit_range): New.
5461 (expand_assignment): Calculate maxbits and pass it down accordingly.
5462 (store_field): New argument.
5463 (expand_expr_real_2): New argument to store_field. Include params.h.
5464 * expr.h (store_bit_field): New argument.
5465 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
5466 into account maxbits.
5467 * calls.c (store_unaligned_arguments_into_pseudos): New argument
5468 to store_bit_field.
5469 * expmed.c (store_bit_field_1): New argument. Use it.
5470 (store_bit_field): Same.
5471 (store_fixed_bit_field): Same.
5472 (store_split_bit_field): Same.
5473 (extract_bit_field_1): Pass new argument to get_best_mode.
5474 (extract_bit_field): Same.
5475 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
5476 * doc/invoke.texi: Document parameter allow-store-data-races.
5477
5478 2011-07-27 Jakub Jelinek <jakub@redhat.com>
5479
5480 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
5481
5482 2011-07-27 Kai Tietz <ktietz@redhat.com>
5483
5484 * tree-vrp.c (extract_range_from_binary_expr): Remove
5485 TRUTH-binary cases and add new bitwise-cases.
5486 (extract_range_from_assignment): Likewise.
5487 (register_edge_assert_for_1): Likeiwise.
5488 (register_edge_assert_for): Likewise.
5489 (simplify_truth_ops_using_ranges): Likewise.
5490 (simplify_stmt_using_ranges): Likewise.
5491
5492 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
5493
5494 PR target/47372
5495 * config/i386/i386.c (ix86_delegitimize_address): Call
5496 simplify_gen_subreg for PIC with mode of x only if modes of
5497 x and orig_x are different.
5498
5499 2011-07-26 Jakub Jelinek <jakub@redhat.com>
5500
5501 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
5502 to GC allocated copy of the string.
5503 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
5504 before .debug_line, not after it.
5505
5506 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5507
5508 PR middle-end/47046
5509 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
5510 evolution_function_is_affine_p on CHREC_RIGHT.
5511
5512 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5513
5514 * tree-data-ref.c (max_stmt_executions_tree): Do not call
5515 lang_hooks.types.type_for_size.
5516
5517 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5518
5519 PR middle-end/47653
5520 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
5521 loops using wrapping semantics.
5522
5523 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
5524
5525 PR middle-end/48805
5526 * tree-scalar-evolution.c (instantiate_scev_r): Return
5527 chrec_dont_know for ADDR_EXPR.
5528
5529 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5530 H.J. Lu <hongjiu.lu@intel.com>
5531
5532 PR target/47369
5533 PR target/49853
5534 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
5535 if legitimize_tls_address returned operand in wrong mode. Allow
5536 SImode and DImode symbolic operand for PIC. Call convert_to_mode
5537 if legitimize_pic_address returned operand in wrong mode.
5538
5539 2011-07-26 Martin Jambor <mjambor@suse.cz>
5540
5541 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
5542 return false for invariants.
5543
5544 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5545
5546 * config/i386/i386.md (add->lea splitter): Implement using SWI
5547 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
5548 (add->lea zext splitter): Change operand 2 predicate to
5549 x86_64_nonmemory_operand.
5550
5551 2011-07-26 Richard Guenther <rguenther@suse.de>
5552
5553 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
5554 frequency makes everything hot.
5555
5556 2011-07-26 Richard Guenther <rguenther@suse.de>
5557
5558 PR tree-optimization/49840
5559 * tree-vrp.c (range_fits_type_p): Properly handle full
5560 double-int precision.
5561
5562 2011-07-26 Martin Jambor <mjambor@suse.cz>
5563
5564 PR bootstrap/49786
5565 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
5566 counts.
5567 (update_specialized_profile): Likewise.
5568
5569 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
5570 H.J. Lu <hongjiu.lu@intel.com>
5571
5572 PR target/47381
5573 PR target/49832
5574 PR target/49833
5575 * config/i386/i386.md (i): Change SImode attribute to "e".
5576 (g): Change SImode attribute to "rme".
5577 (di): Change SImode attribute to "nF".
5578 (general_operand): Change SImode attribute to x86_64_general_operand.
5579 (general_szext_operand): Change SImode attribute to
5580 x86_64_szext_general_operand.
5581 (immediate_operand): Change SImode attribute to
5582 x86_64_immediate_operand.
5583 (nonmemory_operand): Change SImode attribute to
5584 x86_64_nonmemory_operand.
5585 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
5586 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
5587 (*lea_1): Use SWI48 mode iterator.
5588 (*lea_1_zext): New insn pattern.
5589 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
5590 (*bt<mode>): Ditto.
5591 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
5592 Update operand constraints.
5593 (addsi_1_zext): Ditto.
5594 (*add<mode>2): Ditto.
5595 (*addsi_3_zext): Ditto.
5596 (*subsi_1_zext): Ditto.
5597 (*subsi_2_zext): Ditto.
5598 (*subsi_3_zext): Ditto.
5599 (*addsi3_carry_zext): Ditto.
5600 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
5601 (*mulsi3_1_zext): Ditto.
5602 (*andsi_1): Ditto.
5603 (*andsi_1_zext): Ditto.
5604 (*andsi_2_zext): Ditto.
5605 (*<any_or:code>si_1_zext): Ditto.
5606 (*<any_or:code>si_2_zext): Ditto.
5607 (*test<mode>_1): Use <general_operand> predicate for operand 1.
5608 (*and<mode>_2): Ditto.
5609 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
5610 (add->lea splitter): Check operand modes in insn constraint. Extend
5611 operands less than SImode wide to SImode.
5612 (add->lea zext splitter): Do not extend input operands to DImode.
5613 (*lea_general_1): Handle only QImode and HImode operands.
5614 (*lea_general_2): Ditto.
5615 (*lea_general_3): Ditto.
5616 (*lea_general_1_zext): Remove.
5617 (*lea_general_2_zext): Ditto.
5618 (*lea_general_3_zext): Ditto.
5619 (*lea_general_4): Check operand modes in insn constraint. Extend
5620 operands less than SImode wide to SImode.
5621 (ashift->lea splitter): Ditto.
5622 * config/i386/i386.c (ix86_print_operand_address): Print address
5623 registers with 'q' modifier on 64bit targets.
5624 * config/i386/predicates.md (pic_32bit_opreand): Define as special
5625 predicate. Reject non-SI and non-DI modes.
5626
5627 2011-07-25 Andrew Pinski <apinski@cavium.com>
5628
5629 PR tree-opt/49671
5630 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
5631 TREE_THIS_NOTRAP into the inner most MEM_REF.
5632 Always copy TREE_THIS_VOLATILE.
5633 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
5634 arguments are not volatile references.
5635
5636 2011-07-25 Richard Henderson <rth@redhat.com>
5637
5638 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
5639 * final.c (final_scan_insn): Don't test for it.
5640 (rest_of_clean_state): Likewise.
5641
5642 2011-07-25 Richard Henderson <rth@redhat.com>
5643
5644 PR debug/49841
5645 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
5646 (emit_frame_save): Likewise.
5647 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
5648 insn onto a dummy blockage insn after the join label.
5649
5650 2011-07-25 Richard Henderson <rth@redhat.com>
5651
5652 * dwarf2cfi.c (dw_trace_info): Add ID member.
5653 (get_trace_index): Remove. Change users to use ID member.
5654 (before_next_cfi_note): New.
5655 (connect_traces): Remove unreachable traces before the main loop.
5656 Look across one trace and generate remember/restore_state if needed.
5657
5658 2011-07-25 Richard Henderson <rth@redhat.com>
5659
5660 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
5661
5662 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
5663
5664 * genattr.c (write_upcase, gen_attr <enum definition writing>):
5665 Move to ...
5666 * genattr-common.c ... here.
5667 (main): Call gen_attr.
5668 * optc-gen.awk: Make generated program include insn-attr-common.h .
5669 * Makefile.in (oprions.o): Depend on insn-attr-common.h
5670
5671 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5672
5673 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5674 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5675 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
5676 m32c_print_operand, m32c_print_operand_address): Remove.
5677 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
5678 Change return type to bool. Change argument type to bool.
5679 (m32c_print_operand, m32c_print_operand_address): Make static.
5680 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5681 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5682
5683 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5684
5685 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
5686 attributes): Document mmap.
5687
5688 2011-07-25 Anatoly Sokolov <aesok@post.ru>
5689
5690 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5691 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
5692 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
5693 mmix_print_operand, mmix_print_operand_address): Remove.
5694 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
5695 Change return type to bool. Change argument type to bool.
5696 (mmix_print_operand, mmix_print_operand_address): Make static.
5697 (mmix_intval, mmix_output_condition): Change 'x' argument type
5698 to const_rtx.
5699 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
5700 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5701
5702 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
5703
5704 PR target/39386
5705 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
5706 shift counter for x << x and x >> x shifts.
5707
5708 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5709
5710 PR target/47124
5711 * config.gcc: Reject *-*-solaris2 configuration.
5712
5713 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
5714
5715 PR tree-optimization/49809
5716 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
5717 gimple_get_lhs instead of gimple_assign_lhs.
5718
5719 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5720
5721 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
5722
5723 2011-07-25 Richard Guenther <rguenther@suse.de>
5724
5725 PR tree-optimization/49822
5726 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
5727 more. Make sure to preserve stmts with side-effects. Properly
5728 handle virtual defs, follow a longer def chain.
5729
5730 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
5731
5732 PR plugins/45348
5733 PR plugins/48425
5734 PR plugins/46577
5735 * Makefile.in: Do not flatten c-family directory when installing
5736 plugin headers.
5737
5738 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
5739
5740 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
5741 original nodes if we are dealing with virtual clones.
5742
5743 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
5744
5745 * common/config/c6x/c6x-common.c: New file.
5746
5747 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
5748
5749 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
5750
5751 2011-07-25 Richard Guenther <rguenther@suse.de>
5752
5753 PR tree-optimization/49715
5754 * tree-vrp.c: Include expr.h and optabs.h.
5755 (range_fits_type_): New function.
5756 (simplify_float_conversion_using_ranges): Likewise.
5757 (simplify_stmt_using_ranges): Call it.
5758 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
5759 * optabs.c (can_float_p): Export.
5760 * optabs.h (can_float_p): Declare.
5761
5762 2011-07-25 Richard Guenther <rguenther@suse.de>
5763
5764 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
5765 (get_value_range): For out-of-range SSA names or names created
5766 after propagation return a read-only varying range.
5767 (dump_all_value_ranges): Adjust.
5768 (vrp_initialize): Likewise.
5769 (vrp_finalize): Likewise.
5770
5771 2011-07-24 Richard Henderson <rth@redhat.com>
5772
5773 PR debug/49831
5774 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
5775 them entirely.
5776
5777 2011-07-24 Richard Henderson <rth@redhat.com>
5778
5779 PR debug/49825
5780 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
5781 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
5782
5783 2011-07-24 Richard Henderson <rth@redhat.com>
5784
5785 PR debug/49827
5786 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
5787
5788 2011-07-24 Richard Henderson <rth@redhat.com>
5789
5790 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
5791 Zero args_size for abnormal edges. Adjust all callers.
5792
5793 2011-07-24 Richard Henderson <rth@redhat.com>
5794
5795 PR debug/49825
5796 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
5797
5798 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
5799
5800 PR bootstrap/49835
5801 * collect2.c (demangle_flag): Removed.
5802
5803 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
5804
5805 * configure.ac (demangler_in_ld): Default to yes.
5806 * configure: Regenerated.
5807 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
5808 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
5809 --no-demangle options straight through to ld. When
5810 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
5811 way that has the intended effect on Windows.
5812
5813 2011-07-23 Richard Henderson <rth@redhat.com>
5814
5815 * dwarf2cfi.c: Include basic-block.h.
5816 (dw_label_info): Remove.
5817 (trace_work_list, trace_index): New.
5818 (remember_row, emit_cfa_remember): Remove.
5819 (dw_trace_info_hash, dw_trace_info_eq): New.
5820 (get_trace_index, get_trace_info): New.
5821 (save_point_p): New.
5822 (free_cfi_row): Remove.
5823 (add_cfi): Do not emit DW_CFA_remember_state.
5824 (cfa_row_equal_p): New.
5825 (barrier_args_size): Remove.
5826 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
5827 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
5828 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
5829 (dwarf2out_cfi_begin_epilogue): Remove.
5830 (dwarf2out_frame_debug_restore_state): Remove.
5831 (connect_traces, create_pseudo_cfg): New.
5832 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
5833 * Makefile.in (dwarf2cfi.o): Update.
5834
5835 2011-07-23 Richard Henderson <rth@redhat.com>
5836
5837 * dwarf2cfi.c (dw_trace_info): New.
5838 (dw_label_info): New.
5839 (cie_return_save): New.
5840 (cur_trace): New.
5841 (queued_args_size): Rename from args_size. Update all users.
5842 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
5843 (def_cfa_1): Use cur_trace instead of cfa_*.
5844 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
5845 (clobbers_queued_reg_save, reg_saved_in): Likewise.
5846 (dwarf2out_frame_debug_expr): Likewise.
5847 (create_cie_data): Split out from ...
5848 (execute_dwarf2_frame): ... here. Initialize cur_trace.
5849
5850 2011-07-23 Richard Henderson <rth@redhat.com>
5851
5852 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
5853 Update all users to match.
5854 (execute_dwarf2_frame): Free reg_saved_in_data.
5855
5856 2011-07-23 Richard Henderson <rth@redhat.com>
5857
5858 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
5859 (queued_reg_saves): Don't GTY. Change to a VEC.
5860 (queue_reg_save): Update to match.
5861 (dwarf2out_flush_queued_reg_saves): Likewise.
5862 (clobbers_queued_reg_save): Likewise.
5863 (reg_saved_in): Likewise.
5864 (execute_dwarf2_frame): Free queued_reg_saves.
5865
5866 2011-07-23 Richard Henderson <rth@redhat.com>
5867
5868 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
5869
5870 2011-07-23 Richard Henderson <rth@redhat.com>
5871
5872 * dwarf2cfi.c (add_cfi_args_size): Split out from...
5873 (dwarf2out_args_size): ... here.
5874 (add_cfi_restore): Split out from ...
5875 (dwarf2out_frame_debug_cfa_restore): ... here.
5876 (def_cfa_0): Split out from ...
5877 (def_cfa_1): ... here.
5878 (cfi_oprnd_equal_p, cfi_equal_p): New.
5879 (change_cfi_row): New.
5880 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
5881 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
5882 (output_cfis): Remove.
5883 * dwarf2out.c (output_fde): Simplify output_cfi loop.
5884 (dwarf2out_switch_text_section): Don't call output_cfis.
5885 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
5886 * dwarf2out.h: Update decls.
5887 (enum dw_val_class): Add dw_val_class_none.
5888
5889 2011-07-23 Richard Henderson <rth@redhat.com>
5890
5891 * dwarf2cfi.c (update_row_reg_save): New.
5892 (dwarf2out_frame_debug_cfa_expression): Use it.
5893 (dwarf2out_frame_debug_cfa_restore): Likewise.
5894 (reg_save): Likewise. Do not emit DW_CFA_same_value.
5895
5896 2011-07-23 Richard Henderson <rth@redhat.com>
5897
5898 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
5899
5900 2011-07-23 Richard Henderson <rth@redhat.com>
5901
5902 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
5903 (cie_cfi_row): New.
5904 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
5905 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
5906 (cur_row, remember_row): New.
5907 (def_cfa_1): Use cur_row instead of the old_* variables.
5908 (dwarf2out_frame_debug_restore_state): Similarly.
5909 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
5910 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
5911 (dwarf2out_frame_debug_adjust_cfa): Likewise.
5912 (dwarf2out_frame_debug_cfa_offset): Likewise.
5913 (dwarf2out_frame_debug_expr): Likewise.
5914 (execute_dwarf2_frame): Set up cur_row.
5915 * dwarf2out.h (struct cfa_loc): Mark for GTY.
5916
5917 2011-07-23 Richard Henderson <rth@redhat.com>
5918
5919 * basic-block.h (EDGE_PRESERVE): New.
5920 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
5921 * bb-reorder.c: Include except.h.
5922 (fix_up_crossing_landing_pad): New.
5923 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
5924 landing pads in the right partition. Duplicate as necessary.
5925 (partition_hot_cold_basic_blocks): Fix up DF info after
5926 duplicating landing pads.
5927 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
5928 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
5929 is set properly. Validate that EH edges are not CROSSING.
5930 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
5931 (dw2_build_landing_pads): ... here.
5932 (convert_to_eh_region_ranges): Remove code to fixup crossing
5933 landing pads.
5934 * except.h (expand_dw2_landing_pad_for_region): Declare.
5935 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
5936
5937 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
5938
5939 PR target/49816
5940 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
5941
5942 2011-07-22 Jason Merrill <jason@redhat.com>
5943
5944 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
5945
5946 2011-07-22 Richard Henderson <rth@redhat.com>
5947
5948 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
5949
5950 2011-07-22 Richard Henderson <rth@redhat.com>
5951
5952 * jump.c (maybe_propagate_label_ref): Split out of...
5953 (mark_all_labels): ... here. Do not attempt label_ref
5954 propagation while in cfglayout mode.
5955
5956 2011-07-22 Jakub Jelinek <jakub@redhat.com>
5957
5958 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
5959 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
5960 (dwarf_attr_name): Handle DW_AT_GNU_macros.
5961 (dwarf2out_define): If the vector is empty and
5962 lineno is 0, emit a dummy entry first.
5963 (dwarf2out_undef): Likewise. Remove redundant semicolon.
5964 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
5965 optimize_macinfo_range): New functions.
5966 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
5967 mergeable, optimize longer strings using
5968 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
5969 optimize longer sequences of define/undef ops from headers
5970 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
5971 emit a section headers.
5972 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
5973 and macinfo_section_label to DEBUG_MACRO_SECTION
5974 resp. DEBUG_MACRO_SECTION_LABEL.
5975 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
5976 instead of DW_AT_macro_info.
5977
5978 PR other/32998
5979 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
5980 options.
5981 * dwarf2out.c: Include opts.h.
5982 (dchar_p): New typedef. Define heap VEC for it.
5983 (producer_string): New variable.
5984 (gen_producer_string): New function.
5985 (gen_compile_unit_die): Use it.
5986 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
5987 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
5988 * doc/invoke.texi: Document -grecord-gcc-switches and
5989 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
5990 to -frecord-gcc-switches description.
5991
5992 2011-07-22 Jason Merrill <jason@redhat.com>
5993
5994 PR c++/30112
5995 * c-decl.c (c_linkage_bindings): Define.
5996
5997 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
5998
5999 PR debug/49815
6000 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
6001
6002 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
6003
6004 * config/i386/i386.c (ix86_option_override_internal): Disallow
6005 MS ABI in x32 mode.
6006 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
6007 only for TARGET_LP64.
6008 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
6009
6010 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
6011
6012 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
6013 avoid warnings when GCC is built with a C++ compiler.
6014
6015 2011-07-22 Martin Jambor <mjambor@suse.cz>
6016
6017 PR lto/49796
6018 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
6019 if decl node is in another partition, call cgraph_get_node only once.
6020
6021 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
6022
6023 * config.gcc (x86_64-*-linux*): Set
6024 default_gnu_indirect_function to yes.
6025
6026 2011-07-22 Richard Guenther <rguenther@suse.de>
6027
6028 PR tree-optimization/45819
6029 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
6030 preserve volatile and notrap flags.
6031
6032 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6033 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6034
6035 PR bootstrap/49794
6036 * configure.ac: Test AM_ICONV with CXX.
6037 * configure: Regenerate.
6038 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
6039
6040 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6041
6042 PR bootstrap/49797
6043 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
6044 (set_cloog_options): Use it.
6045
6046 2011-07-22 Jakub Jelinek <jakub@redhat.com>
6047
6048 PR c++/49756
6049 * gcc.c (main): Call stack_limit_increase (64MB).
6050 * toplev.c (toplev_main): Likewise.
6051
6052 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6053
6054 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
6055 instead of force_reg.
6056
6057 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6058
6059 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
6060 needed and use force_reg after convert.
6061 (ix86_expand_call): Likewise.
6062 (ix86_expand_special_args_builtin): Likewise.
6063 (ix86_expand_builtin): Likewise.
6064
6065 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6066
6067 PR middle-end/47654
6068 PR middle-end/49649
6069 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
6070 in parameter. Initialize v1 and v2 based on the values returned
6071 by clast_name_to_lb_ub.
6072 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
6073 values.
6074 (type_for_clast_bin): Same.
6075 (type_for_clast_expr): Same.
6076 (type_for_clast_eq): Update calls to type_for_clast_expr.
6077 (type_for_clast_for): Same.
6078 (build_iv_mapping): Same.
6079 * graphite-ppl.h (value_min): New.
6080
6081 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6082
6083 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
6084 types whenever possible.
6085
6086 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6087
6088 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
6089 and ub fields.
6090 (new_clast_name_index): Add lb and ub parameters.
6091 (free_clast_name_index): New.
6092 (clast_name_to_lb_ub): New.
6093 (save_clast_name_index): Add lb and ub parameters.
6094 (compute_bounds_for_param): New.
6095 (type_for_level): Removed.
6096 (type_for_clast_for): Removed level parameter. Do not call
6097 type_for_level.
6098 (graphite_create_new_loop): Store the lb and ub for the clast_name
6099 of the iterator of the loop that has been generated.
6100 (graphite_create_new_loop_guard): Remove parameter level.
6101 (create_params_index): Store the lb and ub of each parameter.
6102 (gloog): Use free_clast_name_index. Pass to create_params_index
6103 the current scop.
6104
6105 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6106
6107 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
6108 (max_precision_type): Inline max_signed_precision_type.
6109 (type_for_clast_red): Use max_precision_type.
6110 (type_for_clast_bin): Same.
6111 (type_for_clast_for): Same.
6112
6113 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6114
6115 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
6116 type_for_interval.
6117 (gcc_type_for_value): Renamed type_for_value.
6118 (gcc_type_for_clast_term): Renamed type_for_clast_term.
6119 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
6120 (gcc_type_for_clast_red): Renamed type_for_clast_red.
6121 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
6122 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
6123 (graphite_translate_clast_equation): Update calls.
6124 (compute_type_for_level): Renamed type_for_level.
6125 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
6126 (build_iv_mapping): Update calls.
6127 (graphite_create_new_loop_guard): Same.
6128
6129 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6130
6131 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
6132 comment.
6133
6134 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6135
6136 * graphite-clast-to-gimple.c (struct ivs_params): New.
6137 (clast_name_to_gcc): Use ivs_params to pass around parameters.
6138 (clast_to_gcc_expression): Same.
6139 (clast_to_gcc_expression_red): Same.
6140 (gcc_type_for_clast_term): Same.
6141 (gcc_type_for_clast_expr): Same.
6142 (gcc_type_for_clast_red): Same.
6143 (gcc_type_for_clast_bin): Same.
6144 (gcc_type_for_clast_eq): Same.
6145 (graphite_translate_clast_equation): Same.
6146 (graphite_create_guard_cond_expr): Same.
6147 (graphite_create_new_guard): Same.
6148 (graphite_create_new_loop): Same.
6149 (build_iv_mapping): Same.
6150 (translate_clast_user): Same.
6151 (graphite_create_new_loop_guard): Same.
6152 (translate_clast): Same.
6153 (translate_clast_for_loop): Same.
6154 (translate_clast_for): Same.
6155 (translate_clast_guard): Same.
6156 (initialize_cloog_names): Fix typo.
6157 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
6158
6159 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6160
6161 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
6162 (new_clast_name_index): Add level parameter.
6163 (clast_name_to_level): New.
6164 (save_clast_name_index): Add level parameter.
6165 (newivs_to_depth_to_newiv): Removed.
6166 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
6167 (graphite_create_new_loop): Add level parameter. Pass level to
6168 save_clast_name_index.
6169 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
6170 (create_params_index): Pass level to save_clast_name_index.
6171
6172 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6173
6174 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
6175 recompute type, lb, and ub. Get them from...
6176 (graphite_create_new_loop_guard): ...here. Pass in parameter
6177 pointers to type, lb, and ub.
6178 (translate_clast_for_loop): Update function calls.
6179 (translate_clast_for): Same.
6180
6181 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
6182
6183 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
6184 psct_dynamic_dim.
6185 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
6186 (gcc_type_for_iv_of_clast_loop): Update use of level.
6187 (gloog): Start counting nesting level from 0.
6188 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
6189 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
6190 psct_dynamic_dim on level.
6191
6192 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6193
6194 * config/i386/i386.c (ix86_legitimize_address): Convert to
6195 Pmode if needed.
6196
6197 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
6198
6199 * config/i386/i386.c (function_value_64): Always return pointers
6200 in Pmode.
6201 (ix86_promote_function_mode): New.
6202 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
6203
6204 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6205
6206 PR tree-optimization/49749
6207 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
6208 remove no-longer-used maxrank variable.
6209
6210 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6211
6212 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
6213
6214 2011-07-21 Jason Merrill <jason@redhat.com>
6215
6216 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
6217 * recog.h (struct insn_data_d): Check it instead of
6218 HAVE_DESIGNATED_INITIALIZERS.
6219 * genoutput.c (output_insn_data): Likewise.
6220
6221 2011-07-21 Richard Guenther <rguenther@suse.de>
6222
6223 PR tree-optimization/49770
6224 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
6225 valueized any operand. Renamed from ...
6226 (valueize_refs): ... this. New wrapper around valueize_refs_1.
6227 (valueize_shared_reference_ops_from_ref): Return whether we
6228 valueized any operand.
6229 (vn_reference_lookup): Only when we valueized any operand
6230 use the valueized reference for alias analysis. Do not preserve
6231 the original reference tree in this case.
6232
6233 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
6234
6235 * config/i386/i386.c (ix86_decompose_address): Reject all but
6236 register operands and subregs of DImode hard registers in index.
6237
6238 2011-07-21 Kai Tietz <ktietz@redhat.com>
6239
6240 * fold-const.c (fold_unary_loc): Preserve indirect
6241 comparison cast to none-boolean type.
6242 * tree-ssa.c (useless_type_conversion_p): Preserve cast
6243 from/to boolean-type.
6244 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
6245 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
6246 * tree-cfg.c (verify_gimple_comparison): Check result
6247 type of comparison expression.
6248 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
6249 of condition result and disallow type-cast sinking into comparison.
6250
6251 2011-07-21 Richard Guenther <rguenther@suse.de>
6252
6253 * tree-ssa-forwprop.c (combine_conversions): Return whether
6254 we have to run cfg-cleanup. Properly remove dead stmts.
6255 (ssa_forward_propagate_and_combine): Adjust.
6256
6257 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
6258
6259 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
6260
6261 2011-07-21 Kai Tietz <ktietz@redhat.com>
6262
6263 * tree-ssa-propagate.c (substitute_and_fold): Use
6264 do_dce flag to deside, if BB's statements are scanned
6265 in last to first, or first to last order.
6266
6267 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
6268
6269 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
6270
6271 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
6272 Uros Bizjak <ubizjak@gmail.com>
6273 Richard Henderson <rth@redhat.com>
6274
6275 * config/i386/constraints.md (w): New.
6276
6277 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
6278 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
6279
6280 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
6281 instead of TARGET_64BIT.
6282
6283 * config/i386/i386.md (indirect_jump): Replace
6284 nonimmediate_operand with indirect_branch_operand.
6285 (*indirect_jump): Likewise. Replace constraint "m" with "w".
6286 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
6287 Convert operand 0 to Pmode for x32 if not PIC.
6288 (*tablejump_1): Replace nonimmediate_operand with
6289 indirect_branch_operand. Replace constraint "m" with "w".
6290 (*call_vzeroupper): Replace constraint "m" with "w".
6291 (*call): Likewise.
6292 (*call_rex64_ms_sysv_vzeroupper): Likewise.
6293 (*call_rex64_ms_sysv): Likewise.
6294 (*call_value_vzeroupper): Likewise.
6295 (*call_value): Likewise.
6296 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
6297 (*call_value_rex64_ms_sysv): Likewise.
6298 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6299
6300 * config/i386/predicates.md (indirect_branch_operand): New.
6301 (call_insn_operand): Support x32.
6302
6303 2011-07-20 Michael Eager <eager@eagercon.com>
6304
6305 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
6306
6307 2011-07-20 Richard Henderson <rth@redhat.com>
6308
6309 * cfg.c (dump_bb_info): Dump basic_block->flags.
6310 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
6311
6312 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6313
6314 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6315 of DImode hard registers in index.
6316 (ix86_legitimate_address_p): Allow subregs of base and index to span
6317 more than a word. Assert that subregs of base and index satisfy
6318 register_no_elim_operand predicates. Reject addresses where
6319 base and index have different modes.
6320
6321 2011-07-20 Robert Millan <rmh@gnu.org>
6322
6323 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
6324
6325 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6326
6327 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
6328 removing now-unnecessary assignment.
6329
6330 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6331
6332 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
6333 memory address space to the type's address space.
6334
6335 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6336
6337 PR target/36467
6338 PR target/49687
6339 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
6340 and expand appropriately if there is a CONST_INT in operand2.
6341 (usmulqihi3): New insn.
6342 (*sumulqihi3): New insn.
6343 (*osmulqihi3): New insn.
6344 (*oumulqihi3): New insn.
6345 (*muluqihi3.uconst): New insn_and_split.
6346 (*muluqihi3.sconst): New insn_and_split.
6347 (*mulsqihi3.sconst): New insn_and_split.
6348 (*mulsqihi3.uconst): New insn_and_split.
6349 (*mulsqihi3.oconst): New insn_and_split.
6350 (*ashifthi3.signx.const): New insn_and_split.
6351 (*ashifthi3.signx.const7): New insn_and_split.
6352 (*ashifthi3.zerox.const): New insn_and_split.
6353 (mulsqihi3): New insn.
6354 (muluqihi3): New insn.
6355 (muloqihi3): New insn.
6356 * config/avr/predicates.md (const_2_to_7_operand): New.
6357 (const_2_to_6_operand): New.
6358 (u8_operand): New.
6359 (s8_operand): New.
6360 (o8_operand): New.
6361 (s9_operand): New.
6362 (register_or_s9_operand): New.
6363
6364 2011-07-20 Kai Tietz <ktietz@redhat.com>
6365
6366 * builtins.c (fold_builtin_expect): See through the cast
6367 from truthvalue_type_node to long.
6368
6369 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
6370
6371 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
6372 where we can use them from the standard and altivec instruction
6373 sets, instead of always using the 3 operand VSX forms that require
6374 the destination to overlap one of the inputs.
6375 (vsx_fms*): Ditto.
6376 (vsx_fnma*): Ditto.
6377 (vsx_fnms*): Ditto.
6378
6379 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
6380 for DF types.
6381 (fmsdf4_fpr): Ditto.
6382 (nfmadf4_fpr): Ditto.
6383 (nfmsdf4_fpr): Ditto.
6384
6385 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
6386
6387 * genrecog.c (make_insn_sequence): Correct position numbering
6388 when filtering out match_scratch and match_dup.
6389
6390 2011-07-20 Richard Guenther <rguenther@suse.de>
6391
6392 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
6393 against already removed statements.
6394 (forward_propagate_into_comparison): Remove dead defining stmts.
6395 (forward_propagate_into_gimple_cond): Likewise.
6396 (forward_propagate_into_cond): Simplify.
6397 (ssa_forward_propagate_and_combine): Handle changed cfg from
6398 forward_propagate_into_comparison.
6399 * tree-ssa-phiopt.c (conditional_replacement): Use proper
6400 locations for newly built statements.
6401
6402 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
6403
6404 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
6405
6406 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6407
6408 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
6409 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
6410
6411 2011-07-20 Richard Guenther <rguenther@suse.de>
6412
6413 PR middle-end/18908
6414 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
6415 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
6416 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
6417
6418 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
6419
6420 * config/frv/frv.c (frv_register_move_cost): Define explicitly
6421 costs for subclasses of GR_REGS.
6422
6423 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
6424
6425 PR target/49780
6426 * config/i386/predicates.md (no_seg_addres_operand): No more special.
6427 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6428 of DImode hard registers in base.
6429 (ix86_legitimate_address_p): Allow SImode and DImode base and index
6430 registers.
6431
6432 2011-07-20 Richard Guenther <rguenther@suse.de>
6433
6434 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
6435 (unify_nodes): Deal with that.
6436 (solve_graph): Likewise.
6437
6438 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
6439
6440 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
6441 canonicalize left operand from ZERO_EXTEND to AND.
6442
6443 2011-07-20 Anatoly Sokolov <aesok@post.ru>
6444
6445 * target.def (class_max_nregs): New hook.
6446 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
6447 * doc/tm.texi: Regenerate.
6448 * targhooks.c (default_class_max_nregs): New function.
6449 * targhooks.h (default_class_max_nregs): Declare.
6450 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
6451 x_ira_reg_class_min_nregs arrays to unsigned char.
6452 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
6453 hook instead of CLASS_MAX_NREGS macro.
6454 * reginfo.c (restore_register_info): Ditto.
6455 * ira-conflicts.c (process_regs_for_copy): Use
6456 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6457 Change type rclass and aclass vars to reg_class_t.
6458 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
6459 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
6460 reg_class_t.
6461 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
6462 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
6463
6464 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
6465 * config/i386/i386.c (ix86_class_max_nregs): New function.
6466 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
6467 instead of CLASS_MAX_NREGS macro.
6468 (TARGET_CLASS_MAX_NREGS): Define.
6469 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
6470 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
6471 * config/avr/avr.c (class_max_nregs): Remove function.
6472 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
6473 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
6474 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
6475 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
6476 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
6477 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
6478 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
6479 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
6480 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
6481 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
6482 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
6483 * config/score/score.h (CLASS_MAX_NREGS): Remove.
6484 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
6485 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
6486 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
6487
6488 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
6489
6490 * cif-code.def (OVERWRITABLE): Fix typo and move around.
6491 (TARGET_OPTIMIZATION_MISMATCH): Delete.
6492 (EH_PERSONALITY): Fix typo.
6493 (NON_CALL_EXCEPTIONS): Fix message.
6494 (OPTIMIZATION_MISMATCH): Adjust message.
6495 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
6496
6497 2011-07-19 Ian Lance Taylor <iant@google.com>
6498
6499 * doc/install.texi (Configuration): Document
6500 --enable-build-poststage1-with-cxx.
6501
6502 2011-07-19 Robert Millan <rmh@gnu.org>
6503
6504 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
6505 (GLIBC_DYNAMIC_LINKER): Remove.
6506
6507 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
6508 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6509 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6510 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
6511 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
6512 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
6513
6514 * config/mips/linux.h: Remove everything except for ...
6515 (GLIBC_DYNAMIC_LINKER): ... this macro.
6516
6517 * config/mips/linux64.h: Remove everything except for ...
6518 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
6519 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
6520 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
6521 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
6522 (GNU_USER_LINK_EMULATIONN32): New macros.
6523
6524 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
6525 Use the new headers.
6526
6527 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6528
6529 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
6530 Add offset_known_p and size_known_p fields.
6531 (MEM_OFFSET_KNOWN_P): Update accordingly.
6532 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
6533 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
6534 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
6535 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
6536 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
6537 (init_emit_regs): Likewise.
6538
6539 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6540
6541 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
6542 (MEM_OFFSET): Change from returning an rtx to returning a
6543 HOST_WIDE_INT.
6544 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
6545 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
6546 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6547 (clear_mem_offset): Declare.
6548 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
6549 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
6550 MEM_OFFSET to get a HOST_WIDE_INT offset.
6551 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
6552 (adjust_offset_for_component_ref): Take a bool "known_p"
6553 parameter and a HOST_WIDE_INT "offset" parameter.
6554 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
6555 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
6556 than an rtx. Use clear_mem_offset to clear the offset.
6557 * cfgcleanup.c (merge_memattrs): Likewise.
6558 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
6559 * function.c (assign_parm_find_stack_rtl): Likewise.
6560 (assign_parm_setup_stack): Likewise.
6561 * print-rtl.c (print_rtx): Likewise.
6562 * reload.c (find_reloads_subreg_address): Likewise.
6563 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
6564 * var-tracking.c (INT_MEM_OFFSET): Likewise.
6565 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
6566 (get_mem_align_offset): Likewise.
6567 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
6568 (clear_mem_offset): New function.
6569 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
6570 offset rather than an rtx. Assume both the expressio and offset
6571 are available.
6572 (r10k_needs_protection_p_1): Update accordingly, checking the
6573 expression and offset availability here instead.
6574
6575 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6576
6577 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
6578 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
6579 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
6580 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
6581 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6582 (clear_mem_size): Declare.
6583 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
6584 (clear_mem_size): New function.
6585 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
6586 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
6587 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
6588 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
6589 to clear the size.
6590 (nonoverlapping_memrefs_p): Likewise.
6591 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
6592 (expand_builtin_init_trampoline): Likewise.
6593 * calls.c (compute_argument_addresses): Likewise.
6594 * cfgcleanup.c (merge_memattrs): Likewise.
6595 * dce.c (find_call_stack_args): Likewise.
6596 * dse.c (record_store, scan_insn): Likewise.
6597 * dwarf2out.c (dw_sra_loc_expr): Likewise.
6598 * expr.c (emit_block_move_hints): Likewise.
6599 * function.c (assign_parm_find_stack_rtl): Likewise.
6600 * print-rtl.c (print_rtx): Likewise.
6601 * reload.c (find_reloads_subreg_address): Likewise.
6602 * rtlanal.c (may_trap_p_1): Likewise.
6603 * var-tracking.c (track_expr_p): Likewise.
6604 * varasm.c (assemble_trampoline_template): Likewise.
6605 * config/arm/arm.c (arm_print_operand): Likewise.
6606 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
6607 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
6608 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
6609 (expand_constant_setmem_prologue): Likewise.
6610 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
6611 * config/rs6000/rs6000.c (expand_block_move): Likewise.
6612 (adjacent_mem_locations): Likewise.
6613 * config/s390/s390.c (s390_expand_setmem): Likewise.
6614 (s390_expand_insv): Likewise.
6615 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
6616 (*extendqi<mode>2_short_displ): Likewise.
6617 * config/sh/sh.c (expand_block_move): Likewise.
6618 * config/sh/sh.md (extv, extzv): Likewise.
6619
6620 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6621
6622 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
6623 (mem_attrs_htab_eq): ...here.
6624 (find_mem_attrs): Replace with...
6625 (set_mem_attrs): ...this function. Take a mem_attrs structure
6626 rather than individual fields.
6627 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6628 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6629 (set_mem_size, change_address, adjust_address_1, offset_address)
6630 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6631 Update accordingly.
6632
6633 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
6634
6635 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
6636 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
6637 Provide a dummy definition of MEM_ADDR_SPACE for generators.
6638 (target_rtl): Add x_mode_mem_attrs.
6639 (mode_mem_attrs): New macro.
6640 (get_mem_attrs): New function.
6641 * emit-rtl.c (get_mem_attrs): Rename to...
6642 (find_mem_attrs): ...this.
6643 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
6644 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
6645 (set_mem_size, change_address, adjust_address_1, offset_address)
6646 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
6647 Update accordingly.
6648 (init_emit_regs): Initialize mode_mem_attrs.
6649
6650 2011-07-19 Richard Guenther <rguenther@suse.de>
6651
6652 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
6653 TRUTH_*_EXPR handling.
6654 * tree-ssa-operands.c (get_expr_operands): Likewise.
6655 * tree-ssa-pre.c (fully_constant_expression): Likewise.
6656 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
6657 Likewise.
6658 (is_and_or_or): Likewise.
6659 (is_norm_cond_subset_of): Likewise.
6660
6661 2011-07-19 Richard Guenther <rguenther@suse.de>
6662
6663 * tree.h (fold_build_pointer_plus_loc): New helper function.
6664 (fold_build_pointer_plus_hwi_loc): Likewise.
6665 (fold_build_pointer_plus): Define.
6666 (fold_build_pointer_plus_hwi): Likewise.
6667 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
6668 (fold_builtin_memory_op): Likewise.
6669 (fold_builtin_stpcpy): Likewise.
6670 (fold_builtin_memchr): Likewise.
6671 (fold_builtin_strstr): Likewise.
6672 (fold_builtin_strchr): Likewise.
6673 (fold_builtin_strrchr): Likewise.
6674 (fold_builtin_strpbrk): Likewise.
6675 (fold_builtin_strcat): Likewise.
6676 (expand_builtin_memory_chk): Likewise.
6677 (fold_builtin_memory_chk): Likewise.
6678 * c-typeck.c (build_unary_op): Likewise.
6679 * cgraphunit.c (thunk_adjust): Likewise.
6680 * fold-const.c (build_range_check): Likewise.
6681 (fold_binary_loc): Likewise.
6682 * omp-low.c (extract_omp_for_data): Likewise.
6683 (expand_omp_for_generic): Likewise.
6684 (expand_omp_for_static_nochunk): Likewise.
6685 (expand_omp_for_static_chunk): Likewise.
6686 * tree-affine.c (add_elt_to_tree): Likewise.
6687 * tree-data-ref.c (split_constant_offset_1): Likewise.
6688 * tree-loop-distribution.c (generate_memset_zero): Likewise.
6689 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
6690 * tree-predcom.c (ref_at_iteration): Likewise.
6691 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
6692 (add_to_parts): Likewise.
6693 (create_mem_ref): Likewise.
6694 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6695 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
6696 (number_of_iterations_le): Likewise.
6697 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
6698 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6699 (vect_create_addr_base_for_vector_ref): Likewise.
6700 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
6701 (vect_create_cond_for_alias_checks): Likewise.
6702 * tree-vrp.c (extract_range_from_assert): Likewise.
6703 * config/alpha/alpha.c (alpha_va_start): Likewise.
6704 (alpha_gimplify_va_arg_1): Likewise.
6705 * config/i386/i386.c (ix86_va_start): Likewise.
6706 (ix86_gimplify_va_arg): Likewise.
6707 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6708 * config/mep/mep.c (mep_expand_va_start): Likewise.
6709 (mep_gimplify_va_arg_expr): Likewise.
6710 * config/mips/mips.c (mips_va_start): Likewise.
6711 (mips_gimplify_va_arg_expr): Likewise.
6712 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6713 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
6714 (rs6000_gimplify_va_arg): Likewise.
6715 * config/s390/s390.c (s390_va_start): Likewise.
6716 (s390_gimplify_va_arg): Likewise.
6717 * config/sh/sh.c (sh_va_start): Likewise.
6718 (sh_gimplify_va_arg_expr): Likewise.
6719 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6720 * config/spu/spu.c (spu_va_start): Likewise.
6721 (spu_gimplify_va_arg_expr): Likewise.
6722 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
6723 Likewise.
6724 (xstormy16_gimplify_va_arg_expr): Likewise.
6725 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
6726 (xtensa_gimplify_va_arg_expr): Likewise.
6727
6728 2011-07-19 Richard Guenther <rguenther@suse.de>
6729
6730 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
6731 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
6732 handling.
6733
6734 PR middle-end/18908
6735 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
6736 result of BIT_*_EXPR to bitfield precision.
6737
6738 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
6739
6740 PR tree-optimization/49742
6741 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
6742 as a potential write.
6743
6744 2011-07-19 Richard Guenther <rguenther@suse.de>
6745
6746 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
6747 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
6748 (forward_propagate_comparison): Simplify, remove obsolete code.
6749
6750 2011-07-19 Richard Guenther <rguenther@suse.de>
6751
6752 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
6753 BIT_XOR_EXPR, same as the RTL expander does.
6754 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
6755 (verify_gimple_assign_unary): Likewise.
6756 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
6757 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
6758 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
6759
6760 2011-07-19 Jakub Jelinek <jakub@redhat.com>
6761
6762 PR tree-optimization/49768
6763 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
6764 if offset is smaller than bitoffset, but offset+size is bigger
6765 than bitoffset.
6766
6767 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
6768
6769 PR tree-optimization/49771
6770 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
6771 zero step, set segment length to the size of the data-ref's type.
6772
6773 2011-07-18 Martin Jambor <mjambor@suse.cz>
6774
6775 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
6776 comments.
6777 (ipcp_values_pool): Declare.
6778 (ipcp_sources_pool): Likewise.
6779 (ipcp_lattice): Changed to forward declaration.
6780 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
6781 cannot_devirtualize.
6782 (ipa_node_params): New fields descriptors, lattices, known_vals,
6783 clone_for_all_contexts and node dead, removed fields params and
6784 count_scale.
6785 (ipa_set_param_count): Removed.
6786 (ipa_get_param_count): Made to work with descriptors vector.
6787 (ipa_get_param): Updated.
6788 (ipa_param_cannot_devirtualize_p): Removed.
6789 (ipa_param_types_vec_empty): Likewise.
6790 (ipa_set_param_used): New function.
6791 (ipa_get_param_used): Updated to use descriptors vector.
6792 (ipa_func_list): Removed.
6793 (ipa_init_func_list): Removed declaration.
6794 (ipa_push_func_to_list_1): Likewise.
6795 (ipa_pop_func_from_list): Likewise.
6796 (ipa_push_func_to_list): Removed.
6797 (ipa_lattice_from_jfunc): Remove declaration.
6798 (ipa_get_jf_pass_through_result): Declare.
6799 (ipa_get_jf_ancestor_result): Likewise.
6800 (ipa_value_from_jfunc): Likewise.
6801 (ipa_get_lattice): Update.
6802 (ipa_lat_is_single_const): New function.
6803 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
6804 (ipa_init_func_list): Likewise.
6805 (ipa_pop_func_from_list): Likewise.
6806 (ipa_get_param_decl_index): Fix coding style.
6807 (count_formal_params): Removed.
6808 (count_formal_params_1): Renamed to count_formal_params.
6809 (ipa_populate_param_decls): Update to use descriptors vector.
6810 (ipa_initialize_node_params): Likewise.
6811 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
6812 (ipa_analyze_params_uses): Likewise.
6813 (ipa_free_node_params_substructures): Likewise and free also lattices
6814 and known values.
6815 (duplicate_array): Removed.
6816 (ipa_edge_duplication_hook): Add the new edge to the list of edge
6817 clones.
6818 (ipa_node_duplication_hook): Update to use new lattices.
6819 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
6820 (ipa_free_all_structures_after_iinln): Likewise.
6821 (ipa_write_node_info): Update to use new lattices.
6822 (ipa_read_node_info): Likewise.
6823 (ipa_get_jf_pass_through_result): New function.
6824 (ipa_get_jf_ancestor_result): Likewise.
6825 (ipa_value_from_jfunc): Likewise.
6826 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
6827 * ipa-cp.c: Reimplemented.
6828 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
6829 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
6830 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
6831 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
6832 * doc/invoke.texi (devirt-type-list-size): Removed description.
6833 (ipa-cp-value-list-size): Added description.
6834
6835 2011-07-18 Richard Henderson <rth@redhat.com>
6836
6837 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
6838 before calling create_basic_block.
6839
6840 2011-07-18 Jakub Jelinek <jakub@redhat.com>
6841
6842 PR middle-end/49675
6843 * tree.c (build_common_builtin_nodes): Register
6844 __builtin_return_address, __cyg_profile_func_enter
6845 and __cyg_profile_func_exit.
6846
6847 2011-07-18 Richard Henderson <rth@redhat.com>
6848
6849 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
6850 (add_labels_and_missing_jumps): ... here.
6851 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
6852
6853 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
6854
6855 PR target/47744
6856 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
6857 of DImode hard registers in PLUS address chains.
6858
6859 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6860
6861 PR bootstrap/49769
6862 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
6863 (alpha*-*-freebsd*): Likewise.
6864 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6865 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
6866 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
6867 crtprec80.o, crtfastmath.o to extra_parts for all targets.
6868 (ia64*-*-elf*): Remove extra_parts.
6869 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
6870 (sparc64-*-linux*): Likewise.
6871 (sparc64-*-freebsd*): Likewise.
6872
6873 Revert:
6874 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
6875 (ia64*-*-linux*): Likewise.
6876 (mips64*-*-linux*): Likewise.
6877 (mips*-*-linux*): Likewise.
6878
6879 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
6880
6881 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
6882
6883 2011-07-18 Richard Guenther <rguenther@suse.de>
6884
6885 * gimplify.c (gimplify_expr): Use input_location, not saved_location
6886 when building new trees.
6887
6888 2011-07-18 Richard Guenther <rguenther@suse.de>
6889
6890 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
6891 expansion result to bitfield precision if required.
6892
6893 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6894
6895 * config.gcc (i[3456x]86-*-netware*): Remove.
6896
6897 * gthr-nks.h: Remove.
6898 * configure.ac (enable_threads): Remove nks.
6899 * configure: Regenerate.
6900
6901 * config/i386/i386.c (ix86_encode_section_info): Remove netware
6902 reference.
6903 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
6904 <netware.h> reference.
6905
6906 * config/i386/netware-libgcc.c,
6907 gcc/config/i386/netware-libgcc.def,
6908 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
6909 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
6910 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
6911 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
6912
6913 * doc/extend.texi (Function Attributes,
6914 callee_pop_aggregate_return): Remove i?86-netware reference.
6915 * doc/install.texi (Configuration, --enable-threads): Remove nks.
6916
6917 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6918
6919 PR target/49746
6920 Revert:
6921 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6922
6923 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
6924 patterns.
6925
6926 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
6927
6928 PR middle-end/49732
6929 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
6930
6931 2011-07-16 Matthias Klose <doko@ubuntu.com>
6932
6933 * doc/install.texi: Document --enable-static-libjava.
6934
6935 2011-07-15 Richard Henderson <rth@redhat.com>
6936
6937 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
6938 Replace all three arguments by returning a VEC of edges.
6939 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
6940 pointers and counts.
6941 (fix_edges_for_rarely_executed_code): Merge ...
6942 (rest_of_handle_partition_blocks): ... into...
6943 (partition_hot_cold_basic_blocks): ... here. Return todo items if
6944 any work was performed.
6945 (pass_partition_blocks): Clear todo_flags_finish.
6946
6947 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
6948 Jakub Jelinek <jakub@redhat.com>
6949 Jonathan Wakely <jwakely.gcc@gmail.com>
6950
6951 PR libstdc++/49745
6952 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
6953 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
6954
6955 2011-07-15 Jason Merrill <jason@redhat.com>
6956
6957 PR testsuite/49741
6958 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
6959 rather than --tool_opts.
6960
6961 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
6962
6963 * doc/plugins.texi (Building GCC plugins): gengtype needs its
6964 corresponding gtype.state.
6965
6966 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6967
6968 PR target/49723
6969 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
6970
6971 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
6972
6973 PR target/48220
6974 * doc/md.texi (Standard Names): Document window_save.
6975 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
6976 expand_debug_expr and expand_debug_source_expr. If the target has
6977 a window_save instruction, adjust the ENTRY_VALUE_EXP.
6978 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
6979 SSA_NAME_VAR is a parameter.
6980 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
6981 * var-tracking.c (parm_reg_t): New type and associated vector type.
6982 (windowed_parm_regs): New variable.
6983 (adjust_insn): If the target has a window_save instruction and this
6984 is the instruction, make its effect on parameter registers explicit.
6985 (next_non_note_insn_var_location): New function.
6986 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
6987 (vt_add_function_parameter): If the target has a window_save insn,
6988 adjust the incoming RTL and record that in windowed_parm_regs.
6989 (vt_finalize): Free windowed_parm_regs.
6990
6991 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
6992
6993 * doc/invoke.texi (C6X Options): New section.
6994 * doc/md.texi (TI C6X family): New section.
6995 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
6996 tic6x-*-uclinux.
6997 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
6998 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
6999 Provide C6X definitions.
7000 * config/c6x/c6x.md: New file.
7001 * config/c6x/constraints.md: New file.
7002 * config/c6x/predicates.md: New file.
7003 * config/c6x/c6x-sched.md.in: New file.
7004 * config/c6x/c6x-sched.md: New file.
7005 * config/c6x/gensched.sh: New file.
7006 * config/c6x/c6x-mult.md.in: New file.
7007 * config/c6x/genmult.sh: New file.
7008 * config/c6x/c6x-mult.md: New file.
7009 * config/c6x/sync.md: New file.
7010 * config/c6x/c6x-protos.h: New file.
7011 * config/c6x/sfp-machine.h: New file.
7012 * config/c6x/c6x.c: New file.
7013 * config/c6x/c6x.h: New file.
7014 * config/c6x/crti.s: New file.
7015 * config/c6x/crtn.s: New file.
7016 * config/c6x/lib1funcs.asm: New file.
7017 * config/c6x/c6x-modes.def: New file.
7018 * config/c6x/genopt.sh: New file.
7019 * config/c6x/c6x.opt: New file.
7020 * config/c6x/c6x-tables.opt: New file.
7021 * config/c6x/c6x-opts.h: New file.
7022 * config/c6x/c6x-isas.def: New file.
7023 * config/c6x/elf.h: New file.
7024 * config/c6x/elf-common.h: New file.
7025 * config/c6x/uclinux-elf.h: New file.
7026 * config/c6x/t-c6x: New file.
7027 * config/c6x/t-c6x-elf: New file.
7028 * config/c6x/t-c6x-uclinux: New file.
7029 * config/c6x/t-c6x-softfp: New file.
7030 * config/c6x/gtd.c: New file.
7031 * config/c6x/gtf.c: New file.
7032 * config/c6x/ltd.c: New file.
7033 * config/c6x/ltf.c: New file.
7034 * config/c6x/ged.c: New file.
7035 * config/c6x/gef.c: New file.
7036 * config/c6x/led.c: New file.
7037 * config/c6x/lef.c: New file.
7038 * config/c6x/eqd.c: New file.
7039 * config/c6x/eqf.c: New file.
7040 * config/c6x/libgcc-c6xeabi.ver: New file.
7041
7042 Revert
7043 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
7044 PR rtl-optimization/11320
7045 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
7046 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
7047 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
7048 current_sched_info->compute_jump_reg_dependencies. Record which
7049 registers are used and which registers are set by the jump.
7050 Clear deps->reg_conditional_sets after a barrier.
7051 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
7052 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
7053 (init_deps): Initialize reg_conditional_sets.
7054 (free_deps): Clear reg_conditional_sets.
7055 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
7056 Mark registers live on entry of the fallthrough block and conditionally
7057 set as set by the jump. Mark registers live on entry of non-fallthrough
7058 blocks as used by the jump.
7059 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
7060 Mark new parameters as unused.
7061
7062 2011-07-14 Andrew Pinski <pinskia@gmail.com>
7063
7064 PR tree-opt/49309
7065 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
7066 Use fold_build2_loc instead of build2.
7067 Use the correct type for the new tree.
7068
7069 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7070
7071 PR rtl-optimization/11320
7072 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
7073 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
7074
7075 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
7076
7077 PR target/49487
7078 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
7079 of REG.
7080 (*rotw<mode>): Use const_int_operand for operand2.
7081 Use match_scatch for operand3.
7082 (*rotb<mode>): Ditto
7083 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
7084
7085 2011-07-14 Richard Guenther <rguenther@suse.de>
7086
7087 PR tree-optimization/49651
7088 * tree-ssa-structalias.c (get_constraint_for_1): Properly
7089 handle dereferences with subvariables.
7090
7091 2011-07-14 Richard Guenther <rguenther@suse.de>
7092
7093 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
7094 (fold_stmt_1): Do it here directly on gimple and as a first thing.
7095
7096 2011-07-14 Richard Guenther <rguenther@suse.de>
7097
7098 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
7099 not bool_var when folding bool_var != 1 or bool_var == 0.
7100
7101 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7102
7103 * haifa-sched.c (schedule_insns): Remove outdated comment.
7104 (schedule_block): When computing a known value for TODO_SPEC,
7105 just set it rather than using logical operations.
7106 (try_ready): Likewise. Use a local variable rather than a
7107 pointer to TODO_SPEC. Reorder an if statement to move the
7108 easy case to the then block.
7109 * sched-deps.c (dep_spec_p): New static function.
7110 (update_dep): Use it to decide whether to call
7111 change_spec_dep_to_hard.
7112 (get_back_and_forw_lists): Use it.
7113 (sd_resolve_dep): Likewise.
7114 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
7115 (haifa_note_mem_dep): Likewise.
7116 (check_dep): Likewise.
7117 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
7118 (sched_free_deps): Free in two passes.
7119
7120 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
7121
7122 PR middle-end/49736
7123 * expr.c (all_zeros_p): Undo bogus part of last change.
7124
7125 2011-07-14 Matthias Klose <doko@ubuntu.com>
7126
7127 * doc/extend.texi (optimize attribute): Fix typo.
7128
7129 2011-07-14 Richard Guenther <rguenther@suse.de>
7130
7131 * gimplify.c (gimplify_expr): Only do required conversions.
7132
7133 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
7134
7135 PR target/43746
7136 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
7137 i.e. use default_elf_select_section.
7138 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
7139 (READONLY_DATA_SECTION_ASM_OP): Remove.
7140 (TARGET_ASM_NAMED_SECTION): Move from here...
7141 * config/avr/avr.c: ...to here.
7142 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
7143 (avr_asm_named_section): Make static.
7144
7145 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7146
7147 PR bootstrap/49739
7148 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
7149 and crtfastmath.o for Linux/x86.
7150
7151 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
7152
7153 * haifa-sched.c: Include "hashtab.h"
7154 (sched_no_dce): New global variable.
7155 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
7156 SHADOW_P): New macros.
7157 (last_clock_var, cycle_issued_insns): Move declarations.
7158 (must_backtrack): New static variable.
7159 (struct delay_pair): New structure.
7160 (delay_htab, delay_htab_i2): New static variables.
7161 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
7162 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
7163 functions.
7164 (dep_cost_1): If delay pairs exist, try to look up the insns and
7165 use the correct pair delay if we find them.
7166 (rank-for_schedule): Tweak priority for insns that must be scheduled
7167 soon to avoid backtracking.
7168 (queue_insn): Detect conditions which force backtracking.
7169 (ready_add): Likewise.
7170 (struct sched_block_state): Add member shadows_only_p.
7171 (struct haifa_save_data): New structure.
7172 (backtrack_queue): New static variable.
7173 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
7174 unschedule_insns_until, restore_last_backtrack_point,
7175 free_topmost_backtrack_point, free_backtrack_queue,
7176 estimate_insn_tick, estimate_shadow_tick): New functions.
7177 (prune_ready_list): New arg shadows_only_p. All callers changed.
7178 If true, remove everything that isn't SHADOW_P. Look up delay
7179 pairs and estimate ticks to avoid scheduling the first insn too early.
7180 (verify_shadows): New function.
7181 (schedule_block): Add machinery to enable backtracking.
7182 (sched_init): Take sched_no_dce into account when setting
7183 DF_LR_RUN_DCE.
7184 (free_delay_pairs): New function.
7185 (init_h_i_d): Initialize INSN_EXACT_TICK.
7186 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
7187 * sched-deps.c (sd_unresolve_dep): New function.
7188 * sched-int. (struct haifa_sched_info): New fields save_state
7189 and restore_state.
7190 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
7191 feeds_backtrack_insn and shadow_p.
7192 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
7193 (sched_no_dce): Declare variable.
7194 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
7195 sd_unresolve_dep): Declare functions.
7196 * modulo-sched.c (sms_sched_info): Clear the two new fields.
7197 * sched-rgn.c (rgn_const_sched_info): Likewise.
7198 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7199 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
7200 (ebb_sched_info): Add them for the two new fields.
7201 (add_deps_for_risky_insns): Call add_delay_dependencies.
7202
7203 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7204
7205 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
7206 Rename -mr11.
7207 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
7208 (rs6000_call_indirect_aix): Ditto.
7209 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
7210 (call_indirect_aix<ptrsize>_internal): Ditto.
7211 (call_indirect_aix<ptrsize>_nor11): Ditto.
7212 (call_indirect_aix<ptrsize>_internal2): Ditto.
7213 (call_value_indirect_aix<ptrsize>): Ditto.
7214 (call_value_indirect_aix<ptrsize>_internal): Ditto.
7215 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
7216 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
7217 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
7218
7219 2011-07-13 Jason Merrill <jason@redhat.com>
7220
7221 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
7222
7223 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7224
7225 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
7226 * config/spu/spu.md ("clrsb<mode>2"): New expander.
7227
7228 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
7229
7230 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
7231 * configure: Regenerate.
7232
7233 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7234
7235 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
7236 (asm_file_start): Remove.
7237 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
7238 free_bb_for_insn around code that modifies insns before
7239 restarting df analysis.
7240
7241 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7242
7243 PR target/49541
7244 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
7245 (LINK_SPEC): ... here.
7246
7247 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7248
7249 * haifa-sched.c (struct sched_block_state): New.
7250 (schedule_block): Move some local variables into such a structure.
7251
7252 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7253
7254 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
7255 * config/i386/t-crtpc: Remove.
7256 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7257 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
7258 tmake_file.
7259 (x86_64-*-darwin*): Likewise.
7260 (i[34567]86-*-linux*): Likewise.
7261 (x86_64-*-linux*): Likewise.
7262
7263 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
7264 Handle -mpc32, -mpc64, -mpc80.
7265
7266 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7267
7268 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
7269 * config/alpha/t-crtfm: Remove.
7270 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
7271 * config/i386/t-crtfm: Remove.
7272 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
7273 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
7274 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
7275 * config/sparc/t-crtfm: Remove.
7276
7277 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
7278 (alpha*-*-freebsd*): Likewise.
7279 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
7280 (x86_64-*-darwin*): Likewise.
7281 (i[34567]86-*-linux*): Likewise.
7282 (x86_64-*-linux*): Likewise.
7283 (x86_64-*-mingw*): Likewise.
7284 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
7285 (ia64*-*-freebsd*): Likewise.
7286 (ia64*-*-linux*): Likewise.
7287 (mips64*-*-linux*): Likewise.
7288 (mips*-*-linux*): Likewise.
7289 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
7290 (sparc64-*-linux*): Likewise.
7291 (sparc64-*-freebsd*): Likewise.
7292
7293 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7294
7295 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
7296 * config/darwin-crt3.c: Move to ../libgcc/config.
7297 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
7298 ($(T)crt3$(objext)): Remove.
7299 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
7300 ($(T)crt2$(objext)): Remove.
7301 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
7302 (powerpc64-*-darwin*): Likewise.
7303
7304 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7305
7306 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
7307
7308 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
7309 (addsi_1_zext): This.
7310
7311 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7312
7313 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
7314 * doc/tm.texi: Regenerate.
7315 * target.def (mergeable_rodata_prefix): New defhookpod.
7316 * varasm.c (mergeable_string_section, mergeable_constant_section):
7317 Use it. Allocate name with alloca.
7318
7319 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
7320
7321 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
7322
7323 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7324
7325 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
7326 overlap check.
7327
7328 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
7329
7330 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
7331 (count_type_elements): Delete.
7332 (complete_ctor_at_level_p): Declare.
7333 * expr.c (flexible_array_member_p): New function, split out from...
7334 (count_type_elements): ...here. Make static. Replace allow_flexarr
7335 parameter with for_ctor_p. When for_ctor_p is true, return the
7336 number of elements that should appear in the top-level constructor,
7337 otherwise return an estimate of the number of scalars.
7338 (categorize_ctor_elements): Replace p_must_clear with p_complete.
7339 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
7340 (complete_ctor_at_level_p): New function, borrowing union logic
7341 from old categorize_ctor_elements_1.
7342 (mostly_zeros_p): Return true if the constructor is not complete.
7343 (all_zeros_p): Update call to categorize_ctor_elements.
7344 * gimplify.c (gimplify_init_constructor): Update call to
7345 categorize_ctor_elements. Don't call count_type_elements.
7346 Unconditionally prevent clearing for variable-sized types,
7347 otherwise rely on categorize_ctor_elements to detect
7348 incomplete initializers.
7349
7350 2011-07-13 Richard Guenther <rguenther@suse.de>
7351
7352 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
7353 the final type is integral.
7354
7355 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
7356
7357 * sched-int.h (struct _dep): Add member cost.
7358 (DEP_COST, UNKNOWN_DEP_COST): New macros.
7359 * sched-deps.c (init_dep_1): Initialize DEP_COST.
7360 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
7361 (sched_change_pattern): Reset it for dependent insns.
7362
7363 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7364
7365 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
7366 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
7367 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
7368 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
7369 (CRT0_S, MCRT0_S): Remove.
7370 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
7371 Remove.
7372 (s-crt0): Remove.
7373 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
7374
7375 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
7376
7377 * cse.c (insert_with_costs): Put semi-colon after empty loop body
7378 on the next line.
7379 * emit-rtl.c (push_to_sequence): Likewise.
7380 * haifa-sched.c (max_issue): Likewise.
7381 * matrix-reorg.c (add_allocation_site): Likewise.
7382 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
7383 * reload.c (alternative_allows_const_pool_ref): Likewise.
7384 * sched-rgn.c (rgn_add_block): Likewise.
7385 (rgn_fix_recovery_cfg): Likewise.
7386 * tree.c (attribute_list_contained): Likewise.
7387
7388 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
7389
7390 * config/i386/i386.c: Tidy processor feature bitmasks.
7391 (m_P4_NOCONA): New.
7392
7393 2011-07-12 Andrew Pinski <pinskia@gmail.com>
7394
7395 PR rtl-opt/49474
7396 * cprop.c (find_implicit_sets): Correct the condition.
7397
7398 2011-07-12 Richard Henderson <rth@redhat.com>
7399
7400 PR target/49713
7401 * dwarf2out.h (dwarf_frame_regnum): Remove.
7402 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
7403 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
7404 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
7405 (execute_dwarf2_frame): Initialize them.
7406 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
7407 users of the macros with the variables.
7408 (expand_builtin_dwarf_sp_column): Revert last change.
7409 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
7410 result of DWARF_FRAME_REGNUM into a local variable.
7411
7412 2011-07-12 Richard Henderson <rth@redhat.com>
7413
7414 PR target/49714
7415 * config/i386/i386.c (x86_output_mi_thunk): Use
7416 machopic_indirect_call_target instead of machopic_indirection_name
7417 directly.
7418
7419 2011-07-12 Laurent GUERBY <laurent@guerby.net>
7420 Eric Botcazou <ebotcazou@adacore.com>
7421
7422 * prefix.h: Wrap up in extern "C" block.
7423
7424 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
7425
7426 AMD bdver2 Enablement
7427 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
7428 (case ${target}): Add bdver2.
7429 * config/i386/driver-i386.c (host_detect_local_cpu): Let
7430 -march=native recognize bdver2 processors.
7431 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7432 bdver2 def_and_undef
7433 * config/i386/i386.c (struct processor_costs bdver2_cost): New
7434 bdver2 cost table.
7435 (m_BDVER2): New definition.
7436 (m_AMD_MULTIPLE): Includes m_BDVER2.
7437 (initial_ix86_tune_features): Add bdver2 tuning.
7438 (processor_target_table): Add bdver2 entry.
7439 (static const char *const cpu_names): Add bdver2 entry.
7440 (ix86_option_override_internal): Add bdver2 instruction sets.
7441 (ix86_issue_rate): Add bdver2.
7442 (ix86_adjust_cost): Add bdver2.
7443 (has_dispatch): Add bdver2.
7444 * config/i386/i386.h (TARGET_BDVER2): New definition.
7445 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
7446 (enum processor_type): Add PROCESSOR_BDVER2.
7447 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
7448 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
7449 description.
7450
7451 2011-07-12 Richard Henderson <rth@redhat.com>
7452
7453 PR target/49714
7454 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
7455 destination address in memory on some paths.
7456
7457 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
7458
7459 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
7460 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
7461 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
7462 * function.c (locate_and_pad_parm): Take it into account.
7463 * target.def (function_arg_round_boundary): New hook.
7464 * targhooks.c (default_function_arg_round_boundary): New function.
7465 * targhooks.h (default_function_arg_round_boundary): Declare.
7466 * doc/tm.texi: Regenerate.
7467
7468 2011-07-12 Richard Guenther <rguenther@suse.de>
7469
7470 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
7471 Do not perform no-op changes.
7472
7473 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
7474
7475 * config/arm/predicates.md (neon_struct_operand): Make a normal
7476 predicate.
7477 (neon_struct_or_register_operand): New predicate.
7478 * config/arm/neon.md (movmisalign<mode>): Replace predicates
7479 with neon_struct_or_register_operand.
7480 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
7481 neon_struct_operand instead of memory_operand.
7482
7483 2011-07-12 Martin Jambor <mjambor@suse.cz>
7484
7485 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
7486 * cgraph.c (cgraph_get_node_or_alias): Removed.
7487 (change_decl_assembler_name): Changed all calls to
7488 cgraph_get_node_or_alias to a call to cgraph_get_node.
7489 (cgraph_make_decl_local): Likewise.
7490 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
7491 * varasm.c (default_binds_local_p_1): Likewise.
7492 (decl_binds_to_current_def_p): Likewise.
7493
7494 2011-07-12 Jakub Jelinek <jakub@redhat.com>
7495
7496 PR tree-optimization/49712
7497 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
7498
7499 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
7500
7501 * genautomata.c (add_arc): Return void. All callers changed.
7502 (make_automaton): Remove dead code.
7503
7504 2011-07-11 Richard Henderson <rth@redhat.com>
7505
7506 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
7507 (DW_FRAME_POINTER_REGNUM): New.
7508 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
7509 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
7510 (dwf_regno): New.
7511 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
7512 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
7513 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
7514 Use it.
7515 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
7516 * dwarf2out.h (dwarf_frame_regnum): New.
7517 (struct cfa_loc): Document the domain of the reg member.
7518
7519 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
7520
7521 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
7522 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
7523
7524 2011-07-11 Jakub Jelinek <jakub@redhat.com>
7525
7526 PR debug/49676
7527 * dwarf2out.c (int_shift_loc_descriptor): New function.
7528 (int_loc_descriptor): If shorter, emit i as
7529 (i >> shift), shift, DW_OP_shl for suitable shift value.
7530 Similarly, try to optimize large negative values using
7531 DW_OP_neg of a positive value if shorter.
7532 (size_of_int_shift_loc_descriptor): New function.
7533 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
7534 changes.
7535 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
7536 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
7537 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
7538 is shorter.
7539 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
7540 addend as added DW_OP_plus if it is shorter.
7541
7542 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7543
7544 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
7545 (DTORS_SECTION_ASM_OP): Define.
7546
7547 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7548
7549 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
7550 * config/t-dfprules: Move to ../libgcc/config.
7551 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7552 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7553 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
7554 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
7555 Likewise.
7556 (i[34567]86-*-cygwin*): Likewise.
7557 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
7558 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
7559 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
7560 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
7561 D64PBIT_FUNCS, D128PBIT_FUNCS.
7562
7563 2011-07-11 Richard Guenther <rguenther@suse.de>
7564
7565 * tree-vrp.c (simplify_conversion_using_ranges): Manually
7566 translate the source value-range through the conversion chain.
7567
7568 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
7569
7570 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
7571
7572 2011-07-11 Arthur Loiret <aloiret@debian.org>
7573
7574 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
7575 a bi-arch compiler defaulting to 31-bit. In this case:
7576 (tmake_file): Add s390/t-linux64.
7577 * doc/install.texi: Add s390-linux to the list of targets supporting
7578 --enable-targets=all.
7579
7580 2011-07-11 Arthur Loiret <aloiret@debian.org>
7581 Matthias Klose <doko@debian.org>
7582
7583 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
7584 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
7585 (tm_file): Add mips/linux64.h.
7586 (tmake_file): Add mips/t-linux64.
7587 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
7588 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
7589 instead of hardcoded mabi=n32.
7590 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
7591 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
7592 convention.
7593
7594 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7595
7596 * passes.c (init_optimization_passes): Add invariant motion pass
7597 after induction variable optimization.
7598
7599 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
7600
7601 PR target/39633
7602 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
7603 offsets 1..5 set cc0 in a usable way.
7604
7605 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
7606
7607 * tree.h (call_expr_arg): Remove.
7608 (call_expr_argp): Likewise.
7609
7610 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
7611
7612 * config/sparc/sparc.md (save_register_window_1): Rename to...
7613 (window_save): ...this.
7614 * config/sparc/sparc.c (emit_save_register_window): Rename to...
7615 (emit_window_save): ...this.
7616 (sparc_expand_prologue): Adjust to above renaming.
7617
7618 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7619
7620 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
7621 of movabs for x32.
7622
7623 2011-07-10 Richard Henderson <rth@redhat.com>
7624
7625 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
7626 run final, instead of emitting text directly.
7627
7628 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
7629
7630 * config/i386/i386.c (ix86_option_override_internal): Turn on
7631 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
7632 small PIC models for TARGET_X32.
7633
7634 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
7635
7636 PR target/49684
7637 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
7638 $(LIBGCC2_CFLAGS).
7639
7640 PR bootstrap/49680
7641 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
7642 stray notes and debug insns by using prev_nonnote_nondebug_insn
7643 instead of PREV_INSN.
7644
7645 2011-07-09 Richard Henderson <rth@redhat.com>
7646
7647 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
7648 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
7649 * dwarf2out.c: ... here.
7650 (output_all_cfis): Remove.
7651 (dwarf2out_switch_text_section): Use output_cfis directly.
7652 (size_of_locs): Export.
7653 (output_loc_sequence, output_loc_sequence_raw): Export.
7654 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
7655 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
7656 output_cfa_loc_raw): Move to ...
7657 * dwarfcfi.c: ... here.
7658 * dwarf2out.h: Update decls.
7659
7660 2011-07-09 Richard Henderson <rth@redhat.com>
7661
7662 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
7663 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
7664 * dwarf2cfi.c: ... here.
7665 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
7666 (DWARF_ROUND, DWARF_CIE_ID): Remove.
7667 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
7668 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
7669 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
7670
7671 2011-07-09 Richard Henderson <rth@redhat.com>
7672
7673 * dwarf2cfi.c (cie_return_save): New.
7674 (queue_reg_save): Use compare_reg_or_pc.
7675 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
7676 (dwarf2out_frame_debug_expr): Likewise.
7677 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
7678 (initial_return_save): Likewise.
7679 (execute_dwarf2_frame): Save and restore initial return save from
7680 the cie to the fde.
7681 * config/mips/mips.c (mips_frame_set): Remove special case for
7682 DWARF_FRAME_RETURN_COLUMN.
7683
7684 2011-07-09 Richard Henderson <rth@redhat.com>
7685
7686 * dwarf2cfi.c (lookup_cfa): Remove.
7687 (execute_dwarf2_frame): Assert queues are empty on entry.
7688 Setup initial cfa directly, not via lookup_cfa.
7689 Don't clear args_size state here.
7690
7691 2011-07-09 Richard Henderson <rth@redhat.com>
7692
7693 * dwarf2cfi.c (add_cfi_vec): New.
7694 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
7695 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
7696 (execute_dwarf2_frame): Set add_cfi_vec.
7697
7698 2011-07-09 Richard Henderson <rth@redhat.com>
7699
7700 * defaults.h (ASM_COMMENT_START): Move here...
7701 * dwarf2asm.c: ... from here.
7702 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
7703 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
7704 * varasm.c: Likewise.
7705
7706 2011-07-09 Richard Henderson <rth@redhat.com>
7707
7708 PR debug/49686
7709 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
7710 (create_cfi_notes): ... do it here instead.
7711
7712 2011-07-09 Jakub Jelinek <jakub@redhat.com>
7713
7714 PR debug/49676
7715 * dwarf2out.c (size_of_int_loc_descriptor): New function.
7716 (address_of_int_loc_descriptor): Use it.
7717 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
7718
7719 2011-07-09 Richard Henderson <rth@redhat.com>
7720
7721 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
7722 (prologue, epilogue): New.
7723 (return, *rts): New.
7724 (blockage, setd, seti): New.
7725 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
7726 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7727 (pdp11_saved_regno): New.
7728 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
7729 generate rtl instead of text.
7730 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
7731 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
7732 * config/pdp11/pdp11-protos.h: Update.
7733
7734 2011-07-09 Richard Henderson <rth@redhat.com>
7735
7736 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
7737 try to insert an rtl prologue here.
7738 (rs6000_output_function_epilogue): Similarly.
7739 * config/rs6000/rs6000.md (prologue): Emit a barrier to
7740 satisfy !TARGET_SCHED_PROLOG.
7741 (epilogue, sibcall_epilogue): Likewise.
7742
7743 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
7744
7745 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
7746 (FP_REG_P): Delete.
7747 (IN_OR_GLOBAL_P): Likewise.
7748
7749 2011-07-08 Jason Merrill <jason@redhat.com>
7750
7751 PR c++/45437
7752 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
7753 compound assignment.
7754
7755 * cgraph.c (cgraph_add_to_same_comdat_group): New.
7756 * cgraph.h: Declare it.
7757 * ipa.c (function_and_variable_visibility): Make sure thunks
7758 have the right visibility.
7759
7760 2011-07-08 Richard Henderson <rth@redhat.com>
7761
7762 PR bootstrap/49680
7763 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
7764 any tablejump vector.
7765
7766 PR bootstrap/49680
7767 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
7768 end of the prologue.
7769
7770 2011-07-08 Jakub Jelinek <jakub@redhat.com>
7771
7772 PR target/49621
7773 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
7774 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
7775 * config/rs6000/vector.md (vector_select_<mode>,
7776 vector_select_<mode>_uns): Change second operand of NE to
7777 CONST0_RTX (<MODE>mode) instead of const0_rtx.
7778 * config/rs6000/altivec.md (*altivec_vsel<mode>,
7779 *altivec_vsel<mode>_uns): Expect second operand of NE to be
7780 zero_constant of the corresponding vector mode.
7781 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
7782 Likewise.
7783
7784 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
7785
7786 * graphite-dependences.c (build_alias_set_powerset): Remove
7787 continue from loop, add one more assert.
7788
7789 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
7790
7791 PR target/46779
7792 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
7793 In particular, allow 8-bit values in r28 and r29.
7794 (avr_hard_regno_scratch_ok): Disallow any register that might be
7795 part of the frame pointer.
7796 (avr_hard_regno_rename_ok): Same.
7797 (avr_legitimate_address_p): Don't allow SUBREGs.
7798
7799 2011-07-08 Julian Brown <julian@codesourcery.com>
7800
7801 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
7802 big-endian mode.
7803 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
7804 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
7805 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
7806 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
7807 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
7808 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
7809 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
7810 registers in big-endian mode.
7811
7812 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
7813
7814 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
7815 in terms of another.
7816 (write_attr_value): Write a cast if necessary.
7817
7818 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
7819 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
7820 (REG_WORDS_BIG_ENDIAN): Document.
7821 * doc/tm.texi: Regenerate.
7822 * reload.c (operands_match_p): Take it into account.
7823 (reload_adjust_reg_for_mode): Likewise.
7824 * rtlanal.c (subreg_get_info): Likewise.
7825
7826 2011-07-08 Richard Guenther <rguenther@suse.de>
7827
7828 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
7829 folding.
7830
7831 2011-07-08 Kai Tietz <ktietz@redhat.com>
7832
7833 * fold-const.c (fold_truth_andor): Factored out truth_andor
7834 label from fold_binary as function.
7835 (fold_binary_loc): Replace truth_andor lable
7836 by function fold_truth_andor.
7837
7838 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
7839
7840 PR middle-end/49519
7841 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
7842 check if address is stored in register. If so - give up.
7843 (check_sibcall_argument_overlap_1): Do not perform check of
7844 overlapping when it is call to address.
7845
7846 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
7847
7848 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
7849 of magic '31'.
7850
7851 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
7852
7853 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
7854 GET_MODE_BITSIZE where appropriate.
7855 (widen_leading, expand_parity, expand_ctz, expand_ffs,
7856 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
7857 expand_float, expand_fix): Likewise.
7858 * expr.c (convert_move, convert_modes, expand_expr_real_2,
7859 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7860 * stor-layout.c (get_mode_bounds): Likewise.
7861 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
7862 Likewise.
7863 * convert.c (convert_to_integer): Likewise.
7864 * expmed.c (expand_shift_1): Likewise.
7865
7866 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
7867 a bitsize.
7868
7869 * optabs.c (expand_binop): Tighten conditions for doubleword
7870 expansions.
7871 (widen_bswap): Assert that mode bitsize and precision are the same.
7872 * stor-layout.c (get_best_mode): Skip modes that have lower
7873 precision than bitsize.
7874 * recog.c (simplify_while_replacing): Assert that bitsize and
7875 precision are the same.
7876
7877 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7878
7879 * Makefile.in (LIBGCOV): Remove.
7880 (libgcc.mvars): Remove LIBGCOV.
7881 * libgov.c: Move to ../libgcc.
7882
7883 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7884
7885 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
7886
7887 2011-07-08 Martin Jambor <mjambor@suse.cz>
7888
7889 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
7890 is too big for total scalarization.
7891
7892 2011-07-07 Richard Henderson <rth@redhat.com>
7893
7894 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
7895 (DBX_DEBUGGING_INFO): Undef.
7896
7897 2011-07-07 Richard Henderson <rth@redhat.com>
7898
7899 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
7900 Handle some opcodes specially for debugging.
7901 * print-rtl.c: Include dwarf2out.h
7902 (print_rtx): Handle NOTE_INSN_CFI.
7903 * Makefile.in (print-rtl.o): Update.
7904
7905 2011-07-07 Richard Henderson <rth@redhat.com>
7906
7907 * tree-pass.h (pass_dwarf2_frame): Declare.
7908 * passes.c (init_optimization_passes): Add it.
7909 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
7910 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
7911 make static, do not call add_cfis_to_fde.
7912 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
7913 dwarf2out_frame_init): Merge into...
7914 (execute_dwarf2_frame): ... here. New function.
7915 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
7916 saved_do_cfi_asm to a tri-state variable.
7917 (gate_dwarf2_frame, pass_dwarf2_frame): New.
7918 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
7919 if it has yet to be done. Don't call dwarf2cfi_function_init.
7920 * dwarf2out.h, debug.h: Update decls.
7921 * final.c (final_start_function): Don't call
7922 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
7923 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
7924 * toplev.c (lang_dependent_init): Likewise.
7925
7926 2011-07-07 Richard Henderson <rth@redhat.com>
7927
7928 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
7929 FDE_TABLE_INCREMENT): Replace with...
7930 (fde_vec): ... this, a new vector.
7931 (current_fde): Remove. Replace all users with cfun->fde.
7932 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
7933 (size_of_aranges, dwarf2out_finish): Likewise.
7934 (dwarf2out_alloc_current_fde): Break out from ...
7935 (dwarf2out_begin_prologue): ... here.
7936 (dwarf2out_frame_init): Remove.
7937 * dwarf2cfi.c: Update all users of current_fde.
7938 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
7939 * dwarf2out.h: Update decls.
7940 (dw_fde_node): Add fde_index member.
7941 * function.h (struct function): Add fde member.
7942
7943 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7944 Richard Henderson <rth@redhat.com>
7945
7946 * dwarf2cfi.c (add_cfi): Remove.
7947 (dwarf2out_cfi_label): Remove force argument. Only generate the
7948 label name.
7949 (add_fde_cfi): Simplify the different code paths.
7950 (add_cie_cfi): New.
7951 (old_cfa, old_cfa_remember): New.
7952 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
7953 (last_reg_save_label): Remove.
7954 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
7955 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
7956 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
7957 dwarf2out_frame_debug_cfa_expression,
7958 dwarf2out_frame_debug_cfa_restore,
7959 dwarf2out_frame_debug_cfa_window_save,
7960 dwarf2out_frame_debug_expr): Remove label parameter.
7961 (cfi_label_required_p, add_cfis_to_fde): New.
7962 (dwarf2out_frame_debug_after_prologue): New.
7963 (dwarf2cfi_frame_init): Initialize old_cfa.
7964 (dwarf2out_frame_debug_restore_state): Likewise.
7965 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
7966 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
7967 * final.c (final_start_function): Call
7968 dwarf2out_frame_debug_after_prologue.
7969
7970 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
7971 Richard Henderson <rth@redhat.com>
7972
7973 * dwarf2cfi.c (cfi_insn): New.
7974 (dwarf2out_cfi_label): Don't emit cfi label here.
7975 (add_fde_cfi): Create a NOTE_INSN_CFI.
7976 (dwarf2out_frame_debug): Setup cfi_insn.
7977 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
7978 (dwarf2out_cfi_begin_epilogue): Make static.
7979 (dwarf2out_frame_debug_restore_state): Make static.
7980 * dwarf2out.c (output_cfi_directive): Make static.
7981 (dwarf2out_emit_cfi): New.
7982 * dwarf2out.h: Update.
7983 * final.c (final): Remove CFI notes.
7984 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
7985 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
7986 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
7987 * insn-notes.def (NOTE_INSN_CFI): New.
7988 (NOTE_INSN_CFI_LABEL): New.
7989 * rtl.h (union rtunion_def): Add rt_cfi member.
7990 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
7991
7992 2011-07-07 Richard Henderson <rth@redhat.com>
7993
7994 * dwarf2cfi.c: New file.
7995 * Makefile.in (OBJS): Add it.
7996 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
7997 * gengtype.c (open_base_files): Include dwarf2out.h.
7998 * coretypes.h (enum var_init_status): Move from ...
7999 * rtl.h: ... here.
8000 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
8001 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
8002 expand_builtin_dwarf_sp_column, init_return_column_size,
8003 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
8004 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
8005 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
8006 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
8007 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
8008 compute_barrier_args_size, dwarf2out_args_size,
8009 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
8010 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
8011 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
8012 queue_reg_save, dwarf2out_flush_queued_reg_saves,
8013 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
8014 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
8015 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
8016 dwarf2out_frame_debug_cfa_expression,
8017 dwarf2out_frame_debug_cfa_restore,
8018 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
8019 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
8020 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
8021 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
8022 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
8023 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
8024 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
8025 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
8026 dw_loc_descr_node): Move to dwarf2out.h.
8027 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
8028 mem_loc_descriptor): Export.
8029 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
8030 (dwarf2out_frame_init): Extract CIE generation code to
8031 dwarf2cfi_frame_init.
8032
8033 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
8034
8035 PR target/49660
8036 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
8037 MASK_V8PLUS, remove commented out flag and reorder.
8038
8039 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8040
8041 PR c/49644
8042 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
8043 one non-complex and one complex argument, call c_save_expr on both
8044 operands.
8045
8046 2011-07-07 Martin Jambor <mjambor@suse.cz>
8047
8048 PR middle-end/49495
8049 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
8050 (verify_cgraph_node): Some functinality moved to
8051 verify_edge_corresponds_to_fndecl, call it.
8052
8053 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8054
8055 * config.gcc (*local*): Remove.
8056 * doc/install-old.texi: Don't mention local configurations.
8057
8058 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8059
8060 PR debug/49522
8061 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
8062 referencing debug insns that have been reset.
8063 (dead_debug_insert_before): Don't assert reg is non-NULL,
8064 instead return immediately if it is NULL.
8065
8066 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8067
8068 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
8069
8070 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8071
8072 * hw-doloop.c: New file.
8073 * hw-doloop.h: New file.
8074 * Makefile.in (OBJS): Add hw-doloop.o.
8075 (hw-doloop.o): New rule.
8076 ($(obj_out_file)): Add hw-doloop.h dependency.
8077 * config/bfin/bfin.c: Include "hw-doloop.h".
8078 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
8079 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
8080 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
8081 type changed to hwloop_info. Return bool, true if the loop was
8082 successfully optimized. Remove code that was moved to
8083 hw-doloop.c, and adjust other parts.
8084 (hwloop_fail): New static function, containing parts that used
8085 to be in bfin_optimize_loop.
8086 (bfin_discover_loop, bfin_discover_loops, free_loops,
8087 bfin_reorder_loops): Remove.
8088 (hwloop_pattern_reg): New static function.
8089 (bfin_doloop_hooks): New variable.
8090 (bfin_reorg_loops): Remove most code, call reorg_loops.
8091 * config/bfin/bfin.md (doloop_end splitter): Also enable if
8092 loop counter is a memory_operand.
8093
8094 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
8095
8096 * config.gcc: Support --with-multilib-list for x86 Linux targets.
8097
8098 * configure.ac: Mention x86-64 for --with-multilib-list.
8099 * configure: Regenerated.
8100
8101 * config/i386/gnu-user64.h (SPEC_64): Support x32.
8102 (SPEC_32): Likewise.
8103 (ASM_SPEC): Likewise.
8104 (LINK_SPEC): Likewise.
8105 (TARGET_THREAD_SSP_OFFSET): Likewise.
8106 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
8107 (SPEC_X32): New.
8108
8109 * config/i386/i386.h (TARGET_X32): New.
8110 (TARGET_LP64): New.
8111 (LONG_TYPE_SIZE): Likewise.
8112 (POINTER_SIZE): Likewise.
8113 (POINTERS_EXTEND_UNSIGNED): Likewise.
8114 (OPT_ARCH64): Support x32.
8115 (OPT_ARCH32): Likewise.
8116
8117 * config/i386/i386.opt (mx32): New.
8118
8119 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
8120 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8121 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
8122 (GLIBC_DYNAMIC_LINKERX32): Likewise.
8123
8124 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
8125 (BIONIC_DYNAMIC_LINKERX32): Likewise.
8126 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
8127
8128 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
8129
8130 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
8131
8132 * doc/invoke.texi: Document -mx32.
8133
8134 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8135
8136 * doc/invoke.texi (mwords-little-endian): Deprecate.
8137 * config/arm/arm.opt (mwords-little-endian): Likewise.
8138 * config/arm/arm.c (arm_option_override): Warn about the deprecation
8139 of -mwords-little-endian.
8140
8141 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
8142
8143 * reload1.c (choose_reload_regs): Use mode sizes to check whether
8144 an old reload register completely defines the required value.
8145
8146 2011-07-07 Richard Guenther <rguenther@suse.de>
8147
8148 * fold-const.c (fold_unary_loc): Do not strip sign-changes
8149 for NEGATE_EXPR.
8150
8151 2011-07-07 Richard Guenther <rguenther@suse.de>
8152
8153 * tree-vrp.c (simplify_conversion_using_ranges): New function.
8154 (simplify_stmt_using_ranges): Call it.
8155
8156 2011-07-07 Kai Tietz <ktietz@redhat.com>
8157
8158 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
8159 (lookup_logical_inverted_value): Likewise.
8160 (simplify_bitwise_binary_1): Likewise.
8161 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
8162
8163 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8164
8165 * gcc.c (%[Spec]): Don't document.
8166 (struct spec_list): Update comment.
8167 (do_spec_1): Don't handle %[Spec].
8168 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
8169
8170 2011-07-07 Joseph Myers <joseph@codesourcery.com>
8171
8172 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
8173 default based on TARGET_ASM_NAMED_SECTION.
8174 * common/common-target.def (have_named_sections): Default to true.
8175 * common/config/default-common.c: Don't include tm.h.
8176 * common/config/picochip/picochip-common.c
8177 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
8178 * common/config/m32c/m32c-common.c: Remove.
8179 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
8180 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8181 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8182 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8183 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8184 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8185 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
8186
8187 2011-07-07 Jakub Jelinek <jakub@redhat.com>
8188
8189 PR middle-end/49640
8190 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
8191 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
8192
8193 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8194
8195 PR libmudflap/49550
8196 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
8197
8198 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8199
8200 PR target/39150
8201 * configure.ac (gcc_cv_as_hidden): Also accept
8202 x86_64-*-solaris2.1[0-9]*.
8203 (gcc_cv_as_cfi_directive): Likewise.
8204 (gcc_cv_as_comdat_group_group): Likewise.
8205 (set_have_as_tls): Likewise.
8206 * configure: Regenerate.
8207 * config.gcc (i[34567]86-*-solaris2*): Also handle
8208 x86_64-*-solaris2.1[0-9]*.
8209 * config.host (i[34567]86-*-solaris2*): Likewise.
8210 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
8211 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
8212 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
8213 (TARGET_LD_EMULATION): Use it.
8214 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
8215 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
8216 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
8217 (ASM_CPU64_DEFAULT_SPEC): Define.
8218 (ASM_CPU_SPEC): Use %(asm_cpu_default).
8219 (ASM_SPEC): Redefine.
8220 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
8221 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
8222 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
8223 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
8224 configuration.
8225 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
8226
8227 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8228
8229 * config/sol2.h (ASM_SPEC): Split into ...
8230 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
8231 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
8232 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
8233 (ASM_SPEC): Use ASM_SPEC_BASE.
8234 * config/sparc/sol2.h (ASM_SPEC): Redefine.
8235
8236 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
8237
8238 * config/avr/avr.md (*reload_insi): Change predicate #1 to
8239 const_int_operand. Ditto for peep2 producing this insn.
8240 Add argument to output_reload_insisf call.
8241 (*movsi,*movsf): Add argument to output_movsisf call.
8242 (*reload_insf): New insn and new peep2 to produce it.
8243 * config/avr/avr-protos.h (output_movsisf): Change prototype.
8244 (output_reload_insisf): Change prototype.
8245 * config/avr/avr.c (avr_asm_len): New function.
8246 (output_reload_insisf): Rewrite.
8247 (output_movsisf): Change prototype. output_reload_insisf for
8248 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
8249 (adjust_insn_length): Add argument to output_movsisf and
8250 output_reload_insisf call.
8251
8252 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
8253
8254 * emit-rtl.c (paradoxical_subreg_p): New function.
8255 * rtl.h (paradoxical_subreg_p): Declare.
8256 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
8257 apply_distributive_law, simplify_comparison, simplify_set): Use it.
8258 * cse.c (record_jump_cond, cse_insn): Likewise.
8259 * expr.c (force_operand): Likewise.
8260 * rtlanal.c (num_sign_bit_copies1): Likewise.
8261 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
8262 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
8263 (push_reload): Use precision to check for paradoxical subregs.
8264 * expmed.c (extract_bit_field_1): Likewise.
8265
8266 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
8267 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
8268 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
8269 simplify_set, simplify_logical, expand_compound_operation,
8270 make_extraction, force_to_mode, if_then_else_cond, extended_count,
8271 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
8272 record_value_for_reg): Likewise.
8273 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
8274 * simplify-rtx. c (simplify_unary_operation_1,
8275 simplify_binary_operation_1, simplify_const_relational_operation):
8276 Likewise.
8277
8278 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
8279 instead of GET_MODE_BITSIZE where appropriate.
8280 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
8281 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
8282 init_num_sign_bit_copies_in_rep): Likewise.
8283 * cse.c (fold_rtx, cse_insn): Likewise.
8284 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
8285 * simplify-rtx.c (simplify_unary_operation_1,
8286 simplify_const_unary_operation, simplify_binary_operation_1,
8287 simplify_const_binary_operation, simplify_ternary_operation,
8288 simplify_const_relational_operation, simplify_subreg): Likewise.
8289 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
8290 simplify_if_then_else, simplify_set, expand_compound_operation,
8291 expand_field_assignment, make_extraction, if_then_else_cond,
8292 make_compound_operation, force_to_mode, make_field_assignment,
8293 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
8294 extended_count, try_widen_shift_mode, simplify_shift_const_1,
8295 simplify_comparison, record_promoted_value, simplify_compare_const,
8296 record_dead_and_set_regs_1): Likewise.
8297
8298 Revert:
8299 * simplify-rtx.c (simplify_const_binary_operation): Use the
8300 shift_truncation_mask hook instead of performing modulo by width.
8301 Compare against mode precision, not bitsize.
8302 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8303 Use shift_truncation_mask instead of constructing the value manually.
8304
8305 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
8306
8307 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
8308 declaration.
8309 (rs6000_save_toc_in_prologue_p): Ditto.
8310
8311 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
8312 up the static chain (r11) during indirect function calls.
8313 (-msave-toc-indirect): New undocumented debug switch.
8314
8315 * config/rs6000/rs6000.c (struct machine_function): Add
8316 save_toc_in_prologue field to note whether the prologue needs to
8317 save the TOC value in the reserved stack location.
8318 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
8319 to save the TOC in the prologue, do so.
8320 (rs6000_trampoline_init): Don't allow creating AIX style
8321 trampolines if -mno-r11 is in effect.
8322 (rs6000_call_indirect_aix): New function to create AIX style
8323 indirect calls, adding support for -mno-r11 to suppress loading
8324 the static chain, and saving the TOC in the prologue instead of
8325 the call body.
8326 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
8327 TOC in the prologue.
8328
8329 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
8330 register numbers.
8331 (TOC_REGNUM): Ditto.
8332 (STATIC_CHAIN_REGNUM): Ditto.
8333 (ARG_POINTER_REGNUM): Ditto.
8334 (SFP_REGNO): Delete, unused.
8335 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
8336 function descriptor offsets.
8337 (TOC_SAVE_OFFSET_64BIT): Ditto.
8338 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
8339 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
8340 (AIX_FUNC_DESC_SC_32BIT): Ditto.
8341 (AIX_FUNC_DESC_SC_64BIT): Ditto.
8342 (ptrload): New mode attribute for the appropriate load of a pointer.
8343 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
8344 (call_indirect_aix64): Ditto.
8345 (call_value_indirect_aix32): Ditto.
8346 (call_value_indirect_aix64): Ditto.
8347 (call_indirect_nonlocal_aix32_internal): Ditto.
8348 (call_indirect_nonlocal_aix32): Ditto.
8349 (call_indirect_nonlocal_aix64_internal): Ditto.
8350 (call_indirect_nonlocal_aix64): Ditto.
8351 (call): Rewrite AIX indirect function calls. Add support for
8352 eliminating the static chain, and for moving the save of the TOC
8353 to the function prologue.
8354 (call_value): Ditto.
8355 (call_indirect_aix<ptrsize>): Ditto.
8356 (call_indirect_aix<ptrsize>_internal): Ditto.
8357 (call_indirect_aix<ptrsize>_internal2): Ditto.
8358 (call_indirect_aix<ptrsize>_nor11): Ditto.
8359 (call_value_indirect_aix<ptrsize>): Ditto.
8360 (call_value_indirect_aix<ptrsize>_internal): Ditto.
8361 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
8362 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
8363 (call_nonlocal_aix32): Relocate in the rs6000.md file.
8364 (call_nonlocal_aix64): Ditto.
8365
8366 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
8367 -mno-r11 documentation.
8368
8369 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8370
8371 PR other/49658
8372 * doc/extend.texi (Compound Literals): Fix typo.
8373
8374 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
8375
8376 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
8377
8378 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
8379
8380 * configure.ac (plugin-version.h): Generate
8381 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
8382 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
8383 macros.
8384
8385 * configure: Regenerate.
8386
8387 * doc/plugins.texi (Building GCC plugins): Mention
8388 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
8389
8390 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8391
8392 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
8393 * combine.c (make_extraction, gen_lowpart_or_truncate,
8394 apply_distributive_law, simplify_comparison,
8395 reg_truncated_to_mode, record_truncated_value): Use it.
8396 * cse.c (notreg_cost): Likewise.
8397 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8398 * expr.c (convert_move, convert_modes): Likewise.
8399 * optabs.c (expand_binop, expand_unop): Likewise.
8400 * postreload.c (move2add_last_label): Likewise.
8401 * regmove.c (optimize_reg_copy_3): Likewise.
8402 * rtlhooks.c (gen_lowpart_general): Likewise.
8403 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8404
8405 2011-07-06 Joseph Myers <joseph@codesourcery.com>
8406
8407 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
8408
8409 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8410
8411 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
8412 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
8413 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
8414 (simplify_const_unary_operation, simplify_binary_operation_1,
8415 simplify_const_binary_operation, simplify_const_relational_operation):
8416 Use them. Use GET_MODE_MASK for masking and sign-extensions.
8417 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
8418 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
8419 simplify_shift_const_1, simplify_comparison): Likewise.
8420 * expr.c (convert_modes): Likewise.
8421 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
8422 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
8423 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
8424
8425 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
8426
8427 2011-07-06 Richard Guenther <rguenther@suse.de>
8428
8429 PR tree-optimization/49645
8430 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
8431 register variables.
8432 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
8433 in type qualification here ...
8434 (copy_reference_ops_from_ref): ... not here.
8435 (vn_reference_lookup_3): ... or here.
8436 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
8437 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
8438
8439 2011-07-06 Ian Lance Taylor <iant@google.com>
8440
8441 * doc/install.texi (Configuration): It's
8442 --enable-gnu-indirect-function, not --enable-indirect-function.
8443
8444 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
8445
8446 * simplify-rtx.c (simplify_const_binary_operation): Use the
8447 shift_truncation_mask hook instead of performing modulo by width.
8448 Compare against mode precision, not bitsize.
8449 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
8450 Use shift_truncation_mask instead of constructing the value manually.
8451
8452 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
8453
8454 PR middle-end/47383
8455 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
8456 address computation and convert to address_mode if needed.
8457
8458 2011-07-06 Richard Guenther <rguenther@suse.de>
8459
8460 * tree.c (build_common_tree_nodes_2): Merge with
8461 build_common_tree_nodes.
8462 * tree.h (build_common_tree_nodes): Adjust prototype.
8463 (build_common_tree_nodes_2): Remove.
8464 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
8465 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
8466
8467 2011-07-05 Jakub Jelinek <jakub@redhat.com>
8468
8469 PR tree-optimization/49618
8470 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
8471 t recurse on the decl.
8472 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
8473 return true if expr isn't known to be defined in current
8474 TU or some other LTO partition.
8475
8476 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
8477
8478 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
8479 override CASE_VALUES_THRESHOLD.
8480
8481 * stmt.c (toplevel): Include params.h.
8482 (case_values_threshold): Use the --param case-values-threshold
8483 value if non-zero, otherwise use machine dependent value.
8484 (expand_case): Use case_values_threshold.
8485
8486 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
8487
8488 * doc/invoke.texi (--param case-values-threshold): Document.
8489
8490 2011-07-05 Richard Henderson <rth@redhat.com>
8491
8492 * dwarf2out.c (dwarf2out_cfi_label): Make static.
8493 (dwarf2out_flush_queued_reg_saves): Make static.
8494 (dwarf2out_reg_save): Remove.
8495 (dwarf2out_return_save): Remove.
8496 (dwarf2out_return_reg): Remove.
8497 (dwarf2out_reg_save_reg): Remove.
8498 (dwarf2out_def_cfa): Merge into ...
8499 (dwarf2out_frame_init): ... here.
8500 * dwarf2out.h, tree.h: Remove declarations as necessary.
8501
8502 2011-07-05 Richard Henderson <rth@redhat.com>
8503
8504 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
8505 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8506 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
8507 the alloc insn.
8508
8509 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
8510 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
8511 (process_epilogue): Don't call dwarf2out_def_cfa.
8512
8513 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
8514 indicate the return address save.
8515 (process_cfa_register): Likewise.
8516
8517 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
8518 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
8519
8520 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
8521 for ar.pfs save at alloc insn.
8522
8523 2011-07-05 Richard Henderson <rth@redhat.com>
8524
8525 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
8526 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
8527 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
8528 stack pointer save.
8529 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
8530 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
8531 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
8532 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
8533
8534 2011-07-05 Richard Henderson <rth@redhat.com>
8535
8536 * config/vax/vax.md (define_c_enum unspecv): New. Define the
8537 VUNSPEC_* constants here instead of via define_constants.
8538 (VUNSPEC_PEM): New constant.
8539 (procedure_entry_mask): New insn.
8540 (prologue): New expander.
8541 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
8542 (vax_expand_prologue): Rename from vax_output_function_prologue;
8543 emit rtl instead of text.
8544 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
8545 (print_operand): Add 'x' prefix.
8546
8547 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8548
8549 PR middle-end/47715
8550 * calls.c (precompute_register_parameters): Promote the function
8551 argument before checking non-legitimate constant.
8552
8553 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8554
8555 PR tree-optimization/47654
8556 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
8557 (lst_do_strip_mine_loop): Return an int.
8558 (lst_do_strip_mine): Same.
8559 (scop_do_strip_mine): Same.
8560 (scop_do_block): Loop blocking should strip-mine at least two loops.
8561 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
8562 (scop_do_interchange): Same.
8563 * graphite-poly.h (scop_do_interchange): Update declaration.
8564 (scop_do_strip_mine): Same.
8565
8566 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8567
8568 * graphite-clast-to-gimple.c (precision_for_value): Removed.
8569 (precision_for_interval): Removed.
8570 (gcc_type_for_interval): Use mpz_sizeinbase.
8571
8572 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8573
8574 * graphite-ppl.h (value_max): Correct computation of max.
8575
8576 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
8577
8578 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
8579
8580 2011-07-05 Richard Guenther <rguenther@suse.de>
8581
8582 * c-decl.c (c_init_decl_processing): Defer building common
8583 tree nodes to c_common_nodes_and_builtins.
8584
8585 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
8586
8587 PR tree-optimization/49580
8588 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
8589 the loop's number of iterations.
8590 * tree-parloops.c (transform_to_exit_first_loop): Add the
8591 handling of the loop's number of iterations before the call
8592 to gimple_duplicate_sese_tail.
8593 Insert the stmt caclculating the new rhs of the loop's
8594 condition stmt to the preheader instead of iters_bb.
8595
8596 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
8597
8598 PR rtl-optimization/47449
8599 * fwprop.c (forward_propagate_subreg): Don't propagate hard
8600 register nor zero/sign extended hard register.
8601
8602 2011-07-05 Richard Guenther <rguenther@suse.de>
8603
8604 PR tree-optimization/49518
8605 PR tree-optimization/49628
8606 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
8607 irrelevant and invariant data-references.
8608 (vect_analyze_data_ref_access): For invariant loads clear the
8609 group association.
8610
8611 2011-07-04 Jakub Jelinek <jakub@redhat.com>
8612
8613 PR rtl-optimization/49619
8614 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
8615 pass VOIDmode as op0_mode to recursive call, and return temp even
8616 when different from tor, just if it is not IOR of the original
8617 PLUS arguments.
8618
8619 PR rtl-optimization/49472
8620 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
8621 negating MULT, negate the second operand instead of first.
8622 (simplify_binary_operation_1) <case MULT>: If one operand is
8623 a NEG and the other is MULT, don't attempt to optimize by negation
8624 of the MULT operand if it only moves the NEG operation around.
8625
8626 PR debug/49602
8627 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
8628 get_current_def return value if it can't be trusted to be
8629 the current value of the variable in the current bb.
8630
8631 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
8632
8633 PR target/49600
8634 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
8635 general register to memory for !TARGET_INTER_UNIT_MOVES.
8636
8637 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8638
8639 PR target/44643
8640 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
8641 instead of TREE_READONLY.
8642
8643 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8644
8645 * doc/extend.texi (AVR Built-in Functions): Update documentation
8646 of __builtin_avr_fmul*.
8647 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
8648 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
8649 * config/avr/avr.md (fmul): Rename to fmul_insn.
8650 (fmuls): Rename to fmuls_insn.
8651 (fmulsu): Rename to fmulsu_insn.
8652 (fmul,fmuls,fmulsu): New expander.
8653 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
8654 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
8655 * config/avr/libgcc.S (__fmul): New function.
8656 (__fmuls): New function.
8657 (__fmulsu,__fmulsu_exit): New function.
8658
8659 2011-07-04 Richard Guenther <rguenther@suse.de>
8660
8661 PR tree-optimization/49615
8662 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
8663 basic-block index check.
8664
8665 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
8666
8667 * longlong.h (count_leading_zeros, count_trailing_zeros,
8668 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
8669 resp. 64.
8670
8671 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
8672
8673 PR tree-optimization/49610
8674 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
8675 a basic block.
8676
8677 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
8678 Olivier Hainque <hainque@adacore.com>
8679 Nicolas Setton <setton@adacore.com>
8680
8681 * tree.h (TYPE_ARTIFICIAL): New flag.
8682 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
8683 the DIE of the type if it is artificial.
8684 (gen_array_type_die): Likewise.
8685 (gen_enumeration_type_die): Likewise.
8686 (gen_struct_or_union_type_die): Likewise.
8687 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
8688 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
8689
8690 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8691
8692 * tree-object-size.c (pass_through_call): Handle
8693 BUILT_IN_ASSUME_ALIGNED.
8694
8695 2011-07-01 Martin Jambor <mjambor@suse.cz>
8696
8697 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
8698
8699 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
8700
8701 PR middle-end/48016
8702 * explow.c (update_nonlocal_goto_save_area): Use proper mode
8703 for stack save area.
8704 * function.c (expand_function_start): Likewise.
8705
8706 2011-07-01 Richard Guenther <rguenther@suse.de>
8707
8708 PR middle-end/49596
8709 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
8710 may have unknown refs.
8711
8712 2011-07-01 Kai Tietz <ktietz@redhat.com>
8713
8714 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
8715
8716 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8717
8718 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
8719 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
8720 (Specific, mips-sgi-irix6): Likewise.
8721
8722 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8723
8724 PR libmudflap/49549
8725 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
8726
8727 2011-07-01 Jakub Jelinek <jakub@redhat.com>
8728
8729 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
8730 [idx]= and [idx1 ... idx2]= before initializers if needed for
8731 array initializers.
8732
8733 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
8734
8735 * config.gcc (score-*-elf): Remove score7.o.
8736 * config/score/t-score-elf: Likewise.
8737 * config/score/score.c: Merge score7 to score.c and
8738 remove forwarding functions.
8739 * config/score/score7.c: Deleted.
8740 * config/score/score7.h: Deleted.
8741
8742 2011-07-01 Richard Guenther <rguenther@suse.de>
8743
8744 PR tree-optimization/49603
8745 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
8746
8747 2011-06-30 Martin Jambor <mjambor@suse.cz>
8748
8749 * tree-sra.c (struct access): Rename total_scalarization to
8750 grp_total_scalarization
8751 (completely_scalarize_var): New function.
8752 (sort_and_splice_var_accesses): Set total_scalarization in the
8753 representative access.
8754 (analyze_access_subtree): Propagate total scalarization accross the
8755 tree, no holes in totally scalarized trees, simplify coverage
8756 computation.
8757 (analyze_all_variable_accesses): Call completely_scalarize_var instead
8758 of completely_scalarize_record.
8759
8760 2011-06-30 Richard Henderson <rth@redhat.com>
8761
8762 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
8763 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
8764 * config/i386/i386.c: Don't include dwarf2out.h.
8765 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
8766 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
8767 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
8768 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
8769 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
8770
8771 2011-06-30 Richard Henderson <rth@redhat.com>
8772
8773 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
8774 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
8775 * final.c (final_scan_insn): Look for it, and invoke
8776 dwarf2out_frame_debug before the insn if found.
8777
8778 2011-06-30 Richard Henderson <rth@redhat.com>
8779
8780 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
8781 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
8782
8783 2011-06-30 Richard Henderson <rth@redhat.com>
8784
8785 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
8786 Define a vector of this type.
8787 (regs_saved_in_regs): Use a VEC.
8788 (num_regs_saved_in_regs): Remove.
8789 (compare_reg_or_pc): New.
8790 (record_reg_saved_in_reg): Split out from...
8791 (dwarf2out_flush_queued_reg_saves): ... here.
8792 (clobbers_queued_reg_save): Update for VEC.
8793 (reg_saved_in): Likewise.
8794 (dwarf2out_frame_debug_init): Likewise.
8795 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
8796 (dwarf2out_frame_debug_cfa_register): Likewise.
8797
8798 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8799
8800 PR tree-optimization/49572
8801 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
8802 type of the RHS instead of that of the LHS for the expression type.
8803
8804 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
8805
8806 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
8807 unconditionally.
8808
8809 2011-06-30 Richard Guenther <rguenther@suse.de>
8810
8811 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
8812 * tree-ssa-structalias.c (create_variable_info_for): Do not
8813 add initial constraints for non-var-decls. Properly handle
8814 globals in other ltrans partitions.
8815 (intra_create_variable_infos): Manually create constraints for
8816 the fake no-alias parameter.
8817 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
8818 and assert there are no clones.
8819
8820 2011-06-30 Richard Guenther <rguenther@suse.de>
8821
8822 PR tree-optimization/46787
8823 * tree-data-ref.c (dr_address_invariant_p): Remove.
8824 (find_data_references_in_stmt): Invariant accesses are ok now.
8825 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
8826 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
8827 invariant loads.
8828
8829 2011-06-30 Martin Jambor <mjambor@suse.cz>
8830
8831 PR tree-optimization/49094
8832 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
8833 (build_accesses_from_assign): Use it.
8834
8835 2011-06-30 Jakub Jelinek <jakub@redhat.com>
8836
8837 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8838 handling of BUILT_IN_ASSUME_ALIGNED.
8839
8840 PR debug/49364
8841 * dwarf2out.c (output_abbrev_section): Don't return early
8842 if abbrev_die_table_in_use is 1.
8843 (dwarf2out_finish): Instead don't call output_abbrev_section
8844 nor emit abbrev_section_label in that case.
8845
8846 2011-06-30 Nick Clifton <nickc@redhat.com>
8847
8848 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
8849 for the V850E.
8850
8851 2011-06-30 Jakub Jelinek <jakub@redhat.com>
8852
8853 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
8854 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
8855
8856 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
8857
8858 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
8859 both pattern and original statements if necessary.
8860 (vect_transform_loop): Likewise.
8861 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
8862 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
8863 Mark the pattern statement only if the original statement doesn't
8864 have its own uses.
8865 (process_use): Call vect_mark_relevant with additional parameter.
8866 (vect_mark_stmts_to_be_vectorized): Likewise.
8867 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
8868 (vect_analyze_stmt): Handle both pattern and original statements
8869 if necessary.
8870 (vect_transform_stmt): Don't store vectorized pattern statement
8871 in the original statement.
8872 (vect_is_simple_use_1): Use related pattern statement only if the
8873 original statement is irrelevant.
8874 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
8875
8876 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
8877
8878 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
8879 option.
8880 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
8881 entry.
8882 (TARGET_AVX128_OPTIMAL): New definition.
8883 * config/i386/i386.c (initial_ix86_tune_features): Initialize
8884 X86_TUNE_AVX128_OPTIMAL entry.
8885 (ix86_option_override_internal): Enable the generation
8886 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
8887 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
8888 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
8889
8890 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
8891
8892 PR tree-optimization/49539
8893 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
8894 names by means of stmt_references_abnormal_ssa_name.
8895 (associate_plusminus): Call can_propagate_from before propagating
8896 from definition statements.
8897 (ssa_forward_propagate_and_combine): Remove superfluous newline.
8898
8899 2011-06-29 Richard Guenther <rguenther@suse.de>
8900
8901 * doc/invoke.texi: Document -scev dump modifier.
8902 * tree-pass.h (TDF_SCEV): New dump flag.
8903 * tree-dump.c (dump_option_value_in): Add scev.
8904 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
8905 * tree-scalar-evolution.c: Likewise.
8906
8907 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
8908
8909 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
8910 (cxa_type_match): Correct declaration.
8911 (__gnu_unwind_pr_common): Reconstruct additional indirection
8912 when __cxa_type_match returns succeeded_with_ptr_to_base.
8913
8914 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8915
8916 PR rtl-optimization/49114
8917 * reload.c (struct replacement): Remove SUBREG_LOC member.
8918 (push_reload): Do not set it.
8919 (push_replacement): Likewise.
8920 (subst_reload): Remove dead code.
8921 (copy_replacements): Remove assertion.
8922 (copy_replacements_1): Do not handle SUBREG_LOC.
8923 (move_replacements): Likewise.
8924 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
8925 Detect subregs via recursive descent instead of via SUBREG_LOC.
8926
8927 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8928
8929 * config/avr/avr.c (avr_encode_section_info): Dispatch to
8930 default_encode_section_info.
8931
8932 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
8933
8934 PR tree-optimization/49545
8935 * builtins.c (get_object_alignment_1): Update function comment.
8936 Do not use DECL_ALIGN for functions, but test
8937 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
8938 * fold-const.c (get_pointer_modulus_and_residue): Don't check
8939 for functions here.
8940 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8941
8942 2011-06-29 Jakub Jelinek <jakub@redhat.com>
8943
8944 PR debug/49567
8945 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
8946 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
8947
8948 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8949
8950 PR target/34734
8951 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
8952 about uninitialized data attributed 'progmem' from here...
8953 (avr_encode_section_info): ...to this new function.
8954 (TARGET_ENCODE_SECTION_INFO): New define.
8955 (avr_section_type_flags): For data in ".progmem.data", remove
8956 section flag SECTION_WRITE.
8957
8958 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
8959
8960 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
8961 _xmulhisi3_exit.
8962 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
8963 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
8964 (__umulhisi3): Ditto.
8965 * config/avr/avr.md (mulhisi3): New insn expender.
8966 (umulhisi3): New insn expender.
8967 (*mulhisi3_call): New insn.
8968 (*umulhisi3_call): New insn.
8969
8970 2011-06-28 Joseph Myers <joseph@codesourcery.com>
8971
8972 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
8973
8974 2011-06-28 Richard Henderson <rth@redhat.com>
8975
8976 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
8977 all code and arguments that handled pushes. Update all callers.
8978
8979 2011-06-28 Richard Henderson <rth@redhat.com>
8980
8981 * config/arm/arm.c (arm_output_function_prologue): Don't call
8982 thumb1_output_function_prologue.
8983 (arm_expand_prologue): Avoid dead store.
8984 (number_of_first_bit_set): Use ctz_hwi.
8985 (thumb1_emit_multi_reg_push): New.
8986 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
8987 to emit the entire prologue as rtl.
8988 (thumb1_output_interwork): Split out from
8989 thumb1_output_function_prologue.
8990 (thumb1_output_function_prologue): Remove.
8991 (arm_attr_length_push_multi): Handle thumb1.
8992 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
8993 (prologue_thumb1_interwork): New.
8994 (*push_multi): Allow thumb1; use push_mult_memory_operand.
8995 * config/arm/predicates.md (push_mult_memory_operand): New.
8996
8997 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
8998
8999 * config/sparc/sync.md (*stbar): Delete.
9000 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
9001
9002 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
9003
9004 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
9005
9006 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9007
9008 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
9009 (TARGET_64BIT_DEFAULT): Define.
9010 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
9011 of tm_file.
9012 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
9013
9014 2011-06-28 Joseph Myers <joseph@codesourcery.com>
9015
9016 * common.opt (in_lto_p): New Variable entry.
9017 * flags.h (in_lto_p): Move to common.opt.
9018 * gcc.c: Include params.h.
9019 (set_option_handlers): Also use common_handle_option and
9020 target_handle_option.
9021 (main): Call global_init_params, finish_params and init_options_struct.
9022 * opts.c (debug_type_names): Move from toplev.c.
9023 (print_filtered_help): Access quiet_flag through opts pointer.
9024 (common_handle_option): Return early in the driver for some options.
9025 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
9026 opts pointer.
9027 * toplev.c (in_lto_p): Move to common.opt.
9028 (debug_type_names): Move to opts.c.
9029 * Makefile.in (OBJS): Remove opts.o.
9030 (OBJS-libcommon-target): Add opts.o.
9031 (gcc.o): Update dependencies.
9032
9033 2011-06-28 Kai Tietz <ktietz@redhat.com>
9034
9035 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
9036
9037 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9038
9039 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
9040 with '=' constraint modifier.
9041 (*divdf3_vfp): Likewise.
9042 ("*mulsf3_vfp"): Likewise.
9043 ("*muldf3_vfp"): Likewise.
9044 ("*mulsf3negsf_vfp"): Likewise.
9045 ("*muldf3negdf_vfp"): Likewise.
9046
9047 2011-06-28 Nick Clifton <nickc@redhat.com>
9048
9049 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
9050 relaxation when performing an incremental link.
9051
9052 2011-06-28 Kai Tietz <ktietz@redhat.com>
9053
9054 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
9055 within BB from last to first.
9056
9057 2011-06-28 Joseph Myers <joseph@codesourcery.com>
9058
9059 * genattr-common.c: New. Based on genattr.c.
9060 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
9061 (MOSTLYCLEANFILES): Add insn-attr-common.h.
9062 (opts.o): Update dependencies.
9063 (.PRECIOUS): Add insn-attr-common.h.
9064 (simple_rtl_generated_h): Add insn-attr-common.h.
9065 (build/genattr-common.o): New.
9066 (genprogrtl): Add attr-common.
9067 * genattr.c (main): Include insn-attr-common.h. Don't generate
9068 definitions of DELAY_SLOTS or INSN_SCHEDULING.
9069 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
9070
9071 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
9072
9073 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
9074 avr-*-* and avr-*-rtems* targets.
9075
9076 * config/avr/elf.h: New file.
9077 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
9078 (TARGET_ASM_SELECT_SECTION): Define.
9079 (INIT_SECTION_ASM_OP): Undefine.
9080 (FINI_SECTION_ASM_OP): Undefine.
9081 (READONLY_DATA_SECTION_ASM_OP): Undefine.
9082 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
9083 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
9084 * config/avr/avr.h:
9085 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
9086 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
9087 (MAX_OFILE_ALIGNMENT): Move to elf.h.
9088 (STRING_LIMIT): Move to elf.h.
9089 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
9090 (ASM_DECLARE_OBJECT_NAME): Remove.
9091 (ESCAPES): Remove.
9092 (ASM_OUTPUT_SKIP): Remove.
9093 (DWARF2_DEBUGGING_INFO): Remove.
9094 (OBJECT_FORMAT_ELF): Remove.
9095 (USER_LABEL_PREFIX): Remove.
9096 (ASM_OUTPUT_EXTERNAL): Remove.
9097 (ASM_OUTPUT_ASCII): Remove.
9098 (TYPE_ASM_OP): Remove.
9099 (SIZE_ASM_OP): Remove.
9100 (WEAK_ASM_OP): Remove.
9101 (STRING_ASM_OP): Remove.
9102 (SET_ASM_OP): Remove.
9103 (ASM_WEAKEN_LABEL): Remove.
9104 (TYPE_OPERAND_FMT): Remove.
9105 (ASM_DECLARE_FUNCTION_SIZE): Remove.
9106 (ASM_FINISH_DECLARE_OBJECT): Remove.
9107 (NO_DOLLAR_IN_LABEL): Remove.
9108 (ASM_GENERATE_INTERNAL_LABEL): Remove.
9109 (ASM_OUTPUT_CASE_LABEL): Remove.
9110 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
9111 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
9112 (gas_output_ascii): Remove.
9113 (gas_output_limited_string): Remove.
9114 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
9115 * config/avr/avr-protos.h
9116 (gas_output_ascii): Remove prototye.
9117 (gas_output_limited_string): Remove prototype.
9118
9119 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
9120
9121 PR target/48637
9122 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
9123 asm operands.
9124
9125 2011-06-27 Jan Hubicka <jh@suse.cz>
9126
9127 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
9128 node instead of references in node.
9129
9130 2011-06-27 Richard Henderson <rth@redhat.com>
9131
9132 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
9133 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
9134 inside ifdef.
9135
9136 2011-06-27 Jakub Jelinek <jakub@redhat.com>
9137
9138 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
9139
9140 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
9141 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
9142 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
9143 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
9144 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
9145 (evaluate_stmt, execute_fold_all_builtins): Handle
9146 BUILT_IN_ASSUME_ALIGNED.
9147 * tree-ssa-dce.c (propagate_necessity): Likewise.
9148 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9149 call_may_clobber_ref_p_1): Likewise.
9150 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
9151 (expand_builtin_assume_aligned): New function.
9152 * doc/extend.texi (__builtin_assume_aligned): Document.
9153
9154 PR debug/49544
9155 * cselib.c (promote_debug_loc): If cselib_preserve_constants
9156 and l has two DEBUG_INSN owned locs instead of just one, adjust
9157 the second location's setting_insn too.
9158
9159 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9160
9161 PR libmudflap/38738
9162 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
9163
9164 2011-06-27 Nick Clifton <nickc@redhat.com>
9165
9166 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
9167 bit position of highest bit set into a count of the high zero bits.
9168
9169 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9170
9171 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
9172
9173 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9174
9175 PR lto/48492
9176 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
9177 to a NULL parent.
9178
9179 2011-06-27 Richard Guenther <rguenther@suse.de>
9180
9181 PR tree-optimization/49394
9182 * passes.c (execute_one_pass): Restore current_pass after
9183 applying IPA transforms.
9184
9185 2011-06-27 Kai Tietz <ktietz@redhat.com>
9186
9187 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
9188 out of type precision after operation.
9189 (find_bswap): Take for limit value the integer auto-promotion
9190 into account.
9191
9192 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9193
9194 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
9195 forward scan as well.
9196
9197 2011-06-27 Tristan Gingold <gingold@adacore.com>
9198
9199 PR target/44241
9200 * config/vms/vms-protos.h: New file.
9201 * config/vms/vms-crtlmap.map: New file.
9202 * config/vms/vms.c: New file.
9203 * config/vms/make-crtlmap.awk: New file.
9204 * config/vms/vms-crtl.h: File removed.
9205 * config/vms/vms-crtl-64.h: File removed.
9206 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
9207 * config/alpha/vms64.h: Do not include vms-crtl-64.h
9208 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
9209 clear some builtins on VMS. Calls vms_patch_builtins.
9210 (avms_asm_output_external): Remove.
9211 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
9212 (struct crtl_name_spec): Remove
9213 (DO_CTRL_NAMES): Remove.
9214 * config/ia64/vms.h (struct crtl_name_spec): Remove
9215 (DO_CTRL_NAMES): Remove.
9216 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
9217 clear some builtins on VMS. Calls vms_patch_builtins.
9218 (ia64_asm_output_external): Remove DO_CRTL_NAME.
9219 * config/ia64/vms64.h: Do not include vms-crtl-64.h
9220 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
9221
9222 2011-06-27 Tristan Gingold <gingold@adacore.com>
9223
9224 * config/alpha/alpha.c (alpha_end_function): Always generate .end
9225 directive on VMS.
9226
9227 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
9228
9229 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
9230 the function receives nonlocal gotos.
9231
9232 2011-06-27 Richard Guenther <rguenther@suse.de>
9233
9234 PR tree-optimization/49536
9235 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
9236 For non-scalar inner types use a scalar type according to
9237 the scalar inner mode.
9238
9239 2011-06-27 Richard Guenther <rguenther@suse.de>
9240
9241 PR tree-optimization/49365
9242 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
9243
9244 2011-06-27 Richard Guenther <rguenther@suse.de>
9245
9246 PR tree-optimization/49169
9247 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
9248 the alignment of function decls.
9249
9250 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
9251
9252 PR target/47997
9253 * config/darwin.c (darwin_mergeable_string_section): Place string
9254 constants in '.cstring' rather than '.const' when CF/NSStrings are
9255 active.
9256
9257 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
9258
9259 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
9260 (emit_save_register_window): Likewise.
9261 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
9262 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
9263 Swap back %o7/%i7 in register naming.
9264
9265 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
9266
9267 PR driver/49371
9268 * config/darwin.c (darwin_override_options): Improve warning when
9269 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
9270 is given with fpie/fPIE.
9271 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
9272 * config/darwin9.h (PIE_SPEC): New.
9273
9274 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
9275
9276 * timevar.c (timevar_print): Increase width for display of timevar
9277 name.
9278
9279 2011-06-24 Jakub Jelinek <jakub@redhat.com>
9280
9281 PR c++/46400
9282 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
9283 instead of TYPE_CHAIN for chain_next for types.
9284
9285 2011-06-24 Richard Henderson <rth@redhat.com>
9286
9287 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
9288 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
9289 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
9290 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
9291 (sparc_flat_expand_prologue): Emit individual instructions
9292 instead of one of the above.
9293
9294 2011-06-24 Easwaran Raman <eraman@google.com>
9295
9296 PR rtl-optimization/49429
9297 PR target/49454
9298 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
9299 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
9300 used to copy y into x.
9301 * calls.c (initialize_argument_information): Mark
9302 an argument addressable if it is passed by invisible reference.
9303 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
9304 if it is passed by reference.
9305
9306 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
9307
9308 PR rtl-optimization/49504
9309 * rtlanal.c (nonzero_bits1): Properly handle addition or
9310 subtraction of a pointer in Pmode if pointers extend unsigned.
9311 (num_sign_bit_copies1): Likewise.
9312
9313 2011-06-24 Martin Jambor <mjambor@suse.cz>
9314
9315 PR tree-optimizations/49516
9316 * tree-sra.c (sra_modify_assign): Choose the safe path for
9317 aggregate copies if we also did scalar replacements.
9318
9319 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9320
9321 PR target/49335
9322 * config/arm/predicates.md (add_operator): New.
9323 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9324
9325 2011-06-24 Andi Kleen <ak@linux.intel.com>
9326
9327 * tree-sra.c (type_internals_preclude_sra_p): Add msg
9328 parameter. Split up ifs and report reason in *msg.
9329 (reject): Add.
9330 (find_var_candiate): Add msg variable.
9331 Split up ifs and report reason to reject.
9332 (find_param_candidates): Add msg variable.
9333 Pass msg to type_internals_preclude_sra_p.
9334
9335 2011-06-23 Jeff Law <law@redhat.com>
9336
9337 PR middle-end/48770
9338 * reload.h (reload): Change to return a bool.
9339 * ira.c (ira): If requested by reload, run a fast DCE pass after
9340 reload has completed. Fix comment typo.
9341 * reload1.c (need_dce): New file scoped static.
9342 (reload): Set reload_completed here. Return whether or not a DCE
9343 pass after reload is needed.
9344 (delete_dead_insn): Set need_dce as needed.
9345
9346 PR middle-end/49465
9347 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
9348 to detect threading through joiner block. If there was already
9349 an edge to the new target, then do not change the PHI nodes.
9350
9351 2011-06-23 Jakub Jelinek <jakub@redhat.com>
9352
9353 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
9354 get_pointer_alignment to see if base isn't sufficiently aligned.
9355
9356 2011-06-23 Jan Hubicka <jh@suse.cz>
9357
9358 PR tree-optimize/49373
9359 * tree-pass.h (all_late_ipa_passes): Declare.
9360 * cgraphunit.c (init_lowered_empty_function): Fix properties.
9361 (cgraph_optimize): Execute late passes; remove unreachable funcions
9362 after materialization.
9363 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
9364 LTOing.
9365 * passes.c (all_late_ipa_passes): Declare.
9366 (dump_passes, register_pass): Handle late ipa passes.
9367 (init_optimization_passes): Move ipa_pta to late passes; schedule
9368 fixup_cfg at beggining of all_passes.
9369 (apply_ipa_transforms): New function.
9370 (execute_one_pass): When doing simple ipa pass, apply all transforms.
9371
9372 2011-06-23 Joseph Myers <joseph@codesourcery.com>
9373
9374 * params.c: Include common/common-target.h. Don't include tm.h.
9375 (lang_independent_params): Move from toplev.c.
9376 (global_init_params): New.
9377 * params.h (global_init_params): Declare.
9378 * target.def (default_params): Move to common-target.def.
9379 * toplev.c (lang_independent_options): Remove.
9380 (lang_independent_params): Move to params.c.
9381 (general_init): Use global_init_params.
9382 * common/common-target.def (option_default_params): Move from
9383 target.def.
9384 * common/config/ia64/ia64-common.c: Include params.h.
9385 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9386 from ia64.c.
9387 * common/config/rs6000/rs6000-common.c: Include params.h.
9388 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9389 from rs6000.c.
9390 * common/config/sh/sh-common.c: Include params.h.
9391 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9392 from sh.c.
9393 * common/config/spu/spu-common.c: Include params.h.
9394 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
9395 from spu.c.
9396 * config/ia64/ia64.c (ia64_option_default_params,
9397 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
9398 * config/rs6000/rs6000.c (rs6000_option_default_params,
9399 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
9400 * config/sh/sh.c (sh_option_default_params,
9401 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
9402 * config/spu/spu.c (spu_option_default_params,
9403 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
9404 * Makefile.in (OBJS): Remove params.o.
9405 (OBJS-libcommon-target): Add params.o.
9406 (params.o, $(common_out_object_file)): Update dependencies.
9407 * doc/tm.texi: Regenerate.
9408
9409 2011-06-23 Alan Modra <amodra@gmail.com>
9410
9411 PR bootstrap/49383
9412 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
9413 invocation for 2011-06-09 changes.
9414
9415 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9416
9417 PR libgomp/49490
9418 * omp-low.c (expand_omp_for_static_nochunk): Only
9419 use n ceil/ nthreads size for the first n % nthreads threads in the
9420 team instead of all threads except for the last few ones which
9421 get less work or none at all.
9422
9423 PR debug/49496
9424 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
9425 uses.
9426
9427 2011-06-22 Richard Guenther <rguenther@suse.de>
9428
9429 PR tree-optimization/49493
9430 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
9431 Refer to the alias target of variables.
9432 (associate_varinfo_to_alias_1): Remove.
9433 (ipa_pta_execute): Do not associate aliases with anything.
9434 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
9435 (cgraph_function_node): Likewise.
9436 (cgraph_function_or_thunk_node): Likewise.
9437 (varpool_variable_node): Likewise.
9438
9439 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9440
9441 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
9442 * config.gcc (arm*-*-linux*): Default to gnu tls.
9443 (arm*-*-*): Add --with-tls option.
9444 (all_defaults): Add 'tls'.
9445
9446 2011-06-22 Richard Henderson <rth@redhat.com>
9447
9448 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
9449 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
9450 (dwarf2out_frame_debug_cfa_window_save): Rename from
9451 dwarf2out_window_save; make static.
9452 * tree.h (dwarf2out_window_save): Don't declare.
9453
9454 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
9455 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
9456 (emit_save_register_window): Rename from gen_save_register_window;
9457 emit the insn and add REG_CFA_* notes.
9458 (sparc_expand_prologue): Update to match.
9459 * config/sparc/sparc.md (save_register_window_1): Simplify from
9460 save_register_window<P:mode>.
9461
9462 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
9463
9464 PR target/49497
9465 * config/i386/i386.md (*lea_general_2): Always allow SImode.
9466 (*lea_general_2_zext): Likewise.
9467 (imul to lea peepholes): Use const359_operand and check
9468 TARGET_PARTIAL_REG_STALL.
9469
9470 * config/i386/predicates.md (const359_operand): New.
9471
9472 2011-06-22 Michael Matz <matz@suse.de>
9473
9474 * cgraphunit.c (assemble_thunk): Use correct return type.
9475
9476 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
9477 Dmitry Melnik <dm@ispras.ru>
9478
9479 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
9480 (neon_output_shift_immediate): Ditto.
9481 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
9482 prototype.
9483 (neon_output_shift_immediate): Ditto.
9484 * config/arm/neon.md (vashl<mode>3): Modified constraint.
9485 (vashr<mode>3_imm): New insn pattern.
9486 (vlshr<mode>3_imm): Ditto.
9487 (vashr<mode>3): Modified constraint.
9488 (vlshr<mode>3): Ditto.
9489 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
9490 predicate.
9491 (imm_for_neon_rshift_operand): Ditto.
9492 (imm_lshift_or_reg_neon): Ditto.
9493 (imm_rshift_or_reg_neon): Ditto.
9494
9495 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
9496
9497 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9498
9499 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
9500 builtin calls even if likelyvalue is not CONSTANT.
9501 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
9502 Return get_value_for_expr of first operand
9503 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
9504 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
9505 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
9506 their non-checking counterparts.
9507 (call_may_clobber_ref_p_1): Likewise.
9508 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
9509 like their non-checking counterparts.
9510 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9511 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
9512 like their non-checking counterparts.
9513 (find_func_clobbers): Likewise.
9514 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
9515 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
9516
9517 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
9518 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
9519 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
9520 of base type reference as argument.
9521 (resolve_addr_in_expr): Likewise. Fix keep computation.
9522 (convert_descriptor_to_signed): Renamed to...
9523 (convert_descriptor_to_mode): ... this. For wider types convert to
9524 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
9525 (typed_binop): New function.
9526 (scompare_loc_descriptor, ucompare_loc_descriptor,
9527 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
9528 default to unsigned type instead of signed.
9529
9530 PR debug/47858
9531 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
9532 (gimple_build_debug_source_bind_stat): New prototype.
9533 (gimple_build_debug_source_bind): Define.
9534 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
9535 gimple_debug_source_bind_get_value,
9536 gimple_debug_source_bind_get_value_ptr,
9537 gimple_debug_source_bind_set_var,
9538 gimple_debug_source_bind_set_value): New inlines.
9539 * gimple.c (gimple_build_debug_source_bind_stat): New function.
9540 * gimple-pretty-print.c (dump_gimple_debug): Handle
9541 GIMPLE_DEBUG_SOURCE_BIND.
9542 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
9543 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
9544 * tree-parloops.c (eliminate_local_variables,
9545 separate_decls_in_region): Likewise.
9546 (separate_decls_in_region_debug): Renamed from
9547 separate_decls_in_region_debug_bind. Handle
9548 gimple_debug_source_bind_p.
9549 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
9550 prototypes.
9551 (DECL_HAS_DEBUG_ARGS_P): Define.
9552 (struct tree_function_decl): Add has_debug_args_flag field.
9553 * tree.c (debug_args_for_decl): New variable.
9554 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
9555 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
9556 (rewrite_debug_stmt_uses): New function.
9557 (rewrite_stmt): Use it to rewrite debug stmt uses.
9558 * rtl.def (DEBUG_PARAMETER_REF): New.
9559 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
9560 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
9561 DEBUG_PARAMETER_REF.
9562 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
9563 * print-rtl.c (print_rtx): Likewise.
9564 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
9565 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
9566 debug stmts in the first bb.
9567 * tree-inline.c (remap_ssa_name): If remapping default def
9568 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
9569 a source bind debug stmt.
9570 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
9571 (maybe_move_debug_stmts_to_successors): Likewise.
9572 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
9573 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
9574 debug args vector from old_decl to new_decl.
9575 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
9576 or modified parameters, add debug bind stmts before call
9577 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
9578 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
9579 on DECL_DEBUG_EXPRs from debug args vector.
9580 (expand_debug_source_expr): New function.
9581 (expand_debug_locations): Use it for source bind insns.
9582 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
9583 * var-tracking.c (prepare_call_arguments): Add debug args
9584 to call_arguments if any.
9585 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
9586 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
9587 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
9588 (get_ref_die_offset, parameter_ref_descriptor): New functions.
9589 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
9590 (gen_subprogram_die): Handle parameters identified by
9591 DEBUG_PARAMETER_REF.
9592
9593 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
9594
9595 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
9596 * doc/install.texi (Configuration): Document --with-tls.
9597 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
9598 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
9599 (arm_tls_descseq_addr): New.
9600 (legitimize_tls_address): Add tlsdesc support.
9601 (arm_cannot_copy_insn_p): Check for tlscall.
9602 (arm_emit_tls_decoration): Likewise.
9603 * config/arm/arm.h (TARGET_GNU2_TLS): New.
9604 (OPTION_DEFAULT_SPECS): Add with-tls support.
9605 * config/arm/arm.md (R1_REGNUM): Define.
9606 (tlscall): New.
9607 * config/arm/arm.opt (tls_type): New enumeration type and values.
9608 (mtls-dialect): New switch.
9609 * config/arm/arm-opts.h (enum tls_type): New.
9610
9611 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
9612
9613 * attribs.c (register_attribute): Added assert to check that all
9614 attribute specs are registered with a name that is not empty and
9615 does not start with '_'.
9616 (decl_attributes): Avoid the lookup of the "naked" attribute spec
9617 if the function has no attributes.
9618 * tree.c (is_attribute_with_length_p): Removed.
9619 (is_attribute_p): Removed.
9620 (private_is_attribute_p): New.
9621 (private_lookup_attribute): New.
9622 (lookup_attribute): Removed.
9623 (lookup_ident_attribute): New.
9624 (remove_attribute): Require the first argument to be in the form
9625 'text', not '__text__'. Updated asserts.
9626 (merge_attributes): Use lookup_ident_attributes instead of
9627 lookup_attribute.
9628 (merge_dllimport_decl_attributes): Use remove_attribute.
9629 (attribute_list_contained): Likewise.
9630 (attribute_list_equal): Immediately return 1 if the arguments are
9631 identical pointers.
9632 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
9633 'int'. Require the first argument to be in the form 'text', not
9634 '__text__'. Require the second argument to be an identifier.
9635 (lookup_attribute): Made inline. Require the first argument to be
9636 in the form 'text', not '__text__'.
9637 (private_is_attribute_p, private_lookup_attribute): New.
9638 Updated comments.
9639
9640 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
9641
9642 * builtins.c: Add sync_ or SYNC__ to builtin names.
9643 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
9644 * omp-low.c: Add sync_ or SYNC__ to builtin names.
9645
9646 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9647
9648 PR target/33049
9649 * config/avr/avr.md (extzv): New expander.
9650 (*extzv): New insn.
9651 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
9652 * config/avr/constraints.md (C04): New constraint.
9653 * doc/md.texi (Machine Constraints): Document it.
9654
9655 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9656
9657 PR middle-end/49489
9658 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
9659 unsignedp argument instead of 1 for clrsb_optab.
9660 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
9661 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
9662 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
9663 * optabs.c (widen_leading): Call widen_operand and expand_unop
9664 with 0 as unsignedp argument instead of 1 for clrsb_optab.
9665 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
9666
9667 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
9668
9669 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
9670
9671 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
9672
9673 * gensupport.c (add_define_attr): New static function.
9674 (is_predicable): Allow multi-alternative lists for the "predicable"
9675 attribute.
9676 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
9677 (process_one_cond_exec): Call alter_attrs_for_insn.
9678 * doc/md.texi (Defining Attributes): Mention some standard names.
9679 (Conditional Execution): Update documentation for "predicable".
9680
9681 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
9682 __builtin_clrsbll): Document.
9683 * doc/rtl.texi (clrsb): New entry.
9684 * optabs.c (widen_leading): Renamed from widen_clz. New argument
9685 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
9686 (expand_unop): Handle clrsb_optab.
9687 (init_optabs): Initialize it.
9688 * optabs.h (enum optab_index): New entry OTI_clrsb.
9689 (clrsb_optab): Define.
9690 * genopinit.c (optabs): Add an entry for it.
9691 * builtins.c (expand_builtin): Handle clrsb builtin functions.
9692 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
9693 BUILT_IN_CLRSBLL): New.
9694 * rtl.def (CLRSB): New code.
9695 * dwarf2out.c (mem_loc_descriptor): Handle it.
9696 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9697 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
9698 and popcount.
9699 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
9700 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
9701 (__ctzDI2): Move declaration.
9702 * config/bfin/bfin.md (clrsbsi2): New expander.
9703 (signbitssi2): Use the CLRSB rtx.
9704 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
9705 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
9706
9707 2011-06-21 Richard Guenther <rguenther@suse.de>
9708
9709 * ipa-inline-transform.c (inline_transform): Fix previous change.
9710
9711 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
9712
9713 PR tree-optimization/49478
9714 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
9715 with constant operand.
9716
9717 2011-06-21 Richard Guenther <rguenther@suse.de>
9718
9719 * ipa-inline-transform.c (inline_transform): Fix typo.
9720
9721 2011-06-21 Richard Guenther <rguenther@suse.de>
9722
9723 PR tree-optimization/49483
9724 * tree-vect-stmts.c (vectorizable_assignment): Also handle
9725 VIEW_CONVERT_EXPR conversions.
9726
9727 2011-06-21 Joseph Myers <joseph@codesourcery.com>
9728
9729 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
9730 * config/avr/avr-tables.opt: New file (generated).
9731 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
9732 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
9733 avr-mcus.def.
9734 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
9735 (avr_option_override): Don't process -mmcu= argument here. Set
9736 avr_current_device using avr_mcu_index.
9737 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
9738 * config/avr/avr.opt (mmcu=): Use Enum.
9739 * config/avr/t-avr (avr-devices.o): Update dependencies.
9740 ($(srcdir)/config/avr/avr-tables.opt): New.
9741 * target.def (help): Remove.
9742 * doc/tm.texi.in (TARGET_HELP): Remove.
9743 * doc/tm.texi: Regenerate.
9744 * opts.c: Don't include target.h.
9745 (common_handle_option): Don't call targetm.help.
9746 * system.h (TARGET_HELP): Poison.
9747 * Makefile.in (opts.o): Update dependencies.
9748
9749 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9750
9751 * config/usegld.h: New file.
9752 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
9753 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
9754 (LIB_SPEC): Likewise. Search /lib.
9755 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
9756 (RDYNAMIC_SPEC): Handle GNU ld.
9757 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
9758 Define.
9759 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
9760 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
9761 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
9762 (STACK_CHECK_STATIC_BUILTIN): Define.
9763 * config/sol2.opt (compat-bsd): Remove.
9764 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
9765 * config/sol2-bi.h: New file.
9766 * config/sol2-gld.h: Remove.
9767 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
9768 (NO_DBX_BNSYM_ENSYM): Remove.
9769 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9770 (STACK_CHECK_STATIC_BUILTIN): Remove.
9771 Test USE_GLD instead of TARGET_GNU_LD.
9772 * config/i386/sol2-10.h: Rename to ...
9773 * config/i386/sol2-bi.h .. this.
9774 (SUBTARGET_EXTRA_SPECS): Redefine.
9775 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
9776 (MULTILIB_DEFAULTS): Remove.
9777 (DEFAULT_ARCH32_P): Define.
9778 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
9779 (ARCH64_SUBDIR): Define.
9780 Test USE_GLD instead of TARGET_GNU_LD.
9781 (I386_EMULATION): Rename to ...
9782 (ARCH32_EMULATION): ... this.
9783 (X86_64_EMULATION): Rename to ...
9784 (ARCH64_EMULATION): ... this.
9785 (TARGET_LD_EMULATION): Remove.
9786 (LINK_ARCH_SPEC): Remove.
9787 * config/i386/sol2-gas.h: Remove.
9788 * config/i386/t-sol2-10: Rename to ...
9789 * config/i386/t-sol2-64: ... this.
9790 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
9791 (AS_SPARC64_FLAG): Define.
9792 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
9793 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
9794 depending on TARGET_CPU_DEFAULT.
9795 (CPP_CPU_SPEC): Redefine.
9796 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
9797 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
9798 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
9799 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
9800 ASM_ARCH_DEFAULT_SPEC): Redefine.
9801 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9802 LINK_ARCH_DEFAULT_SPEC.
9803 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
9804 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
9805 (ARCH64_SUBDIR): Define.
9806 (LINK_ARCH64_SPEC): Redefine.
9807 (CC1_SPEC): Redefine.
9808 (OPTION_DEFAULT_SPECS): Redefine.
9809 (MULTILIB_DEFAULTS): Define.
9810 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
9811 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
9812 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
9813 (NO_DBX_BNSYM_ENSYM): Remove.
9814 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
9815 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
9816 (TARGET_ASM_NAMED_SECTION): Likewise.
9817 (STACK_CHECK_STATIC_BUILTIN): Remove.
9818 * config/sparc/sol2-bi.h: Remove.
9819 * config/sparc/sol2-gas-bi.h: Remove.
9820 * config/sparc/sol2-gas.h: Remove.
9821 * config/sparc/sol2-gld-bi.h: Remove.
9822 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
9823 common parts ...
9824 (*-*-solaris2*): ... here.
9825
9826 2011-06-21 Christian Bruel <christian.bruel@st.com>
9827
9828 PR other/43564
9829 * ipa-inline.c (can_inline_edge_p): Check
9830 !DECL_DISREGARD_INLINE_LIMITS.
9831
9832 2011-06-21 Christian Bruel <christian.bruel@st.com>
9833
9834 PR middle-end/49139
9835 * cgraphunit.c (process_function_and_variable_attributes): warn when
9836 always_inline functions that are not inline.
9837 * ipa-inline-transform.c (inline_transform): Always call
9838 optimize_inline.
9839 * tree-inline.c (tree_inlinable_function_p): Use error instead
9840 of sorry.
9841 (expand_call_inline): Likewise.
9842
9843 2011-06-21 Jakub Jelinek <jakub@redhat.com>
9844
9845 * Makefile.in (dg_target_exps): Set.
9846 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
9847 instead of 7, try to divide it more evenly.
9848
9849 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
9850
9851 PR target/49089
9852 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
9853 (avx256_split_unaligned_store): New definition.
9854 (ix86_option_override_internal): Enable avx256 unaligned load/store
9855 splitting only when avx256_split_unaligned_load/store is set.
9856
9857 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
9858
9859 * regrename.c (scan_rtx_reg): Handle the case where we write to an
9860 open chain in a smaller mode without failing the entire block.
9861
9862 2011-06-21 Alan Modra <amodra@gmail.com>
9863
9864 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
9865 CONST high part large-toc address.
9866 (rs6000_tls_referenced_p): Make static.
9867 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
9868
9869 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9870
9871 PR target/49385
9872 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
9873 one of the operands is a register.
9874
9875 2011-06-20 Kai Tietz <ktietz@redhat.com>
9876
9877 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
9878 operations in combination with binary and.
9879
9880 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
9881
9882 * regrename.c (do_replace): Don't update notes.
9883
9884 2011-06-20 Alan Modra <amodra@gmail.com>
9885
9886 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
9887 of toc-relative address in CONST.
9888 (rs6000_delegitimize_address): Recognize changed address.
9889 (rs6000_legitimize_reload_address): Likewise.
9890 (rs6000_emit_move): Don't force these constants to memory.
9891 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
9892 toc-relative address in CONST.
9893 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
9894 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
9895
9896 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
9897
9898 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
9899 (count_trailing_zeros): Likewise.
9900
9901 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
9902
9903 PR other/49325
9904 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
9905 .init_array can be used with .ctors on targets.
9906 * configure: Regenerated.
9907
9908 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
9909
9910 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
9911 if the element type is volatile.
9912
9913 2011-06-18 Jan Hubicka <jh@suse.cz>
9914
9915 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
9916 extra name aliases.
9917 (lto_symtab_resolve_can_prevail_p): Likewise.
9918 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
9919 * cgraphbuild.c (record_reference): Remove extra body alias code.
9920 (mark_load): Likewise.
9921 (mark_store): Likewise.
9922 * cgraph.h (varpool_node): Remove extra_name filed;
9923 add alias_of and extraname_alias.
9924 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
9925 (varpool_alias_aliased_node): New inline function.
9926 (varpool_variable_node): New function.
9927 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
9928 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
9929 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
9930 (input_varpool_node): Likewise.
9931 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
9932 (varpool_externally_visible_p): Remove extra body alias code.
9933 (function_and_variable_visibility): Likewise.
9934 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
9935 (ipa_pta_execute): Use it.
9936 * varpool.c (varpool_remove_node): Remove extra name alias code.
9937 (varpool_mark_needed_node): Likewise.
9938 (varpool_analyze_pending_decls): Analyze aliases.
9939 (assemble_aliases): New functoin.
9940 (varpool_assemble_decl): Use it.
9941 (varpool_create_variable_alias): New function.
9942 (varpool_extra_name_alias): Rewrite.
9943 (varpool_for_node_and_aliases): New function.
9944
9945 2011-06-18 Jakub Jelinek <jakub@redhat.com>
9946
9947 PR target/49411
9948 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
9949 last_arg_constant and last argument doesn't match its predicate,
9950 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
9951 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
9952 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
9953 spelling of error message.
9954 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
9955 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
9956 const_0_to_255_operand instead of const_int_operand.
9957
9958 Revert:
9959 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
9960
9961 * config/i386/sse.md (blendbits): Remove mode attribute.
9962 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
9963 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
9964 Check integer value of operand 3 in insn constraint.
9965
9966 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
9967
9968 PR rtl-optimization/48542
9969 * reload.c (find_equiv_reg): Stop looking when finding a
9970 setjmp-type call.
9971 * reload1.c (reload_as_needed): Invalidate all reload
9972 registers when crossing a setjmp-type call.
9973
9974 2011-06-16 Jeff Law <law@redhat.com>
9975
9976 * tree-ssa-threadupdate.c (struct redirection_data): New field
9977 intermediate_edge.
9978 (THREAD_TARGET2): Define.
9979 (redirection_data_eq): Also check that the intermediate edge is equal.
9980 (lookup_redirection_data): Drop useless argument. Extract the
9981 outgoing_edge and intermediate edge from E. Callers updated.
9982 (copy_phi_args, update_destination_phis): New functions.
9983 (fix_duplicate_block_edges): Likewise.
9984 (create_edge_and_update_destination_phis): Duplicate all the edges
9985 hung off e->aux. Use copy_phi_args.
9986 (create_duplicates): Use fix_duplicate_block_edges.
9987 (fixup_template_block): Likewise.
9988 (redirect_edges): If necessary, redirect the joiner block's incoming
9989 edge to the duplicate of the joiner block.
9990 (thread_block): Don't muck up loops when threading through a joiner
9991 block.
9992 (thread_through_loop_header): Handle threading through a joiner block.
9993 (mark_threaded_blocks, register_jump_thread): Likewise.
9994 * tree-flow.h (register_jump_thread): Add new argument. Callers
9995 updated.
9996 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
9997 (thread_across_edge): Handle threading through a joiner block.
9998
9999 2011-06-16 Martin Jambor <mjambor@suse.cz>
10000
10001 PR tree-optimization/49343
10002 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
10003 calculate offset, provide 2nd operand for the new COMPONENT_REF.
10004
10005 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
10006
10007 * config/darwin-protos.h (machopic_select_rtx_section): Move to
10008 inside RTX_CODE ifdef.
10009
10010 2011-06-16 Tom de Vries <tom@codesourcery.com>
10011
10012 PR target/45098
10013 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
10014 Disallow NULL pointer for pointer arithmetic.
10015
10016 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10017
10018 PR target/49398
10019 Revert.
10020 2011-06-10 Wei Guozhi <carrot@google.com>
10021
10022 PR target/45335
10023 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
10024 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
10025 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
10026 related peephole2.
10027 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
10028 related peephole2.
10029 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
10030 (arm_legitimate_ldrd_p): New prototype.
10031 (arm_output_ldrd): New prototype.
10032 * config/arm/arm.c (arm_check_ldrd_operands): New function.
10033 (arm_legitimate_ldrd_p): New function.
10034 (arm_output_ldrd): New function.
10035
10036 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
10037
10038 PR middle-end/46500
10039 * doc/tm.texi.in: Update Copyright date.
10040 * doc/tm.texi: Regenerate.
10041 * targhooks.c (default_setup_incoming_varargs): Replace
10042 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10043 (default_pretend_outgoing_varargs_named): Likewise.
10044 (hook_pass_by_reference_must_pass_in_stack): Likewise.
10045 (hook_callee_copies_named): Likewise.
10046 (default_function_arg_advance): Likewise.
10047 (default_function_arg): Likewise.
10048 (default_function_incoming_arg): Likewise.
10049 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10050 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10051 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10052 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10053 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10054 * targhooks.h (default_setup_incoming_varargs): Likewise.
10055 (default_pretend_outgoing_varargs_named): Likewise.
10056 (hook_pass_by_reference_must_pass_in_stack): Likewise.
10057 (hook_callee_copies_named): Likewise.
10058 (default_function_arg_advance): Likewise.
10059 (default_function_arg): Likewise.
10060 (default_function_incoming_arg): Likewise.
10061 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
10062 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
10063 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
10064 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
10065 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
10066 * target.def (pass_by_reference): Likewise.
10067 (setup_incoming_varargs, strict_argument_naming): Likewise.
10068 (pretend_outgoing_varargs_named, callee_copies): Likewise.
10069 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
10070 (function_incoming_arg): Likewise.
10071 * target.h: Don't include "tm.h" .
10072 (cumulative_args_t): New typedef.
10073 [GCC_TM_H] (get_cumulative_args): New static inline function.
10074 [GCC_TM_H] (pack_cumulative_args): Likewise.
10075 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
10076 argument type with cumulative_args_t.
10077 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
10078 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
10079 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
10080 (frv_arg_partial_bytes, frv_function_arg): Likewise.
10081 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
10082 (frv_function_arg_1): Likewise.
10083 * config/s390/s390.c (s390_pass_by_reference): Likewise.
10084 (s390_function_arg_advance, s390_function_arg): Likewise.
10085 * config/m32c/m32c.c (m32c_function_arg): Likewise.
10086 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
10087 (m32c_strict_argument_naming): Likewise.
10088 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
10089 (spu_function_arg_advance): Likewise.
10090 (spu_setup_incoming_varargs): Likewise. Make static.
10091 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
10092 Remove prototype.
10093 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
10094 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10095 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
10096 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
10097 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
10098 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
10099 (mep_pass_by_reference, mep_function_arg): Likewise.
10100 (mep_function_arg_advance): Likewise.
10101 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
10102 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
10103 (m32r_function_arg, m32r_function_arg_advance): Likewise.
10104 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
10105 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
10106 (ix86_function_arg, ix86_pass_by_reference): Likewise.
10107 (ix86_setup_incoming_varargs): Likewise.
10108 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
10109 (sh_strict_argument_naming): Likewise.
10110 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
10111 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
10112 (sh_function_arg_advance, sh_function_arg): Likewise.
10113 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
10114 (pdp11_function_arg_advance): Likewise.
10115 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
10116 Likewise.
10117 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
10118 * config/avr/avr.c (avr_function_arg): Likewise.
10119 (avr_function_arg_advance): Likewise.
10120 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
10121 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
10122 (xtensa_function_arg_1): Likewise.
10123 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
10124 Likewise.
10125 (xstormy16_function_arg): Likewise.
10126 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
10127 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
10128 (fr30_function_arg_advance): Likewise.
10129 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
10130 (lm32_function_arg, lm32_function_arg_advance): Likewise.
10131 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
10132 (moxie_function_arg, moxie_function_arg_advance): Likewise.
10133 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
10134 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
10135 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
10136 (cris_function_arg, cris_function_incoming_arg): Likewise.
10137 (cris_function_arg_advance, cris_function_arg_1): Likewise.
10138 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
10139 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
10140 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
10141 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
10142 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
10143 (mn10300_arg_partial_bytes): Likewise.
10144 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
10145 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
10146 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
10147 (ia64_function_arg_1): Likewise.
10148 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
10149 (m68k_function_arg): Likewise.
10150 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
10151 (rs6000_function_arg, setup_incoming_varargs): Likewise.
10152 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
10153 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
10154 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
10155 (picochip_arg_advance): Likewise.
10156 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
10157 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
10158 (mcore_function_arg_advance): Likewise.
10159 * config/score/score.c (score_pass_by_reference): Likewise.
10160 (score_function_arg_advance): Likewise.
10161 (score_arg_partial_bytes): Likewise. Make static.
10162 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
10163 * config/arm/arm.c (arm_arg_partial_bytes): Replace
10164 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10165 (arm_function_arg, arm_function_arg_advance): Likewise.
10166 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
10167 * config/pa/pa.c (pa_pass_by_reference): Likewise.
10168 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
10169 (pa_function_arg): Likewise.
10170 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
10171 (mips_function_arg, mips_function_arg_advance): Likewise.
10172 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
10173 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
10174 * config/vax/vax.c (vax_function_arg): Likewise.
10175 (vax_function_arg_advance): Likewise.
10176 * config/h8300/h8300.c (h8300_function_arg): Likewise.
10177 (h8300_function_arg_advance): Likewise.
10178 * config/v850/v850.c (v850_pass_by_reference): Likewise.
10179 (v850_strict_argument_naming, v850_function_arg): Likewise.
10180 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
10181 (v850_setup_incoming_varargs): Likewise.
10182 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
10183 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
10184 (mmix_function_arg, mmix_pass_by_reference): Likewise.
10185 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
10186 with const void *.
10187 * config/bfin/bfin.c (setup_incoming_varargs): Replace
10188 CUMULATIVE_ARGS* argument type with cumulative_args_t.
10189 (bfin_function_arg_advance, bfin_function_arg): Likewise.
10190 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
10191 * calls.c (emit_call_1): Change type of args_so_far to
10192 cumulative_args_t. Changed all callers.
10193 (initialize_argument_information): Likewise.
10194 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
10195 * dse.c (get_call_args): Likewise.
10196 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
10197 * function.c (pass_by_reference, reference_callee_copied): Likewise.
10198 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
10199 New member args_so_far_v. Changed all users.
10200 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
10201 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10202 * config/mips/mips.c (mips_output_args_xfer): Likewise.
10203 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10204 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10205 * config/microblaze/microblaze.c (microblaze_expand_prologue):
10206 Likewise.
10207 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
10208 m32r_pass_by_reference.
10209
10210 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
10211
10212 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
10213 argument to be a VEC of statements.
10214 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
10215 assert that pattern statements have to have their vector type set.
10216 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
10217 Change the first argument to be a VEC of statements. Update
10218 documentation.
10219 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
10220 (vect_handle_widen_mult_by_const): New function.
10221 (vect_recog_widen_mult_pattern): Change the first argument to be a
10222 VEC of statements. Update documentation. Check that the constant is
10223 INTEGER_CST. Support multiplication by a constant that fits an
10224 intermediate type - call vect_handle_widen_mult_by_const.
10225 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
10226 call. Handle additional pattern statements if necessary.
10227
10228 2011-06-16 Nick Clifton <nickc@redhat.com>
10229
10230 PR target/49427
10231 * config.gcc: Set cpu_type to v850 for any V850 architecture.
10232 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
10233 md_file, extra_modes, out_file and extra_options are these are all
10234 deduced from cpu_type.
10235
10236 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10237
10238 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
10239 truncation mask to 63.
10240
10241 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
10242
10243 PR target/49313
10244 PR target/29524
10245 * longlong.h: Add AVR support:
10246 (count_leading_zeros): New macro.
10247 (count_trailing_zeros): New macro.
10248 (COUNT_LEADING_ZEROS_0): New macro.
10249 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
10250 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
10251 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
10252 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
10253 (LIB2FUNCS_EXCLUDE): Add _clz.
10254 * config/avr/libgcc.S (XCALL): Move up in file.
10255 (XJMP): New C Macro.
10256 (DEFUN): New asm macro.
10257 (ENDF): New asm macro.
10258 (__ffssi2): New function.
10259 (__ffshi2): New function.
10260 (__loop_ffsqi2): New function.
10261 (__ctzsi2): New function.
10262 (__ctzhi2): New function.
10263 (__clzdi2): New function.
10264 (__clzsi2): New function.
10265 (__clzhi2): New function.
10266 (__paritydi2): New function.
10267 (__paritysi2): New function.
10268 (__parityhi2): New function.
10269 (__parityqi2): New function.
10270 (__popcounthi2): New function.
10271 (__popcountsi2): New function.
10272 (__popcountdi2): New function.
10273 (__popcountqi2): New function.
10274 (__bswapsi2): New function.
10275 (__bswapdi2): New function.
10276 (__ashldi3): New function.
10277 (__ashrdi3): New function.
10278 (__lshrdi3): New function.
10279 Fix suspicous lines.
10280
10281 2011-06-16 Richard Guenther <rguenther@suse.de>
10282
10283 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
10284 the same as x != 0.
10285 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
10286 to (bool) X & 1.
10287 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
10288 equality compares against zero for the lower bit.
10289
10290 2011-06-16 Jakub Jelinek <jakub@redhat.com>
10291
10292 PR tree-optimization/49419
10293 * tree-vrp.c (execute_vrp): Call init_range_assertions
10294 before estimate_numbers_of_iterations, call
10295 free_number_of_iterations_estimates before calling
10296 remove_range_assertions.
10297
10298 2011-06-16 Revital Eres <revital.eres@linaro.org>
10299
10300 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
10301 (struct partial_schedule): Add rows_length field.
10302 (verify_partial_schedule): Check rows_length.
10303 (ps_insert_empty_row): Handle rows_length.
10304 (create_partial_schedule): Likewise.
10305 (free_partial_schedule): Likewise.
10306 (reset_partial_schedule): Likewise.
10307 (create_ps_insn): Remove rest_count argument.
10308 (remove_node_from_ps): Update rows_length.
10309 (add_node_to_ps): Update rows_length and call create_ps_insn
10310 without passing row_rest_count.
10311 (rotate_partial_schedule): Update rows_length.
10312
10313 2011-06-16 Revital Eres <revital.eres@linaro.org>
10314
10315 * ddg.c (add_intra_loop_mem_dep): New function.
10316 (build_intra_loop_deps): Call it.
10317
10318 2011-06-13 Jeff Law <law@redhat.com>
10319
10320 * df-problems.c (df_lr_local_compute): Manually CSE
10321 PIC_OFFSET_TABLE_REGNUM.
10322 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
10323 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
10324
10325 2011-06-13 Jan Hubicka <jh@suse.cz>
10326
10327 * cgraphunit.c (handle_alias_pairs): New function.
10328 (cgraph_finalize_compilation_unit): Use it.
10329 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
10330 as externally visible.
10331
10332 2011-06-15 Richard Guenther <rguenther@suse.de>
10333
10334 * expr.c (expand_expr_real_2): Reduce all integral types to
10335 bitfield precision.
10336 (expand_expr_real_1): Likewise.
10337
10338 2011-06-15 Martin Jambor <mjambor@suse.cz>
10339
10340 PR tree-optimization/48613
10341 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
10342 ipa_node_params_vector is NULL.
10343
10344 2011-06-15 Jakub Jelinek <jakub@redhat.com>
10345
10346 PR debug/49382
10347 * dwarf2out.c (dw_loc_list_node): Add force field.
10348 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
10349 location in the list, even if it is modified before first real insn.
10350 (output_loc_list): Emit empty ranges with force flag set.
10351 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
10352
10353 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
10354
10355 PR target/49349
10356 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
10357 (fence_to_rewind). Use it to notice when bookkeeping will be placed
10358 above a fence. Update comments.
10359 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
10360 placed just above it. Do not allow NULL place_to_insert.
10361
10362 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
10363
10364 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
10365 (slpeel_tree_peel_loop_to_edge): Don't call
10366 remove_dead_stmts_from_loop.
10367 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
10368 remove irrelevant pattern statements. For irrelevant statements
10369 check if it is the last statement of a detected pattern, use
10370 corresponding pattern statement instead.
10371 (destroy_loop_vec_info): No need to remove pattern statements,
10372 only free stmt_vec_info.
10373 (vect_transform_loop): For irrelevant statements check if it is
10374 the last statement of a detected pattern, use corresponding
10375 pattern statement instead.
10376 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
10377 pattern statements. Set basic block for the new statement.
10378 (vect_pattern_recog): Update documentation.
10379 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
10380 operands of pattern statements.
10381 (vectorizable_call): Fix printing. In case of a pattern statement
10382 use the lhs of the original statement when creating a dummy
10383 statement to replace the original call.
10384 (vect_analyze_stmt): For irrelevant statements check if it is
10385 the last statement of a detected pattern, use corresponding
10386 pattern statement instead.
10387 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
10388 statements use gsi of the original statement.
10389
10390 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10391
10392 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
10393 common/common-target-def.h.
10394 * target.def (default_target_flags, handle_option,
10395 supports_split_stack, optimization_table, init_struct,
10396 except_unwind_info, unwind_tables_default, have_named_sections):
10397 Move to common/common-target.def.
10398 * target.h (enum opt_levels, struct default_options): Move to
10399 common/common-target.h.
10400 * targhooks.c (default_except_unwind_info,
10401 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10402 default_target_handle_option, empty_optimization_table): Move to
10403 common/common-targhooks.c.
10404 * targhooks.h (default_except_unwind_info,
10405 dwarf2_except_unwind_info, sjlj_except_unwind_info,
10406 default_target_handle_option, empty_optimization_table): Move to
10407 common/common-targhooks.h.
10408 * common/common-target-def.h: Include common/common-targhooks.h.
10409 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
10410 defined.
10411 * common/common-target.def (handle_option, option_init_struct,
10412 option_optimization_table, default_target_flags,
10413 except_unwind_info, supports_split_stack, unwind_tables_default,
10414 have_named_sections): Move from target.def.
10415 (HOOK_PREFIX): Undefine at end of file.
10416 * common/common-target.h: Include input.h.
10417 (enum opt_levels, struct default_options): Move from target.h.
10418 * common/common-targhooks.c, common/common-targhooks.h: New.
10419 * config.gcc (target_has_targetm_common): Default to yes.
10420 (moxie*): Set target_has_targetm_common=no.
10421 (hppa*-*-*): Don't set target_has_targetm_common=yes.
10422 * doc/tm.texi: Regenerate.
10423 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
10424 (C_TARGET_DEF_H): Add common/common-targhooks.h.
10425 (GCC_OBJS): Remove vec.o.
10426 (OBJS): Remove hooks.o and vec.o.
10427 (OBJS-libcommon-target): Add vec.o, hooks.o and
10428 common/common-targhooks.o.
10429 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
10430 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
10431 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
10432 cfglayout.o, $(out_object_file), $(common_out_object_file)):
10433 Update dependencies.
10434 (common/common-targhooks.o): New.
10435 * common/config/default-common.c: Include tm.h. Add FIXME comment.
10436 * common/config/pa/pa-common.c: Include more headers. Take
10437 copyright dates from pa.c.
10438 (pa_option_optimization_table, pa_handle_option,
10439 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
10440 TARGET_HANDLE_OPTION): Move from pa.c.
10441 * common/config/alpha/alpha-common.c,
10442 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
10443 common/config/bfin/bfin-common.c,
10444 common/config/cris/cris-common.c,
10445 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
10446 common/config/h8300/h8300-common.c,
10447 common/config/i386/i386-common.c,
10448 common/config/ia64/ia64-common.c,
10449 common/config/iq2000/iq2000-common.c,
10450 common/config/lm32/lm32-common.c,
10451 common/config/m32c/m32c-common.c,
10452 common/config/m32r/m32r-common.c,
10453 common/config/m68k/m68k-common.c,
10454 common/config/mcore/mcore-common.c,
10455 common/config/mep/mep-common.c,
10456 common/config/microblaze/microblaze-common.c,
10457 common/config/mips/mips-common.c,
10458 common/config/mmix/mmix-common.c,
10459 common/config/mn10300/mn10300-common.c,
10460 common/config/pdp11/pdp11-common.c,
10461 common/config/picochip/picochip-common.c,
10462 common/config/rs6000/rs6000-common.c,
10463 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
10464 common/config/score/score-common.c, common/config/sh/sh-common.c,
10465 common/config/sparc/sparc-common.c,
10466 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
10467 common/config/vax/vax-common.c,
10468 common/config/xstormy16/xstormy16-common.c,
10469 common/config/xtensa/xtensa-common.c: New.
10470 * config/alpha/alpha.c: Include common/common-target.h.
10471 (alpha_option_optimization_table, alpha_handle_option,
10472 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10473 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
10474 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
10475 * config/arm/arm.c (arm_option_optimization_table,
10476 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10477 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
10478 arm-common.c.
10479 * config/avr/avr.c (avr_option_optimization_table,
10480 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10481 to avr-common.c.
10482 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
10483 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
10484 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
10485 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
10486 * config/cris/cris.c (cris_option_optimization_table,
10487 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10488 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
10489 cris-common.c.
10490 * config/fr30/fr30.c (fr30_option_optimization_table,
10491 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
10492 to fr30-common.c.
10493 * config/frv/frv.c (frv_option_optimization_table,
10494 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
10495 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
10496 * config/h8300/h8300.c (h8300_option_optimization_table,
10497 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10498 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
10499 * config/i386/i386-protos.h (ix86_handle_option): Declare.
10500 * config/i386/i386.c: Include common/common-target.h.
10501 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
10502 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
10503 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
10504 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
10505 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
10506 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
10507 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
10508 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
10509 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
10510 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
10511 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
10512 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
10513 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
10514 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
10515 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
10516 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
10517 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
10518 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
10519 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
10520 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
10521 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
10522 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
10523 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
10524 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
10525 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
10526 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
10527 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
10528 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
10529 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
10530 ix86_option_optimization_table, ix86_option_init_struct,
10531 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
10532 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10533 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
10534 i386-common.c.
10535 * config/i386/t-i386 (i386.o): Update dependencies.
10536 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
10537 * config/ia64/ia64.c (ia64_option_optimization_table,
10538 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10539 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10540 ia64_handle_option): Move to ia64-common.c.
10541 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
10542 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
10543 * config/lm32/lm32.c (lm32_option_optimization_table,
10544 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
10545 to lm32-common.c.
10546 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
10547 m32c-common.c.
10548 * config/m32r/m32r.c (m32r_option_optimization_table,
10549 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10550 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
10551 m32r_handle_option): Move to m32r-common.c.
10552 (m32r_memory_move_cost): Remove comment referring to
10553 TARGET_HANDLE_OPTION.
10554 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
10555 Move to m68k-common.c.
10556 * config/mcore/mcore.c (mcore_option_optimization_table,
10557 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10558 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
10559 * config/mep/mep.c (mep_option_optimization_table,
10560 mep_handle_option, TARGET_HANDLE_OPTION,
10561 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
10562 Move to mep-common.c.
10563 * config/microblaze/microblaze.c
10564 (microblaze_option_optimization_table,
10565 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
10566 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
10567 * config/mips/mips.c (mips_handle_option,
10568 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10569 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
10570 mips-common.c.
10571 * config/mmix/mmix.c (mmix_option_optimization_table,
10572 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10573 Move to mmix-common.c.
10574 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
10575 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
10576 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10577 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
10578 * config/pa/pa.c: Include common/common-target.h.
10579 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
10580 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10581 pa_handle_option): Move to pa-common.c.
10582 (pa_option_override): Use targetm_common.except_unwind_info.
10583 (pa_asm_output_mi_thunk, pa_function_section): Use
10584 targetm_common.have_named_sections.
10585 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
10586 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10587 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10588 pdp11_handle_option, pdp11_option_init_struct): Move to
10589 pdp11-common.c.
10590 * config/picochip/picochip.c (picochip_option_optimization_table,
10591 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
10592 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
10593 * config/rs6000/rs6000.c: Include common/common-target.h.
10594 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
10595 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
10596 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
10597 rs6000_handle_option): Move to rs6000-common.c.
10598 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10599 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
10600 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10601 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
10602 * config/s390/s390.c (processor_flags_table,
10603 s390_option_optimization_table, s390_option_init_struct,
10604 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
10605 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
10606 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
10607 * config/s390/s390.h (processor_flags_table): Declare.
10608 * config/score/score.c (score_option_optimization_table,
10609 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10610 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
10611 score_handle_option): Move to score-common.c.
10612 * config/sh/sh.c (sh_option_optimization_table,
10613 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
10614 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
10615 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
10616 * config/sparc/sparc.c: Include common/common-target.h.
10617 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10618 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
10619 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
10620 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
10621 spu_option_init_struct): Move to spu-common.c.
10622 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
10623 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
10624 * config/v850/v850.c (small_memory_physical_max,
10625 v850_handle_memory_optionn v850_handle_option,
10626 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
10627 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
10628 v850-common.c.
10629 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
10630 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
10631 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
10632 Move to xtensa-common.c.
10633 * cfglayout.c: Include common/common-target.h.
10634 (fixup_reorder_chain): Use targetm_common.have_named_sections.
10635 * cfgrtl.c: Include common/common-target.h.
10636 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
10637 targetm_common.have_named_sections.
10638 * dbxout.c: Include common/common-target.h.
10639 (dbxout_function_end): Use targetm_common.have_named_sections.
10640 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
10641 targetm_common.except_unwind_info.
10642 * dwarf2out.c: Include common/common-target.h.
10643 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
10644 dwarf2out_begin_prologue, dwarf2out_frame_init,
10645 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
10646 targetm_common.except_unwind_info.
10647 * except.c: Include common/common-target.h.
10648 (init_eh, finish_eh_generation,
10649 output_one_function_exception_table): Use
10650 targetm_common.except_unwind_info.
10651 (switch_to_exception_section): Use targetm_common.have_named_sections.
10652 * explow.c: Include common/common-target.h.
10653 * expr.c: Include common/common-target.h.
10654 (build_personality_function): Use targetm_common.except_unwind_info.
10655 * function.c: Include common/common-target.h.
10656 (expand_function_end): Use targetm_common.except_unwind_info.
10657 * haifa-sched.c: Include common/common-target.h.
10658 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
10659 * lto-opts.c: Include common/common-target.h instead of target.h.
10660 (lto_reissue_options): Use targetm_common.handle_option.
10661 * opts.c: Include common/common-target.h.
10662 (target_handle_option): Use targetm_common.handle_option.
10663 (init_options_struct): Update comment referring to
10664 targetm.target_option.optimization. Use
10665 targetm_common.default_target_flags,
10666 targetm_common.unwind_tables_default and
10667 targetm_common.option_init_struct.
10668 (default_options_optimization): Use
10669 targetm_common.option_optimization_table.
10670 (finish_options): Use targetm_common.except_unwind_info,
10671 targetm_common.unwind_tables_default,
10672 targetm_common.have_named_sections and
10673 targetm_common.supports_split_stack.
10674 * toplev.c: Include common/common-target.h.
10675 (process_options): Use targetm_common.have_named_sections.
10676 * tree-tailcall.c: Include common/common-target.h.
10677 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
10678 * tree.c: Include common/common-target.h.
10679 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
10680 * varasm.c: Include common/common-target.h.
10681 (resolve_unique_section, hot_function_section,
10682 default_function_section): Use targetm_common.have_named_sections.
10683
10684 2011-06-14 Easwaran Raman <eraman@google.com>
10685
10686 PR rtl-optimization/44194
10687 * dse.c: Include tree-flow.h
10688 (insn_info): Add new field non_frame_wild_read.
10689 (group_info): Add new fields escaped_n and escaped_p.
10690 (kill_on_calls): New variable.
10691 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
10692 (dse_step0): Initialize kill_on_calls.
10693 (can_escape): New function.
10694 (set_usage_bits): Add additional parameter; record information
10695 about escaped locations.
10696 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
10697 (dse_step2_nospill): Set kill_on_calls based on
10698 group->escaped_n and group->escaped_n.
10699 (add_wild_read): Refactor into...
10700 (reset_active_stores): ... New function, and
10701 (free_read_records): ... New function.
10702 (add_non_frame_wild_read): New function.
10703 (scan_insn): Call add_non_frame_wild_read on non-const calls.
10704 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
10705 (dse_step5_nospill): Call scan_reads_nospill for instructions
10706 marked as non_frame_wild_read.
10707 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
10708
10709 2011-06-14 Joseph Myers <joseph@codesourcery.com>
10710
10711 * common/common-target-def.h, common/common-target.def,
10712 common/common-target.h, common/config/default-common.c,
10713 common/config/pa/pa-common.c: New files.
10714 * Makefile.in (common_out_file, common_out_object_file,
10715 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
10716 (OBJS-libcommon-target): Include $(common_out_object_file).
10717 (prefix.o): Update dependencies.
10718 ($(common_out_object_file), common/common-target-hooks-def.h,
10719 s-common-target-hooks-def-h): New.
10720 (s-tm-texi): Also check timestamp on common-target.def.
10721 (build/genhooks.o): Update dependencies.
10722 * config.gcc (common_out_file, target_has_targetm_common): Define.
10723 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
10724 TARGET_ALWAYS_STRIP_DOTDOT.
10725 * configure.ac (common_out_object_file): Define.
10726 (common_out_file, common_out_object_file): Substitute.
10727 (common): Create directory.
10728 * configure: Regenerate.
10729 * doc/tm.texi.in (targetm_common): Document.
10730 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
10731 * doc/tm.texi: Regenerate.
10732 * genhooks.c (hook_array): Also include common/common-target.def.
10733 * prefix.c (tm.h): Don't include.
10734 (common/common-target.h): Include.
10735 (ALWAYS_STRIP_DOTDOT): Don't define.
10736 (update_path): Use targetm_common.always_strip_dotdot instead of
10737 ALWAYS_STRIP_DOTDOT.
10738 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
10739
10740 2011-06-14 David Li <davidxl@google.com>
10741
10742 * passes.c (execute_function_todo): Remove TODO_dump_func.
10743 (execute_one_pass): Remove TODO_dump_func.
10744 (execute_function_dump): New function.
10745 * tree-vrp.c: Remove TODO_dump_func.
10746 * regrename.c: Remove TODO_dump_func.
10747 * fwprop.c: Remove TODO_dump_func.
10748 * tree-into-ssa.c: Remove TODO_dump_func.
10749 * tree-complex.c: Remove TODO_dump_func.
10750 * tracer.c: Remove TODO_dump_func.
10751 * tree-loop-distribution.c: Remove TODO_dump_func.
10752 * postreload-gcse.c: Remove TODO_dump_func.
10753 * postreload.c: Remove TODO_dump_func.
10754 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
10755 * tree-tailcall.c: Remove TODO_dump_func.
10756 * ipa-cp.c: Remove TODO_dump_func.
10757 * final.c: Remove TODO_dump_func.
10758 * tree-emutls.c: Remove TODO_dump_func.
10759 * omp-low.c: Remove TODO_dump_func.
10760 * tree-ssa-dse.c: Remove TODO_dump_func.
10761 * tree-ssa-uncprop.c: Remove TODO_dump_func.
10762 * auto-inc-dec.c: Remove TODO_dump_func.
10763 * reorg.c: Remove TODO_dump_func.
10764 * tree-ssa-copyrename.c: Remove TODO_dump_func.
10765 * tree-ssa-ccp.c: Remove TODO_dump_func.
10766 * compare-elim.c: Remove TODO_dump_func.
10767 * mode-switching.c: Remove TODO_dump_func.
10768 * modulo-sched.c: Remove TODO_dump_func.
10769 * tree-call-cdce.c: Remove TODO_dump_func.
10770 * cse.c: Remove TODO_dump_func.
10771 * web.c: Remove TODO_dump_func.
10772 * tree-stdarg.c: Remove TODO_dump_func.
10773 * lto-streamer-out.c: Remove TODO_dump_func.
10774 * tree-ssa-math-opts.c: Remove TODO_dump_func.
10775 * tree-ssa-dom.c: Remove TODO_dump_func.
10776 * tree-nrv.c: Remove TODO_dump_func.
10777 * loop-init.c: Remove TODO_dump_func.
10778 * gimple-low.c: Remove TODO_dump_func.
10779 * ipa-inline.c: Remove TODO_dump_func.
10780 * tree-ssa-sink.c: Remove TODO_dump_func.
10781 * jump.c: Remove TODO_dump_func.
10782 * ifcvt.c: Remove TODO_dump_func.
10783 * tree-ssa-loop.c: Remove TODO_dump_func.
10784 * recog.c: Remove TODO_dump_func.
10785 * dse.c: Remove TODO_dump_func.
10786 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
10787 * matrix-reorg.c: Remove TODO_dump_func.
10788 * tree-eh.c: Remove TODO_dump_func.
10789 * regmove.c: Remove TODO_dump_func.
10790 * function.c: Remove TODO_dump_func.
10791 * tree-vectorizer.c: Remove TODO_dump_func.
10792 * ipa-split.c: Remove TODO_dump_func.
10793 * gcse.c: Remove TODO_dump_func.
10794 * tree-if-conv.c: Remove TODO_dump_func.
10795 * init-regs.c: Remove TODO_dump_func.
10796 * tree-ssa-phiopt.c: Remove TODO_dump_func.
10797 * implicit-zee.c: Remove TODO_dump_func.
10798 * lower-subreg.c: Remove TODO_dump_func.
10799 * bt-load.c: Remove TODO_dump_func.
10800 * tree-dfa.c: Remove TODO_dump_func.
10801 * except.c: Remove TODO_dump_func.
10802 * emit-rtl.c: Remove TODO_dump_func.
10803 * store-motion.c: Remove TODO_dump_func.
10804 * cfgexpand.c: Remove TODO_dump_func.
10805 * tree-cfgcleanup.c: Remove TODO_dump_func.
10806 * cfgcleanup.c: Remove TODO_dump_func.
10807 * tree-ssa-pre.c: Remove TODO_dump_func.
10808 * tree-sra.c: Remove TODO_dump_func.
10809 * tree-mudflap.c: Remove TODO_dump_func.
10810 * tree-ssa-copy.c: Remove TODO_dump_func.
10811 * cfglayout.c: Remove TODO_dump_func.
10812 * tree-ssa-forwprop.c: Remove TODO_dump_func.
10813 * tree-ssa-dce.c: Remove TODO_dump_func.
10814 * ira.c: Remove TODO_dump_func.
10815 * tree-ssa.c: Remove TODO_dump_func.
10816 * integrate.c: Remove TODO_dump_func.
10817 * tree-optimize.c: Remove TODO_dump_func.
10818 * tree-ssa-phiprop.c: Remove TODO_dump_func.
10819 * tree-object-size.c: Remove TODO_dump_func.
10820 * combine.c: Remove TODO_dump_func.
10821 * bb-reorder.c: Remove TODO_dump_func.
10822 * cprop.c: Remove TODO_dump_func.
10823 * var-tracking.c: Remove TODO_dump_func.
10824 * tree-profile.c: Remove TODO_dump_func.
10825 * tree-vect-generic.c: Remove TODO_dump_func.
10826 * reg-stack.c: Remove TODO_dump_func.
10827 * sched-rgn.c: Remove TODO_dump_func.
10828 * tree-ssa-structalias.c: Remove TODO_dump_func.
10829 * tree-switch-conversion.c: Remove TODO_dump_func.
10830 * tree-cfg.c: Remove TODO_dump_func.
10831 * tree-ssa-reassoc.c: Remove TODO_dump_func.
10832 * combine-stack-adj.c: Remove TODO_dump_func.
10833 * dce.c: Remove TODO_dump_func.
10834 * tree-ssanames.c: Remove TODO_dump_func.
10835 * regcprop.c: Remove TODO_dump_func.
10836
10837 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
10838
10839 PR middle-end/47364
10840 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
10841 and properly handle result not in Pmode.
10842
10843 2011-06-14 Robert Millan <rmh@gnu.org>
10844
10845 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
10846 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
10847 `config/linux.h'.
10848
10849 * config/i386/kfreebsd-gnu64.h: New file.
10850 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
10851 with `i386/kfreebsd-gnu64.h'.
10852
10853 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
10854 (GNU_USER_LINK_EMULATION64): New macros.
10855 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
10856 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
10857 of hardcoding `elf_i386' and `elf_x86_64'.
10858
10859 2011-06-14 Nick Clifton <nickc@redhat.com>
10860
10861 PR target/49403
10862 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
10863
10864 PR target/49402
10865 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
10866
10867 2011-06-14 Jakub Jelinek <jakub@redhat.com>
10868
10869 PR fortran/49103
10870 * tree.h (DECL_NONSHAREABLE): Define.
10871 (struct tree_decl_common): Change decl_common_unused to
10872 decl_nonshareable_flag.
10873 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
10874 Ignore vars with DECL_NONSHAREABLE bit set.
10875 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
10876 on stores to automatic aggregate vars.
10877
10878 PR rtl-optimization/49390
10879 Revert:
10880 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
10881
10882 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10883 MEM_ALIAS_SET.
10884
10885 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
10886 Tom de Vries <tom@codesourcery.com>
10887
10888 PR target/45098
10889 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
10890 Document changed semantics.
10891 (max_stmt_executions, max_stmt_executions_int): Declare.
10892 * tree-data-ref.c (estimated_loop_iterations)
10893 (estimated_loop_iterations_int): Move functions...
10894 * tree-ssa-loop-niter.c (estimated_loop_iterations)
10895 (estimated_loop_iterations_int): here.
10896 (record_estimate): Change nb_iterations_upper_bound and
10897 nb_iterations_estimate semantics.
10898 (max_stmt_executions, max_stmt_executions_int): New function.
10899 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
10900 (max_stmt_executions_tree): this.
10901 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
10902 estimated_loop_iterations_tree.
10903 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
10904 max_stmt_executions_int instead of estimated_loop_iterations_int.
10905 * predict.c (predict_loops): Idem.
10906 * tree-parloops.c (parallelize_loops): Idem.
10907 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
10908 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
10909 (init_omega_for_ddr_1): Idem.
10910 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
10911 (loop_prefetch_arrays): Idem
10912 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
10913 max_stmt_executions instead of estimated_loop_iterations.
10914 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
10915 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
10916 instead of nb_iterations_upper_bound.
10917
10918 2011-06-13 Jan Hubicka <jh@suse.cz>
10919
10920 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
10921
10922 2011-06-14 Richard Henderson <rth@redhat.com>
10923
10924 PR debug/48459
10925 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
10926 (based_loc_descr): Assert it's true.
10927 (compute_frame_pointer_to_fb_displacement): Set it, rather than
10928 aborting immediately.
10929
10930 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
10931 Mingfeng Wu <mingfeng@faraday-tech.com>
10932
10933 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
10934
10935 2011-06-13 Jan Hubicka <jh@suse.cz>
10936
10937 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
10938
10939 2011-06-13 Jan Hubicka <jh@suse.cz>
10940
10941 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
10942 similarly to DECL_COMDAT.
10943 * cgraphunit.c (cgraph_analyze_function): Likewise.
10944 * ipa.c (function_and_variable_visibility): Likewise.
10945
10946 2011-06-13 Jan Hubicka <jh@suse.cz>
10947
10948 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
10949 BINFO_VIRTUALS when streaming for ltrans unit.
10950
10951 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
10952
10953 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
10954 (movdi_internal64): Same.
10955
10956 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
10957
10958 PR target/44618
10959 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
10960 a set of similar patterns, where the MATCH_OPERAND for the function
10961 argument is replaced with individual references to hardware registers.
10962 (save_fpregs_<mode>): Ditto
10963 (restore_gpregs_<mode>): Ditto
10964 (return_and_restore_gpregs_<mode>): Ditto
10965 (return_and_restore_fpregs_<mode>): Ditto
10966 (return_and_restore_fpregs_aix_<mode>): Ditto
10967
10968 2011-06-13 Jan Hubicka <jh@suse.cz>
10969
10970 * ipa-utils.c (postorder_stack): New structure.
10971 (ipa_reverse_postorder): Handle aliases.
10972
10973 2011-06-13 Jan Hubicka <jh@suse.cz>
10974
10975 * ipa-inline.c (reset_edge_caches): Walk aliases.
10976 (update_caller_keys): Do not test inlinability of aliases.
10977 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
10978 (do_estimate_growth): Fix typo.
10979
10980 2011-06-13 Jan Hubicka <jh@suse.cz>
10981
10982 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
10983 (can_remove_node_now_p): ... here; handle same comdat groups.
10984 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
10985 (inline_call): Update use of can_remove_node_now_p.
10986
10987 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10988
10989 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
10990 condition to disallow non-identical memory locations.
10991 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
10992 preference to bit manipulation instructions.
10993
10994 2011-06-13 Jan Hubicka <jh@suse.cz>
10995
10996 * cgraph.c (cgraph_for_node_thunks_and_aliases,
10997 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
10998 (nonremovable_p): New function.
10999 (cgraph_can_remove_if_no_direct_calls_p): New function.
11000 (used_from_object_file_p): New functoin.
11001 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
11002 references from aliases.
11003 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
11004 * ipa-inline.c (check_caller_edge): New function.
11005 (want_inline_function_called_once_p): Use it; accept aliases called
11006 once, too.
11007 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
11008
11009 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11010
11011 PR target/48454
11012 * config/arm/neon.md (vec_pack_trunc): Set the lengths
11013 correctly for the case with Quad vectors.
11014
11015 2011-06-13 Jakub Jelinek <jakub@redhat.com>
11016 Ira Rosen <ira.rosen@linaro.org>
11017
11018 PR tree-optimization/49352
11019 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
11020 all, make sure loop_use_stmt after the loop is a def stmt of a used
11021 SSA_NAME that is the only one defined inside of the loop. Don't
11022 check for COND_EXPR and GIMPLE_BINARY_RHS.
11023 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
11024 check_reduction is true.
11025
11026 2011-06-11 Jan Hubicka <jh@suse.cz>
11027
11028 PR middle-end/49373
11029 * ipa.c (cgraph_externally_visible_p): Check resolution info.
11030
11031 2011-06-11 Jan Hubicka <jh@suse.cz>
11032
11033 PR middle-end/48836
11034 * ipa-inline-transform.c: Include tree-pass.h
11035 (inline_transform): Set TODO_update_ssa_only_virtuals.
11036 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
11037
11038 2011-06-11 Jan Hubicka <jh@suse.cz>
11039
11040 PR middle-end/49378
11041 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
11042 aliases and thunks.
11043
11044 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
11045
11046 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
11047 Take number of iterations to peel into account for equally frequent
11048 misalignment values.
11049
11050 2011-06-11 Jan Hubicka <jh@suse.cz>
11051
11052 * lto-streamer-out.c (produce_symtab): Stream out the newly
11053 represented aliases.
11054
11055 2011-06-11 Jan Hubicka <jh@suse.cz>
11056
11057 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
11058 varying args.
11059 (ipa_update_after_lto_read): Likewise.
11060 (ipa_write_node_info): Do not sream call_with_var_arguments.
11061 (ipa_read_node_info): Likewise.
11062
11063 2011-06-11 Jan Hubicka <jh@suse.cz>
11064
11065 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
11066
11067 2011-06-11 Jan Hubicka <jh@suse.cz>
11068
11069 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
11070 (lto_symtab_resolve_can_prevail_p): Likewise.
11071 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
11072 * cgraph.c (same_body_aliases_done): New global var.
11073 (cgraph_same_body_alias_1): Rename to ...
11074 (cgraph_create_function_alias): ... this one; reorg to new
11075 representation.
11076 (cgraph_same_body_alias): Use cgraph_create_function_alias;
11077 record references when asked to.
11078 (cgraph_add_thunk): Fix formating.
11079 (cgraph_get_node): Kill same body alias code.
11080 (cgraph_node_for_asm): Likewise.
11081 (cgraph_remove_same_body_alias): Remove.
11082 (cgraph_remove_node): Kill same body alias code.
11083 (cgraph_mark_address_taken_node): Mark also the aliased function
11084 as having address taken.
11085 (dump_cgraph_node): Dump same body aliases.
11086 (cgraph_for_node_thunks_and_aliases): Update for new alias
11087 representation.
11088 (cgraph_for_node_and_aliases): Likewise.
11089 * cgraph.h (same_body): Kll pointer.
11090 (same_body_alias): Update comment.
11091 (same_body_aliases_done): Declare.
11092 (cgraph_remove_same_body_alias): Remove declaration.
11093 (cgraph_create_function_alias): Declare.
11094 (cgraph_process_same_body_aliases): Declare.
11095 (cgraph_function_with_gimple_body_p): Check for alias.
11096 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
11097 (cgraph_alias_aliased_node): New function.
11098 (cgraph_function_node): Update for new aliases.
11099 (cgraph_function_or_thunk_node): Likewise.
11100 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
11101 (inline_call): Remove dead aliases.
11102 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
11103 name hack for same body aliases.
11104 (clone_of_p): Look through aliases.
11105 (verify_cgraph_node): Verify aliases.
11106 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
11107 (cgraph_process_same_body_aliases): New function.
11108 (process_function_and_variable_attributes): Disable weakref warning on
11109 alias.
11110 (cgraph_analyze_functions): Handle aliases.
11111 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
11112 (assemble_thunks): Rename to ...
11113 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
11114 (cgraph_expand_function): Remove alias output code.
11115 (cgraph_output_in_order): Skip aliases.
11116 (cgraph_preserve_function_body_p): Aliases don't need preserving.
11117 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
11118 (ipa_record_reference): Do not assert on alias references.
11119 (ipa_ref_has_aliases_p): New function.
11120 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
11121 (ipa_ref_has_aliases_p): Declare.
11122 * lto-cgraph.c (lto_output_node): Handle aliases.
11123 (input_node): Likewise.
11124 * lto-streamer-out.c (lto_output): Skip aliases.
11125 (produce_symtab): Kill same_body_alias code.
11126 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
11127 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
11128 * ipa-inline.c (update_caller_keys): Walk aliases.
11129 (inline_small_functions): Fix thinko in previous patch.
11130 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
11131 (function_and_variable_visibility): Do not walk same body aliases.
11132 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
11133 (ipa_pta_execute): Use it.
11134
11135 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11136
11137 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
11138 (*vec_dupv2df): Rename from vec_dupv2df.
11139 (vec_dupv2df): New expander.
11140
11141 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11142
11143 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
11144
11145 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
11146
11147 * config/i386/i386.md: Use default value in "isa" attribute.
11148 * config/i386/sse.md: Ditto.
11149 * config/i386/mmx.md: Ditto.
11150
11151 2011-06-10 Wei Guozhi <carrot@google.com>
11152
11153 PR target/45335
11154 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
11155 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
11156 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
11157 related peephole2.
11158 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
11159 related peephole2.
11160 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
11161 (arm_legitimate_ldrd_p): New prototype.
11162 (arm_output_ldrd): New prototype.
11163 * config/arm/arm.c (arm_check_ldrd_operands): New function.
11164 (arm_legitimate_ldrd_p): New function.
11165 (arm_output_ldrd): New function.
11166
11167 2011-06-10 David Li <davidxl@google.com>
11168
11169 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11170 * passes.c (passr_eq): New function.
11171 (create_pass_tab): New function.
11172 (pass_traverse): New function.
11173 (dump_one_pass): New function.
11174 (dump_pass_list): New function.
11175 (dump_passes): New function.
11176
11177 2011-06-10 Jan Hubicka <jh@suse.cz>
11178
11179 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
11180 setting the nothrow flag.
11181 * ipa-reference.c (propagate): Skip aliases.
11182 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
11183 (propagate_nothrow): Skip aliases; do not update cgraph.
11184 (local_pure_const): Do not update cgraph.
11185 * tree-profile.c (tree_profiling): Do fixup_cfg.
11186
11187 2011-06-10 Jan Hubicka <jh@suse.cz>
11188
11189 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
11190 (cgraph_local_node_p): ... here; handle aliases.
11191 (has_addr_references_p): Break out from ...;
11192 (cgraph_remove_unreachable_nodes) ... here.
11193
11194 2011-06-10 Jan Hubicka <jh@suse.cz>
11195
11196 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
11197 * common.opt (flag_inline_functions_called_once): Do not
11198 initialize to 1.
11199
11200 2011-06-10 Jan Hubicka <jh@suse.cz>
11201
11202 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
11203 (ipcp_initialize_node_lattices): Do not deal with aliases;
11204 Do not try to propagate through thunks.
11205 (ipcp_change_tops_to_bottom): Do not deal with aliases.
11206
11207 2011-06-10 Jan Hubicka <jh@suse.cz>
11208
11209 * ipa-prop.c (ipa_write_node_info): Stream jump functions
11210 for indirect calls.
11211 (ipa_read_node_info): Likewise.
11212
11213 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11214
11215 PR lto/49302
11216 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
11217 (build_and_insert_call): Likewise.
11218 (build_and_insert_ref): New.
11219 (gimple_expand_builtin_pow): Minor cleanup.
11220 (gimple_expand_builtin_cabs): New.
11221 (execute_cse_sincos): Add case for BUILT_IN_CABS.
11222
11223 2011-06-10 Jan Hubicka <jh@suse.cz>
11224
11225 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
11226 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
11227 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
11228 (ipcp_propagate_stage): Skip aliases when propagating.
11229 (ipcp_need_redirect_p): Skip aliases.
11230 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
11231 collect_callers_of_node.
11232 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
11233 for aliases.
11234 (ipa_compute_jump_functions): Look through aliases.
11235
11236 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11237
11238 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
11239
11240 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11241
11242 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
11243 Adjust comments.
11244 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
11245
11246 2011-06-10 Jan Hubicka <jh@suse.cz>
11247
11248 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
11249 Update call of gimple_get_virt_method_for_binfo.
11250 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
11251 refuse_thunks parameter.
11252 (gimple_fold_call): Update.
11253 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
11254
11255 2011-06-10 Jan Hubicka <jh@suse.cz>
11256
11257 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
11258 (not_all_callers_have_enough_arguments_p): ... this one; turn into
11259 worker for cgraph_for_node_and_aliases.
11260 (convert_callers_for_node): Break out from ...
11261 (convert_callers): ... here.
11262 (modify_function): Use collect_callers_of_node.
11263 (ipa_early_sra): Use cgraph_for_node_and_aliases.
11264
11265 2011-06-10 Richard Guenther <rguenther@suse.de>
11266
11267 PR tree-optimization/49361
11268 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
11269 when not already in gimple form.
11270
11271 2011-06-10 Richard Guenther <rguenther@suse.de>
11272
11273 PR bootstrap/49344
11274 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
11275 FOR_EACH_PHI_OR_STMT_USE.
11276
11277 2011-06-10 Jan Hubicka <jh@suse.cz>
11278
11279 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
11280 (clone_inlined_nodes): ... here.
11281 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
11282 to real destination prior inlining.
11283 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
11284 can_early_inline_edge_p, want_early_inline_function_p,
11285 want_early_inline_function_p, want_inline_small_function_p,
11286 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
11287 edge_badness, update_all_callee_keys, lookup_recursive_calls,
11288 add_new_edges_to_heap, inline_small_functions, flatten_function,
11289 inline_always_inline_functions, early_inline_small_functions): Use
11290 cgraph_function_or_thunk_node.
11291 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
11292 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
11293 (do_estimate_edge_growth_1): Break out from ...
11294 (do_estimate_growth) ... here; walk aliases.
11295 (inline_generate_summary): Skip aliases.
11296
11297 2011-06-10 Richard Guenther <rguenther@suse.de>
11298
11299 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
11300 forward when combining, visit inserted stmts when a stmt was changed.
11301
11302 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
11303
11304 * tree.h (error_operand_p): Add.
11305 * dbxout.c (dbxout_type_fields): Use the latter.
11306 * c-decl.c (add_stmt): Likewise.
11307 * gimplify.c (omp_add_variable, omp_notice_variable,
11308 gimplify_scan_omp_clauses): Likewise.
11309
11310 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
11311
11312 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
11313 when a value is actually passed in regs.
11314
11315 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
11316 Laurent Rougé <laurent.rouge@menta.fr>
11317
11318 * doc/invoke.texi (SPARC options): Add -mflat.
11319 * config/sparc/sparc.opt: Likewise.
11320 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
11321 (sparc_flat_expand_prologue): Declare.
11322 (sparc_flat_expand_epilogue): Likewise.
11323 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
11324 (CPP_ENDIAN_SPEC): Replace with...
11325 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
11326 (CPP_SPEC): Adjust to above change.
11327 (EXTRA_SPECS): Likewise.
11328 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
11329 (INCOMING_REGNO): Likewise.
11330 (OUTGOING_REGNO): Likewise.
11331 (LOCAL_REGNO): Likewise.
11332 (SETUP_FRAME_ADDRESSES): Likewise.
11333 (FIXED_REGISTERS): Set 0 for %fp.
11334 (CALL_USED_REGISTERS): Likewise.
11335 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
11336 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
11337 (RETURN_ADDR_REGNUM): Define.
11338 (RETURN_ADDR_RTX): Use it.
11339 (INCOMING_RETURN_ADDR_REGNUM): Define.
11340 (INCOMING_RETURN_ADDR_RTX): Use it.
11341 (DWARF_FRAME_RETURN_COLUMN): Likewise.
11342 (EH_RETURN_REGNUM): Define.
11343 (EH_RETURN_STACKADJ_RTX): Use it.
11344 (EH_RETURN_HANDLER_RTX): Delete.
11345 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
11346 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
11347 Delete.
11348 (struct machine_function): Add frame_size, apparent_frame_size,
11349 frame_base_reg, frame_base_offset, n_global_fp_regs and
11350 save_local_in_regs_p fields.
11351 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
11352 sparc_frame_base_offset, sparc_n_global_fp_regs,
11353 sparc_save_local_in_regs_p): New macros.
11354 (sparc_option_override): Error out if -fcall-saved-REG is specified
11355 for Out registers.
11356 (eligible_for_restore_insn): Fix formatting.
11357 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
11358 (eligible_for_sibcall_delay): Likewise.
11359 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
11360 (sparc_legitimate_address_p): Adjust to above change.
11361 (save_global_or_fp_reg_p): New predicate.
11362 (return_addr_reg_needed_p): Likewise.
11363 (save_local_or_in_reg_p): Likewise.
11364 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
11365 (SORR_SAVE, SORR_RESTORE): Delete.
11366 (sorr_pred_t): New typedef.
11367 (sorr_act_t): New enum.
11368 (save_or_restore_regs): Rename to...
11369 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
11370 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
11371 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
11372 mechanism. Add CFI information for double-word saves in 32-bit mode.
11373 (emit_adjust_base_to_offset): New function extracted from...
11374 (emit_save_or_restore_regs): ...this. Rename the rest to...
11375 (emit_save_or_restore_regs_global_fp_regs): ...this.
11376 (emit_save_or_restore_regs_local_in_regs): New function.
11377 (gen_create_flat_frame_[123]): New functions.
11378 (sparc_expand_prologue): Use SIZE local variable. Adjust.
11379 (sparc_flat_expand_prologue): New function.
11380 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
11381 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
11382 (sparc_flat_expand_epilogue): New function.
11383 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
11384 (output_return): Likewise.
11385 (output_sibcall): Likewise.
11386 (sparc_output_mi_thunk): Likewise.
11387 (sparc_frame_pointer_required): Likewise.
11388 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
11389 function optimization.
11390 * config/sparc/sparc.md (flat): New attribute.
11391 (prologue): Add TARGET_FLAT handling.
11392 (save_register_window): Disable if TARGET_FLAT.
11393 (create_flat_frame_[123]): New patterns.
11394 (epilogue): Add TARGET_FLAT handling.
11395 (sibcall_epilogue): Likewise.
11396 (eh_return): New expander.
11397 (eh_return_internal): New insn and splitter.
11398 (return_internal): Add TARGET_FLAT handling.
11399 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
11400 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
11401 (nonlocal_goto): Add TARGET_FLAT handling.
11402 * config/sparc/t-elf: Add -mflat multilib.
11403 * config/sparc/t-leon: Likewise.
11404
11405 2011-06-10 Jan Hubicka <jh@suse.cz>
11406
11407 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
11408 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
11409 (self_recursive_p): Use cgraph_function_node.
11410 (propagate_pure_const): Likewise.
11411 (propagate_nothrow): Likewise.
11412 * ipa-reference.c (ipa_reference_get_not_read_global): Use
11413 cgraph_function_node.
11414 (propagate_bits): Likewise.
11415 (propagate): Likewise.
11416
11417 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11418 Richard Earnshaw <rearnsha@arm.com>
11419
11420 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
11421 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
11422 (*thumb2_movdi_vfp): Delete.
11423 (*arm_movdi_vfp_cortexa8): Delete.
11424 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
11425 (*movdi_vfp_cortexa8): Likewise.
11426
11427 2011-06-10 Richard Guenther <rguenther@suse.de>
11428
11429 * stor-layout.c (initialize_sizetypes): Give names to all
11430 sizetype kinds.
11431
11432 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
11433
11434 PR tree-optimization/49318
11435 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
11436 irrelevant pattern statements.
11437
11438 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11439
11440 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
11441
11442 PR bootstrap/49354
11443 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
11444 to last assignment.
11445
11446 2011-06-09 Jan Hubicka <jh@suse.cz>
11447
11448 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
11449 do not recompute reachable flag.
11450 (cgraph_finalize_function, cgraph_analyze_functions): Set
11451 redefined_extern_inline here.
11452
11453 2011-06-09 Jan Hubicka <jh@suse.cz>
11454
11455 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
11456 (cgraph_only_called_directly_p): ... this one; bring offline.
11457 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
11458 varpool_used_from_object_file_p): Drop names from the declaratoin.
11459 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
11460 collect_callers_of_node): New.
11461 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
11462 (cgraph_edge_recursive_p): Use cgraph_function_node.
11463 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
11464 (cgraph_node_cannot_be_local_p_1): Break out from ...
11465 (cgraph_node_can_be_local_p): ... here; walk aliases.
11466 (cgraph_for_node_thunks_and_aliases): New function.
11467 (cgraph_for_node_and_aliases): New function.
11468 (cgraph_make_node_local_1): Break out from ...
11469 (cgraph_make_node_local) ... here; use
11470 cgraph_for_node_thunks_and_aliases.
11471 (cgraph_set_nothrow_flag_1): Break out from ...
11472 (cgraph_set_nothrow_flag) ... here;
11473 use cgraph_for_node_thunks_and_aliases.
11474 (cgraph_set_const_flag_1): Break out from ...
11475 (cgraph_set_const_flag) ... here;
11476 use cgraph_for_node_thunks_and_aliases.
11477 (cgraph_set_pure_flag_1): Break out from ...
11478 (cgraph_set_pure_flag) ... here;
11479 use cgraph_for_node_thunks_and_aliases.
11480 (cgraph_propagate_frequency_1): Break out from ...
11481 (cgraph_propagate_frequency) ... here; use
11482 cgraph_for_node_thunks_and_aliases.
11483 (cgraph_used_from_object_file_p): Do not care about aliases.
11484 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
11485 New functions.
11486 (collect_callers_of_node_1, collect_callers_of_node): New functions.
11487
11488 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11489
11490 PR rtl-optimization/49154
11491 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
11492 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
11493 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11494 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
11495 * config/cris/cris.h (cris_register_move_cost): Remove
11496 !TARGET_V32 code. Tweak comments.
11497
11498 2011-06-09 Jan Hubicka <jh@suse.cz>
11499
11500 * cgraphbuild.c (record_eh_tables): Mark personality function as having
11501 address taken.
11502
11503 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
11504
11505 PR rtl-optimization/49154
11506 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
11507 is a matching slot in the hashtable, assign it to classes_ptr.
11508
11509 PR rtl-optimization/49154
11510 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
11511 register classes.
11512 * doc/tm.texi: Regenerate.
11513
11514 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
11515
11516 PR target/49307
11517 * config/sh/sh.md (UNSPEC_CHKADD): New.
11518 (chk_guard_add): New define_insn_and_split.
11519 (symGOT_load): Use chk_guard_add instead of blockage.
11520
11521 2011-06-09 Kai Tietz <ktietz@redhat.com>
11522
11523 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
11524
11525 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
11526
11527 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
11528
11529 2011-06-09 Wei Guozhi <carrot@google.com>
11530
11531 PR target/46975
11532 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
11533 (peephole2 for conditional move): Generate 16 bit instructions.
11534
11535 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
11536
11537 * config/i386/i386.md (*movdi_internal_rex64): Merge
11538 alternatives 6 and 8.
11539
11540 2011-06-09 David Li <davidxl@google.com>
11541
11542 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
11543 * passes.c (passr_eq): New function.
11544 (create_pass_tab): New function.
11545 (pass_traverse): New function.
11546 (dump_one_pass): New function.
11547 (dump_pass_list): New function.
11548 (dump_passes): New function.
11549
11550 2011-06-09 David Li <davidxl@google.com>
11551
11552 * tree-complex.c (tree_lower_complex): Gate cleanup.
11553 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
11554 (execute_optimize_stdarg): Ditto.
11555 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
11556 (execute_cleanup_eh_1): Ditto.
11557 (execute_cleanup_eh): Ditto.
11558 * gcse.c (gate_rtl_pre): Ditto.
11559 (execute_rtl_pre): Ditto.
11560 * except.c (finish_eh_generation): Ditto.
11561 (convert_to_eh_region_ranges): Ditto.
11562 * cprop.c (one_cprop_pass): Ditto.
11563
11564 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
11565
11566 PR target/48673
11567 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
11568 in all basic blocks.
11569
11570 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11571
11572 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
11573 (HAVE_ENABLE_EXECUTE_STACK): Define.
11574 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
11575 (HAVE_ENABLE_EXECUTE_STACK): Define.
11576 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
11577 (HAVE_ENABLE_EXECUTE_STACK): Define.
11578 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
11579 (ENABLE_EXECUTE_STACK): Remove.
11580 (HAVE_ENABLE_EXECUTE_STACK): Define.
11581 [IN_LIBGCC2]: Don't include <windows.h>.
11582 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11583 (HAVE_ENABLE_EXECUTE_STACK): Define.
11584 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
11585 (HAVE_ENABLE_EXECUTE_STACK): Define.
11586 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
11587 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
11588 (HAVE_ENABLE_EXECUTE_STACK): Define.
11589 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
11590 (HAVE_ENABLE_EXECUTE_STACK): Define.
11591 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
11592 (HAVE_ENABLE_EXECUTE_STACK): Define.
11593 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
11594 (HAVE_ENABLE_EXECUTE_STACK): Define.
11595 * config/alpha/alpha.c (alpha_trampoline_init): Test
11596 HAVE_ENABLE_EXECUTE_STACK.
11597 * config/i386/i386.c (ix86_trampoline_init): Likewise.
11598 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
11599 (sparc64_initialize_trampoline): Likewise.
11600 * libgcc2.c [L_enable_execute_stack]: Remove.
11601 * system.h (ENABLE_EXECUTE_STACK): Poison.
11602 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
11603 * doc/tm.texi: Regenerate.
11604 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
11605
11606 2011-06-09 Jakub Jelinek <jakub@redhat.com>
11607
11608 PR middle-end/49308
11609 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
11610 variable. After resetting and rescanning insn continue with previous
11611 statement.
11612
11613 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11614
11615 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
11616 (gcc_cv_ld_hidden): Likewise.
11617 * configure: Regenerate.
11618 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
11619 (ix86_stack_protect_fail): Mark unused.
11620 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
11621 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
11622 [TARGET_MACHO]: Don't define.
11623 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
11624 (TARGET_STACK_PROTECT_FAIL): Likewise.
11625 (rs6000_stack_protect_fail): Mark unused.
11626 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
11627 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
11628
11629 2011-06-08 Andi Kleen <ak@linux.intel.com>
11630
11631 * varasm.c (get_section): Print location of other conflict
11632 for section conflicts.
11633
11634 2011-06-08 Andi Kleen <ak@linux.intel.com>
11635
11636 * config/i386/driver-i386.c (host_detect_local_cpu):
11637 Add model 0x2d Intel CPU.
11638
11639 2011-06-08 Andi Kleen <ak@linux.intel.com>
11640
11641 * reginfo.c (global_regs_decl): Add.
11642 (globalize_reg): Add decl parameter. Compute location. Pass location
11643 to warnings and add inform. Store decl in global_regs_decl.
11644 * rtl.h (globalize_reg): Update prototype.
11645 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
11646
11647 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
11648
11649 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
11650
11651 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11652
11653 PR target/49305
11654 * config/sh/predicates.md (general_movsrc_operand): Check
11655 mode for memory with indexed address for QI and HImode.
11656 (general_movdst_operand): Likewise.
11657
11658 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
11659
11660 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
11661
11662 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
11663
11664 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
11665 (num_ssa_operands): Likewise.
11666 (op_iter_init_phiuse): Forward-declare.
11667 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
11668
11669 2011-06-08 Nick Clifton <nickc@redhat.com>
11670
11671 * doc/invoke.texi (ARM Options): Update description of
11672 -mthumb-interwork.
11673
11674 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
11675
11676 * config/i386/driver-i386.c (host_detect_local_cpu): Support
11677 unknown Intel family 0x6 CPUs.
11678
11679 2011-06-08 Martin Jambor <mjambor@suse.cz>
11680
11681 * tree-sra.c (mark_rw_status): Removed.
11682 (analyze_access_subtree): New parameter parent instead of
11683 mark_read and mark_write, propagate from that.
11684
11685 2011-06-08 Julian Brown <julian@codesourcery.com>
11686
11687 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
11688 for double-precision helper functions in hard-float mode if only
11689 single-precision arithmetic is supported in hardware.
11690
11691 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
11692
11693 PR rtl-optimization/49303
11694 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
11695 code_motion_path_driver returned 0 or 1.
11696 (sel_region_finish): Clear h_d_i_d.
11697
11698 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
11699
11700 * config/sh/sh.c (prepare_move_operands): Set pic register
11701 appropriately for global and local dynamic tls models even
11702 if flag_pic is unset.
11703
11704 2011-06-07 Jason Merrill <jason@redhat.com>
11705
11706 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
11707
11708 2011-06-07 Xinliang David Li <davidxl@google.com>
11709 * passes.c (enable_disable_pass): Handle assembler name.
11710 (is_pass_explicitly_enabled_or_disabled): Ditto.
11711
11712 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11713
11714 PR tree-optimization/48497
11715 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
11716
11717 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11718
11719 PR tree-optimization/46728
11720 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
11721 to use gimple_val_nonnegative_real_p.
11722 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
11723 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
11724
11725 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
11726
11727 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
11728
11729 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
11730
11731 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
11732 constant vectors.
11733
11734 2011-06-07 Richard Guenther <rguenther@suse.de>
11735
11736 * stor-layout.c (initialize_sizetypes): Initialize all
11737 sizetypes based on target definitions.
11738 (set_sizetype): Remove.
11739 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
11740 * tree.h (set_sizetype): Remove.
11741
11742 2011-06-07 Nick Clifton <nickc@redhat.com>
11743
11744 * config.gcc: Unify V850 architecture options and add support for
11745 newer V850 architectures.
11746 * config/v850/t-v850e: Delete.
11747
11748 2011-06-07 Richard Guenther <rguenther@suse.de>
11749
11750 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
11751 Call set_sizetype from here.
11752
11753 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
11754
11755 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
11756 (*maddhisi4tb, *maddhisi4tt): New define_insns.
11757
11758 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
11759 Andrew Stubbs <ams@codesourcery.com>
11760
11761 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
11762 multiplies.
11763 * doc/md.texi (Canonicalization of Instructions): Document widening
11764 multiply canonicalization.
11765
11766 2011-06-07 Jakub Jelinek <jakub@redhat.com>
11767
11768 PR gcov-profile/49299
11769 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
11770
11771 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
11772
11773 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
11774 a pointer.
11775 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
11776 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
11777 vect_recog_pow_pattern): Likewise.
11778 (vect_pattern_recog_1): Remove declaration.
11779 (widened_name_p): Remove declaration. Add new argument to specify
11780 whether to check that both types are either signed or unsigned.
11781 (vect_recog_widen_mult_pattern): Update documentation. Handle
11782 unsigned patterns and multiplication by constants.
11783 (vect_pattern_recog_1): Update vect_recog_func references. Use
11784 statement information from the statement returned from pattern
11785 detection functions.
11786 (vect_pattern_recog): Update vect_recog_func reference.
11787 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
11788 multiplication by a constant use the type of the other operand.
11789
11790 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
11791
11792 PR rtl-optimization/49145
11793 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
11794
11795 2011-06-06 Jakub Jelinek <jakub@redhat.com>
11796
11797 PR debug/49262
11798 * dwarf2out.c (native_encode_initializer): Decrement count in each
11799 iteration.
11800
11801 PR debug/49294
11802 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
11803 non-MODE_INT modes.
11804
11805 PR c++/49264
11806 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
11807 if stmt folded into nothing.
11808 * tree-inline.c (fold_marked_statements): If a builtin at the end of
11809 a bb folded into nothing, just update cgraph edges and move to next bb.
11810 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
11811 to be NULL. Don't compute count and frequency if new_call is NULL.
11812
11813 2011-06-04 Diego Novillo <dnovillo@google.com>
11814
11815 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
11816 (cgraph.o): Likewise.
11817 (cgraphunit.o): Likewise.
11818 * cgraphunit.c: Include lto-streamer.h
11819 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
11820 if LTO is enabled.
11821 * lto-streamer-in.c (unpack_value_fields): Call
11822 streamer_hooks.unpack_value_fields if set.
11823 (lto_materialize_tree): For unhandled nodes, first try to
11824 call lto_streamer_hooks.alloc_tree, if it exists.
11825 (lto_input_ts_decl_common_tree_pointers): Move reading of
11826 DECL_INITIAL to lto_streamer_read_tree.
11827 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
11828 (lto_streamer_read_tree): New.
11829 (lto_reader_init): Rename from lto_init_reader.
11830 Move initialization code to lto/lto.c.
11831 * lto-streamer-out.c (pack_value_fields): Call
11832 streamer_hooks.pack_value_fields if set.
11833 (lto_output_tree_ref): For tree nodes that are not normally indexable,
11834 call streamer_hooks.indexable_with_decls_p before giving up.
11835 (lto_output_ts_decl_common_tree_pointers): Move handling
11836 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
11837 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
11838 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
11839 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
11840 (lto_streamer_write_tree): New.
11841 (lto_output): Call lto_streamer_init directly.
11842 (lto_writer_init): Remove.
11843 * lto-streamer.c (streamer_hooks): New.
11844 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
11845 instead of lto_preload_common_nodes.
11846 (lto_is_streamable): Move from lto-streamer.h
11847 (lto_streamer_hooks_init): New.
11848 (streamer_hooks): New.
11849 (streamer_hooks_init): New.
11850 * lto-streamer.h (struct output_block): Forward declare.
11851 (struct lto_input_block): Likewise.
11852 (struct data_in): Likewise.
11853 (struct bitpack_d): Likewise.
11854 (struct streamer_hooks): Declare.
11855 (streamer_hooks): Declare.
11856 (lto_streamer_hooks_init): Declare.
11857 (lto_streamer_write_tree): Declare.
11858 (lto_streamer_read_tree): Declare.
11859 (streamer_hooks_init): Declare.
11860 (lto_is_streamable): Move to lto-streamer.c
11861
11862 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11863
11864 * longlong.h (smul_ppmm): The resulting register pair contains the
11865 higher order word first.
11866
11867 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11868
11869 PR tree-optimization/46728
11870 * builtins.c (powi_table): Remove.
11871 (powi_lookup_cost): Remove.
11872 (powi_cost): Remove.
11873 (expand_powi_1): Remove.
11874 (expand_powi): Remove.
11875 (expand_builtin_pow_root): Remove.
11876 (expand_builtin_pow): Remove.
11877 (expand_builtin_powi): Eliminate handling of constant exponent.
11878 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
11879
11880 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11881
11882 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
11883
11884 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11885
11886 * dce.c (reset_unmarked_insns_debug_uses): New.
11887 (delete_unmarked_insns): Skip debug insns.
11888 (prescan_insns_for_dce): Likewise.
11889 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
11890 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
11891 active reg can be found.
11892 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
11893 (convert_regs_1): Use it.
11894
11895 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11896
11897 * tree-pretty-print.c (dump_function_header): Add flags.
11898 Don't dump decl_uid with nouid.
11899 * tree-pretty-print.h (dump_function_header): Adjust.
11900 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
11901 * passes.c (pass_init_dump_file): Pass dump_flags on.
11902 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
11903
11904 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
11905
11906 PR bootstrap/49270
11907 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
11908
11909 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
11910
11911 PR tree-optimization/49243
11912 * calls.c (setjmp_call_p): Also check if fndecl has the
11913 returns_twice attribute.
11914
11915 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11916
11917 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
11918 -ffast-math etc.
11919
11920 2011-06-06 Richard Henderson <rth@redhat.com>
11921 Georg-Johann Lay <avr@gjlay.de>
11922
11923 PR target/42210
11924 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
11925 New predicates.
11926 * config/avr/avr.md ("insv"): New insn expander.
11927 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
11928 "*insv.not.io", "*insv.reg"): New insns.
11929
11930 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
11931
11932 PR target/49285
11933 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
11934 to nonimmediate_operand from memory_operand for the operand that is to
11935 be forced to memory by the expander. Lose the constraints.
11936
11937 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
11938
11939 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
11940 EH return when delayed branches are disabled.
11941
11942 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
11943
11944 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
11945 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
11946 calculation.
11947 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
11948 Simplify MODE_V1DF and MODE_V2SF handling.
11949 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
11950 Simplify MODE_SF handling.
11951
11952 2011-06-04 Jan Hubicka <jh@suse.cz>
11953
11954 PR tree-optimization/48893
11955 PR tree-optimization/49091
11956 PR tree-optimization/49179
11957 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
11958 Bounds check.
11959
11960 2011-06-04 Jan Hubicka <jh@suse.cz>
11961
11962 PR lto/48954
11963 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
11964 bitmaps.
11965
11966 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
11967
11968 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
11969
11970 2011-06-04 Jakub Jelinek <jakub@redhat.com>
11971
11972 PR target/49281
11973 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
11974 to be strictly smaller than 1 << shiftcount.
11975
11976 2011-06-04 Jan Hubicka <jh@suse.cz>
11977
11978 PR tree-optimize/48929
11979 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
11980 of empty predicate.
11981
11982 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
11983
11984 PR debug/48333
11985 * calls.c (emit_call_1): Prefer the __builtin declaration of
11986 builtin functions.
11987
11988 2011-06-03 Diego Novillo <dnovillo@google.com>
11989
11990 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
11991 (lto_input_tree_pointers): Likewise.
11992 * lto-streamer-out.c (pack_value_fields): Likewise.
11993 (lto_output_tree_pointers): Likewise.
11994 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
11995 and OPTIMIZATION_NODE.
11996
11997 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11998
11999 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
12000 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
12001 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
12002 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
12003 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
12004 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
12005 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
12006 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
12007 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
12008 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
12009 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
12010 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
12011 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
12012 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
12013 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
12014 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
12015 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
12016 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
12017 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
12018 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
12019 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
12020 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
12021 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
12022 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
12023 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
12024 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
12025 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
12026 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
12027 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
12028 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
12029 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
12030 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
12031 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
12032 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
12033 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
12034 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
12035 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
12036 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
12037 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
12038 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
12039 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
12040 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
12041 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
12042 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
12043 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
12044 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
12045 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
12046 * system.h (MD_UNWIND_SUPPORT): Poison.
12047 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
12048 * doc/tm.texi: Regenerate.
12049 * unwind-dw2.c: Include md-unwind-support.h instead of
12050 MD_UNWIND_SUPPORT.
12051 * config/ia64/unwind-ia64.c: Likewise.
12052 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
12053
12054 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
12055
12056 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
12057
12058 2011-06-03 Richard Henderson <rth@redhat.com>
12059 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12060
12061 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
12062 (sigill_hdlr): Correct insn, insn size.
12063 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
12064
12065 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12066
12067 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
12068 t-slibgcc-dummy.
12069 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
12070 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
12071 * config/mips/t-iris: Remove.
12072 * config/mips/t-irix6: New file.
12073 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
12074
12075 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12076
12077 * Makefile.in (LIB2ADDEHDEP): Remove.
12078 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
12079 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
12080 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
12081 * config/t-darwin (LIB2ADDEHDEP): Remove.
12082 * config/t-freebsd (LIB2ADDEHDEP): Remove.
12083 * config/t-linux (LIB2ADDEHDEP): Remove.
12084
12085 2011-06-03 Diego Novillo <dnovillo@google.com>
12086
12087 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
12088 (lto_register_var_decl_in_symtab): Likewise.
12089 (lto_register_function_decl_in_symtab): Likewise.
12090 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
12091 logic to uniquify_nodes.
12092
12093 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12094
12095 * config/alpha/t-osf5: Remove.
12096 * config/alpha/t-osf-pthread: Remove.
12097 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
12098 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
12099
12100 2011-06-03 Julian Brown <julian@codesourcery.com>
12101
12102 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
12103 (strongarm1110): Use strongarm tuning.
12104 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
12105 * config/arm/arm.c (arm_strongarm_tune): New.
12106 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12107 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
12108 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
12109 setting, using previous defaults or 1 for Cortex-A5.
12110 (arm_option_override): Set max_insns_skipped from current tuning.
12111
12112 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
12113
12114 * doc/install.texi (Options specification): Document --with-specs.
12115
12116 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12117
12118 * config/arm/neon.md (orndi3_neon): Actually split it.
12119
12120 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12121
12122 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
12123 * var-tracking.c (reverse_op): Limite recurse depth to 5.
12124
12125 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
12126
12127 PR debug/47590
12128 * target.def (delay_sched2, delay_vartrack): New.
12129 * doc/tm.texi.in: Update.
12130 * doc/tm.texi: Rebuild.
12131 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
12132 * var-tracking.c (gate_handle_var_tracking): Likewise.
12133 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
12134 (bfin_flag_var_tracking): Drop.
12135 (output_file_start): Don't save and override flag_var_tracking.
12136 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
12137 (bfin_reorg): Test original variables.
12138 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12139 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
12140 (ia64_flag_var_tracking): Drop.
12141 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12142 (ia64_file_start): Don't save and override flag_var_tracking.
12143 (ia64_override_options_after_change): Ditto
12144 flag_schedule_insns_after_reload.
12145 (ia64_reorg): Test original variables.
12146 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
12147 (picochip_flag_var_tracking): Drop.
12148 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
12149 (picochip_option_override): Don't save and override
12150 flag_schedule_insns_after_reload.
12151 (picochip_asm_file_start): Ditto flag_var_tracking.
12152 (picochip_reorg): Test original variables.
12153 * config/spu/spu.c (spu_flag_var_tracking): Drop.
12154 (TARGET_DELAY_VARTRACK): Define.
12155 (spu_var_tracking): New.
12156 (spu_machine_dependent_reorg): Call it.
12157 (asm_file_start): Don't save and override flag_var_tracking.
12158
12159 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
12160
12161 PR target/49163
12162 * config/sh/predicates.md (general_movsrc_operand): Return 0
12163 for memory and memory subreg of which address is an invalid
12164 indexed address for QI and HImode.
12165 (general_movdst_operand): Likewise.
12166
12167 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12168
12169 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
12170 edges only, when there is a non-local label in the function.
12171 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
12172
12173 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12174
12175 * config/i386/constraints.md (Y3): New register constraint.
12176 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
12177 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
12178 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
12179 *sse2_interleave_lowv2df.
12180
12181 2011-06-02 Julian Brown <julian@codesourcery.com>
12182
12183 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
12184 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
12185 (arm_cortex_a5_tune): New.
12186
12187 2011-06-02 Julian Brown <julian@codesourcery.com>
12188
12189 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
12190 * config/arm/arm.c (arm_default_branch_cost): New.
12191 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
12192 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
12193 (arm_fa726_tune): Set branch_cost field using
12194 arm_default_branch_cost.
12195 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
12196 current_tune structure.
12197 * dojump.c (tm_p.h): Include file.
12198
12199 2011-06-02 Julian Brown <julian@codesourcery.com>
12200
12201 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
12202 tuning.
12203 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
12204 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
12205 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
12206 field.
12207 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
12208 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
12209 (arm_fa726te_tune): Add prefer_constant_pool setting.
12210 (arm_v6t2_tune, arm_cortex_tune): New.
12211 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
12212 prefer_constant_pool setting.
12213
12214 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
12215
12216 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
12217 switch statement.
12218 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
12219 (*movdf_internal) <case 6,7,8>: Ditto.
12220
12221 * config/i386/constraints.md (Y4): New register constraint.
12222 * config/i386/sse.md (vec_set<mode>_0): Merge with
12223 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
12224 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
12225 *vec_extractv2di_1_sse.
12226 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
12227 and *vec_concatv2di_rex64_sse.
12228
12229 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
12230
12231 PR target/48807
12232 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
12233 of cgraph_local_info for null before attempting to use it.
12234
12235 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
12236
12237 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
12238 (current_function_dynamic_alloc_count): Delete.
12239 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
12240 (expand_builtin_nonlocal_goto): Remove obsolete comment.
12241 (expand_builtin_update_setjmp_buf): Remove dead code.
12242 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
12243 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
12244 support.
12245 * function.c (instantiate_virtual_regs): Likewise.
12246 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
12247 for a block with a single abnormal incoming edge.
12248 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
12249 (SETJMP_VIA_SAVE_AREA): Delete.
12250 * config/sparc/sparc-protos.h (load_got_register): Declare.
12251 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
12252 (load_got_register): Make global.
12253 (sparc_frame_pointer_required): Add 'static'.
12254 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
12255 (sparc_builtin_setjmp_frame_value): New function.
12256 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
12257 (save_stack_nonlocal): New expander.
12258 (restore_stack_nonlocal): Likewise.
12259 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
12260 (nonlocal_goto_internal): New insn.
12261 (goto_handler_and_restore): Delete.
12262 (builtin_setjmp_setup): Likewise.
12263 (do_builtin_setjmp_setup): Likewise.
12264 (setjmp): Likewise.
12265 (builtin_setjmp_receiver): New expander.
12266
12267 2011-06-01 David Li <davidxl@google.com>
12268
12269 PR middle-end/49261
12270 * tree-pretty-print.c (dump_function_header): Format cleanup.
12271
12272 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
12273
12274 PR target/49238
12275 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
12276 needed when original operands are used for msw_skip comparison.
12277
12278 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12279
12280 PR debug/49250
12281 * var-tracking.c (add_uses, add_stores): Don't call
12282 cselib_subst_to_values on ENTRY_VALUE.
12283
12284 2011-06-01 Diego Novillo <dnovillo@google.com>
12285
12286 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
12287 output_record_start with LTO_null instead of output_zero.
12288 (lto_output_ts_binfo_tree_pointers): Likewise.
12289 (lto_output_tree): Likewise.
12290 (output_eh_try_list): Likewise.
12291 (output_eh_region): Likewise.
12292 (output_eh_lp): Likewise.
12293 (output_eh_regions): Likewise.
12294 (output_bb): Likewise.
12295 (output_function): Likewise.
12296 (output_unreferenced_globals): Likewise.
12297 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
12298 instead of NUM_TREE_CODES.
12299 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
12300 (lto_output_int_in_range): Change << to >> when shifting VAL.
12301
12302 2011-06-01 Diego Novillo <dnovillo@google.com>
12303
12304 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
12305 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
12306
12307 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12308
12309 PR target/45074
12310 * optabs.h (valid_multiword_target_p): Declare.
12311 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
12312 doing multi-word operations.
12313 * optabs.c (expand_binop): Likewise.
12314 (expand_doubleword_bswap): Likewise.
12315 (expand_absneg_bit): Likewise.
12316 (expand_unop): Likewise.
12317 (expand_copysign_bit): Likewise.
12318 (multiword_target_p): New function.
12319
12320 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
12321
12322 PR rtl-optimization/48830
12323 PR rtl-optimization/48808
12324 PR rtl-optimization/48792
12325 * reload.c (push_reload): Check contains_reg_of_mode.
12326 * reload1.c (strip_paradoxical_subreg): New function.
12327 (gen_reload_chain_without_interm_reg_p): Use it to handle
12328 paradoxical subregs.
12329 (emit_output_reload_insns, gen_reload): Likewise.
12330
12331 2011-06-01 David Li <davidxl@google.com>
12332
12333 * predict.c : Change pass name
12334 * ipa.c: Ditto.
12335 * dce.c: Ditto.
12336 * tree-profile.c: Ditto.
12337 * except.c: Ditto.
12338
12339 2011-06-01 David Li <davidxl@google.com>
12340
12341 * tree-pretty-print.c (dump_function_header): New function.
12342 * final.c (rest_of_clean_state): Use header dumper.
12343 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
12344 * passes.c (pass_init_dump_file): Use header dumper.
12345
12346 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12347
12348 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
12349 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
12350 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
12351 New functions.
12352 (mem_loc_descriptor): Use them.
12353
12354 * var-tracking.c (create_entry_value): New function.
12355 (vt_add_function_parameter): Use it.
12356
12357 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12358
12359 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
12360 Include <signal.h>, <ucontext.h>.
12361 (sigill_caught): Define.
12362 (sigill_hdlr): New function.
12363 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
12364 insns can be executed.
12365 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
12366 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
12367
12368 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12369
12370 * config/t-slibgcc-darwin: Move to ...
12371 * config/t-slibgcc-dummy: ... this. Clarify comments.
12372 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
12373 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
12374 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
12375 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
12376 Remove i386/t-crtstuff from tmake_file.
12377 (i[34567]86-*-solaris2*): Remove t-svr4,
12378 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
12379 t-slibgcc-dummy.
12380 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
12381 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
12382 sparc/t-crtfm from tmake_file.
12383 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
12384 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
12385 Remove extra_parts.
12386 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
12387 * config/i386/t-nwld (SHLIB_LINK): Remove.
12388 * config/i386/t-rtems-i386: Rename to ...
12389 * config/i386/t-rtems: ... this.
12390 ($(T)crti.o, $(T)crtn.o): Remove.
12391 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
12392 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
12393 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
12394 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
12395 EXTRA_MULTILIB_PARTS): Remove.
12396 * config/sparc/t-sol2-64: Likewise.
12397 * config/sparc/t-sol2: Remove.
12398 * config/sparc/t-crtin: Remove.
12399 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
12400 * config/i386/gmon-sol2.c: Remove.
12401 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
12402 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
12403 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
12404 * config/i386/sol2-gc1.asm: Remove.
12405 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
12406 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
12407 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
12408 * config/t-slibgcc-sld: Remove.
12409
12410 2011-06-01 Jakub Jelinek <jakub@redhat.com>
12411
12412 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
12413 base_type_for_mode with op_mode instead of mode.
12414
12415 2011-06-01 Paul Brook <paul@cpodesourcery.com>
12416
12417 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
12418 Cortex-A15.
12419 * config/arm/arm-tune.md: Regenerate.
12420 * config/arm/arm-tables.opt: Regenerate.
12421 * config/arm/arm.c (FL_DIV): Rename...
12422 (FL_THUMB_DIV): ... to this.
12423 (FL_ARM_DIV): Define.
12424 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
12425 (arm_arch_hwdiv): Remove.
12426 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
12427 (arm_issue_rate): Add cortexr5.
12428 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
12429 __ARM_ARCH_EXT_IDIV__.
12430 (TARGET_IDIV): Define.
12431 (arm_arch_hwdiv): Remove.
12432 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
12433 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
12434 (divsi3, udivsi3): New patterns.
12435 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
12436 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
12437
12438 2011-06-01 Martin Jambor <mjambor@suse.cz>
12439
12440 * ipa-utils.c (ipa_dfs_info): New field scc_no.
12441 * ipa-utils.c (searchc): Set scc_no.
12442
12443 2011-06-01 Martin Jambor <mjambor@suse.cz>
12444
12445 * ipa-utils.c (searchc_env): New field allow_overwritable.
12446 (searchc): do not ignore edges to overwritable nodes if indicated
12447 by env->allow_overwritable.
12448 (ipa_reduced_postorder): Set env.allow_overwritable.
12449
12450 2011-06-01 Richard Guenther <rguenther@suse.de>
12451
12452 * tree.c (free_lang_data): Do not reset boolean_type_node nor
12453 char_type_node.
12454 * lto-streamer.c (lto_record_common_node): Take node pointer,
12455 do not register types.
12456 (lto_preload_common_nodes): Explicitly skip preloading nodes
12457 that differ between frontends.
12458
12459 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12460
12461 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
12462 NON_FLOAT_REGS.
12463
12464 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
12465
12466 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
12467 parameter value for dump. Dump cost on outermost call only.
12468 (rs6000_memory_move_cost): Dump cost on outermost call only.
12469
12470 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12471
12472 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
12473 DW_OP_GNU_convert ops.
12474
12475 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
12476 cselib_preserve_constants.
12477 (cselib_lookup_1): If cselib_preserve_constants,
12478 a new VALUE is being created for REG and there is a VALUE for the
12479 same register in wider mode, add another loc with lowpart SUBREG of
12480 the wider VALUE.
12481 (cselib_subst_to_values): Handle ENTRY_VALUE.
12482 * var-tracking.c (replace_expr_with_values): Return NULL for
12483 ENTRY_VALUE too.
12484 * dwarf2out.c (convert_descriptor_to_signed): New function.
12485 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
12486 instead of two shifts.
12487 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
12488 the right mode if needed.
12489 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
12490 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
12491 convert_descriptor_to_signed.
12492 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
12493 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
12494
12495 PR target/48688
12496 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
12497
12498 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12499
12500 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
12501 of X87MODEI12 and SWI48x instead of SSEMODEI24.
12502 (SWI248x): New mode iterator, rename from X87MODEI.
12503 (X87MODEI): Remove mode iterator.
12504 (X87MODEI12): Ditto.
12505 (SSEMODEI24): Ditto.
12506
12507 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12508
12509 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
12510 * doc/invoke.texi: Document max-vartrack-expr-depth.
12511 * var-tracking.c (EXPR_DEPTH): New.
12512 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
12513
12514 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12515
12516 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
12517 * config/i386/sse.md: Add n to negated FMA pattern names.
12518
12519 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12520
12521 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
12522
12523 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
12524
12525 * gengtype-state.c (read_state_params_structs): Initialize previous.
12526
12527 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12528
12529 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
12530 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
12531
12532 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
12533
12534 * config/i386/i386.md (*movtf_internal): Avoid allocating general
12535 registers. Penalize F*r->o alternative to prevent partial memory
12536 stalls. Slightly penalize *roF->*r alternative. Generate SSE
12537 CONST_DOUBLE immediates when optimizing function for size. Do not move
12538 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12539 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
12540 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
12541 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
12542 alternatives.
12543 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
12544
12545 (fp_register_operand splitters): Use fp_register_operand
12546 constraint. Do not use FP_REG_P in insn condition.
12547 (any_fp_register_operand splitters): Use any_fp_register_operand
12548 constraint. Do not use ANY_FP_REG_P in insn condition.
12549
12550 2011-05-31 Jan Hubicka <jh@suse.cz>
12551
12552 * cgraph.h (cgraph_inline_failed_t): Give enum a name
12553 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
12554 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
12555 (lto_output_edge): Use output_enum and var_len_unsigned.
12556 (lto_output_varpool_node): Likewise.
12557 (input_overwrite_node): Do not take resolution parameter;
12558 extract it from a bitpack.
12559 (input_node): Do not read resolution; use input_enum and
12560 var_len_unsigned.
12561 (input_varpool_node): Likewise.
12562 (input_edge): Likewise.
12563 (input_cgraph_1): Likewise.
12564
12565 2011-05-31 Richard Guenther <rguenther@suse.de>
12566
12567 * gimple.c (gimple_register_canonical_type): Do not register
12568 any types via gimple_register_type.
12569
12570 2011-05-31 Jan Hubicka <jh@suse.cz>
12571
12572 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
12573 of thunks.
12574
12575 2011-05-31 Jakub Jelinek <jakub@redhat.com>
12576
12577 PR rtl-optimization/49235
12578 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
12579 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
12580
12581 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
12582
12583 PR tree-optimization/49093
12584 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
12585 data references.
12586
12587 2011-05-31 Dodji Seketeli <dodji@redhat.com>
12588
12589 PR debug/49047
12590 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
12591 for concrete functions containing the code of cloned functions.
12592
12593 2011-05-31 Richard Guenther <rguenther@suse.de>
12594
12595 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
12596 to ...
12597 (forward_propagate_into_comparison_1): ... this.
12598 (forward_propagate_comparison): Rename to ...
12599 (forward_propagate_into_comparison): ... this. Split out
12600 real forward propagation code to ...
12601 (forward_propagate_comparison): ... this.
12602 (forward_propagate_into_gimple_cond): Remove looping.
12603 (forward_propagate_into_cond): Likewise.
12604 (simplify_not_neg_expr): Return whether we have done something.
12605 (simplify_gimple_switch): Likewise.
12606 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
12607 (ssa_forward_propagate_and_combine): ... this. Re-structure
12608 to do a forward forward-propagation walk on BBs and a backward
12609 stmt combining walk on BBs. Consistently re-scan changed statements.
12610 (pass_forwprop): Adjust.
12611
12612 2011-05-30 Ian Lance Taylor <iant@google.com>
12613
12614 * godump.c (go_format_type): Correct length of name added to
12615 obstack for anonymous field.
12616
12617 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
12618
12619 PR target/49186
12620 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
12621 part of the second operand is 0.
12622
12623 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
12624
12625 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
12626 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
12627 to memory for !TARGET_MEMORY_MISMATCH_STALL.
12628 (*movdf_internal_rex64): Do not penalize F->r alternative.
12629 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
12630 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
12631 when optimizing function for size. Do not move CONST_DOUBLEs
12632 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
12633 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
12634 SUBREGs. Do not check for MEM_P operands in the insn condition,
12635 check for ANY_FP_REGNO_P instead.
12636 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
12637 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
12638 function for speed.
12639 * config/i386/i386.c (ix86_option_override_internal): Do not
12640 set TARGET_INTEGER_DFMODE_MOVES here.
12641
12642 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
12643
12644 PR target/49168
12645 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
12646
12647 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12648
12649 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
12650 DW_TAG_rvalue_reference_type even for
12651 -gdwarf-4 -fno-debug-types-section.
12652
12653 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12654
12655 PR tree-optimization/46728
12656 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
12657 (build_and_insert_binop): New.
12658 (gimple_expand_builtin_pow): Reorder args for
12659 build_and_insert_call; use build_and_insert_binop; add more
12660 optimizations for fractional exponents.
12661
12662 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
12663
12664 PR bootstrap/49190
12665
12666 Revert:
12667 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
12668
12669 * tree.h (struct tree_identifier): Inherit from tree_typed, not
12670 tree_common.
12671 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
12672 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
12673 TS_BASE instead of TS_COMMON.
12674 * varasm.c (assemble_name): Remove assert.
12675
12676 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
12677
12678 * config.gcc: Keep obselete list sorted.
12679
12680 2011-05-30 Jakub Jelinek <jakub@redhat.com>
12681 Eric Botcazou <ebotcazou@adacore.com>
12682
12683 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
12684 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
12685 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
12686 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
12687 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
12688
12689 2011-05-30 Richard Guenther <rguenther@suse.de>
12690
12691 * gimple.c (gimple_types_compatible_p_1): Compare record
12692 and union type members properly.
12693
12694 2011-05-30 Richard Guenther <rguenther@suse.de>
12695
12696 PR tree-optimization/49210
12697 * ipa-split.c (split_function): Care for the case where the call
12698 result is not trivially convertible to the result holding variable.
12699
12700 2011-05-30 Richard Guenther <rguenther@suse.de>
12701
12702 PR tree-optimization/49218
12703 * tree-vrp.c (adjust_range_with_scev): Properly check whether
12704 overflow occured.
12705
12706 2011-05-30 Richard Guenther <rguenther@suse.de>
12707
12708 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
12709 New function split out from ...
12710 (forward_propagate_into_gimple_cond): ... here. Adjust.
12711 (forward_propagate_into_cond): Likewise.
12712 (forward_propagate_comparison): Also propagate into
12713 comparisons on assignment RHS. Change return value to
12714 behave similar to forward_propagate_into_cond.
12715 (tree_ssa_forward_propagate_single_use_vars): Handle
12716 strict-overflow warnings properly for forward_propagate_comparison.
12717
12718 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12719
12720 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
12721 from plugin linker.
12722 * configure: Regenerate.
12723
12724 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
12725
12726 PR tree-optimization/49199
12727 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
12728 non-reduction operands are either defined in the loop or by induction.
12729
12730 2011-05-29 Xinliang David Li <davidxl@google.com>
12731
12732 * opts-global.c (handle_common_deferred_options): Handle new options.
12733 * passes.c (register_one_dump_file): Call register_pass_name.
12734 (execute_one_pass): Check explicit enable/disable flag.
12735 (passr_hash): New function.
12736 (passr_eq): Ditto.
12737 (register_pass_name): Ditto.
12738 (get_pass_by_name): Ditto.
12739 (pass_hash): Ditto.
12740 (pass_eq): Ditto.
12741 (enable_pass): Ditto.
12742 (disable_pass): Ditto.
12743 (is_pass_explicitly_enabled_or_disabled): Ditto.
12744
12745 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
12746
12747 * config/i386/i386.md (*movoi_internal_avx): Use
12748 standard_sse_constant_opcode for alternative 0.
12749 (*movti_internal_sse): Ditto.
12750 (*movti_internal_rex64): Use standard_sse_constant_opcode for
12751 alternative 2.
12752 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
12753 sselog1 type moves.
12754 (*movsi_internal): Ditto.
12755 (*movdi_internal): Ditto. Add ssecvt type moves.
12756
12757 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
12758
12759 PR target/48830
12760 * rtlanal.c (simplify_subreg_regno): Adjust comment.
12761
12762 2011-05-29 Jakub Jelinek <jakub@redhat.com>
12763
12764 PR rtl-optimization/49095
12765 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
12766 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
12767
12768 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12769
12770 PR target/43995
12771 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
12772 recurse_p argument. Only follow register copies if it is set,
12773 and prevent mips_find_pic_call_symbol from recursing.
12774 (mips_find_pic_call_symbol): Add a recurse_p argument.
12775 Pass it to mips_pic_call_symbol_from_set.
12776 (mips_annotate_pic_calls): Update accordingly.
12777
12778 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
12779
12780 * emit-rtl.c (try_split): Use a loop to search for
12781 NOTE_INSN_CALL_ARG_LOCATIONs.
12782
12783 2011-05-29 Richard Guenther <rguenther@suse.de>
12784
12785 PR tree-optimization/49217
12786 * ipa-pure-const.c (propagate_pure_const): Fix typos.
12787
12788 2011-05-28 Jan Hubicka <jh@suse.cz>
12789
12790 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
12791 length.
12792 (string_slot_free): Remove
12793 (create_output_block): Initialize obstack.
12794 (destroy_output_block): Free obstack.
12795 (lto_string_index): Add PERSISTENT parameter; do not duplicate
12796 the string unless it needs to be added into the hash.
12797 (lto_output_string_with_length): Add persistent attribute;
12798 handle NULL strings.
12799 (lto_output_string): Add PERSISTENT parameter.
12800 (output_string_cst, output_identifier): Simplify.
12801 (lto_output_location_bitpack): Update.
12802 (lto_output_builtin_tree): Update.
12803 * lto-streamer.h (struct output_block): Add obstack.
12804 (lto_output_string, lto_output_string_with_length): Remove
12805 declarations; functions are static now.
12806
12807 2011-05-28 Jan Hubicka <jh@suse.cz>
12808
12809 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
12810 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
12811 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
12812 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
12813 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
12814 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
12815 unpack_ts_decl_with_vis_value_fields,
12816 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
12817 lto_get_builtin_tree): Use enum and variable length i/o.
12818 * basic-block.h (profile_status_d): Add PROFILE_LAST.
12819 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
12820 New functions.
12821 (bp_pack_enum, bp_unpack_enum): New macros.
12822
12823 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12824
12825 * genrecog.c: Remove redundant forward declarations.
12826
12827 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12828
12829 * config.gcc: Deprecate mips*-*-openbsd*.
12830
12831 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
12832
12833 PR bootstrap/49195
12834 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
12835 for match_op_dup.
12836
12837 2011-05-27 Andrew Pinski <pinskia@gmail.com>
12838
12839 PR middle-end/48981
12840 * gengtype.c (vec_prefix_type): New function.
12841 (note_def_vec): Use vec_prefix_type and change the length
12842 attribute to be based on the prefix.
12843 * vec.c: Include coretypes.h before vec.h.
12844 (struct vec_prefix): Remove.
12845 (vec_gc_p_reserve): Change the offsetof to sizeof.
12846 (vec_gc_p_reserve_exact): Likewise.
12847 (vec_heap_p_reserve): Likewise.
12848 (vec_heap_p_reserve_exact): Likewise.
12849 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
12850 (vec_stack_p_reserve): Change the offsetof to sizeof.
12851 (vec_stack_p_reserve_exact): Likewise.
12852 * vec.h (struct vec_prefix): New struct definition.
12853 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
12854 (VEC_T_GTY(T,B)): Likewise.
12855 (DEF_VEC_FUNC_P(T)): Use prefix field.
12856 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
12857 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
12858
12859 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12860
12861 PR tree-optimization/46728
12862 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
12863 (powi_as_mults): Add gimple_set_location.
12864 (build_and_insert_call): New.
12865 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
12866 0.5, 0.25, 0.75, 1./3., or 1./6.
12867
12868 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
12869
12870 * doc/contrib.texi: Update copyright years.
12871 (Contributors): Add Zdenek Sojka.
12872
12873 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
12874
12875 * c-decl.c (c_push_function_context): Copy the current statement
12876 list stack.
12877 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
12878 (finish_struct): Call building_stmt_list_p instead of checking
12879 cur_stmt_list.
12880 * c-parser.c (c_parser_postfix_expression): Likewise.
12881 * c-typeck.c (c_end_compound_stmt): Likewise.
12882 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
12883 * tree-iterator.c (stmt_list_cache): Change to a VEC.
12884 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
12885 (free_stmt_list): Likewise.
12886 * tree.h (struct tree_statement_list): Include typed_tree instead
12887 of tree_common.
12888 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
12889 as TS_TYPED instead of TS_COMMON.
12890
12891 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12892 Uros Bizjak <ubizjak@gmail.com>
12893
12894 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
12895 (HAVE_AS_IX86_TLSGDPTL): Define.
12896 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
12897 (HAVE_AS_IX86_TLSLDMPLT): Define.
12898 * configure: Regenerate.
12899 * config.in: Regenerate.
12900 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
12901 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
12902 TARGET_SUN_TLS, use @tlsgdplt or @plt.
12903 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
12904 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
12905 @tlsldmplt or @plt.
12906 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
12907
12908 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
12909
12910 * sched-int.h (struct _haifa_deps_insn_data): New members cond
12911 and reverse_cond.
12912 (INSN_COND, INSN_REVERSE_COND): New macros.
12913 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
12914 once.
12915 (sched_get_condition_with_rev): Cache the results, and look them up
12916 if possible.
12917 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
12918 are clobbered by the current insn.
12919 * target.def (exposed_pipline): New sched data hook.
12920 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
12921 * doc/tm.texi: Regenerate.
12922
12923 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12924
12925 PR tree-optimization/49170
12926 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
12927 sincos or cexp.
12928
12929 2011-05-27 Richard Guenther <rguenther@suse.de>
12930
12931 PR middle-end/49189
12932 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
12933 of comparisons.
12934
12935 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
12936
12937 * haifa-sched.c (sched_scan_info): Remove.
12938 (schedule_block): Call sched_extend_luids rather than sched_init_luids
12939 with NULL args.
12940 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
12941 Remove functions.
12942 (sched_scan): Remove.
12943 (sched_extend_luids): Renamed from luids_extend_insn and no longer
12944 static. All callers changed.
12945 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
12946 static. All callers changed.
12947 (sched_init_luids): Remove all arguments except the first. All
12948 callers changed. Don't use sched_scan.
12949 (haifa_init_h_i_d): Likewise.
12950 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
12951 manually rather than using sched_init_luids. Likewise with
12952 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
12953 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
12954 rather than sched_init_luids with NULL args.
12955 * sel-sched-ir.c (new_insns): Remove variable.
12956 (sched_scan): New static function, previously in haifa-sched.c. Remove
12957 all arguments but the first two; all callers changed.
12958 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
12959 rather than sched_init_luids.
12960 (sel_init_bbs): Remove second argument. All callers changed.
12961 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
12962 with NULL arguments.
12963 (create_insn_rtx_from_pattern): Likewise.
12964 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
12965 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
12966 (sched_init_insn_luid, sched_extend_luids): Declare.
12967 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
12968 declarations.
12969
12970 2011-05-27 Richard Guenther <rguenther@suse.de>
12971
12972 PR middle-end/49177
12973 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
12974 A CMP B ? (T) true : (T) false for non-integral types T again.
12975
12976 2011-05-27 Jan Hubicka <jh@suse.cz>
12977
12978 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
12979 so 0 means NULL string.
12980 (lto_output_string_with_length): ... here.
12981 (lto_output_string, output_string_cst, output_identifier): Update
12982 handling of NULL strings.
12983 (lto_output_location_bitpack): New function.
12984 (lto_output_location): Use it.
12985 (lto_output_tree_ref): Use output_record_start.
12986 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
12987 len values.
12988 * lto-streamer-in.c (string_for_index): Break out from ...; offset
12989 values by 1.
12990 (input_string_internal): ... here;
12991 (input_string_cst, input_identifier, lto_input_string): Update handling
12992 of NULL strings.
12993 (lto_input_location_bitpack): New function
12994 (lto_input_location): Use it.
12995 (unpack_ts_type_common_value_fields): Pack align & alias in var len
12996 values.
12997 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
12998 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
12999 (bp_pack_value): Sanity check the value range.
13000 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
13001 New functions.
13002 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
13003 New functions.
13004
13005 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
13006
13007 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
13008 call_arg_location instructions down the floor.
13009
13010 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
13011
13012 PR rtl-optimization/49154
13013 * ira.c (setup_pressure_classes): Process class without sublcasses
13014 as a candidate for pressure classes.
13015
13016 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
13017
13018 PR rtl-optimization/48575
13019 * genrecog.c (position_type): New enum.
13020 (position): New structure.
13021 (decision): Use position structure instead of a string.
13022 (root_pos, peep2_insn_pos_list): New variables.
13023 (next_position, compare_positions): New functions.
13024 (new_decision): Use position structures instead of strings.
13025 (maybe_both_true): Likewise.
13026 (change_state): Likewise.
13027 (write_tree): Likewise.
13028 (make_insn_sequence): Likewise.
13029
13030 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13031
13032 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
13033 TS_BASE instead of TS_COMMON.
13034 (find_decls_types_r): Check for TS_TYPED structure before looking at
13035 TREE_TYPE.
13036 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
13037 Add chain field.
13038 (BLOCK_CHAIN): Use new chain field.
13039
13040 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
13041
13042 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
13043 moves expensive on Power7 also.
13044
13045 2011-05-26 Richard Guenther <rguenther@suse.de>
13046
13047 * fold-const.c (fold_unary_loc): Remove bogus code.
13048
13049 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
13050
13051 * tree.h (struct tree_identifier): Inherit from tree_typed, not
13052 tree_common.
13053 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
13054 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
13055 TS_BASE instead of TS_COMMON.
13056 * varasm.c (assemble_name): Remove assert.
13057
13058 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
13059
13060 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
13061 substituted first.
13062 * libgcc-std.ver: Delete file.
13063
13064 2011-05-26 Richard Guenther <rguenther@suse.de>
13065
13066 PR tree-optimization/48702
13067 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
13068 only when we know the base address is within bounds.
13069 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
13070 assume the base address of TARGET_MEM_REFs is in bounds.
13071
13072 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13073
13074 PR target/49099
13075 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
13076 declaration in TARGET_SOLARIS.
13077
13078 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
13079
13080 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
13081 The instruction is then expanded explicitly.
13082 (supported_compare): Callable instruction.
13083 (compare): Likewise.
13084
13085 2011-05-26 Jakub Jelinek <jakub@redhat.com>
13086
13087 PR c++/49165
13088 * gimplify.c (shortcut_cond_r): Don't special case
13089 COND_EXPRs if they have void type on one of their arms.
13090
13091 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
13092
13093 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
13094 to reduce duplication, and to achieve a slightly more logical order
13095 of operations.
13096
13097 2011-05-26 Jakub Jelinek <jakub@redhat.com>
13098
13099 PR tree-optimization/49161
13100 * tree-vrp.c (struct case_info): New type.
13101 (compare_case_labels): Sort case_info structs instead of
13102 trees, and not primarily by CASE_LABEL uids but by
13103 label_for_block indexes.
13104 (find_switch_asserts): Put case labels into struct case_info
13105 array instead of TREE_VEC, adjust sorting, compare label_for_block
13106 values instead of CASE_LABELs.
13107
13108 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13109
13110 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
13111 ("orndi3_neon"): Likewise.
13112 ("bic<mode>3_neon"): Likewise.
13113
13114 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
13115
13116 PR tree-optimization/49038
13117 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
13118 Ensure at least one epilogue iteration if required by data
13119 accesses with gaps.
13120 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13121 to mark loops that require peeling for gaps.
13122 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
13123 (vect_get_known_peeling_cost): Take peeling for gaps into
13124 account.
13125 (vect_transform_loop): Generate epilogue if required by data
13126 access with gaps.
13127 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
13128 loop as requiring an epilogue if there are gaps in the end of
13129 the strided group.
13130
13131 2011-05-25 Ian Lance Taylor <iant@google.com>
13132
13133 * godump.c (go_format_type): Output the first field with a usable
13134 Go type, if any.
13135
13136 2011-05-25 Ian Lance Taylor <iant@google.com>
13137
13138 * godump.c (go_format_type): Check for invalid type names, pointer
13139 target types, and struct field types.
13140
13141 2011-05-25 Jason Merrill <jason@redhat.com>
13142
13143 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
13144
13145 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
13146
13147 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
13148
13149 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13150
13151 * config/i386/i386.md (*movqi_extv_1)): Put back
13152 "register_operand" check in "type" calculation.
13153 (*movqi_extzv_2): Likewise.
13154
13155 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13156
13157 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
13158
13159 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13160
13161 PR bootstrap/49160
13162 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
13163 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
13164 __divxc3, __divtc3): Wrap definitions in #ifndef.
13165
13166 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13167
13168 PR target/49142
13169 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
13170 "register_operand" check and replace q_regs_operand with
13171 QIreg_operand in "type" calculation.
13172 (*movqi_extv_1): Likewise.
13173 (*movqi_extzv_2_rex64): Likewise.
13174 (*movqi_extzv_2): Likewise.
13175
13176 * config/i386/predicates.md (QIreg_operand): New.
13177
13178 2011-05-25 Richard Guenther <rguenther@suse.de>
13179
13180 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13181 type-based offset disambiguation, streamline MEM_REF and
13182 TARGET_MEM_REF handling.
13183
13184 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
13185
13186 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
13187 (bdesc_special_args): Add pause intrinsic.
13188
13189 * config/i386/i386.md (UNSPEC_PAUSE): New.
13190 (pause): Likewise.
13191 (*pause): Likewise.
13192 * config/i386/ia32intrin.h (__pause): Likewise.
13193
13194 * doc/extend.texi (X86 Built-in Functions): Add documentation for
13195 pause intrinsic.
13196
13197 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13198
13199 PR tree-optimization/46728
13200 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
13201 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
13202
13203 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
13204
13205 * tree.h (struct tree_exp): Inherit from struct tree_typed.
13206 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
13207 instead of TS_COMMON.
13208
13209 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
13210
13211 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
13212 LIBGCC2_GNU_PREFIX is defined.
13213 (__N): New macro.
13214 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
13215 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
13216 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
13217 __clz_tab): Define using __N.
13218 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
13219 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
13220 * target.def (libfunc_gnu_prefix): New hook.
13221 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
13222 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
13223 * doc/tm.texi: Regenerate.
13224 * system.h (LIBGCC2_GNU_PREFIX): Poison.
13225 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
13226 account.
13227 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
13228 (init_optabs): Likewise for the bswap libfuncs.
13229 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
13230 and divide.
13231 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
13232 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
13233 * libgcc-std.ver: Remove.
13234 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
13235 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
13236 libgcc-std.ver.
13237 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13238 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
13239 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
13240 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
13241 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
13242 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13243 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
13244 * config/fixed-bit.h (FIXED_OP): Define differently depending on
13245 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
13246 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
13247
13248 2011-05-25 Jan Hubicka <jh@suse.cz>
13249
13250 * lto-streamer-out.c (output_record_start): Use lto_output_enum
13251 (lto_output_tree): Use output_record_start.
13252 * lto-streamer-in.c (input_record_start): Use lto_input_enum
13253 (lto_get_pickled_tree): Use input_record_start.
13254 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
13255 (lto_value_range_error): New function.
13256 * lto-streamer.h (lto_value_range_error): Declare.
13257 (lto_output_int_in_range, lto_input_int_in_range): New functions.
13258 (lto_output_enum, lto_input_enum): New macros.
13259
13260 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
13261
13262 * common.opt (flag_stack_usage_info): New variable.
13263 (-Wstack-usage): New option.
13264 * doc/invoke.texi (Warning options): Document -Wstack-usage.
13265 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
13266 <OPT_fstack_usage>: Likewise.
13267 * toplev.c (output_stack_usage): Handle -Wstack-usage.
13268 * calls.c (expand_call): Test flag_stack_usage_info variable instead
13269 of flag_stack_usage.
13270 (emit_library_call_value_1): Likewise.
13271 * explow.c (allocate_dynamic_stack_space): Likewise.
13272 * function.c (instantiate_virtual_regs ): Likewise.
13273 (prepare_function_start): Likewise.
13274 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
13275 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
13276 * config/arm/arm.c (arm_expand_prologue): Likewise.
13277 (thumb1_expand_prologue): Likewise.
13278 * config/avr/avr.c (expand_prologue): Likewise.
13279 * config/i386/i386.c (ix86_expand_prologue): Likewise.
13280 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13281 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
13282 * config/mips/mips.c (mips_expand_prologue): Likewise.
13283 * config/pa/pa.c (hppa_expand_prologue): Likewise.
13284 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13285 * config/s390/s390.c (s390_emit_prologue): Likewise.
13286 * config/sh/sh.c (sh_expand_prologue): Likewise.
13287 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13288 * config/spu/spu.c (spu_expand_prologue): Likewise.
13289
13290 2011-05-25 Richard Guenther <rguenther@suse.de>
13291
13292 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
13293 (gimple_canonical_types_compatible_p): Likewise.
13294
13295 2011-05-25 Jan Hubicka <jh@suse.cz>
13296
13297 PR middle-end/49062
13298 * ipa.c (function_and_variable_visibility): Only add to same
13299 comdat group list if DECL_ONE_ONLY.
13300
13301 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
13302
13303 PR rtl-optimization/49014
13304 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
13305
13306 2011-05-25 Jakub Jelinek <jakub@redhat.com>
13307
13308 PR target/49128
13309 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
13310
13311 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13312
13313 PR rtl-optimization/48757
13314 * ira-build.c (loop_with_eh_edge_p): Rename to
13315 loop_with_complex_edge_p, check edges on complexity, make function
13316 conditional.
13317 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
13318 conditional.
13319
13320 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13321
13322 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
13323 force flag_ira_share_save_slots to 0.
13324
13325 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13326
13327 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
13328 (vt_initialize): Set PROLOGUE_BB unconditionally.
13329 Add block comment about CFA_BASE_RTX machinery.
13330 Reset FP_CFA_OFFSET to -1 on all invalid paths.
13331 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
13332
13333 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
13334
13335 PR objc/48187
13336 * c-parser.c (c_parser_objc_class_instance_variables): More robust
13337 parsing of syntax error in ObjC instance variable lists. In
13338 particular, avoid an infinite loop if there is a stray ']'.
13339 Updated error message.
13340
13341 2011-05-24 Ian Lance Taylor <iant@google.com>
13342
13343 * godump.c (go_define): Don't accept a string immediately after
13344 another operand.
13345
13346 2011-05-24 Ian Lance Taylor <iant@google.com>
13347
13348 * godump.c (struct godump_container): Add invalid_hash field.
13349 (go_format_type): Return false if type is found in invalid_hash.
13350 (go_output_typedef): Add invalid type to invalid_hash.
13351 (go_finish): Create and delete invalid_hash.
13352
13353 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13354
13355 PR tree-optimization/46728
13356 * tree-ssa-math-opts.c (powi_table): New.
13357 (powi_lookup_cost): New.
13358 (powi_cost): New.
13359 (powi_as_mults_1): New.
13360 (powi_as_mults): New.
13361 (gimple_expand_builtin_powi): New.
13362 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
13363 (gate_cse_sincos): Remove sincos/cexp restriction.
13364
13365 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13366
13367 PR target/3746
13368 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
13369 mips-tdump native.
13370 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
13371 * mips-tdump.c: Likewise.
13372
13373 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
13374
13375 PR target/49128
13376 * config/i386/driver-i386.c (host_detect_local_cpu): Always
13377 add -mno-XXX. Handle FMA.
13378
13379 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13380
13381 PR rtl-optimization/48633
13382 * ira-build.c (loop_with_eh_edge_p): New function.
13383 (mark_loops_for_removal): Use it.
13384
13385 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
13386
13387 PR rtl-optimization/48971
13388 * ira.c (setup_pressure_classes): Don't check register move cost
13389 for classes with one registers. Don't add pressure class if there
13390 is a pressure class with the same available hard registers.
13391 Check contains_reg_of_mode. Fix a typo in collecting
13392 temp_hard_regset. Ignore hard registers not belonging to a class.
13393
13394 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
13395
13396 PR target/49133
13397 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
13398
13399 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
13400 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13401
13402 PR gcov-profile/48845
13403 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
13404
13405 2011-05-24 Richard Guenther <rguenther@suse.de>
13406
13407 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
13408 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
13409 (gimple_types_compatible_p_1): Adjust.
13410 (iterative_hash_canonical_type): Do not bother about complete vs.
13411 incomplete types.
13412 (gimple_canonical_types_compatible_p): Likewise.
13413
13414 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13415
13416 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
13417
13418 2011-05-24 Richard Guenther <rguenther@suse.de>
13419
13420 PR bootstrap/49078
13421 * gimple.c (gimple_register_canonical_type): Revert
13422 previous change.
13423 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
13424 does not for a tree for the case where it matters. Cache
13425 pointer-type alias-sets.
13426
13427 2011-05-24 Joseph Myers <joseph@codesourcery.com>
13428
13429 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
13430 (OBJS): Remove options.o, opts-common.o and prefix.o.
13431 (OBJS-libcommon-target): New.
13432 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
13433 (BACKEND): Include libcommon-target.a.
13434 (MOSTLYCLEANFILES): Include libcommon-target.a.
13435 (libcommon-target.a): New.
13436 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
13437 prefix.o.
13438
13439 2011-05-23 Joseph Myers <joseph@codesourcery.com>
13440
13441 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
13442 parts of output shared with the driver.
13443 * optc-gen.awk: Don't generate parts of output not shared with the
13444 driver.
13445 * opth-gen.awk: Remove GCC_DRIVER conditionals.
13446 * doc/options.texi (SourcerInclude): Mention options-save.c.
13447 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
13448 (OBJS): Add options-save.o.
13449 (options-save.c, options-save.o): New.
13450 (options.o): Update dependencies.
13451 (gcc-options.o): Remove.
13452 (mostlyclean): Remove options-save.c.
13453
13454 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13455
13456 PR debug/49032
13457 * dbxout.c: Include cgraph.h.
13458 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
13459 and without value expr, return NULL if no varpool node exists for
13460 it or if it is not needed.
13461 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
13462
13463 PR c/49120
13464 * c-decl.c (start_decl): Convert expr to void_type_node.
13465
13466 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
13467
13468 PR rtl-optimization/48826
13469 * emit-rtl.c (try_split): When splitting a call that is followed
13470 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
13471
13472 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13473
13474 * cfgexpand.c (expand_debug_expr): For unused non-addressable
13475 parameters passed in memory prefer using DECL_INCOMING_RTL over
13476 the pseudos it will be copied into.
13477
13478 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
13479
13480 PR target/47315
13481 * config/i386/i386.c (ix86_option_override_internal): Save the
13482 initial options after checking vzeroupper.
13483
13484 2011-05-23 David Li <davidxl@google.com>
13485
13486 PR tree-optimization/48988
13487 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
13488 Initialize has_valid_pred for each pred chain.
13489
13490 2011-05-23 Richard Guenther <rguenther@suse.de>
13491
13492 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
13493 (iterative_hash_gimple_type): Always hash type names.
13494
13495 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
13496
13497 * c-typeck.c (build_function_call_vec): Tweak call to
13498 check_function_arguments.
13499
13500 2011-05-23 Richard Guenther <rguenther@suse.de>
13501
13502 PR tree-optimization/49115
13503 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
13504 is not necessarily carried out, do not claim it kills the ref.
13505 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
13506
13507 2011-05-23 Richard Guenther <rguenther@suse.de>
13508
13509 PR middle-end/15419
13510 * builtins.c (fold_builtin_memory_op): Be less restrictive about
13511 what pointer types we accept for folding.
13512
13513 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13514
13515 * gthr-gnat.c: Remove.
13516 * gthr-gnat.h: Remove.
13517 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
13518 * config/t-freebsd (LIB2ADDEH): Likewise.
13519 * config/t-linux (LIB2ADDEH): Likewise.
13520 * config/t-sol2 (LIB2ADDEH): Likewise.
13521 * config/ia64/t-vms (LIB2ADDEH): Likewise.
13522 * configure.ac (target_thread_file): Remove gnat handling.
13523 * configure: Regenerate.
13524 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
13525
13526 2011-05-23 Tristan Gingold <gingold@adacore.com>
13527 Eric Botcazou <ebotcazou@adacore.com>
13528
13529 * gcov.c (create_file_names): If no object directory is specified,
13530 keep the directory of the file.
13531
13532 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13533
13534 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
13535 * configure: Regenerate.
13536
13537 2011-05-23 Jakub Jelinek <jakub@redhat.com>
13538
13539 PR middle-end/48973
13540 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
13541 failed and the comparison has a single bit signed type, use
13542 constm1_rtx instead of const1_rtx for true value.
13543 (do_store_flag): If ops->type is single bit signed type, disable
13544 signel bit test optimization and pass -1 instead of 1 as last
13545 parameter to emit_store_flag_force.
13546
13547 2011-05-23 Tom de Vries <tom@codesourcery.com>
13548
13549 PR target/45098
13550 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
13551 function.
13552 (infer_loop_bounds_from_undefined): Use new function.
13553
13554 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13555
13556 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
13557 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
13558 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
13559 and -O0 otherwise.
13560 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
13561
13562 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13563
13564 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
13565 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13566 returns true.
13567
13568 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
13569
13570 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
13571
13572 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13573
13574 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
13575 UNSPEC_MOVE_PIC pattern.
13576
13577 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
13578
13579 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
13580 (sparc-*-rtems*): Likewise.
13581 (sparc64-*-elf*): Likewise.
13582 (sparc64-*-rtems*): Likewise.
13583 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
13584 * config/sparc/t-crtin: New file.
13585 * config/sparc/t-sol2 (crti.o): Delete rule.
13586 (crtn.o): Likewise.
13587 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
13588 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
13589 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
13590 (ENDFILE_SPEC): Add crtn.o.
13591
13592 2011-05-22 Tom de Vries <tom@codesourcery.com>
13593
13594 PR middle-end/48689
13595 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
13596 CODE_CONTAINS_STRUCT (TS_COMMON).
13597
13598 2011-05-22 Jakub Jelinek <jakub@redhat.com>
13599
13600 PR middle-end/49029
13601 * expmed.c (extract_fixed_bit_field): Test whether target can be used
13602 only after deciding which mode to use.
13603
13604 2011-05-22 Tom de Vries <tom@codesourcery.com>
13605
13606 PR target/45098
13607 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
13608 for call to get_shiftadd_cost.
13609
13610 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
13611
13612 PR target/49104
13613 * config/i386/cpuid.h (bit_MMXEXT): New define.
13614
13615 2011-05-22 Nick Clifton <nickc@redhat.com>
13616
13617 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
13618 initialisation of non-existant args[2] element. Use args[] array
13619 not arg[] array to pass arguments to build_function_type_list.
13620
13621 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
13622
13623 PR tree-optimization/49087
13624 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
13625
13626 2011-05-21 Jason Merrill <jason@redhat.com>
13627
13628 PR c++/49092
13629 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
13630 static storage duration.
13631
13632 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13633
13634 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
13635 frame pointer.
13636
13637 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
13638
13639 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
13640 false if there are call-saved registers here...
13641 (sparc_can_use_return_insn_p): ...but here instead.
13642 (save_or_restore_regs): Fix thinko.
13643 (sparc_expand_prologue): Use current_function_is_leaf.
13644 (sparc_frame_pointer_required): Likewise.
13645
13646 2011-05-21 Nick Clifton <nickc@redhat.com>
13647
13648 PR target/49098
13649 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
13650
13651 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
13652
13653 * gengtype.c (walk_type): Implemented "atomic" GTY option.
13654 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
13655
13656 2011-05-21 Joseph Myers <joseph@codesourcery.com>
13657
13658 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
13659 * optc-gen.awk: Move common code to opt-read.awk.
13660 * opth-gen.awk: Likewise.
13661 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
13662
13663 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
13664
13665 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
13666
13667 2011-05-20 Tom de Vries <tom@codesourcery.com>
13668
13669 PR target/45098
13670 * tree-ssa-loop-ivopts.c: Include expmed.h.
13671 (get_shiftadd_cost): New function.
13672 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
13673
13674 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13675
13676 PR bootstrap/49086
13677 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
13678 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
13679
13680 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13681
13682 * Makefile.in: Update comment referring to $(OBJS-common).
13683
13684 2011-05-20 Ian Lance Taylor <iant@google.com>
13685
13686 * godump.c (go_output_typedef): Put enum constants in the macro
13687 hash table to avoid duplicate Go const definitions.
13688
13689 2011-05-20 Joseph Myers <joseph@codesourcery.com>
13690
13691 * Makefile.in (LIBDEPS): Add libcommon.a.
13692 (LIBS): Likewise.
13693 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
13694 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
13695 pretty-print.o and version.o.
13696 (OBJS-libcommon): New.
13697 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
13698 (BACKEND): Add libcommon.a.
13699 (MOSTLYCLEANFILES): Likewise.
13700 (libcommon.a): New.
13701 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
13702 (cpp$(exeext)): Likewise.
13703 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
13704 pretty-print.o and input.o.
13705 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
13706 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
13707 (errors.o): Remove.
13708 (mips-tfile): Don't explicitly use version.o.
13709 (mips-tdump): Likewise.
13710 (gcov.o): Depend on $(DIAGNOSTIC_H).
13711 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
13712 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
13713 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
13714 * gcov-dump.c: Include intl.h and diagnostic.h.
13715 (main): Initialize diagnostics.
13716 * gcov.c: Include diagnostic.h.
13717 (fnotice): Remove.
13718 (main): Initialize diagnostics.
13719 * lto-wrapper.c: Include diagnostic.h.
13720 (main): Initialize diagnostics.
13721
13722 2011-05-20 Michael Matz <matz@suse.de>
13723
13724 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
13725
13726 2011-05-20 Michael Matz <matz@suse.de>
13727 Richard Guenther <rguenther@suse.de>
13728
13729 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
13730 use lto_streamer_cache_append directly instead of returning a VEC.
13731 (preload_common_node): Remove.
13732 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
13733 track seen nodes.
13734 (lto_streamer_cache_create): Call lto_preload_common_nodes.
13735
13736 2011-05-20 Richard Guenther <rguenther@suse.de>
13737
13738 PR tree-optimization/49079
13739 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
13740 MEM_REFs correctly for the trailing array access detection.
13741 Special case constants the same way as decls for overall size
13742 constraining.
13743
13744 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
13745
13746 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
13747 argument expansion.
13748
13749 2011-05-20 Jakub Jelinek <jakub@redhat.com>
13750
13751 PR tree-optimization/49073
13752 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
13753 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
13754 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
13755
13756 2011-05-20 Richard Guenther <rguenther@suse.de>
13757
13758 PR middle-end/48849
13759 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
13760 of pointer types the same way the middle-end does.
13761
13762 2011-05-20 Richard Guenther <rguenther@suse.de>
13763
13764 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
13765 or pointer-to chains. Delay all fixup to uniquify_nodes.
13766
13767 2011-05-19 Quentin Neill <quentin.neill@amd.com>
13768
13769 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
13770 (fma4_fmaddsub): Likewise
13771
13772 2011-05-19 Jan Hubicka <jh@suse.cz>
13773
13774 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
13775 (GIMPLE_TYPE_PAIR_SIZE): New macro.
13776 (type_pair_cache): New static var.
13777 (lookup_type_pair): Use fixed sized custom hash; make inline.
13778 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
13779 calls of lookup_type_pair.
13780 (print_gimple_types_stats): Remove cache stats.
13781 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
13782 and gtc_ob.
13783
13784 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
13785
13786 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
13787 when TARGET_RDRND is active.
13788 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
13789 Generate dummy SImode target register when target is NULL.
13790
13791 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13792
13793 * config/arm/arm-fpus.def: New.
13794 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
13795 arm-fpus.def.
13796 * config/arm/arm-tables.opt: Regenerate.
13797 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
13798 (arm_option_override): Don't decode FPU name to string here.
13799 * config/arm/arm.opt (mfpu=): Use Enum.
13800 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
13801 Update dependencies.
13802
13803 2011-05-19 Joseph Myers <joseph@codesourcery.com>
13804
13805 * collect2.c: Include diagnostic.h.
13806 (fatal_perror, fatal, error, fancy_abort): Remove.
13807 (main): Set progname. Call xmalloc_set_program_name and
13808 diagnostic_initialize.
13809 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
13810 scan_libraries, resolve_lib_name): Call fatal_error instead of
13811 fatal and fatal_perror.
13812 * collect2.h (error, fatal, fatal_perror): Don't declare.
13813 * tlink.c: Include diagnostic-core.h.
13814 (recompile_files): Call fatal_error instead of fatal_perror.
13815 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
13816 pretty-print.o and input.o.
13817 (collect2.o, tlink.o): Update dependencies.
13818
13819 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13820
13821 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
13822
13823 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13824
13825 PR target/40483
13826 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
13827 COMDAT group syntax, both SPARC and x86 variants.
13828 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
13829 * configure: Regenerate.
13830 * config/sol2.h (TARGET_SOLARIS): Define.
13831 (PUSHSECTION_FORMAT): Remove.
13832 (SECTION_NAME_FORMAT): Define.
13833 * config/sol2.c: Include hashtab.h.
13834 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
13835 expansion, using SECTION_NAME_FORMAT.
13836 (solaris_comdat_htab): New variable.
13837 (struct comdat_entry): Define.
13838 (comdat_hash): New function.
13839 (comdat_eq): New function.
13840 (solaris_elf_asm_comdat_section): New function.
13841 (solaris_define_comdat_signature): New function.
13842 (solaris_code_end): New function.
13843 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
13844 (solaris_code_end): Declare.
13845 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
13846 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
13847 solaris_code_end.
13848 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
13849 Remove ATTRIBUTE_UNUSED.
13850 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
13851 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
13852 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
13853 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
13854 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
13855 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
13856 (PUSHSECTION_FORMAT): Remove.
13857 (SECTION_NAME_FORMAT): Redefine.
13858
13859 2011-05-19 Kai Tietz <ktietz@redhat.com>
13860
13861 * tree-cfg.c (verify_gimple_assign_binary): Barf on
13862 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
13863 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
13864
13865 2011-05-19 Anatoly Sokolov <aesok@post.ru>
13866 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13867
13868 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
13869
13870 2011-05-19 Richard Guenther <rguenther@suse.de>
13871
13872 PR middle-end/48985
13873 * tree-object-size.c (addr_object_size): If the pointed-to
13874 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
13875
13876 2011-05-19 Richard Guenther <rguenther@suse.de>
13877
13878 * gimple.c (gimple_types_compatible_p_1): Compare names of
13879 the types themselves.
13880 (iterative_hash_gimple_type): And hash them that way.
13881 (gimple_register_type_1): If we register a main variant properly
13882 initialize the leader to ourselves.
13883
13884 2011-05-19 Tom de Vries <tom@codesourcery.com>
13885
13886 PR target/45098
13887 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
13888 get_loop_invariant_expr_id.
13889 (get_loop_invariant_expr_id): Use get_expr_id.
13890 (parm_decl_cost): New function.
13891 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
13892 Improve bound cost estimation. Use different inv_expr_id for elim and
13893 express cases.
13894
13895 2011-05-19 Tom de Vries <tom@codesourcery.com>
13896
13897 PR target/45098
13898 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
13899 cost_base.cost == 0.
13900
13901 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
13902
13903 PR target/49002
13904 * config/i386/sse.md
13905 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
13906 load cast.
13907
13908 2011-05-18 Jakub Jelinek <jakub@redhat.com>
13909
13910 PR tree-optimization/49039
13911 * tree-vrp.c (extract_range_from_binary_expr): For
13912 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
13913 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
13914
13915 2011-05-18 Tom de Vries <tom@codesourcery.com>
13916
13917 PR target/45098
13918 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
13919
13920 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
13921
13922 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
13923 (*tls_global_dynamic_64): Ditto.
13924 (*tls_local_dynamic_base_32_gnu): Ditto.
13925 (*tls_local_dynamic_base_64): Ditto.
13926 (tls_initial_exec_64_sun): Ditto.
13927
13928 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
13929
13930 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
13931 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
13932 bf592-none.
13933 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
13934 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
13935 * config/bfin/bfin.c (bfin_cpus): Add bf592.
13936 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13937 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
13938 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
13939 * config/bfin/elf.h (LIB_SPEC): Add bf592.
13940
13941 2011-05-18 Joseph Myers <joseph@codesourcery.com>
13942
13943 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
13944 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
13945 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
13946 target_thread_pointer, arm_structure_size_boundary, struct
13947 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
13948 struct abi_name, arm_all_abis): Remove.
13949 (arm_option_override) Don't process most enumerated option values here.
13950 Don't process target_fpe_name here. Work with integer not string for
13951 structure size boundary; use separate diagnostics for each case.
13952 * config/arm/arm.h (enum float_abi_type, enum
13953 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
13954 to arm-opts.h.
13955 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
13956 arm_structure_size_boundary): Remove.
13957 * config/arm/arm.opt (mabi=): Use Enum and Init.
13958 (arm_abi_type): New Enum and EnumValue entries.
13959 (mfloat-abi=): Use Enum and Init.
13960 (float_abi_type): New Enum and EnumValue entries.
13961 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
13962 (mfp16-format=): Use Enum and Init.
13963 (arm_fp16_format_type): New Enum and EnumValue entries.
13964 (mstructure-size-boundary=): Use UInteger and Init.
13965 (mtp=): Use Enum and Init.
13966 (arm_tp_type): New Enum and EnumValue entries.
13967
13968 2011-05-18 Richard Guenther <rguenther@suse.de>
13969
13970 PR tree-optimization/49018
13971 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
13972 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
13973 gimple_has_side_effects.
13974
13975 2011-05-18 Richard Guenther <rguenther@suse.de>
13976
13977 * gimple.c (gimple_register_type_1): New function, split out from ...
13978 (gimple_register_type): ... here. Avoid infinite recursion.
13979
13980 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
13981
13982 PR tree-optimization/41881
13983 * tree-vectorizer.h (struct _loop_vec_info): Add new field
13984 reduction_chains along with a macro for its access.
13985 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
13986 (destroy_loop_vec_info): Free reduction chains.
13987 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
13988 (vect_is_slp_reduction): New function.
13989 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
13990 (vect_create_epilog_for_reduction): Support SLP reduction chains.
13991 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
13992 definition types for reduction chains.
13993 (vect_supported_load_permutation_p): Don't allow permutations for
13994 reduction chains.
13995 (vect_analyze_slp_instance): Support reduction chains.
13996 (vect_analyze_slp): Try to build SLP instance from reduction chains.
13997 (vect_get_constant_vectors): Handle reduction chains.
13998 (vect_schedule_slp_instance): Mark the first statement of the
13999 reduction chain as reduction.
14000
14001 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
14002
14003 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
14004 names for group elements access.
14005 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
14006 reduction chains as well. Remove data reference and interleaving
14007 related words from the fields names.
14008 * tree-vect-loop.c (vect_transform_loop): Use new names for group
14009 elements access.
14010 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
14011 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
14012 vect_update_interleaving_chain, vect_same_range_drs,
14013 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
14014 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
14015 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
14016 vect_analyze_group_access, vect_analyze_data_ref_access,
14017 vect_create_data_ref_ptr, vect_transform_strided_load,
14018 vect_record_strided_load_vectors): Likewise.
14019 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
14020 vect_model_load_cost, vectorizable_store, vectorizable_load,
14021 vect_remove_stores, new_stmt_vec_info): Likewise.
14022 * tree-vect-slp.c (vect_build_slp_tree,
14023 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
14024
14025 2011-05-18 Richard Guenther <rguenther@suse.de>
14026
14027 PR middle-end/48989
14028 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
14029 operand verification.
14030 (verify_gimple_assign_binary): Likewise.
14031 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
14032 to non-1-precision BOOLEAN_TYPEs.
14033
14034 2011-05-18 Tom de Vries <tom@codesourcery.com>
14035
14036 PR target/45098
14037 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
14038
14039 2011-05-18 Jakub Jelinek <jakub@redhat.com>
14040
14041 PR tree-optimization/49000
14042 * tree-ssa.c (execute_update_addresses_taken): Call
14043 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
14044 be rewritten and decl has been marked for renaming, reset
14045 the debug stmt.
14046
14047 2011-05-17 Joseph Myers <joseph@codesourcery.com>
14048
14049 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
14050 enum_opts_set when testing if attributes have set -mfpmath=.
14051
14052 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
14053
14054 * config/mips/mips.c (mips_handle_option): Remove unused variable.
14055
14056 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
14057
14058 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
14059 info->entry with 0
14060 * tree-inline.c (maybe_inline_call_in_expr): Initialize
14061 id.transform_lang_insert_block with NULL.
14062
14063 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
14064
14065 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
14066 (output_fp_compare): Change args 3 and 4 to bool.
14067 (ix86_expand_call): Change arg 6 to bool.
14068 (ix86_attr_length_immediate_default): Change arg 2 to bool.
14069 (ix86_attr_length_vex_default): Change arg 3 to bool.
14070 * config/i386/i386.md: Update all uses.
14071 * config/i386/i386.c: Ditto.
14072 (ix86_flags_dependent): Change return type to bool.
14073
14074 2011-05-17 Richard Guenther <rguenther@suse.de>
14075
14076 * gimple.c (type_hash_pair_compare): Fix comparison.
14077
14078 2011-05-17 Richard Guenther <rguenther@suse.de>
14079
14080 * gimple.c (iterative_hash_gimple_type): Simplify singleton
14081 case some more, fix final hash value of the non-singleton case.
14082
14083 2011-05-17 Richard Guenther <rguenther@suse.de>
14084
14085 PR bootstrap/49013
14086 Revert
14087 2011-05-16 Richard Guenther <rguenther@suse.de>
14088
14089 * gimple.c (gimple_types_compatible_p_1): Use names of the
14090 type itself, not its main variant.
14091 (iterative_hash_gimple_type): Likewise.
14092
14093 2011-05-17 Richard Guenther <rguenther@suse.de>
14094
14095 * gimple.c (gimple_register_canonical_type): Use the main-variant
14096 leader for computing the canonical type.
14097
14098 2011-05-17 Nick Clifton <nickc@redhat.com>
14099
14100 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
14101 moves.
14102
14103 * config/rx/rx.md: Add peephole to remove redundant extensions
14104 after loads.
14105 (bitset_in_memory): Use rx_restricted_mem_operand.
14106 (bitinvert_in_memory): Likewise.
14107 (bitclr_in_memory): Likewise.
14108
14109 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
14110 Nick Clifton <nickc@redhat.com>
14111
14112 * config/rx/rx.md: Add peepholes to match a register move followed
14113 by a comparison of the moved register. Replace these with an
14114 addition of zero that does both actions in one instruction.
14115
14116 2011-05-17 Jakub Jelinek <jakub@redhat.com>
14117
14118 PR target/48986
14119 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
14120 predicate to allow CONST_INT.
14121 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
14122
14123 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14124
14125 * opts-common.c (opt_enum_arg_to_value): New.
14126 * opts.h (opt_enum_arg_to_value): Declare.
14127 * config/i386/i386.opt (fpmath): Remove.
14128 (mfpmath=): Use Enum, Init and Save.
14129 (fpmath_unit): New Enum and EnumValue entries.
14130 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
14131 name for function fpmath state.
14132 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
14133 * config/i386/i386.c: Include diagnostic.h.
14134 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
14135 (ix86_target_string): Take enum fpmath_unit value instead of string.
14136 (ix86_debug_options): Update call to ix86_target_string.
14137 (ix86_option_override_internal): Don't process fpmath strings here.
14138 (x86_function_specific_save, ix86_function_specific_restore):
14139 Don't handle fpmath state specially.
14140 (ix86_function_specific_print): Pass fpmath state to
14141 ix86_target_string instead of printing in this function.
14142 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
14143 Handle enum attributes.
14144 (IX86_ATTR_ENUM, ix86_opt_enum): New.
14145 (ix86_valid_target_attribute_tree): Update option_strings
14146 handling. Handle fpmath as enum option.
14147 (ix86_can_inline_p): Update field names for function fpmath state.
14148 (ix86_expand_builtin): Update call to ix86_target_string.
14149 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
14150 (ix86_fpmath): Remove.
14151 * config/i386/t-i386 (i386.o): Update dependencies.
14152
14153 2011-05-16 Joseph Myers <joseph@codesourcery.com>
14154
14155 PR preprocessor/48677
14156 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
14157 from decoded_options[0], not from itself.
14158
14159 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
14160
14161 * config/i386/constraints.md (z): New constraint.
14162 * config/i386/i386.c (c): New mode attribute.
14163 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
14164 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
14165 constraint for operand 0.
14166 (*call_vzeroupper): Ditto.
14167 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
14168 (*call_rex64_ms_sysv_vzeroupper): Ditto.
14169 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
14170 Use "lzm" constraint for operand 0.
14171 (*call_pop_vzeroupper): Ditto.
14172 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
14173 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
14174 constraint for operand 0.
14175 (*sibcall_vzeroupper): Ditto.
14176 (*sibcall_rex64_ms_sysv): Ditto.
14177 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
14178 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
14179 *sibcall_pop_1. Use "Uz" constraint for operand 0.
14180 (*sibcall_pop_vzeroupper): Ditto.
14181 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
14182 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
14183 mode iterator. Use "<c>zm" constraint for operand 1.
14184 (*call_value_vzeroupper): Ditto.
14185 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
14186 for operand 1.
14187 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
14188 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
14189 *call_value_pop_1. Use "lzm" constraint for operand 1.
14190 (*call_value_pop_vzeroupper): Ditto.
14191 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
14192 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
14193 mode iterator. Use "Uz" constraint for operand 1.
14194 (*sibcall_value_vzeroupper): Ditto.
14195 (*sibcall_value_rex64_ms_sysv): Ditto.
14196 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
14197 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
14198 constraint for operand 1.
14199 (*sibcall_value_pop_vzeroupper): Ditto.
14200 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
14201 and "z" constraint for operand 2.
14202 (*tls_global_dynamic_32_gnu): Ditto.
14203 (*tls_local_dynamic_base_32_gnu): Ditto.
14204 (*tls_local_dynamic_base_64): Ditto.
14205 (*tls_local_dynamic_32_once): Ditto.
14206 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
14207 Update all callers.
14208 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
14209
14210 2011-05-16 Richard Guenther <rguenther@suse.de>
14211
14212 * gimple.c (gimple_types_compatible_p_1): Use names of the
14213 type itself, not its main variant.
14214 (iterative_hash_gimple_type): Likewise.
14215
14216 2011-05-16 Richard Guenther <rguenther@suse.de>
14217
14218 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
14219 always visit pointer target and function result and argument types.
14220
14221 2011-05-16 Jason Merrill <jason@redhat.com>
14222
14223 PR c++/48999
14224 * tree-inline.c (copy_statement_list): Put back recursion.
14225
14226 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14227
14228 PR target/27663
14229 PR target/41076
14230 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
14231 * config/avr/avr.md ("*ior<mode>qi.byte0",
14232 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
14233
14234 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
14235
14236 PR target/45099
14237 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
14238 register is needed for a function argument.
14239
14240 2011-05-16 Richard Guenther <rguenther@suse.de>
14241
14242 * gimple.c (struct type_hash_pair): New type.
14243 (type_hash_pair_compare): New function.
14244 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
14245
14246 2011-05-16 Revital Eres <revital.eres@linaro.org>
14247
14248 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
14249
14250 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14251
14252 * config/i386/i386.md (floating point move splitters): Fix
14253 usage of standard_80387_constant_p.
14254 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
14255
14256 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
14257
14258 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
14259
14260 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
14261
14262 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
14263 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
14264 (tree_ssa_lim_finalize): Likewise.
14265
14266 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
14267
14268 * config/i386/constraint.md (Yd, Yx): New register constraints.
14269 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
14270 Yd conditional register constraint.
14271 (*movtf_internal): Use standard_sse_constant_opcode.
14272 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
14273 Yx conditional register constraint.
14274 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
14275 Yd conditional register constraint. Use standard_sse_constant_p to
14276 check for valid SSE constants and call standard_sse_constant_opcode to
14277 output SSE insn.
14278 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
14279 constants and call standard_sse_constant_opcode to output SSE insn.
14280 * config/i386/i386.c (ix86_option_ovverride_internal): Set
14281 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
14282 optimize_size is set.
14283 (standard_sse_constant_opcode): Output conditional AVX insn templates.
14284
14285 2011-05-14 Tobias Burnus <burnus@net-b.de>
14286
14287 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
14288
14289 2011-05-13 Martin Jambor <mjambor@suse.cz>
14290
14291 * ipa-prop.c (ipa_cst_from_jfunc): New function.
14292 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
14293 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
14294 (evaluate_conditions_for_ipcp_clone): Removed.
14295 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
14296 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
14297 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
14298
14299 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
14300
14301 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
14302 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
14303 lieu of MAY_HAVE_DEBUG_STMTS.
14304 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
14305 debug statements if !MAY_HAVE_DEBUG_STMTS.
14306
14307 2011-05-13 Martin Thuresson <martint@google.com>
14308
14309 PR gcov-profile/47793
14310 * libgcov.c (gcov_exit): Support relative profile paths.
14311 * doc/invoke.texi (-fprofile-dir): Update for above change.
14312
14313 2011-05-13 Richard Guenther <rguenther@suse.de>
14314
14315 * gimple.c (gimple_canonical_types_compatible_p): Do not use
14316 type-pair caching, do not compare hashes.
14317
14318 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
14319
14320 PR middle-end/48965
14321 * tree-cfg.c (edge_to_cases_cleanup): Return true.
14322 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
14323
14324 2011-05-13 Kai Tietz <ktietz@redhat.com>
14325
14326 * gimplify.c (gimplify_expr): Make sure operand is boolified.
14327 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
14328 compatible type for TRUTH_NOT_EXPR.
14329
14330 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
14331
14332 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
14333 (ix86_hard_regno_mode_ok): Change return value to bool. Use
14334 can_create_pseudo_p ().
14335
14336 2011-05-13 Richard Guenther <rguenther@suse.de>
14337
14338 PR lto/48978
14339 * gimple.c (iterative_hash_gimple_type): Revert change in
14340 pointer target and function result and argument hashing.
14341
14342 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
14343
14344 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
14345 (*movxf_internal_nointeger): Ditto.
14346 (*movdf_internal_rex64): Ditto.
14347 (*movdf_internal): Ditto.
14348 (*movdf_internal_nointeger): Ditto.
14349 (*movsf_internal): Ditto.
14350 (sincos splitters): Use can_create_pseudo ().
14351
14352 2011-05-13 Joseph Myers <joseph@codesourcery.com>
14353
14354 * config/i386/i386-opts.h: New.
14355 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
14356 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
14357 ix86_section_threshold): Remove.
14358 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
14359 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
14360 OPT_mbranch_cost_.
14361 (ix86_option_override_internal): Don't decode strings for options
14362 other than -march=, -mtune= and -mfpmath=. Don't allow for
14363 __attribute__ uses in remaining diagnostics for options with
14364 string arguments. Don't check for integer arguments being negative.
14365 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
14366 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
14367 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
14368 ix86_branch_cost, ix86_section_threshold): Remove.
14369 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
14370 HeaderInclude.
14371 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
14372 but not Var.
14373 (masm=): Use Enum and Init.
14374 (asm_dialect): New Enum and EnumValue entries.
14375 (mbranch-cost=): Use UInteger.
14376 (mlarge-data-threshold=): Use UInteger and Init.
14377 (mcmodel=): Use Enum and Init.
14378 (cmodel): New Enum and EnumValue entries.
14379 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
14380 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
14381 mregparm=): Use UInteger.
14382 (mstringop-strategy=): Use Enum and Init.
14383 (stringop_alg): New Enum and EnumValue entries.
14384 (mtls-dialect=): Use Enum and Init.
14385 (tls_dialect): New Enum and EnumValue entries.
14386 (mabi=): Use Enum and Init.
14387 (calling_abi): New Enum and EnumValue entries.
14388 (mveclibabi=): Use Enum and Init.
14389 (ix86_veclibabi): New Enum and EnumValue entries.
14390
14391 2011-05-13 Nick Clifton <nickc@redhat.com>
14392
14393 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
14394 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
14395
14396 2011-05-13 Kai Tietz <ktietz@redhat.com>
14397
14398 PR middle-end/48984
14399 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
14400 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
14401 (gimple_boolify): Check for cast for boolean_type_node instead for
14402 BOOLEAN_TYPE.
14403
14404 2011-05-13 Richard Guenther <rguenther@suse.de>
14405
14406 PR tree-optimization/48172
14407 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
14408 multiplying by number of iterations for equal step.
14409 (vect_create_cond_for_alias_checks): Likewise.
14410
14411 2011-05-13 Andreas Schwab <schwab@redhat.com>
14412
14413 * configure.ac: Use AS_HELP_STRING throughout.
14414 * configure: Regenerate.
14415
14416 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
14417
14418 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
14419 (ix86_emit_restore_regs_using_mov): Likewise.
14420 (ix86_emit_restore_sse_regs_using_mov): Likewise.
14421
14422 2011-05-12 Anatoly Sokolov <aesok@post.ru>
14423
14424 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
14425 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
14426 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
14427 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
14428 RTX_OK_FOR_OLO10_P): ...here.
14429 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
14430 SYMBOLIC_CONST.
14431
14432 2011-05-12 Kai Tietz <ktietz@redhat.com>
14433
14434 * gimplify.c (gimple_boolify): Re-boolify expression
14435 arguments even if expression type is of kind BOOLEAN_TYPE.
14436 (gimplify_boolean_expr): Removed.
14437 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
14438 and XOR. Additional take care that we keep expression's type.
14439 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
14440 of TRUTH_AND|OR|XOR_EXPR.
14441
14442 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14443
14444 PR tree-optimization/48975
14445 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
14446 on all bbs here and free and clear ifc_bbs at the end.
14447
14448 2011-05-12 Richard Guenther <rguenther@suse.de>
14449
14450 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
14451 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
14452 until after simple checks.
14453 (gimple_types_compatible_p): Likewise.
14454 (iterative_hash_gimple_type): Always hash pointer targets
14455 and function return and argument types.
14456 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
14457 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
14458 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
14459 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
14460 completely in the simple compare section.
14461 (gimple_register_canonical_type): Query the cache again after
14462 registering.
14463
14464 2011-05-12 Richard Guenther <rguenther@suse.de>
14465
14466 PR tree-optimization/48172
14467 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
14468 the number of iterations from the segment size calculation.
14469 (vect_create_cond_for_alias_checks): Adjust.
14470
14471 2011-05-12 Jakub Jelinek <jakub@redhat.com>
14472
14473 PR debug/48967
14474 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
14475 if validate_subreg fails.
14476
14477 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
14478
14479 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
14480 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
14481 early.
14482
14483 2011-05-12 DJ Delorie <dj@redhat.com>
14484
14485 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
14486 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
14487 created builtin into rx_builtins array.
14488 (rx_builtin_decl): New function.
14489 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
14490
14491 2011-05-12 DJ Delorie <dj@redhat.com>
14492 Nick Clifton <nickc@redhat.com>
14493
14494 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
14495 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
14496 (rx_is_legitimate_address): Add pre-decrement and post-increment
14497 addressing in HImode and QImode. Fix test for out of range
14498 REG+INT addressing.
14499 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
14500 (rx_align_for_label): Test label before extracting its usage count.
14501 (rx_adjust_insn_lengths): Fix selection of insn codes.
14502 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
14503
14504 2011-05-11 Jason Merrill <jason@redhat.com>
14505
14506 * tree.c (type_hash_canon): Use struct tree_type_non_common.
14507
14508 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14509
14510 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
14511 reindent the subsequent block.
14512
14513 2011-05-11 Satoru Takabayashi <satorux@google.com>
14514 Paul Pluzhnikov <ppluzhnikov@google.com>
14515
14516 * doc/install.texi (Configuration): Document --with-linker-hash-style.
14517 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
14518 * config.in: Add LINKER_HASH_STYLE.
14519 * configure.ac: Add --with-linker-hash-style.
14520 * configure: Regenerate.
14521
14522 2011-05-11 Richard Guenther <rguenther@suse.de>
14523
14524 PR middle-end/48964
14525 * gimple.c (iterative_hash_canonical_type): Fix typo.
14526
14527 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
14528
14529 * config/i386/i386.c (legitimize_tls_address)
14530 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14531 expanders directly for TARGET_GNU2_TLS. Determine pic and
14532 __tls_get_addr symbol reference here. Update call to
14533 gen_tls_global_dynamic_{32,64} for added arguments.
14534 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
14535 expanders directly for TARGET_GNU2_TLS. Determine
14536 __tls_get_addr symbol reference here. Update call to
14537 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
14538 unique UNSPEC REG_EQUIV to libcall block.
14539 (ix86_tls_get_addr): Declare static.
14540 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
14541 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
14542 Do not determine pic and __tls_get_addr symbol reference here. Do not
14543 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
14544 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
14545 (tls_global_dynamic_64): Add operand 2. Do not determine
14546 __tls_get_addr symbol reference here. Do not call
14547 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
14548 (tls_local_dynamic_base64): Ditto for operand 1.
14549
14550 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
14551
14552 * function.c (expand_function_start): Initialize stack_check_probe_note
14553 only if the generic stack checking mechanism is used.
14554
14555 2011-05-11 Richard Guenther <rguenther@suse.de>
14556
14557 PR tree-optimization/15256
14558 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
14559 (A & B) | C, combine (A op CST1) op CST2.
14560 (tree_ssa_forward_propagate_single_use_vars): Only bother to
14561 visit assigns that have uses.
14562
14563 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
14564
14565 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
14566 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
14567 (unpack_ts_type_common_value_fields): ...this. Update comment.
14568 (unpack_value_fields): Adjust for renaming.
14569 (lto_input_ts_type_tree_pointers): Split into...
14570 (lto_input_ts_type_common_tree_pointer): ...this and...
14571 (lto_input_ts_type_non_common_tree_pointers): ...this.
14572 (lto_input_tree_pointers): Adjust for above split.
14573 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
14574 (pack_ts_type_common_value_fields): ...this. Update comment.
14575 (lto_output_ts_type_tree_pointers): Split into...
14576 (lto_output_ts_type_common_tree_pointers): ...this and...
14577 (lto_output_ts_type_non_common_tree_pointers): ...this.
14578 (lto_output_tree_pointers): Adjust for above split.
14579 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
14580 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
14581 * stor-layout.c (vector_type_mode): Adjust location of mode field.
14582 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
14583 Define.
14584 (struct tree_type): Split into...
14585 (struct tree_type_common: ...this and...
14586 (struct tree_type_with_lang_specific): ...this and...
14587 (struct tree_type_non_common): ...this. Adjust accessor macros
14588 accordingly.
14589 (TYPE_VALUES_RAW): Define.
14590 (union tree_node): Update for above changes.
14591 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
14592 TS_TYPE_NON_COMMON.
14593 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
14594 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
14595 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
14596 * treestructu.def (TS_TYPE): Remove.
14597 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
14598 Define.
14599
14600 2011-05-11 Jakub Jelinek <jakub@redhat.com>
14601
14602 PR debug/48159
14603 * tree-ssa.c (reset_debug_uses): New function.
14604 * tree-flow.h (reset_debug_uses): New prototype.
14605 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
14606 * tree-loop-distribution.c (generate_loops_for_partition): Call
14607 reset_debug_uses on the stmts that will be removed. Keep around
14608 all debug stmts, don't count them as bits in partition bitmap.
14609 (generate_builtin): Don't count debug stmts or labels as bits in
14610 partition bitmap.
14611
14612 2011-05-11 Richard Guenther <rguenther@suse.de>
14613
14614 * gimple.c (gimple_type_hash_1): Merge with ...
14615 (gimple_type_hash): ... this.
14616 (gtc_visit): Remove mode parameter and simplify accordingly.
14617 (gimple_types_compatible_p_1): Likewise.
14618 (gimple_types_compatible_p): Likewise.
14619 (iterative_hash_gimple_type): Likewise.
14620 (visit): Likewise.
14621 (gimple_type_eq): Adjust.
14622
14623 2011-05-11 Revital Eres <revital.eres@linaro.org>
14624
14625 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
14626 enters the branch create an anti edge in the opposite direction
14627 to prevent the creation of reg-moves.
14628 * modulo-sched.c: Adjust comment to reflect the fact we are
14629 scheduling closing branch.
14630 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
14631 (stage_count): New field in struct partial_schedule.
14632 (calculate_stage_count): New function.
14633 (normalize_sched_times): Rename to reset_sched_times and handle
14634 incrementing the sched time of the nodes by a constant value
14635 passed as parameter.
14636 (duplicate_insns_of_cycles): Skip closing branch.
14637 (sms_schedule_by_order): Schedule closing branch.
14638 (ps_insn_find_column): Handle closing branch.
14639 (sms_schedule): Call reset_sched_times and adjust the code to
14640 support scheduling of the closing branch.
14641 (ps_insert_empty_row): Update calls to normalize_sched_times
14642 and rotate_partial_schedule functions.
14643
14644 2011-05-11 Richard Guenther <rguenther@suse.de>
14645
14646 PR middle-end/48953
14647 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
14648
14649 2011-05-11 Joseph Myers <joseph@codesourcery.com>
14650
14651 * opts.c (finish_options): Move warning settings from process_options.
14652 * toplev.c (process_options): Move warning settings to finish_options.
14653
14654 2011-05-11 Richard Guenther <rguenther@suse.de>
14655
14656 PR tree-optimization/18041
14657 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
14658 (simplify_bitwise_binary): ... this. Handle operand conversions
14659 by applying them to the result instead.
14660 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
14661
14662 2011-05-11 Richard Guenther <rguenther@suse.de>
14663
14664 * gimple.c (gimple_canonical_types_compatible_p): Split out
14665 from gimple_types_compatible_p and friends. Do not recurse
14666 to pointed-to types.
14667 (gimple_canonical_type_eq): Use it.
14668 (iterative_hash_canonical_type): Split out from
14669 iterative_hash_gimple_type and friends. Do not recurse
14670 to pointed-to types.
14671 (gimple_canonical_type_hash): Use it, allocate the hash here.
14672
14673 2011-05-11 Revital Eres <revital.eres@linaro.org>
14674
14675 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
14676 recognizing doloop.
14677
14678 2011-05-11 Revital Eres <revital.eres@linaro.org>
14679
14680 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
14681 instead of PREV_INSN.
14682
14683 2011-05-11 Revital Eres <revital.eres@linaro.org>
14684
14685 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
14686 * loop-doloop.c (doloop_condition_get): Likewise.
14687 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
14688 (doloop_end): New.
14689 * config/arm/arm.md (*addsi3_compare0): Remove "*".
14690
14691 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
14692
14693 * tree.def (CASE_LABEL_EXPR): Add an operand.
14694 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
14695
14696 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14697
14698 * c-decl.c (c_override_global_bindings_to_false): Remove.
14699 (global_bindings_p): Don't check
14700 c_override_global_bindings_to_false.
14701 * c-tree.h (c_override_global_bindings_to_false): Remove.
14702 * c-typeck.c (composite_type): Don't set
14703 c_override_global_bindings_to_false.
14704
14705 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
14706
14707 PR target/48857, 48495
14708 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
14709 (VSX_MODE): Ditto.
14710 (VSX_MOVE_MODE): Ditto.
14711 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
14712 VSX vector types. Add V2DImode.
14713 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
14714 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
14715 (MODES_TIEABLE_P): Ditto.
14716
14717 * config/rs6000/rs6000.c (rs6000_emit_move): Use
14718 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
14719 VSX_VECTOR_MODE.
14720 (init_cumulative_args): Ditto.
14721 (rs6000_function_arg_boundary): Ditto.
14722 (rs6000_function_arg_advance_1): Ditto.
14723 (rs6000_function_arg): Ditto.
14724 (rs6000_function_ok_for_sibcall): Ditto.
14725 (emit_frame_save): Ditto.
14726 (rs6000_function_value): Ditto.
14727 (rs6000_libcall_value): Ditto.
14728
14729 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14730
14731 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
14732 i386/darwin-lib.h to $libgcc_tm_file.
14733 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
14734
14735 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14736
14737 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
14738
14739 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14740
14741 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
14742 * config/rs6000/rs6000-tables.opt: New file (generated).
14743 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
14744 rs6000/rs6000-tables.opt to extra_options.
14745 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
14746 * config/rs6000/rs6000.c (rs6000_select): Remove.
14747 (processor_target_table): Move contents to rs6000-cpus.def.
14748 (darwin_rs6000_override_options): Check
14749 global_options_set.x_rs6000_cpu_index instead of
14750 rs6000_select[1].string.
14751 (rs6000_option_override_internal): Likewise.
14752 (rs6000_handle_option): Don't assert that global structures are in
14753 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
14754 (rs6000_default_cpu): New variable.
14755 (rs6000_file_start): Set it instead of local default_cpu. Check
14756 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
14757 global_options_set.x_rs6000_tune_index instead of rs6000_select.
14758 (rs6000_darwin_file_start): Check rs6000_default_cpu and
14759 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
14760 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
14761 rs6000_select): Remove.
14762 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
14763 Remove.
14764 (mcpu=, mtune=): Use Var, Init, Enum and Save.
14765 * config/rs6000/t-rs6000
14766 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
14767 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14768 global_options_set.x_rs6000_cpu_index instead of
14769 rs6000_select[1].string.
14770 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
14771 global_options_set.x_rs6000_cpu_index instead of
14772 rs6000_select[1].string.
14773
14774 2011-05-10 Joseph Myers <joseph@codesourcery.com>
14775
14776 * config.gcc (libgcc_tm_file): Define instead of including files
14777 from ../../libgcc/config/ in tm_file.
14778 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
14779 * configure: Regenerate.
14780 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
14781 libgcc_tm.h, cs-libgcc_tm.h): New.
14782 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
14783 (clean): Remove libgcc_tm.h.
14784 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
14785 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
14786 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
14787
14788 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
14789
14790 PR target/48896
14791 * config/avr/avr.c (avr_ret_register): Return unsigned int
14792 instead of int.
14793 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
14794 it to avr_libcall_value.
14795 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
14796 expand_expr.
14797 (avr_expand_binop_builtin): Ditto.
14798 (avr_expand_unop_builtin): Ditto.
14799
14800 2011-05-10 DJ Delorie <dj@redhat.com>
14801
14802 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
14803 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
14804 * config/rx/rx.c (rx_align_for_label): Add label and
14805 uses_threshold parameters. Do not align when the label is not
14806 used enough.
14807 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
14808
14809 2011-05-10 Richard Guenther <rguenther@suse.de>
14810
14811 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
14812 a series of conversions and apply foldings similar to what
14813 fold-const does.
14814 (tree_ssa_forward_propagate_single_use_vars): Call it.
14815
14816 2011-05-10 Jakub Jelinek <jakub@redhat.com>
14817
14818 PR tree-optimization/48611
14819 PR tree-optimization/48794
14820 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
14821 referenced from RESX or EH_DISPATCH arguments.
14822
14823 PR debug/48928
14824 * dfp.c (decimal_to_decnumber): Handle conversion from
14825 dconst{1,2,m1,half}.
14826
14827 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14828
14829 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
14830 for !flag_prefer_avx128.
14831 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
14832
14833 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
14834
14835 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
14836 (fold_ternary_loc): Use expr_location_or.
14837
14838 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
14839
14840 PR debug/48853
14841 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
14842 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
14843 Pmode and mem_mode is not VOIDmode.
14844
14845 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
14846
14847 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
14848 TYPE_QUAL_RESTRICT): Convert to enum.
14849
14850 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14851
14852 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
14853 (const_pow2_1_to_8_operand): Ditto.
14854 (const_pow2_1_to_128_operand): Ditto.
14855 (const_pow2_1_to_32768_operand): Ditto.
14856 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
14857 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
14858 in insn constraint to check integer value of operand 3.
14859 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
14860
14861 (PINSR_MODE): New mode iterator.
14862 (sse2p4_1): New mode attribute.
14863 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
14864 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
14865 iterator. Use const_int_operand instead of
14866 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
14867 exact_log2 in insn constraint to check integer value of operand 3.
14868
14869 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14870
14871 * config/i386/sse.md (blendbits): Remove mode attribute.
14872 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
14873 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
14874 Check integer value of operand 3 in insn constraint.
14875
14876 2011-05-09 Richard Guenther <rguenther@suse.de>
14877
14878 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
14879 for diagnostics.
14880 (lto_symtab_merge): Likewise. Do not register types here.
14881 (lto_symtab_merge_decls_2): Likewise.
14882 (lto_symtab_merge_decls_1): Likewise.
14883 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
14884 * gimple.c (enum gtc_mode): Declare.
14885 (gimple_types_compatible_p): Make static.
14886
14887 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14888
14889 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
14890 temporary register to match Pmode.
14891
14892 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14893
14894 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
14895 and *vec_concatv4si_1_avx.
14896
14897 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
14898
14899 PR rtl-optimization/48927
14900 * ira-conflicts.c (commutative_constraint_p): Use
14901 recog_data.alternative_enabled_p to disable alternatives where
14902 "enabled" attribute is false.
14903 (get_dup_num): Ditto.
14904 * ira-lives.c (single_reg_class): Ditto.
14905 (ira_implicitly_set_insn_hard_regs): Ditto.
14906
14907 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
14908
14909 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
14910 (dataflow_set_preserve_mem_locs): Likewise.
14911
14912 2011-05-09 Philipp Thomas <pth@suse.de>
14913
14914 * config/mep/mep.c (mep_validate_vliw): Syntax description
14915 should not be translated.
14916
14917 2011-05-09 Joseph Myers <joseph@codesourcery.com>
14918
14919 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
14920 * config/mips/mips-tables.opt: New file (generated).
14921 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
14922 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
14923 MIPS_ARCH_OPTION_NATIVE): Define.
14924 * config/mips/mips.c (mips_cpu_info_table): Move contents to
14925 mips-cpus.def.
14926 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
14927 mips_parse_cpu): Remove.
14928 (mips_cpu_info_from_opt, mips_default_arch): New.
14929 (mips_handle_option): Don't assert that global structures are in
14930 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
14931 (mips_option_override): Use new variables and functions to set
14932 state of these options. Use strcmp to check for individual CPU names.
14933 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
14934 definition.
14935 * config/mips/mips.opt (march=): Use ToLower and Enum.
14936 (mips): Use ToLower, Enum and Var.
14937 (mtune=): Use ToLower and Enum.
14938 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
14939
14940 2011-05-08 Jan Hubicka <jh@suse.cz>
14941
14942 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
14943 Arrange type pairs to be UID ordered.
14944 (gimple_lookup_type_leader): Make inline.
14945
14946 2011-05-09 Nick Clifton <nickc@redhat.com>
14947
14948 PR target/48899
14949 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
14950 PROCESSOR_DEFAULT.
14951
14952 PR target/48897
14953 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
14954 variable 's'.
14955
14956 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
14957
14958 * combine.c (simplify_comparison): Abstract out parts into...
14959 (simplify_compare_const): ... new function.
14960 (try_combine): Generalize parallel arithmetic/compare combining
14961 to call simplify_compare_const() and CANONICALIZE_COMPARE().
14962
14963 2011-05-08 Jan Hubicka <jh@suse.cz>
14964
14965 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
14966 (cgraph_create_virtual_clone): Call hooks once virtual clone
14967 is finished.
14968 * cgraph.h (cgraph_clone_node): Update prototype.
14969 * ipa-cp.c (ipcp_estimate_growth): Use
14970 estimate_ipcp_clone_size_and_time.
14971 * ipa-inline-transform.c (clone_inlined_nodes): Update.
14972 * lto-cgraph.c (input_node): Update.
14973 * ipa-inline.c (recursive_inlining): Update.
14974 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
14975 (evaluate_conditions_for_known_args): Break out from ...
14976 (evaluate_conditions_for_edge): ... here.
14977 (evaluate_conditions_for_ipcp_clone): New function.
14978 (inline_node_duplication_hook): Update clone summary based
14979 on parameter map.
14980 (estimate_callee_size_and_time): Rename to ...
14981 (estimate_node_size_and_time): take NODE instead of EDGE;
14982 take POSSIBLE_TRUTHS as argument.
14983 (estimate_callee_size_and_time): Update.
14984 (estimate_ipcp_clone_size_and_time): New function.
14985 (do_estimate_edge_time): Update.
14986
14987 2011-05-08 Richard Guenther <rguenther@suse.de>
14988
14989 PR middle-end/48908
14990 PR middle-end/48905
14991 * expmed.c (expand_shift_1): Compute adjusted constant shift
14992 amount manually.
14993
14994 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14995
14996 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
14997
14998 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
14999
15000 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
15001
15002 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
15003
15004 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
15005
15006 2011-05-07 Jan Hubicka <jh@suse.cz>
15007
15008 * ipa-inline-transform.c (inline_call): Account when program size
15009 decreases.
15010 * ipa-inline.c (relative_time_benefit): New function.
15011 (edge_badness): Reorganize to be power 2 based; fix thinko when
15012 computing badness for negative growth; update comments to match
15013 reality; better dumps.
15014
15015 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
15016
15017 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
15018 type to bool and adjust comment.
15019 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
15020 (fold_mathfn_compare): Remove calls to global_bindings_p.
15021 (fold_inf_compare): Likewise.
15022 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
15023 * c-tree.h (global_bindings_p): Adjust prototype.
15024 * c-decl.c (global_bindings_p): Return bool and simplify.
15025
15026 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
15027
15028 PR tree-optimization/48837
15029 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
15030 when accumulator transformation is performed.
15031
15032 2011-05-06 Jan Hubicka <jh@suse.cz>
15033
15034 * i386.h (ix86_tune_indices): Add
15035 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
15036 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
15037 * i386.c (initial_ix86_tune_features): Add
15038 X86_SOFTARE_PREFETCHING_BENEFICIAL.
15039 (software_prefetching_beneficial_p): Remove predicate.
15040 (ix86_option_override_internal): Use new macro.
15041
15042 2011-05-06 Jan Hubicka <jh@suse.cz>
15043
15044 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
15045
15046 2011-05-06 Jan Hubicka <jh@suse.cz>
15047
15048 * cgraph.c (cgraph_add_thunk): Create real function node instead
15049 of alias node; finalize it and mark needed/reachale; arrange visibility
15050 to be right and add it into the corresponding same comdat group list.
15051 (dump_cgraph_node): Dump thunks.
15052 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
15053 cgraph_function_with_gimple_body_p,
15054 cgraph_first_function_with_gimple_body,
15055 cgraph_next_function_with_gimple_body): New functions.
15056 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
15057 New macros.
15058 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
15059 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15060 * cgraphunit.c (cgraph_finalize_function): Only look into possible
15061 devirtualization when optimizing.
15062 (verify_cgraph_node): Verify thunks.
15063 (cgraph_analyze_function): Analyze thunks.
15064 (cgraph_mark_functions_to_output): Output thunks only in combination
15065 with function they are assigned to.
15066 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
15067 alias into normal node.
15068 (assemble_thunks): New functoin.
15069 (cgraph_expand_function): Use it.
15070 * lto-cgraph.c (lto_output_node): Stream thunks.
15071 (input_overwrite_node): Stream in thunks.
15072 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
15073 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
15074 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
15075 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
15076 (inline_analyze_function): Do not care about thunk jump functions.
15077 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
15078 * ipa-prop.c (ipa_prop_write_jump_functions): Use
15079 cgraph_function_with_gimple_body_p.
15080 * passes.c (do_per_function_toporder): Use
15081 cgraph_function_with_gimple_body_p.
15082 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
15083 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
15084 (function_called_by_processed_nodes_p): Likewise.
15085
15086 2011-05-06 Joseph Myers <joseph@codesourcery.com>
15087
15088 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
15089 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
15090 entries.
15091 (mabi=): Replace with separate entries for mabi=altivec,
15092 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
15093 mabi=ieeelongdouble and mabi=ibmlongdouble.
15094 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
15095 check for -mabi=spe without SPE ABI support here.
15096 (rs6000_handle_option): Replace OPT_mabi_ handling with
15097 OPT_mabi_altivec and OPT_mabi_spe handling.
15098
15099 2011-05-06 Cary Coutant <ccoutant@google.com>
15100
15101 * dwarf2out.c (contains_subprogram_definition): New function.
15102 (should_move_die_to_comdat): Call it.
15103
15104 2011-05-06 Jeff Law <law@redhat.com>
15105
15106 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
15107 remove_ctrl_stmt_and_useless_edges.
15108 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
15109 (fixup_template_block, thread_single_edge): Likewise.
15110 (mark_threaded_blocks): Use THREAD_TARGET.
15111
15112 2011-05-06 Alan Modra <amodra@gmail.com>
15113
15114 PR target/48900
15115 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15116 const0_rtx as the arg to the dummy __tls_get_addr libcall.
15117
15118 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15119
15120 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
15121 constraint modifier to "r".
15122
15123 2011-05-06 Joseph Myers <joseph@codesourcery.com>
15124
15125 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
15126 fall through for OPT_mcmodel_.
15127
15128 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15129
15130 * config/s390/s390.c (s390_asm_trampoline_template): Comment
15131 instruction sizes.
15132 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
15133
15134 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15135
15136 PR target/47930
15137 * config/arm/arm.opt (marm): Document it.
15138 (mthumb): Reject negative variant.
15139
15140 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
15141
15142 PR target/48898
15143 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
15144 Fix typo in "ccvt" variable name.
15145
15146 2011-05-06 Tristan Gingold <gingold@adacore.com>
15147
15148 PR target/48895
15149 * config/vms/vms-ar.c (main): Remove cwd variable.
15150
15151 2011-05-06 Jakub Jelinek <jakub@redhat.com>
15152
15153 PR debug/48902
15154 * var-tracking.c (prepare_call_arguments): Move else before #endif.
15155
15156 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
15157
15158 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
15159 * gimplify.c (gimplify_switch_expr): Likewise.
15160 * omp-low.c (expand_omp_sections): Likewise.
15161 * tree-eh.c (lower_try_finally_switch): Likewise.
15162 (lower_eh_dispatch): Likewise.
15163 * tree.h (build_case_label): Declare.
15164 * tree.c (build_case_label): Define.
15165
15166 2011-05-05 Jason Merrill <jason@redhat.com>
15167
15168 PR c++/40975
15169 * tree-inline.c (copy_tree_r): Use copy_statement_list.
15170 (copy_statement_list): Don't recurse.
15171 * stor-layout.c (copy_self_referential_tree_r): Don't allow
15172 STATEMENT_LIST.
15173
15174 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15175
15176 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
15177 through from -mfpu= handling.
15178 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
15179
15180 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
15181
15182 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
15183 POST_MODIFY.
15184
15185 2011-05-05 Steve Ellcey <sje@cup.hp.com>
15186
15187 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
15188 for 11.31.
15189 (hppa[12]*-*-hpux11*): Ditto.
15190 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
15191 * config/ia64/hpux-unix2003.h: New.
15192 * config/pa/pa-hpux1131.opt: New.
15193 * config/pa/pa-hpux1131.h: New.
15194 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
15195 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
15196 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
15197
15198 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15199
15200 PR debug/48853
15201 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
15202 instead of mode as 3rd argument to recursive call.
15203 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
15204 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
15205 VOIDmode.
15206 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
15207 don't give up if mode is Pmode and mem_mode is not VOIDmode.
15208 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
15209 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
15210
15211 2011-05-05 Julian Brown <julian@codesourcery.com>
15212
15213 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
15214 parenthesis in D-register case.
15215
15216 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15217
15218 * opt-functions.awk (var_type_struct): Handle Enum options.
15219 * optc-gen.awk: Don't check range of variables of character type.
15220 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
15221 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
15222 rs6000_sdata_name, rs6000_explicit_options): Remove.
15223 (rs6000_option_override_internal): Check for -malign-power here.
15224 Use global_options_set instead of rs6000_explicit_options.
15225 (rs6000_parse_fpu_option): Remove.
15226 (rs6000_handle_option): Access variables via opts and opts_set
15227 pointers. Use error_at and warning_at. Add fall-through
15228 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
15229 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
15230 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
15231 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
15232 here. Don't use rs6000_parse_fpu_option.
15233 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
15234 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
15235 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
15236 (mrecip=): Use Var.
15237 (mspe): Use Var and Save.
15238 (mtraceback=): Use Enum and Var.
15239 (rs6000_traceback_type): New Enum and EnumValue entries.
15240 (mfloat-gprs=): Use Enum, Var and Save.
15241 (rs6000_float_gprs): New Enum and EnumValue entries.
15242 (mlong-double-): use Var and Save.
15243 (msched-costly-dep=, minsert-sched-nops=): Use Var.
15244 (malign-): Use Enum and Var.
15245 (rs6000_alignment_flags): New Enum and EnumValue entries.
15246 (mfpu=): Use Enum.
15247 (fpu_type_t): New Enum and EnumValue entries.
15248 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15249 global_options_set instead of rs6000_explicit_options.
15250 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15251 global_options_set instead of rs6000_explicit_options.
15252 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15253 global_options_set instead of rs6000_explicit_options.
15254 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
15255 global_options_set instead of rs6000_explicit_options.
15256 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
15257 global_options_set instead of rs6000_explicit_options.
15258 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15259 global_options_set instead of rs6000_explicit_options.
15260 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
15261 definition.
15262 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15263 global_options_set instead of rs6000_explicit_options.
15264 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
15265 (rs6000_cmodel): New Enum and EnumValue entries.
15266 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
15267 global_options_set instead of rs6000_explicit_options.
15268 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
15269 (mtls-size=): Use Enum and Var.
15270 (rs6000_tls_size): New Enum and EnumValue entries.
15271
15272 2011-05-05 Michael Matz <matz@suse.de>
15273
15274 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
15275 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
15276 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
15277 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
15278 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
15279 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
15280 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
15281 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
15282 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
15283 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
15284 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
15285 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
15286 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
15287 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
15288 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
15289 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
15290
15291 2011-05-05 Richard Guenther <rguenther@suse.de>
15292
15293 * expmed.c (expand_variable_shift): Rename to ...
15294 (expand_shift_1): ... this. Take an expanded shift amount.
15295 For rotates recurse directly not building trees for the shift amount.
15296 (expand_variable_shift): Wrap around expand_shift_1.
15297 (expand_shift): Adjust.
15298
15299 2011-05-05 Jakub Jelinek <jakub@redhat.com>
15300
15301 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
15302
15303 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
15304
15305 * tree.h (get_pending_sizes): Remove prototype.
15306 (put_pending_size): Likewise.
15307 (put_pending_sizes): Likewise.
15308 * stor-layout.c (pending_sizes): Delete.
15309 (get_pending_sizes): Likewise.
15310 (put_pending_size): Likewise.
15311 (put_pending_sizes): Likewise.
15312 (variable_size): Do not call put_pending_size and tidy up.
15313 * function.h (struct function): Remove dont_save_pending_sizes_p.
15314 * lto-streamer-in.c (input_function): Do not stream it.
15315 * lto-streamer-out.c (output_function): Likewise.
15316 * tree-inline.c (initialize_cfun): Do not copy it.
15317 * c-decl.c (store_parm_decls): Do not set it.
15318 * omp-low.c (create_task_copyfn): Likewise.
15319 * tree-optimize.c (tree_rest_of_compilation): Likewise.
15320
15321 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
15322
15323 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
15324 conditions.
15325 (*movdf_internal): Ditto.
15326 (*movdf_internal_nointeger): Ditto.
15327 (*movsf_internal): Ditto.
15328
15329 2011-05-05 Joseph Myers <joseph@codesourcery.com>
15330
15331 * c-decl.c (finish_decl): Don't call get_pending_sizes.
15332 (grokparm): Add parameter expr. Pass it to grokdeclarator.
15333 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
15334 (c_variable_size): Remove.
15335 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
15336 call put_pending_sizes.
15337 (get_parm_info): Add parameter expr. Use it to set
15338 arg_info->pending_sizes.
15339 (store_parm_decls): Use arg_info->pending_sizes instead or calling
15340 get_pending_sizes.
15341 * c-parser.c (c_parser_parms_declarator): Update call to
15342 c_parser_parms_list_declarator.
15343 (c_parser_parms_list_declarator): Take parameter expr. Update
15344 call to push_parm_decl. Update recursive call. Don't call
15345 get_pending_sizes. Update calls to get_parm_info.
15346 (c_parser_objc_method_definition): Update calls to
15347 c_parser_objc_method_decl and objc_start_method_definition.
15348 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
15349 (c_parser_objc_method_decl): Add parameter expr. Update call to
15350 grokparm.
15351 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
15352 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
15353 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
15354
15355 2011-05-05 Michael Hope <michael.hope@linaro.org>
15356
15357 PR pch/45979
15358 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
15359 __ARM_EABI__ hosts.
15360
15361 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15362
15363 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
15364 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
15365 (spu_output_mi_thunk): New function.
15366
15367 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15368
15369 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
15370 targetm.asm_out.print_operand.
15371 * config/sol2.c: Include target.h.
15372
15373 2011-05-04 Jan Hubicka <jh@suse.cz>
15374
15375 * ipa-inline.c (reset_edge_caches): New function.
15376 (update_caller_keys): Add check_inlinablity_for; do not
15377 reset edge caches; remove now unnecesary loop.
15378 (update_callee_keys): Add comments; reset node_growth_cache of callee.
15379 (update_all_callee_keys): Likewise.
15380 (inline_small_functions): Sanity check cache; update code
15381 recomputing it.
15382
15383 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
15384
15385 PR rtl-optimization/47612
15386 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
15387 as the last insn of the sequence to be moved.
15388
15389 2011-05-04 Tobias Burnus <burnus@net-b.de>
15390
15391 PR fortran/48864
15392 * doc/invoke.texi (Ofast): Document that it
15393 enables Fortran's -fno-protect-parens.
15394
15395 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15396
15397 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
15398
15399 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
15400
15401 * stor-layout.c (variable_size): Do not issue errors.
15402
15403 2011-05-04 Richard Guenther <rguenther@suse.de>
15404
15405 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
15406 for array-ref indices.
15407 (tree_coverage_counter_addr): Likewise.
15408 (build_fn_info_type): Use size_int for index types.
15409 (build_gcov_info): Likewise.
15410
15411 2011-05-04 Richard Guenther <rguenther@suse.de>
15412
15413 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
15414 to build_int_cst.
15415 * c-typeck.c (really_start_incremental_init): Use bitsize_int
15416 for constructor indices.
15417 (push_init_level): Likewise.
15418
15419 2011-05-04 Richard Guenther <rguenther@suse.de>
15420
15421 * explow.c (promote_mode): Move variable declarations before code.
15422
15423 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
15424
15425 * tree.h (build_function_type_array): Declare.
15426 (build_varargs_function_type_array): Declare.
15427 (build_function_type_vec, build_varargs_function_type_vec): Define.
15428 * tree.c (build_function_type_array_1): New function.
15429 (build_function_type_array): New function.
15430 (build_varargs_function_type_array): New function.
15431
15432 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
15433
15434 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
15435 before setting STMT_VINFO_TYPE.
15436
15437 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15438
15439 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
15440 instead of spu_pass_by_reference.
15441
15442 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15443
15444 * calls.c (emit_library_call_value_1): Invoke
15445 promote_function_mode hook on libcall arguments.
15446 * explow.c (promote_function_mode, promote_mode): Handle TYPE
15447 argument being NULL.
15448 * targhooks.c (default_promote_function_mode): Lisewise.
15449 * config/s390/s390.c (s390_promote_function_mode): Likewise.
15450 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
15451
15452 * doc/tm.texi: Document that TYPE argument might be NULL.
15453
15454 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15455
15456 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
15457
15458 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15459
15460 From Bernd Schmidt
15461 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
15462
15463 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15464
15465 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
15466 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
15467 Move ...
15468 * mips-tfile.c: ... here.
15469 Don't include coretypes.h, tm.h, filenames.h.
15470 (saber_stop): Remove definition and all calls.
15471 [__SABER__]: Remove.
15472 (__LINE__): Remove default.
15473 (Size_t, Ptrdiff_t): Remove definitions.
15474 Replace by size_t, ptrdiff_t.
15475 [!MIPS_DEBUGGING_INFO]: Remove.
15476 (SHASH_SIZE, THASH_SIZE): Remove defaults.
15477 (progname): Add const.
15478 (STATIC): Remove.
15479 Replace all uses by static.
15480 (ALIGN_SYMTABLE_OFFSET): Remove default.
15481 * mips-tdump.c: Don't include coretypes.h, tm.h.
15482 Remove !MIPS_IS_STAB guard.
15483 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
15484 $(TM_H), filenames.h dependencies.
15485 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
15486
15487 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15488
15489 From Jie Zhang
15490 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
15491 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
15492
15493 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15494
15495 From Bernd Schmidt
15496 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
15497 account and save/restore RETS.
15498 (PROFILE_BEFORE_PROLOGUE): Define.
15499 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
15500 the push insn to use predecrement.
15501
15502 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
15503
15504 From Jie Zhang
15505 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
15506
15507 2011-05-04 Nick Clifton <nickc@redhat.com>
15508
15509 * config/mn10300/mn10300.c: Include cfgloop.h.
15510 (DUMP): New macro.
15511 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
15512 Lcc or a FLcc insn into the instruction stream.
15513 (mn10300_block_contains_call): New function. Returns true if the
15514 given basic block contains a CALL insn.
15515 (mn10300_loop_contains_call_insn): New function. Returns true if
15516 the given loop contains a CALL insn.
15517 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
15518 to use the SETLB and Lcc or FLcc insns.
15519 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
15520 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
15521 * config/mn10300/mn10300.opt (msetlb): New option. Used to
15522 disable the SETLB optimization.
15523 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
15524 __SETLB__ or __NO_SETLB__.
15525 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
15526 (movsf_internal): Handle MDR register.
15527 (cmpsi): Make visible.
15528 (setlb): New pattern.
15529 (Lcc): New pattern.
15530 (FLcc): New pattern.
15531
15532 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
15533
15534 PR target/48860
15535 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
15536 for reg<->xmm moves.
15537 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
15538 (vec_concatv2di_rex64_sse): Ditto.
15539 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
15540 (*vec_extractv2di_1_rex64): Ditto.
15541
15542 Revert:
15543 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15544
15545 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15546 reg<->xmm moves.
15547 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
15548
15549 2011-05-04 Richard Guenther <rguenther@suse.de>
15550
15551 * tree.h (int_const_binop): Remove notrunc argument.
15552 * fold-const.c (int_const_binop): Remove notrunc argument. Always
15553 create integer constants that are properly truncated.
15554 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
15555 (const_binop): Remove zero notrunc argument to int_const_binop.
15556 (size_binop_loc): Likewise.
15557 (fold_div_compare): Likewise.
15558 (maybe_canonicalize_comparison_1): Likewise.
15559 (fold_comparison): Likewise.
15560 (fold_binary_loc): Likewise.
15561 (multiple_of_p): Likewise.
15562 * expr.c (store_constructor): Likewise.
15563 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
15564 (maybe_fold_stmt_addition): Likewise.
15565 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
15566 * stor-layout.c (layout_type): Likewise.
15567 * tree-data-ref.c (tree_fold_divides_p): Likewise.
15568 * tree-sra.c (build_ref_for_offset): Likewise.
15569 (build_user_friendly_ref_for_offset): Likewise.
15570 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
15571 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
15572 * tree-ssa-loop-niter.c (inverse): Likewise.
15573 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15574 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
15575 * tree-switch-conversion.c (check_range): Likewise.
15576 (build_constructors): Likewise.
15577 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
15578 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
15579 (extract_range_from_assert): Likewise.
15580 (vrp_int_const_binop): Likewise.
15581 (extract_range_from_binary_expr): Likewise.
15582 (extract_range_from_unary_expr): Likewise.
15583 (check_array_ref): Likewise.
15584 (find_case_label_range): Likewise.
15585 (simplify_div_or_mod_using_ranges): Likewise.
15586 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
15587 comparing case labels for merging.
15588
15589 2011-05-03 Mark Wielaard <mjw@redhat.com>
15590
15591 * dwarf2out.c (debug_str_hash_forced): Removed.
15592 (gen_label_for_indirect_string): Removed.
15593 (get_debug_string_label): Removed.
15594 (AT_string_form): Generate label directly.
15595 (output_indirect_string): Test indirect_string_node for
15596 DW_FORM_strp instead of checking label and refcount.
15597 (prune_indirect_string): Removed.
15598 (prune_unused_types): Don't check debug_str_hash_forced or
15599 call prune_indirect_string.
15600
15601 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15602
15603 PR other/48093
15604 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
15605
15606 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
15607
15608 PR debug/47994
15609 PR debug/47919
15610 * combine.c (try_combine): Skip debug insns at m_split tests.
15611
15612 2011-04-26 Mark Wielaard <mjw@redhat.com>
15613
15614 PR42288
15615 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
15616 when info_section_emitted.
15617
15618 2011-05-03 Joseph Myers <joseph@codesourcery.com>
15619
15620 * config/mips/mips-opts.h: New.
15621 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
15622 to mips-opts.h.
15623 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
15624 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
15625 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
15626 via opts pointer.
15627 * config/mips/mips.h (enum mips_code_readable_setting): Move to
15628 mips-opts.h.
15629 (mips_abi, mips_code_readable): Don't declare.
15630 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
15631 (mabi=): Use Enum and Var.
15632 (mips_abi): New Enum and EnumValue entries.
15633 (mcode-readable=): Use Enum and Var.
15634 (mips_code_readable_setting): New Enum and EnumValue entries.
15635 (mr10k-cache-barrier=): Use Enum and Var.
15636 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
15637
15638 2011-05-03 Jan Hubicka <jh@suse.cz>
15639
15640 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
15641 replace hash by pointer map.
15642 (cgraph_node_set_element_def, cgraph_node_set_element,
15643 const_cgraph_node_set_element, varpool_node_set_element_def,
15644 varpool_node_set_element, const_varpool_node_set_element): Remove.
15645 (free_cgraph_node_set, free_varpool_node_set): New function.
15646 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
15647 * tree-emutls.c: Free varpool node set.
15648 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
15649 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15650 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
15651 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15652 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
15653 Move here from ipa.c; implement using pointer_map
15654 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
15655 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
15656 debug_cgraph_node_set, varpool_node_set_new,
15657 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
15658 dump_varpool_node_set, debug_varpool_node_set):
15659 Move to ipa-uitls.c.
15660 * passes.c (ipa_write_summaries): Update.
15661
15662 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15663
15664 From Mike Frysinger:
15665 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
15666 bf542/bf544/bf547/bf548/bf549.
15667
15668 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15669
15670 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
15671
15672 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15673
15674 From Bernd Schmidt:
15675 * config/bfin/bfin.md (MOVCC): New mode_macro.
15676 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
15677 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
15678 comments from generated assembly.
15679
15680 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15681
15682 From Bernd Schmidt
15683 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
15684 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
15685 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
15686 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
15687 * config/bfin/lib1funcs.asm (___muldi3): New function.
15688
15689 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15690
15691 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
15692 build_function_type_list instead of build_function_type.
15693 Rearrange initialization of `args' to do so.
15694
15695 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15696
15697 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
15698 instead of build_function_type.
15699
15700 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15701
15702 * config/rs6000/rs6000.c (spe_init_builtins): Call
15703 build_function_type_list instead of build_function_type.
15704 (paired_init_builtins, altivec_init_builtins): Likewise.
15705 (builtin_function_type): Likewise.
15706
15707 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15708
15709 * config/sh/sh.c (sh_media_init_builtins): Call
15710 build_function_type_list instead of build_function_type.
15711
15712 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15713
15714 * config/sparc/sparc.c (sparc_file_end): Call
15715 build_function_type_list instead of build_function_type.
15716
15717 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15718
15719 * config/alpha/alpha.c (alpha_init_builtins): Call
15720 build_function_type_list instead of build_function_type.
15721
15722 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15723
15724 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
15725 build_function_type_list instead of build_function_type.
15726
15727 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15728
15729 * config/iq2000/i2000.c (iq2000_init_builtins): Call
15730 build_function_type_list instead of build_function_type.
15731 Delete `endlink' variable.
15732
15733 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15734
15735 * config/avr/avr.c (avr_init_builtins): Call
15736 build_function_type_list instead of build_function_type.
15737
15738 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15739
15740 * config/picochip/picochip.c (picochip_init_builtins): Call
15741 build_function_type_list instead of build_function_type.
15742 Delete `endlink' variable.
15743
15744 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
15745
15746 * config/bfin/bfin.c (bfin_init_builtins): Call
15747 build_function_type_list instead of build_function_type.
15748
15749 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15750
15751 From Bernd Schmidt
15752 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
15753 that's not CONST_INT. Seemingly redundant check is due to PR39768.
15754
15755 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15756
15757 From Jie Zhang:
15758 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
15759 libbffastfp overrides libgcc when -mfast-fp.
15760
15761 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15762
15763 Originally from Bernd Schmidt
15764 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
15765 * config/bfin/bfin.c (override_options): Test it and error if
15766 TARGET_FDPIC.
15767
15768 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
15769
15770 Originally From Bernd Schmidt
15771 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
15772 FD-PIC.
15773
15774 2011-05-03 Jeff Law <law@redhat.com>
15775
15776 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
15777 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
15778 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
15779 than accessing AUX field directly. Free the AUX field before
15780 clearing it.
15781 (thread_block, thread_through_loop_header): Likewise.
15782 (thread_single_edge, mark_threaded_blocks): Likewise.
15783 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
15784 (register_jump_thread): Do not attempt to thread to a NULL edge.
15785
15786 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15787
15788 * function.c (init_function_start): Call decide_function_section.
15789 * varasm.c (decide_function_section): New function.
15790 (assemble_start_function): When not using
15791 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
15792 or first_function_block_is_cold.
15793 * rtl.h (decide_function_section): Declare.
15794
15795 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
15796 Jakub Jelinek <jakub@redhat.com>
15797
15798 PR target/48774
15799 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
15800 only succeed if req_mode is the same as set_mode.
15801
15802 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
15803
15804 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
15805 * genemit.c (gen_exp): Handle RETURN.
15806 * emit-rtl.c (verify_rtx_sharing): Likewise.
15807 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
15808 * rtl.c (copy_rtx): RETURN is shared.
15809 * rtl.h (enum global_rtl_index): Add GR_RETURN.
15810 (ret_rtx): New.
15811 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
15812 * config/s390/s390.c (s390_emit_epilogue): Likewise.
15813 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
15814 * config/cris/cris.c (cris_expand_return): Likewise.
15815 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
15816 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
15817 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
15818 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
15819 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
15820 Likewise.
15821 * config/v850/v850.c (expand_epilogue): Likewise.
15822 * config/bfin/bfin.c (bfin_expand_call): Likewise.
15823 * config/arm/arm.md (epilogue): Likewise.
15824 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
15825 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
15826 variable to ret_reg.
15827
15828 2011-05-03 Richard Guenther <rguenther@suse.de>
15829
15830 PR lto/48846
15831 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
15832 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
15833 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
15834
15835 2011-05-03 Richard Guenther <rguenther@suse.de>
15836
15837 * c-decl.c (grokdeclarator): Instead of looking at
15838 TREE_OVERFLOW check if the constant fits in the index type.
15839
15840 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15841
15842 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
15843 (vec_store_lanes<mode><mode>): Likewise.
15844
15845 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15846
15847 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
15848 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
15849 convert_optab_index values.
15850 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
15851 * genopinit.c (optabs): Initialize the new optabs.
15852 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
15853 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
15854 (expand_STORE_LANES): New functions.
15855 * tree.h (build_array_type_nelts): Declare.
15856 * tree.c (build_array_type_nelts): New function.
15857 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
15858 (vect_model_load_cost): Likewise.
15859 (vect_store_lanes_supported, vect_load_lanes_supported)
15860 (vect_record_strided_load_vectors): Declare.
15861 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
15862 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
15863 (vect_transform_strided_load): Split out statement recording into...
15864 (vect_record_strided_load_vectors): ...this new function.
15865 * tree-vect-stmts.c (create_vector_array, read_vector_array)
15866 (write_vector_array, create_array_ref): New functions.
15867 (vect_model_store_cost): Add store_lanes_p argument.
15868 (vect_model_load_cost): Add load_lanes_p argument.
15869 (vectorizable_store): Try to use store-lanes functions for
15870 interleaved stores.
15871 (vectorizable_load): Likewise load-lanes and loads.
15872 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
15873 to vect_model_store_cost.
15874 (vect_build_slp_tree): Likewise vect_model_load_cost.
15875
15876 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
15877
15878 * hooks.h (hook_bool_mode_uhwi_false): Declare.
15879 * hooks.c (hook_bool_mode_uhwi_false): New function.
15880 * target.def (array_mode_supported_p): New hook.
15881 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
15882 * doc/tm.texi: Regenerate.
15883 * stor-layout.c (mode_for_array): New function.
15884 (layout_type): Use it.
15885 * config/arm/arm.c (arm_array_mode_supported_p): New function.
15886 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
15887
15888 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
15889
15890 PR target/48723
15891 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
15892 for -fstack-check if the size to allocate is negative.
15893
15894 2011-05-02 Lawrence Crowl <crowl@google.com>
15895
15896 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
15897 (timevar_cond_start): New for starting a timer only when it is not
15898 already running.
15899 (timevar_cond_stop): New for stopping a timer when it was not already
15900 running.
15901
15902 * timevar.c (timevar_stop): Enable start/stop timers to start again.
15903 (timevar_cond_start): New as above.
15904 (timevar_cond_stop): New as above.
15905
15906 * timevar.def: Add start/stop timers for compiler phases,
15907 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
15908 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
15909 and TV_PHASE_FINALIZE.
15910 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
15911 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
15912 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
15913 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
15914 Make unused TV_OVERLOAD into a start/stop timer.
15915
15916 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
15917 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
15918 to indicate that they are start/stop timers.
15919
15920 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
15921 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
15922 Move initialization to do_compile.
15923 (do_compile): Add initialization from above.
15924 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
15925
15926 * c-decl.c (c_write_global_declarations): Add start/stop of
15927 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
15928
15929 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
15930 or TV_PARSE_INLINE, as appropriate.
15931 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
15932 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
15933
15934 2011-05-02 Jason Merrill <jason@redhat.com>
15935
15936 PR c++/40975
15937 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
15938
15939 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
15940
15941 PR c/35445
15942 * c-decl.c (finish_decl): Only create a composite if the types are
15943 compatible.
15944
15945 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15946
15947 * config/fr30/fr30-protos.h (Mmode): Don't define.
15948 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
15949 definition where used.
15950 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
15951 define. Expand definitions where used.
15952 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
15953 Expand definitions where used.
15954 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
15955 rx_function_arg, rx_function_arg_advance,
15956 rx_function_arg_boundary): Expand definitions of those macros.
15957 * config/v850/v850-protos.h (Mmode): Don't define. Expand
15958 definition where used.
15959
15960 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
15961
15962 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
15963 reg<->xmm moves.
15964 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
15965 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
15966 with *movv2sf_internal_rex64_avx.
15967 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
15968 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
15969 Use %v prefix in insn mnemonic to handle TARGET_AVX.
15970 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
15971 "vex" in "prefix" attribute calculation.
15972 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
15973
15974 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
15975
15976 PR target/47951
15977 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
15978 inputs match the output.
15979
15980 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
15981
15982 PR target/47955
15983 * config/m68k/m68k.c (m68k_expand_prologue): Set
15984 current_function_static_stack_size.
15985
15986 2011-05-02 Jan Hubicka <jh@suse.cz>
15987
15988 * lto-streamer.c (lto_streamer_cache_insert_1,
15989 lto_streamer_cache_lookup, lto_streamer_cache_create,
15990 lto_streamer_cache_delete): Use pointer map instead of hashtable.
15991 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
15992
15993 2011-05-02 Joseph Myers <joseph@codesourcery.com>
15994
15995 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
15996 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
15997 config/m68k/t-opts: New files.
15998 * config/m68k/m68k-tables.opt: New file (generated).
15999 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
16000 extra_options and m68k/t-opts to tmake_file.
16001 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
16002 (all_isas): Initialize using m68k-isas.def.
16003 (all_microarchs): Initialize using m68k-microarchs.def.
16004 (m68k_find_selection): Remove.
16005 (m68k_handle_option): Don't assert that global structures are in
16006 use. Use error_at. Access variables via opts pointer. Don't
16007 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
16008 directly for -m68020-40 and -m68020-60.
16009 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
16010 m68k_tune_entry here.
16011 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
16012 to m68k-opts.h.
16013 (m68k_library_id_string): Remove declaration.
16014 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
16015 (m68k_library_id_string): New Variable.
16016 (march=, mcpu=, mtune=): Use Enum and Var.
16017
16018 2011-05-02 Richard Guenther <rguenther@suse.de>
16019
16020 * varasm.c (output_constructor_regular_field): Compute zero-based
16021 index with double-ints. Make sure to ICE instead of producing
16022 wrong code.
16023 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
16024 in asserts. Properly use a signed type.
16025
16026 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
16027
16028 * config/i386/sse.md (V): New mode iterator.
16029 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
16030 TARGET_SSE2.
16031 (V_256): Rename from AVX256MODE.
16032 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
16033 condition to all users.
16034 (VF1): Ditto.
16035 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
16036 condition to all users.
16037 (VF_128): Make V4SF mode unconditional.
16038 (VF_256): Rename from AVX256MODEF2P.
16039 (VI4F_128): Rename from SSEMODE4S.
16040 (VI8F_128): Rename from SSEMODE2D.
16041 (VI4F_256): Rename from AVX256MODE8P.
16042 (VI8F_256): Rename from AVX256MODE4P.
16043 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
16044 (ssescalarmodesuffix): Remove SF and DF modes.
16045 (SSEMODE124): Remove.
16046 (SSEMODE1248): Ditto.
16047 (SSEMODEF2P): Ditto.
16048 (AVXMODEF2P): Ditto.
16049 (AVXMODEFDP): Ditto.
16050 (AVXMODEFSP): Ditto.
16051 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
16052 unconditional.
16053 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
16054 unconditional.
16055 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
16056 xop_pcmov_<mode>256. Use V mode iterator.
16057
16058 Adjust RTX patterns globally for renamed mode attributes.
16059
16060 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16061
16062 * haifa-sched.c (sched_emit_insn): Emit insn before first
16063 non-scheduled insn. Inform back-end about new insn. Add
16064 new insn to scheduled_insns list.
16065
16066 2011-05-02 Richard Guenther <rguenther@suse.de>
16067
16068 PR tree-optimization/48822
16069 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
16070 (process_scc): Indicate which iteration we start.
16071
16072 2011-05-02 Jan Hubicka <jh@suse.cz>
16073
16074 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
16075 (lto_section_overrun): New.
16076 * lto-section-out.c (append_block): Rename to ...
16077 (lto_append_block): ... this one; export.
16078 (lto_output_1_stream): Move lto lto-streamer.h
16079 (lto_output_data_stream): Update.
16080 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
16081 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
16082 functions.
16083
16084 2011-05-02 Richard Guenther <rguenther@suse.de>
16085
16086 * tree.c (tree_code_counts): New global array.
16087 (record_node_allocation_statistics): Count individual tree codes.
16088 (dump_tree_statistics): Dump individual code stats.
16089
16090 2011-05-01 Jan Hubicka <jh@suse.cz>
16091
16092 * ipa-inline.c (caller_growth_limits): Fix thinko when
16093 looking for largest stack frame.
16094 * ipa-inline.h (dump_inline_summary): Declare.
16095 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
16096 on stack usage.
16097 (dump_inline_summary): Export.
16098 (debug_inline_summary): Declare as DEBUG_FUNCTION.
16099
16100 2011-05-01 Anatoly Sokolov <aesok@post.ru>
16101
16102 * reginfo.c (memory_move_cost): Change rclass argument type form
16103 'enum reg_class' to reg_class_t.
16104 * reload.h (memory_move_cost): Update prototype.
16105 * postreload.c reload_cse_simplify_set): Change type dclass var to
16106 reg_class_t.
16107 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
16108 Update prototype.
16109 (ira_allocate_and_set_costs): Change aclass argument type form
16110 'enum reg_class' to reg_class_t.
16111 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
16112 Change aclass argument type to reg_class_t.
16113 (update_conflict_hard_reg_costs): Change type aclass and pref vars
16114 to reg_class_t.
16115 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
16116 memory_move_cost call.
16117
16118 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
16119 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
16120 Change type tmp var to reg_class_t.
16121
16122 2011-04-30 Jan Hubicka <jh@suse.cz>
16123
16124 * ipa-inline.c (can_inline_edge_p): Disregard limits when
16125 inlining into function with flatten attribute.
16126 (want_inline_small_function_p): Be more realistic about inlining
16127 cold calls where callee size grows.
16128
16129 2011-04-30 Jan Hubicka <jh@suse.cz>
16130
16131 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
16132 flags.
16133
16134 2011-04-30 Anatoly Sokolov <aesok@post.ru>
16135
16136 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
16137 PRINT_OPERAND_PUNCT_VALID_P): Remove.
16138 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
16139 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
16140 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16141 (print_operand): Rename to...
16142 (sparc_print_operand): ...this. Make static. Adjust
16143 sparc_print_operand function call.
16144 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
16145 functions.
16146
16147 2011-04-30 Jan Hubicka <jh@suse.cz>
16148
16149 PR middle-end/48752
16150 * ipa-inline.c (early_inliner): Disable when doing late
16151 addition of function.
16152
16153 2011-04-30 Jakub Jelinek <jakub@redhat.com>
16154
16155 * dwarf2out.c (get_address_mode): New inline.
16156 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
16157 if not dwarf_strict emit
16158 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
16159 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
16160 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
16161 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
16162 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
16163 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
16164 mem_loc_descriptor callers.
16165 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16166 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
16167 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
16168 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
16169 (base_types): New variable.
16170 (get_base_type_offset, calc_base_type_die_sizes,
16171 base_type_for_mode, mark_base_types, base_type_cmp,
16172 move_marked_base_types): New functions.
16173 (calc_die_sizes): Assert that die_offset is 0 or equal to
16174 next_die_offset.
16175 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
16176 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
16177 callers. If not dwarf_strict, call mem_loc_descriptor even for
16178 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
16179 (gen_subprogram_die): Don't give up on call site parameters
16180 with non-integral or large integral modes. Adjust
16181 mem_loc_descriptor callers.
16182 (prune_unused_types): Call prune_unused_types_mark on base_types
16183 vector entries.
16184 (resolve_addr): Call mark_base_types.
16185 (dwarf2out_finish): Call move_marked_base_types.
16186
16187 PR tree-optimization/48809
16188 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
16189 type.
16190 (gen_inbound_check): Don't compute index_expr - range_min in utype
16191 again, instead reuse SSA_NAME initialized in build_arrays.
16192 Remove two useless gsi_for_stmt calls.
16193
16194 2011-04-29 Jeff Law <law@redhat.com>
16195
16196 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
16197
16198 2011-04-29 Martin Jambor <mjambor@suse.cz>
16199
16200 * cgraph.h (cgraph_postorder): Remove declaration.
16201 * ipa-utils.h (ipa_free_postorder_info): Declare.
16202 (ipa_reverse_postorder): Likewise.
16203 * cgraphunit.c: Include ipa-utils.h.
16204 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
16205 * ipa-inline.c: Include ipa-utils.h.
16206 (ipa_inline): Update call to ipa_reverse_postorder.
16207 * ipa-pure-const.c (propagate_pure_const): Update call to
16208 ipa_reduced_postorder and ipa_print_order. Call
16209 ipa_free_postorder_info to clean up.
16210 (propagate_nothrow): Likewise.
16211 * ipa-reference.c (propagate): Removed a useless call to
16212 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
16213 and ipa_print_order. Call ipa_free_postorder_info to clean up.
16214 * ipa.c: Include ipa-utils.h.
16215 (ipa_profile): Update call to ipa_reverse_postorder.
16216 (cgraph_postorder): Moved to...
16217 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
16218 (ipa_utils_print_order): Renamed to ipa_print_order.
16219 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
16220 comments.
16221 (ipa_free_postorder_info): New function.
16222 * passes.c: Include ipa-utils.h.
16223 (do_per_function_toporder): Update call to ipa_reverse_postorder.
16224 (ipa_write_summaries): Likewise.
16225 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
16226 (cgraphunit.o): Likewise.
16227 (ipa.o): Likewise.
16228 (ipa-inline.o): Likewise.
16229
16230 2011-04-29 Jan Hubicka <jh@suse.cz>
16231
16232 * gcc.dg/tree-ssa/inline-10.c: New testcase.
16233 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
16234 * ipa-inline.h (clause_t): Turn into unsigned int.
16235 * ipa-inline-analysis.c (add_clause): Do more simplification.
16236 (and_predicates): Shortcut more cases.
16237 (predicates_equal_p): Move forward; check that clauses are properly
16238 ordered.
16239 (or_predicates): Shortcut more cases.
16240 (edge_execution_predicate): Rewrite as...
16241 (set_cond_stmt_execution_predicate): ... this function; handle
16242 __builtin_constant_p.
16243 (set_switch_stmt_execution_predicate): New .
16244 (compute_bb_predicates): New.
16245 (will_be_nonconstant_predicate): Update TODO.
16246 (estimate_function_body_sizes): Use compute_bb_predicates
16247 and free them later, always try to estimate if stmt is constant.
16248 (estimate_time_after_inlining, estimate_size_after_inlining):
16249 Gracefully handle optimized out edges.
16250 (read_predicate): Fix off by one error.
16251
16252 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
16253
16254 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
16255
16256 2011-04-27 Xinliang David Li <davidxl@google.com>
16257
16258 * tree-profile.c (init_ic_make_global_vars): Set
16259 tls attribute on ic vars.
16260 * coverage.c (coverage_end_function): Initialize
16261 function_list with zero.
16262
16263 2011-04-29 Richard Guenther <rguenther@suse.de>
16264
16265 * builtins.c (fold_builtin_classify_type): Use integer_type_node
16266 for the type of the result.
16267 (fold_builtin_isascii): Likewise.
16268 (fold_builtin_toascii): Use integer_type_node where appropriate.
16269 (fold_builtin_logb): Likewise.
16270 (fold_builtin_frexp): Likewise.
16271 (fold_builtin_strstr): Likewise.
16272 (fold_builtin_strpbrk): Likewise.
16273 (fold_builtin_fputs): Likewise.
16274 (fold_builtin_sprintf): Likewise.
16275 (fold_builtin_snprintf): Likewise.
16276 (fold_builtin_printf): Likewise.
16277 (do_mpfr_remquo): Use a proper type for the assigned constant.
16278 (do_mpfr_lgamma_r): Likewise.
16279 * dwarf2out.c (resolve_one_addr): Use size_int.
16280 * except.c (init_eh): Likewise.
16281 (assign_filter_values): Use integer_type_node for filter values.
16282 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
16283 indices.
16284 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
16285 for EH region numbers.
16286 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
16287 for the shift amount.
16288
16289 2011-04-29 Richard Guenther <rguenther@suse.de>
16290
16291 * expr.h (expand_shift): Rename to ...
16292 (expand_variable_shift): ... this.
16293 (expand_shift): Take a constant shift amount.
16294 * expmed.c (expand_shift): Rename to ...
16295 (expand_variable_shift): ... this.
16296 (expand_shift): New wrapper around expand_variable_shift.
16297 * expr.c (convert_move, emit_group_load_1, emit_group_store,
16298 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
16299 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
16300 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
16301 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
16302 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
16303 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
16304 emit_store_flag_1, emit_store_flag): Likewise.
16305 * builtins.c (expand_builtin_signbit): Likewise.
16306 * calls.c (load_register_parameters): Likewise.
16307 * function.c (assign_parm_setup_block): Likewise.
16308 * lower-subreg.c (resolve_shift_zext): Likewise.
16309 * optabs.c (widen_bswap, expand_abs_nojump,
16310 expand_one_cmpl_abs_nojump, expand_float): Likewise.
16311 * spu/spu.c (spu_expand_extv): Likewise.
16312 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
16313
16314 2011-04-29 Richard Guenther <rguenther@suse.de>
16315
16316 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
16317 for the remapped region number.
16318 * predict.c (build_predict_expr): Use integer_type_node for the
16319 predict kind.
16320 * fold-const.c (fold_binary_loc): Use integer_type_node for
16321 the shift amount. Use a proper type for the PLUS_EXPR operand.
16322
16323 2011-04-29 Michael Matz <matz@suse.de>
16324
16325 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
16326 other trees that just builtins.
16327 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
16328
16329 2011-04-29 Richard Guenther <rguenther@suse.de>
16330
16331 * tree-nested.c (get_trampoline_type): Use size_int.
16332 (get_nl_goto_field): Likewise.
16333 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
16334 for all indexes.
16335 (lower_eh_constructs_2): Likewise.
16336 (lower_resx): Likewise.
16337 (lower_eh_dispatch): Likewise.
16338 * tree-mudflap.c (mf_build_string): Use size_int.
16339 (mudflap_register_call): Use integer_type_node for the flag.
16340 (mudflap_enqueue_constant): Use size_int.
16341 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
16342 instead of rebuilding it.
16343
16344 2011-04-29 Richard Guenther <rguenther@suse.de>
16345
16346 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
16347 Handle OBJ_TYPE_REF.
16348 (find_func_aliases_for_call): Use it more consistently.
16349
16350 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
16351
16352 * haifa-sched.c (last_nondebug_scheduled_insn): New.
16353 (rank_for_schedule): Use it.
16354 (schedule_block): Set it.
16355
16356 2011-04-28 David Li <davidxl@google.com>
16357
16358 * tree.c (crc32_string): Use crc32_byte.
16359 (crc32_byte): New function.
16360 * tree.h (crc32_byte): New function.
16361 * gcov.c (read_graph_file): Handle new cfg_cksum.
16362 (read_count_file): Ditto.
16363 * profile.c (instrument_values): Ditto.
16364 (get_exec_counts): Ditto.
16365 (read_profile_edge_counts): Ditto.
16366 (compute_branch_probabilities): Ditto.
16367 (compute_value_histograms): Ditto.
16368 (branch_prob): Ditto.
16369 (end_branch_prob): Ditto.
16370 * coverage.c (read_counts_file): Ditto.
16371 (get_coverage_counts): Ditto.
16372 (tree_coverage_counter_addr): Ditto.
16373 (coverage_checksum_string): Ditto.
16374 (coverage_begin_output): Ditto.
16375 (coverage_end_function): Ditto.
16376 (build_fn_info_type): Ditto.
16377 (build_fn_info_value): Ditto.
16378 * libgcov.c (gcov_exit): Ditto.
16379 * gcov-dump.c (tag_function): Ditto.
16380 (compute_checksum): Remove.
16381
16382 2011-04-29 Alan Modra <amodra@gmail.com>
16383
16384 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16385 unspec plus offset. Tidy macho code.
16386
16387 2011-04-29 Martin Jambor <mjambor@suse.cz>
16388
16389 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
16390 node instead of a decl. Update all callers.
16391 * cgraph.h: Update declaration.
16392
16393 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
16394
16395 PR tree-optimization/48765
16396 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
16397 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
16398 to indicate if loop aware SLP is being used. Scan the statements
16399 and update the vectorization factor according to the type of
16400 vectorization before statement analysis.
16401 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
16402 pass it to vect_analyze_loop_operations.
16403 (vectorizable_reduction): Set number of copies to 1 in case of pure
16404 SLP statement.
16405 * tree-vect-stmts.c (vectorizable_conversion,
16406 vectorizable_assignment, vectorizable_shift,
16407 vectorizable_operation, vectorizable_type_demotion,
16408 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
16409 Likewise.
16410 (vectorizable_condition): Move the check that it is not SLP
16411 vectorization before the number of copies check.
16412 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
16413 to vectorize the loop using SLP.
16414
16415 2011-04-28 Jakub Jelinek <jakub@redhat.com>
16416
16417 PR middle-end/48597
16418 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
16419 inline asm.
16420
16421 2011-04-28 Joseph Myers <joseph@codesourcery.com>
16422
16423 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
16424 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
16425 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16426 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16427 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
16428 linux*.h headers.
16429 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
16430 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16431 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16432 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16433 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
16434 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
16435 REG_NAME.
16436 * config/i386/linux.h (REG_NAME): Don't define.
16437 * config/i386/linux64.h (REG_NAME): Don't define.
16438 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
16439 Undefine before defining.
16440
16441 2011-04-28 Jan Hubicka <jh@suse.cz>
16442
16443 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
16444 nonconstant_names array.
16445 (estimate_function_body_sizes): Build nonconstant_names array; handle
16446 BUILT_IN_CONSTANT_P.
16447
16448 2011-04-28 Richard Guenther <rguenther@suse.de>
16449
16450 PR bootstrap/48804
16451 Revert
16452 2011-04-28 Richard Guenther <rguenther@suse.de>
16453
16454 * tree-ssa-structalias.c (solve_constraints): Build succ graph
16455 as late as possible.
16456
16457 2011-04-28 Richard Guenther <rguenther@suse.de>
16458
16459 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
16460 (debug_constraint): Do it here.
16461 (dump_constraints): And here.
16462 (rewrite_constraints): And here.
16463 (dump_constraint_edge): Remove.
16464 (dump_constraint_graph): Rewrite to produce DOT output.
16465 (solve_constraints): Build succ graph as late as possible.
16466 Dump constraint graphs before and after solving.
16467
16468 2011-04-28 Richard Guenther <rguenther@suse.de>
16469
16470 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
16471 New function split out from ...
16472 (find_func_aliases): ... here. Call it.
16473 (find_func_aliases_for_call): Likewise.
16474
16475 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
16476
16477 * internal-fn.h (internal_fn_name_array): Declare.
16478 (internal_fn_flags_array): Likewise.
16479
16480 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16481
16482 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
16483 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
16484 Move from sse.md.
16485 (ssemodefsuffix): Remove.
16486 (ssevecmodesuffix): New mode attribute.
16487 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
16488 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
16489 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
16490 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
16491 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
16492 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
16493 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
16494 ssemodesuffix mode attribute.
16495 (float splitters): Use ssevecmodesuffix mode attribute.
16496 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
16497 (sseinsmode): Rename from avxvecmode.
16498 (avxsizesuffix): Rename from avxmodesuffix.
16499 (sseintvecmode): Rename from avxpermvecmode.
16500 (ssedoublevecmode): Rename from ssedoublesizemode.
16501 (ssehalfvecmode): Rename from avxhalfvecmode.
16502 (ssescalarmode): Rename from avxscalarmode.
16503 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
16504 templates for ssemodesuffix mode attribute.
16505 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
16506 mode attribute.
16507
16508 Adjust RTX patterns globally for renamed mode attributes.
16509
16510 2011-04-27 Jan Hubcika <jh@suse.cz>
16511
16512 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
16513 * ipa-inline-analysis.c: Include alloc-pool.h.
16514 (edge_predicate_pool): New.
16515 (trye_predicate_p): New function
16516 (false_predicate_p): New function.
16517 (add_clause): Sanity check that false clauses are "optimized";
16518 never add clauses to predicate that is already known to be false.
16519 (and_predicate): Use flase_predicate_p.
16520 (evaulate_predicate): Rename to ...
16521 (evaluate_predicate): ... this one; update all callers; assert
16522 that false is not listed among possible truths.
16523 (dump_predicate): Use true_predicate_p.
16524 (account_size_time): Use false_predicate_p.
16525 (evaulate_conditions_for_edge): Rename to ...
16526 (evaluate_conditions_for_edge) ... this one.
16527 (edge_set_predicate): New function.
16528 (inline_edge_duplication_hook): Duplicate edge predicates.
16529 (inline_edge_removal_hook): Free edge predicates.
16530 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
16531 (dump_inline_summary): Update.
16532 (estimate_function_body_sizes): Set edge predicates.
16533 (estimate_calls_size_and_time): Handle predicates.
16534 (estimate_callee_size_and_time): Update.
16535 (remap_predicate): Add toplev_predicate; update comment.
16536 (remap_edge_predicates): New function.
16537 (inline_merge_summary): Compute toplev predicate; update.
16538 (read_predicate): New function.
16539 (read_inline_edge_summary): Use it.
16540 (inline_read_section): Likewise.
16541 (write_predicate): New function.
16542 (write_inline_edge_summary): Use it.
16543 (inline_write_summary): Likewise.
16544 (inline_free_summary): Free alloc pool and edge summary vec.
16545
16546 2011-04-27 Richard Guenther <rguenther@suse.de>
16547
16548 * tree-ssa-structalias.c (changed_count): Remove.
16549 (changed): Use a bitmap.
16550 (unify_nodes): Adjust.
16551 (do_sd_constraint): Likewise.
16552 (do_ds_constraint): Likewise.
16553 (do_complex_constraint): Likewise.
16554 (solve_graph): Likewise.
16555
16556 2011-04-27 Jan Hubicka <jh@suse.cz>
16557
16558 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
16559
16560 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
16561
16562 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
16563 (avx_vperm2f128_*_operand): Ditto.
16564 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
16565 Use avx_vpermilp_parallel in insn condition.
16566 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
16567 Use avx_vperm2f128_parallel in insn condition.
16568
16569 2011-04-27 Richard Guenther <rguenther@suse.de>
16570
16571 * Makefile.in (tree-ssa-structalias.o): Remove
16572 gt-tree-ssa-structalias.h dependency.
16573 (GTFILES): Remove tree-ssa-structalias.c.
16574 * tree.c (allocate_decl_uid): New function.
16575 (make_node_stat): Use it.
16576 (copy_node_stat): Likewise.
16577 * tree.h (allocate_decl_uid): Declare.
16578 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
16579 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
16580 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
16581 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
16582 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
16583 (struct heapvar_map): Likewise.
16584 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
16585 heapvar_insert): Likewise.
16586 (make_heapvar_for): Rename to ...
16587 (make_heapvar): ... this. Simplify.
16588 (fake_var_decl_obstack): New global var.
16589 (build_fake_var_decl): New function.
16590 (make_constraint_from_heapvar): Adjust.
16591 (handle_lhs_call): Likewise.
16592 (create_function_info_for): Likewise.
16593 (intra_create_variable_infos): Likewise.
16594 (init_alias_vars): Allocate fake_var_decl_obstack.
16595 (init_alias_heapvars, delete_alias_heapvars): Remove.
16596 (compute_points_to_sets): Do not call init_alias_heapvars.
16597 (ipa_pta_execute): Likewise.
16598 (delete_points_to_sets): Free fake_var_decl_obstack.
16599
16600 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16601
16602 * config/spu/divmovti4.c (union qword_UTItype): New data type.
16603 (si_from_UTItype, si_to_UTItype): New functions.
16604 (__udivmodti4): Use them to implement type-punning.
16605 * config/spu/multi3.c (union qword_TItype): New data type.
16606 (si_from_TItype, si_to_TItype): New functions.
16607 (__multi3): Use them to implement type-punning.
16608
16609 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16610
16611 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
16612
16613 2011-04-27 Jan Hubicka <jh@suse.cz>
16614
16615 * ipa-prop.c (function_insertion_hook_holder): New holder.
16616 (ipa_add_new_function): New function.
16617 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
16618 Register/deregister holder.
16619
16620 2011-04-27 Richard Guenther <rguenther@suse.de>
16621
16622 PR tree-optimization/48772
16623 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
16624
16625 2011-04-27 Richard Guenther <rguenther@suse.de>
16626
16627 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
16628 TARGET_MEM_REF handling.
16629
16630 2011-04-27 Nick Clifton <nickc@redhat.com>
16631
16632 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
16633 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
16634 (REG_CLASS_NAMES): Likewise.
16635 (REG_CLASS_CONTENTS): Likewise.
16636 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16637 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
16638 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
16639 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
16640 (EVEN_REGS): New macro. Alias for QUAD_REGS.
16641 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
16642 duplicate register classes.
16643 (frv_class_likely_spilled_p): Likewise.
16644 (frv_register_move_cost): Likewise.
16645
16646 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
16647 end of the regno_reg_class array.
16648
16649 2011-04-27 Jakub Jelinek <jakub@redhat.com>
16650
16651 PR c/48742
16652 * c-typeck.c (build_binary_op): Don't wrap arguments if
16653 int_operands is true.
16654
16655 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
16656
16657 PR target/48767
16658 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
16659 targetm.calls.must_pass_in_stack for void type.
16660
16661 2011-04-26 Jan Hubicka <jh@suse.cz>
16662
16663 * cgraphbuild.c (build_cgraph_edges): Update call
16664 of cgraph_create_edge and cgraph_create_indirect_edge.
16665 * cgraph.c (cgraph_create_edge_including_clones,
16666 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
16667 cgraph_update_edges_for_call_stmt_node): Do not take nest
16668 argument; do not initialize call_stmt_size/time.
16669 (dump_cgraph_node): Do not dump nest.
16670 (cgraph_clone_edge): Do not take loop_nest argument;
16671 do not propagate it; do not clone call_stmt_size/time.
16672 (cgraph_clone_node): Likewise.
16673 (cgraph_create_virtual_clone): Update.
16674 * cgraph.h (struct cgraph_edge): Remove
16675 call_stmt_size/call_stmt_time/loop_nest.
16676 (cgraph_create_edge, cgraph_create_indirect_edge,
16677 cgraph_create_edge_including_clones, cgraph_clone_node): Update
16678 prototype.
16679 * tree-emutls.c (gen_emutls_addr): Update.
16680 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
16681 loop_nest; handle indirect calls, too.
16682 (clone_inlined_nodes): Do not care about updating inline summaries.
16683 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
16684 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
16685 stream call_stmt_size/call_stmt_time/loop_nest.
16686 * ipa-inline.c (edge_badness): Update.
16687 (ipa_inline): dump summaries after inlining.
16688 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
16689 New.
16690 (inline_edge_summary): New function.
16691 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
16692 (inline_edge_removal_hook): Handle edge summaries.
16693 (inline_edge_duplication_hook): New hook.
16694 (inline_summary_alloc): Alloc hooks.
16695 (initialize_growth_caches): Do not register removal hooks.
16696 (free_growth_caches); Do not free removal hook.
16697 (dump_inline_edge_summary): New function.
16698 (dump_inline_summary): Use it.
16699 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
16700 (inline_update_callee_summaries): New function.
16701 (inline_merge_summary): Use it.
16702 (do_estimate_edge_time, do_estimate_edge_growth): Update.
16703 (read_inline_edge_summary): New function.
16704 (inline_read_section): Use it.
16705 (write_inline_edge_summary): New function.
16706 (inline_write_summary): Use it.
16707 (inline_free_summary): Free edge new holders.
16708 * tree-inline.c (copy_bb): Update.
16709
16710 2011-04-26 Jason Merrill <jason@redhat.com>
16711
16712 * tree-eh.c (lower_try_finally_switch): Create the label along with
16713 the CASE_LABEL_EXPR.
16714
16715 2011-04-26 David S. Miller <davem@davemloft.net>
16716 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16717
16718 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
16719 * configure: Regenerate.
16720
16721 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16722
16723 PR target/48258
16724 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
16725 reduction.
16726 (VEC_reduc): New code iterator and splitters for vector reduction.
16727 (VEC_reduc_name): Ditto.
16728 (VEC_reduc_rtx): Ditto.
16729 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
16730 (reduc_<VEC_reduc_name>_v4sf): Ditto.
16731
16732 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
16733 support for extracting SF on VSX.
16734
16735 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
16736 generating xscvspdp.
16737 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
16738 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
16739 double add, minimum, maximum vector reduction.
16740 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
16741 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
16742 optimize double vector reduction.
16743 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
16744
16745 2011-04-26 Joseph Myers <joseph@codesourcery.com>
16746
16747 * config/fr30/fr30.h (inhibit_libc): Don't define.
16748 * config/m32r/m32r-protos.h: Correct comment.
16749 * config/v850/v850.h (GHS_default_section_names,
16750 GHS_current_section_names): Use tree, not union tree_node *.
16751
16752 2011-04-26 Xinliang David Li <davidxl@google.com>
16753
16754 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
16755 * c-family/c-opts.c (c_common_handle_option): Set
16756 warn_maybe_uninitialized.
16757 * opts.c (common_handle_option): Ditto.
16758 * common.opt: New option.
16759 * tree-ssa.c (warn_uninit): Add one more parameter.
16760 (warn_uninitialized_var): Pass warning code.
16761 * tree-flow.h: Interface change.
16762
16763 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16764
16765 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
16766 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
16767 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
16768
16769 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16770
16771 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
16772 * config/mips/mips.opt (mmips-tfile): Remove.
16773
16774 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
16775 mips-tdump reference to ...
16776 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
16777 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
16778 reference by Tru64 UNIX.
16779
16780 2011-04-26 Jakub Jelinek <jakub@redhat.com>
16781
16782 PR debug/48768
16783 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
16784 is error_mark_node, set value to NULL.
16785
16786 PR tree-optimization/48734
16787 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
16788 if return value from maybe_fold_*_comparsions isn't something
16789 the code is prepared to handle.
16790
16791 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
16792
16793 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
16794 mode check.
16795 (ext_QIreg_nomode_operands): Remove.
16796 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
16797 (*andsi_1): Ditto.
16798 (*andhi_1): Ditto.
16799
16800 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
16801
16802 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
16803
16804 2011-04-26 Richard Guenther <rguenther@suse.de>
16805
16806 * c-typeck.c (build_unary_op): Do not expand array-refs via
16807 pointer arithmetic. Only adjust qualifiers for function types.
16808
16809 2011-04-26 Richard Guenther <rguenther@suse.de>
16810
16811 PR middle-end/48694
16812 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
16813 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
16814 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
16815 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
16816
16817 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
16818
16819 * doc/extend.texi: Document __underlying_type.
16820
16821 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
16822
16823 * config/rs6000/titan.md (automata_option "progress"): Remove.
16824
16825 2011-04-25 Jeff Law <law@redhat.com>
16826
16827 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
16828
16829 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16830
16831 * system.h (ENUM_BITFIELD): Remove.
16832
16833 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
16834 Eric Botcazou <ebotcazou@adacore.com>
16835
16836 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
16837 for STORE_FLAG_VALUE==-1 case.
16838
16839 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
16840
16841 PR target/43804
16842 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
16843 LEGITIMATE_PIC_OPERAND_P.
16844
16845 2011-04-24 Jan Hubicka <jh@suse.cz>
16846
16847 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
16848 WPA hack.
16849 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
16850 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
16851 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
16852 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
16853 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
16854 Sanity check predicate length.
16855 (remap_predicate): Likewise; sanity check jump functions.
16856 (inline_read_section, inline_write_summary): Sanity check
16857 predicate length.
16858
16859 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16860
16861 PR other/48748
16862 * doc/extend.texi (Type Traits): Document __is_standard_layout,
16863 __is_literal_type, and __is_trivial; update throughout about
16864 possibly cv-qualified void types.
16865
16866 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
16867
16868 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
16869 testsuite and make it version agnostic.
16870
16871 2011-04-22 Jan Hubicka <jh@suse.cz>
16872
16873 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
16874
16875 2011-04-23 Jakub Jelinek <jakub@redhat.com>
16876
16877 PR c/48685
16878 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
16879 to VOID_TYPE even around MODIFY_EXPR.
16880
16881 2011-04-22 Mike Stump <mikestump@comcast.net>
16882
16883 * gensupport.c (read_md_rtx): Fix typo in comment.
16884 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
16885 comment.
16886
16887 2011-04-22 Jan Hubicka <jh@suse.cz>
16888
16889 * gengtype.c (open_base_files): Add ipa-inline.h include.
16890 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
16891 ipa-prop.c; update all uses.
16892 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
16893 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
16894 merge summary of inlined function into former caller.
16895 * ipa-inline.c (max_benefit): Remove.
16896 (edge_badness): Compensate for removal of benefits.
16897 (update_caller_keys): Use
16898 reset_node_growth_cache/reset_edge_growth_cache.
16899 (update_callee_keys): Likewise.
16900 (update_all_callee_keys): Likewise.
16901 (inline_small_functions): Do not collect max_benefit; do not reset
16902 estimated_growth; call free_growth_caches and initialize_growth_caches.
16903 * ipa-inline.h (struct condition, type clause_t, struct predicate,
16904 struct size_time_entry): New structures.
16905 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
16906 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
16907 and estimated_growth.
16908 (edge_growth_cache_entry): New structure.
16909 (node_growth_cache, edge_growth_cache): New global vars.
16910 (estimate_growth): Turn into inline.
16911 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
16912 initialize_growth_caches, free_growth_caches): Declare.
16913 (estimate_edge_growth): Rewrite.
16914 (estimate_edge_time): Implement as inline cache lookup.
16915 (reset_node_growth_cache, reset_edge_growth_cache): New inline
16916 functions.
16917 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
16918 (NUM_CONDITIONS): New constant.
16919 (predicate_conditions): New enum.
16920 (IS_NOT_CONSTANT): New constant.
16921 (edge_removal_hook_holder): New var.
16922 (node_growth_cache, edge_growth_cache): New global vars.
16923 (true_predicate, single_cond_predicate, false_predicate,
16924 not_inlined_predicate, add_condition, add_clause, and_predicates,
16925 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
16926 dump_clause, dump_predicate, account_size_time,
16927 evaulate_conditions_for_edge): New functions.
16928 (inline_summary_alloc): Move to heap.
16929 (inline_node_removal_hook): Clear condition and entry vectors.
16930 (inline_edge_removal_hook): New function.
16931 (initialize_growth_caches, free_growth_caches): New function.
16932 (dump_inline_summary): Update.
16933 (edge_execution_predicate): New function.
16934 (will_be_nonconstant_predicate): New function.
16935 (estimate_function_body_sizes): Compute BB and constantness predicates.
16936 (compute_inline_parameters): Do not clear estimated_growth.
16937 (estimate_edge_size_and_time): New function.
16938 (estimate_calls_size_and_time): New function.
16939 (estimate_callee_size_and_time): New function.
16940 (remap_predicate): New function.
16941 (inline_merge_summary): New function.
16942 (do_estimate_edge_time): New function based on...
16943 (estimate_edge_time): ... this one.
16944 (do_estimate_edge_growth): New function.
16945 (do_estimate_growth): New function based on....
16946 (estimate_growth): ... this one.
16947 (inline_analyze_function): Analyze after deciding on jump functions.
16948 (inline_read_section): New function.
16949 (inline_read_summary): Use it.
16950 (inline_write_summary): Write all the new data.
16951 * ipa-prop.c (ipa_get_param_decl_index): Export.
16952 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
16953 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
16954 Declare.
16955 (ipa_get_lattice): Move here from ipa-cp.c
16956 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
16957 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
16958 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
16959 cgraph_edge_inlinable_p): Remove.
16960 * cgraphunit.c: Include ipainline.h
16961 (cgraph_process_new_functions): Update call of
16962 compute_inline_parameters.
16963
16964 2011-04-22 Richard Guenther <rguenther@suse.de>
16965
16966 * tree.c (build_int_cst): Properly create canonicalized integer
16967 constants.
16968 (build_int_cst_type): Remove scary comments.
16969
16970 2011-04-22 Xinliang David Li <davidxl@google.com>
16971
16972 * toplev.c (process_options): Enable -Werror=coverage-mismatch
16973 by default when -Wno-error is not specified.
16974 * opts-global.c (decode_options): Remove call to
16975 control_warning_options.
16976
16977 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16978
16979 PR tree-optimization/48717
16980 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
16981 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
16982
16983 2011-04-22 Joseph Myers <joseph@codesourcery.com>
16984
16985 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
16986 definition where used.
16987
16988 2011-04-22 Jakub Jelinek <jakub@redhat.com>
16989
16990 PR c/48716
16991 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
16992 TREE_STATIC variables declared inside of some OpenMP construct.
16993
16994 2011-04-22 Martin Jambor <mjambor@suse.cz>
16995
16996 PR middle-end/48585
16997 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
16998
16999 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
17000
17001 PR c/36750
17002 * c-typeck.c (pop_init_level): Do not warn about initializing
17003 with ` = {0}'.
17004
17005 2011-04-22 Alan Modra <amodra@gmail.com>
17006
17007 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
17008 when returning call_cookie.
17009 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
17010 pointers, to functions with no more vector args than the current
17011 function, and some non-local calls for ABI_V4.
17012 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
17013 sibcall_nonlocal_aix64): Combine to ..
17014 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
17015 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
17016 (sibcall_value_nonlocal_aix<mode>): ..likewise.
17017 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
17018 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
17019 operand.
17020 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
17021 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
17022 sibcall_value_symbolic_64): Delete.
17023
17024 2011-04-21 Xinliang David Li <davidxl@google.com>
17025
17026 * cgraph.h: Remove pid.
17027 * cgraph.c: Remove pid.
17028 * value-prof.c (init_node_map): New function.
17029 (del_node_map): New function.
17030 (find_func_by_funcdef_no): New function.
17031 (gimple_ic_transform): Call new function.
17032 * cgraphunit.c (cgraph_finalize_function): Remove pid.
17033 * function.c (get_last_funcdef_no): New function.
17034 * function.h (get_last_funcdef_no): New function.
17035 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
17036 to libgcov function.
17037 (tree-profiling): Call node map init and delete function.
17038
17039 2011-04-21 Ian Lance Taylor <iant@google.com>
17040
17041 * godump.c (go_format_type): Use exported Go name for anonymous
17042 field name.
17043
17044 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17045
17046 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
17047 Call builtin_function_type_list instead of builtin_function_type.
17048 (UNARY, BINARY, TRINARY, QUAD): Likewise.
17049
17050 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17051
17052 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
17053 build_function_type_list instead of build_function_type.
17054 Delete variable `endlink'.
17055
17056 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17057
17058 * config/s390/s390.c (s390_init_builtins): Call
17059 build_function_type_list instead of build_function_type.
17060
17061 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
17062
17063 * config/ia64/ia64.c (ia64_init_builtins): Call
17064 build_function_type_list instead of builtin_function_type.
17065
17066 2011-04-21 Easwaran Raman <eraman@google.com>
17067
17068 * cfgexpand.c (stack_var): Remove OFFSET...
17069 (add_stack_var): ...and its reference here...
17070 (expand_stack_vars): ...and here.
17071 (stack_var_cmp): Sort by descending order of size.
17072 (partition_stack_vars): Change heuristic.
17073 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
17074 (dump_stack_var_partition): Add newline after each partition.
17075
17076 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
17077 Jeff Law <law@redhat.com>
17078
17079 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
17080 * gengtype.c (matching_file_name_substitute): Likewise.
17081
17082 2011-04-21 Richard Guenther <rguenther@suse.de>
17083
17084 PR lto/48703
17085 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
17086
17087 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
17088
17089 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
17090
17091 2011-04-21 Richard Guenther <rguenther@suse.de>
17092
17093 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
17094 file name.
17095
17096 2011-04-21 Richard Guenther <rguenther@suse.de>
17097
17098 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
17099 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
17100 Use DECL_P, not SSA_VAR_P.
17101 (ptr_derefs_may_alias_p): Likewise.
17102 (ptr_deref_may_alias_ref_p_1): Likewise.
17103 (decl_refs_may_alias_p): Likewise.
17104 (refs_may_alias_p_1): Likewise.
17105 (ref_maybe_used_by_call_p_1): Likewise.
17106 (call_may_clobber_ref_p_1): Likewise.
17107 (indirect_ref_may_alias_decl_p): Assume indirect refrences
17108 are either MEM_REF or TARGET_MEM_REF.
17109 (indirect_refs_may_alias_p): Likewise.
17110 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
17111 for MEM_EXPR of indirect calls.
17112
17113 2011-04-21 Tristan Gingold <gingold@adacore.com>
17114
17115 * vmsdbgout.c (write_srccorr): Compute file length from the string.
17116 (dst_file_info_struct): Remove flen field.
17117 (lookup_filename): Remove code that set flen field.
17118
17119 2011-04-21 Tristan Gingold <gingold@adacore.com>
17120
17121 * config/ia64/ia64.c (ia64_start_function): Add a guard.
17122
17123 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
17124
17125 PR target/48708
17126 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
17127 vec_extract and vec_concat for non-SSE4_1 targets.
17128
17129 2011-04-21 Richard Guenther <rguenther@suse.de>
17130
17131 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
17132 return statements.
17133
17134 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17135
17136 * config/i386/cygming.h (union tree_node, TREE): Don't define or
17137 undefine.
17138 (FILE): Don't undefine.
17139
17140 2011-04-21 Joseph Myers <joseph@codesourcery.com>
17141
17142 * config/alpha/alpha.c (struct machine_function): Use rtx, not
17143 struct rtx_def *.
17144 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
17145 struct rtx_def *.
17146 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
17147 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
17148 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
17149 rtx_def *.
17150 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
17151 definitions where used.
17152 * config/microblaze/microblaze.h (struct microblaze_args): Use
17153 rtx, not struct rtx_def *.
17154 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
17155 rtx_def *.
17156 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
17157 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
17158 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
17159 not struct rtx_def *.
17160 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
17161 struct rtx_def *.
17162 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
17163 rtx_def *.
17164 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
17165
17166 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17167
17168 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
17169 operand_equal_p to compare DR_BASE_ADDRESSes.
17170 (vect_check_interleaving): Likewise.
17171
17172 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17173
17174 PR target/46329
17175 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
17176 for all Neon struct constants.
17177
17178 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17179
17180 * target.def (legitimate_constant_p): New hook.
17181 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
17182 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
17183 * doc/tm.texi: Regenerate.
17184 * hooks.h (hook_bool_mode_rtx_true): Declare.
17185 * hooks.c (hook_bool_mode_rtx_true): Define.
17186 * system.h (LEGITIMATE_CONSTANT_P): Poison.
17187 * calls.c (precompute_register_parameters): Replace uses of
17188 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
17189 (emit_library_call_value_1): Likewise.
17190 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
17191 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
17192 * ira-costs.c (scan_one_insn): Likewise.
17193 * recog.c (general_operand, immediate_operand): Likewise.
17194 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
17195 * reload1.c (init_eliminable_invariants): Likewise.
17196
17197 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
17198 mode argument.
17199 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
17200 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
17201 argument.
17202 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17203 * config/alpha/predicates.md (input_operand): Update call to
17204 alpha_legitimate_constant_p.
17205
17206 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
17207 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
17208 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
17209 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17210 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
17211 (arm_legitimate_constant_p): New functions.
17212 (arm_cannot_force_const_mem): Make static.
17213
17214 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
17215
17216 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
17217 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
17218 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
17219 instead of bfin_legitimate_constant_p.
17220 (bfin_legitimate_constant_p): Make static. Add a mode argument.
17221 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17222
17223 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
17224
17225 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
17226
17227 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
17228 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
17229 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17230 (frv_legitimate_constant_p): Make static. Add a mode argument.
17231
17232 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
17233 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
17234 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
17235
17236 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
17237 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
17238 * config/i386/i386.c (legitimate_constant_p): Rename to...
17239 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
17240 argument.
17241 (ix86_cannot_force_const_mem): Update accordingly.
17242 (ix86_legitimate_address_p): Likewise.
17243 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17244 * config/i386/i386.md: Update commentary.
17245
17246 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
17247 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
17248 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17249 (ia64_legitimate_constant_p): Make static. Add a mode argument.
17250
17251 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
17252
17253 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
17254 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
17255 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17256 (lm32_legitimate_constant_p): Make static. Add a mode argument.
17257
17258 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
17259 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
17260 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
17261
17262 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
17263 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17264 (m32r_legitimate_constant_p): New function.
17265
17266 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
17267 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
17268 LEGITIMATE_CONSTANT_P.
17269 (LEGITIMATE_CONSTANT_P): Delete.
17270 * config/m68k/m68k.c (m68k_expand_prologue): Call
17271 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
17272 (m68k_legitimate_constant_p): New function.
17273 * config/m68k/m68k.md: Update comments.
17274
17275 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
17276 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17277 (mcore_legitimate_constant_p): New function.
17278
17279 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
17280 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
17281 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
17282 Add a mode argument.
17283 (mep_legitimate_address): Update accordingly.
17284 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17285
17286 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
17287 Delete.
17288 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
17289 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
17290 static. Check OP's mode for VOIDmode.
17291 (microblaze_legitimate_constant_p): New function.
17292 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17293
17294 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
17295 * config/mips/mips.c (mips_legitimate_constant_p): New function.
17296 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
17297 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17298 * config/mips/predicates.md: Update comments.
17299
17300 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
17301 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
17302 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17303 (mmix_legitimate_constant_p): Make static, return a bool, and take
17304 a mode argument.
17305 (mmix_print_operand_address): Update accordingly.
17306
17307 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
17308 Delete.
17309 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
17310 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
17311 static. Add a mode argument.
17312 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17313
17314 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
17315
17316 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
17317 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17318 (pa_legitimate_constant_p): New function.
17319
17320 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
17321
17322 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
17323 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17324 (pdp11_legitimate_constant_p): New function.
17325
17326 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
17327 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17328 (rs6000_legitimate_constant_p): New function.
17329
17330 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
17331 (rx_legitimate_constant_p): ...this.
17332 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
17333 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
17334 (rx_legitimate_constant_p): ...this.
17335 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17336 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
17337
17338 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
17339 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
17340 * config/s390/s390.c (legitimate_constant_p): Rename to...
17341 (s390_legitimate_constant_p): ...this. Make static, return a bool,
17342 and add a mode argument.
17343 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17344
17345 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
17346
17347 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
17348 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17349 (sh_legitimate_constant_p): New function.
17350
17351 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
17352 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
17353 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17354 (legitimate_constant_p): Rename to...
17355 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
17356 argument.
17357 (constant_address_p): Update accordingly.
17358
17359 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
17360 argument and return a bool.
17361 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
17362 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17363 (spu_legitimate_constant_p): Add a mode argument and return a bool.
17364 (spu_rtx_costs): Update accordingly.
17365 * config/spu/predicates.md (vec_imm_operand): Likewise.
17366
17367 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
17368
17369 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
17370 * config/v850/v850.c (v850_legitimate_constant_p): New function.
17371 (TARGET_LEGITIMATE_CONSTANT_P): Define.
17372
17373 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
17374 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
17375 * config/vax/vax.c (legitimate_constant_p): Likewise.
17376
17377 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
17378 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
17379 (xtensa_legitimate_constant_p): New function.
17380
17381 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
17382
17383 * target.def (cannot_force_const_mem): Add a mode argument.
17384 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
17385 * doc/tm.texi: Regenerate.
17386 * hooks.h (hook_bool_mode_rtx_false): Declare.
17387 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
17388 (hook_bool_mode_const_rtx_true): Likewise.
17389 (hook_bool_mode_rtx_false): New function.
17390 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
17391 to be non-VOID. Update call to cannot_force_const_mem.
17392 (find_reloads): Update accordingly.
17393 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
17394 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
17395 argument.
17396 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
17397 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
17398 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
17399 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
17400 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
17401 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
17402 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
17403 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17404 (m68k_cannot_force_const_mem): ...this new function.
17405 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
17406 argument.
17407 (mips_const_insns, mips_legitimize_const_move): Update calls.
17408 (mips_secondary_reload_class): Likewise.
17409 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
17410 (pa_cannot_force_const_mem): ...this new function.
17411 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
17412 (rs6000_cannot_force_const_mem): ...this new function.
17413 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
17414 argument.
17415 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
17416 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
17417 to...
17418 (xtensa_cannot_force_const_mem): ...this new function.
17419
17420 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17421
17422 * config/mips/mips.c (mips16_build_function_stub): Call
17423 build_function_type_list instead of build_function_type.
17424 (mips16_build_call_stub): Likewise.
17425
17426 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17427
17428 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
17429 instead of build_function_type.
17430
17431 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
17432
17433 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
17434 instead of build_function_type.
17435
17436 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
17437
17438 PR target/48678
17439 * config/i386/i386.md (insv): Change operand 0 constraint to
17440 "register_operand". Change operand 1 and 2 constraint to
17441 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
17442 * config/i386/sse.md (sse4_1_pinsrb): Export.
17443 (sse2_pinsrw): Ditto.
17444 (sse4_1_pinsrd): Ditto.
17445 (sse4_1_pinsrq): Ditto.
17446 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
17447 * config/i386/i386.c (ix86_expand_pinsr): New.
17448
17449 2011-04-20 Easwaran Raman <eraman@google.com>
17450
17451 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
17452 containing union type only with -fstrict-aliasing.
17453
17454 2011-04-20 Jim Meyering <meyering@redhat.com>
17455
17456 Remove useless if-before-free tests.
17457 * calls.c (expand_call, save_area): Likewise.
17458 * cfgcleanup.c (try_forward_edges): Likewise.
17459 * collect2.c (collect_execute): Likewise.
17460 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
17461 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
17462 * coverage.c (coverage_checksum_string): Likewise.
17463 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
17464 * cselib.c (cselib_init): Likewise.
17465 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
17466 (df_set_clean_cfg): Likewise.
17467 * function.c (free_after_compilation): Likewise.
17468 * gcc.c (do_spec_1, main): Likewise.
17469 * gcov.c (create_file_names): Likewise.
17470 * gensupport.c (identify_predicable_attribute): Likewise.
17471 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
17472 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
17473 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
17474 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
17475 * ipa-pure-const.c (local_pure_const): Likewise.
17476 * ipa-reference.c (propagate): Likewise.
17477 * ira-costs.c (free_ira_costs): Likewise.
17478 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
17479 * matrix-reorg.c (mat_free): Likewise.
17480 * prefix.c (get_key_value): Likewise.
17481 * profile.c (compute_value_histograms): Likewise.
17482 * reload1.c (free_reg_equiv): Likewise.
17483 * sched-deps.c (free_deps): Likewise.
17484 * sel-sched-ir.c (fence_clear): Likewise.
17485 * sese.c (set_rename, if_region_set_false_region): Likewise.
17486 * tree-data-ref.c (free_rdg): Likewise.
17487 * tree-eh.c (lower_try_finally): Likewise.
17488 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
17489 * tree-ssa-live.c (delete_var_map): Likewise.
17490 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
17491 * tree-ssa-pre.c (phi_trans_add): Likewise.
17492
17493 2011-04-20 Jakub Jelinek <jakub@redhat.com>
17494
17495 PR tree-optimization/48611
17496 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
17497 beyond ERT_MUST_NOT_THROW region.
17498
17499 2011-04-20 Catherine Moore <clm@codesourcery.com>
17500
17501 * config/mips/mips.opt (mfix-24k): New.
17502 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
17503 * config/mips/mips.md (length): Increase by 4 for stores if
17504 fixing 24K errata.
17505 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
17506 all noreorder if fixing 24K errata.
17507 * doc/invoke.texi: Document mfix-24k.
17508
17509 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
17510
17511 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
17512 quad-word modes, reduce to 9-bit index range when above 1016 limit.
17513
17514 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17515
17516 * config/arm/arm.c (arm_gen_constant): Move movw support ....
17517 (const_ok_for_op): ... to here.
17518
17519 2011-04-20 Kai Tietz <ktietz@redhat.com>
17520
17521 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
17522 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
17523
17524 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
17525
17526 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
17527
17528 2011-04-20 Richard Guenther <rguenther@suse.de>
17529
17530 PR tree-optimization/47892
17531 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
17532 are if-convertible.
17533
17534 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
17535
17536 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
17537
17538 2011-04-20 Tristan Gingold <gingold@adacore.com>
17539
17540 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
17541
17542 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
17543
17544 PR target/18145
17545
17546 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
17547 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
17548 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17549 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
17550 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
17551
17552 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
17553 New prototype.
17554
17555 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
17556 (avr_asm_named_section, avr_asm_output_aligned_common,
17557 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
17558 New functions to update...
17559 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
17560 (avr_asm_init_sections): Overwrite section callbacks for
17561 data_section, bss_section.
17562 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
17563 from here to...
17564 (avr_file_end): ...here.
17565
17566 2011-04-20 Richard Guenther <rguenther@suse.de>
17567
17568 PR middle-end/48695
17569 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
17570 objects and types here. Adjust for their offset before comparing.
17571
17572 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17573
17574 * tree-vect-stmts.c (vectorizable_store): Only chain one related
17575 statement per copy.
17576
17577 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
17578
17579 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
17580 (GIMPLE_H): Include $(INTERNAL_FN_H).
17581 (OBJS-common): Add internal-fn.o.
17582 (internal-fn.o): New rule.
17583 * internal-fn.def: New file.
17584 * internal-fn.h: Likewise.
17585 * internal-fn.c: Likewise.
17586 * gimple.h: Include internal-fn.h.
17587 (GF_CALL_INTERNAL): New gf_mask.
17588 (gimple_statement_call): Put fntype into a union with a new
17589 internal_fn field.
17590 (gimple_build_call_internal): Declare.
17591 (gimple_build_call_internal_vec): Likewise.
17592 (gimple_call_same_target_p): Likewise.
17593 (gimple_call_internal_p): New function.
17594 (gimple_call_internal_fn): Likewise.
17595 (gimple_call_fntype): Return null for internal calls.
17596 (gimple_call_set_fntype): Assert that the function is not internal.
17597 (gimple_call_set_fn): Likewise.
17598 (gimple_call_set_fndecl): Likewise.
17599 (gimple_call_set_internal_fn): New function.
17600 (gimple_call_addr_fndecl): Handle null functions.
17601 (gimple_call_return_type): Likewise null types.
17602 * gimple.c (gimple_build_call_internal_1): New function.
17603 (gimple_build_call_internal): Likewise.
17604 (gimple_build_call_internal_vec): Likewise.
17605 (gimple_call_same_target_p): Likewise.
17606 (gimple_call_flags): Handle calls to internal functions.
17607 (gimple_call_fnspec): New function.
17608 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
17609 (gimple_has_side_effects): Handle null functions.
17610 (gimple_rhs_has_side_effects): Likewise.
17611 (gimple_call_copy_skip_args): Handle calls to internal functions.
17612 * cfgexpand.c (expand_call_stmt): Likewise.
17613 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
17614 * gimple-fold.c (gimple_fold_call): Handle null functions.
17615 (gimple_fold_stmt_to_constant_1): Don't fold
17616 calls to internal functions.
17617 * gimple-low.c (gimple_check_call_args): Handle calls to internal
17618 functions.
17619 * gimple-pretty-print.c (dump_gimple_call): Likewise.
17620 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
17621 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
17622 (do_warn_unused_result): Likewise.
17623 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
17624 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
17625 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
17626 the target of a call.
17627 (initialize_hash_element): Update accordingly.
17628 (hashable_expr_equal_p): Use gimple_call_same_target_p.
17629 (iterative_hash_hashable_expr): Handle calls to internal functions.
17630 (print_expr_hash_elt): Likewise.
17631 * tree-ssa-pre.c (can_value_number_call): Likewise.
17632 (eliminate): Handle null functions.
17633 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
17634 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
17635 (find_func_aliases): Likewise.
17636 * value-prof.c (gimple_ic_transform): Likewise.
17637 (gimple_indirect_call_to_profile): Likewise.
17638 * lto-streamer-in.c (input_gimple_stmt): Likewise.
17639 * lto-streamer-out.c (output_gimple_stmt): Likewise.
17640
17641 2011-04-19 Jan Hubicka <jh@suse.cz>
17642
17643 * ipa-inline-transform.c (save_inline_function_body): Add comments.
17644 * ipa-inline.c (inline_small_functions): Compute summaries first,
17645 populate heap later.
17646
17647 2011-04-19 Jan Hubicka <jh@suse.cz>
17648
17649 * cgraph.h (save_inline_function_body): Remove.
17650 * ipa-inline-transform.c: New file, broke out of...
17651 * ipa-inline.c: ... this one; Update toplevel comment.
17652 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
17653 make global.
17654 (update_noncloned_frequencies): Move to ipa-inline-transform.c
17655 (cgraph_mark_inline_edge): Rename to inline_call; move to
17656 ipa-inline-transform.c.
17657 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
17658 move to ipa-inline-transform.c
17659 (recursive_inlining, inline_small_functions, flatten_function,
17660 ipa_inline, inline_always_inline_functions,
17661 early_inline_small_functions): Update.
17662 (inline_transform): Move to ipa-inline-transform.c.
17663 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
17664 Declare.
17665 * Makefile.in (ipa-inline-transform.o): New file.
17666 * cgraphunit.c (save_inline_function_body): Move to
17667 ipa-inline-transform.c
17668
17669 2011-04-19 DJ Delorie <dj@redhat.com>
17670
17671 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
17672 registers if we already know there aren't any.
17673 (m32c_emit_epilogue): Don't emit a barrier here.
17674 (m32c_emit_eh_epilogue): Likewise.
17675 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
17676 operands at expand time.
17677 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
17678 int" wchar type.
17679 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
17680 duplicates. Provide aliases instead.
17681 * config/m32c/prologue.md (eh_return): Emit a barrier here.
17682 (eh_epilogue): Add a "(return)" here as a hint to other parts of
17683 the compiler.
17684
17685 2011-04-19 Anatoly Sokolov <aesok@post.ru>
17686
17687 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
17688 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
17689 (general_or_i64_p, sparc_register_move_cost): New function.
17690
17691 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17692
17693 * doc/install.texi (Configuration, --enable-threads): Remove mach.
17694 Add lynx, mipssde. Sort table.
17695
17696 2011-04-19 Xinliang David Li <davidxl@google.com>
17697
17698 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
17699 not negative.
17700
17701 2011-04-19 Jakub Jelinek <jakub@redhat.com>
17702
17703 PR target/48678
17704 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
17705 is a SUBREG with non-MODE_INT mode inside of it.
17706
17707 2011-04-19 Martin Jambor <mjambor@suse.cz>
17708
17709 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
17710 also according to actual contants.
17711 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
17712 (gimple_fold_call): Use it.
17713 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
17714
17715 2011-04-19 Martin Jambor <mjambor@suse.cz>
17716
17717 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
17718 non-pointer assignments.
17719
17720 2011-04-19 Martin Jambor <mjambor@suse.cz>
17721
17722 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
17723 account anc_offset and otr_type from the indirect edge info.
17724 * ipa-prop.c (get_ancestor_addr_info): New function.
17725 (compute_complex_ancestor_jump_func): Assignment analysis moved to
17726 get_ancestor_addr_info, call it.
17727 (ipa_note_param_call): Do not initialize information about polymorphic
17728 calls, return the indirect call graph edge. Remove the last
17729 parameter, adjust all callers.
17730 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
17731 parameters. Initialize polymorphic information in the indirect edge.
17732
17733 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17734
17735 PR lto/48148
17736 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
17737 the types if they have different enumeration identifiers.
17738
17739 2011-04-19 Jan Hubicka <jh@suse.cz>
17740
17741 * cgraph.h (cgraph_optimize_for_size_p): Declare.
17742 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
17743 * predict.c (cgraph_optimize_for_size_p): Break out from ...
17744 (optimize_function_for_size_p) ... here.
17745
17746 2011-04-19 Richard Guenther <rguenther@suse.de>
17747
17748 PR lto/48207
17749 * tree.c (free_lang_data): Do not reset the decl-assembler-name
17750 langhook.
17751
17752 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
17753
17754 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
17755 if DECL_NO_INLINE_WARNING_P is set on the function.
17756
17757 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
17758
17759 PR fortran/47976
17760 * reload1.c (inc_for_reload): Return void. All callers changed.
17761 (emit_input_reload_insns): Don't try to delete previous output
17762 reloads to a register, or record spill_reg_store for autoincs.
17763
17764 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
17765
17766 * gengtype.h: Updated copyright year.
17767 (struct input_file_st): Add inpisplugin field.
17768 (type_fileloc): New function.
17769 * gengtype.c
17770 (write_typed_struct_alloc_def): Add gcc_assert.
17771 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
17772 (write_typed_alloc_defns): Don't output for plugin files.
17773 (input_file_by_name): Clear inpisplugin field.
17774 (main): Set inpisplugin field for plugin files.
17775
17776 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
17777
17778 * gengtype-state.c (string_eq): New.
17779 (read_state): Use string_eq instead of strcmp when creating the
17780 state_ident_tab.
17781
17782 2011-04-19 Wei Guozhi <carrot@google.com>
17783
17784 PR target/47855
17785 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
17786 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
17787 linkage.
17788 * config/arm/constraints.md (Uu): New constraint.
17789 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
17790
17791 2011-04-19 Tristan Gingold <gingold@adacore.com>
17792
17793 * config.gcc (-*-*-*vms): Added.
17794 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
17795 definitions moved.
17796 * config/vms/vms-ld.c: New file.
17797 * config/vms/vms-ar.c: New file.
17798 * config/vms/t-vmsnative: New file.
17799
17800 2011-04-18 Xinliang David Li <davidxl@google.com>
17801
17802 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
17803
17804 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17805
17806 PR middle-end/48661
17807 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
17808 if TREE_TYPE (v) is non-NULL.
17809
17810 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
17811 gimple_get_virt_mehtod_for_binfo.
17812 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
17813 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
17814 callers.
17815 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
17816
17817 2011-04-18 Michael Matz <matz@suse.de>
17818 Steve Ellcey <sje@cup.hp.com>
17819
17820 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
17821 use its mode as source mode if it isn't VOIDmode.
17822
17823 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
17824
17825 * doc/passes.texi: Fill crossref nodes.
17826
17827 2011-04-18 Jim Meyering <meyering@redhat.com>
17828
17829 Fix doubled-word typos in comments and strings
17830 * config/alpha/vms-unwind.h: s/for for/for/
17831 * config/arm/unwind-arm.h: Likewise.
17832 * config/microblaze/microblaze.c: Likewise.
17833 * config/sh/constraints.md: s/in in/in/
17834 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
17835
17836 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
17837
17838 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
17839 (AVX_FLOAT_MODE_P): Ditto.
17840 (AVX128_VEC_FLOAT_MODE_P): Ditto.
17841 (AVX256_VEC_FLOAT_MODE_P): Ditto.
17842 (AVX_VEC_FLOAT_MODE_P): Ditto.
17843 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
17844 (UNSPEC_MASKSTORE): Ditto.
17845 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
17846 Merge from <sse>_movmsk<ssemodesuffix> and
17847 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
17848 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
17849 iterator.
17850 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
17851 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
17852 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
17853
17854 2011-04-18 Jan Hubicka <jh@suse.cz>
17855
17856 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
17857
17858 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
17859 (want_inline_function_called_once_p): Break out the logic from
17860 ipa_inline.
17861 (edge_badness): Ensure that profile is not misupdated.
17862 (lookup_recursive_calls): Prioritize by call frequencies.
17863 (inline_small_functions): Move program size estimates here;
17864 actually process whole queue even when unit growth has been
17865 met. (to properly compute inline_failed reasons and for the
17866 case unit size decrease.) Revisit comments on recursive inlining.
17867 (ipa_inline): Remove unit summary code; first inline hot calls
17868 of functions called once, cold calls next.
17869 (order, nnodes): Remove unused variables.
17870 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
17871 (GTFILES): Remove ipa-inline.c
17872 * sel-sched.c (fill_insns): Silence uninitialized var warning.
17873
17874 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
17875
17876 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
17877
17878 2011-04-18 Jie Zhang <jie@codesourcery.com>
17879 Richard Earnshaw <rearnsha@arm.com>
17880
17881 * arm.c (neon_builtin_type_bits): Remove.
17882 (typedef enum neon_builtin_mode): New.
17883 (T_MAX): Don't define.
17884 (typedef enum neon_builtin_datum): Remove bits, codes[],
17885 num_vars and base_fcode. Add mode, code and fcode.
17886 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
17887 VAR10): Change accordingly.
17888 (neon_builtin_data[]): Change accordingly
17889 (arm_init_neon_builtins): Change accordingly.
17890 (neon_builtin_compare): Remove.
17891 (locate_neon_builtin_icode): Remove.
17892 (arm_expand_neon_builtin): Change accordingly.
17893
17894 * arm.h (enum arm_builtins): Move to ...
17895 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
17896
17897 * arm.c (arm_builtin_decl): Declare.
17898 (TARGET_BUILTIN_DECL): Define.
17899 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
17900 (arm_builtin_decls[]): New.
17901 (arm_init_neon_builtins): Store builtin declarations in
17902 arm_builtin_decls[].
17903 (arm_init_tls_builtins): Likewise.
17904 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
17905 (arm_builtin_decl): New.
17906
17907 2011-04-18 Richard Guenther <rguenther@suse.de>
17908
17909 * tree.c (upper_bound_in_type): Build properly canonicalized
17910 INTEGER_CSTs.
17911 (lower_bound_in_type): Likewise.
17912
17913 2011-04-18 Richard Guenther <rguenther@suse.de>
17914
17915 * gimple.h (gimple_call_addr_fndecl): New function.
17916 (gimple_call_fndecl): Use it.
17917 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
17918 for direct calls.
17919 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
17920 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
17921
17922 2011-04-18 Richard Guenther <rguenther@suse.de>
17923
17924 PR middle-end/48650
17925 * tree.c (build_string): STRING_CST is now derived from tree_typed.
17926
17927 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
17928
17929 PR lto/48492
17930 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
17931 DECL_IN_CONSTANT_POOL without RTL.
17932
17933 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
17934 Ira Rosen <ira.rosen@linaro.org>
17935
17936 PR target/48252
17937 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
17938 to match neon_vzip/vuzp/vtrn_internal.
17939 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
17940 outputs explicitly dependent on both inputs.
17941 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
17942
17943 2011-04-18 Jakub Jelinek <jakub@redhat.com>
17944
17945 PR tree-optimization/48616
17946 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
17947 whether the shift is by scalar or vector based on whether all SLP
17948 scalar stmts have the same rhs.
17949
17950 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
17951
17952 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
17953 memory operands.
17954
17955 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
17956
17957 PR target/43700
17958 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
17959 registers.
17960
17961 2011-04-17 Jan Hubicka <jh@suse.cz>
17962
17963 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
17964 * cgrpahunit.c (cgraph_finalize_function): Do not set
17965 finalized_by_frontend.
17966 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
17967 finalized_by_frontend.
17968
17969 2011-04-17 Jan Hubicka <jh@suse.cz>
17970
17971 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
17972 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
17973 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
17974 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
17975 method.
17976 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
17977 gimple-fold.c
17978 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
17979
17980 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
17981
17982 PR lto/48538
17983 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
17984 is non-null before accessing it.
17985 (input_cgraph): Remove trailing spaces.
17986
17987 2011-04-17 Revital Eres <revital.eres@linaro.org>
17988
17989 * params.def (sms-min-sc): New param flag.
17990 * modulo-sched.c (sms_schedule): Use it.
17991 * doc/invoke.texi (sms-min-sc): Document it.
17992
17993 2011-04-17 Jan Hubicka <jh@suse.cz>
17994
17995 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
17996 present, also set gimple_call_set_cannot_inline.
17997 * ipa-inline.c: Update toplevel comment.
17998 (MAX_TIME): Remove.
17999 (cgraph_clone_inlined_nodes): Fix linebreaks.
18000 (cgraph_check_inline_limits): Restructure to ...
18001 (caller_growth_limits): ... this one; be more tolerant
18002 on growth in nested inline chains; add explanatory comment;
18003 fix stack accounting thinko introduced by previous patch.
18004 (cgraph_default_inline_p): Remove.
18005 (report_inline_failed_reason): New function.
18006 (can_inline_edge_p): New function.
18007 (can_early_inline_edge_p): New function.
18008 (leaf_node_p): Move upwards in file.
18009 (want_early_inline_function_p): New function.
18010 (want_inline_small_function_p): New function.
18011 (want_inline_self_recursive_call_p): New function.
18012 (cgraph_edge_badness): Rename to ...
18013 (edge_badness) ... this one; fix linebreaks.
18014 (update_edge_key): Update call of edge_baddness; add
18015 detailed dump about queue updates.
18016 (update_caller_keys): Use can_inline_edge_p and
18017 want_inline_small_function_p.
18018 (cgraph_decide_recursive_inlining): Rename to...
18019 (recursive_inlining): Use can_inline_edge_p and
18020 want_inline_self_recursive_call_p; simplify and remove no longer
18021 valid FIXME.
18022 (cgraph_set_inline_failed): Remove.
18023 (add_new_edges_to_heap): Use can_inline_edge_p and
18024 want_inline_small_function_p.
18025 (cgraph_decide_inlining_of_small_functions): Rename to ...
18026 (inline_small_functions): ... this one; cleanup; use
18027 can/want predicates; cleanup debug ouput; work edges till fibheap
18028 is exhausted and do not stop once unit growth is reached; remove
18029 later loop processing remaining edges.
18030 (cgraph_flatten): Rename to ...
18031 (flatten_function): ... this one; use can_inline_edge_p
18032 and can_early_inline_edge_p predicates.
18033 (cgraph_decide_inlining): Rename to ...
18034 (ipa_inline): ... this one; remove unreachable nodes before
18035 inlining functions called once; simplify the pass.
18036 (cgraph_perform_always_inlining): Rename to ...
18037 (inline_always_inline_functions): ... this one; use
18038 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
18039 (cgraph_decide_inlining_incrementally): Rename to ...
18040 (early_inline_small_functions): ... this one; simplify
18041 using new predicates; cleanup; make dumps prettier.
18042 (cgraph_early_inlining): Rename to ...
18043 (early_inliner): newer inline regular functions into always-inlines;
18044 fix updating of call stmt summaries.
18045 (pass_early_inline): Update for new names.
18046 (inline_transform): Fix formating.
18047 (gate_cgraph_decide_inlining): Rename to ...
18048 (pass_ipa_inline): ... this one.
18049 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
18050 * ipa-inline-analysis.c (dump_inline_summary): Update.
18051 (compute_inline_parameters): Do not compute disregard_inline_limits;
18052 look for mismatching arguments.
18053 (estimate_growth): Fix handlig of non-trivial self recursion.
18054 (inline_read_summary): Do not read info->disregard_inline_limits.
18055 (inline_write_summary): Do not write info->disregard_inline_limits.
18056 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
18057 and move all checks into can_inline_edge_p predicate; re-enable code
18058 comparing optimization levels.
18059 (expand_call_inline): Do not test inline_forbidden_into_p.
18060 * Makefile.in (ipa-inline.o): Update arguments.
18061
18062 2011-04-17 Revital Eres <revital.eres@linaro.org>
18063
18064 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
18065
18066 2011-04-17 Revital Eres <revital.eres@linaro.org>
18067
18068 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
18069
18070 2011-04-17 Michael Matz <matz@suse.de>
18071
18072 PR tree-optimization/48622
18073 PR lto/48645
18074 * ipa-inline-analysis.c (inline_read_summary): Read size/time
18075 in same order as they're written.
18076
18077 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18078
18079 * config/pa/predicates.md: Reorganize and simplify predicates.
18080 Eliminate duplicate code checks.
18081 (arith_operand): Rename to arith14_operand
18082 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
18083 * config/pa/pa.md: Use renamed operands.
18084 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
18085 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
18086 arith11_operand, adddi3_operand, indexed_memory_operand,
18087 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
18088 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
18089 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
18090 move_dest_operand, move_src_operand, prefetch_cc_operand,
18091 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
18092 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
18093 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
18094 div_operand, int5_operand, movb_comparison_operator,
18095 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
18096 arith_double_operand, ireg_operand, lhs_lshift_operand,
18097 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
18098 integer_store_memory_operand): Likewise.
18099 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
18100 (integer_store_memory_operand, read_only_operand,
18101 function_label_operand, borx_reg_operand,
18102 non_hard_reg_operand): Likewise.
18103 (eq_neq_comparison_operator): Delete unused operator.
18104 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
18105 function_label_operand.
18106 (emit_move_sequence): Likewise.
18107
18108 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18109
18110 * config/i386/sse.md (sseunpackmode): New mode attribute.
18111 (ssepackmode): Ditto.
18112 (vec_pack_trunc_<mode>): Macroize expander from
18113 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
18114 (vec_unpacks_lo_<mode>): Macroize expander from
18115 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18116 (vec_unpacks_hi_<mode>): Macroize expander from
18117 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18118 (vec_unpacku_lo_<mode>): Macroize expander from
18119 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18120 (vec_unpacku_hi_<mode>): Macroize expander from
18121 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
18122 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
18123 ix86_expand_sse4_unpack.
18124 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
18125
18126 2011-04-16 Jan Hubicka <jh@suse.cz>
18127
18128 * cgraphbuild.c: Include ipa-inline.h.
18129 (reset_inline_failed): Use initialize_inline_failed.
18130 * cgraph.c: Include ipa-inline.h.
18131 (cgraph_create_node_1): Do not initialize estimated_growth.
18132 (initialize_inline_failed): More to ipa-inline-analysis.c
18133 (dump_cgraph_node): Do not dump inline flags.
18134 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
18135 and disregard_inline_limits flags.
18136 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
18137 time, size, estimated_growth.
18138 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
18139 Update.
18140 * cgraphunit.c (cgraph_decide_is_function_needed): Use
18141 DECL_DISREGARD_INLINE_LIMITS.
18142 (cgraph_analyze_function): Do not initialize
18143 node->local.disregard_inline_limits.
18144 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
18145 inlinable, versionable and disregard_inline_limits.
18146 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
18147 cgraph_check_inline_limits, cgraph_default_inline_p,
18148 cgraph_edge_badness, update_caller_keys, update_callee_keys,
18149 add_new_edges_to_heap): Update.
18150 (cgraph_decide_inlining_of_small_function): Update; set
18151 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
18152 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
18153 cgraph_decide_inlining_incrementally): Update.
18154 * ipa-inline.h (inline_summary): Add inlinable, versionable,
18155 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
18156 time, size and estimated_growth parameters.
18157 (estimate_edge_growth): Update.
18158 (initialize_inline_failed): Declare.
18159 * ipa-split.c: Include ipa-inline.h
18160 (execute_split_functions): Update.
18161 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
18162 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
18163 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
18164 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
18165 estimated_growth to INT_MIN.
18166 (inline_node_duplication_hook): Likewise.
18167 (dump_inline_summary): Dump new fields.
18168 (compute_inline_parameters): Update.
18169 (estimate_edge_time, estimate_time_after_inlining,
18170 estimate_size_after_inlining, estimate_growth, inline_read_summary,
18171 inline_write_summary):
18172 (initialize_inline_failed): Move here from cgraph.c.
18173 * tree-sra.c: Include ipa-inline.h.
18174 (ipa_sra_preliminary_function_checks): Update.
18175 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
18176 ipa-inline.h.
18177
18178 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
18179
18180 * config/i386/sse.md (V16): New mode iterator.
18181 (VI1, VI8): Ditto.
18182 (AVXMODEQI, AVXMODEDI): Remove.
18183 (sse2, sse3): New mode attribute.
18184 (mov<mode>): Use V16 mode iterator.
18185 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
18186 (push<mode>1): Use V16 mode iterator.
18187 (movmisalign<mode>): Ditto.
18188 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18189 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
18190 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
18191 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
18192 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
18193 avx_movdqu<avxmodesuffix>.
18194 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
18195 *avx_movdqu<avxmodesuffix>.
18196 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
18197 avx_lddqu<avxmodesuffix>.
18198 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
18199 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
18200 avx_movnt<AVXMODEDI:mode>.
18201 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
18202 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
18203
18204 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
18205
18206 PR target/48629
18207 * haifa-sched.c (prune_ready_list, schedule_block): Use
18208 sched_pressure_p rather than flag_sched_pressure.
18209
18210 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
18211
18212 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18213 cgraph_get_node instead of cgraph_get_create_node.
18214
18215 2011-04-15 Jakub Jelinek <jakub@redhat.com>
18216
18217 * cfgexpand.c (expand_debug_expr): Use
18218 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
18219
18220 2011-04-15 Michael Matz <matz@suse.de>
18221
18222 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
18223 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
18224 * function.c (gimplify_parameters): Ditto.
18225 * gimplify.c (gimplify_vla_decl): Ditto.
18226
18227 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
18228 (gimple_call_set_alloca_for_var): New inline function.
18229 (gimple_call_alloca_for_var_p): Ditto.
18230 * gimple.c (gimple_build_call_from_tree): Remember
18231 CALL_ALLOCA_FOR_VAR_P state.
18232 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
18233
18234 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
18235 calls if they were for VLA objects.
18236
18237 2011-04-15 Martin Jambor <mjambor@suse.cz>
18238
18239 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
18240 of ADR_EXPRs.
18241
18242 2011-04-15 Martin Jambor <mjambor@suse.cz>
18243
18244 PR middle-end/48601
18245 * tree-emutls.c (lower_emutls_function_body): Call
18246 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
18247 result is non-NULL.
18248
18249 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
18250
18251 * c-decl.c (detect_field_duplicates): Call
18252 objc_detect_field_duplicates instead of objc_get_interface_ivars.
18253
18254 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
18255
18256 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
18257 * gimple.c (gimple_asm_clobbers_memory_p): Define.
18258 * ipa-pure-const.c (check_stmt): Call it.
18259 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
18260
18261 2011-04-15 Richard Guenther <rguenther@suse.de>
18262
18263 PR tree-optimization/48290
18264 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
18265 Properly decide inhibiting propagation based on the valueized
18266 operand. Do loop-closed SSA form preserving here ...
18267 (init_copy_prop): ... not here.
18268
18269 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
18270
18271 PR target/48612
18272 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
18273 (*ieee_smax<mode>3): Likewise.
18274
18275 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18276
18277 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
18278 Replace match_operand with match_dup for the third operand in
18279 these expanders.
18280
18281 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18282
18283 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
18284 to track processing of conditionals. Update all callers.
18285 (try_combine, simplify_if_then_else): Update.
18286
18287 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
18288
18289 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
18290 -fsched-pressure.
18291
18292 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
18293
18294 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
18295 instead of match_operand for operand 3.
18296
18297 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
18298
18299 * recog.h (insn_operand_data): Add an "allows_mem" field.
18300 * genoutput.c (output_operand_data): Initialize it.
18301 * optabs.c (maybe_legitimize_operand_same_code): New function.
18302 (maybe_legitimize_operand): Use it when matching the original
18303 op->value.
18304
18305 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18306
18307 * gimplify.c: Fix issues in comments throughout.
18308 (voidify_wrapper_expr): Fix long line.
18309 (build_stack_save_restore): Likewise.
18310 (gimplify_loop_expr): Likewise.
18311 (gimplify_compound_lval): Likewise.
18312 (gimplify_init_ctor_eval): Likewise.
18313 (gimplify_modify_expr_rhs): Likewise.
18314 (omp_notice_threadprivate_variable): Likewise.
18315
18316 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
18317
18318 * cfgexpand.c (expand_call_stmt): Convert the function type to the
18319 original one if this is not a builtin function.
18320
18321 2011-04-14 Jakub Jelinek <jakub@redhat.com>
18322
18323 PR target/48605
18324 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
18325 offset it as needed based on top 2 bits in operands[3], change
18326 MEM mode to SFmode and mask those 2 bits away from operands[3].
18327
18328 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18329
18330 * c-parser.c (c_parser_objc_protocol_definition): Updated for
18331 change from objc_declare_protocols() to objc_declare_protocol().
18332
18333 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
18334
18335 * config/i386/sse.md (sse4_1): New mode attribute.
18336 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
18337 avx_blend<ssemodesuffix><avxmodesuffix> and
18338 sse4_1_blend<ssemodesuffix> using VF mode iterator.
18339 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
18340 avx_blendv<ssemodesuffix><avxmodesuffix> and
18341 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
18342 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
18343 avx_dp<ssemodesuffix><avxmodesuffix> and
18344 sse4_1_dp<ssemodesuffix> using VF mode iterator.
18345 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
18346 (sse4_1_packusdw): Merge with *avx_packusdw.
18347 (sse4_1_pblendvb): Merge with *avx_pblendvb.
18348 (sse4_1_pblendw): Merge with *avx_pblendw.
18349 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
18350 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
18351 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
18352 VF mode iterator.
18353 (sse4_1_round<ssescalarmodesuffix>): Merge with
18354 *avx_round<ssescalarmodesuffix>.
18355 (aesenc): Merge with *avx_aesenc.
18356 (aesenclast): Merge with *avx_aesenclast.
18357 (aesdec): Merge with *avx_aesdec.
18358 (aesdeclast): Merge with *avx_aesdeclast.
18359 (pclmulqdq): Merge with *pclmulqdq.
18360 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
18361 New predicate.
18362 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
18363
18364 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
18365
18366 PR middle-end/48608
18367 * cfgexpand.c (get_decl_align_unit): Renamed to ...
18368 (align_local_variable): This. Update DECL_ALIGN.
18369 (add_stack_var): Updated.
18370 (expand_one_stack_var): Likewise.
18371
18372 2011-04-14 Richard Guenther <rguenther@suse.de>
18373
18374 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
18375 Remove.
18376 (dse_initialize_block_local_data, dse_leave_block,
18377 record_voperand_set, get_stmt_uid): Likewise.
18378 (dse_possible_dead_store_p): Allow any kind of killing stmt.
18379 (dse_optimize_stmt): Remove voperand set handling code.
18380 Simplify and improve to handle any kind of killing stmt.
18381 (dse_record_phi): Remove.
18382 (dse_enter_block): Simplify.
18383 (tree_ssa_dse): Likewise.
18384 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
18385
18386 2011-04-14 Jan Hubicka <jh@suse.cz>
18387
18388 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
18389 * cgraph.h (struct inline_summary): Move to ipa-inline.h
18390 (cgraph_local_info): Remove inline_summary.
18391 * ipa-cp.c: Include ipa-inline.h.
18392 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
18393 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
18394 accesor.
18395 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
18396 (input_overwrite_node): Do not set inline summary.
18397 (input_node): Do not stream inline summary.
18398 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
18399 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
18400 growth; we do not have inline parameters computed for that anyway.
18401 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
18402 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
18403 (inline_summary_t): New type and VECtor.
18404 (debug_inline_summary, dump_inline_summaries): Declare.
18405 (inline_summary): Use VOCtor.
18406 (estimate_edge_growth): Kill hack computing call stmt size directly.
18407 * lto-section-in.c (lto_section_name): Add inline section.
18408 * ipa-inline-analysis.c: Include lto-streamer.h
18409 (node_removal_hook_holder, node_duplication_hook_holder): New holders
18410 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
18411 (inline_summary_vec): Define.
18412 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
18413 dump_inline_summaries): New functions.
18414 (estimate_function_body_sizes): Properly compute size/time of outgoing
18415 calls.
18416 (compute_inline_parameters): Alloc inline_summary; do not compute
18417 size/time of incomming calls.
18418 (estimate_edge_time): Avoid missing time summary hack.
18419 (inline_read_summary): Read inline summary info.
18420 (inline_write_summary): Write inline summary info.
18421 (inline_free_summary): Free all hooks and inline summary vector.
18422 * lto-streamer.h: Add LTO_section_inline_summary section.
18423 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
18424 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
18425
18426 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18427
18428 * tree-vectorizer.h (vect_strided_store_supported): Add a
18429 HOST_WIDE_INT argument.
18430 (vect_strided_load_supported): Likewise.
18431 (vect_permute_store_chain): Return void.
18432 (vect_transform_strided_load): Likewise.
18433 (vect_permute_load_chain): Delete.
18434 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
18435 count argument. Check that the count is a power of two.
18436 (vect_strided_load_supported): Likewise.
18437 (vect_permute_store_chain): Return void. Update after above changes.
18438 Assert that the access is supported.
18439 (vect_permute_load_chain): Likewise.
18440 (vect_transform_strided_load): Return void.
18441 * tree-vect-stmts.c (vectorizable_store): Update calls after
18442 above interface changes.
18443 (vectorizable_load): Likewise.
18444 (vect_analyze_stmt): Don't check for strided powers of two here.
18445
18446 2011-04-14 Richard Guenther <rguenther@suse.de>
18447
18448 PR tree-optimization/48590
18449 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18450 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18451 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
18452 BUILT_IN_STACK_SAVE.
18453 * tree-ssa-dce.c (propagate_necessity): Handle
18454 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
18455
18456 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
18457
18458 * c-parser.c (c_parser_objc_class_declaration): Updated call to
18459 objc_declare_class.
18460
18461 2011-04-14 Richard Guenther <rguenther@suse.de>
18462
18463 * tree.h (get_object_alignment_1): Declare.
18464 * builtins.c (get_object_alignment_1): Split out worker from ...
18465 (get_object_alignment): ... here.
18466 * fold-const.c (get_pointer_modulus_and_residue): Use
18467 get_object_alignment_1.
18468
18469 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18470
18471 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
18472 type parameter.
18473 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
18474 parameter. Generalise code to handle arrays as well as vectors.
18475 (vect_setup_realignment): Update accordingly.
18476 * tree-vect-stmts.c (vectorizable_store): Likewise.
18477 (vectorizable_load): Likewise.
18478
18479 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18480
18481 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
18482 within the per-copy loop.
18483
18484 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18485
18486 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
18487 in the dump file.
18488
18489 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
18490
18491 * doc/options.texi (Negative): Explicitly mention that the
18492 Negative chain must be circular.
18493
18494 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
18495
18496 * function.h (block_chainon): Declare.
18497 * function.c (block_chainon): Define.
18498
18499 2011-04-14 Anatoly Sokolov <aesok@post.ru>
18500 Eric Weddington <eric.weddington@atmel.com>
18501 Georg-Johann Lay <avr@gjlay.de>
18502
18503 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
18504 New Includes
18505 (avr_init_builtins, avr_expand_builtin,
18506 avr_expand_delay_cycles, avr_expand_unop_builtin,
18507 avr_expand_binop_builtin ): New functions.
18508 (avr_builtin_id): New enum
18509 (struct avr_builtin_description): New struct
18510 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
18511 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
18512
18513 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
18514 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
18515 UNSPECV_DELAY_CYCLES): new enumeration values
18516 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
18517 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
18518 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
18519 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
18520 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
18521 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
18522 "fmulsu"): New insns
18523
18524 * config/avr/avr-c.c: fix line endings
18525 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
18526 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
18527 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
18528 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
18529 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
18530
18531 * doc/extend.texi (AVR Built-in Functions): New node
18532 (Target Builtins): Add documentation of AVR
18533 built-in functions.
18534
18535 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
18536
18537 PR target/44643
18538 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
18539 alone. Error if non-const data has attribute progmem.
18540
18541 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18542
18543 * tree.h (struct tree_constructor): Include tree_typed instead of
18544 tree_common.
18545 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
18546 TS_TYPED instead of TS_COMMON.
18547
18548 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18549
18550 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
18551 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
18552 (sse2_psadbw): Merge with *avx_psadbw.
18553 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
18554 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
18555 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
18556 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
18557 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
18558 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
18559 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
18560 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
18561 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
18562 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
18563 (ssse3_palignrti): Merge with *avx_palignrti.
18564
18565 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18566
18567 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
18568 * tree-ssanames.c (fini_ssanames): VEC_free it.
18569 (make_ssa_name_fn): Update for VECness of free_ssanames.
18570 (release_ssa_name, release_dead_ssa_names): Likewise.
18571 * tree.h (struct tree_ssa_name): Include tree_typed instead of
18572 tree_common.
18573 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
18574 TS_TYPED instead of TS_COMMON.
18575
18576 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18577
18578 * postreload-gcse.c (gcse_after_reload_main): Add calls to
18579 statistics_counter_event.
18580 * tree-ssa-copyrename.c (stats): Define.
18581 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
18582 statistics_counter_event.
18583 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
18584 (bswap_stats, widen_mul_stats): Define.
18585 (insert_reciprocals): Increment rdivs_inserted.
18586 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
18587 rfuncs_inserted. Add calls to statistics_counter_event.
18588 (execute_cse_sincos_1): Increment inserted.
18589 (execute_cse_sincos): Zeroize sincos_stats. Add call to
18590 statistics_counter_event.
18591 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
18592 of bswap_stats. Add calls to statistics_counter_event.
18593 (convert_mult_to_widen): Increment widen_mults_inserted.
18594 (convert_plusminus_to_widen): Increment maccs_inserted.
18595 (convert_mult_to_fma): Increment fmas_inserted.
18596 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
18597 calls to statistics_counter_event.
18598
18599 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
18600
18601 PR rtl-optimization/48455
18602 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
18603 `temp_costs->mem_cost'.
18604
18605 2011-04-13 Jan Hubicka <jh@suse.cz>
18606
18607 * ipa-inline.h: New file.
18608 * ipa-inline-analysis.c: New file. Broken out of ...
18609 * ipa-inline.c: ... this file; update toplevel comment;
18610 include ipa-inline.h
18611 (inline_summary): Move to ipa-inline.h
18612 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
18613 ipa-inline-analysis.c.
18614 (cgraph_estimate_time_after_inlining): Rename to
18615 estiamte_time_after_inlining; move to ipa-inline-analysis.c
18616 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
18617 to estimate_edge_growth.
18618 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
18619 rename to estimate_size_after_inlining.
18620 (cgraph_mark_inline_edge): Update for new naming convention.
18621 (cgraph_check_inline_limits): Likewise.
18622 (cgraph_edge_badness): Likewise.
18623 (cgraph_decide_recursive_inlining): Likewise.
18624 (cgraph_decide_inlining_of_small_functions): Likewise.
18625 (cgraph_decide_inlining_incrementally): Likewise.
18626 (cgraph_estimate_growth): Rename to estimate_growth; move to
18627 ipa-inline-analysis.c.
18628 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
18629 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
18630 (compute_inline_parameters): Likewise.
18631 (compute_inline_parameters_for_current): Likewise.
18632 (pass_inline_parameters): Likewise.
18633 (inline_indirect_intraprocedural_analysis): Likewise.
18634 (analyze_function): Rename to inline_analyze_function; likewise.
18635 (add_new_function): Move to ipa-inline-analysis.c.
18636 (inline_generate_summary): Likewise.
18637 (inline_read_summary): Likewise.
18638 (inline_write_summary): Likewise.
18639 * Makefile.in (ipa-inline-analysis.c): New file.
18640
18641 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18642
18643 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
18644 * configure: Regenerate.
18645
18646 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
18647
18648 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
18649 instead of tree_common.
18650 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
18651 Likewise.
18652 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
18653 TS_TYPED rather than TS_COMMON.
18654 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
18655
18656 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
18657
18658 PR target/45263
18659 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
18660 r20 around calls of __tablejump_elpm__
18661
18662 2011-04-13 Jakub Jelinek <jakub@redhat.com>
18663
18664 PR middle-end/48591
18665 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
18666 NULL.
18667 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
18668
18669 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
18670
18671 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
18672 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
18673 (cfi_vec): New typedef.
18674 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
18675 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
18676 (cie_cfi_vec): New static variable.
18677 (cie_cfi_head): Delete.
18678 (add_cfi): Accept a cfi_vec * as first argument. All callers and
18679 declaration changed. Use vector rather than list operations.
18680 (new_cfi): Don't initialize the dw_cfi_next field.
18681 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
18682 rather than list operations.
18683 (lookup_cfa): Use vector rather than list operations.
18684 (output_cfis): New argument upto. Accept a cfi_vec rather than
18685 a dw_cfi_ref list head as argument. All callers changed.
18686 Iterate over the vector using upto as a maximum index.
18687 (output_all_cfis): New static function.
18688 (output_fde): Use vector rather than list operations. Use the
18689 new upto argument for output_cfis rather than manipulating a
18690 list.
18691 (dwarf2out_begin_prologue): Change initializations to match
18692 new struct members.
18693 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
18694 from the vector length rather than searching for the end of a list.
18695 Use output_all_cfis.
18696 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
18697
18698 2011-04-13 Nick Clifton <nickc@redhat.com>
18699
18700 * config/rx/rx.md (movmemsi): Do not use this pattern when
18701 volatile pointers are involved.
18702
18703 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
18704
18705 * config/i386/sse.md (pinsrbits): Remove.
18706 (sse2_packsswb): Merge with *avx_packsswb.
18707 (sse2_packssdw): Merge with *avx_packssdw.
18708 (sse2_packuswb): Merge with *avx_packuswb.
18709 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
18710 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
18711 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
18712 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
18713 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
18714 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
18715 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
18716 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
18717 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
18718 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
18719 (sse2_loadld): Merge with *avx_loadld.
18720 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
18721 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
18722 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
18723 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
18724 (vec_concatv2di): Merge with *vec_concatv2di_avx.
18725
18726 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
18727
18728 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
18729 calling TREE_CHAIN.
18730 * print-tree.c (print_node): Likewise.
18731 * tree-inline.c (copy_tree_r): Likewise.
18732 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
18733 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
18734 instead of TS_COMMON.
18735 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
18736 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
18737 (copy_node_stat): Zero TREE_CHAIN only if necessary.
18738 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
18739 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
18740 ...and these...
18741 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
18742 * tree.h: ...here.
18743 (TREE_CHAIN): Check for a TS_COMMON structure.
18744 (TREE_TYPE): Check for a TS_TYPED structure.
18745
18746 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
18747
18748 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
18749 cgraph_get_create_node instead of cgraph_node.
18750
18751 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18752
18753 * c-parser.c (c_parser_initelt): Updated call to
18754 objc_build_message_expr.
18755 (c_parser_postfix_expression): Likewise.
18756
18757 2011-04-12 Kai Tietz <ktietz@redhat.com>
18758
18759 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
18760 MASK_MS_BITFIELD_LAYOUT bit.
18761
18762 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18763
18764 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
18765 assert it is always true.
18766 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
18767 moves.
18768
18769 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
18770
18771 * c-parser.c (c_lex_one_token): Rewritten conditional used when
18772 compiling Objective-C to be more efficient.
18773
18774 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
18775
18776 * opts-common.c (decode_cmdline_options_to_array): Remove variable
18777 argv_copied.
18778
18779 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18780
18781 * recog.h, genoutput.c, optabs.c: Revert last patch.
18782
18783 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18784
18785 PR target/48090
18786 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
18787
18788 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18789
18790 * recog.h (insn_operand_data): Add an "allows_mem" field.
18791 * genoutput.c (output_operand_data): Initialize it.
18792 * optabs.c (maybe_legitimize_operand_same_code): New function.
18793 (maybe_legitimize_operand): Use it when matching the original
18794 op->value.
18795
18796 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18797
18798 * genpreds.c (process_define_predicate): Move most processing
18799 to gensupport.c. Continue to validate the expression.
18800 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
18801 (process_define_predicate): Move processing to gensupport.c.
18802 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
18803 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
18804 (compute_predicate_codes): Moved from genrecog.c. Add lineno
18805 argument.
18806 (valid_predicate_name_p): New function, split out from old
18807 genpreds.c:process_define_predicate.
18808 (process_define_predicate): New function, combining code from
18809 old genpreds.c and genrecog.c functions.
18810 (process_rtx): Call it for DEFINE_PREDICATE and
18811 DEFINE_SPECIAL_PREDICATE.
18812
18813 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
18814
18815 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
18816 size of a '%A' memory reference.
18817 (T_DREG, T_QREG): New neon_builtin_type_bits.
18818 (arm_init_neon_builtins): Assert that the load and store operands
18819 are neon_struct_operands.
18820 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
18821 (NEON_ARG_MEMORY): New builtin_arg.
18822 (neon_dereference_pointer): New function.
18823 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
18824 Handle NEON_ARG_MEMORY.
18825 (arm_expand_neon_builtin): Update after above interface changes.
18826 Use NEON_ARG_MEMORY for loads and stores.
18827 * config/arm/predicates.md (neon_struct_operand): New predicate.
18828 * config/arm/iterators.md (V_two_elem): Tweak formatting.
18829 (V_three_elem): Use BLKmode for accesses that have no associated mode.
18830 (V_four_elem): Tweak formatting.
18831 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
18832 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
18833 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
18834 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
18835 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
18836 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
18837 (neon_vst4<mode>): Replace pointer operand with a memory operand.
18838 Use %A in the output template.
18839 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
18840 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
18841 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
18842 the width of the memory access. Remove post-increment.
18843 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
18844
18845 2011-04-12 Nick Clifton <nickc@redhat.com>
18846
18847 * config/v850/v850.c (expand_prologue): Do not use the CALLT
18848 instruction for interrupt handlers if the target is the basic V850
18849 architecture.
18850 (expand_epilogue): Likewise.
18851
18852 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18853
18854 PR rtl-optimization/48549
18855 * combine.c (propagate_for_debug): Also stop after BB_END of
18856 this_basic_block. Process LAST and just stop processing after it.
18857 (combine_instructions): If last_combined_insn has been deleted,
18858 set last_combined_insn to its PREV_INSN.
18859
18860 2011-04-12 Richard Guenther <rguenther@suse.de>
18861
18862 PR tree-optimization/46076
18863 * gimple.h (struct gimple_statement_call): Add fntype field.
18864 (gimple_call_fntype): Adjust.
18865 (gimple_call_set_fntype): New function.
18866 * gimple.c (gimple_build_call_1): Set the call function type.
18867 * gimplify.c (gimplify_call_expr): Preserve the function
18868 type the frontend used for the call.
18869 (gimplify_modify_expr): Likewise.
18870 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
18871 function type.
18872 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
18873 function type.
18874 * tree-ssa.c (useless_type_conversion_p): Function pointer
18875 conversions are useless.
18876
18877 2011-04-12 Martin Jambor <mjambor@suse.cz>
18878
18879 * cgraph.h (cgraph_node): Remove function declaration.
18880 (cgraph_create_node): Declare.
18881 (cgraph_get_create_node): Likewise.
18882 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
18883 Updated all callers.
18884 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
18885 the decl does not already exist. Call cgraph_get_create_node instead
18886 of cgraph_node.
18887 (cgraph_get_create_node): New function.
18888 (cgraph_same_body_alias): Update comment.
18889 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
18890 assert it does not return NULL.
18891 (cgraph_update_edges_for_call_stmt): Likewise.
18892 (cgraph_clone_edge): Likewise.
18893 (cgraph_create_virtual_clone): Likewise.
18894 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
18895 instead of cgraph_node.
18896 (cgraph_add_new_function): Call cgraph_create_node or
18897 cgraph_get_create_node instead of cgraph_node.
18898 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
18899 instead of cgraph_node.
18900 (record_eh_tables): Likewise.
18901 (mark_address): Likewise.
18902 (mark_load): Likewise.
18903 (build_cgraph_edges): Call cgraph_get_create_node instead
18904 of cgraph_node.
18905 (rebuild_cgraph_edges): Likewise.
18906 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
18907 instead of cgraph_node.
18908 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
18909 cgraph_node.
18910 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
18911 cgraph_create_node instead of cgraph_node.
18912 * c-decl.c (finish_function): Call cgraph_get_create_node instead
18913 of cgraph_node.
18914 * lto-cgraph.c (input_node): Likewise.
18915 * lto-streamer-in.c (input_function): Likewise.
18916 * varasm.c (mark_decl_referenced): Likewise.
18917 (assemble_alias): Likewise.
18918
18919 2011-04-12 Martin Jambor <mjambor@suse.cz>
18920
18921 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
18922 instead of cgraph_node and assert it does not return NULL.
18923 * lto-streamer-in.c (lto_read_body): Likewise.
18924 * omp-low.c (new_omp_context): Likewise.
18925 (create_task_copyfn): Likewise.
18926 * tree-emutls.c (lower_emutls_function_body): Likewise.
18927 * matrix-reorg.c (transform_allocation_sites): Likewise.
18928
18929 2011-04-12 Jakub Jelinek <jakub@redhat.com>
18930
18931 PR c/48552
18932 * c-typeck.c (build_asm_expr): Error out on attempts to use
18933 void type outputs or inputs for constraints that allow reg or
18934 don't allow memory.
18935
18936 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
18937 Richard Earnshaw <rearnsha@arm.com>
18938
18939 PR target/48250
18940 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
18941 to use sign-magnitude offsets. Reject unsupported unaligned
18942 cases. Add detailed description in comments.
18943 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
18944 condition from TARGET_32BIT to TARGET_ARM.
18945
18946 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
18947
18948 * tree.h (struct typed_tree): New.
18949 (struct tree_common): Include it instead of tree_base.
18950 (TREE_TYPE): Update for new location of type field.
18951 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
18952 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
18953 (union tree_node): Add typed field.
18954 * treestruct.def (TS_TYPED): New.
18955 * lto-streamer.c (check_handled_ts_structures): Handle it.
18956 * tree.c (MARK_TS_TYPED): New macro.
18957 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
18958
18959 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
18960
18961 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
18962 (force_nonfallthru): Do not alter the loop nest if no basic block
18963 was created.
18964
18965 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
18966
18967 * config/i386/sse.md (VI): New mode iterator.
18968 (SSEMODEI): Remove.
18969 (AVX256MODEI): Ditto.
18970 (AVXMODEF4P): Ditto.
18971 (avxvecpsmode): Ditto.
18972 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
18973 (sse2_andnot<mode>3): New expander.
18974 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
18975 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
18976 (<any_logic:code><mode>3): Use VI mode iterator.
18977 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
18978 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
18979 (*andnottf3): Handle AVX three-operand constraints.
18980 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
18981
18982 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18983 Robert Millan <rmh@gnu.org>
18984
18985 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
18986 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
18987 GNU_USER_DYNAMIC_LINKER64): Define.
18988 (REG_NAME): Don't undefine.
18989 (MD_UNWIND_SUPPORT): Undefine.
18990 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
18991 (REG_NAME): Don't undefine.
18992 (MD_UNWIND_SUPPORT): Undefine.
18993 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
18994
18995 2011-04-11 Joseph Myers <joseph@codesourcery.com>
18996
18997 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
18998 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
18999
19000 2011-04-11 Xinliang David Li <davidxl@google.com>
19001
19002 * value-profile.c (check_ic_target): New function.
19003 (gimple_ic_transform): Sanity check indirect call target.
19004 * gimple-low.c (gimple_check_call_args): Interface change.
19005 (gimple_check_call_matching_types): New function.
19006 * tree-inline.c (tree_can_inline_p): Call new function.
19007
19008 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
19009
19010 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
19011 tree-pretty-print.h & realmpfr.h.
19012
19013 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
19014
19015 PR middle-end/48464
19016 * ira.c (setup_pressure_classes): Fix typo in loop condition.
19017 (setup_allocno_and_important_classes): Ditto.
19018
19019 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19020
19021 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
19022 GNU_USER_DYNAMIC_LINKER.
19023 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
19024 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19025 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
19026 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19027 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19028 GNU_USER_TARGET_OS_CPP_BUILTINS.
19029 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
19030 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19031 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19032 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19033 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
19034 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19035 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19036 GNU_USER_TARGET_OS_CPP_BUILTINS.
19037 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19038 GNU_USER_DYNAMIC_LINKER.
19039 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19040 GNU_USER_TARGET_OS_CPP_BUILTINS.
19041 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
19042 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19043 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
19044 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19045 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
19046 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
19047 GNU_USER_DYNAMIC_LINKER64): Remove.
19048 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
19049 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19050 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19051 GNU_USER_DYNAMIC_LINKER.
19052 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19053 GNU_USER_TARGET_OS_CPP_BUILTINS.
19054 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19055 GNU_USER_TARGET_OS_CPP_BUILTINS.
19056 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
19057 to GNU_USER_TARGET_OS_CPP_BUILTINS.
19058 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
19059 GNU_USER_TARGET_OS_CPP_BUILTINS.
19060 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
19061 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
19062 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19063 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
19064 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19065 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19066 GNU_USER_DYNAMIC_LINKER.
19067 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
19068 GNU_USER_TARGET_OS_CPP_BUILTINS.
19069 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
19070 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19071 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19072 GNU_USER_DYNAMIC_LINKER.
19073 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19074 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19075 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
19076 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19077 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19078 GNU_USER_DYNAMIC_LINKER.
19079 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
19080 GNU_USER_DYNAMIC_LINKERN32.
19081 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
19082 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
19083 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
19084 GNU_USER_DYNAMIC_LINKER32.
19085 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
19086 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19087 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19088 GNU_USER_DYNAMIC_LINKER.
19089 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
19090 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19091 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
19092 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19093 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19094 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
19095 GNU_USER_DYNAMIC_LINKER32.
19096 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
19097 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
19098 GNU_USER_DYNAMIC_LINKER.
19099 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
19100 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19101 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19102 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
19103 GNU_USER_DYNAMIC_LINKER64.
19104 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
19105 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19106 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19107 GNU_USER_DYNAMIC_LINKER.
19108 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
19109 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19110 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
19111 GNU_USER_DYNAMIC_LINKER.
19112 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
19113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19114 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
19115 GNU_USER_DYNAMIC_LINKER32.
19116 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19117 GNU_USER_DYNAMIC_LINKER64.
19118 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
19119 GNU_USER_DYNAMIC_LINKER64.
19120 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
19121 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19122 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
19123 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
19124 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
19125
19126 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19127
19128 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
19129 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
19130 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
19131 GNU_USER_DYNAMIC_LINKER.
19132 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19133 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
19134 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
19135 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
19136 GNU_USER_DYNAMIC_LINKER64.
19137 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
19138 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
19139 GNU_USER_LINK_EMULATION.
19140 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
19141 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
19142 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
19143 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
19144 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
19145 CPP_SPEC, CC1_SPEC): Remove.
19146 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
19147 (GNU_USER_DYNAMIC_LINKER): Define.
19148 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
19149 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
19150 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
19151 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
19152 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
19153 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
19154 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19155 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
19156 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
19157 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
19158 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
19159 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
19160 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
19161 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
19162 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
19163 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
19164 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19165 GNU_USER_DYNAMIC_LINKER.
19166 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19167 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19168 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19169 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19170 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
19171 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
19172 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
19173 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
19174 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
19175 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
19176
19177 2011-04-11 Kai Tietz <ktietz@redhat.com>
19178
19179 PR target/9601
19180 PR target/11772
19181 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
19182 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
19183 comment.
19184 (ix86_is_msabi_thiscall): Removed.
19185 (ix86_is_type_thiscall): Likewise.
19186 (ix86_get_callcvt): New function.
19187 (ix86_comp_type_attributes): Simplify check.
19188 (ix86_function_regparm): Use ix86_get_callcvt for calling
19189 convention attribute checks.
19190 (ix86_return_pops_args): Likewise.
19191 (ix86_static_chain): Likewise.
19192 (x86_this_parameter): Likewise.
19193 (x86_output_mi_thunk): Likewise.
19194 (ix86_function_type_abi): Optimize check for types without attributes.
19195 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
19196 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
19197 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
19198 by flag-values.
19199 (IX86_BASE_CALLCVT): Helper macro.
19200 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
19201 Use ix86_get_callcvt for calling convention attribute checks and avoid
19202 symbol-decoration for stdcall in TARGET_RTD case.
19203 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
19204 Likewise.
19205 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
19206 for declaration.
19207
19208 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
19209
19210 * config/i386/sse.md (VI_128): New mode iterator.
19211 (VI12_128): Rename from SSEMODE12.
19212 (VI14_128): Rename from SSEMODE14.
19213 (VI124_128): New mode iterator.
19214 (VI24_128): Rename from SSEMODE248.
19215 (VI248_128): Rename from SSEMODE248.
19216 (SSEMODE124C8): Remove.
19217 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19218 (*sse2_<plusminus_insn><mode>3): Merge with
19219 *avx_<plusminus_insn><mode>3.
19220 (*mulv8hi3): Merge with *avx_mulv8hi3.
19221 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
19222 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
19223 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
19224 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
19225 (ashr<mode>3): Merge with *avx_ashr<mode>3.
19226 (lshr<mode>3): Merge with *avx_lshr<mode>3.
19227 (ashl<mode>3): Merge with *avx_ashl<mode>3.
19228 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
19229 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
19230 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19231 (*<smaxmin:code>v8hi3): Ditto.
19232 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
19233 (*<smaxmin:code>v16qi3): Ditto.
19234 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
19235 (*sse2_eq<mode>3): Ditto.
19236 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
19237 (*sse2_gt<mode>3): Ditto.
19238 (vcondv2di): Split out of vcond<mode>.
19239 (vconduv2di): Split out of vcondu<mode>.
19240
19241 2011-04-11 Richard Guenther <rguenther@suse.de>
19242
19243 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
19244 before calling tree_low_cst.
19245
19246 2011-04-11 Richard Guenther <rguenther@suse.de>
19247
19248 * stor-layout.c (layout_type): Compute all array index size operations
19249 in the original type.
19250 (initialize_sizetypes): Add comment.
19251 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
19252
19253 2011-04-11 Joseph Myers <joseph@codesourcery.com>
19254
19255 * common.opt (Tbss=, Tdata=, Ttext=): New options.
19256
19257 2011-04-11 Martin Jambor <mjambor@suse.cz>
19258
19259 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
19260 of cgraph_node, handle NULL return value.
19261 (cgraph_global_info): Likewise.
19262 (cgraph_rtl_info): Likewise.
19263 * tree-inline.c (estimate_num_insns): Likewise.
19264 * gimplify.c (unshare_body): Likewise.
19265 (unvisit_body): Likewise.
19266 (gimplify_body): Likewise.
19267 * predict.c (optimize_function_for_size_p): Likewise.
19268 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19269 (call_may_clobber_ref_p_1): Likewise.
19270 * varasm.c (function_section_1): Likewise.
19271 (assemble_start_function): Likewise.
19272
19273 2011-04-11 Martin Jambor <mjambor@suse.cz>
19274
19275 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
19276 of cgraph_node.
19277 * final.c (rest_of_clean_state): Likewise.
19278 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
19279 * passes.c (pass_init_dump_file): Likewise.
19280 (execute_all_ipa_transforms): Likewise.
19281 (function_called_by_processed_nodes_p): Likewise.
19282 * predict.c (maybe_hot_frequency_p): Likewise.
19283 (probably_never_executed_bb_p): Likewise.
19284 (compute_function_frequency): Likewise.
19285 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
19286 (unnest_nesting_tree_1): Likewise.
19287 (lower_nested_functions): Likewise.
19288 * tree-optimize.c (execute_fixup_cfg): Likewise.
19289 (tree_rest_of_compilation): Likewise.
19290 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
19291 * tree-sra.c (ipa_early_sra): Likewise.
19292 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
19293 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
19294 * ipa.c (record_cdtor_fn): Likewise.
19295 * ipa-inline.c (cgraph_early_inlining): Likewise.
19296 (compute_inline_parameters_for_current): Likewise.
19297 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19298 * ipa-pure-const.c (local_pure_const): Likewise.
19299 * ipa-split.c (split_function): Likewise.
19300 (execute_split_functions): Likewise.
19301 * cgraphbuild.c (build_cgraph_edges): Likewise.
19302 (rebuild_cgraph_edges): Likewise.
19303 (cgraph_rebuild_references): Likewise.
19304 (remove_cgraph_callee_edges): Likewise.
19305 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
19306 (verify_cgraph_node): Likewise.
19307 (cgraph_analyze_functions): Likewise.
19308 (cgraph_preserve_function_body_p): Likewise.
19309 (save_inline_function_body): Likewise.
19310 (save_inline_function_body): Likewise.
19311 * tree-inline.c (copy_bb): Likewise.
19312 (optimize_inline_calls): Likewise.
19313
19314 2011-04-11 Martin Jambor <mjambor@suse.cz>
19315
19316 PR tree-optimization/48195
19317 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
19318 ipa_check_create_edge_args.
19319 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
19320 ipa_check_create_edge_args.
19321 * ipa-inline.c (inline_generate_summary): Do not call
19322 ipa_check_create_node_params and ipa_check_create_edge_args.
19323 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
19324 ipa_check_create_edge_args.
19325
19326 2011-04-09 Anatoly Sokolov <aesok@post.ru>
19327
19328 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
19329 instead of loop.
19330 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
19331 * function.c (record_hard_reg_sets): Likewise.
19332 * ira.c (compute_regs_asm_clobbered): Likewise.
19333 * sched-deps.c (sched_analyze_1): Likewise.
19334 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
19335
19336 2011-04-09 Xinliang David Li <davidxl@google.com>
19337
19338 PR tree-optimization/PR48484
19339 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
19340 has_valid_pred lazily
19341
19342 2011-04-09 Duncan Sands <baldrick@free.fr>
19343
19344 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
19345
19346 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
19347
19348 * combine.c (combine_validate_cost): Adjust comments. Set registered
19349 cost of I0 to zero at the end, if any.
19350
19351 2011-04-08 Xinliang David Li <davidxl@google.com>
19352
19353 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
19354 to insane profile data.
19355
19356 2011-04-08 Xinliang David Li <davidxl@google.com>
19357
19358 * ipa-cp.c (ipcp_update_profiling): Correct
19359 negative scale factor due to insane profile data.
19360
19361 2011-04-08 Xinliang David Li <davidxl@google.com>
19362
19363 * final.c (dump_basic_block_info): New function.
19364 (final): Dump basic block.
19365 (final_scan_insn): Remove old dump.
19366
19367 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
19368
19369 PR target/47829
19370 * config.gcc (i386-*-freebsd): Disable unwind table generation for
19371 crtbegin/crtend.
19372
19373 2011-04-08 Michael Matz <matz@suse.de>
19374
19375 PR middle-end/48389
19376 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
19377 functions.
19378 (rebuild_jump_labels): Call rebuild_jump_labels_1.
19379 * rtl.h (rebuild_jump_labels_chain): Declare.
19380 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
19381 insns inserted on edges.
19382
19383 2011-04-08 Joseph Myers <joseph@codesourcery.com>
19384
19385 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
19386 * config/arm/arm-arches.def: New.
19387 * config/arm/arm-opts.h: New.
19388 * config/arm/genopt.sh: New.
19389 * config/arm/arm-tables.opt: New (generated).
19390 * config/arm/arm.c (arm_handle_option, arm_target_help,
19391 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
19392 (all_architectures): Get most table contents from arm-arches.def.
19393 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
19394 arm_selected_tune here.
19395 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
19396 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
19397 (march=, mcpu=, mtune=): Use Enum and Var.
19398 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
19399 (arm.o): Update dependencies.
19400
19401 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
19402
19403 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
19404 of header_file.
19405 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
19406 (write_typed_alloc_defns): Likewise.
19407 (main): Calls write_typed_alloc_defns with output_header.
19408
19409 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
19410
19411 PR inline-asm/48435
19412 * ira-color.c (setup_profitable_hard_regs): Add comments.
19413 Don't take prohibited hard regs into account.
19414 (setup_conflict_profitable_regs): Rename to
19415 get_conflict_profitable_regs.
19416 (check_hard_reg_p): Check prohibited hard regs.
19417
19418 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
19419
19420 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
19421 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
19422 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
19423
19424 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19425
19426 PR target/48366
19427 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
19428 move from floating point to shift amount register.
19429 (emit_move_sequence): Remove secondary reload support for floating
19430 point to shift amount amount register copies.
19431 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
19432 amount register copies.
19433 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
19434 register, return false if mode isn't a scalar integer mode.
19435 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
19436
19437 2011-04-08 Richard Guenther <rguenther@suse.de>
19438
19439 * gimple.c (gimple_call_flags): Remove kludge.
19440
19441 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19442
19443 * sel-sched.c (sel_region_init): Move call to
19444 sel_setup_region_sched_flags after setup_current_loop_nest.
19445
19446 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
19447
19448 PR rtl-optimization/48272
19449 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
19450 init_insn_reg_pressure_info. Adjust a caller.
19451 * sched-int.h (init_insn_reg_pressure_info): Declare.
19452 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
19453 when sched-pressure is enabled.
19454
19455 2011-04-08 Richard Guenther <rguenther@suse.de>
19456
19457 * gimple.c (gimple_set_modified): Do not queue calls to
19458 MODIFIED_NORETURN_CALLS here ...
19459 * tree-ssa-operands.c (update_stmt_operands): ... but here.
19460
19461 2011-04-08 Richard Guenther <rguenther@suse.de>
19462
19463 PR lto/48467
19464 * toplev.c (lang_dependent_init): Do not open asm_out_file
19465 in WPA mode, nor perform debug machinery initialization.
19466 (finalize): Do not unlink asm_out_file in WPA mode.
19467
19468 2011-04-08 Richard Guenther <rguenther@suse.de>
19469
19470 * gimple.h (gimple_call_fntype): New function.
19471 (gimple_call_return_type): Use it.
19472 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
19473 * gimple-low.c (gimple_check_call_args): Likewise.
19474 * gimple.c (gimple_call_flags): Likewise.
19475 (gimple_call_arg_flags): Likewise.
19476 (gimple_call_return_flags): Likewise.
19477 * tree-cfg.c (verify_gimple_call): Likewise.
19478 (do_warn_unused_result): Likewise.
19479 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
19480 * value-prof.c (gimple_ic_transform): Fix fndecl check.
19481
19482 2011-04-08 Dmitry Melnik <dm@ispras.ru>
19483
19484 PR rtl-optimization/48235
19485 * sel-sched.c (code_motion_process_successors): Recompute the last
19486 insn in basic block if control flow changed.
19487 (code_motion_path_driver): Ditto. Recompute the first insn as well.
19488 Update condition for ilist_remove.
19489
19490 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19491
19492 PR rtl-optimization/48302
19493 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
19494 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
19495 it to record added preheader blocks.
19496 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
19497 on to sel_add_loop_preheaders.
19498 (sel_region_init): Move call to setup_current_loop_nest after
19499 sel_init_bbs.
19500
19501 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19502
19503 PR target/48273
19504 * cfgloop.h (loop_has_exit_edges): New helper.
19505 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
19506 non-clonable.
19507 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
19508 that have no exit edges.
19509
19510 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
19511
19512 PR rtl-optimization/48442
19513 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
19514 all callers. Adjust assert.
19515
19516 2011-04-08 Jakub Jelinek <jakub@redhat.com>
19517
19518 PR tree-optimization/48377
19519 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
19520 is_packed to true even for types with smaller TYPE_ALIGN than
19521 TYPE_SIZE.
19522
19523 2011-04-08 Richard Guenther <rguenther@suse.de>
19524
19525 PR bootstrap/48513
19526 * doc/tm.texi: Re-generate.
19527
19528 2011-04-08 Wei Guozhi <carrot@google.com>
19529
19530 PR target/47855
19531 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
19532 * config/arm/arm.c (arm_attr_length_push_multi): New function.
19533 * config/arm/arm.md (*push_multi): Change the length computation to
19534 call a C function.
19535
19536 2011-04-08 Anatoly Sokolov <aesok@post.ru>
19537
19538 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
19539 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
19540 * doc/tm.texi: Regenerate.
19541 * system.h (ASM_OUTPUT_BSS): Poison.
19542 * varasm.c (asm_output_bss): Remove function.
19543 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
19544
19545 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
19546 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
19547 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
19548 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19549 Likewise.
19550 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19551 Likewise.
19552 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
19553 Likewise.
19554 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
19555
19556 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19557
19558 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
19559 EnumValue lines.
19560
19561 2011-04-07 Joseph Myers <joseph@codesourcery.com>
19562
19563 * config/m68k/m68k.c (m68k_handle_option): Don't handle
19564 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
19565 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
19566 OPT_mcpu32.
19567 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19568 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
19569 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
19570 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
19571 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
19572 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
19573 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19574 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
19575 options. Don't map other m68k options manually. Don't handle
19576 old-style options as canonical.
19577 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
19578 * doc/install.texi (m68k-*-*): Document binutils version requirement.
19579
19580 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
19581
19582 * basic-block.h (force_nonfallthru): Move to...
19583 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
19584 (force_nonfallthru): ...here.
19585 * cfghooks.c (force_nonfallthru): New function.
19586 * cfgrtl.c (force_nonfallthru): Rename into...
19587 (rtl_force_nonfallthru): ...this.
19588 (commit_one_edge_insertion): Do not set AUX field.
19589 (commit_edge_insertions): Do not discover new basic blocks.
19590 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
19591 (cfg_layout_rtl_cfg_hooks): Likewise.
19592 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
19593 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
19594 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
19595
19596 2011-04-07 Anatoly Sokolov <aesok@post.ru>
19597
19598 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
19599 Remove macros.
19600
19601 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
19602
19603 * config/i386/sse.md: Update copyright year.
19604 (avxcvtvecmode): Remove.
19605 (sse_movhlps): Merge with *avx_movhlps.
19606 (sse_movlhps): Merge with *avx_movlhps.
19607 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
19608 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
19609 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
19610 (sse_loadhps): Merge with *avx_loadhps.
19611 (sse_storelps): Merge with *avx_storelps.
19612 (sse_loadlps): Merge with *avx_loadlps.
19613 (sse_movss): Merge with *avx_movss.
19614 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
19615 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
19616 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
19617 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
19618 (vec_set<mode>_0): Ditto.
19619 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
19620 (sse4_1_insertps): Merge with *avx_insertps.
19621 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
19622 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
19623 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
19624 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
19625 (sse2_storehpd): Merge with *avx_storehpd.
19626 (sse2_loadhpd): Merge with *avx_loadhpd.
19627 (sse2_loadlpd): Merge with *avx_loadlpd.
19628 (sse2_movsd): Merge with *avx_movsd.
19629 (*vec_concatv2df): Merge with *vec_concatv2df.
19630
19631 2011-04-07 Jakub Jelinek <jakub@redhat.com>
19632
19633 PR debug/48343
19634 * combine.c (combine_instructions): Add last_combined_insn,
19635 update it if insn is after it, pass it to all try_combine calls.
19636 (try_combine): Add last_combined_insn parameter, pass it instead of
19637 i3 to propagate_for_debug.
19638
19639 2011-04-07 Nick Clifton <nickc@redhat.com>
19640
19641 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
19642 to handle MDR <-> data register transfers.
19643 (movhi_internal): Likewise.
19644
19645 2011-04-07 Alan Modra <amodra@gmail.com>
19646
19647 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
19648 previous stack info.
19649
19650 2011-04-07 Tom de Vries <tom@codesourcery.com>
19651
19652 PR target/43920
19653 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
19654 flow_find_cross_jump. Swap variables to implement backward replacement.
19655 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
19656
19657 2011-04-07 Tom de Vries <tom@codesourcery.com>
19658
19659 PR target/43920
19660 * cfgcleanup.c (walk_to_nondebug_insn): New function.
19661 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
19662 and bb2.
19663 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
19664 src1 or src2. Redirect edges to the last basic block. Update
19665 frequency and count on multiple basic blocks in case of fallthru.
19666
19667 2011-04-07 Tom de Vries <tom@codesourcery.com>
19668
19669 PR target/43920
19670 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
19671 function.
19672 (old_insns_match_p): Change return type. Replace return false/true
19673 with return dir_none/dir_both. Use can_replace_by.
19674 (flow_find_cross_jump): Add dir_p parameter. Init replacement
19675 direction from dir_p. Register replacement direction in dir, last_dir
19676 and afterlast_dir. Handle new return type of old_insns_match_p using
19677 merge_dir. Return replacement direction in dir_p.
19678 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
19679 return type of old_insns_match_p.
19680 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
19681 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
19682 flow_find_cross_jump.
19683 * basic-block.h (enum replace_direction): New type.
19684 (flow_find_cross_jump): Add parameter to declaration.
19685
19686 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19687
19688 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
19689 (AVXMODEDCVTPS2DQ): Ditto.
19690 (VEC_FLOAT_MODE): Ditto.
19691 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
19692 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19693 (<any_logic:code><mode>3): Use VF mode iterator.
19694 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
19695 Use VF mode iterator.
19696 (copysign<mode>3): Use VF mode iterator.
19697 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
19698 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
19699 (*<any_logic:code><MODEF:mode>3): Merge with
19700 *avx_<any_logic:code><MODEF:mode>3.
19701 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
19702 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
19703 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
19704 (avx_cvtdq2ps<avxmodesuffix>): Remove.
19705 (sse2_cvtdq2ps): Use %v modifier.
19706 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
19707 (avx_cvtps2dq<avxmodesuffix>): Remove.
19708 (sse2_cvtps2dq): Use %v modifier.
19709 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
19710 (avx_cvttps2dq<avxmodesuffix>): Remove.
19711 (sse2_cvttps2dq): Use %v modifier.
19712 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
19713 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
19714 (sse2_cvtsd2siq): Fix insn template.
19715 (sse2_cvtsd2siq_2): Ditto.
19716 (sse2_cvttsd2siq): Ditto.
19717 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
19718 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
19719
19720 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19721
19722 * gcov-io.c: Use GCC Runtime Library Exception.
19723
19724 2011-04-06 Jakub Jelinek <jakub@redhat.com>
19725
19726 PR debug/48466
19727 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
19728 as base_reg whatever register reg has been eliminated to, instead
19729 of hardcoding STACK_POINTER_REGNUM.
19730
19731 2011-04-06 Joseph Myers <joseph@codesourcery.com>
19732
19733 * doc/tm.texi.in: Document C target hooks as separate from general
19734 target hooks.
19735 * doc/tm.texi: Regenerate.
19736 * genhooks.c (struct hook_desc): Add docname field.
19737 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
19738 docname field.
19739 (hook_array): Include c-target.def.
19740 (emit_documentation): Use docname field in output.
19741 (emit_init_macros): Take docname argument. Only emit definitions
19742 for hooks matching docname.
19743 (main): Expect additional arguments in all cases. Pass argument
19744 to emit_init_macros.
19745 * target.def: Move initial macro definitions and comments to
19746 target-hooks-macros.h.
19747 (gcc_targetcm): Move to c-family/c-target.def.
19748 * target.h (targetcm): Move declaration to c-family/c-target.h.
19749 * targhooks.c (default_handle_c_option): Move to
19750 c-family/c-opts.c.
19751 * targhooks.h (default_handle_c_option): Move declaration to
19752 c-family/c-common.h.
19753 * target-hooks-macros.h: New file.
19754 * config.gcc (target_has_targetcm): Define and use to add to
19755 c_target_objs and cxx_target_objs.
19756 * config/default-c.c: New file.
19757 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
19758 of target.h and target-def.h.
19759 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
19760 (darwin_objc_construct_string, darwin_cfstring_ref_p,
19761 darwin_check_cfstring_format_arg): Make static.
19762 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19763 TARGET_STRING_OBJECT_REF_TYPE_P,
19764 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
19765 * config/darwin-protos.h (darwin_objc_construct_string,
19766 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
19767 declare.
19768 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
19769 TARGET_STRING_OBJECT_REF_TYPE_P,
19770 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
19771 * config/t-darwin (darwin-c.o): Update dependencies.
19772 * system.h (TARGET_HAS_TARGETCM): Poison.
19773 * Makefile.in (TARGET_H): Update.
19774 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
19775 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
19776 (default-c.o): New target.
19777 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
19778 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
19779 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
19780 c-target.def.
19781 (build/genhooks.o): Update dependencies.
19782
19783 2011-04-06 Richard Guenther <rguenther@suse.de>
19784
19785 * ipa-inline.c (enum inlining_mode): Remove.
19786 (cgraph_flatten): Use some other token.
19787 (cgraph_edge_early_inlinable_p): New function, split out from ...
19788 (cgraph_perform_always_inlining): New function, split out from ...
19789 (cgraph_decide_inlining_incrementally): ... here.
19790 (cgraph_mark_inline_edge): Adjust.
19791 (cgraph_early_inlining): Re-structure.
19792 (pass_early_inline): Require SSA form.
19793
19794 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
19795 Julian Brown <julian@codesourcery.com>
19796 Mark Shinwell <shinwell@codesourcery.com>
19797
19798 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
19799 LO_REGS only for Thumb-1.
19800 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
19801 be used in short instructions when optimising for size on Thumb-2.
19802
19803 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19804
19805 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
19806 associated with user returns to be preserved.
19807
19808 2011-04-06 Tristan Gingold <gingold@adacore.com>
19809
19810 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
19811 symbol_queue_size, DBXOUT_DECR_NESTING,
19812 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
19813 if XCOFF_DEBUGGING_INFO.
19814
19815 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
19816
19817 * config/i386/i386.md (attribute isa): New.
19818 (attribute enabled): New.
19819 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
19820 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
19821 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
19822 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
19823 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
19824 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19825 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
19826 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
19827
19828 * config/i386/sse.md (VF): New mode iterator.
19829 (VF1): Ditto.
19830 (VF2): Ditto.
19831 (VF_128): Ditto.
19832 (SSEMODEF4): Remove.
19833 (attribute sse): Handle V8SF and V4DF modes.
19834 (<absneg:code><mode>2): Use VF mode iterator.
19835 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
19836 mode iterator.
19837 (<plusminus_insn><mode>3): Use VF mode iterator.
19838 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
19839 Use VF mode iterator.
19840 (<sse>_vm<plusminus_insn><mode>3): Merge with
19841 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
19842 (mul<mode>3): Use VF mode iterator.
19843 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
19844 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
19845 mode iterator.
19846 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
19847 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
19848 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
19849 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
19850 mode iterator.
19851 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
19852 Use VF1 mode iterator.
19853 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
19854 (sqrt<VF2:mode>2): New expander.
19855 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
19856 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
19857 and sqrtv2df2. Use VF mode iterator.
19858 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
19859 mode iterator.
19860 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
19861 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
19862 Use VF1 mode iterator.
19863 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
19864 (<smaxmin:code><mode>3): Use VF mode iterator.
19865 (*<smaxmin:code><mode>3_finite): Merge with
19866 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
19867 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
19868 (<sse>_vm<smaxmin:code><mode>2): Merge with
19869 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
19870 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
19871 mode iterator.
19872 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
19873 mode iterator.
19874 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
19875 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
19876 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
19877 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
19878 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
19879 VF mode iterator.
19880 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
19881 Use VF_128 mode iterator.
19882 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
19883 mode iterator.
19884 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
19885 VF_128 mode iterator.
19886 (vcond<mode>): Use VF mode iterator.
19887 * config/i386/predicates.md (sse_comparison_operator): Merge with
19888 avx_comparison_float_operator. Do not declare as special_predicate.
19889 * config/i386/i386.c (struct builtin_description): Update for renamed
19890 compare patterns.
19891 (ix86_expand_args_builtin): Ditto.
19892 (ix86_expand_sse_compare_mask): Ditto.
19893
19894 2011-04-06 Richard Guenther <rguenther@suse.de>
19895
19896 * tree-inline.c (estimate_num_insns): For calls simply account
19897 for all passed arguments and a used return value.
19898
19899 2011-04-06 Richard Guenther <rguenther@suse.de>
19900
19901 PR tree-optimization/47663
19902 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
19903 call_stmt_time fields.
19904 (cgraph_edge_inlinable_p): Declare.
19905 (cgraph_edge_recursive_p): New inline function.
19906 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
19907 (cgraph_clone_edge): Copy it.
19908 * ipa-inline.c (cgraph_estimate_edge_time): New function.
19909 Account for call stmt time.
19910 (cgraph_estimate_time_after_inlining): Take edge argument.
19911 (cgraph_estimate_edge_growth): Account call stmt size.
19912 (cgraph_estimate_size_after_inlining): Take edge argument.
19913 (cgraph_mark_inline_edge): Adjust.
19914 (cgraph_check_inline_limits): Likewise.
19915 (cgraph_recursive_inlining_p): Remove.
19916 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
19917 (cgraph_decide_recursive_inlining): Take edge argument and
19918 adjust.
19919 (cgraph_decide_inlining_of_small_functions): Do not avoid
19920 diags for recursive inlining here.
19921 (cgraph_flatten): Adjust.
19922 (cgraph_decide_inlining_incrementally): Likewise.
19923 (estimate_function_body_sizes): Remove call cost handling.
19924 (compute_inline_parameters): Initialize caller edge call costs.
19925 (cgraph_estimate_edge_growth): New function.
19926 (cgraph_estimate_growth): Use it.
19927 (cgraph_edge_badness): Likewise.
19928 (cgraph_check_inline_limits): Take an edge argument.
19929 (cgraph_decide_inlining_of_small_functions): Adjust.
19930 (cgraph_decide_inlining): Likewise.
19931 * tree-inline.c (estimate_num_insns): Only account for call
19932 return value if it is used.
19933 (expand_call_inline): Avoid diagnostics on recursive inline
19934 functions here.
19935 * lto-cgraph.c (lto_output_edge): Output edge call costs.
19936 (input_edge): Input edge call costs.
19937
19938 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19939
19940 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
19941
19942 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
19943
19944 * doc/invoke.texi (Spec Files): Fix typo.
19945
19946 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
19947
19948 * profile.c (branch_prob): Move declaration of local variable. Remove
19949 obsolete ??? comment. Expand the location explicitly instead of using
19950 the LOCATION_FILE and LOCATION_LINE macros.
19951
19952 2011-04-06 Wei Guozhi <carrot@google.com>
19953
19954 PR target/47855
19955 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
19956 (arm_cond_branch): Likewise.
19957 (arm_cond_branch_reversed): Likewise.
19958 (arm_jump): Likewise.
19959 (push_multi): Likewise.
19960 * config/arm/constraints.md (Py): New constraint.
19961
19962 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
19963
19964 PR bootstrap/48471
19965 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
19966 Move these...
19967 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
19968 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
19969 #ifdef DBX_DEBUGGING_INFO.
19970
19971 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
19972
19973 PR bootstrap/48403
19974 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
19975 if old and new states differ.
19976
19977 2011-04-05 Joseph Myers <joseph@codesourcery.com>
19978
19979 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
19980 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
19981 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
19982 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
19983 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
19984 mcfv4e): Use Alias.
19985 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
19986 ColdFire options to -mcpu= options.
19987
19988 2011-04-05 Jeff Law <law@redhat.com>
19989
19990 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
19991 check if BB is a successor of LOOP->header and return
19992 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
19993
19994 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
19995
19996 * cprop.c (struct reg_use): Remove.
19997 (reg_use_table): Make an array of RTX.
19998 (find_used_regs, constprop_register, local_cprop_pass,
19999 bypass_block): Simplify users of reg_use_table.
20000 (cprop_insn): Likewise. Iterate if copy propagation succeeded
20001 on one of the uses found by find_used_regs.
20002
20003 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20004
20005 PR bootstrap/48469
20006 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
20007 declaration.
20008
20009 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20010
20011 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
20012 as an rtx.
20013 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
20014
20015 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
20016
20017 PR middle-end/48441
20018 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
20019
20020 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20021
20022 * combine.c: Include obstack.h.
20023 (struct insn_link): Define.
20024 (uid_log_links): Adjust type.
20025 (FOR_EACH_LOG_LINK): New macro.
20026 (insn_link_obstack): Declare.
20027 (alloc_insn_link): Define.
20028 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
20029 type of link variables.
20030 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
20031 (try_combine, record_promoted_values, distribute_notes): Likewise.
20032 (distribute_links): Likewise. Tweak prototype.
20033 (clear_log_links): Delete.
20034 (adjust_for_new_dest): Call alloc_insn_link.
20035 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
20036
20037 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20038
20039 * gcse.c (modify_mem_list): Convert to an array of VECs.
20040 (canon_modify_mem_list, compute_transp): Tweak formatting.
20041 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
20042 (load_killed_in_block_p): Likewise.
20043 (record_last_mem_set_info): Likewise.
20044 (clear_modify_mem_tables): Likewise.
20045
20046 2011-04-05 Tom de Vries <tom@codesourcery.com>
20047
20048 PR middle-end/48461
20049 * function.c (emit_use_return_register_into_block): Only define if
20050 HAVE_return.
20051
20052 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
20053
20054 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
20055
20056 2011-04-05 Joseph Myers <joseph@codesourcery.com>
20057
20058 * config/rx/rx-opts.h: New.
20059 * config/rx/rx.c (rx_cpu_type): Remove.
20060 (rx_handle_option): Don't assert that global structures are in
20061 use. Access variables via opts pointer. Defer most handling of
20062 OPT_mint_register_. Use error_at.
20063 (rx_option_override): Handle deferred OPT_mint_register_ here.
20064 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
20065 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
20066 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
20067 (rx_cpu_types): New Enum and EnumValue entries.
20068 (mint-register=): Use Defer and use Var accordingly.
20069
20070 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20071
20072 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
20073 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
20074 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
20075 Move these...
20076 (debug_free_queue, debug_nesting, symbol_queue_index):
20077 ...and these...
20078 * dbxout.c: ...to here. Make static.
20079
20080 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
20081
20082 * gcse.c (modify_pair): Define. Define a VEC of it.
20083 (canon_modify_mem_list): Convert to an array of VECs.
20084 (free_insn_expr_list_list): Delete.
20085 (clear_modify_mem_tables): Call VEC_free instead.
20086 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
20087 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
20088 (canon_list_insert, compute_transp): Likewise.
20089
20090 2011-04-05 Tom de Vries <tom@codesourcery.com>
20091
20092 PR target/43920
20093 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
20094 for size.
20095
20096 2011-04-05 Tom de Vries <tom@codesourcery.com>
20097
20098 PR target/43920
20099 * function.c (emit_use_return_register_into_block): New function.
20100 (thread_prologue_and_epilogue_insns): Use
20101 emit_use_return_register_into_block.
20102
20103 2011-04-05 Tom de Vries <tom@codesourcery.com>
20104
20105 PR target/43920
20106 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
20107 insn.
20108
20109 2011-04-05 Tom de Vries <tom@codesourcery.com>
20110
20111 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
20112
20113 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
20114
20115 * config/arm/arm.md (define_constants for unspec): Replace with
20116 define_c_enum.
20117 (define_constants for unspecv): Replace with define_c_enum.
20118 * config/arm/neon.md (define_constants for unspec): Replace with
20119 define_c_enum.
20120
20121 2011-04-04 Richard Henderson <rth@redhat.com>
20122
20123 PR bootstrap/48400
20124 * dwarf2out.c (output_line_info): Always emit line info from
20125 at least one section.
20126 (dwarf2out_init): Create text_section_line_info here ...
20127 (set_cur_line_info_table): ... not here.
20128
20129 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
20130
20131 PR target/48380
20132 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
20133 not called.
20134
20135 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
20136
20137 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
20138
20139 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
20140 (expr_equiv_p): Remove.
20141 (insert_set_in_table): Look at <dest, src> pair instead of expr.
20142 (hash_scan_set): Update call to insert_set_in_table.
20143 (dump_hash_table): Dump <dest, src> pair.
20144 (lookup_set): Simplify. Lookup <dest, src> pair.
20145 (compute_transp): Remove, fold heavily simplified code into...
20146 (compute_local_properties): ...here. Expect COMP and TRANSP
20147 unconditionally.
20148 (find_avail_set): Take set directly from struct expr.
20149 (find_bypass-set): Likewise.
20150 (bypass_block): Likewise.
20151 (cprop_insn): Likewise. Remove redundant INSN_P test.
20152
20153 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
20154 checks on form of COND from find_implicit_sets to here.
20155 (find_implicit_sets): Cleanup control flow. Split critical edges
20156 if it exposes implicit sets. Allocate/resize implicit_sets as
20157 necessary.
20158 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
20159 changed something. Run df_analyze after find_implicit_sets if any
20160 edges were split. Do not allocate implicit_sets here.
20161
20162 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
20163 (gcse_obstack): Renamed to cprop_obstack.
20164 (GNEW, GNEWVEC, GNEWVAR): Remove.
20165 (gmalloc): Remove.
20166 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
20167 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
20168 (gcse_alloc): Likewise, and rename to cprop_alloc.
20169 (alloc_gcse_men, free_gcse_mem): Remove.
20170 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
20171 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
20172 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
20173
20174 * cprop.c (oprs_not_set_p): Remove.
20175 (mark_set, mark_clobber): Remove.
20176 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
20177 (reg_not_set_p): New function.
20178 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
20179 (cprop_insn): Likewise.
20180 (cprop_jump): Use FOR_EACH_EDGE.
20181
20182 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
20183
20184 PR bootstrap/48403
20185 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
20186 (rank_for_schedule): Use scheduled_insns vector instead of
20187 last_scheduled_insn.
20188 (ok_for_early_queue_removal): Likewise.
20189 (queue_to_ready): Search forward in nonscheduled_insns_begin if
20190 we have a dbg_cnt.
20191 (choose_ready): Likewise.
20192 (commit_schedule): Use VEC_iterate.
20193 (schedule_block): Initialize nonscheduled_insns_begin. If we have
20194 a dbg_cnt, use it and ensure the first insn is in the ready list.
20195 (haifa_sched_init): Allocate scheduled_insns.
20196 (sched_extend_ready_list): Don't allocate it; reserve space.
20197 (haifa_sched_finish): Free it.
20198
20199 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20200
20201 * optc-gen.awk: Always remove type from Variable entry before
20202 recording in var_seen.
20203
20204 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
20205
20206 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
20207 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
20208 call to tidy_fallthru_edges.
20209
20210 2011-04-04 Joseph Myers <joseph@codesourcery.com>
20211
20212 * doc/options.texi (ToLower): Document.
20213 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
20214 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
20215 * opts.h (cl_option): Add cl_tolower field.
20216 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
20217 arguments with lowercase strings.
20218 * config/rx/rx.opt (mcpu=): Add ToLower.
20219 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
20220 argument.
20221
20222 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20223
20224 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
20225
20226 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
20227
20228 * config/vax/vax.c: Include reload.h.
20229
20230 2011-04-04 Anatoly Sokolov <aesok@post.ru>
20231
20232 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
20233 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20234 (sparc_preferred_reload_class): New function.
20235
20236 2011-04-04 Jakub Jelinek <jakub@redhat.com>
20237
20238 PR debug/48401
20239 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20240 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
20241
20242 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
20243
20244 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
20245 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
20246
20247 2011-04-03 Anatoly Sokolov <aesok@post.ru>
20248
20249 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
20250 (ASM_OUTPUT_ALIGNED_BSS): Define.
20251
20252 2011-04-03 Michael Matz <matz@suse.de>
20253
20254 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
20255 and next_slot members.
20256 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
20257 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
20258 (lto_streamer_cache_append): Declare.
20259 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
20260 unsigned index, remove offset parameter, ensure that we append
20261 or update existing entries.
20262 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
20263 parameter, update next_slot for append.
20264 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
20265 parameter.
20266 (lto_streamer_cache_insert_at): Likewise.
20267 (lto_streamer_cache_append): New function.
20268 (lto_streamer_cache_lookup): Use unsigned index.
20269 (lto_streamer_cache_get): Likewise.
20270 (lto_record_common_node): Don't test tree_node_can_be_shared.
20271 (preload_common_node): Adjust call to lto_streamer_cache_insert.
20272 (lto_streamer_cache_delete): Don't free offsets member.
20273 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
20274 (lto_output_string_with_length): Use lto_output_data_stream.
20275 (lto_output_tree_header): Remove ix parameter, don't write it.
20276 (lto_output_builtin_tree): Likewise.
20277 (lto_write_tree): Adjust callers to above, don't track and write
20278 offset, write unsigned index.
20279 (output_unreferenced_globals): Don't emit all global vars.
20280 (write_global_references): Use unsigned indices.
20281 (lto_output_decl_state_refs): Likewise.
20282 (write_symbol): Likewise.
20283 * lto-streamer-in.c (lto_input_chain): Move earlier.
20284 (input_function): Use unsigned index.
20285 (input_alias_pairs): Don't read and then ignore all global vars.
20286 (lto_materialize_tree): Remove ix_p parameter, don't read index,
20287 don't pass it back, use lto_streamer_cache_append.
20288 (lto_register_var_decl_in_symtab): Use unsigned index.
20289 (lto_register_function_decl_in_symtab): Likewise.
20290 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
20291 index.
20292 (lto_get_builtin_tree): Don't read index, use
20293 lto_streamer_cache_append.
20294 (lto_read_tree): Adjust call to lto_materialize_tree.
20295
20296 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
20297 don't use function calls in arguments to MIN.
20298
20299 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
20300 twice.
20301
20302 * gimple.c (gimple_type_leader_entry): Mark deletable.
20303
20304 2011-04-03 Alan Modra <amodra@gmail.com>
20305
20306 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
20307
20308 2011-04-03 Michael Matz <matz@suse.de>
20309
20310 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
20311 an integer.
20312 * tree.h (tree_decl_non_common.vindex): Adjust comment.
20313
20314 2011-04-03 Michael Matz <matz@suse.de>
20315
20316 * cgraphbuild.c (record_reference): Canonicalize constructor values.
20317 * gimple-fold.c (canonicalize_constructor_val): Accept being called
20318 without function context.
20319 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
20320 current_function_decl and cfun.
20321
20322 2011-04-03 Michael Matz <matz@suse.de>
20323
20324 * tree.c (decl_init_priority_insert): Don't create entry for
20325 default priority.
20326 (decl_fini_priority_insert): Ditto.
20327 (fields_compatible_p, find_compatible_field): Remove.
20328 * tree.h (fields_compatible_p, find_compatible_field): Remove.
20329 * gimple.c (gimple_compare_field_offset): Adjust block comment.
20330
20331 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
20332
20333 * combine.c (try_combine): Remove useless local variable.
20334
20335 2011-04-03 Richard Guenther <rguenther@suse.de>
20336 Ira Rosen <ira.rosen@linaro.org>
20337
20338 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
20339 non-variable offsets and compare the remaining bases of the two
20340 accesses instead of looking for exact same data-ref.
20341
20342 2011-04-02 Kai Tietz <ktietz@redhat.com>
20343
20344 PR target/48416
20345 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
20346
20347 * i386.c (ix86_is_msabi_thiscall): New helper function.
20348 (ix86_is_type_thiscall): New helper function.
20349 (ix86_comp_type_attributes): Handle thiscall for method-functions
20350 special.
20351 (init_cumulative_args): Likewise.
20352 (find_drap_reg): Likewise.
20353 (ix86_static_chain): Likewise.
20354 (x86_this_parameter): Likewise.
20355 (x86_output_mi_thunk): Likewise.
20356
20357 2011-04-01 Olivier Hainque <hainque@adacore.com>
20358 Nicolas Setton <setton@adacore.com>
20359 Eric Botcazou <ebotcazou@adacore.com>
20360
20361 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
20362 (add_gnat_descriptive_type_attribute): New function.
20363 (gen_array_type_die): Call it.
20364 (gen_enumeration_type_die): Likewise.
20365 (gen_struct_or_union_type_die): Likewise.
20366 (modified_type_die): Likewise.
20367 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
20368 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
20369 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
20370
20371 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20372
20373 PR bootstrap/48148
20374 * dwarf2out.c (resolve_addr): Don't call force_decl_die
20375 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
20376
20377 Revert:
20378 2011-03-17 Richard Guenther <rguenther@suse.de>
20379
20380 PR bootstrap/48148
20381 * lto-cgraph.c (input_overwrite_node): Clear the abstract
20382 origin for decls in other ltrans units.
20383 (input_varpool_node): Likewise.
20384
20385 2011-04-01 Jakub Jelinek <jakub@redhat.com>
20386
20387 PR middle-end/48335
20388 * expr.c (expand_assignment): Handle all possibilities
20389 if TO_RTX is CONCAT.
20390 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
20391 (store_split_bit_field): If SUBREG_REG (op0) or
20392 op0 itself has smaller mode than word, return it
20393 for offset 0 and const0_rtx for out-of-bounds stores.
20394 If word is const0_rtx, skip it.
20395
20396 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
20397
20398 * config/h8300/h8300.c (print_operand_address): Rename to...
20399 (h8300_print_operand_address): ...this. Make static. Adjust comments.
20400 Call h8300_print_operand and h8300_print_operand_address instead of
20401 print_operand and print_operand_address. Declare.
20402 (print_operand): Renake to...
20403 (h8300_print_operand): ...this. Make static. Adjust comments.
20404 Call h8300_print_operand instead of print_operand. Declare.
20405 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
20406 (h8300_register_move_cost): Likewise.
20407 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
20408 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
20409 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
20410 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
20411 * config/h8300/h8300-protos.h (print_operand): Delete.
20412 (print_operand_address): Delete.
20413
20414 2011-04-01 Richard Henderson <rth@redhat.com>
20415
20416 PR 48400
20417 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
20418 in strict mode before dwarf4. Re-order tests to early out
20419 before switching sections.
20420
20421 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
20422
20423 * config/h8300/constraints.md: New file.
20424 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
20425 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
20426 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
20427 * config/h8300/predicates.md (bit_operand): Likewise.
20428 (incdec_operand): Use satisfies_constraint_M and
20429 satisfies_constraint_O. Don't use C code block.
20430 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
20431 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
20432 (compute_mov_length): Use satisfies_constraint_G.
20433 (fix_bit_operand): Use satisfies_constraint_U.
20434 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
20435 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
20436 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
20437 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
20438 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
20439 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
20440 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
20441 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
20442 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
20443 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
20444 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
20445 (EXTRA_MEMORY_CONSTRAINT): Delete.
20446
20447 2011-04-01 Andrew Pinski <pinskia@gmail.com>
20448 Michael Meissner <meissner@linux.vnet.ibm.com>
20449
20450 PR target/48262
20451 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
20452 operands, as per the specifications.
20453
20454 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
20455 (vec_extract_evenv4sf): Ditto.
20456 (vec_extract_evenv8hi): Ditto.
20457 (vec_extract_evenv16qi): Ditto.
20458 (vec_extract_oddv4si): Ditto.
20459
20460 2011-03-31 Mark Wielaard <mjw@redhat.com>
20461
20462 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
20463 high_pc attribute if the CU has no associated code. Only output
20464 DW_AT_entry_pc for CU if not generating strict dwarf and
20465 dwarf_version < 4.
20466
20467 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
20468
20469 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
20470 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
20471 out of ...
20472 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
20473 * final.c (final_start_function): Call the new function rather
20474 than using a NULL argument for dwarf2out_frame_debug.
20475
20476 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
20477 that contains the prologue.
20478
20479 * haifa-sched.c (queue_insn): New arg REASON. All callers
20480 changed. Print it in debugging output.
20481
20482 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
20483
20484 * sched-ebb.c (begin_schedule_ready): Remove second argument.
20485 Split most of the code into...
20486 (begin_move_insn): ... here. New function.
20487 (ebb_sched_info): Add a pointer to it.
20488 * haifa-sched.c (scheduled_insns): New static variable.
20489 (sched_extend_ready_list): Allocate it.
20490 (schedule_block): Use it to record the order of scheduled insns.
20491 Perform RTL changes to move insns only after all scheduling
20492 decisions have been made.
20493 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
20494 begin_move_insn field.
20495 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
20496 * sched-int.h (struct haifa_sched_info): Remove second argument
20497 from begin_schedule_ready hook. Add new member begin_move_insn.
20498 * sched-rgn.c (begin_schedule_ready): Remove second argument.
20499 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
20500
20501 * haifa-sched.c (prune_ready_list): New function, broken out of
20502 schedule_block.
20503 (schedule_block): Use it.
20504
20505 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20506
20507 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
20508
20509 2011-04-01 Kai Tietz <ktietz@redhat.com>
20510
20511 * config.gcc (*-*-mingw*): Allow as option the
20512 posix threading model.
20513 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
20514 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20515 definition.
20516 (CPP_SPEC): Add pthread/no-pthread handling.
20517 (LIB_SPEC): Likewise.
20518 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
20519 (LIB_SPEC): Likewise.
20520 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
20521 flag to pass -pthread option for shared libgcc build.
20522 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
20523 for shared libgcc build.
20524 * config/i386/t-mingw-pthread: New file.
20525 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
20526 New define to enable use of library pthread by default.
20527 * config/i386/mingw.opt (pthread): New driver option.
20528 (no-pthread): New driver option.
20529 * config/i386/cygming.opt: Make sure trailing empty line is retained.
20530 * config/i386/mingw-w64.opt: Likewise.
20531
20532 2011-04-01 Gary Funck <gary@intrepid.com>
20533
20534 * c-decl.c (grokdeclarator): Fix formatting.
20535
20536 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20537
20538 * expr.c (emit_block_move_via_movmem): Use n_generator_args
20539 instead of n_operands.
20540 (set_storage_via_setmem): Likewise.
20541 * optabs.c (maybe_gen_insn): Likewise.
20542 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
20543 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
20544 (mips_expand_builtin_direct): Likewise.
20545 * config/spu/spu.c (expand_builtin_args): Likewise.
20546
20547 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20548
20549 * recog.h (insn_data_d): Add n_generator_args.
20550 * genoutput.c (data): Likewise.
20551 (output_insn_data): Print it.
20552 (max_opno, num_dups): Delete.
20553 (scan_operands): Just fill in "d->operand[...]".
20554 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
20555
20556 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
20557
20558 * gensupport.h (pattern_stats): New structure.
20559 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
20560 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
20561 (max_operand_1, max_operand_vec): Delete.
20562 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
20563
20564 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
20565
20566 * emit-rtl.c (emit_pattern_after_setloc): New function.
20567 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
20568 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
20569 (emit_pattern_after): New function.
20570 (emit_insn_after, emit_jump_insn_after): Call it.
20571 (emit_call_insn_after, emit_debug_insn_after): Likewise.
20572 (emit_pattern_before_setloc): New function.
20573 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
20574 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
20575 Likewise.
20576 (emit_pattern_before): New function.
20577 (emit_insn_before, emit_jump_insn_before): Call it.
20578 (emit_call_insn_before, emit_debug_insn_before): Likewise.
20579
20580 2011-03-31 Richard Henderson <rth@redhat.com>
20581
20582 * dwarf2out.c (dw_separate_line_info_ref): Remove.
20583 (dw_separate_line_info_entry): Remove.
20584 (enum dw_line_info_opcode): New.
20585 (dw_line_info_entry): Use it.
20586 (dw_line_info_table, dw_line_info_table_p): New.
20587 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
20588 (line_info_table, line_info_label_num): Remove.
20589 (line_info_table_in_use): Remove.
20590 (separate_line_info_table): Remove.
20591 (separate_line_info_table_allocated): Remove.
20592 (separate_line_info_table_in_use): Remove.
20593 (LINE_INFO_TABLE_INCREMENT): Remove.
20594 (line_info_label_num): New.
20595 (cur_line_info_table): New.
20596 (text_section_line_info, cold_text_section_line_info): New.
20597 (separate_line_info): New.
20598 (SEPARATE_LINE_CODE_LABEL): Remove.
20599 (print_dwarf_line_table): Remove.
20600 (debug_dwarf): Don't dump it.
20601 (output_one_line_info_table): New.
20602 (output_line_info): Use it.
20603 (new_line_info_table): New.
20604 (set_cur_line_info_table): New.
20605 (dwarf2out_switch_text_section): Use it.
20606 (dwarf2out_begin_function): Likewise.
20607 (push_dw_line_info_entry): New.
20608 (dwarf2out_source_line): Rewrite for new line info tables.
20609 (dwarf2out_init): Remove dead initailizations.
20610
20611 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20612
20613 * opts.h (cl_option): Add comments to fields. Add bit-fields for
20614 various flags.
20615 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
20616 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
20617 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
20618 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
20619 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
20620 * opt-functions.awk (flag_init, switch_bit_fields): New.
20621 (switch_flags): Don't handle flags moved to bit-fields. Don't
20622 generate CL_MISSING_OK or CL_SAVE.
20623 * optc-gen.awk: Update to generate bit-field output as well as
20624 flags field.
20625 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
20626 bit-field instead of CL_REJECT_DRIVER flag.
20627 * opts-common.c (generate_canonical_option,
20628 decode_cmdline_option): Use bit-fields instead of CL_* flags.
20629 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
20630 instead of CL_REJECT_NEGATIVE flag.
20631 * toplev.c (print_switch_values): Use cl_report bit-field instead
20632 of CL_REPORT flag.
20633
20634 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20635
20636 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
20637 a zero minimum index only if it is redundant.
20638
20639 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
20640
20641 PR rtl-optimization/48381
20642 * ira-color.c (assign_hard_reg): Use hard reg set intersection
20643 instead of ira_class_hard_reg_index for calculating conflicting
20644 hard registers.
20645
20646 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
20647
20648 * cprop.c: Clean up hash table building.
20649 (reg_avail_info): Remove.
20650 (oprs_available_p): Remove.
20651 (record_last_reg_set_info): Remove.
20652 (record_last_set_info): Remove.
20653 (reg_available_p): New function.
20654 (gcse_constant_p): Do not treat unfolded conditions as constants.
20655 (make_set_regs_unavailable): New function.
20656 (hash_scan_set): Simplify with new reg_available_p.
20657 (compute_hash_table_work): Traverse insns stream only once.
20658 Do not compute reg_avail_info. Traverse insns in reverse order.
20659 Record implicit sets after recording explicit sets from the block.
20660
20661 2011-03-31 Michael Matz <matz@suse.de>
20662
20663 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
20664
20665 2011-03-31 Anatoly Sokolov <aesok@post.ru>
20666
20667 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
20668 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
20669 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20670 (h8300_mode_dependent_address_p): New function.
20671 (h8300_get_index): Make static.
20672
20673 2011-03-31 Jeff Law <law@redhat.com>
20674
20675 * reload1.c (elimination_effects): Fix typo in recent change.
20676
20677 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
20678 typo potentially leading to null pointer dereference.
20679
20680 * caller-save.c (new_saved_hard_reg): Eliminate return value.
20681 (setup_save_areas): Corresponding changes to avoid useless
20682 assignments.
20683
20684 * jump.c (reversed_comparison_code_parts): Avoid successive return
20685 statements when REVERSE_CONDITION is defined.
20686
20687 * expr.c (expand_assignment): Avoid useless assignments.
20688 (expand_expr_real_1): Likewise.
20689 (expand_expr_real_2): Avoid useless statements.
20690
20691 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
20692
20693 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
20694
20695 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
20696 statements.
20697
20698 * stmt.c (expand_expr_stmt): Avoid useless assignment.
20699
20700 2011-03-31 Joseph Myers <joseph@codesourcery.com>
20701
20702 PR target/47109
20703 * doc/tm.texi.in (TARGET_VERSION): Remove.
20704 * doc/tm.texi: Regenerate.
20705 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
20706 * collect2.c (main): Don't use TARGET_VERSION.
20707 * mips-tdump.c (main): Don't use TARGET_VERSION.
20708 * mips-tfile.c (main): Don't use TARGET_VERSION.
20709 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
20710 * config/rs6000/vxworksae.h: Remove.
20711 * config/alpha/alpha.h (TARGET_VERSION): Remove.
20712 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
20713 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
20714 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
20715 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20716 * config/arm/arm.h (TARGET_VERSION): Remove.
20717 * config/arm/coff.h (TARGET_VERSION): Remove.
20718 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
20719 * config/arm/elf.h (TARGET_VERSION): Remove.
20720 * config/arm/freebsd.h (TARGET_VERSION): Remove.
20721 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
20722 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
20723 * config/arm/pe.h (TARGET_VERSION): Remove.
20724 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
20725 * config/arm/semi.h (TARGET_VERSION): Remove.
20726 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
20727 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
20728 * config/arm/vxworks.h (TARGET_VERSION): Remove.
20729 * config/avr/avr.h (TARGET_VERSION): Remove.
20730 * config/bfin/bfin.h (TARGET_VERSION): Remove.
20731 * config/fr30/fr30.h (TARGET_VERSION): Remove.
20732 * config/frv/frv.h (TARGET_VERSION): Remove.
20733 * config/h8300/h8300.h (TARGET_VERSION): Remove.
20734 * config/i386/cygwin.h (TARGET_VERSION): Remove.
20735 * config/i386/darwin.h (TARGET_VERSION): Remove.
20736 * config/i386/darwin64.h (TARGET_VERSION): Remove.
20737 * config/i386/djgpp.h (TARGET_VERSION): Remove.
20738 * config/i386/freebsd.h (TARGET_VERSION): Remove.
20739 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
20740 * config/i386/gnu.h (TARGET_VERSION): Remove.
20741 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
20742 * config/i386/i386elf.h (TARGET_VERSION): Remove.
20743 * config/i386/linux.h (TARGET_VERSION): Remove.
20744 * config/i386/linux64.h (TARGET_VERSION): Remove.
20745 * config/i386/lynx.h (TARGET_VERSION): Remove.
20746 * config/i386/mingw32.h (TARGET_VERSION): Remove.
20747 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
20748 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
20749 * config/i386/netware.h (TARGET_VERSION): Remove.
20750 * config/i386/nto.h (TARGET_VERSION): Remove.
20751 * config/i386/openbsd.h (TARGET_VERSION): Remove.
20752 * config/i386/vxworks.h (TARGET_VERSION): Remove.
20753 * config/ia64/elf.h (TARGET_VERSION): Remove.
20754 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
20755 * config/ia64/hpux.h (TARGET_VERSION): Remove.
20756 * config/ia64/linux.h (TARGET_VERSION): Remove.
20757 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
20758 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
20759 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20760 * config/lm32/lm32.h (TARGET_VERSION): Remove.
20761 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
20762 * config/m32c/m32c.h (TARGET_VERSION): Remove.
20763 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
20764 * config/m32r/m32r.h (TARGET_VERSION): Remove.
20765 * config/m68k/linux.h (TARGET_VERSION): Remove.
20766 * config/m68k/m68k.h (TARGET_VERSION): Remove.
20767 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
20768 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
20769 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
20770 * config/mep/mep.h (TARGET_VERSION): Remove.
20771 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
20772 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
20773 * config/mips/iris6.h (MACHINE_TYPE): Remove.
20774 * config/mips/linux.h (TARGET_VERSION): Remove.
20775 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
20776 * config/mips/vxworks.h (TARGET_VERSION): Remove.
20777 * config/mmix/mmix.h (TARGET_VERSION): Remove.
20778 * config/mn10300/linux.h (TARGET_VERSION): Remove.
20779 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
20780 * config/pa/pa.h (TARGET_VERSION): Remove.
20781 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
20782 * config/picochip/picochip.h (TARGET_VERSION): Remove.
20783 * config/rs6000/aix.h (TARGET_VERSION): Remove.
20784 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
20785 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
20786 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
20787 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
20788 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
20789 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
20790 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
20791 * config/rs6000/linux.h (TARGET_VERSION): Remove.
20792 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
20793 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
20794 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
20795 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
20796 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
20797 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
20798 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
20799 * config/s390/linux.h (TARGET_VERSION): Remove.
20800 * config/s390/s390.h (TARGET_VERSION): Remove.
20801 * config/s390/tpf.h (TARGET_VERSION): Remove.
20802 * config/score/score.h (TARGET_VERSION): Remove.
20803 * config/sh/linux.h (TARGET_VERSION): Remove.
20804 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
20805 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
20806 * config/sh/sh.h (TARGET_VERSION): Remove.
20807 * config/sh/sh64.h (TARGET_VERSION): Remove.
20808 * config/sh/superh.h (TARGET_VERSION): Remove.
20809 * config/sh/vxworks.h (TARGET_VERSION): Remove.
20810 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
20811 * config/sparc/linux.h (TARGET_VERSION): Remove.
20812 * config/sparc/linux64.h (TARGET_VERSION): Remove.
20813 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
20814 TARGET_NAME32, TARGET_NAME): Remove.
20815 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
20816 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
20817 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
20818 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
20819 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
20820 * config/spu/spu.h (TARGET_VERSION): Remove.
20821 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
20822 * config/v850/v850.h (TARGET_VERSION): Remove.
20823 * config/vax/linux.h (TARGET_VERSION): Remove.
20824 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
20825 * config/xtensa/elf.h (TARGET_VERSION): Remove.
20826 * config/xtensa/linux.h (TARGET_VERSION): Remove.
20827
20828 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
20829
20830 PR target/48142
20831 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
20832 frame-related from frame-unrelated adjustments to the stack pointer.
20833
20834 2011-03-31 Jakub Jelinek <jakub@redhat.com>
20835
20836 * common.opt (fdebug-types-section): Move earlier.
20837 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
20838
20839 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
20840
20841 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
20842 var.
20843
20844 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
20845
20846 * tree.h (CASE_CHAIN): Define.
20847 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
20848 (gimple_redirect_edge_and_branch): Likewise.
20849
20850 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
20851
20852 PR middle-end/48367
20853 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
20854 calculation.
20855
20856 2011-03-30 Jeff Law <law@redhat.com>
20857
20858 * PR bootstrap/48371
20859 * reload1.c (reload): Fix botch in last change.
20860
20861 * reload.h (struct reload): Fix typo introduced in last change.
20862
20863 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20864
20865 * config/arm/arm.opt (mhard-float, msoft-float): Mark
20866 Undocumented. Remove help text.
20867 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
20868 -mhard-float.
20869
20870 2011-03-30 Joseph Myers <joseph@codesourcery.com>
20871
20872 * doc/options.texi (NegativeAlias): Document.
20873 (Alias): Mention NegativeAlias.
20874 * opt-functions.awk: Handle NegativeAlias.
20875 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
20876 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
20877 * opts.h (CL_NEGATIVE_ALIAS): Define.
20878 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
20879 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
20880 OPT_mspe_.
20881 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
20882 Alias entries.
20883 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20884 mno-spe and mno-isel instead of mspe=no and -misel=no.
20885
20886 2011-03-29 Mark Wielaard <mjw@redhat.com>
20887
20888 * common.opt (fdebug-types-section): New flag.
20889 * doc/invoke.texi: Document new -fno-debug-types-section flag.
20890 * dwarf2out.c (use_debug_types): New define.
20891 (struct die_struct): Mark die_id with GTY desc use_debug_types.
20892 (print_die): Guard output of type unit signatures using
20893 use_debug_types.
20894 (build_abbrev_table): Replace assert of dwarf_version >= 4
20895 with assert on use_debug_types.
20896 (size_of_die): Likewise.
20897 (unmark_dies): Likewise.
20898 (value_format): Decide AT_ref_external form on use_debug_types.
20899 (output_die): Replace dwarf_version version check guard with
20900 use_debug_types where appropriate.
20901 (modified_type_die): Likewise.
20902 (gen_reference_type_die): Likewise.
20903 (dwarf2out_start_source_file): Likewise.
20904 (dwarf2out_end_source_file): Likewise.
20905 (prune_unused_types_walk_attribs): Likewise.
20906 (dwarf2out_finish): Likewise.
20907
20908 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
20909
20910 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
20911
20912 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20913
20914 PR rtl-optimization/48332
20915 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
20916 mode of input operand N and modeN to its actual mode.
20917
20918 2011-03-30 Jeff Law <law@redhat.com>
20919
20920 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
20921 define accessor macro.
20922 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
20923 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
20924 (reg_equiv_init): Likewise.
20925 (reg_equivs_size): New variable.
20926 (reg_equiv_init_size): Remove.
20927 (allocate_initial_values): Move prototype to here from....
20928 * integrate.h (allocate_initial_values): Remove prototype.
20929 * integrate.c: Include reload.h.
20930 (allocate_initial_values): Corresponding changes.
20931 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
20932 (fix_reg_equiv_init, no_equiv): Corresponding changes.
20933 (update_equiv_regs): Corresponding changes.
20934 (ira): Corresponding changes.
20935 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
20936 (push_secondary_reload): Corresponding changes.
20937 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
20938 (make_memloc, find_reloads_address): Corresponding changes.
20939 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
20940 (find_reloads_address_1): Corresponding changes.
20941 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
20942 (refers_to_regno_for_reload_p): Corresponding changes.
20943 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
20944 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
20945 * reload1.c: Include ggc.h.
20946 (grow_reg_equivs): New function.
20947 (replace_pseudos_in, reload): Corresponding changes.
20948 (calculate_needs_all_insns, alter_regs): Corresponding changes.
20949 (eliminate_regs_1, elimination_effects): Corresponding changes.
20950 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
20951 (delete_output_reload): Likewise.
20952 * caller-save.c (mark_referenced_regs): Corresponding changes.
20953 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
20954 * frv/predicates.md (frv_load_operand): Corresponding changes.
20955 * microblaze/microblaze.c (double_memory_operand): Corresponding
20956 changes.
20957 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
20958 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
20959 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
20960 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
20961 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
20962 changes.
20963 * pa/pa.c (emit_move_sequence): Corresponding changes.
20964 * vax/vax.c (nonindexed_address_p): Corresponding changes.
20965
20966 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20967
20968 PR target/47551
20969 * config/arm/arm.c (coproc_secondary_reload_class): Handle
20970 structure modes. Don't check neon_vector_mem_operand for
20971 vector or structure modes.
20972
20973 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
20974 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20975
20976 PR target/43590
20977 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
20978 operand 1 and reshuffle the operands to match.
20979 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
20980
20981 2011-03-30 Christian Schüler <cschueler@gmx.de>
20982
20983 PR driver/48208
20984 * config/c.opt (F): Added 'Driver' to -F option.
20985
20986 PR driver/48260
20987 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
20988 handler function.
20989 * config/darwin.opt: Added '-arch' option.
20990
20991 2011-03-30 Nick Clifton <nickc@redhat.com>
20992
20993 * config/rx/rx.md: Add peepholes and patterns to combine
20994 extending loads and simple arithmetic instructions.
20995 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
20996 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
20997 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
20998 modes to use pre-decrement and post-increment addressing.
20999 (rx_is_restricted_memory_address): Add range checking of REG+INT
21000 addresses.
21001 (rx_print_operand): Add support for %Q. Fix handling of %Q.
21002 (rx_memory_move_cost): Adjust cost of stores.
21003 (rx_adjust_insn_length): New function.
21004
21005 2011-03-30 Jakub Jelinek <jakub@redhat.com>
21006
21007 PR c/48305
21008 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21009 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
21010 matching arg00/arg01 types.
21011
21012 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
21013
21014 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
21015 last_location to UNKNOWN_LOCATION.
21016
21017 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
21018
21019 PR target/48349
21020 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
21021 FLOAT_SSE_REGS.
21022
21023 2011-03-30 Joseph Myers <joseph@codesourcery.com>
21024 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21025
21026 PR bootstrap/48337
21027 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
21028 Init(PROCESSOR_V7).
21029 (sparc_cpu): Likewise.
21030 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
21031 PROCESSOR_V7.
21032
21033 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21034
21035 PR target/48336
21036 PR middle-end/48342
21037 PR rtl-optimization/48345
21038 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
21039 hard regs for given mode from profitable regs when doing secondary
21040 allocation.
21041
21042 2011-03-29 Jeff Law <law@redhat.com>
21043
21044 PR bootstrap/48327
21045 * tree-ssa-threadupdate.c (struct redirection_data): Remove
21046 do_not_duplicate field.
21047 (lookup_redirection_data): Corresponding changes.
21048 (create_duplicates): Always create a template block.
21049 (redirect_edges): Remove code which reused the original block
21050 when it was going to become unreachable code.
21051 (thread_block): Don't set do_not_duplicate field.
21052
21053 2011-03-29 Joseph Myers <joseph@codesourcery.com>
21054
21055 * lto-opts.c (register_user_option_p, lto_register_user_option):
21056 Make type argument unsigned.
21057 * lto-streamer.h (lto_register_user_option): Make type argument
21058 unsigned.
21059 * opth-gen.awk: Make CL_* macros unsigned.
21060 * opts-common.c (find_opt): Make lang_mask argument unsigned.
21061 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
21062 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
21063 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
21064 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
21065 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
21066 (find_opt): Make lang_mask argument unsigned.
21067
21068 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21069
21070 PR rtl-optimization/48331
21071 PR rtl-optimization/48334
21072 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
21073 for any used algorithm.
21074
21075 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
21076
21077 * ira-conflicts.c (build_object_conflicts): Add unused attribute
21078 to parent_max.
21079
21080 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
21081
21082 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
21083 (alpha_option_override): Don't set alpha_sr_alias_set.
21084 (emit_frame_store_1): Use gen_frame_mem rather than calling
21085 set_mem_alias_set.
21086 (alpha_expand_epilogue): Ditto.
21087
21088 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
21089
21090 PR tree-optimization/48290
21091 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
21092 vectorization, check that relevant phis in the basic block after
21093 the inner loop are really inner loop's exit phis.
21094
21095 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
21096
21097 PR debug/48190
21098 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
21099 (cached_dw_loc_list_def): New structure.
21100 (cached_dw_loc_list): New typedef.
21101 (cached_dw_loc_list_table): New variable.
21102 (cached_dw_loc_list_table_hash): New function.
21103 (cached_dw_loc_list_table_eq): Likewise.
21104 (add_location_or_const_value_attribute): Take a bool cache_p.
21105 Cache the list when the parameter is true.
21106 (gen_formal_parameter_die): Update caller.
21107 (gen_variable_die): Likewise.
21108 (dwarf2out_finish): Likewise.
21109 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
21110 while generating debug info for the decl.
21111 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
21112 (dwarf2out_init): Initialize cached_dw_loc_list_table.
21113 (resolve_addr): Cache the result of resolving a chain of
21114 location lists.
21115
21116 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
21117
21118 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
21119 conflict object hard regset nodes have intersecting hard reg sets.
21120
21121 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
21122 after regstat_init_n_sets_and_refs.
21123
21124 * ira.c: Add more comments at the top.
21125 (setup_stack_reg_pressure_class, setup_pressure_classes):
21126 Add comments how we compute the register pressure classes.
21127 (setup_allocno_and_important_classes): Add more comments.
21128 (setup_class_translate_array, reorder_important_classes)
21129 (setup_reg_class_relations): Add comments.
21130
21131 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
21132 start of the file.
21133
21134 * ira-color.c: Add 2011 to the Copyright line.
21135 (assign_hard_reg): Add more comments.
21136 (improve_allocation): Ditto.
21137
21138 * ira-costs.c: Add 2011 to the Copyright line.
21139 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
21140 comments.
21141 (setup_regno_cost_classes_by_mode): Ditto.
21142
21143 Initial patches from ira-improv branch:
21144
21145 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21146
21147 * ira-build.c (ira_create_object): Remove initialization of
21148 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
21149 (ira_create_allocno): Remove initialization of
21150 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
21151 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
21152 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21153 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
21154 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
21155 Initialize ALLOCNO_ADD_DATA.
21156 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
21157 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
21158 ALLOCNO_REG.
21159 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
21160 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
21161
21162 * ira.c (ira_reallocate): Remove.
21163 (setup_pressure_classes): Call
21164 ira_init_register_move_cost_if_necessary. Use
21165 ira_register_move_cost instead of ira_get_register_move_cost.
21166 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
21167 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
21168
21169 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
21170 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
21171 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
21172 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
21173 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
21174 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
21175 Fix formatting.
21176 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
21177 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21178 (struct allocno_color_data): New.
21179 (allocno_color_data_t): New typedef.
21180 (allocno_color_data): New definition.
21181 (ALLOCNO_COLOR_DATA): New macro.
21182 (struct object_color_data): New.
21183 (object_color_data_t): New typedef.
21184 (object_color_data): New definition.
21185 (OBJECT_COLOR_DATA): New macro.
21186 (update_copy_costs, calculate_allocno_spill_cost): Call
21187 ira_init_register_move_cost_if_necessary. Use
21188 ira_register_move_cost instead of ira_get_register_move_cost.
21189 (move_spill_restore, update_curr_costs): Ditto.
21190 (allocno_spill_priority): Make it inline.
21191 (color_pass): Allocate and free allocno_color_dat and object_color_data.
21192 (struct coalesce_data, coalesce_data_t): New.
21193 (allocno_coalesce_data): New definition.
21194 (ALLOCNO_COALESCE_DATA): New macro.
21195 (merge_allocnos, coalesced_allocno_conflict_p): Use
21196 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
21197 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
21198 (coalesce_allocnos): Ditto.
21199 (setup_coalesced_allocno_costs_and_nums): Ditto.
21200 (collect_spilled_coalesced_allocnos): Ditto.
21201 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
21202 (setup_slot_coalesced_allocno_live_ranges): Ditto.
21203 (coalesce_spill_slots): Ditto.
21204 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
21205 free allocno_coalesce_data.
21206
21207 * ira-conflicts.c: Fix formatting.
21208 (process_regs_for_copy): Call
21209 ira_init_register_move_cost_if_necessary. Use
21210 ira_register_move_cost instead of ira_get_register_move_cost.
21211 (build_object_conflicts): Optimize.
21212
21213 * ira-costs.c (record_reg_classes): Optimize. Call
21214 ira_init_register_move_cost_if_necessary. Use
21215 ira_register_move_cost, ira_may_move_in_cost, and
21216 ira_may_move_out_cost instead of ira_get_register_move_cost and
21217 ira_get_may_move_cost.
21218 (record_address_regs): Ditto.
21219 (scan_one_insn): Optimize.
21220 (find_costs_and_classes): Optimize.
21221 (process_bb_node_for_hard_reg_moves): Call
21222 ira_init_register_move_cost_if_necessary. Use
21223 ira_register_move_cost instead of ira_get_register_move_cost.
21224
21225 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
21226 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
21227 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
21228 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
21229 definitions.
21230 (ira_initiate_emit_data, ira_finish_emit_data)
21231 (create_new_allocno): New functions.
21232 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
21233 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
21234 Use ira_register_move_cost instead of ira_get_register_move_cost.
21235
21236 * ira-int.h: Fix some comments.
21237 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
21238 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
21239 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
21240 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
21241 add_data.
21242 (struct ira_allocno): Make mode and aclass a bitfield. Move other
21243 bitfield after mode. Make hard_regno a short int. Make
21244 hard_regno short. Remove first_coalesced_allocno and
21245 next_coalesced_allocno. Move mem_optimized_dest_p,
21246 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
21247 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
21248 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
21249 temp, colorable_p. Add new member add_data.
21250 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
21251 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
21252 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
21253 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
21254 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
21255 (ALLOCNO_ADD_DATA): New macro.
21256 (ira_emit_data_t): New typedef.
21257 (struct ira_emit_data): New. Move mem_optimized_dest_p,
21258 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
21259 from struct ira_allocno.
21260 (ALLOCNO_EMIT_DATA): New macro.
21261 (ira_allocno_emit_data, allocno_emit_reg): New.
21262 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
21263 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
21264 (OBJECT_ADD_DATA): New macro.
21265 (ira_reallocate): Remove.
21266 (ira_initiate_emit_data, ira_finish_emit_data): New.
21267 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
21268 (ira_init_register_move_cost_if_necessary): New.
21269 (ira_object_conflict_iter_next): Merge into
21270 ira_object_conflict_iter_cond.
21271 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
21272
21273 * ira-live.c (process_single_reg_class_operands): Call
21274 ira_init_register_move_cost_if_necessary. Use
21275 ira_register_move_cost instead of ira_get_register_move_cost.
21276
21277 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
21278
21279 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
21280
21281 * ira-costs.c: Fix formatting.
21282 (cost_classes, cost_classes_num): Remove.
21283 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
21284 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
21285 (cost_classes_del, cost_classes_htab): New.
21286 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
21287 (initiate_regno_cost_classes, setup_cost_classes): New.
21288 (setup_regno_cost_classes_by_aclass): New.
21289 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
21290 (record_reg_classes): Use regno_cost_classes instead of
21291 cost_classes. Move checking opposite operand up.
21292 (record_address_regs): Use regno_cost_classes
21293 instead of cost_classes.
21294 (scan_one_insn): Ditto. Use always general register.
21295 (print_allocno_costs): Use regno_cost_classes instead of
21296 cost_classes.
21297 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
21298 (find_costs_and_classes): Set up cost classes for each registers.
21299 Use also their mode for this. Use regno_cost_classes instead of
21300 cost_classes.
21301 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
21302 cost_classes.
21303 (free_ira_costs, ira_init_costs): Don't use cost_classes.
21304 (ira_costs, ira_set_pseudo_classes): Call
21305 initiate_regno_cost_classes and finish_regno_cost_classes.
21306
21307 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
21308
21309 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
21310
21311 * target.def (ira_cover_classes): Remove.
21312
21313 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
21314
21315 * doc/tm.texi.in: Ditto.
21316
21317 * ira-conflicts.c: Remove mentioning cover classes from the file.
21318 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
21319 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
21320
21321 * targhooks.c (default_ira_cover_classes): Remove.
21322
21323 * targhooks.h (default_ira_cover_classes): Ditto.
21324
21325 * haifa-sched.c: Remove mentioning cover classes from the file.
21326 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21327 ira_pressure_classes and ira_pressure_classes_num instead of
21328 ira_reg_class_cover_size and ira_reg_class_cover. Use
21329 sched_regno_pressure_class instead of sched_regno_cover_class.
21330 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
21331 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21332
21333 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
21334 classes from the file.
21335 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
21336 (struct object_hard_regs, struct object_hard_regs_node): New.
21337 (struct ira_object): New members profitable_hard_regs,
21338 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
21339 (struct ira_allocno): Rename cover_class to aclass. Rename
21340 cover_class_cost and updated_cover_class_cost to class_cost and
21341 updated_class_cost. Remove splay_removed_p and
21342 left_conflict_size. Add new members colorable_p.
21343 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
21344 (ALLOCNO_COLORABLE_P): New macro.
21345 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
21346 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
21347 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
21348 (OBJECT_...): Rename parameter C to O.
21349 (OBJECT_PROFITABLE_HARD_REGS): New macro.
21350 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
21351 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
21352 (struct target_ira_int): New members x_ira_max_memory_move_cost,
21353 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
21354 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
21355 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
21356 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
21357 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
21358 x_ira_reg_class_subunion.
21359 (ira_max_memory_move_cost, ira_max_register_move_cost)
21360 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
21361 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
21362 (ira_important_class_nums, ira_reg_class_superunion): New macros.
21363 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
21364 (ira_reg_class_union): Rename to ira_reg_class_subunion.
21365 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21366 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21367 (ira_tune_allocno_costs_and_cover_classes): Rename to
21368 ira_tune_allocno_costs.
21369 (ira_debug_hard_regs_forest): New.
21370 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
21371 (ira_object_conflict_iter_next): Fix comments.
21372 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
21373 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
21374 cover_class to aclass.
21375 (ira_allocate_and_accumulate_costs): Ditto.
21376 (ira_allocate_and_set_or_copy_costs): Ditto.
21377
21378 * opts.c (decode_options): Remove ira_cover_class check.
21379
21380 * ira-color.c: Remove mentioning cover classes from the file. Use
21381 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
21382 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
21383 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21384 (splay-tree.h): Remove include.
21385 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
21386 before copy_freq_compare_func.
21387 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
21388 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
21389 New definitions.
21390 (hard_regs_roots, hard_regs_node_vec): Ditto.
21391 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
21392 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
21393 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
21394 (create_new_object_hard_regs_node): Ditto.
21395 (add_new_object_hard_regs_node_to_forest): Ditto.
21396 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
21397 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
21398 Ditto.
21399 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
21400 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
21401 (remove_unused_object_hard_regs_nodes): Ditto.
21402 (enumerate_object_hard_regs_nodes): Ditto.
21403 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
21404 (object_hard_regs_subnode_t): Ditto.
21405 (struct object_hard_regs_subnode): Ditto.
21406 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
21407 (setup_object_hard_regs_subnode_index): Ditto.
21408 (get_object_hard_regs_subnodes_num): Ditto.
21409 (form_object_hard_regs_nodes_forest): Ditto.
21410 (finish_object_hard_regs_nodes_tree): Ditto.
21411 (finish_object_hard_regs_nodes_forest): Ditto.
21412 (allocnos_have_intersected_live_ranges_p): Rename to
21413 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21414 (pseudos_have_intersected_live_ranges_p): Rename to
21415 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
21416 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
21417 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
21418 (update_copy_costs): Remove assert. Skip cost update if the hard
21419 reg does not belong the class.
21420 (assign_hard_reg): Process only profitable hard regs.
21421 (uncolorable_allocnos_num): Make it scalar.
21422 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
21423 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
21424 and ira_reg_class_max_nregs.
21425 (bucket_allocno_compare_func): Check frequency first.
21426 (sort_bucket): Add compare function as a parameter.
21427 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
21428 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
21429 (push_allocno_to_stack): Rewrite for checking new allocno
21430 colorability.
21431 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
21432 (push_only_colorable): Pass new parameter to sort_bucket.
21433 (push_allocno_to_spill): Remove.
21434 (allocno_spill_priority_compare): Make it inline and rewrite.
21435 (splay_tree_allocate, splay_tree_free): Remove.
21436 (allocno_spill_sort_compare): New function.
21437 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
21438 build and use splay tree. Choose first allocno in uncolorable
21439 allocno bucket to spill. Remove setting spill cost.
21440 (all_conflicting_hard_regs): Remove.
21441 (setup_allocno_available_regs_num): Check only profitable hard
21442 regs. Print info about hard regs nodes.
21443 (setup_allocno_left_conflicts_size): Remove.
21444 (put_allocno_into_bucket): Don't call
21445 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
21446 (improve_allocation): New.
21447 (color_allocnos): Call setup_profitable_hard_regs,
21448 form_object_hard_regs_nodes_forest, improve_allocation,
21449 finish_object_hard_regs_nodes_forest. Setup spill cost.
21450 (print_loop_title): Use pressure classes.
21451 (color_allocnso): Ditto.
21452 (do_coloring): Remove allocation and freeing splay_tree_node_pool
21453 and allocnos_for_spilling.
21454 (ira_sort_regnos_for_alter_reg): Don't setup members
21455 {first,next}_coalesced_allocno.
21456 (color): Remove allocating and freeing removed_splay_allocno_vec.
21457 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
21458 prohibited_class_mode_regs.
21459
21460 * ira-lives.c: Remove mentioning cover classes from the file. Fix
21461 formatting.
21462 (update_allocno_pressure_excess_length): Use pressure classes.
21463 (inc_register_pressure, dec_register_pressure): Check for pressure
21464 class.
21465 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
21466 pressure class. Use ira_reg_class_nregs instead of
21467 ira_reg_class_max_nregs.
21468 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
21469 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
21470 (single_reg_class): Use ira_reg_class_nregs instead of
21471 ira_reg_class_max_nregs.
21472 (process_bb_node_lives): Use pressure classes.
21473
21474 * ira-emit.c: Remove mentioning cover classes from the file. Use
21475 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
21476 (change_loop): Use pressure classes.
21477 (modify_move_list): Call ira_set_allocno_class instead of
21478 ira_set_allocno_cover_class.
21479
21480 * ira-build.c: Remove mentioning cover classes from the file. Use
21481 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
21482 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
21483 ALLOCNO_UPDATED_CLASS_COST instead of
21484 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
21485 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
21486 (ira_create_allocno): Remove initialization of
21487 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
21488 ALLOCNO_COLORABLE_P.
21489 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
21490 Update conflict regs for the objects.
21491 (create_cap_allocno): Remove assert. Don't propagate
21492 ALLOCNO_AVAILABLE_REGS_NUM.
21493 (ira_free_allocno_costs): New function.
21494 (finish_allocno): Change a part of code into call of
21495 ira_free_allocno_costs.
21496 (low_pressure_loop_node_p): Use pressure classes.
21497 (object_range_compare_func): Don't compare classes.
21498 (setup_min_max_conflict_allocno_ids): Ditto.
21499
21500 * loop-invariant.c: Remove mentioning cover classes from the file.
21501 Use ira_pressure_classes and ira_pressure_classes_num instead of
21502 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
21503 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
21504 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21505 Use reg_allocno_class instead of reg_cover_class.
21506 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
21507 STACK_REG_COVER_CLASS.
21508 (get_regno_cover_class): Rename to get_regno_pressure_class.
21509 (move_loop_invariants): Initialize and finalize regstat.
21510
21511 * ira.c: Remove mentioning cover classes from the file. Add
21512 comments about coloring without cover classes. Use ALLOCNO_CLASS
21513 instead of ALLOCNO_COVER_CLASS. Fix formatting.
21514 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
21515 setup_class_subset_and_memory_move_costs.
21516 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
21517 (setup_cover_and_important_classes): Rename to
21518 setup_allocno_and_important_classes.
21519 (setup_class_translate_array): New.
21520 (setup_class_translate): Call it for allocno and pressure classes.
21521 (cover_class_order): Rename to allocno_class_order.
21522 (comp_reg_classes_func): Use ira_allocno_class_translate instead
21523 of ira_class_translate.
21524 (reorder_important_classes): Set up ira_important_class_nums.
21525 (setup_reg_class_relations): Set up ira_reg_class_superunion.
21526 (print_class_cover): Rename to print_classes. Add parameter.
21527 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
21528 Print pressure classes too.
21529 (find_reg_class_closure): Rename to find_reg_classes. Don't call
21530 setup_reg_subclasses.
21531 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21532 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21533 (setup_prohibited_class_mode_regs): Use
21534 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
21535 (clarify_prohibited_class_mode_regs): New function.
21536 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
21537 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
21538 (ira_init_once): Initialize them.
21539 (free_register_move_costs): Process them.
21540 (ira_init): Move calls of find_reg_classes and
21541 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
21542 Call clarify_prohibited_class_mode_regs.
21543 (ira_no_alloc_reg): Remove.
21544 (too_high_register_pressure_p): Use pressure classes.
21545
21546 * sched-deps.c: Remove mentioning cover classes from the file.
21547 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
21548 ira_pressure_classes and ira_pressure_classes_num instead of
21549 ira_reg_class_cover_size and ira_reg_class_cover.
21550 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
21551 sched_regno_pressure_class instead of sched_regno_cover_class.
21552 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
21553 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
21554
21555 * ira.h: Add 2010 to Copyright.
21556 (ira_no_alloc_reg): Remove external.
21557 (struct target_ira): Rename x_ira_hard_regno_cover_class,
21558 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
21559 x_ira_class_translate to x_ira_hard_regno_allocno_class,
21560 x_ira_allocno_classes_num, x_ira_allocno_classes, and
21561 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
21562 x_ira_pressure_classes, x_ira_pressure_class_translate, and
21563 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
21564 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
21565 x_ira_no_alloc_regs.
21566 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
21567 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
21568 ira_allocno_classes_num and ira_allocno_classes.
21569 (ira_class_translate): Rename to ira_allocno_class_translate.
21570 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
21571 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
21572 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
21573 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
21574 (ira_no_alloc_regs): New.
21575
21576 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
21577 classes from the file. Use ALLOCNO_CLASS instead of
21578 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
21579 ALLOCNO_COVER_CLASS_COST.
21580 (regno_cover_class): Rename to regno_aclass.
21581 (record_reg_classes): Use ira_reg_class_subunion instead of
21582 ira_reg_class_union.
21583 (record_address_regs): Check overflow.
21584 (scan_one_insn): Ditto.
21585 (print_allocno_costs): Print total mem cost fore regional allocation.
21586 (print_pseudo_costs): Use REG_N_REFS.
21587 (find_costs_and_classes): Use classes intersected with them on the
21588 1st pass. Check overflow. Use ira_reg_class_subunion instead of
21589 ira_reg_class_union. Use ira_allocno_class_translate and
21590 regno_aclass instead of ira_class_translate and regno_cover_class.
21591 Modify code for finding regno_aclass. Setup preferred classes for
21592 the next pass.
21593 (setup_allocno_cover_class_and_costs): Rename to
21594 setup_allocno_class_and_costs. Use regno_aclass instead of
21595 regno_cover_class. Use ira_set_allocno_class instead of
21596 ira_set_allocno_cover_class.
21597 (init_costs, finish_costs): Use regno_aclass instead of
21598 regno_cover_class.
21599 (ira_costs): Use setup_allocno_class_and_costs instead of
21600 setup_allocno_cover_class_and_costs.
21601 (ira_tune_allocno_costs_and_cover_classes): Rename to
21602 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
21603 by processing objects. Use ira_reg_class_max_nregs instead of
21604 ira_reg_class_nregs.
21605
21606 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
21607
21608 * sched-int.h: Remove mentioning cover classes from the file.
21609 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
21610
21611 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
21612 classes from the file.
21613 (struct reg_pref): Rename coverclass into allocnoclass.
21614 (reg_cover_class): Rename to reg_allocno_class.
21615
21616 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
21617
21618 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
21619
21620 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
21621
21622 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
21623
21624 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
21625
21626 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
21627
21628 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
21629
21630 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
21631
21632 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
21633
21634 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
21635
21636 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
21637 (i386_ira_cover_classes): Ditto.
21638
21639 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
21640
21641 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
21642
21643 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
21644
21645 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
21646
21647 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
21648
21649 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
21650
21651 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
21652 (mips_ira_cover_classes): Ditto.
21653
21654 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
21655
21656 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
21657
21658 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
21659
21660 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
21661
21662 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
21663
21664 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
21665 (IRA_COVER_CLASSES_VSX): Ditto.
21666
21667 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
21668 (rs6000_ira_cover_classes): Ditto.
21669
21670 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
21671
21672 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
21673
21674 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
21675
21676 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
21677
21678 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
21679
21680 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
21681
21682 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
21683
21684 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
21685
21686 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
21687
21688 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
21689
21690 2011-03-29 Jakub Jelinek <jakub@redhat.com>
21691
21692 PR debug/48253
21693 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
21694 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
21695 dw_fde_unlikely_section_end_label, cold_in_std_section,
21696 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
21697 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
21698 fields.
21699 (output_fde): Use dw_fde_second_{begin,end} if second is
21700 true, otherwise dw_fde_{begin,end}.
21701 (output_call_frame_info): Test dw_fde_second_begin != NULL
21702 instead of dw_fde_switched_sections.
21703 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
21704 fields, initialize new fields. Initialize in_std_section
21705 unconditionally from the first partition.
21706 (dwarf2out_end_epilogue): Don't override dw_fde_end when
21707 dw_fde_second_begin is non-NULL.
21708 (dwarf2out_switch_text_section): Stop initializing removed
21709 dw_fde_struct fields, initialize new fields, initialize
21710 also dw_fde_end here. Set dw_fde_switch_cfi even when
21711 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
21712 (struct var_loc_list_def): Add last_before_switch field.
21713 (arange_table, arange_table_allocated, arange_table_in_use,
21714 ARANGE_TABLE_INCREMENT, add_arange): Removed.
21715 (size_of_aranges): Count !in_std_section and !second_in_std_section
21716 hunks in fdes, instead of looking at arange_table_in_use.
21717 (output_aranges): Add aranges_length argument, don't call
21718 size_of_aranges here. Instead of using aranges_table*
21719 emit ranges for fdes when !in_std_section resp.
21720 !second_in_std_section.
21721 (dw_loc_list): Break ranges crossing section switch.
21722 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
21723 use dw_fde_second_end instead of dw_fde_end as end of last range.
21724 (gen_subprogram_die): Don't call add_arange. Use
21725 dw_fde_{begin,end} for first partition and if switched
21726 section dw_fde_second_{begin,end} for the second.
21727 (var_location_switch_text_section_1,
21728 var_location_switch_text_section): New functions.
21729 (dwarf2out_begin_function): Initialize cold_text_section even
21730 when function_section () isn't text_section.
21731 (prune_unused_types): Don't walk arange_table.
21732 (dwarf2out_finish): Don't needlessly test
21733 flag_reorder_blocks_and_partition when testing cold_text_section_used.
21734 If info_section_emitted, call size_of_aranges and if it indicates
21735 non-empty .debug_aranges, call output_aranges with the computed
21736 size. Stop using removed dw_fde_struct fields, use
21737 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
21738 for second.
21739
21740 PR debug/48203
21741 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
21742 create ENTRY_VALUE if incoming or address of incoming's MEM
21743 is a hard REG.
21744 * dwarf2out.c (mem_loc_descriptor): Don't emit
21745 DW_OP_GNU_entry_value of DW_OP_fbreg.
21746 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
21747 on ENTRY_VALUE is able to find the canonical parameter VALUE.
21748 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
21749 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
21750 ENTRY_VALUE_EXPs.
21751 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
21752 is a REG_P or MEM_P with REG_P address, compute hash directly
21753 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
21754 (preserve_only_constants): Don't clear VALUES forwaring
21755 ENTRY_VALUE to some other VALUE.
21756
21757 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
21758
21759 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
21760 instead of GEN_INT.
21761
21762 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
21763
21764 * cfgexpand.c (expand_gimple_cond): Always set the source location and
21765 block before expanding the statement.
21766 (expand_gimple_stmt_1): Likewise. Set them here...
21767 (expand_gimple_stmt): ...and not here. Tidy.
21768 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
21769 unknown.
21770
21771 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21772
21773 * Makefile.in: New rule for cprop.o.
21774 * gcse.c: Move constant/copy propagation to cprop.c.
21775 (compute_local_properties): Only handle expression tables.
21776 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
21777 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
21778 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
21779 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
21780 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
21781 compute_cprop_data, find_used_regs, try_replace_reg,
21782 find_avail_set, cprop_jump, constprop_register, cprop_insn,
21783 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
21784 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
21785 find_bypass_set, reg_killed_on_edge, bypass_block,
21786 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
21787 execute_rtl_cprop, pass_rtl_cprop): Move to...
21788 * cprop.c: ...here. New file, constant/copy propagation for RTL
21789 moved from gcse.c to here with minor cleanups in duplicated code.
21790
21791 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
21792
21793 * config/i386/i386.c (flag_opts): Fix a typo in
21794 -mavx256-split-unaligned-store.
21795
21796 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21797
21798 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
21799 LIBCALL_VALUE): Remove macros.
21800 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21801 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21802 (h8300_function_value, h8300_libcall_value,
21803 h8300_function_value_regno_p): New functions.
21804
21805 2011-03-28 Anatoly Sokolov <aesok@post.ru>
21806
21807 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
21808
21809 2011-03-28 Jeff Law <law@redhat.com>
21810
21811 * tree-ssa-threadupdate.c (redirect_edges): Call
21812 create_edge_and_update_destination_phis as needed.
21813 (create_edge_and_update_destination_phis): Accept new BB argument.
21814 All callers updated.
21815 (thread_block): Do not update the profile when threading around
21816 intermediate blocks.
21817 (thread_single_edge): Likewise.
21818 (determine_bb_domination_status): If BB is not a successor of the
21819 loop header, return NONDOMINATING.
21820 (register_jump_thread): Note when we register a jump thread around
21821 an intermediate block.
21822 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
21823 (thread_across_edge): Use it.
21824
21825 2011-03-28 Tristan Gingold <gingold@adacore.com>
21826
21827 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
21828 when for_return is 2.
21829
21830 2011-03-28 Jeff Law <law@redhat.com>
21831
21832 * var-tracking.c (canonicalize_values_mark): Delete unused
21833 lhs assignment.
21834 (canonicalize_values_star, set_variable_part): Likewise.
21835 (clobber_variable_part, delete_variable_part): Likewise.
21836
21837 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
21838
21839 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
21840
21841 2011-03-28 Martin Jambor <mjambor@suse.cz>
21842
21843 * tree-inline.c (expand_call_inline): Do not check that destination
21844 node is analyzed.
21845 (optimize_inline_calls): Assert that destination node is analyzed.
21846 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
21847 not call tree_lowering_passes.
21848 * cgraph.h (cgraph_analyze_function): Declare.
21849 * cgraphunit.c (cgraph_analyze_function): Make public.
21850
21851 2011-03-28 Joseph Myers <joseph@codesourcery.com>
21852
21853 * config/sparc/sparc-opts.h: New.
21854 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
21855 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
21856 (sparc_option_override): Store processor_type enumeration rather
21857 than string in cpu_default. Remove name and enumeration from
21858 cpu_table. Directly default -mcpu then default -mtune from -mcpu
21859 without using sparc_select. Use target_flags_explicit instead of
21860 fpu_option_set.
21861 * config/sparc/sparc.h (enum processor_type): Move to
21862 sparc-opts.h.
21863 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
21864 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
21865 HeaderInclude entry.
21866 (mcpu=, mtune=): Use Var and Enum.
21867 (sparc_processor_type): New Enum and EnumValue entries.
21868
21869 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21870 Iain Sandoe <iains@gcc.gnu.org>
21871
21872 PR target/48245
21873 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
21874
21875 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
21876
21877 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
21878 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
21879 Insert new statements at it in lieu of STMT.
21880 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
21881 * tree-vect-stmts.c (vectorizable_store): Likewise.
21882 (vectorizable_load): Likewise.
21883
21884 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
21885
21886 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
21887 (divtf3): Ditto.
21888 (multf3): Ditto.
21889 (subtf3): Ditto.
21890
21891 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
21892
21893 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
21894 unaligned 256bit load/store.
21895 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
21896 (*avx_movdqu<avxmodesuffix>): Likewise.
21897
21898 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21899
21900 PR target/48288
21901 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
21902 * config/pa/pa.md (iordi3): Use new predicate in expander.
21903 (iorsi3): Likewise.
21904
21905 2011-03-27 Anatoly Sokolov <aesok@post.ru>
21906
21907 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
21908 FUNCTION_VALUE_REGNO_P): Remove macros.
21909 * config/mips/mips-protos.h (mips_function_value): Remove.
21910 * config/mips/mips.c (mips_function_value): Rename to...
21911 (mips_function_value_1): ... this. Make static. Handle receiving
21912 the function type in 'fn_decl_or_type' argument.
21913 (mips_function_value, mips_libcall_value,
21914 mips_function_value_regno_p): New function.
21915 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21916 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21917
21918 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
21919
21920 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
21921 and -mavx256-split-unaligned-store.
21922 (ix86_option_override_internal): Split 32-byte AVX unaligned
21923 load/store by default.
21924 (ix86_avx256_split_vector_move_misalign): New.
21925 (ix86_expand_vector_move_misalign): Use it.
21926
21927 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
21928 -mavx256-split-unaligned-store.
21929
21930 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
21931 256bit load/store. Generate unaligned store on misaligned memory
21932 operand.
21933 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
21934 256bit load/store.
21935 (*avx_movdqu<avxmodesuffix>): Likewise.
21936
21937 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
21938 -mavx256-split-unaligned-store.
21939
21940 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21941
21942 PR target/38598
21943 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
21944 Update commentary.
21945
21946 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
21947
21948 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
21949 opno arguments with an expand_operand. Use create_input_operand.
21950 (mips_prepare_builtin_target): Delete.
21951 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
21952 functions.
21953 (mips_expand_builtin_direct): Use create_output_operand and
21954 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
21955 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
21956 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
21957
21958 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
21959
21960 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
21961 function.
21962 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
21963
21964 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
21965
21966 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
21967 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
21968 basic blocks and call commit_edge_insertions directly.
21969 (fixup_abnormal_edges): Move from here to...
21970 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
21971 on the edges and return whether some have actually been inserted.
21972 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
21973 compensation code.
21974
21975 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
21976
21977 PR rtl-optimization/48144
21978 * sel-sched-ir.c (merge_history_vect): Factor out from ...
21979 (merge_expr_data): ... here.
21980 (av_set_intersect): Rename to av_set_code_motion_filter.
21981 Update all callers. Call merge_history_vect when an expression
21982 is found in both sets.
21983 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
21984
21985 2011-03-26 Alan Modra <amodra@gmail.com>
21986
21987 * config/rs6000/predicates.md (word_offset_memref_op): Handle
21988 cmodel medium addresses.
21989 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
21990 64-bit gpr loads and stores.
21991 (rs6000_secondary_reload_ppc64): New function.
21992 * config/rs6000/rs6000-protos.h: Declare it.
21993 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
21994
21995 2011-03-26 Alan Modra <amodra@gmail.com>
21996
21997 PR target/47487
21998 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
21999 GNU Go in traceback table.
22000
22001 2011-03-25 Richard Henderson <rth@redhat.com>
22002
22003 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
22004 if there are exactly 6 operands.
22005 (set_storage_via_setmem): Similarly.
22006
22007 2011-03-25 Kai Tietz <ktietz@redhat.com>
22008
22009 * collect2.c (write_c_file_stat): Handle backslash
22010 as right-hand directory separator.
22011 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
22012 checking just for slash.
22013 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
22014 instead of checking for trailing slash.
22015 * gcc.c (record_temp_file): Use filename_cmp instead
22016 of strcmp.
22017 (do_spec_1): Likewise.
22018 (replace_outfile_spec_function): Likewise.
22019 (is_directory): Use filename_ncmp instead of strncmp.
22020 (print_multilib_info): Likewise.
22021 * gcov.c (find_source): Use filename_cmp instead
22022 instead of strcmp.
22023 (make_gcov_file_name): Fix order of slash/backslash
22024 checks.
22025 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
22026 (add_standard_paths): Likewise.
22027 * mips-tfile.c (saber_stop): Handle backslash.
22028 * prefix.c (update_path): Use filename_ncmp instead of
22029 strncmp.
22030 * profile.c (output_location): Use filename_cmp instead
22031 of strcmp.
22032 * read-md.c (handle_toplevel_file): Handle backslash.
22033 * tlink.c (frob_extension): Likewise.
22034 * tree-cfg.c (same_line_p): Use filename_cmp instead of
22035 strcmp.
22036 * tree-dump.c (dequeue_and_dump): Handle backslash.
22037 * tree.c (get_file_function_name): Likewise.
22038 * gengtype.c (read_input_list): Likewise.
22039 (get_file_realbasename): Likewise.
22040 (get_output_file_with_visibility): Use filename_cmp
22041 instead of strcmp.
22042
22043 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
22044
22045 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
22046 case to VFPv1.
22047
22048 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
22049
22050 * fold-const.c (expr_location_or): New function.
22051 (fold_truth_not_expr): Call it.
22052
22053 2011-03-25 Jeff Law <law@redhat.com>
22054
22055 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
22056 va_end.
22057 * c-family/c-common.c (def_fn_type): Likewise.
22058 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
22059 * emit-rtl.c (gen_rtvec): Likewise.
22060 * lto/lto-lang.c (def_fn_type): Likewise.
22061
22062 2011-03-25 Richard Guenther <rguenther@suse.de>
22063
22064 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
22065 also generate copies.
22066 (fini_copy_prop): Handle constant values properly.
22067
22068 2011-03-25 Jakub Jelinek <jakub@redhat.com>
22069
22070 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
22071 mode size instead of bitsize with DWARF2_ADDR_SIZE.
22072 (hash_loc_operands, compare_loc_operands): Handle
22073 DW_OP_GNU_entry_value.
22074
22075 2011-03-25 Kai Tietz <ktietz@redhat.com>
22076
22077 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
22078 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
22079 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
22080 comment and use macro TARGET_64BIT_MS_ABI instead.
22081 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
22082 and change default behavior for 32-bit MS_ABI.
22083 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
22084 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
22085 32-bit, too.
22086 (ix86_cfun_abi): Likewise.
22087 (ix86_maybe_switch_abi): Adjust comment.
22088 (init_cumulative_args): Check for bit-ness in MS_ABI case.
22089 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
22090 instead of checking for SYSV_ABI.
22091 (ix86_nsaved_sseregs): Likewise.
22092 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
22093 to 16 bytes.
22094 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
22095 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
22096 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
22097 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
22098 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
22099
22100 2011-03-25 Richard Guenther <rguenther@suse.de>
22101
22102 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
22103 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22104 (verify_gimple): Remove.
22105 * tree-cfg.c (verify_gimple_call): Merge verification
22106 from verify_stmts.
22107 (verify_gimple_phi): Merge verification from verify_stmts.
22108 (verify_gimple_label): New function.
22109 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
22110 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
22111 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
22112 (verify_stmts): Rename to verify_gimple_in_cfg.
22113 (verify_gimple_in_cfg): New function.
22114 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
22115 * tree-ssa.c (verify_ssa): Likewise.
22116 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
22117
22118 2011-03-25 Richard Guenther <rguenther@suse.de>
22119
22120 * passes.c (init_optimization_passes): Add FRE pass after
22121 early SRA.
22122
22123 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
22124 Andrew Stubbs <ams@codesourcery.com>
22125
22126 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
22127 for Cortex-A8.
22128 (arm_movdi_vfp_cortexa8): New pattern.
22129 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
22130 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
22131 instructions when tuning for Cortex-A8. Set attribute "arch".
22132 * config/arm/arm.md: Move include arm-tune.md up a bit.
22133 (define_attr "arch"): Add "onlya8" and "nota8" values.
22134 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
22135
22136 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
22137
22138 PR bootstrap/48282
22139 Revert:
22140 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22141
22142 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22143 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22144 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22145 * passes.c (init_optimization_passes): Move
22146 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22147
22148 2011-03-25 Kai Tietz <ktietz@redhat.com>
22149
22150 * c-typeck.c (comptypes_internal): Replace target
22151 hook call of comp_type_attributes by version in tree.c file.
22152 * gimple.c (gimple_types_compatible_p_1): Likewise.
22153 * tree-ssa.c (useless_type_conversion_p): Likewise.
22154 * tree.c (build_type_attribute_qual_variant): Likewise.
22155 (attribute_value_equal): New static helper function.
22156 (comp_type_attributes): New function.
22157 (merge_attributes): Use attribute_value_equal for comparison.
22158 (attribute_list_contained): Likewise.
22159 * tree.h (comp_type_attributes): New prototype.
22160
22161 2011-03-25 Richard Guenther <rguenther@suse.de>
22162
22163 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
22164 of complex types at -O0.
22165 (verify_gimple_assign_binary): Likewise.
22166 (verify_gimple_assign_ternary): Likewise.
22167
22168 2011-03-24 Mark Wielaard <mjw@redhat.com>
22169
22170 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
22171 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
22172
22173 2011-03-24 Mark Wielaard <mjw@redhat.com>
22174
22175 PR debug/48041
22176 * dwarf2out.c (output_abbrev_section): Only write table when
22177 abbrev_die_table_in_use > 1.
22178
22179 2011-02-24 Richard Henderson <rth@redhat.com>
22180
22181 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
22182 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
22183 (alpha_expand_unaligned_load_words): Use extql.
22184 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
22185 (emit_insxl): Handle all modes for consistency.
22186
22187 2011-02-24 Richard Henderson <rth@redhat.com>
22188
22189 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
22190 (alpha_expand_unaligned_load): Likewise.
22191 (alpha_expand_unaligned_store): Likewise.
22192 (alpha_expand_unaligned_load_words): Likewise.
22193 (alpha_expand_unaligned_store_words): Likewise.
22194 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
22195 (alpha_split_lock_test_and_set_12): Likewise.
22196 (print_operand, alpha_fold_builtin_extxx): Likewise.
22197 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
22198 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
22199 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
22200 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
22201 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
22202 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
22203 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
22204 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
22205 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
22206 (extwl, extll, extql): Similarly.
22207 (inswh, inslh, insqh): Similarly.
22208 (mskbl, mskwl, mskll, mskql): Similarly.
22209 (mskwh, msklh, mskqh): Similarly.
22210
22211 2011-02-24 Richard Henderson <rth@redhat.com>
22212
22213 * config/alpha/alpha.md (attribute isa): Add er, ner.
22214 (attribute enabled): Handle them.
22215 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
22216
22217 2011-02-24 Richard Henderson <rth@redhat.com>
22218
22219 * config/alpha/alpha.md (attribute isa): Add vms.
22220 (attribute enabled): Handle it.
22221 (*movsf): Merge *movsf_{nofix,fix,nofp}.
22222 (*movdf): Merge *movdf_{nofix,fix,nofp}.
22223 (*movtf): Rename from *movtf_internal for consistency.
22224 (*movsi): Merge with *movsi_nt_vms.
22225 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
22226 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
22227 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
22228 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
22229
22230 2011-02-24 Richard Henderson <rth@redhat.com>
22231
22232 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
22233 (extendqisi2, extendhisi2): Likewise.
22234 (extendqidi2): Simplify BWX/non-BWX expansions.
22235 (extendhidi2): Similarly.
22236
22237 2011-02-24 Richard Henderson <rth@redhat.com>
22238
22239 * config/alpha/alpha.md (attribute isa): New.
22240 (attribute enabled): New.
22241 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
22242 (zero_extendqisi2, zero_extendqidi2): Similarly.
22243 (zero_extendhisi2, zero_extendhidi2): Similarly.
22244 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
22245
22246 2011-02-24 Richard Henderson <rth@redhat.com>
22247
22248 * config/alpha/predicates.md (input_operand): Revert last change;
22249 update comment to mention 32-bit VMS rather than Windows.
22250
22251 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22252
22253 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
22254 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
22255 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
22256 * passes.c (init_optimization_passes): Move
22257 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
22258
22259 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22260
22261 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
22262
22263 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22264
22265 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
22266 correctly.
22267
22268 2011-03-24 Jakub Jelinek <jakub@redhat.com>
22269
22270 PR debug/48204
22271 * simplify-rtx.c (simplify_const_unary_operation): Call
22272 real_convert when changing mode class with FLOAT_EXTEND.
22273
22274 2011-03-24 Nick Clifton <nickc@redhat.com>
22275
22276 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
22277 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
22278 * config/rx/rx.c (rx_option_override): Set align_jumps,
22279 align_loops and align_labels if not set by the user.
22280 (rx_align_for_label): New function.
22281 (rx_max_skip_for_label): New function.
22282 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
22283 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
22284 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
22285 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
22286 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
22287
22288 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22289
22290 PR rtl-optimization/48263
22291 * optabs.c (expand_binop_directly): Reinstate convert_modes code
22292 and original commutative_p handling. Use maybe_gen_insn.
22293
22294 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22295
22296 * reload.c (find_reloads_subreg_address): Add address_reloaded
22297 parameter and return true there if the full address has been
22298 reloaded.
22299 (find_reloads_toplev): Pass address_reloaded flag.
22300 (find_reloads_address_1): Don't use address_reloaded parameter.
22301
22302 2011-03-24 Jeff Law <law@redhat.com>
22303
22304 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
22305 unused variable "ann".
22306 (remove_unused_locals): Likewise.
22307
22308 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
22309 statement.
22310
22311 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
22312 after it is freed.
22313
22314 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22315
22316 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
22317 for invalid symbolic addresses.
22318 (s390_secondary_reload): Don't use s390_check_symref_alignment for
22319 larl operands.
22320
22321 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22322
22323 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
22324 the argument in calls to fold_truth_not_expr.
22325
22326 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22327
22328 * tree.c (record_node_allocation_statistics): New function.
22329 (make_node_stat, copy_node_stat, build_string): Call it.
22330 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
22331 (build1_stat, build_omp_clause): Likewise.
22332
22333 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22334
22335 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
22336 last commit.
22337
22338 2011-03-24 Richard Guenther <rguenther@suse.de>
22339
22340 PR tree-optimization/48271
22341 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
22342 blocks that still exist.
22343
22344 2011-03-24 Richard Guenther <rguenther@suse.de>
22345
22346 PR tree-optimization/48270
22347 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
22348 not free datarefs before ddrs.
22349
22350 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
22351
22352 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
22353 from the address built for a reference with variable offset.
22354
22355 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
22356
22357 PR target/48237
22358 * config/i386/i386.md (*movdf_internal_rex64): Do not split
22359 alternatives that can be handled with movq or movabsq insn.
22360 (*movdf_internal): Disable for !TARGET_64BIT.
22361 (*movdf_internal_nointeger): Ditto.
22362 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
22363
22364 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
22365
22366 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
22367 (FUNCTION_ARG_ADVANCE): Likewise.
22368 * tm.texi.in: Change references to them to hook references.
22369 * tm.texi: Regenerate.
22370 * targhooks.c (default_function_arg): Eliminate check for target macro.
22371 (default_function_incoming_arg): Likewise.
22372 (default_function_arg_advance): Likewise.
22373 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
22374 (function_arg_advance): Likewise.
22375 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
22376
22377 2011-03-24 Richard Guenther <rguenther@suse.de>
22378
22379 PR middle-end/48269
22380 * tree-object-size.c (addr_object_size): Do not double-account
22381 for MEM_REF offsets.
22382
22383 2011-03-24 Diego Novillo <dnovillo@google.com>
22384
22385 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
22386 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
22387 (lto_input_data_block): Move from lto-opts.c. Make extern.
22388 Update all users.
22389 (lto_input_string): Rename from input_string. Make extern.
22390 Update all users.
22391 * lto-streamer-out.c (lto_output_string_with_length): Rename from
22392 output_string_with_length.
22393 Output 0 to indicate a non-NULL string. Update all callers to
22394 not emit 0.
22395 (lto_output_string): Rename from output_string. Make extern.
22396 Update all users.
22397 (lto_output_decl_state_streams): Make extern.
22398 (lto_output_decl_state_refs): Make extern.
22399 * lto-streamer.h (lto_input_string): Declare.
22400 (lto_input_data_block): Declare.
22401 (lto_output_string): Declare.
22402 (lto_output_string_with_length): Declare.
22403 (lto_output_decl_state_streams): Declare.
22404 (lto_output_decl_state_refs): Declare.
22405
22406 2011-03-24 Richard Guenther <rguenther@suse.de>
22407
22408 PR tree-optimization/46562
22409 * tree.c (build_invariant_address): New function.
22410 * tree.h (build_invariant_address): Declare.
22411 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
22412 a renamed function moved ...
22413 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
22414 Take valueization callback parameter.
22415 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
22416 * gimple-fold.h: New file.
22417 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
22418 (ccp_fold, fold_const_aggregate_ref,
22419 fold_ctor_reference, fold_nonarray_ctor_reference,
22420 fold_array_ctor_reference, fold_string_cst_ctor_reference,
22421 get_base_constructor): Move ...
22422 * gimple-fold.c: ... here.
22423 (gimple_fold_stmt_to_constant_1): New function
22424 split out from ccp_fold. Take a valueization callback parameter.
22425 Valueize all operands.
22426 (gimple_fold_stmt_to_constant): New wrapper function.
22427 (fold_const_aggregate_ref_1): New function split out from
22428 fold_const_aggregate_ref. Take a valueization callback parameter.
22429 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
22430 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
22431 invariant POINTER_PLUS_EXPRs to invariant form.
22432 (vn_valueize): New function.
22433 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
22434 * tree-vrp.c (vrp_valueize): New function.
22435 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
22436 to fold statements to constants.
22437 * tree-ssa-pre.c (eliminate): Properly guard propagation of
22438 function declarations.
22439 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
22440 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
22441
22442 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
22443
22444 * config/h8300/predicates.md (jump_address_operand): Fix register
22445 mode check.
22446
22447 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
22448
22449 * doc/invoke.texi (max-stores-to-sink): Document.
22450 * params.h (MAX_STORES_TO_SINK): Define.
22451 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
22452 if either vectorization or if-conversion is disabled.
22453 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
22454 tree-vect-data-refs.c vect_equal_offsets.
22455 (dr_equal_offsets_p): New function.
22456 (find_data_references_in_bb): Remove static.
22457 * tree-data-ref.h (find_data_references_in_bb): Declare.
22458 (dr_equal_offsets_p): Likewise.
22459 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
22460 (vect_drs_dependent_in_basic_block): Update calls to
22461 vect_equal_offsets.
22462 (vect_check_interleaving): Likewise.
22463 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
22464 (cond_if_else_store_replacement): Rename to...
22465 (cond_if_else_store_replacement_1): ... this. Change arguments and
22466 documentation.
22467 (cond_if_else_store_replacement): New function.
22468 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
22469 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
22470
22471 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
22472
22473 PR target/46934
22474 * config/arm/arm.md (casesi): Use the gen_int_mode() function
22475 to subtract lower bound instead of GEN_INT().
22476
22477 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
22478
22479 PR other/48179
22480 PR other/48221
22481 PR other/48234
22482 * doc/extend.texi (Alignment): Move section to match order in TOC.
22483 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
22484 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
22485
22486 2011-03-23 Jeff Law <law@redhat.com>
22487
22488 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
22489 before removing the edge.
22490
22491 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
22492 it may have been freed by redirect_branch_edge or
22493 redirect_edge_succ_nodup.
22494
22495 2011-03-23 Richard Guenther <rguenther@suse.de>
22496
22497 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
22498 (check_va_list_escapes): Likewise.
22499 (check_all_va_list_escapes): Likewise.
22500
22501 2011-03-23 Richard Guenther <rguenther@suse.de>
22502
22503 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
22504 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
22505 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
22506 (alias.o): Likewise.
22507 (ipa-type-escape.o): Remove.
22508 (ipa-struct-reorg.o): Likewise.
22509 (GTFILES): Remove ipa-struct-reorg.c.
22510 * alias.c: Do not include ipa-type-escape.h.
22511 * tree-ssa-alias.c: Likewise.
22512 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
22513 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
22514 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
22515 and ipa-type-escape passes.
22516 * tree-pass.h (pass_ipa_type_escape): Remove.
22517 (pass_ipa_struct_reorg): Likewise.
22518 * ipa-struct-reorg.h: Remove.
22519 * ipa-struct-reorg.c: Likewise.
22520 * ipa-type-escape.h: Likewise.
22521 * ipa-type-escape.c: Likewise.
22522 * doc/invoke.texi (-fipa-struct-reorg): Remove.
22523 (--param struct-reorg-cold-struct-ratio): Likewise.
22524 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22525 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
22526 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
22527
22528 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22529
22530 * config/s390/2084.md: Enable all insn reservations also for z9_ec
22531 cpu attribute value.
22532 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
22533 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
22534 * config/s390/s390.c (processor_flags_table): New constant array.
22535 (s390_handle_arch_option): Remove.
22536 (s390_handle_option): Remove s390_handle_arch_option invocations
22537 and OPT_mwarn_framesize_ handling.
22538 (s390_option_override): Remove s390_handle_arch_option invocation.
22539 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
22540 warnings.
22541 * config/s390/s390.md (cpu attribute): Add z9_ec value.
22542 * config/s390/s390.opt (s390_tune, s390_arch)
22543 (march=): Replace s390_arch_option enum and values with
22544 processor_type. Set variable name to s390_arch. Set
22545 initialization value.
22546 (mtune=): Replace s390_arch_option with processor_type. Set
22547 variable name to s390_tune. Set initialization value.
22548
22549 2011-03-23 Julian Brown <julian@codesourcery.com>
22550
22551 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
22552 accesses which are not naturally aligned.
22553
22554 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22555
22556 PR target/47553
22557 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
22558
22559 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
22560
22561 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
22562 parameter from "int" to "enum insn_code".
22563 (expand_operand_type): New enum.
22564 (expand_operand): New structure.
22565 (create_expand_operand): New function.
22566 (create_fixed_operand, create_output_operand): Likewise
22567 (create_input_operand, create_convert_operand_to): Likewise.
22568 (create_convert_operand_from, create_address_operand): Likewise.
22569 (create_integer_operand): Likewise.
22570 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
22571 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22572 (expand_insn, expand_jump_insn): Likewise.
22573 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
22574 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
22575 (expand_movstr, expand_builtin___clear_cache): Likewise.
22576 (expand_builtin_lock_release): Likewise.
22577 * explow.c (allocate_dynamic_stack_space): Likewise.
22578 (probe_stack_range): Likewise. Allow check_stack to FAIL,
22579 and use the default handling in that case.
22580 * expmed.c (check_predicate_volatile_ok): Delete.
22581 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
22582 (emit_cstore): Likewise.
22583 * expr.c (emit_block_move_via_movmem): Likewise.
22584 (set_storage_via_setmem, expand_assignment): Likewise.
22585 (emit_storent_insn, try_casesi): Likewise.
22586 (emit_single_push_insn): Likewise. Allow the expansion to fail.
22587 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
22588 (expand_vec_shift_expr, expand_binop_directly): Likewise.
22589 (expand_twoval_unop, expand_twoval_binop): Likewise.
22590 (expand_unop_direct, emit_indirect_jump): Likewise.
22591 (emit_conditional_move, vector_compare_rtx): Likewise.
22592 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
22593 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
22594 (expand_sync_lock_test_and_set): Likewise.
22595 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
22596 (emit_unop_insn): Likewise.
22597 (expand_copysign_absneg): Change icode to an insn_code.
22598 (create_convert_operand_from_type): New function.
22599 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
22600 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
22601 (expand_insn, expand_jump_insn): Likewise.
22602 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
22603 than const_int_operand for operand 2.
22604
22605 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22606
22607 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
22608 if possible.
22609
22610 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22611
22612 * emit-rtl.c (emit_pattern_before_noloc): New function.
22613 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
22614 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
22615 (emit_pattern_after_noloc): New function.
22616 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
22617 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
22618
22619 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
22620
22621 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
22622 (__ffsDI2): Likewise.
22623
22624 2011-03-22 Richard Henderson <rth@redhat.com>
22625
22626 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
22627 of !TARGET_ABI_OPEN_VMS.
22628 (alpha_trampoline_init, alpha_start_function): Likewise.
22629 (alpha_expand_epilogue, alpha_file_start): Likewise.
22630 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
22631 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
22632 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
22633 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
22634 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
22635
22636 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22637
22638 * config/s390/s390-opts.h: New.
22639 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
22640 s390_arch_flags, s390_warn_framesize, s390_stack_size,
22641 s390_stack_guard): Remove.
22642 (s390_handle_arch_option): Return void. Take enum
22643 s390_arch_option value instead of string and searching array.
22644 (s390_handle_option): Don't assert that global structures are in
22645 use. Access variables via opts pointer. Use error_at. Don't use
22646 sscanf for -mstack-guard= or -mstack-size=. Update call to
22647 s390_handle_arch_option.
22648 (s390_option_override): Update call to s390_handle_arch_option.
22649 (s390_emit_prologue): Use %d format for s390_stack_size in
22650 diagnostic. Use %wd for HOST_WIDE_INT.
22651 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
22652 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
22653 * config/s390/s390.opt (config/s390/s390-opts.h): New
22654 HeaderInclude entry.
22655 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
22656 s390_arch_flags, s390_warn_framesize): New Variable entries.
22657 (s390_arch_option): New Enum and EnumValue entries.
22658 (march=): Use Enum instead of Var.
22659 (mstack-guard=, mstack-size=): Use UInteger and Var.
22660 (mtune=): Use Enum.
22661
22662 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22663
22664 * config/score/score.c (score_handle_option): Don't assert that
22665 global structures are in use. Access target_flags via opts
22666 pointer. Use value of -march= option to determine target_flags
22667 settings.
22668 * config/score/score.opt (march=): Use Enum.
22669 (score_arch): New Enum and EnumValue entries.
22670
22671 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22672
22673 * config/mep/mep.c (option_mtiny_specified): Remove.
22674 (mep_option_override): Move register handling for -mivc2 from
22675 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
22676 instead of option_mtiny_specified.
22677 (mep_handle_option): Access target_flags via opts pointer. Don't
22678 assert that global structures are in use. Defer part of -mivc2
22679 handling and move it to mep_option_override.
22680 * config/mep/mep.opt (IVC2): New Mask entry.
22681 (mivc2): Use Var and Defer instead of Mask.
22682
22683 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22684
22685 * config/v850/v850-opts.h: New.
22686 * config/v850/v850.c (small_memory): Replace with
22687 small_memory_physical_max array. Make that array static const.
22688 (v850_handle_memory_option): Take integer value of argument. Take
22689 gcc_options pointer, option text and location. Return void.
22690 Update for changes to small memory structures.
22691 (v850_handle_option): Access target_flags via opts pointer. Don't
22692 assert that global structures are in use. Update calls to
22693 v850_handle_memory_option.
22694 (v850_encode_data_area): Update references to small memory settings.
22695 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
22696 (enum small_memory_type): Move to v850-opts.h.
22697 * config/v850/v850.opt (config/v850/v850-opts.h): New
22698 HeaderInclude entry.
22699 (small_memory_max): New Variable entry.
22700 (msda): Replace by pair of options msda= and msda-. Use UInteger.
22701 (mtda, mzda): Likewise.
22702
22703 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22704
22705 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
22706 pointer. Don't assert that global structures are in use.
22707
22708 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22709
22710 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
22711 via opts pointer. Don't assert that global structures are in use.
22712
22713 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22714
22715 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
22716 (munix=93): Use Var.
22717 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
22718 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
22719 * config/pa/pa-opts.h: New.
22720 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
22721 (pa_handle_option): Don't assert that global structures are in
22722 use. Access target_flags via opts pointer. Don't handle
22723 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
22724 OPT_munix_98 here.
22725 (pa_option_override): Handle deferred OPT_mfixed_range_.
22726
22727 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22728
22729 * config/mn10300/mn10300-opts.h: New.
22730 * config/mn10300/mn10300.c (mn10300_processor,
22731 mn10300_tune_string): Remove.
22732 (mn10300_handle_option): Don't assert that global structures are
22733 in use. Access mn10300_processor via opts pointer. Don't handle
22734 OPT_mtune_ here.
22735 * config/mn10300/mn10300.h (enum processor_type): Move to
22736 mn10300-opts.h.
22737 (mn10300_processor): Remove.
22738 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
22739 HeaderInclude entry.
22740 (mn10300_processor): New Variable entry.
22741 (mtune=): Use Var.
22742
22743 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22744
22745 * config/microblaze/microblaze.c: Don't include opts.h.
22746 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
22747 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
22748 (mno-clearbss): Use Var and Warn.
22749
22750 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22751
22752 * config/m32r/m32r-opts.h: New.
22753 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
22754 (m32r_handle_option): Don't assert that global structures are in
22755 use. Access target_flags and m32r_cache_flush_func via opts
22756 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
22757 OPT_mno_flush_trap here.
22758 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
22759 include of m32r-opts.h.
22760 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
22761 HeaderInclude entry.
22762 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
22763 (mmodel=): Use Enum and Var.
22764 (m32r_model): New Enum and EnumValue entries.
22765 (mno-flush-trap): Use Var.
22766 (msdata=): Use Enum and Var.
22767 (m32r_sdata): New Enum and EnumValue entries.
22768
22769 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22770
22771 * config/m32c/m32c.c: Don't include opts.h.
22772 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
22773 m32c_handle_option): Remove.
22774 (m32c_option_override): Check global_options_set.x_target_memregs
22775 instead of target_memregs_set.
22776 * config/m32c/m32c.h (target_memregs): Remove.
22777 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
22778 variable.
22779
22780 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22781
22782 * config/iq2000/iq2000-opts.h: New.
22783 * config/iq2000/iq2000.c: Don't include opts.h.
22784 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
22785 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
22786 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
22787 HeaderInclude entry.
22788 (iq2000_tune): New Variable entry.
22789 (march=): Add comment. Use Enum.
22790 (iq2000_arch): New Enum and EnumValue entries.
22791 (mcpu=): Use Enum and Var.
22792 (iq2000_tune): New Enum and EnumValue entries.
22793
22794 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22795
22796 * config/ia64/ia64-opts.h: New.
22797 * config/ia64/ia64.c (ia64_tune): Remove.
22798 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
22799 here. Use error_at.
22800 (ia64_option_override): Handle deferred OPT_mfixed_range_.
22801 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
22802 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
22803 HeaderInclude entry.
22804 (ia64_tune): New Variable entry.
22805 (mfixed-range=): Use Defer and Var.
22806 (mtune=): Use Enum and Var.
22807 (ia64_tune): New Enum and EnumValue entries.
22808
22809 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22810
22811 * config/frv/frv-opts.h: New.
22812 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
22813 frv-opts.h.
22814 (frv_cpu_type): Remove.
22815 * config/frv/frv.c: Don't include opts.h.
22816 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
22817 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
22818 (frv_cpu_type): New Variable entry.
22819 (frv_cpu): New Enum and EnumValue entries.
22820
22821 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22822
22823 * config/cris/cris.c (cris_handle_option): Access target_flags via
22824 opts pointer. Don't assert that global structures are in use.
22825 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
22826 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
22827
22828 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22829
22830 * config/bfin/bfin-opts.h: New.
22831 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
22832 bfin_si_revision, bfin_workarounds): Remove.
22833 (bfin_cpus): Make static const.
22834 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
22835 not bfin_lib_id_given.
22836 (bfin_handle_option): Don't set bfin_lib_id_given. Access
22837 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
22838 pointer. Use error_at. Don't assert that global structures are in use.
22839 * config/bfin/bfin.h: Include bfin-opts.h.
22840 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
22841 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
22842 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
22843 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
22844 entries.
22845
22846 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22847
22848 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
22849 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
22850 or -msoft-float here.
22851 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
22852 -msoft-float and -mhard-float.
22853 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
22854 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22855 msoft-float.
22856 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
22857 -msoft-float.
22858 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
22859 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
22860 not mhard-float.
22861 (LIBGCC_SPEC): Don't handle -msoft-float.
22862 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
22863 -mhard-float.
22864 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
22865 msoft-float.
22866 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
22867 -mfloat-abi=*, not -msoft-float and -mhard-float.
22868 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
22869 -msoft-float.
22870 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
22871 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
22872 mhard-float and msoft-float.
22873 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
22874 mfloat-abi=soft in comments, not mhard-float and msoft-float.
22875 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
22876 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
22877 mhard-float.
22878 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
22879 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
22880 msoft-float.
22881 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
22882 not mhard-float.
22883 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
22884 not msoft-float.
22885
22886 2011-03-22 Richard Henderson <rth@redhat.com>
22887
22888 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
22889 TARGET_ABI_WINDOWS_NT.
22890 (alpha_output_function_end_prologue): Likewise.
22891 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
22892 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
22893 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
22894 (trap, *movsi_nt_vms): Likewise.
22895 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
22896 (*tablejump_osf_nt_internal): Remove.
22897 * config/alpha/predicates.md (input_operand): Only test Pmode.
22898
22899 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22900
22901 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
22902 via opts pointer. Use error_at. Don't assert that global
22903 structures are in use.
22904
22905 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22906
22907 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
22908 (ix86_handle_option): Access ix86_isa_flags and
22909 ix86_isa_flags_explicit via opts pointer. Don't assert that
22910 global structures are in use.
22911 (ix86_function_specific_save, ix86_function_specific_restore):
22912 Update ix86_isa_flags_explicit field name.
22913 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
22914 (ix86_isa_flags_explicit): Rename TargetSave entry to
22915 x_ix86_isa_flags_explicit.
22916
22917 2011-03-22 Richard Henderson <rth@redhat.com>
22918
22919 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
22920 (alpha_option_override, direct_return): Likewise.
22921 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
22922 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
22923 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
22924 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
22925 (alpha_expand_epilogue, alpha_end_function): Likewise.
22926 (alpha_init_libfuncs): Likewise.
22927 (struct machine_function): Remove unicosmk members.
22928 (print_operand) ['t']: Remove.
22929 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
22930 unicosmk_output_module_name, unicosmk_output_common,
22931 current_section_align, unicosmk_output_text_section_asm_op,
22932 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
22933 unicosmk_section_type_flags, unicosmk_unique_section,
22934 unicosmk_asm_named_section, unicosmk_insert_attributes,
22935 unicosmk_output_align, unicosmk_defer_case_vector,
22936 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
22937 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
22938 unicosmk_output_ssib, unicosmk_add_call_info_word,
22939 unicosmk_extern_head, unicosmk_output_default_externs,
22940 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
22941 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
22942 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
22943 * config/alpha/alpha-protos.h: Update.
22944 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
22945 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
22946 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
22947 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
22948 (*mulsi_se, mulvsi3): Likewise.
22949 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
22950 (*divmodsi_internal, call, call_value, realign): Likewise.
22951 (moddi3, umoddi3): Likewise; remove duplicate expander.
22952 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
22953 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
22954 (*movdi_nofix): Remove r/U alternative.
22955 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
22956 * config/alpha/constraints.md ("U"): Remove.
22957 * config/alpha/predicates.md (call_operand"): Don't test
22958 TARGET_ABI_UNICOSMK.
22959
22960 2011-03-22 Joseph Myers <joseph@codesourcery.com>
22961
22962 * target.def (handle_option): Take gcc_options and
22963 cl_decoded_option pointers and location_t.
22964 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
22965 * doc/tm.texi: Regenerate.
22966 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
22967 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
22968 * lto-opts.c (lto_reissue_options): Generate option structure for
22969 targetm.handle_option call.
22970 * opts.c (target_handle_option): Update call to
22971 targetm.handle_option. Remove assertions about values now passed
22972 down to hook.
22973 * targhooks.c (default_target_handle_option): New.
22974 * targhooks.h (default_target_handle_option): Declare.
22975 * config/alpha/alpha.c: Include opts.h.
22976 (alpha_handle_option): Update to new hook interface.
22977 * config/arm/arm.c: Include opts.h.
22978 (arm_handle_option): Update to new hook interface.
22979 * config/arm/t-arm (arm.o): Update dependencies.
22980 * config/bfin/bfin.c: Include opts.h.
22981 (bfin_handle_option): Update to new hook interface.
22982 * config/cris/cris.c: Include opts.h.
22983 (cris_handle_option): Update to new hook interface.
22984 * config/frv/frv.c: Include opts.h.
22985 (frv_handle_option): Update to new hook interface.
22986 * config/i386/i386.c: Include opts.h.
22987 (ix86_handle_option): Update to new hook interface.
22988 (ix86_valid_target_attribute_inner_p): Generate option structure
22989 for call to ix86_handle_option.
22990 * config/i386/t-i386 (i386.o): Update dependencies.
22991 * config/ia64/ia64.c: Include opts.h.
22992 (ia64_handle_option): Update to new hook interface.
22993 * config/ia64/t-ia64 (ia64.o): Update dependencies.
22994 * config/iq2000/iq2000.c: Include opts.h.
22995 (iq2000_handle_option): Update to new hook interface.
22996 * config/m32c/m32c.c: Include opts.h.
22997 (m32c_handle_option): Update to new hook interface.
22998 * config/m32r/m32r.c: Include opts.h.
22999 (m32r_handle_option): Update to new hook interface.
23000 * config/m68k/m68k.c: Include opts.h.
23001 (m68k_handle_option): Update to new hook interface.
23002 * config/mep/mep.c: Include opts.h.
23003 (mep_handle_option): Update to new hook interface.
23004 * config/microblaze/microblaze.c: Include opts.h.
23005 (microblaze_handle_option): Update to new hook interface.
23006 * config/mips/mips.c: Include opts.h.
23007 (mips_handle_option): Update to new hook interface.
23008 * config/mn10300/mn10300.c: Include opts.h.
23009 (mn10300_handle_option): Update to new hook interface.
23010 * config/pa/pa.c: Include opts.h.
23011 (pa_handle_option): Update to new hook interface.
23012 * config/pdp11/pdp11.c: Include opts.h.
23013 (pdp11_handle_option): Update to new hook interface.
23014 * config/rs6000/rs6000.c: Include opts.h.
23015 (rs6000_handle_option): Update to new hook interface.
23016 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
23017 * config/rx/rx.c: Include opts.h.
23018 (rx_handle_option): Update to new hook interface.
23019 * config/s390/s390.c: Include opts.h.
23020 (s390_handle_option): Update to new hook interface.
23021 * config/score/score.c: Include opts.h.
23022 (score_handle_option): Update to new hook interface.
23023 * config/sh/sh.c: Include opts.h.
23024 (sh_handle_option): Update to new hook interface.
23025 * config/sparc/sparc.c: Include opts.h.
23026 (sparc_handle_option): Update to new hook interface.
23027 * config/v850/v850.c: Include opts.h.
23028 (v850_handle_option): Update to new hook interface.
23029
23030 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23031
23032 * gcc.c (driver_unknown_option_callback): Only permit and save
23033 unknown -Wno- options.
23034 (driver_wrong_lang_callback): Save options directly instead of via
23035 driver_unknown_option_callback.
23036
23037 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
23038
23039 * combine.c (simplify_set): Try harder to find the best CC mode when
23040 simplifying a nested COMPARE on the RHS.
23041
23042 2011-03-22 Joseph Myers <joseph@codesourcery.com>
23043
23044 * config/alpha/gnu.h: Remove.
23045 * config/arc: Remove directory.
23046 * config/arm/netbsd.h: Remove.
23047 * config/arm/t-pe: Remove.
23048 * config/crx: Remove directory.
23049 * config/i386/netbsd.h: Remove.
23050 * config/m68hc11: Remove directory.
23051 * config/m68k/uclinux-oldabi.h: Remove.
23052 * config/mcore/mcore-pe.h: Remove.
23053 * config/mcore/t-mcore-pe: Remove.
23054 * config/netbsd-aout.h: Remove.
23055 * config/rs6000/gnu.h: Remove.
23056 * config/sh/sh-symbian.h: Remove.
23057 * config/sh/symbian-base.c: Remove.
23058 * config/sh/symbian-c.c: Remove.
23059 * config/sh/symbian-cxx.c: Remove.
23060 * config/sh/symbian-post.h: Remove.
23061 * config/sh/symbian-pre.h: Remove.
23062 * config/sh/t-symbian: Remove.
23063 * config/svr3.h: Remove.
23064 * config/vax/netbsd.h: Remove.
23065 * config.build: Don't handle i[34567]86-*-pe.
23066 * config.gcc: Remove handling of deprecations for most deprecated
23067 targets.
23068 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
23069 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
23070 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
23071 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
23072 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
23073 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
23074 Remove cases.
23075 * config.host: Don't handle i[34567]86-*-pe.
23076 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
23077 (ASM_SPEC32): Don't handle -mcall-gnu.
23078 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
23079 -mcall-gnu.
23080 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
23081 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
23082 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
23083 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
23084 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
23085 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
23086 conditional on SYMBIAN.
23087 * configure.ac: Don't handle powerpc*-*-gnu*.
23088 * configure: Regenerate.
23089 * doc/extend.texi (interrupt attribute): Don't mention CRX.
23090 * doc/install-old.texi (m6811, m6812): Don't mention.
23091 * doc/install.texi (arc-*-elf*): Don't document multilib option.
23092 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
23093 (m68k-uclinuxoldabi): Don't mention.
23094 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
23095 Remove.
23096 (-mcall-gnu): Remove.
23097 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
23098 families): Remove constraint documentation.
23099
23100 2011-03-22 Marius Strobl <marius@FreeBSD.org>
23101
23102 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
23103 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
23104 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
23105
23106 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23107
23108 PR target/48226
23109 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
23110 vector when peeking at the next token for vector, don't expand the
23111 keywords.
23112
23113 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
23114
23115 * config/avr/avr-protos.h (expand_epilogue): Change prototype
23116 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
23117 * config/avr/avr.c (init_cumulative_args)
23118 (avr_function_arg_advance): Use it.
23119 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
23120 sibcall epilogues.
23121 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
23122 (avr_function_ok_for_sibcall): ...this new function.
23123 (avr_lookup_function_attribute1): New static Function.
23124 (avr_naked_function_p, interrupt_function_p)
23125 (signal_function_p, avr_OS_task_function_p)
23126 (avr_OS_main_function_p): Use it.
23127 * config/avr/avr.md ("sibcall", "sibcall_value")
23128 ("sibcall_epilogue"): New expander.
23129 ("*call_insn", "*call_value_insn"): New insn.
23130 ("call_insn", "call_value_insn"): Remove
23131 ("call", "call_value", "epilogue"): Change expander to handle
23132 sibling calls.
23133
23134 2011-03-21 Nick Clifton <nickc@redhat.com>
23135
23136 * doc/invoke.texi (Overall Options): Move closing brace to end of
23137 options list.
23138 (Optimization Options): Add missing @gol.
23139 (Directory Options): Likewise.
23140 (i386 and x86-64 Options): Likewise.
23141 (RS6000 and PowerPC Options): Likewise.
23142 (i386 and x86-64 Windows Options): Likewise.
23143 (V850 Options): Add text missing from descriptions.
23144
23145 2011-03-22 Richard Henderson <rth@redhat.com>
23146
23147 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
23148 (avr_incoming_return_addr_rtx): New.
23149 (emit_push_byte): New.
23150 (expand_prologue): Use it. Remove incorrect dwarf annotation for
23151 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
23152 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
23153 (emit_pop_byte): New.
23154 (expand_epilogue): Use it. Pop frame pointer by bytes.
23155 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
23156 (INCOMING_RETURN_ADDR_RTX): New.
23157 (INCOMING_FRAME_SP_OFFSET): New.
23158 (ARG_POINTER_CFA_OFFSET): New.
23159 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
23160 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
23161 (pophi): Remove.
23162
23163 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
23164
23165 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23166
23167 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
23168 (FUNCTION_ARG_ADVANCE): Likewise.
23169 * tm.texi.in: Change references to them to hook references.
23170 * tm.texi: Regenerate.
23171 * targhooks.c (default_function_arg): Eliminate check for target
23172 macro.
23173 (default_function_incoming_arg): Likewise.
23174 (default_function_arg_advance): Likewise.
23175 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
23176 (function_arg_advance): Likewise.
23177 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
23178
23179 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
23180
23181 * tree.c (build_call_1): New function.
23182 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
23183
23184 2011-03-22 Richard Guenther <rguenther@suse.de>
23185
23186 PR tree-optimization/48228
23187 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
23188 for single-arg PHIs.
23189
23190 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
23191
23192 PR rtl-optimization/48143
23193 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
23194 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
23195 sse2_cvtps2pd): Likewise.
23196
23197 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23198
23199 * recog.c (canonicalize_change_group): Use validate_unshare_change.
23200
23201 2011-03-22 Richard Guenther <rguenther@suse.de>
23202
23203 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
23204 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
23205 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
23206 and REALIGN_LOAD_EXPR.
23207 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
23208 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
23209 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
23210 DOT_PROD_EXPR case ...
23211 (expand_expr_real_2): ... here.
23212 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
23213 and REALIGN_LOAD_EXPR.
23214 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
23215 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
23216 (vect_create_epilog_for_reduction): Likewise.
23217 (vectorizable_reduction): Likewise.
23218 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
23219 * tree-vect-stmts.c (vectorizable_load): Likewise.
23220
23221 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
23222
23223 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
23224
23225 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23226
23227 * config/s390/s390.c (s390_delegitimize_address): Fix offset
23228 handling for PLTOFF/GOTOFF.
23229
23230 2011-03-22 Nick Clifton <nickc@redhat.com>
23231
23232 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
23233 trailing backslash from the end of the macro definition.
23234
23235 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23236
23237 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
23238 and PLT unspecs.
23239
23240 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
23241
23242 * expr.h (prepare_operand): Move to...
23243 * optabs.h (prepare_operand): ...here and change the insn code
23244 parameter from "int" to "enum insn_code".
23245 (insn_operand_matches): Declare.
23246 * expr.c (init_expr_target): Use insn_operand_matches.
23247 (compress_float_constant): Likewise.
23248 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
23249 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
23250 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
23251 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
23252 Likewise.
23253 (gen_cond_trap): Likewise.
23254 (prepare_operand): Likewise. Change icode to an insn_code.
23255 (insn_operand_matches): New function.
23256 * reload.c (find_reloads_address_1): Use insn_operand_matches.
23257 * reload1.c (gen_reload): Likewise.
23258 * targhooks.c (default_secondary_reload): Likewise.
23259
23260 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23261
23262 * config/alpha/alpha.md (unspec): New define_c_enum.
23263 (unspecv): Ditto.
23264
23265 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
23266
23267 PR debug/48214
23268 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
23269 between a call and its CALL_ARG_LOCATION note.
23270
23271 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
23272
23273 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
23274
23275 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23276
23277 PR c/42544
23278 PR c/48197
23279 * c-common.c (shorten_compare): If primopN is first sign-extended
23280 to opN and then zero-extended to result type, set primopN to opN.
23281
23282 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
23283
23284 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
23285 for barrier handlers.
23286
23287 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
23288
23289 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
23290 UNSPEC constants to be in the unspec enumeration, and redefine
23291 all UNSPECV constants to be in the unspecv enumeration, so that
23292 dumps print which unspec/unspec_volatile this is.
23293 * config/rs6000/vector.md (UNSPEC_*): Ditto.
23294 * config/rs6000/paired.md (UNSPEC_*): Ditto.
23295 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
23296 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
23297 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
23298
23299 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
23300 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
23301 UNSPECV_LWSYNC, since these are used as unspec_volatile.
23302 * config/rs6000/sync.md (isync, lwsync): Ditto.
23303
23304 2011-03-21 Richard Guenther <rguenther@suse.de>
23305
23306 * params.def (lto-min-partition): Fix typo.
23307
23308 2011-03-21 Richard Guenther <rguenther@suse.de>
23309
23310 PR c/47939
23311 * c-decl.c (grokdeclarator): Drop to the main variant only
23312 for array types. Drop flag_gen_aux_info check.
23313
23314 2011-03-21 Richard Guenther <rguenther@suse.de>
23315
23316 PR translation/47911
23317 * params.def (lto-partitions): Fix typo.
23318 (lto-min-partition): Fix wording.
23319
23320 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
23321
23322 * config/rs6000/t-freebsd: Remove duplication from file.
23323
23324 2011-03-21 Richard Guenther <rguenther@suse.de>
23325
23326 PR middle-end/47661
23327 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
23328
23329 2011-03-21 Richard Guenther <rguenther@suse.de>
23330
23331 PR lto/48210
23332 * params.def (lto-partitions): Require at least 1 partition.
23333
23334 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23335
23336 * gthr-solaris.h: Remove.
23337 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
23338 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
23339 (LIB_SPEC): Likewise.
23340 * config/sol2.opt (threads): Remove.
23341 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
23342 (sparc*-*-solaris2*): Likewise.
23343 * configure.ac (enable_threads): Enable solaris support.
23344 * configure: Regenerate.
23345 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
23346 * doc/install.texi (Configuration, --enable-threads=lib): Remove
23347 solaris.
23348
23349 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23350
23351 * config.gcc: Obsolete *-*-solaris2.8*.
23352 * doc/install.texi (Specific, *-*-solaris2*): Document it.
23353
23354 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23355
23356 PR bootstrap/48135
23357 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
23358 reference. Solaris 8 perl works.
23359
23360 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23361
23362 PR bootstrap/48135
23363 * doc/install.texi (Prerequisites): Move jar etc. up.
23364 Explain support library version requirements.
23365
23366 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23367
23368 PR bootstrap/48135
23369 * doc/install.texi (Prerequisites): Move Perl to build
23370 requirements. Always necessary on Solaris 2 with Sun ld.
23371
23372 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23373
23374 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
23375 binutils 2.21.
23376 (Specific, i?86-*-solaris2.[89]): Likewise.
23377 (Specific, i?86-*-solaris2.10): Likewise.
23378 (Specific, mips-sgi-irix6): Likewise.
23379 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
23380 Update for binutils 2.21.
23381
23382 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23383
23384 * configure.ac (gcc_cv_lto_plugin): Fix typo.
23385 Allow -fuse-linker-plugin for non-default plugin linker.
23386 * configure: Regenerate.
23387
23388 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
23389
23390 PR bootstrap/48167
23391 * gengtype.c (files_rules): Added rule for cp/parser.h.
23392
23393 2011-03-21 Jakub Jelinek <jakub@redhat.com>
23394
23395 PR target/48213
23396 * config/s390/s390.c (s390_delegitimize_address): Don't call
23397 lowpart_subreg if orig_x has BLKmode.
23398
23399 2011-03-21 Kai Tietz <ktietz@redhat.com>
23400
23401 PR target/12171
23402 * doc/plugins.texi: Adjust documentation for plugin register_callback.
23403 * tree.h (attribute_spec): Add new member affects_type_identity.
23404 * attribs.c (empty_attribute_table): Adjust attribute_spec
23405 initializers.
23406 * config/alpha/alpha.c: Likewise.
23407 * config/arc/arc.c: Likewise.
23408 * config/arm/arm.c: Likewise.
23409 * config/avr/avr.c: Likewise.
23410 * config/bfin/bfin.c: Likewise.
23411 * config/crx/crx.c: Likewise.
23412 * config/darwin.h: Likewise.
23413 * config/h8300/h8300.c: Likewise.
23414 * config/i386/cygming.h: Likewise.
23415 * config/i386/i386.c: Likewise.
23416 * config/ia64/ia64.c: Likewise.
23417 * config/m32c/m32c.c: Likewise.
23418 * config/m32r/m32r.c: Likewise.
23419 * config/m68hc11/m68hc11.c: Likewise.
23420 * config/m68k/m68k.c: Likewise.
23421 * config/mcore/mcore.c: Likewise.
23422 * config/mep/mep.c: Likewise.
23423 * config/microblaze/microblaze.c: Likewise.
23424 * config/mips/mips.c: Likewise.
23425 * config/rs6000/rs6000.c: Likewise.
23426 * config/rx/rx.c: Likewise.
23427 * config/sh/sh.c: Likewise.
23428 * config/sol2.h: Likewise.
23429 * config/sparc/sparc.c: Likewise.
23430 * config/spu/spu.c: Likewise.
23431 * config/stormy16/stormy16.c: Likewise.
23432 * config/v850/v850.c: Likewise.
23433
23434 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
23435
23436 * simplify-rtx.c (simplify_binary_operation_1): Handle
23437 (xor (and A B) C) case when B and C are both constants.
23438
23439 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
23440
23441 * tree-dfa.c (add_referenced_var): Fix typo in comment.
23442
23443 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
23444
23445 PR bootstrap/48168
23446 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
23447
23448 2011-03-20 Jakub Jelinek <jakub@redhat.com>
23449
23450 PR rtl-optimization/48156
23451 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
23452 assume df and df_lr are not NULL.
23453
23454 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23455
23456 PR debug/48023
23457 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
23458 between a call and its CALL_ARG_LOCATION note.
23459
23460 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
23461
23462 PR debug/48178
23463 * config/sh/sh.c (find_barrier): Don't emit a constant pool
23464 between a call and its corresponding CALL_ARG_LOCATION note.
23465
23466 2011-03-19 Anatoly Sokolov <aesok@post.ru>
23467
23468 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
23469 instead of loop. Use HARD_REGISTER_NUM_P predicate.
23470 * haifa-sched.c (setup_ref_regs): Ditto.
23471 * caller-save.c (add_used_regs_1): Ditto.
23472 * dse.c (look_for_hardregs): Ditto.
23473 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
23474 * sched-rgn.c (check_live_1): Ditto.
23475
23476 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23477
23478 * c-decl.c (diagnose_mismatched_decls): Give an error for
23479 redefining a typedef with variably modified type.
23480
23481 2011-03-18 Joseph Myers <joseph@codesourcery.com>
23482
23483 * c-decl.c (grokfield): Don't allow typedefs for structures or
23484 unions with no tag by default.
23485 * doc/extend.texi (Unnamed Fields): Update.
23486
23487 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
23488
23489 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
23490 Rewrite using indirect functions.
23491 (lwp_slwpcb): Ditto.
23492 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
23493 (avx_vinsertf128<mode>): Ditto.
23494
23495 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23496
23497 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
23498 unspecs.
23499
23500 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23501
23502 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
23503 splitting between a call and its corresponding CALL_ARG_LOCATION note.
23504
23505 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
23506
23507 PR rtl-optimization/48170
23508 * gcse.c (hoist_code): Remove bogus asserts.
23509
23510 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
23511
23512 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
23513 computation for prologue/epilogue.
23514
23515 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23516
23517 * Makefile.in (check-consistency): Remove.
23518
23519 2011-03-18 Jakub Jelinek <jakub@redhat.com>
23520
23521 PR debug/48176
23522 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
23523 arange_table_in_use is 0, but either text_section_used or
23524 cold_text_section_used is true. Don't call it if
23525 !info_section_emitted.
23526
23527 2011-03-18 Anatoly Sokolov <aesok@post.ru>
23528
23529 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
23530 FUNCTION_VALUE_REGNO_P): Remove.
23531 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
23532 Remove.
23533 * config/avr/avr.c (avr_ret_register): Make static inline.
23534 (avr_function_value_regno_p): New function.
23535 (avr_libcall_value): Make static. Add 'func' argument.
23536 (avr_function_value): Make static. Rename 'func' argument to
23537 'fn_decl_or_type', forward it to avr_libcall_value. Call
23538 avr_ret_register function instead of RET_REGISTER macro.
23539 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23540
23541 2011-03-18 Jason Merrill <jason@redhat.com>
23542
23543 PR c++/23372
23544 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
23545
23546 2011-03-18 Richard Guenther <rguenther@suse.de>
23547
23548 * doc/install.texi (--enable-gold): Remove.
23549 (--with-plugin-ld): Document.
23550 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
23551
23552 2011-03-18 Andrew Pinski <pinskia@gmail.com>
23553
23554 PR middle-end/47790
23555 * expr.c (optimize_bitfield_assignment_op): Revamp to work
23556 again after expansion changes.
23557
23558 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
23559
23560 * combine.c (try_combine): Do simplification only call of
23561 subst() on i2 even when i1 is present. Update comments.
23562
23563 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
23564
23565 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
23566 and UNSPEC_PCREL_SYMOFF.
23567
23568 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23569
23570 * config/s390/s390.md: Use define_c_enum for the unspec constant
23571 definitions.
23572
23573 2011-03-18 Richard Henderson <rth@redhat.com>
23574 Jakub Jelinek <jakub@redhat.com>
23575
23576 PR bootstrap/48161
23577 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
23578 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
23579
23580 2011-03-17 Anatoly Sokolov <aesok@post.ru>
23581
23582 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
23583 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
23584 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
23585 Change return type to bool.
23586 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
23587
23588 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23589
23590 PR debug/48163
23591 * var-tracking.c (prepare_call_arguments): If CALL target
23592 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
23593 pc instead of looking it up using cselib_lookup and use
23594 Pmode for it if x has VOIDmode.
23595 * dwarf2out.c (gen_subprogram_die): If also both first and
23596 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
23597
23598 PR debug/48163
23599 * function.c (assign_parms): For data.passed_pointer parms
23600 use MEM of data.entry_parm instead of data.entry_parm itself
23601 as DECL_INCOMING_RTL.
23602 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
23603 also when passed and declared mode is the same, DECL_RTL
23604 is a MEM with pseudo as address and DECL_INCOMING_RTL is
23605 a MEM too.
23606
23607 2011-03-16 Jeff Law <law@redhat.com>
23608
23609 PR rtl-optimization/37273
23610 * ira-costs.c (scan_one_insn): Detect constants living in memory and
23611 handle them like argument loads from stack slots. Do not double
23612 count memory for memory constants and argument loads from stack slots.
23613
23614 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23615
23616 PR debug/48160
23617 * var-tracking.c (prepare_call_arguments): Check SUBREG.
23618
23619 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
23620
23621 PR target/48171
23622 * config/i386/i386.opt: Add Save to -mavx and -mfma.
23623
23624 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23625
23626 PR bootstrap/48153
23627 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
23628 if dwarf_strict.
23629 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
23630 Clear call_arg_locations and call_arg_loc_last always.
23631
23632 PR middle-end/48152
23633 * var-tracking.c (prepare_call_arguments): If argument needs to be
23634 passed by reference, adjust argtype and mode.
23635
23636 2011-03-17 Richard Guenther <rguenther@suse.de>
23637
23638 PR middle-end/48134
23639 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
23640 a value make sure to fold the statement.
23641
23642 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
23643
23644 PR target/43872
23645 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
23646 return condition with !cfun->calls_alloca.
23647
23648 2011-03-17 Richard Guenther <rguenther@suse.de>
23649
23650 PR bootstrap/48148
23651 * lto-cgraph.c (input_overwrite_node): Clear the abstract
23652 origin for decls in other ltrans units.
23653 (input_varpool_node): Likewise.
23654
23655 2011-03-17 Richard Guenther <rguenther@suse.de>
23656
23657 PR middle-end/48165
23658 * tree-object-size.c (compute_object_offset): Properly return
23659 the offset operand of MEM_REFs as sizetype.
23660
23661 2011-03-17 Jakub Jelinek <jakub@redhat.com>
23662
23663 PR rtl-optimization/48141
23664 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
23665 * dse.c: Include params.h.
23666 (active_local_stores_len): New variable.
23667 (add_wild_read, dse_step1): Clear it when setting active_local_stores
23668 to NULL.
23669 (record_store, check_mem_read_rtx): Decrease it when removing
23670 from the chain.
23671 (scan_insn): Likewise. Increase it when adding to chain, if it
23672 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
23673 set active_local_stores to NULL before the addition.
23674 * Makefile.in (dse.o): Depend on $(PARAMS_H).
23675
23676 PR rtl-optimization/48141
23677 * dse.c (record_store): If no positions are needed in an insn
23678 that cannot be deleted, at least unchain it from active_local_stores.
23679
23680 2011-03-16 Dodji Seketeli <dodji@redhat.com>
23681
23682 PR debug/47510
23683 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
23684 (lookup_type_die_strip_naming_typedef): ... here.
23685 (get_context_die): Use it.
23686 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
23687 the anonymous struct named by the naming typedef.
23688
23689 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
23690
23691 PR target/48154
23692 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
23693 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
23694
23695 2011-03-16 Jeff Law <law@redhat.com>
23696
23697 * tree-vrp.c (identify_jump_threads): Slightly simplify type
23698 check for operands of conditional. Allow type to be a pointer.
23699
23700 2011-03-16 Richard Guenther <rguenther@suse.de>
23701
23702 PR tree-optimization/48149
23703 * fold-const.c (fold_binary_loc): Fold
23704 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
23705
23706 2011-03-16 Richard Guenther <rguenther@suse.de>
23707
23708 PR tree-optimization/26134
23709 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
23710 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
23711 (non_rewritable_mem_ref_base): Handle complex type component
23712 accesses, constrain offsets for vector and complex extracts
23713 more properly.
23714
23715 2011-03-16 Richard Guenther <rguenther@suse.de>
23716
23717 PR tree-optimization/48146
23718 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
23719 operands avoiding the need for renaming.
23720
23721 2011-03-16 Richard Guenther <rguenther@suse.de>
23722
23723 * gimple-fold.c (maybe_fold_reference): Open-code relevant
23724 constant folding. Move MEM_REF canonicalization first.
23725 Rely on fold_const_aggregate_ref for initializer folding.
23726 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
23727
23728 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23729
23730 PR middle-end/48136
23731 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
23732 arg0/arg1 or their arguments are always fold converted to matching
23733 types.
23734
23735 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
23736 to nargs.
23737
23738 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23739
23740 PR lto/46944
23741 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
23742 Handle in-tree gold.
23743 (ld_vers): Extract binutils version for gold.
23744 (gcc_cv_ld_hidden): Handle gold here.
23745 (gcc_cv_lto_plugin): Determine level of linker plugin support.
23746 * configure: Regenerate.
23747 * config.in: Regenerate.
23748 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
23749 -fuse-linker-plugin otherwise.
23750 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
23751 (LINK_COMMAND_SPEC): Use it.
23752 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
23753
23754 2011-03-16 Jakub Jelinek <jakub@redhat.com>
23755
23756 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
23757 * calls.c: Remove debug.h include.
23758 (emit_call_1): Don't call virtual_call_token debug hook.
23759 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
23760 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
23761 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
23762 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
23763 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
23764 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
23765 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
23766 dwarf2out_virtual_call): Remove.
23767 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
23768 copy_call_info and virtual_call hooks.
23769 (dwarf2out_init): Don't initialize vcall_insn_table,
23770 debug_dcall_section and debug_vcall_section.
23771 (prune_unused_types): Don't mark nodes from dcall_table.
23772 (dwarf2out_finish): Don't output dcall or vcall tables.
23773 * final.c (final_scan_insn): Don't call direct_call or
23774 virtual_call debug hooks.
23775 * debug.h (struct gcc_debug_hooks): Remove direct_call,
23776 virtual_call_token, copy_call_info and virtual_call hooks.
23777 (debug_nothing_uid): Remove prototype.
23778 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
23779 copy_call_info and virtual_call hooks.
23780 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
23781 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
23782 * debug.c (do_nothing_debug_hooks): Likewise.
23783 (debug_nothing_uid): Remove.
23784 * doc/invoke.texi (-fenable-icf-debug): Remove.
23785 * common.opt (-fenable-icf-debug): Likewise.
23786
23787 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
23788 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
23789 call's MEM. Handle functions returning aggregate through a hidden
23790 first pointer. For virtual calls add clobbered pc to call arguments
23791 chain.
23792 * dwarf2out.c (gen_subprogram_die): Emit
23793 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
23794 can't be emitted.
23795
23796 PR debug/45882
23797 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
23798 * rtl.h (ENTRY_VALUE_EXP): Define.
23799 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
23800 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
23801 * print-rtl.c (print_rtx): Likewise.
23802 * gengtype.c (adjust_field_rtx_def): Likewise.
23803 * var-tracking.c (vt_add_function_parameter): Adjust
23804 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
23805 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
23806 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
23807 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
23808 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
23809
23810 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
23811 Call var_location debug hook even on CALL_INSNs.
23812 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
23813 * rtl.def (ENTRY_VALUE): New.
23814 * dwarf2out.c: Include cfglayout.h.
23815 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
23816 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
23817 (struct call_arg_loc_node): New type.
23818 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
23819 tail_call_site_count): New variables.
23820 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
23821 DW_TAG_GNU_call_site_parameter.
23822 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
23823 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
23824 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
23825 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
23826 and DW_AT_GNU_all_source_call_sites.
23827 (mem_loc_descriptor): Handle ENTRY_VALUE.
23828 (add_src_coords_attributes): Don't add enything if
23829 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
23830 (dwarf2out_abstract_function): Save and clear call_arg_location,
23831 call_site_count and tail_call_site_count around dwarf2out_decl call.
23832 (gen_call_site_die): New function.
23833 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
23834 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
23835 (dwarf2out_function_decl): Clear call_arg_locations,
23836 call_arg_loc_last, set call_site_count and tail_call_site_count
23837 to -1 and free block_map.
23838 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
23839 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
23840 followed by any real instructions.
23841 (dwarf2out_begin_function): Set call_site_count and
23842 tail_call_site_count to 0.
23843 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
23844 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
23845 attempt to force a DIE for it and worst case remove the attribute.
23846 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
23847 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
23848 the decl itself.
23849 * var-tracking.c: Include tm_p.h.
23850 (vt_stack_adjustments): For calls call note_register_arguments.
23851 (argument_reg_set): New variable.
23852 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
23853 ensure the VALUE is resolved.
23854 (call_arguments): New variable.
23855 (prepare_call_arguments): New function.
23856 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
23857 (struct expand_loc_callback_data): Add ignore_cur_loc field.
23858 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
23859 always use the best expression.
23860 (vt_expand_loc): Add ignore_cur_loc argument.
23861 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
23862 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
23863 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
23864 note for all calls.
23865 (vt_add_function_parameter): Use cselib_lookup_from_insn.
23866 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
23867 argument. Don't call cselib_preserve_only_values and
23868 cselib_reset_table.
23869 (note_register_arguments): New function.
23870 (vt_initialize): Compute argument_reg_set. Call
23871 vt_add_function_parameters before processing basic blocks instead of
23872 afterwards. For calls call prepare_call_arguments before calling
23873 cselib_process_insn.
23874 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
23875 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
23876 (var-tracking.o): Depend on $(TM_P_H).
23877 * cfglayout.h (insn_scope): New prototype.
23878 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
23879 * cfglayout.c (insn_scope): No longer static.
23880 * insn-notes.def (CALL_ARG_LOCATION): New.
23881 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
23882 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
23883 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
23884 nothing for DECL_EXTERNAL BLOCK_VARS.
23885
23886 2011-03-16 Alan Modra <amodra@gmail.com>
23887
23888 PR target/45844
23889 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
23890 create invalid offset address for vsx splat insn.
23891 * config/rs6000/predicates.md (splat_input_operand): New.
23892 * config/rs6000/vsx.md (vsx_splat_*): Use it.
23893
23894 2011-03-15 Xinliang David Li <davidxl@google.com>
23895
23896 PR c/47837
23897 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
23898 (normalize_preds): New function.
23899 (is_use_properly_guarded): Normalize def predicates.
23900
23901 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
23902
23903 PR target/46788
23904 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
23905 in the output template.
23906
23907 2011-03-15 Richard Guenther <rguenther@suse.de>
23908
23909 PR middle-end/47650
23910 * tree-pretty-print.c (dump_function_declaration): Properly
23911 dump unprototyped and varargs function types.
23912
23913 2011-03-15 Richard Guenther <rguenther@suse.de>
23914
23915 PR tree-optimization/13954
23916 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
23917 and friends.
23918
23919 2011-03-15 Richard Guenther <rguenther@suse.de>
23920
23921 PR tree-optimization/48037
23922 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
23923 selects into BIT_FIELD_REFs.
23924 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
23925 vector select.
23926
23927 2011-03-15 Jakub Jelinek <jakub@redhat.com>
23928
23929 PR tree-optimization/48129
23930 * builtins.c (fold_builtin_snprintf): Convert to type of
23931 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
23932 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
23933
23934 2011-03-15 Richard Guenther <rguenther@suse.de>
23935
23936 PR tree-optimization/41490
23937 * tree-ssa-dce.c (propagate_necessity): Handle returns without
23938 value but with VUSE.
23939 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
23940 return statements.
23941 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
23942 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
23943 * tree-tailcall.c (find_tail_calls): Ignore returns.
23944
23945 2011-03-15 Richard Guenther <rguenther@suse.de>
23946
23947 PR middle-end/48031
23948 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
23949 or variable-indexed array accesses when in gimple form.
23950
23951 2011-03-15 Richard Guenther <rguenther@suse.de>
23952
23953 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
23954
23955 2011-03-15 Alan Modra <amodra@gmail.com>
23956
23957 PR target/48032
23958 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
23959 presume symbol_refs without a symbol_ref_decl are suitably
23960 aligned, nor other trees we may see here. Handle anchor symbols.
23961 (legitimate_constant_pool_address_p): Comment. Add mode param.
23962 Check cmodel=medium addresses. Adjust all calls.
23963 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
23964 creating cmodel=medium optimized access to locals.
23965 * config/rs6000/constraints.md (R): Pass QImode to
23966 legitimate_constant_pool_address_p.
23967 * config/rs6000/predicates.md (input_operand): Pass mode to
23968 legitimate_constant_pool_address_p.
23969 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
23970 Update prototype.
23971
23972 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23973
23974 PR target/48053
23975 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
23976 64-bit constants being loaded into registers other than GPRs such
23977 as loading 0 into a VSX register.
23978
23979 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23980
23981 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
23982
23983 2011-03-14 Jakub Jelinek <jakub@redhat.com>
23984
23985 PR middle-end/47917
23986 * builtins.c (fold_builtin_snprintf): New function.
23987 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
23988 (fold_builtin_4): Likewise.
23989
23990 PR middle-end/38878
23991 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
23992 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
23993 and C - X == X also strip nops from +/-/p+ operand.
23994 When optimizing -X == C, fold C to arg0's type.
23995
23996 PR debug/47946
23997 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
23998 emit it as add_AT_int instead of add_AT_unsigned.
23999
24000 2011-03-14 Tom Tromey <tromey@redhat.com>
24001
24002 * unwind-dw2.c: Include sys/sdt.h if it exists.
24003 (_Unwind_DebugHook): Use STAP_PROBE2.
24004 * config.in, configure: Rebuild.
24005 * configure.ac: Check for sys/sdt.h.
24006
24007 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
24008
24009 * config/i386/i386.md (ROUND_FLOOR): New constant.
24010 (ROUND_CEIL): Ditto.
24011 (ROUND_TRUNC): Ditto.
24012 (ROUND_MXCSR): Ditto.
24013 (ROUND_NO_EXC): Ditto.
24014 (rint<mode>2): Use new defines instead of numerical constants.
24015 (floor<mode>2): Ditto.
24016 (ceil<mode>2): Ditto.
24017 (btrunc<mode>2): Ditto.
24018 * config/i386/i386-builtin-types.def: Define ROUND function type
24019 aliases.
24020 * config/i386/i386.c (enum ix86_builtins): Add
24021 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
24022 (struct builtin_description): Add
24023 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
24024 (ix86_expand_sse_round): New static function.
24025 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
24026 function types.
24027 (ix86_builtin_vectorized_function): Handle
24028 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
24029
24030 2011-03-14 Tom Tromey <tromey@redhat.com>
24031
24032 * c-parser.c (c_parser_asm_string_literal): Clear
24033 warn_overlength_strings.
24034
24035 2011-03-14 Tom Tromey <tromey@redhat.com>
24036
24037 * c-parser.c (disable_extension_diagnostics): Save
24038 warn_overlength_strings.
24039 (restore_extension_diagnostics): Restore warn_overlength_strings.
24040
24041 2011-03-14 Jakub Jelinek <jakub@redhat.com>
24042
24043 * BASE-VER: Change to 4.7.0.
24044
24045 2011-03-14 Richard Guenther <rguenther@suse.de>
24046
24047 PR middle-end/48098
24048 * tree.c (build_vector_from_val): Adjust assert to requirements
24049 and reality.
24050
24051 2011-03-14 Jakub Jelinek <jakub@redhat.com>
24052
24053 PR bootstrap/48102
24054 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
24055
24056 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
24057
24058 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
24059 terms of target_flags_explicit. Adjust copyright year.
24060
24061 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
24062 * config/rs6000/t-freebsd: New file. Add override for
24063 LIB2FUNCS_EXTRA.
24064
24065 2011-03-13 Chris Demetriou <cgd@google.com>
24066
24067 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
24068 (-fno-diagnostics-show-option): this, to reflect current default.
24069 (-Werror=): Update text about -fno-diagnostics-show-option.
24070
24071 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
24072
24073 PR target/48053
24074 * config/rs6000/predicates.md (easy_vector_constant_add_self,
24075 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
24076 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
24077 mode is not V2DImode or V2DFmode.
24078 (vspltis_constant): Do not handle V2DImode and V2DFmode.
24079 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
24080 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
24081 registers to 0.
24082 (movdi_internal64): Likewise.
24083
24084 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
24085
24086 PR tree-optimization/47127
24087 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
24088 parameter.
24089 (set_cloog_options): Same.
24090 (scop_to_clast): Same.
24091 (print_clast_stmt): Do not call cloog_state_malloc and
24092 cloog_state_free.
24093 (print_generated_program): Same.
24094 (gloog): Same.
24095 * graphite-clast-to-gimple.h (cloog_state): Declared.
24096 (scop_to_clast): Adjust declaration.
24097 * graphite.c (cloog_state): Defined here.
24098 (graphite_initialize): Call cloog_state_malloc.
24099 (graphite_finalize): Call cloog_state_free.
24100
24101 2011-03-11 Jason Merrill <jason@redhat.com>
24102
24103 * attribs.c (lookup_attribute_spec): Take const_tree.
24104 * tree.h: Adjust.
24105
24106 2011-03-11 Joseph Myers <joseph@codesourcery.com>
24107
24108 * config/sparc/sparc.c (sparc_option_override): Use
24109 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
24110
24111 2011-03-11 Richard Guenther <rguenther@suse.de>
24112
24113 PR tree-optimization/48067
24114 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
24115 multiplication result will be only used once on the target
24116 stmt.
24117
24118 2011-03-11 Richard Guenther <rguenther@suse.de>
24119
24120 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
24121
24122 2011-03-11 Richard Guenther <rguenther@suse.de>
24123
24124 PR lto/48073
24125 * tree.c (find_decls_types_r): Do not walk types only reachable
24126 from IDENTIFIER_NODEs.
24127
24128 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24129
24130 PR middle-end/48044
24131 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
24132 all vnode->force_output nodes as needed.
24133
24134 2011-03-11 Jason Merrill <jason@redhat.com>
24135
24136 PR c++/48069
24137 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
24138 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
24139
24140 2011-03-11 Martin Jambor <mjambor@suse.cz>
24141
24142 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
24143 cgraph_node.
24144
24145 2011-03-11 Jakub Jelinek <jakub@redhat.com>
24146
24147 PR tree-optimization/48063
24148 * ipa-inline.c (cgraph_decide_inlining): Don't try to
24149 inline functions called once if !tree_can_inline_p (node->callers).
24150
24151 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
24152
24153 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
24154 extra_objs.
24155 * config/score/score3.c: Delete.
24156 * config/score/score3.h: Delete.
24157 * config/score/mul-div.S: Delete.
24158 * config/score/sfp-machine.h: Add new file.
24159 * config/score/constraints.md: Add new file.
24160 * config/score/t-score-softfp: Add new file.
24161 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
24162 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
24163 (score7_extra_constraint): Delete.
24164 (score7_option_override): Remove unused code.
24165 * config/score/score.c: Remove score3 and score5 define and code.
24166 * config/score/score.h: Remove score3 and score5 define and code.
24167 * config/score/score.md: Remove score3 template and unusual insn.
24168 * config/score/score.opt: Remove score3 and score5 options.
24169
24170 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24171
24172 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
24173 when _HPUX_SOURCE is defined.
24174 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
24175
24176 2011-03-10 Jason Merrill <jason@redhat.com>
24177
24178 PR c++/48029
24179 * stor-layout.c (layout_type): Don't set structural equality
24180 on arrays of incomplete type.
24181 * tree.c (type_hash_eq): Handle comparing them properly.
24182
24183 2011-03-10 Jakub Jelinek <jakub@redhat.com>
24184
24185 PR debug/48043
24186 * config/s390/s390.c (s390_delegitimize_address): Make sure the
24187 result mode matches original rtl mode.
24188
24189 2011-03-10 Nick Clifton <nickc@redhat.com>
24190
24191 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
24192 (andsi3, andsi3_flags): Fix timings for three operand alternative.
24193
24194 2011-03-09 Jakub Jelinek <jakub@redhat.com>
24195
24196 PR rtl-optimization/47866
24197 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
24198 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
24199 if target wasn't scalar.
24200 * function.c (assign_stack_temp_for_type): Assert that neither
24201 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
24202 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
24203 macro.
24204 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
24205
24206 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24207
24208 * config/s390/s390-protos.h (s390_label_align): New prototype.
24209 * config/s390/s390.c (s390_label_align): New function.
24210 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
24211
24212 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
24213
24214 PR target/47755
24215 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
24216 V2DI/V2DF constants. Only all 0's or all 1's are easy.
24217 (output_vec_const_move): Ditto.
24218
24219 2011-03-08 Anatoly Sokolov <aesok@post.ru>
24220
24221 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
24222 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
24223 * config/mips/mips.c (mips_preferred_reload_class): Make static.
24224 Change 'rclass' argument and result type to reg_class_t.
24225 (TARGET_PREFERRED_RELOAD_CLASS): Define.
24226
24227 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
24228
24229 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24230 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
24231 (TARGET_MEMORY_MOVE_COST): Define.
24232 (avr_register_move_cost, avr_memory_move_cost): New Functions.
24233
24234 2011-03-08 Jakub Jelinek <jakub@redhat.com>
24235
24236 PR debug/47881
24237 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
24238 removed anything.
24239
24240 PR tree-optimization/48022
24241 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
24242 for EQ/NE_EXPR.
24243
24244 2011-03-07 Jakub Jelinek <jakub@redhat.com>
24245
24246 PR debug/47991
24247 * var-tracking.c (find_use_val): Return NULL for
24248 cui->sets && cui->store_p BLKmode MEMs.
24249
24250 2011-03-07 Anatoly Sokolov <aesok@post.ru>
24251
24252 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
24253 Remove.
24254 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
24255 xstormy16_print_operand_address): Remove.
24256 * config/stormy16/stormy16.c (xstormy16_print_operand,
24257 xstormy16_print_operand_address): Make static.
24258 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24259
24260 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
24261
24262 PR target/47862
24263 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
24264 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
24265 before definition.
24266
24267 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
24268
24269 PR bootstrap/48000
24270 * cfgloopmanip.c (fix_bb_placements): Return immediately
24271 if FROM is BASE_LOOP's header.
24272
24273 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
24274
24275 * gimplify.c (gimplify_function_tree): Fix building calls
24276 to __builtin_return_address.
24277
24278 2011-03-07 Alan Modra <amodra@gmail.com>
24279
24280 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
24281 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
24282 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
24283 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
24284 return_mode args.
24285 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
24286 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
24287 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
24288 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
24289 * config/rs6000/rs6000.c
24290 (rs6000_elf_end_indicate_exec_stack): Rename to..
24291 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
24292 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
24293 (rs6000_file_start): ..here.
24294 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
24295 file scope variables.
24296 (call_ABI_of_interest): New function.
24297 (init_cumulative_args): Set above vars when function return value
24298 is a float, vector, or small struct.
24299 (rs6000_function_arg_advance_1): Likewise for function args.
24300 (rs6000_va_start): Set rs6000_passes_float if variable arg function
24301 references float args.
24302
24303 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
24304
24305 * doc/cfg.texi: Remove "See" before @ref.
24306 * doc/invoke.texi: Likewise.
24307
24308 2011-03-05 Jason Merrill <jason@redhat.com>
24309
24310 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
24311
24312 2011-03-05 Anthony Green <green@moxielogic.com>
24313
24314 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
24315
24316 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
24317
24318 PR rtl-optimization/47899
24319 * cfgloopmanip.c (fix_bb_placements): Fix first argument
24320 to flow_loop_nested_p when moving the loop upward.
24321
24322 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
24323
24324 PR target/47719
24325 * arm.md (movhi_insn_arch4): Accept any immediate constant.
24326
24327 2011-03-05 Jakub Jelinek <jakub@redhat.com>
24328
24329 PR tree-optimization/47967
24330 * ipa-cp.c (build_const_val): Return NULL instead of creating
24331 VIEW_CONVERT_EXPR for mismatching sizes.
24332 (ipcp_create_replace_map): Return NULL if build_const_val failed.
24333 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
24334 give up on versioning.
24335
24336 2011-03-05 Alan Modra <amodra@gmail.com>
24337
24338 PR target/47986
24339 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
24340 full cmodel medium/large lo_sum + high addresses.
24341
24342 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24343
24344 * config/s390/s390.c (s390_decompose_address): Reject non-literal
24345 pool references in UNSPEC_LTREL_OFFSET.
24346
24347 2011-03-04 Jan Hubicka <jh@suse.cz>
24348
24349 PR lto/47497
24350 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
24351 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
24352 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
24353 Add node pointers.
24354 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
24355 cgraph_add_thunk): Add node pointers.
24356 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
24357 associated to right node.
24358 (input_node): Update use of cgraph_same_body_alias
24359 and cgraph_add_thunk.
24360
24361 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
24362
24363 * config/i386/i386.opt (mprefer-avx128): New flag.
24364 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
24365 modes when the flag -mprefer-avx128 is on.
24366
24367 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
24368
24369 * dwarf2out.c (compare_loc_operands): Fix address handling.
24370
24371 2011-03-04 Alan Modra <amodra@gmail.com>
24372
24373 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
24374
24375 2011-03-04 Richard Guenther <rguenther@suse.de>
24376
24377 PR middle-end/47968
24378 * expmed.c (extract_bit_field_1): Prefer vector modes that
24379 vec_extract patterns can handle.
24380
24381 2011-03-04 Richard Guenther <rguenther@suse.de>
24382
24383 PR middle-end/47975
24384 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
24385
24386 2011-03-04 Richard Henderson <rth@redhat.com>
24387
24388 * explow.c (emit_stack_save): Remove 'after' parameter.
24389 (emit_stack_restore): Likewise.
24390 * expr.h: Update to match.
24391 * builtins.c, calls.c, stmt.c: Likewise.
24392 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
24393 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
24394 * function.c (expand_function_end): Insert the emit_stack_save
24395 sequence before parm_birth_insn instead of after.
24396
24397 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
24398
24399 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
24400 (ssse3_pmaddubsw128): Ditto.
24401 (ssse3_pmaddubsw): Ditto.
24402
24403 2011-03-03 Steve Ellcey <sje@cup.hp.com>
24404
24405 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
24406
24407 2011-03-03 Jakub Jelinek <jakub@redhat.com>
24408
24409 PR c/47963
24410 * gimplify.c (omp_add_variable): Only call omp_notice_variable
24411 on TYPE_SIZE_UNIT if it is a DECL.
24412
24413 PR debug/47283
24414 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
24415 first operand is not is_gimple_mem_ref_addr, try to fold it.
24416 If the operand still isn't is_gimple_mem_ref_addr, clear
24417 MEM_EXPR on op0.
24418
24419 2011-03-03 Richard Guenther <rguenther@suse.de>
24420
24421 PR middle-end/47283
24422 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
24423 match comment.
24424 (refs_may_alias_p_1): For release branches return true if
24425 we are confused by our input.
24426
24427 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24428
24429 * config/s390/s390.c (s390_function_value): Rename to ...
24430 (s390_function_and_libcall_value): ... this.
24431 (s390_function_value): New function.
24432 (s390_libcall_value): New function.
24433 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
24434 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
24435 target macro definitions.
24436 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
24437
24438 2011-03-02 Joseph Myers <joseph@codesourcery.com>
24439
24440 * config/i386/freebsd64.h (CC1_SPEC): Define.
24441 * config/i386/linux64.h (CC1_SPEC): Define.
24442 * config/i386/x86-64.h (CC1_SPEC): Don't define.
24443
24444 2011-03-02 Anatoly Sokolov <aesok@post.ru>
24445
24446 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
24447 Remove.
24448 * config/stormy16/stormy16.c: Include reload.h.
24449 (xstormy16_memory_move_cost): New function.
24450 (TARGET_MEMORY_MOVE_COST): Define.
24451
24452 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
24453
24454 PR rtl-optimization/47925
24455 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
24456 with side effects. Remove the more-specific check for volatile asms.
24457
24458 2011-03-02 Alan Modra <amodra@gmail.com>
24459
24460 PR target/47935
24461 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
24462 toc relative addresses for valid offsets.
24463
24464 2011-03-01 Richard Guenther <rguenther@suse.de>
24465
24466 PR tree-optimization/47890
24467 * tree-vect-loop.c (get_initial_def_for_induction): Set
24468 related stmt properly.
24469
24470 2011-03-01 Richard Guenther <rguenther@suse.de>
24471
24472 PR lto/47924
24473 * lto-streamer.c (lto_record_common_node): Also register
24474 the canonical type.
24475
24476 2011-03-01 Richard Guenther <rguenther@suse.de>
24477
24478 PR lto/46911
24479 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24480 Do not stream DECL_ABSTRACT_ORIGIN.
24481 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24482 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24483 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24484 Do not stream DECL_ABSTRACT_ORIGIN.
24485 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
24486 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
24487
24488 2011-02-28 Anatoly Sokolov <aesok@post.ru>
24489
24490 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
24491 FUNCTION_VALUE_REGNO_P): Remove.
24492 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
24493 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
24494 Add 'outgoing' argument.
24495 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
24496 function.
24497 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24498 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24499
24500 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
24501
24502 PR debug/28047
24503 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
24504 (lookup_filename): Likewise.
24505 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
24506
24507 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
24508 Jakub Jelinek <jakub@redhat.com>
24509
24510 PR middle-end/47893
24511 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
24512 (assign_stack_local_1): Change last argument type to int.
24513 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
24514 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
24515 don't record padding space into frame_space_list nor use those areas.
24516 (assign_stack_local): Adjust caller.
24517 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
24518 of assign_stack_local, pass 0 as last argument.
24519 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
24520 callers.
24521
24522 2011-02-28 Jakub Jelinek <jakub@redhat.com>
24523
24524 PR debug/47283
24525 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
24526 Use target address_mode and pointer_mode hooks instead of hardcoded
24527 Pmode and ptr_mode. Handle some simple cases of extending if
24528 POINTERS_EXTEND_UNSIGNED < 0.
24529 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
24530 Call convert_debug_memory_address.
24531 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
24532 convert_debug_memory_address.
24533
24534 PR middle-end/46790
24535 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
24536 * configure: Regenerated.
24537 * config.in: Regenerated.
24538 * varasm.c (default_function_section): Return NULL
24539 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
24540
24541 2011-02-28 Martin Jambor <mjambor@suse.cz>
24542
24543 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
24544 the description to match the printed values.
24545
24546 2011-02-28 Richard Guenther <rguenther@suse.de>
24547
24548 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
24549 of the copied scope tree.
24550
24551 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24552
24553 * doc/extend.texi (Function Attributes): Avoid deeply (and
24554 wrongly) nested tables.
24555
24556 2011-02-27 Jakub Jelinek <jakub@redhat.com>
24557
24558 PR middle-end/47903
24559 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
24560 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
24561 r isn't op0 nor op1.
24562
24563 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24564
24565 * config/avr/avr.md: Remove magic comment for emacs.
24566
24567 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
24568
24569 PR target/45261
24570 * config/avr/avr.c (avr_option_override): Use error on bad options.
24571 (avr_help): New function.
24572 (TARGET_HELP): Define.
24573
24574 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
24575
24576 PR target/42240
24577 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
24578 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
24579
24580 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
24581
24582 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
24583 (ARM Options): Ditto.
24584 (i386 and x86-64 Options): Ditto.
24585 (RX Options): Ditto.
24586 (SPARC Options): Ditto.
24587
24588 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
24589
24590 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
24591 FreeBSD 6 and later. Generally use cpu generic.
24592
24593 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
24594
24595 * doc/cpp.texi: Update copyright years.
24596
24597 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
24598
24599 PR target/46898
24600 * config/lm32/lm32.md (ashrsi3): Added needed variable.
24601
24602 2011-02-25 Jon Beniston <jon@beniston.com>
24603
24604 PR target/46898
24605 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
24606 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
24607 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
24608 (lm32_block_move_inline): Add type cast to remove warning.
24609 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
24610 (gen_int_relational): Move declarations to start of function.
24611
24612 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
24613
24614 PR tree-optimization/45470
24615 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
24616 can throw internally only.
24617 * tree-vect-stmts.c (vectorizable_call): Likewise.
24618
24619 2011-02-24 Anatoly Sokolov <aesok@post.ru>
24620
24621 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
24622 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
24623 * config/stormy16/stormy16-protos.h
24624 (xstormy16_preferred_reload_class): Remove.
24625 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
24626 static. Change 'rclass' argument and return type to reg_class_t.
24627 (TARGET_PREFERRED_RELOAD_CLASS,
24628 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
24629
24630 2011-02-24 Richard Guenther <rguenther@suse.de>
24631
24632 * lto-streamer-in.c (input_bb): Do not find referenced vars
24633 in debug statements.
24634
24635 2011-02-23 Jason Merrill <jason@redhat.com>
24636
24637 * common.opt (fabi-version): Document v5 and v6.
24638
24639 2011-02-23 Richard Guenther <rguenther@suse.de>
24640
24641 PR tree-optimization/47849
24642 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
24643
24644 2011-02-23 Jie Zhang <jie@codesourcery.com>
24645
24646 * opts-common.c (decode_cmdline_option): Print empty string
24647 argument as "" in decoded->orig_option_with_args_text.
24648 * gcc.c (execute): Print empty string argument as ""
24649 in the verbose output.
24650 (do_spec_1): Keep empty string argument.
24651
24652 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
24653
24654 * config.gcc: Declare score-* and crx-* obsolete.
24655
24656 2011-02-23 Jie Zhang <jie@codesourcery.com>
24657
24658 PR rtl-optimization/47763
24659 * web.c (web_main): Ignore naked clobber when replacing register.
24660
24661 2011-02-22 Anatoly Sokolov <aesok@post.ru>
24662
24663 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
24664 Remove.
24665
24666 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
24667
24668 PR doc/47848
24669 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
24670
24671 2011-02-22 Mike Stump <mikestump@comcast.net>
24672
24673 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
24674 assembler.
24675 * configure: Regenerate.
24676
24677 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
24678
24679 PR rtl-optimization/46002
24680 * ira-color.c (update_copy_costs): Change class intersection
24681 test to reg_class_contents[] test of 'hard_regno'.
24682
24683 2011-02-21 Joseph Myers <joseph@codesourcery.com>
24684
24685 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
24686 than Driver option.
24687 * config/hpux11.opt (mt): Likewise.
24688 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
24689 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
24690 * config/vax/elf.opt (mno-asm-pic): Likewise.
24691 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
24692
24693 2011-02-21 Mike Stump <mikestump@comcast.net>
24694
24695 PR target/47822
24696 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
24697 tree so we can get save the type.
24698 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
24699 for CFString instead of trying to use past the end of the builtins.
24700 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
24701 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
24702 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
24703 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
24704 Rename to darwin_builtin_cfstring.
24705 (darwin_init_cfstring_builtins): Return the built type.
24706
24707 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
24708
24709 PR target/47840
24710 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
24711 (_mm256_insert_epi64): Use _mm_insert_epi64.
24712
24713 2011-02-21 Anatoly Sokolov <aesok@post.ru>
24714
24715 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24716 * config/stormy16/stormy16-protos.h
24717 (xstormy16_mode_dependent_address_p): Remove.
24718 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
24719 Make static. Change return type to bool. Change argument type to
24720 const_rtx. Remove dead code.
24721 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24722
24723 2011-02-21 Richard Guenther <rguenther@suse.de>
24724
24725 PR lto/47820
24726 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
24727 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24728 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
24729 TUs context.
24730 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
24731 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
24732
24733 2011-02-20 Richard Guenther <rguenther@suse.de>
24734
24735 PR lto/47822
24736 * tree.c (free_lang_data_in_decl): Clean builtins from
24737 the TU decl BLOCK_VARS.
24738
24739 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
24740
24741 PR debug/47620
24742 PR debug/47630
24743 * haifa-sched.c (fix_tick_ready): Skip tick computation
24744 for debug insns.
24745
24746 2011-02-19 Richard Guenther <rguenther@suse.de>
24747
24748 PR lto/47647
24749 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
24750 Remove lazy BLOCK_VARS streaming.
24751 (lto_input_ts_block_tree_pointers): Likewise.
24752 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
24753
24754 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24755
24756 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
24757
24758 2011-02-19 Joseph Myers <joseph@codesourcery.com>
24759
24760 * config/i386/biarch32.h, config/i386/mach.h,
24761 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
24762
24763 2011-02-19 Jakub Jelinek <jakub@redhat.com>
24764
24765 PR target/47800
24766 * config/i386/i386.md (peephole2 for shift and plus): Use
24767 operands[1] original mode in the first insn.
24768
24769 2011-02-18 Mike Stump <mikestump@comcast.net>
24770
24771 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
24772
24773 2011-02-18 Jan Hubicka <jh@suse.cz>
24774
24775 PR middle-end/47788
24776 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
24777 to zero when the function is not inlinable at all.
24778
24779 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24780
24781 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
24782 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
24783 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
24784 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
24785 * config/pa/t-pa64: Likewise.
24786 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
24787
24788 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24789
24790 PR driver/47787
24791 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
24792
24793 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24794
24795 PR target/47792
24796 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
24797
24798 2011-02-18 Anatoly Sokolov <aesok@post.ru>
24799
24800 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
24801 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
24802 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
24803 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24804 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
24805 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
24806 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
24807 m32r_load_postinc_p, m32r_store_preinc_predec_p,
24808 m32r_legitimate_address_p): New functions.
24809 * config/m32r/constraints.md (constraint "S"): Don't use
24810 STORE_PREINC_PREDEC_P.
24811 (constraint "U"): Don't use LOAD_POSTINC_P.
24812
24813 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
24814
24815 PR rtl-optimization/46178
24816 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
24817 compute ira_hard_regno_cover_class[].
24818
24819 2011-02-18 Richard Guenther <rguenther@suse.de>
24820
24821 PR lto/47798
24822 * lto-streamer.h (lto_global_var_decls): Declare.
24823 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
24824 statics for global var processing.
24825
24826 2011-02-18 Richard Guenther <rguenther@suse.de>
24827
24828 PR tree-optimization/47737
24829 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
24830 edge dominance check.
24831
24832 2011-02-18 Jakub Jelinek <jakub@redhat.com>
24833
24834 PR debug/47780
24835 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
24836 avoid invalid rtx sharing.
24837
24838 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
24839
24840 * doc/cpp.texi (Obsolete Features): Add background on the
24841 origin of assertions.
24842
24843 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
24844
24845 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
24846 objc_abi == 2.
24847 * config/darwin.c (output_objc_section_asm_op): Added support for
24848 ABI v1 and v2.
24849 (is_objc_metadata): New.
24850 (darwin_objc2_section): New.
24851 (darwin_objc1_section): New.
24852 (machopic_select_section): Added support for ABI v1 and v2.
24853 (darwin_emit_objc_zeroed): New.
24854 (darwin_output_aligned_bss): Detect objc metadata and treat it
24855 appropriately.
24856 (darwin_asm_output_aligned_decl_common): Same.
24857 (darwin_asm_output_aligned_decl_local): Same.
24858 * config/darwin-sections.def: Updated for ABI v1 and v2.
24859 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
24860 compiling Objective-C code for the NeXT runtime, default to using
24861 ABI version 0 for 32-bit, and version 2 for 64-bit.
24862
24863 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24864
24865 * common.opt (optimize_fast): New Variable.
24866 * opts.c (default_options_optimization): Use opts->x_optimize_fast
24867 instead of local variable ofast.
24868
24869 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
24870
24871 * doc/invoke.texi (fobjc-abi-version): Documented.
24872 (fobjc-nilcheck): Documented.
24873 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
24874 version.
24875
24876 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24877
24878 PR driver/47390
24879 * common.opt (export-dynamic): New Driver option.
24880 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
24881
24882 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24883
24884 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
24885
24886 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
24887 Jan Hubicka <jh@suse.cz>
24888
24889 PR debug/47106
24890 PR debug/47402
24891 * cfgexpand.c (account_used_vars_for_block): Remove.
24892 (estimated_stack_frame_size): Use referenced vars.
24893 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
24894 that were referenced in the original function. Test src_fn
24895 rather than cfun. Drop redundant get_var_ann.
24896 (setup_one_parameter): Drop redundant get_var_ann.
24897 (declare_return_variable): Likewise.
24898 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
24899 (copy_arguments_for_versioning): Drop redundant get_var_ann.
24900 * ipa-inline.c (compute_inline_parameters): Do not compute
24901 disregard_inline_limits here.
24902 (compute_inlinable_for_current, pass_inlinable): New.
24903 (pass_inline_parameters): Require PROP_referenced_vars.
24904 * cgraphunit.c (cgraph_process_new_functions): Don't run
24905 compute_inline_parameters explicitly unless function is in SSA form.
24906 (cgraph_analyze_function): Set .disregard_inline_limits.
24907 * tree-sra.c (convert_callers): Compute inliner parameters
24908 only for functions already in SSA form.
24909
24910 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24911
24912 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
24913 -mlittle-endian-data.
24914
24915 2011-02-17 Joseph Myers <joseph@codesourcery.com>
24916
24917 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
24918 -mno-fpu, not -fpu and -no-fpu.
24919 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
24920 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
24921
24922 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
24923
24924 PR target/43653
24925 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
24926 input reload with PLUS RTX.
24927
24928 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24929
24930 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
24931 of InverseVar(MDMX).
24932
24933 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24934
24935 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
24936 --m4-340.
24937
24938 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24939
24940 * config/mn10300/mn10300.opt (mno-crt0): New.
24941
24942 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24943
24944 * config/m68k/uclinux.opt (static-libc): New Driver option.
24945
24946 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24947
24948 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
24949
24950 2011-02-16 Joseph Myers <joseph@codesourcery.com>
24951
24952 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
24953 %{muser-extend-enabled}.
24954
24955 2011-02-16 Richard Guenther <rguenther@suse.de>
24956
24957 PR tree-optimization/47738
24958 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
24959 the TODO from tree_predictive_commoning.
24960
24961 2011-02-15 Jeff Law <law@redhat.com>
24962
24963 Revert
24964 2011-01-25 Jeff Law <law@redhat.com>
24965
24966 PR rtl-optimization/37273
24967 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24968 handle them like argument loads from stack slots. Do not double
24969 count memory for memory constants and argument loads from stack slots.
24970
24971 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
24972
24973 PR target/47755
24974 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
24975 mode for vector constants. Remove code that checks for TImode.
24976
24977 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24978
24979 PR debug/47106
24980 PR debug/47402
24981 * cgraph.h (compute_inline_parameters): Return void.
24982 * ipa-inline.c (compute_inline_parameters): Adjust.
24983
24984 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24985
24986 PR debug/47106
24987 PR debug/47402
24988 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
24989 rather than decl.
24990 * cfgexpand.c (estimated_stack_frame_size): Likewise.
24991 * ipa-inline.c (compute_inline_parameters): Adjust.
24992
24993 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
24994
24995 PR debug/47106
24996 PR debug/47402
24997 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
24998 Adjust all users. Pass FN to...
24999 * tree-flow-inline.h (first_referenced_var): ... this. Add
25000 fn argument.
25001 * ipa-struct-reorg.c: Adjust.
25002 * tree-dfa.c: Adjust.
25003 * tree-into-ssa.c: Adjust.
25004 * tree-sra.c: Adjust.
25005 * tree-ssa-alias.c: Adjust.
25006 * tree-ssa-live.c: Adjust.
25007 * tree-ssa.c: Adjust.
25008 * tree-ssanames.c: Adjust.
25009 * tree-tailcall.c: Adjust.
25010
25011 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
25012
25013 PR debug/47106
25014 PR debug/47402
25015 * tree-flow.h (referenced_var_lookup): Add fn parameter.
25016 Adjust all callers.
25017 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
25018 * tree-flow-inline.h: Adjust.
25019 * gimple-pretty-print.c: Adjust.
25020 * tree-into-ssa.c: Adjust.
25021 * tree-ssa.c: Adjust.
25022 * cfgexpand.c: Adjust.
25023
25024 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25025
25026 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
25027 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25028 (EXTRA_CONSTRAINT): Delete.
25029 * config/iq2000/constraints.md: New file.
25030 * config/iq2000/iq2000.md: Include it.
25031 (define_insn ""): Delete.
25032 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
25033 unsupported constraint letters from patterns.
25034 (call_value, call_value_internal1): Likewise.
25035 (call_value_multiple_internal1): Likewise.
25036
25037 2011-02-15 Nick Clifton <nickc@redhat.com>
25038
25039 * config/mn10300/mn10300.c: Include tm-constrs.h.
25040 (struct liw_data): New data structure describing an LIW candidate
25041 instruction.
25042 (extract_bundle): Use struct liw_data. Allow small integer
25043 operands for some instructions.
25044 (check_liw_constraints): Use struct liw_data. Remove swapped
25045 parameter. Add comments describing the checks. Fix bug when
25046 assigning the source of liw1 to the source of liw2.
25047 (liw_candidate): Delete. Code moved into extract_bundle.
25048 (mn10300_bundle_liw): Use struct liw_data. Check constraints
25049 before swapping.
25050 * config/mn10300/predicates.md (liw_operand): New predicate.
25051 Allows registers and small integer constants.
25052 * config/mn10300/constraints.md (O): New constraint. Accetps
25053 integers in the range -8 to +7 inclusive.
25054 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
25055 for moving a small integer into a register. Give this alternative
25056 LIW attributes.
25057 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
25058 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
25059 using the J,K,L and M constraints,
25060 (liw): Remove SI mode on second operands to allow for HI and QI
25061 mode values.
25062 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
25063 instruction.
25064
25065 2011-02-15 Richard Guenther <rguenther@suse.de>
25066
25067 PR tree-optimization/47743
25068 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
25069 for a non-type-compatible VN lookup bail out.
25070
25071 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25072
25073 * config/fr30/constraints.md: New file.
25074 * config/fr30/fr30.md: Include it.
25075 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
25076 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25077 (EXTRA_CONSTRAINT): Delete.
25078
25079 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
25080
25081 * config/frv/constraints.md: New file.
25082 * config/frv/predicates.md: Include it.
25083 * config/frv/frv.c (reg_class_from_letter): Delete.
25084 (frv_option_override): Don't initialize it.
25085 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
25086 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
25087 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
25088 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25089 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
25090 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25091 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
25092 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
25093 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
25094 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
25095 (REG_CLASS_FROM_CONSTRAINT): Delete.
25096
25097 2011-02-15 Jakub Jelinek <jakub@redhat.com>
25098
25099 PR middle-end/47581
25100 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
25101 if frame size is 0 in a leaf function.
25102
25103 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25104
25105 PR pch/14940
25106 * config/alpha/host-osf.c: New file.
25107 * config/alpha/x-osf: New file.
25108 * config.host (alpha*-dec-osf*): Use it.
25109
25110 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25111
25112 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25113 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
25114 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
25115 (rx_mode_dependent_address_p): ...this. Make static. Change argument
25116 type to const_rtx.
25117 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25118
25119 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25120
25121 * config/stormy16/constraints.md: New file.
25122 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
25123 Use satisfies_constraint_Q and satisfies_constraint_R.
25124 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
25125 Delete.
25126 (xstormy16_legitiamte_address_p): Declare.
25127 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
25128 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25129 (EXTRA_CONSTRAINT): Delete.
25130 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
25131 Un-staticize.
25132 (xstormy16_extra_constraint_p): Delete.
25133
25134 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
25135
25136 PR tree-optimization/46494
25137 * loop-unroll.c (split_edge_and_insert): Adjust comment.
25138 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
25139 (pass_rtl_loop_done): Add TODO_verify_flow.
25140 * fwprop.c (pass_rtl_fwprop): Likewise.
25141 * modulo-sched.c (pass_sms): Likewise.
25142 * tree-ssa-dom.c (pass_dominator): Likewise.
25143 * tree-ssa-loop-ch.c (pass_ch): Likewise.
25144 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
25145 (pass_tree_loop_done): Likewise.
25146 * tree-ssa-pre.c (execute_pre): Likewise.
25147 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
25148 * tree-ssa-sink.c (pass_sink_code): Likewise.
25149 * tree-vrp.c (pass_vrp): Likewise.
25150
25151 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25152
25153 * config/v850/constraints.md: New file.
25154 * config/v850/v850.md: Include it.
25155 * config/v850/predicates.md (reg_or_0_operand): Use
25156 satisfies_constraint_G.
25157 (special_symbolref_operand): Use satisfies_constraint_K.
25158 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
25159 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
25160 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
25161 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
25162 (EXTRA_CONSTRAINT): Delete.
25163 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
25164 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
25165 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
25166
25167 2011-02-14 Anatoly Sokolov <aesok@post.ru>
25168
25169 PR target/47696
25170 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
25171 description.
25172
25173 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
25174
25175 * config/mcore/constraints.md: New file.
25176 * config/mcore/mcore.md: Include it.
25177 * config/mcore/mcore.c (reg_class_from_letter): Delete.
25178 * config/mcore/mcore.h (reg_class_from_letter): Delete.
25179 (REG_CLASS_FROM_LETTER): Delete.
25180 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
25181 insn_const_int_ok_for_constraint.
25182 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
25183 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
25184 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
25185 (EXTRA_CONSTRAINT): Delete.
25186
25187 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25188
25189 PR ada/41929
25190 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
25191 (IS_SIGHANDLER): Define.
25192 (sparc64_is_sighandler): New function, split off from
25193 sparc64_fallback_frame_state.
25194 (sparc_is_sighandler): New function, split off from
25195 sparc_fallback_frame_state.
25196 (sparc64_fallback_frame_state): Merge with ...
25197 (sparc_fallback_frame_state): ... this into ...
25198 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
25199 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
25200 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
25201 stack instead of hardcoded offsets.
25202
25203 2011-02-14 Andriy Gapon <avg@freebsd.org>
25204
25205 PR target/45808
25206 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
25207
25208 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25209
25210 * configure: Regenerate.
25211
25212 2011-02-12 Joseph Myers <joseph@codesourcery.com>
25213
25214 PR driver/45731
25215 * gcc.c (asm_options): Correct spec matching --target-help.
25216
25217 2011-02-12 Martin Jambor <mjambor@suse.cz>
25218
25219 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
25220 to gimple call error.
25221
25222 2011-02-12 Mike Stump <mikestump@comcast.net>
25223
25224 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
25225 comments in backslash regions.
25226
25227 2011-02-12 Mike Stump <mikestump@comcast.net>
25228 Jakub Jelinek <jakub@redhat.com>
25229 Iain Sandoe <iains@gcc.gnu.org>
25230
25231 PR target/47324
25232 * dwarf2out.c (output_cfa_loc): When required, apply the
25233 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
25234 (output_loc_sequence): Likewise.
25235 (output_loc_operands_raw): Likewise.
25236 (output_loc_sequence_raw): Likewise.
25237 (output_cfa_loc): Likewise.
25238 (output_loc_list): Suppress register number adjustment when
25239 calling output_loc_sequence()
25240 (output_die): Likewise.
25241
25242 2011-02-12 Anatoly Sokolov <aesok@post.ru>
25243
25244 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
25245 Remove macros.
25246 * config/xtensa/xtensa.c (xtensa_register_move_cost,
25247 xtensa_memory_move_cost): New functions.
25248 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
25249
25250 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
25251
25252 PR lto/47225
25253 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
25254 in the current directory.
25255 * configure: Rebuilt.
25256
25257 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25258
25259 * config/darwin.c (darwin_override_options): Add a hunk missed
25260 from the commit of r168571. Trim comment line lengths and
25261 correct indents of the preceding block.
25262
25263 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
25264
25265 * gcc.c (driver_handle_option): Concatenate the argument to -F with
25266 the switch.
25267
25268 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25269
25270 * common.opt (nostartfiles): New Driver option.
25271
25272 2011-02-11 Xinliang David Li <davidxl@google.com>
25273
25274 PR tree-optimization/47707
25275 * tree-chrec.c (convert_affine_scev): Keep type precision.
25276
25277 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
25278
25279 PR tree-optimization/47420
25280 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
25281
25282 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
25283
25284 PR rtl-optimization/47614
25285 * rtl.h (check_for_inc_dec): Declare.
25286 * dse.c (check_for_inc_dec): Externalize...
25287 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
25288 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
25289
25290 2011-02-11 Joseph Myers <joseph@codesourcery.com>
25291
25292 PR driver/47678
25293 * gcc.c (main): Do not compile inputs if there were errors in
25294 option handling.
25295 * opts-common.c (read_cmdline_option): Check for wrong language
25296 after other error checks.
25297
25298 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
25299
25300 * cgraph.c: Fix comment typos.
25301 * cgraph.h: Likewise.
25302 * cgraphunit.c: Likewise.
25303 * ipa-cp.c: Likewise.
25304 * ipa-inline.c: Likewise.
25305 * ipa-prop.c: Likewise.
25306 * ipa-pure-const.c: Likewise.
25307 * ipa-ref.c: Likewise.
25308 * ipa-reference.c: Likewise.
25309
25310 2011-02-11 Jakub Jelinek <jakub@redhat.com>
25311
25312 PR debug/47684
25313 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
25314
25315 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25316
25317 PR testsuite/47400
25318 * doc/sourcebuild.texi (Require Support): Document
25319 dg-require-ascii-locale.
25320
25321 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
25322
25323 * doc/lto.texi (Write summary): Fix missing parentheses.
25324
25325 2011-02-10 DJ Delorie <dj@redhat.com>
25326
25327 * config/m32c/m32c.c (m32c_option_override): Disable
25328 -fcombine-stack-adjustments until flag value tracking and compare
25329 optimization can be rewritten.
25330
25331 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
25332
25333 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
25334 PROCESSOR_POWER7.
25335 (PROCESSOR_DEFAULT64): Likewise.
25336
25337 2011-02-10 Richard Henderson <rth@redhat.com>
25338
25339 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
25340 change from 2011-02-03.
25341 * config/rx/rx.c (flags_from_code): Likewise.
25342 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
25343 is valid, n/pz otherwise.
25344 (rx_select_cc_mode): Return CCmode if Y is not zero.
25345
25346 2011-02-10 Richard Guenther <rguenther@suse.de>
25347
25348 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
25349
25350 2011-02-10 Richard Guenther <rguenther@suse.de>
25351
25352 PR tree-optimization/47677
25353 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
25354
25355 2011-02-10 Jakub Jelinek <jakub@redhat.com>
25356
25357 PR target/47665
25358 * combine.c (make_compound_operation): Only change shifts into
25359 multiplication for SCALAR_INT_MODE_P.
25360
25361 2011-02-10 Jie Zhang <jie@codesourcery.com>
25362
25363 PR testsuite/47622
25364 Revert
25365 2011-02-05 Jie Zhang <jie@codesourcery.com>
25366 PR debug/42631
25367 * web.c (entry_register): Don't clobber the number of the
25368 first uninitialized reference in used[].
25369
25370 2011-02-09 Richard Guenther <rguenther@suse.de>
25371
25372 PR tree-optimization/47664
25373 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
25374 all edges again.
25375
25376 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
25377
25378 PR target/46481
25379 PR target/47032
25380 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
25381 PROCESSOR_POWER7.
25382 (PROCESSOR_DEFAULT64): Same.
25383 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
25384
25385 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25386
25387 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
25388
25389 2011-02-09 Martin Jambor <mjambor@suse.cz>
25390
25391 PR middle-end/45505
25392 * tree-sra.c (struct access): New flags grp_scalar_read and
25393 grp_scalar_write. Changed description of assignment read and write
25394 flags.
25395 (dump_access): Dump new flags, reorder all of them.
25396 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
25397 to detect multiple scalar reads.
25398 (analyze_access_subtree): Use the new scalar read write flags instead
25399 of the old flags. Adjusted comments.
25400
25401 2011-02-08 DJ Delorie <dj@redhat.com>
25402
25403 PR target/47548
25404 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
25405 patterns.
25406
25407 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25408
25409 * config/m68k/uclinux.opt: New.
25410 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
25411
25412 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25413
25414 * config/cris/elf.opt (sim): New Driver option.
25415
25416 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25417
25418 * config/xtensa/elf.opt: New.
25419 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
25420
25421 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25422
25423 * config/vax/elf.opt: New.
25424 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
25425
25426 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25427
25428 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
25429
25430 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25431
25432 * config/gnu-user.opt: New.
25433 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
25434 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
25435 *-*-uclinux*): Use gnu-user.opt.
25436
25437 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
25438
25439 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
25440 * config/i386/gnu.h (CPP_SPEC): Likewise.
25441
25442 2011-02-08 Ian Lance Taylor <iant@google.com>
25443
25444 * common.opt (fcx-limited-range): Add SetByCombined flag.
25445 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
25446 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
25447 (fassociative-math, freciprocal-math): Likewise.
25448 (funsafe-math-optimizations): Likewise.
25449 * opth-gen.awk: Handle SetByCombined.
25450 * optc-gen.awk: Likewise.
25451 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
25452 (set_unsafe_math_optimizations_flags): Likewise.
25453 * doc/options.texi (Option properties): Document SetByCombined.
25454
25455 2011-02-08 Joseph Myers <joseph@codesourcery.com>
25456
25457 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
25458 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
25459 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
25460 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
25461 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
25462
25463 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
25464
25465 PR tree-optimization/46834
25466 PR tree-optimization/46994
25467 PR tree-optimization/46995
25468 * graphite-sese-to-poly.c (used_outside_reduction): New.
25469 (detect_commutative_reduction): Call used_outside_reduction.
25470 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
25471 translate_scalar_reduction_to_array only when at least one
25472 loop-phi/close-phi tuple has been detected.
25473
25474 2011-02-08 Richard Guenther <rguenther@suse.de>
25475
25476 PR middle-end/47639
25477 * tree-vect-generic.c (expand_vector_operations_1): Update
25478 stmts here ...
25479 (expand_vector_operations): ... not here. Cleanup EH info
25480 and the CFG if required.
25481
25482 2011-02-08 Richard Guenther <rguenther@suse.de>
25483
25484 PR tree-optimization/47641
25485 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
25486 require type compatibility.
25487
25488 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25489
25490 * gimple-low.c (lower_function_body): Don't remove the location of
25491 the return statement here.
25492 (lower_gimple_return): Do it here instead but only if the return
25493 statement is actually used twice.
25494
25495 2011-02-08 Richard Guenther <rguenther@suse.de>
25496
25497 PR tree-optimization/47632
25498 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
25499 unused up_to_stmt parameter, return whether cfg-cleanup is
25500 necessary, remove EH info properly.
25501 (forward_propagate_into_gimple_cond): Adjust caller.
25502 (forward_propagate_into_cond): Likewise.
25503 (forward_propagate_comparison): Likewise.
25504 (tree_ssa_forward_propagate_single_use_vars): Make
25505 forward_propagate_comparison case similar to the two others.
25506
25507 2011-02-08 Nick Clifton <nickc@redhat.com>
25508
25509 * config/mn10300/mn10300.opt (mliw): New command line option.
25510 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
25511 (liw_bundling): New automaton.
25512 (liw): New attribute.
25513 (liw_op): New attribute.
25514 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
25515 (movsi_internal): Add LIW attributes.
25516 (andsi3): Likewise.
25517 (iorsi3): Likewise.
25518 (xorsi3): Likewise.
25519 (addsi3): Separate register and immediate alternatives.
25520 Add LIW attributes.
25521 (subsi3): Likewise.
25522 (cmpsi): Likewise.
25523 (aslsi3): Likewise.
25524 (lshrsi3): Likewise.
25525 (ashrsi3): Likewise.
25526 (liw): New pattern.
25527 * config/mn10300/mn10300.c (liw_op_names): New
25528 (mn10300_print_operand): Handle 'W' operand descriptor.
25529 (extract_bundle): New function.
25530 (check_liw_constraints): New function.
25531 (liw_candidate): New function.
25532 (mn10300_bundle_liw): New function.
25533 (mn10300_reorg): New function.
25534 (TARGET_MACHINE_DEPENDENT_REORG): Define.
25535 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
25536 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
25537 __LIW__ or __NO_LIW__.
25538 * doc/invoke.texi: Describe the -mliw command line option.
25539
25540 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25541
25542 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
25543 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
25544 pthread_mutex_unlock): Remove.
25545 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
25546 * config/pa/t-pa64: Likewise.
25547 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
25548 shared libc if not linking against libpthread.
25549 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
25550
25551 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
25552
25553 PR target/47558
25554 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
25555 on 10.6 and later to ensure that we always use the unwinder from
25556 the system. Only add -no_compact_unwind when tarteting darwin
25557 10.6 or later.
25558
25559 2011-02-07 Steve Ellcey <sje@cup.hp.com>
25560
25561 PR target/46997
25562 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
25563 (vec_interleave_lowv2sf): Ditto.
25564 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
25565 (vec_extract_oddv2sf): Ditto.
25566
25567 2011-02-07 Mike Stump <mikestump@comcast.net>
25568
25569 PR target/42333
25570 Add __ieee_divdc3 entry point.
25571 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
25572 entry point.
25573 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
25574 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
25575 * config/darwin.c (darwin_rename_builtins): Add.
25576 * config/darwin-protos.h (darwin_rename_builtins): Add.
25577
25578 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
25579
25580 PR target/47636
25581 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
25582 for the condition.
25583
25584 2011-02-07 Mike Stump <mikestump@comcast.net>
25585
25586 * config/darwin.opt (mmacosx-version-min): Update default OS version.
25587
25588 2011-02-07 Denis Chertykov <chertykov@gmail.com>
25589
25590 PR target/47534
25591 * config/avr/libgcc.S (exit): Move .endfunc
25592
25593 2011-02-07 Richard Guenther <rguenther@suse.de>
25594
25595 PR tree-optimization/47615
25596 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
25597 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
25598 (run_scc_vn): Initialize it.
25599 (visit_reference_op_load): Use it.
25600 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
25601
25602 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25603
25604 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
25605 DImode trapping arithmetic libfuncs.
25606
25607 2011-02-07 Richard Guenther <rguenther@suse.de>
25608
25609 PR tree-optimization/47621
25610 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
25611 two duplicates ...
25612 (execute_update_addresses_taken): ... here. Make it more
25613 conservative in what we accept.
25614
25615 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25616
25617 * config/sparc/freebsd.h (ASM_SPEC): Define.
25618 * config/sparc/vxworks.h (ASM_SPEC): Define.
25619
25620 2011-02-06 Joseph Myers <joseph@codesourcery.com>
25621
25622 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25623
25624 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
25625
25626 * doc/invoke.texi: Remove reference to compiler internals from
25627 user documentation.
25628
25629 * reg-notes.def: Remove REG_VALUE_PROFILE.
25630 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
25631
25632 2011-02-05 Jakub Jelinek <jakub@redhat.com>
25633
25634 PR middle-end/47610
25635 * varasm.c (default_section_type_flags): If decl is NULL,
25636 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
25637
25638 2011-02-05 Jie Zhang <jie@codesourcery.com>
25639
25640 PR debug/42631
25641 * web.c (entry_register): Don't clobber the number of the
25642 first uninitialized reference in used[].
25643
25644 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
25645
25646 PR tree-optimization/46194
25647 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
25648 (build_classic_dist_vector_1): Do not represent classic distance
25649 vectors when the access functions are variating in different loops.
25650
25651 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25652
25653 * config/mips/iris6.opt: New.
25654 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
25655
25656 2011-02-04 Richard Henderson <rth@redhat.com>
25657 Steve Ellcey <sje@cup.hp.com>
25658
25659 PR target/46997
25660 * config/ia64/predicates.md (mux1_brcst_element): New.
25661 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
25662 * config/ia64/ia64.c (ia64_unpack_assemble): New.
25663 (ia64_unpack_sign): New.
25664 (ia64_expand_unpack): Rewrite using new routines.
25665 (ia64_expand_widen_sum): Ditto.
25666 (ia64_expand_dot_prod_v8qi): Ditto.
25667 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
25668 routines, add endian check.
25669 (pmpy2_even): Rename from pmpy2_r, add endian check.
25670 (pmpy2_odd): Rename from pmpy2_l, add endian check.
25671 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
25672 (vec_widen_smult_hi_v4hi): Ditto.
25673 (vec_widen_umult_lo_v4hi): Ditto.
25674 (vec_widen_umult_hi_v4hi): Ditto.
25675 (mulv2si3): Change endian checks.
25676 (sdot_prodv4hi): Rewrite with new calls.
25677 (udot_prodv4hi): New.
25678 (vec_pack_ssat_v4hi): Add endian check.
25679 (vec_pack_usat_v4hi): Ditto.
25680 (vec_pack_ssat_v2si): Ditto.
25681 (max1_even): Rename from max1_r, add endian check.
25682 (max1_odd): Rename from max1_l, add endian check.
25683 (*mux1_rev): Format change.
25684 (*mux1_mix): Ditto.
25685 (*mux1_shuf): Ditto.
25686 (*mux1_alt): Ditto.
25687 (*mux1_brcst_v8qi): Use new predicate.
25688 (vec_extract_evenv8qi): Remove endian check.
25689 (vec_extract_oddv8qi): Ditto.
25690 (vec_interleave_lowv4hi): Format change.
25691 (vec_interleave_highv4hi): Ditto.
25692 (mix2_even): Rename from mix2_r, add endian check.
25693 (mix2_odd): Rename from mux2_l, add endian check.
25694 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
25695 (vec_extract_evenodd_helper): Format change.
25696 (vec_extract_evenv4hi): Remove endian check.
25697 (vec_extract_oddv4hi): Remove endian check.
25698 (vec_interleave_lowv2si): Format change.
25699 (vec_interleave_highv2si): Format change.
25700 (vec_initv2si): Remove endian check.
25701 (vecinit_v2si): Add endian check.
25702 (reduc_splus_v2sf): Add endian check.
25703 (reduc_smax_v2sf): Ditto.
25704 (reduc_smin_v2sf): Ditto.
25705 (vec_initv2sf): Remove endian check.
25706 (fpack): Add endian check.
25707 (fswap): Add endian check.
25708 (vec_interleave_highv2sf): Add endian check.
25709 (vec_interleave_lowv2sf): Add endian check.
25710 (fmix_lr): Add endian check.
25711 (vec_setv2sf): Format change.
25712 (*vec_extractv2sf_0_be): Use shift to extract operand.
25713 (*vec_extractv2sf_1_be): New.
25714 (vec_pack_trunc_v4hi): Add endian check.
25715 (vec_pack_trunc_v2si): Format change.
25716
25717 2011-02-04 Jakub Jelinek <jakub@redhat.com>
25718
25719 PR inline-asm/23200
25720 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
25721 do bb, locus and block comparison and disallow loads if it is not set.
25722 (stmt_is_replaceable_p): New function.
25723 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
25724 callers.
25725 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
25726 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
25727 SSA_NAME_DEF_STMT.
25728 * tree-flow.h (stmt_is_replaceable_p): New prototype.
25729
25730 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25731
25732 * config/rs6000/xilinx.opt: New.
25733 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
25734
25735 2011-02-04 Joseph Myers <joseph@codesourcery.com>
25736
25737 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
25738
25739 2011-02-03 Anatoly Sokolov <aesok@post.ru>
25740
25741 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
25742 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
25743 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
25744 secondary_reload_info, xtensa_secondary_reload): Remove.
25745 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
25746 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
25747 (xtensa_preferred_reload_class): Make static. Change return and
25748 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
25749 Use CONST_DOUBLE_P predicate.
25750 (xtensa_preferred_output_reload_class): New function.
25751 (xtensa_secondary_reload): Make static.
25752
25753 2011-02-03 Joseph Myers <joseph@codesourcery.com>
25754
25755 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
25756 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
25757 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
25758
25759 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25760
25761 PR middle-end/31490
25762 * output.h (SECTION_RELRO): Define.
25763 (SECTION_MACH_DEP): Adjust.
25764 (get_variable_section): New prototype.
25765 * varpool.c (varpool_finalize_named_section_flags): New function.
25766 (varpool_assemble_pending_decls): Call it.
25767 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
25768 * cgraphunit.c (cgraph_output_in_order): Call
25769 varpool_finalize_named_section_flags.
25770 * varasm.c (get_section): Allow section flags conflicts between
25771 relro and read-only sections if the section hasn't been declared yet.
25772 Set SECTION_OVERRIDE after diagnosing section type conflict.
25773 (get_variable_section): No longer static.
25774 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
25775 readonly sections that need relocations.
25776 (decl_readonly_section_1): New function.
25777 (decl_readonly_section): Use it.
25778
25779 Revert:
25780 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
25781 Steve Ellcey <sje@cup.hp.com>
25782
25783 PR middle-end/31490
25784 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
25785 if section attribute used.
25786
25787 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25788
25789 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
25790 * config/darwin.c (SECTION_NO_ANCHOR): Define.
25791 (darwin_init_sections): Remove assertion.
25792
25793 2011-02-03 Nick Clifton <nickc@redhat.com>
25794
25795 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
25796 lt and ge.
25797 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
25798 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
25799 instead of "n" and "pz".
25800 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
25801 CC_FLAG_S.
25802
25803 2011-02-03 Jakub Jelinek <jakub@redhat.com>
25804
25805 PR target/47312
25806 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
25807 fma, expand FMA_EXPR as fma{,f,l} call.
25808
25809 PR lto/47274
25810 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
25811 copy them into a unsigned char variable and pass address of it to
25812 lto_output_data_stream.
25813
25814 PR target/47564
25815 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
25816 around backend_init_target and lang_dependent_init_target calls.
25817 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
25818 (verify_cgraph_node): Don't call set_cfun here. Use
25819 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
25820 Set error_found for incorrectly represented calls to thunks.
25821
25822 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
25823
25824 PR debug/43092
25825 PR rtl-optimization/43494
25826 * rtl.h (for_each_inc_dec_fn): New type.
25827 (for_each_inc_dec): Declare.
25828 * rtlanal.c (struct for_each_inc_dec_ops): New type.
25829 (for_each_inc_dec_find_inc_dec): New fn.
25830 (for_each_inc_dec_find_mem): New fn.
25831 (for_each_inc_dec): New fn.
25832 * dse.c (struct insn_size): Remove.
25833 (replace_inc_dec, replace_inc_dec_mem): Remove.
25834 (emit_inc_dec_insn_before): New fn.
25835 (check_for_inc_dec): Use it, along with for_each_inc_dec.
25836 (canon_address): Pass mem modes to cselib_lookup.
25837 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
25838 (cselib_lookup_from_insn): Likewise.
25839 (cselib_subst_to_values): Likewise.
25840 * cselib.c (find_slot_memmode): New var.
25841 (cselib_find_slot): New fn. Use it instead of
25842 htab_find_slot_with_hash everywhere.
25843 (entry_and_rtx_equal_p): Use find_slot_memmode.
25844 (autoinc_split): New fn.
25845 (rtx_equal_for_cselib_p): Rename and implement in terms of...
25846 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
25847 Deal with autoinc. Special-case recursion into MEMs.
25848 (cselib_hash_rtx): Likewise.
25849 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
25850 address and MEM modes.
25851 (cselib_subst_to_values): Add memmode, pass it on.
25852 Deal with autoinc.
25853 (cselib_lookup): Add memmode argument, pass it on.
25854 (cselib_lookup_from_insn): Add memmode.
25855 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
25856 (struct cselib_record_autoinc_data): New.
25857 (cselib_record_autoinc_cb): New fn.
25858 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
25859 mode to cselib_lookup. Reset autoinced REGs here instead of...
25860 (cselib_process_insn): ... here.
25861 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
25862 to cselib_lookup.
25863 (add_uses): Likewise, also to cselib_subst_to_values.
25864 (add_stores): Likewise.
25865 * sched-deps.c (add_insn_mem_dependence): Pass mode to
25866 cselib_subst_to_values.
25867 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
25868 * gcse.c (do_local_cprop): Adjusted.
25869 * postreload.c (reload_cse_simplify_set): Adjusted.
25870 (reload_cse_simplify_operands): Adjusted.
25871 * sel-sched-dump (debug_mem_addr_value): Pass mode.
25872
25873 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
25874
25875 PR tree-optimization/45122
25876 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
25877 unsafe assumptions when there's more than one loop exit.
25878
25879 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25880
25881 PR target/47272
25882 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25883 Document using vector double with the load/store builtins, and
25884 that the load/store builtins always use Altivec instructions.
25885
25886 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
25887 to use altivec memory instructions, even on VSX.
25888 (vector_altivec_store_<mode>): Ditto.
25889
25890 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
25891 function.
25892
25893 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25894 V2DF, V2DI support to load/store overloaded builtins.
25895
25896 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
25897 altivec load/store builtins for V2DF/V2DI types.
25898
25899 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25900 set avoid indexed addresses on power6 if -maltivec.
25901 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
25902 vector_altivec_load/vector_altivec_store builtins.
25903 (altivec_expand_st_builtin): Ditto.
25904 (altivec_expand_builtin): Add VSX memory builtins.
25905 (rs6000_init_builtins): Add V2DI types to internal types.
25906 (altivec_init_builtins): Add support for V2DF/V2DI altivec
25907 load/store builtins.
25908 (rs6000_address_for_altivec): Insure memory address is appropriate
25909 for Altivec.
25910
25911 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
25912 vec_vsx_ld and vec_vsx_st.
25913 (vsx_store_<mode>): Ditto.
25914
25915 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
25916 variables to hold long long types for VSX vector memory builtins.
25917 (RS6000_BTI_unsigned_long_long): Ditto.
25918 (long_long_integer_type_internal_node): Ditti.
25919 (long_long_unsigned_type_internal_node): Ditti.
25920
25921 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
25922 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
25923 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
25924
25925 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
25926 short cuts.
25927 (vec_vsx_st): Ditto.
25928
25929 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25930
25931 * config/pa/pa-hpux10.opt: New.
25932 * config/hpux11.opt (pthread): New Driver option.
25933 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
25934 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
25935
25936 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25937
25938 * config/ia64/vms.opt: New.
25939 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
25940
25941 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25942
25943 PR target/47580
25944 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
25945 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
25946 generator functions.
25947 (vsx_floatuns<VSi><mode>2): Ditto.
25948 (vsx_fix_trunc<mode><VSi>2): Ditto.
25949 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
25950
25951 2011-02-02 Joseph Myers <joseph@codesourcery.com>
25952
25953 * config/i386/djgpp.opt (posix): New Driver option.
25954
25955 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
25956
25957 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
25958 Move to the unsupported targets list.
25959
25960 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
25961
25962 PR rtl-optimization/47525
25963 * df-scan.c: Update copyright years.
25964 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
25965 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
25966
25967 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25968
25969 * config/i386/sysv4.h (TARGET_VERSION): Remove.
25970 (SUBTARGET_RETURN_IN_MEMORY): Remove.
25971 (ASM_OUTPUT_ASCII): Remove.
25972 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
25973
25974 2011-02-02 Jeff Law <law@redhat.com>
25975
25976 PR middle-end/47543
25977 * reload.c (find_reloads_address): Handle reg+d address where both
25978 components are invalid by reloading the entire address.
25979
25980 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25981 Richard Guenther <rguenther@suse.de>
25982
25983 PR tree-optimization/40979
25984 PR bootstrap/47044
25985 * passes.c (init_optimization_passes): After LIM call copy_prop
25986 and DCE to clean up.
25987 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
25988
25989 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
25990
25991 PR tree-optimization/47576
25992 PR tree-optimization/47555
25993 * doc/invoke.texi (scev-max-expr-complexity): Documented.
25994 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
25995 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
25996 * tree-scalar-evolution.c (follow_ssa_edge): Use
25997 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
25998
25999 2011-02-02 Richard Guenther <rguenther@suse.de>
26000
26001 PR tree-optimization/47566
26002 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
26003
26004 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
26005
26006 PR debug/47106
26007 PR debug/47402
26008 * tree-inline.c (declare_return_variable): Remove unused caller
26009 variable.
26010
26011 PR debug/47106
26012 PR debug/47402
26013 * tree-flow-inline.h (clear_is_used, is_used_p): New.
26014 * cfgexpand.c (account_used_vars_for_block): Use them.
26015 * tree-nrv.c (tree_nrv): Likewise.
26016 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
26017 (dump_scope_block): Likewise.
26018 (remove_unused_locals): Likewise.
26019
26020 PR debug/47106
26021 PR debug/47402
26022 * tree-inline.c (declare_return_variable): Add result decl to
26023 local decls only once.
26024 * gimple-low.c (record_vars_into): Mark newly-created variables
26025 as referenced.
26026
26027 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
26028
26029 PR debug/47498
26030 PR debug/47501
26031 PR debug/45136
26032 PR debug/45130
26033 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26034 debug insns.
26035 (no_real_insns_p, schedule_block, set_priorities): Drop special
26036 treatment of boundary debug insns.
26037 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26038 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
26039 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26040 (BOUNDARY_DEBUG_INSN_P): Likewise.
26041 (SCHEDULE_DEBUG_INSN_P): Likewise.
26042 * sched-rgn.c (init_ready_list): Drop special treatment of
26043 boundary debug insns.
26044 * final.c (rest_of_clean_state): Clear notes' BB.
26045
26046 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26047
26048 * config/openbsd.opt (assert=): New Driver option.
26049
26050 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26051
26052 * config/i386/nto.opt: New.
26053 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
26054
26055 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26056
26057 * config/i386/netware.opt: New.
26058 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
26059
26060 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26061
26062 * config/interix.opt (posix): New Driver option.
26063
26064 2011-02-01 DJ Delorie <dj@redhat.com>
26065
26066 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
26067
26068 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
26069 class for A0/A1.
26070
26071 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
26072
26073 PR tree-optimization/47561
26074 * toplev.c (process_options): Print the Graphite flags. Add
26075 flag_loop_flatten to the list of options requiring Graphite.
26076
26077 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26078
26079 * config/i386/cygming.opt (posix): New Driver option.
26080
26081 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26082
26083 * config/arm/vxworks.opt: New.
26084 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
26085
26086 2011-02-01 Joseph Myers <joseph@codesourcery.com>
26087
26088 * config/alpha/elf.opt: New.
26089 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
26090 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
26091
26092 2011-02-01 Richard Guenther <rguenther@suse.de>
26093
26094 PR tree-optimization/47559
26095 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
26096 store-motion on references that can throw.
26097
26098 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
26099
26100 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
26101 * tree-pass.h (TDF_CSELIB): New macro.
26102 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
26103 cselib_lookup): Check for it rather than for TDF_DETAILS.
26104
26105 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
26106
26107 PR driver/47547
26108 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
26109 is HOST_BIT_BUCKET.
26110
26111 * opts.c (finish_options): Don't add x_aux_base_name if it is
26112 HOST_BIT_BUCKET.
26113
26114 2011-02-01 Richard Guenther <rguenther@suse.de>
26115
26116 PR tree-optimization/47555
26117 Revert
26118 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
26119
26120 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
26121
26122 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
26123
26124 PR gcc/46692
26125 * config/lm32/t-lm32: Add multilib for all CPU options.
26126
26127 2011-02-01 Richard Guenther <rguenther@suse.de>
26128
26129 PR tree-optimization/47541
26130 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
26131 sure to have a field at offset zero.
26132
26133 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26134
26135 * config/arc/arc.opt (EB, EL): New Driver options.
26136
26137 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26138
26139 * config/alpha/osf5.opt: New.
26140 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
26141
26142 2011-01-31 Joseph Myers <joseph@codesourcery.com>
26143
26144 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
26145
26146 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
26147
26148 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
26149 -floop-interchange.
26150 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
26151 is an alias of -floop-interchange and that it requires the
26152 Graphite infrastructure.
26153 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
26154 flag_loop_interchange based on the value of flag_tree_loop_linear.
26155
26156 2011-01-31 Jakub Jelinek <jakub@redhat.com>
26157 Richard Guenther <rguenther@suse.de>
26158
26159 PR tree-optimization/47538
26160 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
26161 type instead of r1type, except for comparisons. For right
26162 shifts and comparisons punt if there are mismatches in
26163 sizetype vs. non-sizetype types.
26164
26165 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26166
26167 * doc/sourcebuild.texi (Effective-Target Keywords): Document
26168 avx_runtime.
26169
26170 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26171
26172 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
26173 version number.
26174 * configure: Regenerate.
26175
26176 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26177
26178 * configure.ac (gcc_cv_ld_static_option): Define.
26179 (gcc_cv_ld_dynamic_option): Define.
26180 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
26181 instead.
26182 (HAVE_LD_STATIC_DYNAMIC): Update message.
26183 (LD_STATIC_OPTION): Define.
26184 (LD_DYNAMIC_OPTION): Define.
26185 * configure: Regenerate.
26186 * config.in: Regenerate.
26187 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
26188 HAVE_LD_STATIC_DYNAMIC]: Use them.
26189
26190 2011-01-31 Nick Clifton <nickc@redhat.com>
26191
26192 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
26193 registers inside interrupt handlers if the handler is not a leaf
26194 function.
26195
26196 2011-01-31 Nick Clifton <nickc@redhat.com>
26197
26198 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
26199 reg_renumber returning an INVALID_REGNUM.
26200
26201 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26202
26203 PR libgcj/44341
26204 * doc/install.texi: Document host options discarded when cross
26205 configuring target libraries.
26206
26207 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
26208
26209 Reverted:
26210 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26211 PR debug/45136
26212 PR debug/45130
26213 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26214 debug insns.
26215 (no_real_insns_p, schedule_block, set_priorities): Drop special
26216 treatment of boundary debug insns.
26217 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26218 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26219 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26220 (BOUNDARY_DEBUG_INSN_P): Likewise.
26221 (SCHEDULE_DEBUG_INSN_P): Likewise.
26222 * sched-rgn.c (init_ready_list): Drop special treatment of
26223 boundary debug insns.
26224 * final.c (rest_of_clean-state): Clear notes' BB.
26225
26226 2011-01-31 Alan Modra <amodra@gmail.com>
26227
26228 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
26229 toc relative expressions as we do in print_operand_address.
26230
26231 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
26232
26233 * doc/extend.texi: Follow spelling conventions.
26234 * doc/invoke.texi: Fix a typo.
26235
26236 2011-01-30 Joseph Myers <joseph@codesourcery.com>
26237
26238 * config/hpux11.opt: New.
26239 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
26240 ia64*-*-hpux*): Use hpux11.opt.
26241
26242 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
26243
26244 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
26245 to tmake_file.
26246
26247 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26248
26249 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
26250 support sites.
26251
26252 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26253
26254 * doc/install.texi (Binaries): Remove outdated reference for
26255 Motorola 68HC11/68HC12 downloads.
26256
26257 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
26258
26259 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
26260 Drepper's paper.
26261
26262 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
26263
26264 PR bootstrap/47147
26265 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
26266 used by NetBSD.
26267
26268 2011-01-28 Ahmad Sharif <asharif@google.com>
26269
26270 * value-prof.c (check_counter): Corrected error message.
26271
26272 2011-01-29 Jie Zhang <jie@codesourcery.com>
26273
26274 * config/arm/arm.c (arm_legitimize_reload_address): New.
26275 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26276 arm_legitimize_reload_address.
26277 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
26278
26279 2011-01-28 Ian Lance Taylor <iant@google.com>
26280
26281 * godump.c (go_define): Ignore macros whose definitions include
26282 two adjacent operands.
26283
26284 2011-01-28 Jakub Jelinek <jakub@redhat.com>
26285
26286 PR target/42894
26287 * varasm.c (force_const_mem): Store copy of x in desc->constant
26288 instead of x itself.
26289 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
26290 itself into REG_EQUAL note.
26291
26292 2011-01-28 Joseph Myers <joseph@codesourcery.com>
26293
26294 * config/freebsd.opt (posix, rdynamic): New Driver options.
26295
26296 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26297
26298 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
26299 -Bstatic/-Bdynamic.
26300 * configure: Regenerate.
26301
26302 2011-01-27 Joseph Myers <joseph@codesourcery.com>
26303
26304 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
26305 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
26306
26307 2011-01-27 Anatoly Sokolov <aesok@post.ru>
26308
26309 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
26310 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
26311 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26312 (s390_preferred_reload_class): Make static. Change return and
26313 'rclass' argument type to reg_class_t.
26314
26315 2011-01-27 Jan Hubicka <jh@suse.cz>
26316
26317 PR middle-end/46949
26318 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
26319 (process_function_and_variable_attributes): Check defined weakrefs.
26320
26321 2011-01-27 Martin Jambor <mjambor@suse.cz>
26322
26323 PR tree-optimization/47228
26324 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
26325 build_ref_for_offset.
26326
26327 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26328
26329 * config/spu/spu-elf.h (ASM_SPEC): Remove.
26330
26331 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
26332
26333 PR rtl-optimization/46856
26334 * postreload.c (reload_combine_recognize_const_pattern): Do not
26335 separate cc0 setter and user on cc0 targets.
26336
26337 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
26338
26339 PR c/43082
26340 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
26341 passed a VOID_TYPE expression, immediately emit an error and
26342 return error_mark_node.
26343
26344 2011-01-26 Jeff Law <law@redhat.com>
26345
26346 PR rtl-optimization/47464
26347 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
26348 rather than may_trap_p as needed.
26349
26350 2011-01-26 DJ Delorie <dj@redhat.com>
26351
26352 PR rtl-optimization/46878
26353 * combine.c (insn_a_feeds_b): Check for the implicit cc0
26354 setter/user dependency as well.
26355
26356 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
26357
26358 PR rtl-optimization/44469
26359 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
26360 after removing trivially dead basic blocks.
26361
26362 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26363
26364 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
26365 * config/frv/frv.h (LINK_SPEC): Likewise.
26366 * config/i386/netware.h (LINK_SPEC): Likewise.
26367 * config/m68k/linux.h (ASM_SPEC): Likewise.
26368 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
26369 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26370 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26371 * config/sparc/linux.h (ASM_SPEC): Likewise.
26372 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26373 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26374
26375 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26376
26377 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
26378 * config/frv/frv.h (ASM_SPEC): Likewise.
26379 * config/m68k/linux.h (ASM_SPEC): Likewise.
26380 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26381 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
26382 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26383 * config/sparc/linux.h (ASM_SPEC): Likewise.
26384 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26385 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26386
26387 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26388
26389 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
26390 * config/frv/frv.h (LINK_SPEC): Likewise.
26391 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
26392
26393 2011-01-26 Joseph Myers <joseph@codesourcery.com>
26394
26395 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
26396 * config/frv/frv.h (ASM_SPEC): Likewise.
26397 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
26398 * config/m68k/linux.h (ASM_SPEC): Likewise.
26399 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
26400 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
26401 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
26402 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
26403 * config/sparc/linux.h (ASM_SPEC): Likewise.
26404 * config/sparc/linux64.h (ASM_SPEC): Likewise.
26405 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
26406 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
26407
26408 2011-01-26 Steve Ellcey <sje@cup.hp.com>
26409
26410 PR target/46997
26411 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
26412 (*mux2): Ditto.
26413 (vec_extract_evenodd_help): Ditto.
26414 (vec_extract_evenv4hi): Ditto.
26415 (vec_extract_oddv4hi): Ditto.
26416 (vec_interleave_lowv2si): Ditto.
26417 (vec_interleave_highv2si): Ditto.
26418 (vec_extract_evenv2si): Ditto.
26419 (vec_extract_oddv2si: Ditto.
26420 (vec_pack_trunc_v2si): Ditto.
26421
26422 2011-01-22 Jan Hubicka <jh@suse.cz>
26423
26424 PR target/47237
26425 * cgraph.h (cgraph_local_info): New field can_change_signature.
26426 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
26427 signature can change.
26428 (ipcp_estimate_growth): Call sequence simplify only if calle signature
26429 can change.
26430 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
26431 (cgraph_function_versioning): We can not change signature of functions
26432 that don't allow that.
26433 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
26434 (lto_input_node): Likewise.
26435 * ipa-inline.c (compute_inline_parameters): Compute
26436 local.can_change_signature.
26437 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
26438 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
26439 functions that can not change signature.
26440 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
26441 init_cumulative_args): Do not use local calling conventions
26442 for functions that can not change signature.
26443
26444 2011-01-22 Jan Hubicka <jh@suse.cz>
26445
26446 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
26447
26448 2011-01-26 Richard Guenther <rguenther@suse.de>
26449
26450 PR tree-optimization/47190
26451 * cgraphunit.c (process_common_attributes): New function.
26452 (process_function_and_variable_attributes): Use it.
26453
26454 2011-01-26 Richard Guenther <rguenther@suse.de>
26455
26456 PR lto/47423
26457 * cgraphbuild.c (record_eh_tables): Record reference to personality
26458 function.
26459
26460 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
26461
26462 PR debug/45454
26463 * sel-sched.c (moveup_expr): Don't let debug insns prevent
26464 non-debug insns from moving up.
26465
26466 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26467
26468 PR target/40125
26469 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
26470 t-dlldir{,-x} fragment for build and add it to tmake_file.
26471 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
26472 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
26473 * config/i386/t-dlldir: New file.
26474 (SHLIB_DLLDIR): Define.
26475 * config/i386/t-dlldir-x: New file.
26476 (SHLIB_DLLDIR): Define.
26477 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
26478 (SHLIB_INSTALL): Use it.
26479
26480 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
26481
26482 PR target/47246
26483 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
26484 lower bound of the allowed Thumb-2 coprocessor load/store
26485 index range to -256. Add explaining comment.
26486
26487 2011-01-25 Ian Lance Taylor <iant@google.com>
26488
26489 * godump.c (go_define): Improve lexing of macro expansion to only
26490 accept expressions which match Go spec.
26491
26492 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
26493
26494 PR c++/43601
26495 * tree.c (handle_dll_attribute): Handle it.
26496 * doc/extend.texi (@item dllexport): Mention it.
26497 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
26498
26499 2011-01-25 Ian Lance Taylor <iant@google.com>
26500
26501 PR tree-optimization/26854
26502 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
26503 (decl_jump_unsafe): Move higher in file, with no other change.
26504 (bind): Set has_jump_unsafe_decl if appropriate.
26505 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
26506 (check_earlier_gotos): Likewise.
26507 (c_check_switch_jump_warnings): Likewise.
26508
26509 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
26510
26511 * doc/invoke.texi (Warning Options): Add missing hyphen.
26512 (-fprofile-dir): Minor grammatical fixes.
26513 (-fbranch-probabilities): Likewise.
26514
26515 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
26516
26517 PR debug/45136
26518 PR debug/45130
26519 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
26520 debug insns.
26521 (no_real_insns_p, schedule_block, set_priorities): Drop special
26522 treatment of boundary debug insns.
26523 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
26524 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
26525 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
26526 (BOUNDARY_DEBUG_INSN_P): Likewise.
26527 (SCHEDULE_DEBUG_INSN_P): Likewise.
26528 * sched-rgn.c (init_ready_list): Drop special treatment of
26529 boundary debug insns.
26530 * final.c (rest_of_clean-state): Clear notes' BB.
26531
26532 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26533
26534 * Makefile.in (LAMBDA_H): Removed.
26535 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
26536 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
26537 lambda-trans.o, and tree-loop-linear.o.
26538 (lto-symtab.o): Remove dependence on LAMBDA_H.
26539 (tree-loop-linear.o): Remove rule.
26540 (lambda-mat.o): Same.
26541 (lambda-trans.o): Same.
26542 (lambda-code.o): Same.
26543 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
26544 (tree-vect-slp.o): Same.
26545 * hwint.h (gcd): Moved here.
26546 (least_common_multiple): Same.
26547 * lambda-code.c: Removed.
26548 * lambda-mat.c: Removed.
26549 * lambda-trans.c: Removed.
26550 * lambda.h: Removed.
26551 * tree-loop-linear.c: Removed.
26552 * lto-symtab.c: Do not include lambda.h.
26553 * omega.c (gcd): Removed.
26554 * passes.c (init_optimization_passes): Remove pass_linear_transform.
26555 * tree-data-ref.c (print_lambda_vector): Moved here.
26556 (lambda_vector_copy): Same.
26557 (lambda_matrix_copy): Same.
26558 (lambda_matrix_id): Same.
26559 (lambda_vector_first_nz): Same.
26560 (lambda_matrix_row_add): Same.
26561 (lambda_matrix_row_exchange): Same.
26562 (lambda_vector_mult_const): Same.
26563 (lambda_vector_negate): Same.
26564 (lambda_matrix_row_negate): Same.
26565 (lambda_vector_equal): Same.
26566 (lambda_matrix_right_hermite): Same.
26567 * tree-data-ref.h: Do not include lambda.h.
26568 (lambda_vector): Moved here.
26569 (lambda_matrix): Same.
26570 (dependence_level): Same.
26571 (lambda_transform_legal_p): Removed declaration.
26572 (lambda_collect_parameters): Same.
26573 (lambda_compute_access_matrices): Same.
26574 (lambda_vector_gcd): Same.
26575 (lambda_vector_new): Same.
26576 (lambda_vector_clear): Same.
26577 (lambda_vector_lexico_pos): Same.
26578 (lambda_vector_zerop): Same.
26579 (lambda_matrix_new): Same.
26580 * tree-flow.h (least_common_multiple): Removed declaration.
26581 * tree-parloops.c (lambda_trans_matrix): Moved here.
26582 (LTM_MATRIX): Same.
26583 (LTM_ROWSIZE): Same.
26584 (LTM_COLSIZE): Same.
26585 (LTM_DENOMINATOR): Same.
26586 (lambda_trans_matrix_new): Same.
26587 (lambda_matrix_vector_mult): Same.
26588 (lambda_transform_legal_p): Same.
26589 * tree-pass.h (pass_linear_transform): Removed declaration.
26590 * tree-ssa-loop.c (tree_linear_transform): Removed.
26591 (gate_tree_linear_transform): Removed.
26592 (pass_linear_transform): Removed.
26593 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
26594 flag_loop_interchange.
26595
26596 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26597
26598 PR tree-optimization/47265
26599 PR tree-optimization/47443
26600 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
26601 if name still has some uses.
26602
26603 2011-01-25 Martin Jambor <mjambor@suse.cz>
26604
26605 PR tree-optimization/47382
26606 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
26607 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
26608
26609 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
26610
26611 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
26612 sjlj_except_unwind_info.
26613
26614 2011-01-25 Richard Guenther <rguenther@suse.de>
26615
26616 PR tree-optimization/47426
26617 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
26618 visible functions results escape.
26619
26620 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26621
26622 PR target/45701
26623 * config/arm/arm.c (any_sibcall_uses_r3): New function.
26624 (arm_get_frame_offsets): Use it.
26625
26626 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26627 Jakub Jelinek <jakub@redhat.com>
26628
26629 PR tree-optimization/47271
26630 * tree-if-conv.c (bb_postdominates_preds): New.
26631 (if_convertible_bb_p): Call bb_postdominates_preds.
26632 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
26633 (predicate_scalar_phi): Call bb_postdominates_preds.
26634
26635 2011-01-25 Nick Clifton <nickc@redhat.com>
26636
26637 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
26638 * config/rx/rx.c (rx_function_value): Likewise.
26639 (rx_promote_function_mode): Likewise.
26640 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
26641 in order to make it legitimate.
26642 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
26643 make sure that the first operand is the same as the result register.
26644 (addsi3_unspec): Delete.
26645 (subdi3): Do not accept immediate operands.
26646 (subdi3_internal): Likewise.
26647
26648 2011-01-25 Jeff Law <law@redhat.com>
26649
26650 PR rtl-optimization/37273
26651 * ira-costs.c (scan_one_insn): Detect constants living in memory and
26652 handle them like argument loads from stack slots. Do not double
26653 count memory for memory constants and argument loads from stack slots.
26654
26655 2011-01-25 Jakub Jelinek <jakub@redhat.com>
26656
26657 PR tree-optimization/47427
26658 PR tree-optimization/47428
26659 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
26660 coalesce if the new root var would be TREE_READONLY.
26661
26662 2011-01-25 Richard Guenther <rguenther@suse.de>
26663
26664 PR middle-end/47414
26665 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
26666 correct type for TBAA.
26667
26668 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26669
26670 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
26671 (close_phi_written_to_memory): Call for_each_index with
26672 dr_indices_valid_in_loop.
26673
26674 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26675
26676 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
26677 when it is initialized.
26678
26679 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26680
26681 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
26682 call to graphite_find_data_references_in_stmt.
26683 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
26684 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
26685 call to graphite_find_data_references_in_stmt.
26686 (analyze_drs_in_stmts): Same.
26687 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
26688 in which the scalar analysis of indices is performed.
26689 (create_data_ref): Same. Update call to dr_analyze_indices.
26690 (find_data_references_in_stmt): Update call to create_data_ref.
26691 (graphite_find_data_references_in_stmt): Same.
26692 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
26693 declaration.
26694 (create_data_ref): Same.
26695 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
26696 call to create_data_ref.
26697
26698 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26699
26700 * graphite-sese-to-poly.c (build_poly_scop): Move
26701 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
26702
26703 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26704
26705 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
26706 VAR_DECL, PARM_DECL, and RESULT_DECL.
26707
26708 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26709
26710 * graphite-dependences.c (reduction_dr_1): Allow several reductions
26711 in a reduction PBB.
26712 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
26713 that have already been marked as PBB_IS_REDUCTION.
26714
26715 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26716
26717 * graphite-scop-detection.c (same_close_phi_node): New.
26718 (remove_duplicate_close_phi): New.
26719 (make_close_phi_nodes_unique): New.
26720 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
26721
26722 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26723
26724 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
26725 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
26726 of both data references to be the same.
26727
26728 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26729
26730 * graphite-dependences.c (build_lexicographical_constraint): Remove
26731 the gdim parameter.
26732 (build_lexicographical_constraint): Adjust call to
26733 ppl_powerset_is_empty.
26734 (dependence_polyhedron): Same.
26735 (graphite_legal_transform_dr): Same.
26736 (graphite_carried_dependence_level_k): Same.
26737 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
26738 parameter.
26739 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
26740
26741 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26742
26743 * graphite-sese-to-poly.c
26744 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
26745 (close_phi_written_to_memory): New.
26746 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
26747 and unshare_expr.
26748
26749 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26750
26751 * doc/install.texi: Update the expected version number of PPL to 0.11.
26752 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
26753 #if PPL_VERSION_MINOR < 11.
26754
26755 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26756
26757 * graphite-dependences.c: Include graphite-cloog-util.h.
26758 (new_poly_ddr): Inlined into dependence_polyhedron.
26759 (free_poly_ddr): Moved close by new_poly_ddr.
26760 (dependence_polyhedron_1): Renamed dependence_polyhedron.
26761 Early return NULL when ppl_powerset_is_empty returns true.
26762 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
26763 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
26764 (graphite_legal_transform_dr): Call new_poly_ddr.
26765 (graphite_carried_dependence_level_k): Same.
26766 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
26767 (dot_transformed_deps_stmt_1): Removed.
26768 (dot_deps_stmt_1): Call dot_deps_stmt_2.
26769 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
26770 (dot_deps_1): Call dot_deps_2.
26771 * Makefile.in (graphite-dependences.o): Add missing dependence on
26772 graphite-cloog-util.h.
26773
26774 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26775
26776 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
26777 (build_lexicographical_constraint): Same.
26778 (dependence_polyhedron_1): Same.
26779 (graphite_legal_transform_dr): Same.
26780 (graphite_carried_dependence_level_k): Same.
26781 * graphite-ppl.c (ppl_powerset_is_empty): New.
26782 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
26783 * tree-data-ref.c (dump_data_reference): Print the basic block index.
26784
26785 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26786
26787 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
26788 the "a followed by b" relation and document it.
26789
26790 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26791
26792 * graphite-dependences.c (build_lexicographical_constraint): Stop the
26793 iteration when the bag of constraints is empty.
26794
26795 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26796
26797 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
26798
26799 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26800
26801 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
26802 nest and two loop depths as parameters.
26803 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
26804 lst_perfect_nestify.
26805
26806 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26807
26808 * graphite-dependences.c (print_pddr): Call
26809 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
26810
26811 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
26812
26813 * graphite-ppl.c (debug_gmp_value): New.
26814 * graphite-ppl.h (debug_gmp_value): Declared.
26815
26816 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
26817
26818 * doc/install.texi: Document availability of cloog-0.16.
26819
26820 2011-01-25 Vladimir Kargov <kargov@gmail.com>
26821
26822 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
26823 invalid postdominance info.
26824
26825 2011-01-24 Jan Hubicka <jh@suse.cz>
26826
26827 PR c/21659
26828 * doc/extend.texi (weak pragma): Drop claim that it must
26829 appear before definition.
26830 * varasm.c (merge_weak, declare_weak): Only sanity check
26831 that DECL is not output at a time it is declared weak.
26832
26833 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
26834
26835 * machmode.def: Fixed comments.
26836
26837 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
26838
26839 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
26840
26841 2011-01-24 Paul Koning <ni1d@arrl.net>
26842
26843 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
26844 WORDS_BIG_ENDIAN.
26845
26846 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
26847
26848 PR target/46519
26849 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
26850 (block_info): Add scanned and prev.
26851 (move_or_delete_vzeroupper_2): Return if the basic block
26852 has been scanned and the upper 128bit state is unchanged
26853 from the last scan.
26854 (move_or_delete_vzeroupper_1): Return true if the exit
26855 state is changed.
26856 (move_or_delete_vzeroupper): Visit basic blocks using the
26857 work-list based algorithm based on vt_find_locations in
26858 var-tracking.c.
26859
26860 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
26861
26862 2011-01-24 Nick Clifton <nickc@redhat.com>
26863
26864 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
26865 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
26866 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
26867 then define __v850e1__.
26868 * doc/invoke.texi: Document -mv850es.
26869
26870 2011-01-24 Richard Henderson <rth@redhat.com>
26871
26872 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
26873 compound unordered comparisons.
26874 * config/rx/rx.c (rx_split_fp_compare): Remove.
26875 * config/rx/rx-protos.h: Update.
26876 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
26877 (cbranchsf4): Don't call rx_split_fp_compare.
26878 (*cbranchsf4): Use rx_split_cbranch.
26879 (*cmpsf): Don't accept "i" constraint.
26880 (*conditional_branch): Only valid after reload.
26881 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
26882
26883 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
26884
26885 PR target/47385
26886 * config/rs6000/altivec.md (vector constant splitters): Add
26887 support for creating vector single precision constants if -mvsx is
26888 used and we would create the constant using Altivec primitives.
26889
26890 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
26891 Richard Sandiford <rdsandiford@googlemail.com>
26892
26893 PR rtl-optimization/47166
26894 * reload1.c (emit_reload_insns): Disable the spill_reg_store
26895 mechanism for PRE_MODIFY and POST_MODIFY.
26896 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
26897 reloadreg.
26898
26899 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
26900
26901 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
26902
26903 2011-01-22 Jan Hubicka <jh@suse.cz>
26904
26905 PR lto/47333
26906 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
26907
26908 2011-01-22 Jan Hubicka <jh@suse.cz>
26909
26910 PR tree-optimization/43884
26911 PR lto/44334
26912 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
26913 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
26914
26915 2011-01-22 Anatoly Sokolov <aesok@post.ru>
26916
26917 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
26918 * config/s390/s390.c (s390_register_move_cost,
26919 s390_memory_move_cost): New.
26920 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
26921
26922 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26923
26924 PR middle-end/47401
26925 * except.c (sjlj_assign_call_site_values): Move setting the
26926 crtl->uses_eh_lsda flag to ...
26927 (sjlj_mark_call_sites): ... here.
26928 (sjlj_emit_function_enter): Support NULL dispatch label.
26929 (sjlj_build_landing_pads): In a function with no landing pads
26930 that still has must-not-throw regions, generate code to register
26931 a personality function with empty LSDA.
26932
26933 2011-01-21 Richard Henderson <rth@redhat.com>
26934
26935 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
26936
26937 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
26938
26939 * compare-elim.c: New file.
26940 * Makefile.in (OBJS-common): Add it.
26941 (compare-elim.o): New.
26942 * common.opt (fcompare-elim): New.
26943 * opts.c (default_options_table): Add OPT_fcompare_elim.
26944 * tree-pass.h (pass_compare_elim_after_reload): New.
26945 * passes.c (init_optimization_passes): Add it.
26946 * recog.h: Protect against re-inclusion.
26947 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
26948 * doc/invoke.texi (-fcompare-elim): Document it.
26949 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
26950 * doc/tm.texi: Rebuild.
26951
26952 2011-01-22 Nick Clifton <nickc@redhat.com>
26953
26954 * config/rx/rx.md (cstoresf4): Pass comparison operator to
26955 rx_split_fp_compare.
26956
26957 2011-01-22 Nick Clifton <nickc@redhat.com>
26958
26959 * config/rx/rx.md (UNSPEC_CONST): New.
26960 (deallocate_and_return): Wrap the amount popped off the stack in
26961 an UNSPEC_CONST in order to stop it being rejected by
26962 -mmax-constant-size.
26963 (pop_and_return): Add a "(return)" rtx.
26964 (call): Drop the immediate operand.
26965 (call_internal): Likewise.
26966 (call_value): Likewise.
26967 (call_value_internal): Likewise.
26968 (sibcall_internal): Likewise.
26969 (sibcall_value_internal): Likewise.
26970 (sibcall): Likewise. Generate an explicit call using
26971 sibcall_internal.
26972 (sibcall_value): Likewise.
26973 (mov<>): FAIL if a constant operand is not legitimate.
26974 (addsi3_unpsec): New pattern.
26975
26976 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
26977 (ok_for_max_constant): New function.
26978 (gen_safe_add): New function.
26979 (rx_expand_prologue): Use gen_safe_add.
26980 (rx_expand_epilogue): Likewise.
26981 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
26982 UNSPEC CONSTs.
26983
26984 2011-01-21 Jeff Law <law@redhat.com>
26985
26986 PR tree-optimization/47053
26987 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
26988 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
26989 statements are deleted.
26990 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
26991 is nonempty, then purge dead edges and cleanup the CFG.
26992
26993 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26994
26995 PR debug/47402
26996 Temporarily revert:
26997 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
26998 PR debug/47106
26999 * tree-dfa.c (create_var_ann): Mark variable as used.
27000
27001 2011-01-21 Jakub Jelinek <jakub@redhat.com>
27002
27003 PR middle-end/45566
27004 * except.c (convert_to_eh_region_ranges): Emit queued no-region
27005 notes from other section in hot/cold partitioning even if
27006 last_action is -3. Increment call_site_base.
27007
27008 PR rtl-optimization/47366
27009 * fwprop.c (forward_propagate_into): Return bool. If
27010 any changes are made, -fnon-call-exceptions is used and
27011 REG_EH_REGION note is present, call purge_dead_edges
27012 and return true if it purged anything.
27013 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
27014 any EH edges were purged.
27015
27016 2011-01-21 Jeff Law <law@redhat.com>
27017
27018 PR rtl-optimization/41619
27019 * caller-save.c (setup_save_areas): Break out code to determine
27020 which hard regs are live across calls by examining the reload chains
27021 so that it is always used.
27022 Eliminate code which checked REG_N_CALLS_CROSSED.
27023
27024 2011-01-21 Jakub Jelinek <jakub@redhat.com>
27025
27026 PR tree-optimization/47355
27027 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
27028 NOP has non-debug uses beyond PHIs in new_bb.
27029
27030 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
27031
27032 PR debug/47106
27033 * cfgexpand.c (account_used_vars_for_block): Only account vars
27034 that are annotated as used.
27035 (estimated_stack_frame_size): Don't set TREE_USED.
27036 * tree-dfa.c (create_var_ann): Mark variable as used.
27037
27038 2011-01-21 Richard Guenther <rguenther@suse.de>
27039
27040 PR middle-end/47395
27041 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
27042
27043 2011-01-21 Richard Guenther <rguenther@suse.de>
27044
27045 PR tree-optimization/47365
27046 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
27047 (vn_reference_lookup_pieces): Adjust.
27048 (vn_reference_lookup): Likewise.
27049 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
27050 (vn_reference_lookup_3): Only look through kills if in
27051 VN_WALKREWRITE mode.
27052 (vn_reference_lookup_pieces): Adjust.
27053 (vn_reference_lookup): Likewise.
27054 (visit_reference_op_load): Likewise.
27055 (visit_reference_op_store): Likewise.
27056 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
27057 (compute_avail): Likewise.
27058 (eliminate): Likewise.
27059
27060 2011-01-21 Jakub Jelinek <jakub@redhat.com>
27061
27062 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
27063 DECL_IGNORED_P non-reg vars if they are used.
27064
27065 PR tree-optimization/47391
27066 * varpool.c (const_value_known_p): Return false if
27067 decl is volatile.
27068
27069 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
27070
27071 PR bootstrap/47215
27072 * config/i386/i386.c (ix86_local_alignment): Handle
27073 case for va_list_type_node is nil.
27074 (ix86_canonical_va_list_type): Likewise.
27075
27076 2011-01-21 Alan Modra <amodra@gmail.com>
27077
27078 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
27079 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
27080
27081 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27082
27083 * config/arm/arm.md (define_attr type): Rename f_load
27084 and f_store to f_fpa_load and f_fpa_store. Update.
27085 (write_conflict): Deal with rename fallout.
27086 (*push_fp_multi): Likewise.
27087 * config/arm/fpa.md (f_load): Use f_fpa_load.
27088 (f_store): Use f_fpa_store.
27089 (*movsf_fpa): Likewise.
27090 (*movdf_fpa): Likewise.
27091 (*movxf_fpa): Likewise.
27092 (*thumb2_movsf_fpa): Likewise.
27093 (*thumb2_movdf_fpa): Likewise.
27094 (*thumb2_movxf_fpa): Likewise.
27095 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
27096 f_loadd and f_stored.
27097 (*thumb2_movdi_vfp): Likewise.
27098 (*thumb2_movsf_vfp): Fix attribute to f_loads.
27099 (*thumb2_movsi_vfp): Likewise.
27100 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
27101 Use f_loads instead of f_load.
27102 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
27103
27104 2011-01-20 Anatoly Sokolov <aesok@post.ru>
27105
27106 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27107 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
27108 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27109 (xtensa_mode_dependent_address_p): New function.
27110 (constantpool_address_p): Make static. Change return type to bool.
27111 Change argument type to const_rtx. Use CONST_INT_P predicate.
27112
27113 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
27114
27115 PR debug/46583
27116 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
27117
27118 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27119
27120 PR debug/47283
27121 * cfgexpand.c (expand_debug_expr): Instead of generating
27122 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
27123 etc. handling.
27124
27125 2011-01-20 Richard Guenther <rguenther@suse.de>
27126
27127 PR middle-end/47370
27128 * tree-inline.c (remap_gimple_op_r): Recurse manually for
27129 the pointer operand of MEM_REFs.
27130
27131 2011-01-20 Jakub Jelinek <jakub@redhat.com>
27132
27133 PR tree-optimization/46130
27134 * ipa-split.c (consider_split): If return_bb contains non-virtual
27135 PHIs other than for retval or if split_function would not adjust it,
27136 refuse to split.
27137
27138 2011-01-20 Richard Guenther <rguenther@suse.de>
27139
27140 PR tree-optimization/47167
27141 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
27142 Revert previous change, only avoid enumeral type changes.
27143
27144 2011-01-19 Mike Stump <mikestump@comcast.net>
27145
27146 * doc/tm.texi.in (BRANCH_COST): Englishify.
27147 * doc/tm.texi (BRANCH_COST): Likewise.
27148
27149 2011-01-19 Dodji Seketeli <dodji@redhat.com>
27150
27151 PR c++/47291
27152 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
27153 (gen_scheduled_generic_parms_dies): New functions.
27154 (gen_struct_or_union_type_die): Schedule template parameters DIEs
27155 generation for the end of CU compilation.
27156 (dwarf2out_finish): Generate template parameters DIEs here.
27157
27158 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27159
27160 PR debug/46240
27161 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
27162 debug bind stmt on merge edges.
27163
27164 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27165
27166 PR debug/47079
27167 PR debug/46724
27168 * function.c (instantiate_expr): Instantiate incoming rtl of
27169 implicit arguments, and recurse on VALUE_EXPRs.
27170 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
27171 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
27172
27173 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
27174
27175 * c-parser.c (c_parser_for_statement): Initialize
27176 collection_expression.
27177
27178 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27179
27180 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
27181
27182 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27183
27184 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
27185 (LINK_SHLIB_SPEC): Don't use %(link_path).
27186 (SUBTARGET_EXTRA_SPECS): Remove link_path.
27187
27188 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27189
27190 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
27191 (NO_SHARED_LIB_SUPPORT): Remove.
27192 (LINK_SHLIB_SPEC): Remove one conditional definition.
27193
27194 2011-01-19 Joseph Myers <joseph@codesourcery.com>
27195
27196 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
27197 %{call_shared}.
27198 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
27199 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
27200 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
27201 %{call_shared} and conditionals on these options not being passed.
27202 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
27203 %{call_shared}.
27204
27205 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27206
27207 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
27208 simplify.
27209
27210 * ipa-split.c: Spelling fixes.
27211
27212 2011-01-19 Richard Henderson <rth@redhat.com>
27213
27214 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
27215 (*mulsi3): Likewise.
27216
27217 * longlong.h [__mn10300__] (count_leading_zeros): New.
27218 [__mn10300__] (umul_ppmm, smul_ppmm): New.
27219 [__mn10300__] (add_ssaaaa, subddmmss): New.
27220 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
27221 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
27222
27223 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27224
27225 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
27226
27227 2011-01-19 Richard Henderson <rth@redhat.com>
27228
27229 * config/mn10300/mn10300.md (addsi3_flags): New.
27230 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
27231 (subsi3_flags, subc_internal, subdi3): New.
27232 (subdi3_internal, *subdi3_degenerate): New.
27233 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
27234
27235 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
27236 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
27237 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
27238 * config/mn10300/mn10300-protos.h: Update.
27239 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
27240 (return_ret): Likewise. Rename from return_internal_regs.
27241 (return_internal): Remove.
27242
27243 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
27244 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
27245 (mn10300_legitimate_constant_p): Likewise.
27246 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
27247 (mn10300_frame_size): New.
27248 (mn10300_expand_prologue): Use it.
27249 (mn10300_expand_epilogue): Likewise.
27250 (mn10300_initial_offset): Likewise.
27251 * config/mn10300/mn10300-protos.h: Update.
27252 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
27253 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
27254 (prologue, epilogue, return_internal): Tidy output code.
27255 (mn10300_store_multiple_operation, return): Likewise.
27256 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
27257 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
27258 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
27259 (load_pic, am33_load_pic): New.
27260 (mn10300_load_pic0, mn10300_load_pic1): New.
27261
27262 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
27263 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
27264 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
27265 (cc_flags_for_mode, cc_flags_for_code): New.
27266 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
27267 overflow flag is not valid. Validate that the flags we need
27268 for the comparison are valid.
27269 (mn10300_output_cmp): Remove.
27270 (mn10300_output_add): New.
27271 (mn10300_select_cc_mode): Use cc_flags_for_code.
27272 (mn10300_split_cbranch): New.
27273 (mn10300_match_ccmode): New.
27274 (mn10300_split_and_operand_count): New.
27275 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
27276 to the function.
27277 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
27278 (addsi3): ... here. Use mn10300_output_add.
27279 (*addsi3_flags): New.
27280 (*am33_subsi3, *mn10300_subsi3): Merge...
27281 (subsi3): ... here. Use attribute isa.
27282 (*subsi3_flags): New.
27283 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
27284 when possible.
27285 (*am33_andsi3, *mn10300_andsi3): Merge...
27286 (andsi3): ... here.
27287 (*andsi3_flags): New.
27288 (andsi3 splitters): New.
27289 (*am33_iorsi3, *mn10300_iorsi3): Merge...
27290 (iorsi3): ... here.
27291 (*iorsi3_flags): New.
27292 (*am33_xorsi3, *mn10300_xorsi3): Merge...
27293 (xorsi3): ... here.
27294 (*xorsi3_flags): New.
27295 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
27296 (one_cmplsi2): ... here.
27297 (*one_cmplsi2_flags): New.
27298 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
27299 instead of "dax" in constraints. Use mn10300_split_cbranch.
27300 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
27301 use matching constraints to eliminate a self-comparison.
27302 (*integer_conditional_branch): Rename from integer_conditional_branch.
27303 Use int_mode_flags to match CC_REG.
27304 (*cbranchsi4_btst, *btstsi): New.
27305 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
27306 mn10300_split_cbranch.
27307 (*am33_cmpsf): Rename from am33_cmpsf.
27308 (*float_conditional_branch): Rename from float_conditional_branch.
27309 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
27310 (zero_extendqisi2): ... here.
27311 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
27312 (zero_extendhisi2): ... here.
27313 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
27314 (extendqisi2): ... here.
27315 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
27316 (extendhisi2): ... here.
27317 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
27318 (ashlsi3): ... here.
27319 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
27320 (lshrsi3): ... here.
27321 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
27322 (ashrsi3): ... here.
27323 (consecutive add peephole): Remove.
27324 * config/mn10300/predicates.md (label_ref_operand): New.
27325 (int_mode_flags): New.
27326 (CCZN_comparison_operator): New.
27327
27328 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
27329 (throughput_42_latency_43): New reservation.
27330 (mulsidi3, umulsidi3): New expanders.
27331 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
27332 the MDR register to allocation; separately allocate the low and
27333 high parts of the DImode result.
27334 (umulsidi3_internal): Similarly.
27335 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
27336 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
27337 (udivsi3, umodsi3): Remove.
27338 (udivmodsi4, divmodsi4): New expanders.
27339 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
27340 (*divmodsi4): Simiarly.
27341 (ext_internal): New.
27342
27343 * config/mn10300/constraints.md ("z"): New constraint.
27344 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
27345 (FIXED_REGISTERS): Don't fix MDR.
27346 (CALL_USED_REGSITERS): Reformat nicely.
27347 (REG_ALLOC_ORDER): Add MDR.
27348 (enum regclass): Add MDR_REGS.
27349 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
27350 (IRA_COVER_CLASSES): Add MDR_REGS.
27351 (REGNO_REG_CLASS): Handle MDR_REG.
27352 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
27353 (mn10300_register_move_cost): Likewise.
27354 * config/mn10300/mn10300.md (MDR_REG): New.
27355 (*movsi_internal): Handle moves to/from MDR_REGS.
27356
27357 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
27358 POST_MODIFY.
27359 (mn10300_secondary_reload): Tidy combination reload classes.
27360 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
27361 addresses for AM33. Allow symbolic offsets for reg+imm.
27362 (mn10300_regno_in_class_p): New.
27363 (mn10300_legitimize_reload_address): New.
27364 * config/mn10300/mn10300.h (enum reg_class): Remove
27365 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
27366 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
27367 SP_OR_GENERAL_REGS.
27368 (REG_CLASS_NAMES): Update to match.
27369 (REG_CLASS_CONTENTS): Likewise.
27370 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
27371 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
27372 (REGNO_IN_RANGE_P): Remove.
27373 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
27374 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
27375 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
27376 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
27377 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
27378 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
27379 (REGNO_GENERAL_P): New.
27380 (HAVE_POST_MODIFY_DISP): New.
27381 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
27382 (LEGITIMIZE_RELOAD_ADDRESS): New.
27383 * config/mn10300/mn10300-protos.h: Update.
27384
27385 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
27386 DATA_REGS for AM33 stack-pointer destination.
27387 (mn10300_preferred_output_reload_class): Likewise.
27388 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
27389 into a form appropriate for ...
27390 (TARGET_SECONDARY_RELOAD): New.
27391 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
27392 * config/mn10300/mn10300-protos.h: Update.
27393 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
27394 reload_insi; use the "A" constraint for the scratch; handle AM33
27395 moves of sp to non-address registers.
27396
27397 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
27398 (*movqi_internal): ... here.
27399 (*am33_movhi, *mn10300_movhi): Merge into...
27400 (*movhi_internal): ... here.
27401 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
27402 as the source/destination of moves from/to SP.
27403 (movsf): Only allow for AM33-2.
27404 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
27405 any integer constant constraint. Only allow for AM33-2. Tidy
27406 all of the alternative outputs.
27407 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
27408 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
27409 for MN103.
27410 (udivsi3, umodsi3): New patterns for MN103 only.
27411
27412 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
27413
27414 * doc/tm.texi.in: Spell out that a lack of register class unions
27415 can lead to ICEs.
27416 * doc/tm.texi: Regenerate.
27417
27418 2011-01-19 Jakub Jelinek <jakub@redhat.com>
27419
27420 PR rtl-optimization/47337
27421 * dce.c (check_argument_store): New function.
27422 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
27423
27424 PR tree-optimization/47290
27425 * tree-eh.c (infinite_empty_loop_p): New function.
27426 (cleanup_empty_eh): Use it.
27427
27428 2011-01-18 Steve Ellcey <sje@cup.hp.com>
27429
27430 PR target/46997
27431 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
27432 (a64_expand_widen_sum): Ditto.
27433 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
27434 (vec_extract_evenodd_help): Ditto.
27435 (vec_extract_evenv4hi): Ditto.
27436 (vec_extract_oddv4hi): Ditto.
27437 (vec_extract_evenv2si): Ditto.
27438 (vec_extract_oddv2si): Ditto.
27439 (vec_extract_evenv2sf): Ditto.
27440 (vec_extract_oddv2sf): Ditto.
27441 (vec_pack_trunc_v4hi: Ditto.
27442 (vec_pack_trunc_v2si): Ditto.
27443 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
27444 (vec_interleave_highv8qi): Ditto.
27445 (mix1_r): Ditto.
27446 (vec_extract_oddv8qi): Ditto.
27447 (vec_interleave_lowv4hi): Ditto.
27448 (vec_interleave_highv4hi): Ditto.
27449 (vec_interleave_lowv2si): Ditto.
27450 (vec_interleave_highv2si): Ditto.
27451
27452 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
27453
27454 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
27455 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
27456 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
27457 (pa_c_mode_for_suffix): New.
27458 (TARGET_EXPAND_BUILTIN): Define.
27459 (TARGET_C_MODE_FOR_SUFFIX): Define.
27460 (pa_builtins): Define.
27461 (pa_init_builtins): Register __float128 type and init new support
27462 builtins.
27463 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
27464 * config/pa/quadlib.c (_U_Qfcopysign): New.
27465
27466 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
27467
27468 PR middle-end/46894
27469 * explow.c (allocate_dynamic_stack_space): Do not assume more than
27470 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
27471 are defined.
27472
27473 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27474
27475 PR tree-optimization/47179
27476 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
27477 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
27478
27479 2011-01-18 Richard Guenther <rguenther@suse.de>
27480
27481 PR rtl-optimization/47216
27482 * emit-rtl.c: Include tree-flow.h.
27483 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
27484 of replicating it with different semantics.
27485 * Makefile.in (emit-rtl.o): Adjust.
27486
27487 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27488
27489 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
27490 (cortex_a9_dp): Handle neon types correctly.
27491
27492 2011-01-18 Jakub Jelinek <jakub@redhat.com>
27493
27494 PR rtl-optimization/47299
27495 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
27496 subtarget. Use normal multiplication if both operands are constants.
27497 * expmed.c (expand_widening_mult): Don't try to optimize constant
27498 multiplication if op0 has VOIDmode. Convert op1 constant to mode
27499 before using it.
27500
27501 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27502
27503 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
27504 spacing after 'e.g.', typos, comma, hyphenation.
27505
27506 2011-01-17 Richard Henderson <rth@redhat.com>
27507
27508 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
27509 (rx_restricted_mem_operand): New.
27510 (rx_shift_operand): Use register_operand.
27511 (rx_source_operand, rx_compare_operand): Likewise.
27512 * config/rx/rx.md (addsi3_flags): New expander.
27513 (adddi3): Rewrite as expander.
27514 (adc_internal, *adc_flags, adddi3_internal): New patterns.
27515 (subsi3_flags): New expander.
27516 (subdi3): Rewrite as expander.
27517 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
27518
27519 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
27520 (rx_init_builtins): Remove sat builtin.
27521 (rx_expand_builtin): Likewise.
27522 * config/rx/rx.md (ssaddsi3): New.
27523 (*sat): Rename from sat. Represent the CC_REG input.
27524
27525 * config/rx/predicates.md (rshift_operator): New.
27526 * config/rx/rx.c (rx_expand_insv): Remove.
27527 * config/rx/rx-protos.h: Update.
27528 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
27529 operand to the canonical position.
27530 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
27531 (*bitclr, *bitclr_in_memory): Similarly.
27532 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
27533 (insv): Retain the zero_extract in the expansion.
27534
27535 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
27536 (bswaphi2, bitinvert, revw): Likewise.
27537
27538 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
27539 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
27540 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
27541 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
27542 (bitset, bitset_in_memory): Likewise.
27543 (bitinvert, bitinvert_in_memory): Likewise.
27544 (bitclr, bitclr_in_memory): Likewise.
27545 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
27546 (rx_strend, rx_cmpstrn): Likewise.
27547 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
27548 (bitop peep2 patterns): Remove.
27549
27550 * config/rx/rx.c (rx_match_ccmode): New.
27551 * config/rx/rx-protos.h: Update.
27552 * config/rx/rx.md (abssi2): Clobber, don't set flags.
27553 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
27554 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
27555 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
27556 (fix_truncsfsi2, floatsisf2): Likewise.
27557 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
27558 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
27559 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
27560 (*subsi3_flags, *xorsi3_flags): New.
27561
27562 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
27563
27564 * config/rx/rx.c (rx_print_operand): Remove workaround for
27565 unsplit comparison operations.
27566
27567 * config/rx/rx.md (movsicc): Split after reload.
27568 (*movsicc): Merge *movsieq and *movsine via match_operator.
27569 (*stcc): New pattern.
27570
27571 * config/rx/rx.c (rx_float_compare_mode): Remove.
27572 * config/rx/rx.h (rx_float_compare_mode): Remove.
27573 * config/rx/rx.md (cstoresi4): Split after reload.
27574 (*sccc): New pattern.
27575
27576 * config/rx/predicates.md (label_ref_operand): New.
27577 (rx_z_comparison_operator): New.
27578 (rx_zs_comparison_operator): New.
27579 (rx_fp_comparison_operator): New.
27580 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
27581 Validate that the flags are set properly for the comparison.
27582 (rx_gen_cond_branch_template): Remove.
27583 (rx_cc_modes_compatible): Remove.
27584 (mode_from_flags): New.
27585 (flags_from_code): Rename from flags_needed_for_conditional.
27586 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
27587 (rx_select_cc_mode): Likewise.
27588 (rx_split_fp_compare): New.
27589 (rx_split_cbranch): New.
27590 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
27591 (*cbranchsi4): Use match_operator and rx_split_cbranch.
27592 (*cbranchsf4): Similarly.
27593 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
27594 match_operator and rx_split_cbranch.
27595 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
27596 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
27597 (*cmpsi): Rename from cmpsi.
27598 (*tstsi): Rename from tstsi.
27599 (*cmpsf): Rename from cmpsf; use CC_Fmode.
27600 (*conditional_branch): Rename from conditional_branch.
27601 (*reveresed_conditional_branch): Remove.
27602 (b<code>): Remove expander.
27603 * config/rx/rx-protos.h: Update.
27604
27605 * config/rx/rx.c (rx_compare_redundant): Remove.
27606 * config/rx/rx.md (cmpsi): Don't use it.
27607 * config/rx/rx-protos.h: Update.
27608
27609 * config/rx/rx-modes.def (CC_F): New mode.
27610 * config/rx/rx.c (rx_select_cc_mode): New.
27611 * config/rx/rx.h (SELECT_CC_MODE): Use it.
27612 * config/rx/rx-protos.h: Update.
27613
27614 2011-01-17 Richard Henderson <rth@redhat.com>
27615
27616 * except.c (dump_eh_tree): Fix stray ; after for statement.
27617
27618 2011-01-17 Richard Guenther <rguenther@suse.de>
27619
27620 PR tree-optimization/47313
27621 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
27622 handling before copying the body. Properly deal with
27623 by-reference result in SSA form.
27624
27625 2011-01-17 Ian Lance Taylor <iant@google.com>
27626
27627 PR target/47219
27628 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
27629 (struct_value_alias_set): Don't define.
27630 (sparc_option_override): Don't set sparc_sr_alias_set and
27631 struct_value_alias_set.
27632 (save_or_restore_regs): Use gen_frame_mem rather than calling
27633 set_mem_alias_set.
27634 (sparc_struct_value_rtx): Likewise.
27635
27636 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
27637
27638 PR target/47318
27639 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
27640 (_mm_maskstore_pd): Likewise.
27641 (_mm_maskload_ps): Likewise.
27642 (_mm_maskstore_ps): Likewise.
27643 (_mm256_maskload_pd): Change mask to __m256i.
27644 (_mm256_maskstore_pd): Likewise.
27645 (_mm256_maskload_ps): Likewise.
27646 (_mm256_maskstore_ps): Likewise.
27647
27648 * config/i386/i386-builtin-types.def: Updated.
27649 (ix86_expand_special_args_builtin): Likewise.
27650
27651 * config/i386/i386.c (bdesc_special_args): Update
27652 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
27653 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
27654 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
27655 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
27656
27657 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
27658 Use <avxpermvecmode> on mask register.
27659 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
27660
27661 2011-01-17 Olivier Hainque <hainque@adacore.com>
27662 Michael Haubenwallner <michael.haubenwallner@salomon.at>
27663 Eric Botcazou <ebotcazou@adacore.com>
27664
27665 PR target/46655
27666 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
27667 if <= USHRT_MAX in 32-bit mode.
27668
27669 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27670
27671 * doc/install.texi (Configuration, Specific): Wrap long
27672 lines in examples. Allow line wrapping in long options
27673 and URLs where beneficial for PDF output.
27674
27675 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
27676
27677 * config/mips/mips.c (mips_classify_symbol): Don't return
27678 SYMBOL_PC_RELATIVE for nonlocal labels.
27679
27680 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
27681
27682 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
27683
27684 2011-01-15 Jan Hubicka <jh@suse.cz>
27685
27686 PR tree-optimization/47276
27687 * ipa.c (function_and_variable_visibility): Do not try to mark alias
27688 declarations as needed.
27689
27690 2011-01-15 Martin Jambor <mjambor@suse.cz>
27691
27692 * common.opt (fdevirtualize): New flag.
27693 * doc/invoke.texi (Option Summary): Document it.
27694 * opts.c (default_options_table): Add devirtualize flag.
27695 * ipa-prop.c (detect_type_change): Return immediately if
27696 devirtualize flag is not set.
27697 (detect_type_change_ssa): Likewise.
27698 (compute_known_type_jump_func): Likewise.
27699 (ipa_analyze_virtual_call_uses): Likewise.
27700
27701 2011-01-14 Martin Jambor <mjambor@suse.cz>
27702
27703 PR tree-optimization/45934
27704 PR tree-optimization/46302
27705 * ipa-prop.c (type_change_info): New type.
27706 (stmt_may_be_vtbl_ptr_store): New function.
27707 (check_stmt_for_type_change): Likewise.
27708 (detect_type_change): Likewise.
27709 (detect_type_change_ssa): Likewise.
27710 (compute_complex_assign_jump_func): Check for dynamic type change.
27711 (compute_complex_ancestor_jump_func): Likewise.
27712 (compute_known_type_jump_func): Likewise.
27713 (compute_scalar_jump_functions): Likewise.
27714 (ipa_analyze_virtual_call_uses): Likewise.
27715 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
27716
27717 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27718
27719 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
27720 * config/i386/i386.opt (msse5): New Alias.
27721
27722 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27723
27724 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
27725 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27726 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27727 * config/sparc/sparc.h (CC1_SPEC): Likewise.
27728
27729 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27730
27731 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
27732 -mcpu options.
27733 * config/sparc/linux64.h (CC1_SPEC): Likewise.
27734 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
27735 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
27736 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
27737 Likewise.
27738 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
27739
27740 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27741
27742 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
27743
27744 2011-01-14 Mike Stump <mikestump@comcast.net>
27745
27746 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
27747 * config/fr30/fr30.md: Likweise
27748 (movsi_push): Likewise.
27749 (movsi_pop): Likewise.
27750 (enter_func): Likewise.
27751 * config/moxie/moxie.md (movsi_push): Likewise.
27752 (movsi_pop): Likewise.
27753
27754 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27755
27756 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
27757 %{no_archive} %{exact_version}.
27758 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
27759 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
27760 %{no_archive} %{exact_version}.
27761 * config/mips/openbsd.h (LINK_SPEC): Likewise.
27762 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
27763 * config/mips/vxworks.h: Likewise.
27764
27765 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27766
27767 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
27768
27769 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27770
27771 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
27772 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
27773
27774 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27775
27776 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
27777 -nodefaultlib.
27778
27779 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27780
27781 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
27782 for mcpu not cpu.
27783 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
27784 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
27785 not cpu.
27786 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
27787 Don't handle -shlib.
27788
27789 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27790
27791 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
27792 (CC1_SPEC): Don't handle -profile.
27793
27794 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27795
27796 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
27797 * config/mips/mips.h (CC1_SPEC): Likewise.
27798
27799 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27800
27801 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
27802 * config/mips/mips.h (CC1_SPEC): Likewise.
27803
27804 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27805
27806 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
27807 * config/m32r/linux.h (LINK_SPEC): Likewise.
27808 * config/mips/linux.h (LINK_SPEC): Likewise.
27809 * config/mips/linux64.h (LINK_SPEC): Likewise.
27810 * config/sparc/linux.h (LINK_SPEC): Likewise.
27811 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
27812 LINK_SPEC): Likewise.
27813 * config/xtensa/linux.h (LINK_SPEC): Likewise.
27814
27815 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27816
27817 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
27818 %{version:-v}.
27819 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
27820
27821 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27822
27823 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
27824 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
27825
27826 2011-01-14 Joseph Myers <joseph@codesourcery.com>
27827
27828 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
27829
27830 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27831
27832 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
27833 supports -Bstatic/-Bdynamic.
27834 * configure: Regenerate.
27835
27836 2011-01-14 Jan Hubicka <jh@suse.cz>
27837 Jack Howarth <howarth@bromo.med.uc.edu>
27838
27839 PR target/46037
27840 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
27841 when checking debug_info_level. Test write_symbols instead of
27842 debug_hooks->var_location when setting flag_var_tracking_uninit.
27843
27844 2011-01-14 Richard Guenther <rguenther@suse.de>
27845
27846 PR tree-optimization/47179
27847 * target.def (ref_may_alias_errno): New target hook.
27848 * targhooks.h (default_ref_may_alias_errno): Declare.
27849 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
27850 (default_ref_may_alias_errno): New function.
27851 * target.h (struct ao_ref_s): Declare.
27852 * tree-ssa-alias.c: Include target.h.
27853 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
27854 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
27855 (targhooks.o): Likewise.
27856 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
27857 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
27858
27859 2011-01-14 Richard Guenther <rguenther@suse.de>
27860
27861 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
27862
27863 2011-01-14 Richard Guenther <rguenther@suse.de>
27864
27865 PR tree-optimization/47280
27866 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
27867 return CFG changes.
27868 (tree_ssa_forward_propagate_single_use_vars): Deal with
27869 CFG changes from associate_plusminus.
27870
27871 2011-01-14 Richard Guenther <rguenther@suse.de>
27872
27873 PR middle-end/47281
27874 Revert
27875 2011-01-11 Richard Guenther <rguenther@suse.de>
27876
27877 PR tree-optimization/46076
27878 * tree-ssa.c (useless_type_conversion_p): Conversions from
27879 unprototyped to empty argument list function types are useless.
27880
27881 2011-01-14 Richard Guenther <rguenther@suse.de>
27882
27883 PR tree-optimization/47286
27884 * tree-ssa-structalias.c (new_var_info): Register variables are global.
27885
27886 2011-01-14 Martin Jambor <mjambor@suse.cz>
27887
27888 PR middle-end/46823
27889 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
27890
27891 2011-01-13 Anatoly Sokolov <aesok@post.ru>
27892
27893 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
27894 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27895 * config/xtensa/xtensa.c (xtensa_libcall_value,
27896 xtensa_function_value_regno_p): New functions.
27897 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
27898
27899 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
27900
27901 PR c++/47213
27902 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
27903 PE specific hook.
27904 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
27905 New function prototype.
27906 * config/i386/winnt.c (i386_pe_assemble_visibility):
27907 Warn only if attribute was specified by user.
27908
27909 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
27910
27911 PR target/47251
27912 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
27913 floating point.
27914 (floatunsdidf2_fcfidu): Ditto.
27915
27916 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27917
27918 * config/s390/s390.c (print_operand_address): Replace 'error' with
27919 'output_operand_lossage'.
27920 (print_operand): Likewise.
27921
27922 2011-01-13 Jeff Law <law@redhat.com>
27923
27924 PR rtl-optimization/39077
27925 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
27926 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
27927 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
27928 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
27929 * gcse.c (prune_insertions_deletions): New function.
27930 (compute_pre_data): Use it.
27931
27932 2011-01-13 Dodji Seketeli <dodji@redhat.com>
27933
27934 PR debug/PR46973
27935 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
27936 static function.
27937 (prune_unused_types_mark): Use it.
27938
27939 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
27940
27941 PR rtl-optimization/45352
27942 * sel-sched.c: Update copyright years.
27943 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
27944 in the advancing loop when we have issued issue_rate insns.
27945
27946 2011-01-12 Richard Henderson <rth@redhat.com>
27947
27948 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
27949 (TARGET_MD_ASM_CLOBBERS): New.
27950
27951 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
27952 (TARGET_DELEGITIMIZE_ADDRESS): New.
27953
27954 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
27955 (clzsi2, *bsch): New patterns.
27956
27957 * config/mn10300/mn10300.md (INT): New mode iterator.
27958 (*mov<INT>_clr): New pattern, and peep2 to generate it.
27959
27960 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
27961 flag_split_wide_types.
27962
27963 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
27964 (mn10300_trampoline_init): Rewrite without a template, an immediate
27965 load and a direct branch.
27966 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
27967
27968 2011-01-12 Anatoly Sokolov <aesok@post.ru>
27969
27970 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
27971 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
27972 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
27973 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
27974
27975 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
27976
27977 PR debug/47209
27978 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
27979 of type.
27980
27981 2011-01-12 Jan Hubicka <jh@suse.cz>
27982
27983 PR driver/47244
27984 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
27985 (PLUGIN_COND_CLOSE): New macro.
27986 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
27987
27988 2011-01-12 Richard Guenther <rguenther@suse.de>
27989
27990 PR lto/47259
27991 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
27992 register variables in a MEM_REF.
27993
27994 2011-01-12 Joseph Myers <joseph@codesourcery.com>
27995
27996 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
27997 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
27998 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
27999 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
28000 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
28001 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
28002 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
28003 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
28004 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
28005 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
28006 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
28007 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
28008 * config/gnu-user.h: New. Copied from linux.h.
28009 (LINUX_TARGET_STARTFILE_SPEC): Rename to
28010 GNU_USER_TARGET_STARTFILE_SPEC.
28011 (LINUX_TARGET_ENDFILE_SPEC): Rename to
28012 GNU_USER_TARGET_ENDFILE_SPEC.
28013 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
28014 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
28015 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
28016 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
28017 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
28018 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
28019 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
28020 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
28021 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
28022 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
28023 * config/arm/linux-eabi.h (CC1_SPEC): Use
28024 GNU_USER_TARGET_CC1_SPEC.
28025 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
28026 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
28027 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
28028 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
28029 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
28030 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
28031 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
28032 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
28033
28034 2011-01-12 Richard Guenther <rguenther@suse.de>
28035
28036 PR other/46946
28037 * doc/invoke.texi (ffast-math): Document it is turned on
28038 with -Ofast.
28039
28040 2011-01-12 Jan Hubicka <jh@suse.cz>
28041
28042 PR tree-optimization/47233
28043 * opts.c (common_handle_option): Disable ipa-reference with profile
28044 feedback.
28045
28046 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
28047
28048 * c-parser.c (c_parser_objc_at_property_declaration): Improved
28049 error message.
28050
28051 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
28052
28053 * c-parser.c (c_lex_one_token): Updated and reindented some
28054 comments. No changes in code.
28055
28056 2011-01-11 Ian Lance Taylor <iant@google.com>
28057
28058 * godump.c (go_output_var): Don't output the variable if there is
28059 already a type with the same name.
28060
28061 2011-01-11 Ian Lance Taylor <iant@google.com>
28062
28063 * godump.c (go_format_type): Don't generate float80.
28064
28065 2011-01-11 Richard Henderson <rth@redhat.com>
28066
28067 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
28068 declaration. Rewrite for both speed and size.
28069 (mn10300_address_cost_1): Remove.
28070 (mn10300_register_move_cost): New.
28071 (mn10300_memory_move_cost): New.
28072 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
28073 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
28074 extensions, shifts, BSWAP, CLZ.
28075 (mn10300_wide_const_load_uses_clr): Remove.
28076 (TARGET_REGISTER_MOVE_COST): New.
28077 (TARGET_MEMORY_MOVE_COST): New.
28078 * config/mn10300/mn10300-protos.h: Update.
28079 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
28080
28081 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
28082 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
28083 * config/mn10300/mn10300-protos.h: Update.
28084 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
28085 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
28086 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
28087 (*test_int_bitfield, *test_byte_bitfield): Remove.
28088 (*bit_test, *subreg_bit_test): Remove.
28089 * config/mn10300/predicates.md (const_8bit_operand): Remove.
28090
28091 * config/mn10300/constraints.md ("c"): Rename from "A".
28092 ("A", "D"): New constraint letters.
28093 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
28094 (fmssf4, fnmasf4, fnmssf4): Likewise.
28095
28096 * config/mn10300/mn10300.md (isa): New attribute.
28097 (enabled): New attribute.
28098
28099 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
28100 (abssf2, negsf2): Define only for hardware fp.
28101 (sqrtsf2): Reformat.
28102 (addsf3, subsf3, mulsf3): Merge expander and insn.
28103
28104 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
28105 (DEBUGGER_AUTO_OFFSET): Remove.
28106 (DEBUGGER_ARG_OFFSET): Remove.
28107
28108 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
28109 Emit register stores with the same offsets as the hardware.
28110 (mn10300_store_multiple_operation): Don't check that the register
28111 save offsets are monotonic.
28112 * config/mn10300/mn10300-protos.h: Update.
28113
28114 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
28115
28116 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
28117 in terms of the value on the stack, not the MDR register.
28118
28119 2011-01-11 Jan Hubicka <jh@suse.cz>
28120
28121 PR lto/45721
28122 PR lto/45375
28123 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
28124 (symbol_alias_set_destroy, symbol_alias_set_contains,
28125 propagate_aliases_backward): Declare.
28126 * lto-streamer-out.c (struct sets): New sturcture.
28127 (trivally_defined_alias): New function.
28128 (output_alias_pair_p): Rewrite.
28129 (output_unreferenced_globals): Fix output of alias pairs.
28130 (produce_symtab): Likewise.
28131 * ipa.c (function_and_variable_visibility): Set weak alias destination
28132 as needed in lto.
28133 * varasm.c (symbol_alias_set_t): Remove.
28134 (symbol_alias_set_destroy): Export.
28135 (propagate_aliases_forward, propagate_aliases_backward): New functions
28136 based on ...
28137 (compute_visible_aliases): ... this one; remove.
28138 (trivially_visible_alias): New
28139 (trivially_defined_alias): New.
28140 (remove_unreachable_alias_pairs): Rewrite.
28141 (finish_aliases_1): Reorganize code checking if alias is defined.
28142 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
28143 in LTO mode.
28144
28145 2011-01-11 Richard Guenther <rguenther@suse.de>
28146
28147 PR tree-optimization/46076
28148 * tree-ssa.c (useless_type_conversion_p): Conversions from
28149 unprototyped to empty argument list function types are useless.
28150
28151 2011-01-11 Richard Guenther <rguenther@suse.de>
28152
28153 PR middle-end/45235
28154 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
28155 volatile MEMs as MEM_READONLY_P.
28156
28157 2011-01-11 Richard Guenther <rguenther@suse.de>
28158
28159 PR tree-optimization/47239
28160 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
28161
28162 2011-01-11 Jeff Law <law@redhat.com>
28163
28164 PR tree-optimization/47086
28165 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
28166 IVs from statements that might throw.
28167
28168 2011-01-10 Jan Hubicka <jh@suse.cz>
28169
28170 PR lto/45375
28171 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
28172
28173 2011-01-10 Jan Hubicka <jh@suse.cz>
28174
28175 PR lto/45375
28176 * profile.c (read_profile_edge_counts): Ignore profile inconistency
28177 when correcting profile.
28178
28179 2011-01-10 Jan Hubicka <jh@suse.cz>
28180
28181 PR lto/46083
28182 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
28183 DECL_FINI_PRIORITY.
28184 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
28185 Restore DECL_FINI_PRIORITY.
28186
28187 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28188
28189 * doc/gimple.texi: Fix quoting of multi-word return values in
28190 @deftypefn statements. Ensure presence of return value. Wrap
28191 overlong @deftypefn lines.
28192 (is_gimple_operand, is_gimple_min_invariant_address): Remove
28193 descriptions of removed functions.
28194 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
28195 of multi-word return value in @deftypefn statement.
28196
28197 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28198
28199 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
28200 (Conditional Expressions, Logical Operators)
28201 (Statement and operand traversals): Do not indent smallexample
28202 code. Fix duplicate function argument in example.
28203
28204 2011-01-10 Jeff Law <law@redhat.com>
28205
28206 PR tree-optimization/47141
28207 * ipa-split.c (split_function): Handle case where we are
28208 returning a value and the return block has a virtual operand phi.
28209
28210 2011-01-10 Jan Hubicka <jh@suse.cz>
28211
28212 PR tree-optimization/47234
28213 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
28214 (pass_feedback_split_functions): Declare.
28215 * passes.c (init_optimization_passes): Add ipa-split as subpass of
28216 tree-profile.
28217 * ipa-split.c (gate_split_functions): Update comments; disable
28218 split-functions for profile_arc_flag and branch_probabilities.
28219 (gate_feedback_split_functions): New function.
28220 (execute_feedback_split_functions): New function.
28221 (pass_feedback_split_functions): New global var.
28222
28223 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
28224
28225 PR lto/46760
28226 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
28227 calling gimple_call_set_cannot_inline.
28228
28229 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
28230
28231 * config/darwin-sections.def: Remove unused section.
28232
28233 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
28234
28235 PR c++/47218
28236 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
28237
28238 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
28239
28240 PR objc/47232
28241 * c-parser.c (c_parser_declaration_or_fndef): Improved
28242 error message.
28243
28244 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
28245
28246 * config/i386/winnt.c (i386_pe_start_function): Make sure
28247 to switch back to function's section.
28248
28249 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
28250
28251 PR gcc/46902
28252 PR testsuite/46912
28253 * plugin.c: Move include of dlfcn.h from here...
28254 * system.h: ... to here.
28255
28256 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28257
28258 * doc/cpp.texi (C++ Named Operators): Fix markup for header
28259 file name.
28260 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
28261 two extra empty pages in PDF output.
28262
28263 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
28264
28265 PR objc/47078
28266 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
28267 for error recovery purposes behave as if it was not specified so
28268 that the default type is usd.
28269
28270 2011-01-07 Jan Hubicka <jh@suse.cz>
28271
28272 PR tree-optmization/46469
28273 * ipa.c (function_and_variable_visibility): Clear needed flags on
28274 nodes with external decls; handle weakrefs merging correctly.
28275
28276 2011-01-07 Joseph Myers <joseph@codesourcery.com>
28277
28278 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
28279 not false.
28280
28281 2011-01-07 Jan Hubicka <jh@suse.cz>
28282
28283 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
28284 and no longer claim that gold is required for linker plugin.
28285 * configure: Regenerate.
28286 * gcc.c (PLUGIN_COND): New macro.
28287 (LINK_COMMAND_SPEC): Use it.
28288 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
28289 * config.in (HAVE_LTO_PLUGIN): New.
28290 * configure.ac (--with-lto-plugin): New parameter; autodetect
28291 HAVE_LTO_PLUGIN.
28292
28293 2011-01-07 Jan Hubicka <jh@suse.cz>
28294
28295 PR tree-optimization/46367
28296 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
28297 when we can update original.
28298 (cgraph_mark_inline_edge): Sanity check.
28299 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
28300
28301 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28302
28303 * config/spu/spu.h (ASM_COMMENT_START): Define.
28304
28305 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
28306
28307 PR driver/42445
28308 * gcc.c (%>S): New.
28309 (SWITCH_KEEP_FOR_GCC): Likewise.
28310 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
28311 (do_spec_1): Handle "%>".
28312
28313 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
28314
28315 2011-01-07 Jakub Jelinek <jakub@redhat.com>
28316
28317 PR target/47201
28318 * config/i386/i386.c (ix86_delegitimize_address): If
28319 simplify_gen_subreg fails, return orig_x.
28320
28321 PR bootstrap/47187
28322 * value-prof.c (gimple_stringop_fixed_value): Handle
28323 lhs of the call properly.
28324
28325 2011-01-07 Jan Hubicka <jh@suse.cz>
28326
28327 PR lto/45375
28328 * lto-opt.c (lto_reissue_options): Set flag_shlib.
28329
28330 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28331
28332 * target.def (function_switched_text_sections): New hook.
28333 * doc/tm.texi: Regenerated.
28334 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28335 * final.c (default_function_switched_text_sections): New.
28336 (final_scan_insn): Call function_switched_text_sections when a
28337 mid-function section change occurs.
28338 * output.h (default_function_switched_text_sections): Declare.
28339 * config/darwin-protos.h (darwin_function_switched_text_sections):
28340 Likewise.
28341 * config/darwin.c (darwin_function_switched_text_sections): New.
28342 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
28343
28344 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
28345
28346 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
28347 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
28348 the secondary code fragment when outputting for DWARF == 2.
28349
28350 2011-01-07 Anatoly Sokolov <aesok@post.ru>
28351
28352 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
28353 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
28354 Remove.
28355 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
28356 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
28357
28358 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
28359
28360 PR debug/46704
28361 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
28362 when it is not empty.
28363
28364 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
28365
28366 Bobcat Enablement
28367 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
28368 (case ${target}): Add btver1.
28369 * config/i386/driver-i386.c (host_detect_local_cpu): Let
28370 -march=native recognize btver1 processors.
28371 * config/i386/i386-c.c (ix86_target_macros_internal): Add
28372 btver1 def_and_undef
28373 * config/i386/i386.c (struct processor_costs btver1_cost): New
28374 btver1 cost table.
28375 (m_BTVER1): New definition.
28376 (m_AMD_MULTIPLE): Includes m_BTVER1.
28377 (initial_ix86_tune_features): Add btver1 tune.
28378 (processor_target_table): Add btver1 entry.
28379 (static const char *const cpu_names): Add btver1 entry.
28380 (software_prefetching_beneficial_p): Add btver1.
28381 (ix86_option_override_internal): Add btver1 instruction sets.
28382 (ix86_issue_rate): Add btver1.
28383 (ix86_adjust_cost): Add btver1.
28384 * config/i386/i386.h (TARGET_BTVER1): New definition.
28385 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
28386 (enum processor_type): Add PROCESSOR_BTVER1.
28387 * config/i386/i386.md (define_attr "cpu"): Add btver1.
28388
28389 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28390
28391 PR target/43309
28392 * config/i386/i386.c (legitimize_tls_address)
28393 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
28394 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
28395 (tls_initial_exec_64_sun): New pattern.
28396
28397 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
28398
28399 * doc/invoke.texi (Overall Options): Improve wording and markup
28400 of the description of -wrapper.
28401
28402 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28403
28404 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
28405 rdynamic, threads): New Driver options.
28406
28407 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28408
28409 PR target/38118
28410 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
28411 if coming from .tdata.
28412 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
28413
28414 2011-01-06 Jan Hubicka <jh@suse.cz>
28415
28416 PR lto/47188
28417 * collect2.c (main): Do not enable LTOmode when plugin is active.
28418
28419 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28420
28421 PR other/45915
28422 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
28423 --version output if supported.
28424 * configure: Regenerate.
28425
28426 2011-01-06 Joseph Myers <joseph@codesourcery.com>
28427
28428 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
28429 Driver options.
28430
28431 2011-01-06 Jakub Jelinek <jakub@redhat.com>
28432
28433 PR c/47150
28434 * c-convert.c (convert): When converting a complex expression
28435 other than COMPLEX_EXPR to a different complex type, ensure
28436 c_save_expr is called instead of save_expr, unless in_late_binary_op.
28437 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
28438 when converting COMPLEX_TYPE.
28439
28440 2011-01-06 Ira Rosen <irar@il.ibm.com>
28441
28442 PR tree-optimization/47139
28443 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
28444 only the last reduction value is used outside the loop. Update
28445 documentation.
28446
28447 2011-01-05 Joseph Myers <joseph@codesourcery.com>
28448
28449 * config/rtems.opt: New.
28450 * config.gcc (*-*-rtems*): Use rtems.opt.
28451
28452 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
28453
28454 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
28455 processors do not support 3DNow instructions.
28456
28457 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28458
28459 * config/spu/spu.c (spu_option_override): Set parameter
28460 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
28461
28462 2011-01-05 Jan Hubicka <jh@suse.cz>
28463
28464 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
28465 at the command line.
28466
28467 2011-01-05 Martin Jambor <mjambor@suse.cz>
28468
28469 PR lto/47162
28470 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
28471 deltas on streamed outgoing edges.
28472 (output_node_opt_summary): Output info for outgoing edges only when
28473 the node is in new parameter set.
28474 (output_cgraph_opt_summary): New parameter set, passed to the two
28475 aforementioned functions. Update its forward declaration and its
28476 callee too.
28477
28478 2011-01-05 Tom Tromey <tromey@redhat.com>
28479
28480 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
28481 operator to c_finish_omp_atomic.
28482 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
28483 (build_unary_op): Update.
28484 (build_modify_expr): Update.
28485 (build_asm_expr): Update.
28486
28487 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28488
28489 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
28490 newly inserted insns.
28491 (pad_bb): Likewise.
28492 (spu_emit_branch_hint): Likewise.
28493 (insert_hbrp_for_ilb_runout): Likewise.
28494 (spu_machine_dependent_reorg): Call df_finish_pass after
28495 schedule_insns returns.
28496
28497 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28498
28499 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
28500
28501 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
28502
28503 PR tree-optimization/47005
28504 * tree-sra.c (struct access): Add 'non_addressable' bit.
28505 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
28506 (decide_one_param_reduction): Return 0 if the parameter is passed by
28507 reference and one of the accesses in the group is non_addressable.
28508
28509 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28510
28511 PR tree-optimization/47056
28512 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
28513 (mark_load): Likewise. Handle FUNCTION_DECL specially.
28514 (mark_store): Likewise. Pass STMT to ipa_record_reference.
28515
28516 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
28517
28518 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
28519 initializer. Skip view conversions from aggregate types.
28520
28521 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
28522
28523 PR bootstrap/47055
28524 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
28525
28526 2011-01-04 Philipp Thomas <pth@suse.de>
28527
28528 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
28529 obvious typo.
28530
28531 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28532
28533 * function.c (thread_prologue_and_epilogue_insns): Do not crash
28534 on empty epilogue sequences.
28535
28536 2011-01-04 Joseph Myers <joseph@codesourcery.com>
28537
28538 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
28539 non-static): New Driver options.
28540
28541 2011-01-04 Jie Zhang <jie@codesourcery.com>
28542
28543 PR driver/47137
28544 * gcc.c (default_compilers[]): Set combinable field to 0
28545 for all assembly languages.
28546
28547 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
28548
28549 * config/mips/loongson3a.md: New file.
28550 * config/mips/mips.md: Include loongson3a.md.
28551 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
28552 TUNE_LOONGSON_3A.
28553
28554 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
28555
28556 PR middle-end/47017
28557 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
28558 instead of convert_memory_address_addr_space on the base expression.
28559
28560 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28561
28562 * config/spu/spu.c (spu_option_override): Update error text
28563 for bad -march= / -mtune= values.
28564
28565 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28566
28567 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
28568 if branch-hint optimization will be performed.
28569
28570 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28571
28572 PR tree-optimization/47148
28573 * ipa-split.c (split_function): Convert arguments to
28574 DECL_ARG_TYPE if possible.
28575
28576 PR tree-optimization/47155
28577 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
28578 when computing uns.
28579
28580 PR rtl-optimization/47157
28581 * combine.c (try_combine): If undobuf.other_insn becomes
28582 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
28583 and set *new_direct_jump_p too.
28584
28585 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
28586
28587 PR tree-optimization/47021
28588 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
28589
28590 2011-01-03 Jakub Jelinek <jakub@redhat.com>
28591
28592 * gcc.c (process_command): Update copyright notice dates.
28593 * gcov.c (print_version): Likewise.
28594 * gcov-dump.c (print_version): Likewise.
28595 * mips-tfile.c (main): Likewise.
28596 * mips-tdump.c (main): Likewise.
28597
28598 2011-01-03 Martin Jambor <mjambor@suse.cz>
28599
28600 PR tree-optimization/46801
28601 * tree-sra.c (type_internals_preclude_sra_p): Check whether
28602 aggregate fields start at byte boundary instead of the bit-field flag.
28603
28604 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
28605
28606 PR driver/47137
28607 * gcc.c (main): Revert revision 168407.
28608
28609 2011-01-03 Martin Jambor <mjambor@suse.cz>
28610
28611 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
28612
28613 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28614
28615 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
28616 vector optab to expand vector/scalar shift, update gimple to vector.
28617
28618 2011-01-03 Martin Jambor <mjambor@suse.cz>
28619
28620 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
28621 a thunk.
28622
28623 2011-01-03 Martin Jambor <mjambor@suse.cz>
28624
28625 PR tree-optimization/46984
28626 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
28627 HOST_WIDE_INT.
28628 (cgraph_create_indirect_edge): Fixed line length.
28629 (cgraph_indirect_call_info): Declare.
28630 (cgraph_make_edge_direct) Update declaration.
28631 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
28632 (cgraph_create_indirect_edge): Use it.
28633 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
28634 callees.
28635 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
28636 the new thunk_delta representation.
28637 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
28638 HOST_WIDE_INT.
28639 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
28640 (ipa_read_indirect_edge_info): Likewise.
28641 * lto-cgraph.c (output_edge_opt_summary): New function.
28642 (output_node_opt_summary): Call it on all outgoing edges.
28643 (input_edge_opt_summary): New function.
28644 (input_node_opt_summary): Call it on all outgoing edges.
28645
28646 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
28647
28648 PR driver/47137
28649 * gcc.c (main): Don't check have_o when settting combine_inputs.
28650
28651 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
28652
28653 * regrename.c: Add general comment describing the pass.
28654 (struct du_head): Remove 'length' field.
28655 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
28656 (regrename_optimize): Do not sort chains. Rework comments, add others.
28657 Force renaming to the preferred class (if any) in the first pass and do
28658 not consider registers that belong to it in the second pass.
28659 (create_new_chain): Do not set 'length' field.
28660 (scan_rtx_reg): Likewise.
28661
28662 2011-01-02 Jakub Jelinek <jakub@redhat.com>
28663
28664 PR tree-optimization/47140
28665 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
28666 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
28667 to bit_value_binop.
28668
28669 PR rtl-optimization/47028
28670 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
28671 parm_birth_insn instead of at the beginning of first bb.
28672
28673 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
28674
28675 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
28676 Remove the word "see" before "@pxref".
28677 * doc/rtl.texi: Remove the word "see" before "@pxref".
28678
28679 2011-01-01 Jan Hubicka <jh@suse.cz>
28680
28681 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
28682 memory.
28683
28684 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
28685
28686 PR target/38662
28687 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
28688
28689 \f
28690 Copyright (C) 2011 Free Software Foundation, Inc.
28691
28692 Copying and distribution of this file, with or without modification,
28693 are permitted in any medium without royalty provided the copyright
28694 notice and this notice are preserved.
This page took 1.227899 seconds and 5 git commands to generate.